Skip to content

ci: define proof-system changes in one path-set file with a deterministic timeout-change check #3268

Closed

Description

@schlessera

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.ts classifies as not proof-system; a diff touching .github/workflows/ci.yml, packages/core/bunfig.toml or scripts/unit-workers.ts classifies 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) to 10000, or a const RESTART_DEADLINE_MS value, classifies as proof-system with a timeout-change reason naming file and line. A test-file diff that changes no timeout does not.
  • The --json output carries the boolean, the reasons and the input SHAs. When the diff cannot be computed, the command exits nonzero and never reports false.
  • 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

  1. added
    type: chore
    area: ci
    priority: p1
    agent-ready
    on Nov 2, 2026
  2. self-assigned this
    on Nov 2, 2026
  3. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Claimed while working epic #2934 end to end (claim token wi-20261102-fd2d2f21). Intended branch: feat/3268-proof-system-paths.

  4. added this to the 0.45.0 milestone on Nov 2, 2026
  5. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Delivered by #3276, squash b228b1f21c4758ee712e922d12ebbe77cf4b3512 on main (parent 2efe3fa1c; tree 2cde10a2 matches the confirmed candidate checkout). Candidate proof: https://github.com/schlessera/brain-kit/actions/runs/41425405326 (all 17 selected jobs passed at head 4d7f7ee39). Mutation receipts are in the PR body. Milestone 0.45.0. Dependants #3269, #3270 and #3271 are unblocked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyarea: cipriority: p1type: chore

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions