Repository navigation
Description
Part of #2934 (Phase A). Implements question 5 of the #2938 ruling.
Context
The maintainer ruled that one file defines which changes are proof-system changes, and that the serialized lane, automatic proof-policy epochs and off-main qualification all read it. The ruled set is .github/workflows/**, scripts/test.ts, scripts/unit-*, scripts/ci-*, scripts/check-pr.ts, every bunfig.toml, **/proof-inputs.json, plus any diff that changes a test timeout or deadline constant, flagged by a deterministic check. Today no such file or check exists. docs/process/ci-throughput.md:71-76 notes that mixed policy epochs confound comparisons, but nothing derives an epoch.
Scope
- One checked-in path-set file (for example
scripts/proof-system-paths.json) holding exactly the ruled globs. - A module and command,
bun scripts/proof-system.ts classify --base <sha> --head <sha> [--json], that reports whether a diff is a proof-system change and why. The reasons are the matching paths, plus each timeout or deadline constant change with its file and line. - The timeout/deadline check is deterministic and syntactic: it compares added and removed lines of test files for changed numeric arguments to
setTimeout-style test timeouts,{ timeout: N }options, Bun test third-argument timeouts and identifiers named*TIMEOUT*/*DEADLINE*. It does not run tests.
Out of scope
- The lane, the epochs and off-main qualification enforcement; each is its own task and reads this.
- Changing the ruled path set; that needs a new ruling.
Acceptance criteria
- A diff touching only
packages/ui-server/src/x.tsclassifies as not proof-system; a diff touching.github/workflows/ci.yml,packages/core/bunfig.tomlorscripts/unit-workers.tsclassifies as proof-system with that path as the reason. Each is proven by a test that fails before the change. - A test-file diff that only changes
test("x", fn, 5000)to10000, or aconst RESTART_DEADLINE_MSvalue, classifies as proof-system with atimeout-changereason naming file and line. A test-file diff that changes no timeout does not. - The
--jsonoutput carries the boolean, the reasons and the input SHAs. When the diff cannot be computed, the command exits nonzero and never reportsfalse. - The path-set file is the only place the globs are listed; a test asserts no other script duplicates them.
Verification
bun run test on the new test file, plus a restored mutation receipt (for example, dropping the bunfig.toml glob) showing the named test fail.
Contract impact
None: a repository script, not a brain command.
Activity
schlessera commentedon Nov 2, 2026
Claimed while working epic #2934 end to end (claim token
wi-20261102-fd2d2f21). Intended branch:feat/3268-proof-system-paths.feat(ci): define proof-system changes in one path-set file with a tim…
feat(ci): define proof-system changes in one path-set file with a tim…
schlessera commentedon Nov 2, 2026
Delivered by #3276, squash
b228b1f21c4758ee712e922d12ebbe77cf4b3512on main (parent2efe3fa1c; tree2cde10a2matches the confirmed candidate checkout). Candidate proof: https://github.com/schlessera/brain-kit/actions/runs/41425405326 (all 17 selected jobs passed at head4d7f7ee39). Mutation receipts are in the PR body. Milestone 0.45.0. Dependants #3269, #3270 and #3271 are unblocked.