Skip to main content

Module r6

Module r6 

Source
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§

ActionResult
Result of an action execution.
ActionRole
Role context for an action — who is acting, in what capacity. Reputation is ROLE-CONTEXTUALIZED, never global.
Constraint
A constraint on action execution.
ContributingFactor
Contributing factor to a reputation change.
Precedent
A precedent action used for context.
ProofOfAgency
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.
ReputationDelta
R7’s first-class reputation output — explicit trust/value delta per action.
Request
Request — the action being requested.
ResourceRequirements
Resource requirements for an action.
Rules
Rules governing an action — law reference + constraints + permissions.
TensorDelta
Delta to a single trust/value tensor dimension.
WitnessAttestation
A witness attestation — signed statement from an independent observer.

Enums§

ActionStatus
Status of an action through its lifecycle.
SovereignStrength
Attestation strength of the emitter’s sovereign identity, carried on a ReputationDelta so the hub fold can qualify per-instance reputation.