Expand description
R6/R7 Action Framework
R6: Rules + Role + Request + Reference + Resource → Result R7: Rules + Role + Request + Reference + Resource → Result + Reputation
R6 is for low-consequence actions (cheap). R7 adds explicit reputation tracking for consequential actions. Both are canonical; R7 extends R6.
Key invariants:
- Determinism: same inputs → identical results across implementations
- Non-repudiation: all actions signed, recorded with witnesses
- Resource bounds: consumption cannot exceed pre-declared limits
- Role isolation: actions scoped to role’s permissions
- Atomic settlement: transfers and tensor updates fully complete or roll back
Reference: web4-standard/core-spec/r6-framework.md,
web4-standard/core-spec/r7-framework.md
Structs§
- Action
Result - Result of an action execution.
- Action
Role - Role context for an action — who is acting, in what capacity. Reputation is ROLE-CONTEXTUALIZED, never global.
- Constraint
- A constraint on action execution.
- Contributing
Factor - Contributing factor to a reputation change.
- Precedent
- A precedent action used for context.
- Proof
OfAgency - Proof that an agent is authorized to act on behalf of a principal.
- R7Action
- Complete R7 action — the full R6 cycle plus reputation tracking.
- Reference
- Reference — precedents, witnesses, and context for the action.
- Reputation
Delta - R7’s first-class reputation output — explicit trust/value delta per action.
- Request
- Request — the action being requested.
- Resource
Requirements - Resource requirements for an action.
- Rules
- Rules governing an action — law reference + constraints + permissions.
- Tensor
Delta - Delta to a single trust/value tensor dimension.
- Witness
Attestation - A witness attestation — signed statement from an independent observer.
Enums§
- Action
Status - Status of an action through its lifecycle.
- Sovereign
Strength - Attestation strength of the emitter’s sovereign identity, carried on a
ReputationDeltaso the hub fold can qualify per-instance reputation.