Documentation
¶
Overview ¶
Package decisionrecord defines the shared, non-executing decision evidence exchanged by the host ledger and version history. Constructing these values authenticates nobody and grants no authority. Verification, policy, subject binding, persistence and execution remain with their owning packages.
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorization ¶
type Authorization struct {
Actor Identity
Subject SubjectRef
Action Action
Role, PolicyVersion string
GrantIDs []string
}
Authorization is historical evidence supplied by verified host policy. A consumer must separately check current policy, not infer power from Role.
type DecideRequest ¶
type DecideRequest struct {
Workspace, Key string
Subject SubjectRef
Action Action
Feedback string
}
type DecisionRecord ¶
type DecisionRecord struct {
ID, StoreID, HostLineageID string
Request DecideRequest
RequestDigest string
Actor Identity
Outcome string // recorded or refused; reject/deny remain explicit human actions.
RefusalCode string
Authorization *Authorization
CommittedAt time.Time
Mode string
}
type Identity ¶
type Identity = api.CallerIdentity
Click to show internal directories.
Click to hide internal directories.