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§
- asserts_
crlf_ as_ text - Whether a Python test asserts
\r\nin output it reads as text (text=True,universal_newlines=True): text mode turns\r\ninto\n, so it fails whatever the code writes (the example’s US1, 2026-11-03). - 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. - invalid_
escape - Python’s warning of an invalid escape in one of
paths’ own string literals, from a run’s output (test_x.py:15: SyntaxWarning: "\\|" is an invalid escape sequence): the string holds what its author did not write (the example’s US3-2, 2026-11-04). - never_
passes - Why a test can never pass, whatever the code, when speccoder can tell: the words a ruling on it gives.
- 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.