Documentation
¶
Overview ¶
Package drift wires the pkg/drift engine into `canary drift`: it reads the token index built by `canary index` and reports, per requirement, whether the tree still matches the baseline — CURRENT, DRIFTED, or UNKNOWN — decided by content hash and git availability, never by a token's UPDATED= date. Staleness and documentation rollup are printed as a clearly separate advisory section and never affect the drift verdict or the exit code. CANARY: REQ=CP-278; FEATURE="DriftCmd"; ASPECT=CLI; STATUS=TESTED; TEST=TestCANARY_CP_278_Cmd_JSON_Clean,TestCANARY_CP_278_Cmd_JSON_Drifted,TestCANARY_CP_278_Cmd_Table_NoDrift,TestCANARY_CP_278_Cmd_NoIndex,TestCANARY_CP_278_SummaryLine_Format,TestCANARY_CP_278_StrictShouldFail; UPDATED=2026-08-30
Index ¶
Constants ¶
const DefaultLimit = 20
DefaultLimit bounds the requirement list in table mode by default; raise it with --limit when more is needed.
Variables ¶
This section is empty.
Functions ¶
func CreateDriftCommand ¶
CreateDriftCommand returns the `canary drift` command.
Types ¶
This section is empty.