Expand description
Ready / land workflow domain: pure preflight, policy, and step accounting.
Owns decision logic shared by heddle ready, heddle land, and heddle sync:
- verification fail-closed preflight for readiness
- land push option planning
- auto-land confidence / verification policy blockers
- non-staleness / heavy-impact classification
- land performed / skipped step accounting
- integrated-land next-action selection
- ready classification and report next-action filtering
Network, mutation, capture, and render remain CLI-owned.
Structs§
- Auto
Land Policy Input - Facts needed for auto-land policy without opening the object store.
- Ready
Decision - Pure classification of readiness after preview / policy blockers are known.
- Ready
Decision Input - Inputs for classifying a ready-command outcome without performing I/O.
Constants§
- AUTO_
LAND_ CONFIDENCE_ RECOVERY_ ACTION - Recovery breadcrumb when auto-land policy blocks on confidence / tests.
- AUTO_
LAND_ CONFIDENCE_ THRESHOLD - Minimum agent confidence allowed for automatic land without re-capture.
Functions§
- auto_
land_ confidence_ recovery_ action - Scope the confidence recovery capture to the thread’s checkout when needed.
- auto_
land_ policy_ blockers - Policy blockers that prevent automatic land (confidence / verification).
- classify_
ready_ decision - Classify ready outcome from preview facts (no I/O).
- has_
integration_ target - Whether a thread preview has an integration target configured.
- integrated_
land_ next_ action - Next action after a successful local land (push if trust says so, else cleanup).
- integration_
blocker_ recommended_ action - Recovery breadcrumb for confidence / verification policy blockers.
- integration_
blockers - Combine preview blockers with auto-land policy, honoring manual resolution.
- is_
heavy_ impact_ advisory - Heavy-impact lines are advisories for land, not hard blockers for sync.
- is_
integration_ clear - Conflict-free and policy-clear: safe to mark ready / land.
- is_
manual_ review_ blocker - Whether a land/preview blocker is the heavy-impact manual-review advisory.
- land_
blockers_ for_ preview - Expand preview conflicts into land blockers, then sort/dedup.
- land_
checkpoint_ message - Checkpoint / squash message for land write-through.
- land_
performed_ steps - Steps that actually ran during land.
- land_
skipped_ steps - Steps skipped (with reason tokens) during land.
- land_
text_ step - Human text for a land performed/skipped step token.
- land_
warnings_ for_ preview - Heavy-impact advisories for land (warnings, not hard blockers).
- non_
staleness_ blockers - Drop staleness and heavy-impact advisories from a blocker list.
- op_
targets_ merge_ state - Whether an oplog record advances HEAD/thread to a land merge target.
- quote_
recommended_ action_ arg - Quote a recommended-action path/arg when it is not shell-safe bare.
- ready_
freshness_ summary - Freshness column for ready summary.
- ready_
integration_ summary - Integration column for ready summary.
- ready_
merge_ type_ label - Ready summary labels from preview merge relation strings.
- ready_
merge_ type_ summary - Merge-type column for ready summary.
- ready_
report_ recommended_ action - Drop self-merge / land recommendations when the thread has no target.
- ready_
scoped_ next_ action - Ready-scoped next-action selection (operation → thread fallback → publish).
- ready_
status_ summary - Ready status line for operator text (
cleanvs thread health). - ready_
verification_ preflight_ blocks - Statuses that must fail closed before readiness / land preflight can run.
- ready_
verification_ status_ blocks - Pure status-string check used by
ready_verification_preflight_blocks. - recovery_
scope_ checkout - Returns the thread checkout when it is a real, distinct path from the
current checkout (so recovery breadcrumbs must re-scope via
--repo). - scope_
action_ to_ repo - Scope a
heddle …recommended action to an explicit--repopath. - should_
squash_ land - Whether land should squash the thread into one Git commit on write-through.
- state_
id_ matches_ display - Whether a change id matches a short or full display form from operator text.
- state_
id_ matches_ op_ display - Convenience: match a
StateIdagainst operator display text. - sync_
completed_ next_ action - Next action after a successful sync (already current or refreshed).
- sync_
is_ already_ current - Whether sync has nothing left to refresh.