Expand description
Intent and Authority types — the provenance metadata that makes AgentStateGraph different from git.
Every commit carries structured metadata about:
- Why the change was made (Intent)
- Who authorized it (Authority)
- What the lifecycle status is (IntentLifecycle)
- What was accomplished (Resolution)
- Who should be notified (NotificationPolicy)
Structs§
- Authority
- Who authorized a state change, with the full delegation chain.
- Delegation
Link - A single hop in a delegation chain.
- Deviation
- A record of where and why the agent diverged from the plan.
- Intent
- Why a state change is being made.
- Intent
Lifecycle - Tracks the full arc from proposal through resolution and notification.
- Notification
Policy - Declares who should be informed about an intent’s resolution, at what urgency, and in what format.
- Resolution
- Filed when an intent reaches a terminal state. This is the structured report that answers: “what was accomplished?”
- Tool
Call - A record of a tool call that contributed to a state change.
Enums§
- Auth
Scope - What an authority grants permission for.
- Deviation
Impact - Severity of a deviation from plan.
- Format
Hint - Intent
Category - High-level categories for intents. These are queryable and filterable.
- Intent
Status - Valid states for an intent’s lifecycle.
- Outcome
- The overall outcome of an intent’s execution.
- Urgency
Constants§
- TAG_
GIT_ REVISION - Prefix for the external VCS revision a commit corresponds to, e.g.
git:1a2b3c.... The distilled milestone row lifts the value into itsgit_shacolumn. - TAG_
PIN_ STATE - Opts a
IntentCategory::Checkpointcommit into pinning itsstate_rooton the distilled milestone row, which keeps that snapshot reachable through a GC sweep.