Skip to main content

Module integrity

Module integrity 

Source
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.
JudgeSnapshot
The judge, intent and agent context inputs of a worktree by content hash, git-ignored files included (.claude/settings.local.json is ignored by default, and an agent still loads it).

Functions§

audit
Findings for an attempt: changes and patch between its checkpoints, frozen the test files that existed when it started. With additions_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 in approved is one.
audit_in
audit against the protected set of the project’s format.
has_skip_marker
Whether text holds a marker that skips a test.
only_additions
Whether every line of old survives, unchanged and in order, in new: the change only adds lines ([tests] frozen = "additions").
removed_tests
The tests before defines that after no 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.