Is the current task consistent with policy, scope, and state? Read-only.
Checks:
state/current.yamlexists and parses; else12.- Git divergence label for the record:
exact,advanced,diverged,different_context.divergedanddifferent_contextare findings. - Touched files (
git status --porcelainplusgit diff --name-only <base>..HEAD) are within the claimed scope. Any outside → finding. - Checkpoint age against the profile's
checkpoint_interval(WARN, neverFAIL). - Files under
.ai/and the projection targets are always in scope. --checkpointupdatescheckpoint_atand appendstask.checkpointto the ledger: the one documented write in an otherwise read-only command.state/open-questions.mdhas no unresolved entry for this task.--explainprints the effective merged policy and profile for this task and exits0.--overlapprints claim containment against other worktrees.
Exit 0 with no FAIL findings, 10 with any, 12 with no active task. Intended for
a worker to run before claiming completion, and for a person to run any time.
$ majordomus check
OK state t-20260903-193012-a4f1 — exact (head 3f2a9c1)
FAIL scope config/secrets.example — outside claimed scope (lib/auth) [reproduce: git status --porcelain; git diff --name-only 3f2a9c1 HEAD]
OK checkpoint 7m ago, interval 15m
OK blockers none open
check: 4 finding(s), 1 failing