Skip to main content

Drift Findings#

Deterministic, machine-checkable workflow drift detection (ADR-0025/0026). Drift findings make only structural claims — “the code violates the spirit of the spec” belongs to the independent verifier, never to this engine.

Commands#

--ci exits 1 when blocking findings exist (0 clean, 1 blocking, 2 usage, 3 environment). drift check-active is the managed pre-commit entry: without an active workflow task it is a clean no-op (legacy repositories see no change).

Finding codes#

CodeSeverityMeaning
UNPLANNED_FILE_CHANGEwarning (quick/standard) · blocking (high-risk)A changed/untracked file is outside the task’s declared ## Affected files scope. Declared-scope-first updates never trigger it. .ackit/** state and docs/tasks/** churn are excluded.
MISSING_REQUIRED_ARTIFACTblockingA workflow-required artifact (intent/spec/plan/evidence/verdict) does not exist for the current stage.
WORKFLOW_STAGE_INVALIDblockingThe recorded stage is not part of the task’s profile.
ACCEPTANCE_CRITERIA_UNVERIFIEDblockingA registry criterion is not verified (implementation ≠ verified).
MISSING_VERIFIER_VERDICTblockingA non-quick profile requires an independent verdict and none is registered.
STALE_CHECKPOINTwarningThe latest checkpoint’s recorded git state no longer matches reality (see docs/concepts/checkpoints.md).
PLAN_REFERENCE_MISSINGwarningA declared spec/decision/plan reference does not exist on disk.
TASK_DEPENDENCY_NOT_SATISFIEDblockingA dependency task is not completed.

Findings are ordered deterministically (code → task → detail) and severities are fixed per code. The completion gate composes the blocking findings for workflow-enabled tasks.