Add web4-governance plugin for AI governance with R6 workflow#20448
Add web4-governance plugin for AI governance with R6 workflow#20448dp-web4 wants to merge 1 commit intoanthropics:mainfrom
Conversation
7a344de to
1408cf8
Compare
Comment for PR #20448Clarification: Scope, Foundations, and PositioningThanks to everyone reviewing this PR. Based on feedback from external reviewers, I wanted to clarify a few points about what this plugin is (and isn't), and where it fits in the broader landscape. What This IsThe core contribution isn't any single element (audit logs, policy gates, trust metrics), but the combination of:
...implemented as a developer-portable, hook-based plugin rather than a platform-locked or enterprise-only system. What This Isn'tTo be explicit about scope:
We're building governance infrastructure, not claiming to solve alignment. Foundational ResearchThis plugin implements concepts from the Web4 trust-native architecture. For deeper context on trust tensors, entity witnessing, coherence metrics, and the broader theoretical framework, see: Web4 Whitepaper: https://dp-web4.github.io/web4/ The whitepaper covers:
How This Fits the Big PictureWeb4 Architecture provides the theoretical foundation — trust-native societies for humans and AI. Governance Tiers define implementation depth:
Runtime Implementations demonstrate portability:
Competitive ContextFor reviewers familiar with the space:
Our lane: lightweight, open, agent-native, intent-aware. SummaryThis is missing infrastructure, not speculative architecture. Happy to address specific questions or concerns. Related: A parallel implementation exists for Moltbot using the same R6 framework, demonstrating portability across runtimes. |
b0e3d68 to
b590d13
Compare
…1-4) Web4 governance plugin for Claude Code hooks — structured audit trails, trust tensors, entity witnessing, policy gating, and event streaming. Tiers: observational audit (T1), policy presets and rate limiting (T1.5), signing and persistent witnesses (T2), multi-target extraction (T3), event stream monitoring (T4). See plugins/web4-governance/README.md for full documentation. PR: anthropics#20448 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
5709a7c to
8fb33f6
Compare
Web4 Governance Plugin for Claude Code
Lightweight AI governance with T3 trust tensors, entity witnessing, and R6 audit trails.
Note: "web4" = trust-native internet infrastructure for the AI agent era (cryptographic provenance, verifiable
accountability). Generic descriptor, not a trademark claim.
R6 = Rules + Role + Request + Reference + Resource → Result (structured audit record format)
Features
-Entity Trust - T3/V3 tensors (6D each) for MCP servers, agents, references
-Witnessing - Bidirectional trust flow through observation
-R6 Workflow - Formal intent→action→result with hash-linked provenance
-Rust Backend - (auto Python fallback)
-Trust Decay - Unused entities decay toward neutral over time
Components
governance/ - Trust tensors, witnessing, R6 ledger, session management
hooks/ - session_start, pre/post_tool_use, heartbeat
web4-trust-core/ - Rust crate with PyO3 + WASM bindings
Test Plan
Entity trust + witnessing (12 tests passing)
Rust backend verification + Python fallback
Real session integration
See README.md for full documentation.