Repository navigation
Closed
Labels
ready-for-agentFully specified; an agent can take it once its blockers have merged
Milestone
Description
Parent
Ticket MT8 of spec #819 (Infra).
What to build
Delete both tools and their workflow once every consumer in MT1's inventory reads the war room: CI steps, the docs-only classifier, launch-fleet's tests, the escapes and main-batch references, and docs.
Owned paths
tools/ci-bench/tools/factory-metrics/.github/workflows/ci-bench.yml.github/actions/docs-only/(shared: their rows)ci/escapes/(shared: their references)ci/main-batch/shadow.py(shared: its reference)skills/launch-fleet/(shared: test references only)loops/README.md(shared)docs/agents/skills-ab.md(shared: its reference).github/workflows/board.yml,.github/workflows/ci-escapes.yml,.github/workflows/war-room.yml(shared, revision 4, an approved workflow change: only thepython.shcall lines andci-escapes.yml's header line)tools/war-room/python.sh(revision 4: moved fromtools/ci-bench/python.sh)STATUS.md,tools/github-app/test.py,tools/war-room/README.md(shared, revision 4: only their lines naming either tool)tools/war-room/required.py(revision 4: CI2'srequired.py, deleted with ci-bench if nothing live calls it, else moved here with its caller repointed)tools/war-room/gather.py(shared, revision 4 addendum: only the line that hands the collector snapshot to the page)tools/war-room/page.py(shared, revision 4 addendum: only its snapshot input)tools/war-room/test_charts.py(shared, revision 4 addendum: the published-snapshot page case)
Relies on: tools/war-room/collector.v1.md
Links
- Infra MT2: the collector gathers the factory facts (factory-metrics folds in) #821 real: factory-metrics' numbers coming from the collector
- Infra MT4: PRs per hour against the baseline, as a war-room chart #823 real: ci-bench's headline chart on the war-room page
- Infra MT7: CI3 lives in the war room and its loop reads the collector #826 real: CI3 no longer living in ci-bench
Acceptance criteria
- Nothing in the repository refers to either tool, by a path-based search for
tools/ci-bench/,tools/factory-metrics/,ci-bench.ymlandci-benchmarks. The immutable slot namesci_benchandfactory_metricsare allowed, and two named gaps are excluded by exact path:docs/evidence/ci2-pr-cuts.mdandci/main-batch/fixtures/shadow/red-r1-benchmark.log - The three workflows run
tools/war-room/python.sh, and only those lines changed - The published war-room page renders the PRs-per-hour chart from the collector's snapshot, proved by a page test, red first
- CI is green, and each deleted test names its war-room keeper
- 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>, orno 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
M4: the diff, the search and CI.
Metadata
Metadata
Assignees
Labels
ready-for-agentFully specified; an agent can take it once its blockers have merged
Activity
jparker2006 commentedon Nov 16, 2026
Held before a plan change: #819 revision 4 (J121, approved by Jake) widens this ticket's owned paths. Released once the revision is recorded.
jparker2006 commentedon Nov 16, 2026
Released: #819 revision 4 is recorded (J121). This ticket's widened owned paths are in its body.
jparker2006 commentedon Nov 16, 2026
launch-fleet: start checked, branch room/827-retire-bench-metrics
jparker2006 commentedon Nov 16, 2026
Builder question (MT8): the deletion reaches files outside the owned paths. Starting from
mainat72c802b, deleting the two folders andci-bench.ymlbreaks or orphans the items below. None of them is owned, covered by J110 or covered by the two rulings. Each item gives the smallest change I propose and a recommendation. "Yes to all recommendations" is enough. Until then I'm building the owned part:python.sh,budgets.py,required.py, the snapshot to page hookup, and the classifier, launch-fleet, loops, escapes and docs rows.A. Live code still running ci-bench (blocks the deletion)
tools/war-room/collect_factory.py:53(MT2's):prs_per_hourrunstools/ci-bench/bench.py collectandmeasureas a subprocess, so the collector's PRs-per-hour fact, which feeds the chart, breaks.bench_measure.pyalready holds byte-identicalcollectandmeasurebut has no CLI. Recommend:collect_factory.prs_per_hourcallsbench_measure.collect(...)andbench_measure.measure(...)in process (about 6 lines), with the same outputs and the same error text. Its teststest_collect_factory.py:273-275andtest_collect_ci.py:26, which check parity against the bench CLI, repoint tobench_measurethe same way.tools/war-room/publish.pychart_builder(1 line): the page's chart build never receives a snapshot. The addendum gives megather.pyandpage.py, but the build is called only inpublish.py. Recommend:gatherwrites the collector snapshot into its root, with a selection entry, andchart_builderpasses it assnapshot=tocharts.build. That is one line inpublish.py, plus its case intest_charts.py, which I already own.B. Tests that run only in
ci-bench.yml(deleting it drops them from CI)3.
ci-bench.ymlis the only workflow that runstools/war-room/test_contract.py,test_activity.py,test_rework.py,test_review_loops.pyandtest_ci3.py(the last through the stand-ins). It also runsci3_check's step coverage, which replacedbench.py check-steps. Recommend: add those lines towar-room.yml's existing test step, beside the two budget lines from ruling (a). This is a workflow edit beyond thepython.shlines, so it needs approval.4.
war-room.ymlruns only ontools/war-room/**.ci-bench.ymlalso ran onci.yml,privacy.ymlandtools/skills-eval/**. After the move, a PR that breaks a budget inci.ymlwould never runbudgets.py check, which defeats ruling (a)'s proof. Recommend: add.github/workflows/ci.ymland.github/workflows/privacy.ymltowar-room.yml'spull_request.paths(2 lines).5. The tests of the moved factory-metrics modules (
journey.py,limits.py,metrics.py,experiment_contract.py, which are byte-identical intools/war-room/) aretools/factory-metrics/test.py,test_journey.py,test_limits.pyandtest_experiment_contract.py. Nothing in the war room tests those copies, so deleting these tests leaves no keeper. Recommend: move them unchanged totools/war-room/withfake-ghand the fixtures they read, changing only the paths, and run them inwar-room.yml(same step as item 3).C. Text and fixtures outside the owned paths
6.
tools/factory-metrics/experiments/(EB8-O's offline A/B controls, documented indocs/agents/skills-ab.md) has no war-room home and isn't a factory fact. Recommend: move it unchanged totools/war-room/experiments/, which is the only edit toskills-ab.mdI own, and run its 3 tests where they run today (nowhere in CI today; I'd keep it that way).7. skills-eval:
required-text.json:26requirestools/factory-metrics/README.mdfor build-ticket loads, andprecheck/contract-fixtures/README.md:24names the fixture path as text. Recommend: repoint both totools/war-room/README.mdand the moved fixture path, together with pending ruling (b).8.
tools/fleet-load/test_carried.py:29checks a carried copy againsttools/factory-metrics/fixtures/stage-waits/bench.json. Recommend: repoint it to the moved fixture under ruling (b), which is the same move.9. Text and comments in the war room naming old paths: the docstrings of
bench_measure.py,bench_reads.py,trends_reads.pyandci3.py:27;collect_factory.py:15;gather.py:60'sdaily.shreason;collector.v1.md's Inventory B (about 25 rows);contract.v2.md:138; and the READMEs and logs infixtures/collector*,fixtures/rework/*.log,fixtures/stage-waits/README.md,fixtures/page-design/packet.py,test_health.py:13,test_review_loops.py:13,test_stage_waits.py:5,test_charts.py:601andtest_gather.py:662. Recommend: wording only, to the war-room paths. For historical logs and Inventory B (a record of what was found), exclude them by exact path as named gaps instead.10. Saved values:
health.py:292's stage-healthownerandrecord.v2.schema.json:688'sconstare bothtools/factory-metrics/limits.conf, and saved records on thewar-roombranch carry that value. Changing the const would make old samples fail the v2 schema. Recommend: treat it as an immutable saved value, like the slot names, and exclude it by exact string from the search. The alternative is a schema change (a contract).11. Evidence and policy text:
docs/evidence/823/ci-bench-parity.log(MT4's red/green log) anddocs/agents/fleet.md:182(J110's own text, namingtools/ci-bench/steps.tsvas an example). Recommend: the log becomes a third named gap by exact path. Forfleet.md, the orchestrator changes the example totools/war-room/steps.tsv, or it becomes a named gap.12.
loops/ci3-weekly.json(CI3's loop brief) tells the loop to readtools/ci-benchand itsci-benchmarksbranch. Recommend: repoint the brief totools/war-roomand drop the branch.D. The
ci-benchmarksdata branch13. The search includes
ci-benchmarks.gather.pystill fetches that branch for the page'sci_benchslot and forcost's CI share. Onlyci-bench.yml'sdaily.shwrites it, so after deletion it goes stale forever. Its other mentions are thewar-room.yml:98comment,STATUS.md, the war-room README andtest_gather.py. Options: (a) gather stops readingci-benchmarks:ci_benchbecomes an explained missing slot ("retired: PRs an hour comes from the collector snapshot"),costruns on journeys only, andtest_gather.py's branch cases follow. (b) Keep the read, and makeci-benchmarksingather.py, its test and the README a named gap. Recommend (a): a stale point shown as current is worse than an explained gap, and the snapshot's chart replaces the headline.Already settled inside owned paths:
required.pymoves totools/war-room/required.pybecauseci/main-batch/shadow.py(live, run inci.yml) imports it. I'm not touchingci/escapes/escapes.py:48's comment: it is pinned by blob inci/main-batch/admit.pyand doesn't match the path search.5 remaining items
jparker2006 commentedon Nov 16, 2026
launch-fleet: asked the orchestrator: three follow-ups to the batch ruling (6916607926), found while building on
room/827-retire-bench-metrics(no pull request yet). (1) Items 2/16 timing risk: from the builder's sandbox, the collector snapshot that publish would reuse took over 15 minutes and was cut off; the hourly publish job's whole cap is 15 minutes. With same-day reuse, 23 of 24 publishes save the read, but each UTC day's first publish would hit the cap, save nothing, and every later one would retry and fail the same way. No GitHub runner timing yet; the builder is timing a lighter read of justprs_per_hour. Decision needed: wire the snapshot only if a runner fits the cap, use the lighter read for the chart, or keep the publish hookup as a named gap. (2) The hookup needs about 6 lines inpublish.py(the scan and allowed-file lines for the saved snapshot), not the one line granted. (3) The newwar-room-proof.ymlproof job may need its 10-minute limit raised:test_publish.pyandtest_gather.pyalone took about 6 minutes here. Fleet recommendation: (1) the lighterprs_per_hourread if it fits, else a named gap, never a hookup that can stall the publish; (2) yes, exactly those lines; (3) yes, a measured limit with headroom.jparker2006 commentedon Nov 16, 2026
Orchestrator ruling on the three follow-ups: yes to the fleet's recommendation on each.
prs_per_hourread for the chart only if, timed on a GitHub runner, it adds under 60 seconds to a publish; otherwise the publish hookup is a named gap and this ticket ships without it.publish.pyfor the saved snapshot (about six), and only if item 1 goes ahead.war-room-proof.yml's job limit from a measured run with headroom, 20 minutes at most.#827: the war-room README cites its own prices.tsv
#827: move factory-metrics' tests, fixtures, contracts and experiment…
#827: the collector's PRs an hour calls bench_measure in process; its…
#827: gather stops reading ci-benchmarks and hands the page a daily c…
#827: retire ci-bench and factory-metrics; war-room-proof.yml runs ev…
#827: the proof workflow's limit comment
#827: deliberate budget breach (ci.yml changes job 5 -> 6 minutes), t…
#827: revert the deliberate budget breach; the publish snapshot hooku…
#827: keep the CI budget-breach run's log
#827: green: scoped checks at 85066e9
jparker2006 commentedon Nov 16, 2026
launch-fleet: archived