Expand description
The integrity audit of an attempt’s diff.
Line-based and deliberately suspicious: it errs on flagging. Any finding
fails the verdict with an integrity: reason; a person looks.
Structs§
- Drift
- A judge input that changed between two snapshots.
- Judge
Snapshot - The judge, intent and agent context inputs of a worktree by content hash,
git-ignored files included (
.claude/settings.local.jsonis ignored by default, and an agent still loads it).
Functions§
- audit
- Findings for an attempt:
changesandpatchbetween its checkpoints,frozenthe test files that existed when it started. Withadditions_ok, a frozen test whose diff only adds lines is no finding (removed tests and skip markers still are). An agent context file (AGENTS.md, …) changed without a person’s grant inapprovedis one. - audit_
in auditagainst the protected set of the project’s format.- has_
placeholder - Whether
textis a placeholder: it fails by raising “not implemented” (raise NotImplementedError,todo!(),unimplemented!(), …) — red that no implementation can turn green. - has_
skip_ marker - Whether
textholds a marker that skips a test. - only_
additions - Whether every line of
oldsurvives, unchanged and in order, innew: the change only adds lines ([tests] frozen = "additions"). - removed_
tests - The tests
beforedefines thatafterno longer does, in order. - sha256_
hex - Lowercase hex SHA-256 of
bytes: the content hash of a judge input or a task list, as the format adapters’ write guards compare it.