Skip to main content

Module draft_package

Module draft_package 

Source

Structs§

AgentIdentity
Identity of the agent that produced this PR package.
AlternativeConsidered
A structured alternative considered during a decision (v0.3.3).
AmendmentRecord
Record of a human amendment to an artifact (v0.3.4).
ApprovalRecord
Records a single reviewer’s approval of a draft package (v0.14.2).
Artifact
A local filesystem change artifact.
ChangeDependency
A dependency relationship between artifacts.
Changes
The changes section: artifacts (local FS changes) + patch_sets (external changes)
DecisionLogEntry
DesignAlternative
A design alternative considered during agent work (v0.9.5).
DraftPackage
The Draft Package — a complete, reviewable milestone deliverable.
ExplanationTiers
Three-tier explanation for an artifact (v0.2.3).
Goal
The high-level goal this PR package contributes to.
IgnoredArtifact
A gitignored artifact encountered during ta draft apply --submit (v0.13.17.5).
Iteration
Which iteration of the goal this package represents.
PatchSet
A staged change to an external resource (Drive, Gmail, DB, etc.).
PendingAction
An MCP tool call intercepted during agent execution, pending human review.
Plan
Execution plan included in the PR package.
PolicyDecisionRecord
A recorded policy decision relevant to this PR.
Provenance
Provenance information: where inputs came from.
ProvenanceInput
RequestedAction
ReviewRequests
What approvals this PR needs.
Risk
Risk assessment for the PR package.
RiskFinding
A single risk finding.
Signatures
Cryptographic signatures for the PR package.
Summary
Human-readable summary of what changed and why.
ValidationEntry
Result of one required_checks entry run after agent exit (v0.13.17).
VcsTrackingInfo
VCS tracking information for post-apply lifecycle monitoring (v0.11.2.3).
VerificationWarning
A warning from a pre-draft verification command failure (v0.10.8).
WorkspaceRef
Reference to the workspace where changes were staged.

Enums§

ActionKind
How an intercepted MCP tool call is classified.
AmendmentType
The type of amendment applied to an artifact (v0.3.4).
ApplyProvenance
How a draft was applied — provenance for DraftStatus::Applied (v0.15.14.0).
ArtifactDisposition
Per-artifact review disposition.
ChangeType
The type of filesystem change.
DependencyKind
How two artifacts are related.
DraftStatus
Review status of a draft package (internal tracking, not in JSON schema).
PatchAction
Action types for external patch sets.
RiskCategory
Severity
TrustLevel

Functions§

check_missing_decisions
Check whether a draft is missing an agent decision log for substantive changes.