Skip to content

Infra MT3: the collector gathers the CI facts #822

Closed

Description

@jparker2006

Parent

Ticket MT3 of spec #819 (Infra).

What to build

The collector gathers the CI facts the contract names: runs, minutes, the CI3 measure, and the queue and rate-limit read the overload guard needs, on demand within its freshness bound. Revision 4 adds one more part: move the ci-bench code the war room's own modules import, and prices.tsv, into the war room, repoint those imports and fixtures, and update the cost-basis citation in the war-room contracts and schemas (wording only), so nothing imports from tools/ci-bench/ any more.

Owned paths

  • tools/war-room/collect_ci.py
  • tools/war-room/test_collect_ci.py
  • tools/war-room/gather.py (shared: the CI call)
  • tools/war-room/fixtures/collector-ci/
  • tools/war-room/ (shared, Infra spec: one measurement home in the war room, walkthrough 2 (the measurement tools) #819 revision 4: new files holding the moved ci-bench code (bench.py and trends.py parts, prices and costs) and prices.tsv; in activity.py, cost.py, rework.py, stage_waits.py, review_loops.py, sources.py, weekly.py and health.py only their ci-bench import lines; in test_*.py and fixtures/ only those modules' cases)
  • tools/war-room/contract.md, contract.v2.md, record.schema.json, record.v2.schema.json (shared, revision 4: only the prices.tsv citation lines, wording only; slot names and versions unchanged)

Relies on: tools/war-room/collector.v1.md, tools/war-room/collector.v1.schema.json, contracts/ci3.v1.md

Links

Acceptance criteria

  • The CI facts match ci-bench's and CI3's on the same fixtures, compared red first
  • The queue and rate-limit read is fresh within the guard's bound or says unknown
  • Test rule (The test rule: what earns a test, and what never does #687): every new test protects a supported behaviour, a contract others rely on or a safety invariant, and the pull request says per test catches: <the bug>, or no new test: <why>. No mock-returns-stub, source mirroring, compiler re-checks, quota tests or unreachable cases; a bug gets a failing test first.
  • Every test the pull request deletes names its keeper (a test that still catches its bug) or says the behaviour it protected is gone.

Proof

M1 and M3: fixture tests.

Activity

  1. added this to the Infra milestone on Nov 15, 2026
  2. added
    ready-for-agent
    on Nov 15, 2026
  3. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: start checked, branch room/822-collector-ci-facts

  4. added 4 commits that reference this issue on Nov 16, 2026
  5. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: asked the orchestrator: PR #925 adds one test line to .github/workflows/war-room.yml so its new collector tests run in CI, the same kind of line as MT2's PR #924 (#821 (comment)). J110 says to ask first for any workflow file. Fleet recommendation: grant exactly that line for both tickets. Review and CI continue; only the merge waits.

  6. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Orchestrator ruling: granted, for #924 and #925 together. Each may add its one test line to .github/workflows/war-room.yml so its new collector tests run in CI; nothing else in that workflow changes. A workflow change is pushed as the owner's account, not the App. If both land, the second merges main in. Record it in Facts.

  7. added 6 commits that reference this issue on Nov 16, 2026
  8. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: archived

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions