Repository navigation
Closed
Labels
ready-for-agentFully specified; an agent can take it once its blockers have merged
Milestone
Description
Parent
Ticket MT2 of spec #819 (Infra).
What to build
The war room's collector gathers the factory facts the contract names, taking over factory-metrics' daily numbers and its experiment and limits rules, and offers them as an on-demand read and in the snapshot. Revision 4 adds one more part: move the factory-metrics code that the war room's own modules and skills-eval import (metrics.py, journey.py, limits.py, experiment_contract.py) into the war room, and repoint those imports, fixtures and the carried copies' checker, so nothing imports from tools/factory-metrics/ any more.
Owned paths
tools/war-room/collect_factory.pytools/war-room/test_collect_factory.pytools/war-room/gather.py(shared: the factory call)tools/war-room/fixtures/collector-factory/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 factory-metrics code (metrics.py,journey.py,limits.py,experiment_contract.py), and inactivity.py,cost.py,rework.py,stage_waits.py,review_loops.py,sources.py,weekly.pyandhealth.pyonly their factory-metrics import lines; intest_*.pyandfixtures/only those modules' cases)tools/skills-eval/(shared, revision 4: only its import lines and fixture paths for the moved factory-metrics code)tools/fleet-load/test_carried.py(shared, revision 4: only the carried copies' source paths)skills/launch-fleet/scripts/carried/(revision 4: byte-identical copies only)
Relies on: tools/war-room/collector.v1.md, tools/war-room/collector.v1.schema.json
Links
- Infra MT1: the collector contract and the consumer inventory, first #820 real: the collector contract and its fixtures
Acceptance criteria
- Every factory-metrics number the inventory lists comes out of the collector on the same fixtures, compared red first
- The on-demand read and the snapshot agree
- 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
M1: fixture tests against factory-metrics' own fixtures.
Metadata
Metadata
Assignees
Labels
ready-for-agentFully specified; an agent can take it once its blockers have merged
Activity
jparker2006 commentedon Nov 16, 2026
launch-fleet: start checked, branch room/821-collect-factory
#821: red first: the collector's factory proofs on the source tools' …
#821: the collector gathers the factory facts: merges, PRs an hour, s…
#821: green: the collector's factory proofs pass at d01ed6b
jparker2006 commentedon Nov 16, 2026
launch-fleet: asked the orchestrator: PR #924 adds one line to
.github/workflows/war-room.ymlso its new collector test runs in CI. J110 covers CI step lists such astools/ci-bench/steps.tsvbut says to ask first for any workflow file, so this line needs a ruling. Fleet recommendation: grant exactly that line (same intent: the ticket's own test runs in CI, as the test rule needs); if declined, the line is dropped and the test's CI coverage becomes a named gap. Review and CI continue; only the merge waits on the answer.jparker2006 commentedon Nov 16, 2026
Orchestrator ruling: granted, for #924 and #925 together. Each may add its one test line to
.github/workflows/war-room.ymlso 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 mergesmainin. Record it in Facts.jparker2006 commentedon Nov 16, 2026
Orchestrator ruling: yes, a full rerun's result counts. A full
gh run rerunre-runs thechangesjob, so the new attempt saves its own selection and runs every job; if attempt 2 of run 43807480272 is green at fd8e5aa, that satisfies #924's CI gate. What never works here is a failed-only rerun (--failed), which cannot find its selection artifact. To be exact about the rule for every fleet: failed-only reruns never; a full rerun is valid but costs every job, so prefer mergingmainin for a fresh first run; a flake always gets its evidence on the pull request and an issue, as you did with #933.#821: green: the collector's factory proofs pass at a890310, main mer…
#821: green: the collector's factory proofs pass at 6d452dd, main (with
3 remaining items
#821: red first: a snapshot's CI group is the CI collector's own read
#821: gather.snapshot reads the CI group through gather.ci_facts (#819 …
#821: green: the move and the snapshot's CI call pass at bc4d68d
jparker2006 commentedon Nov 16, 2026
launch-fleet: asked the orchestrator: the builder's three questions for its second pull request #978 (#821 (comment)): (1) add
tools/war-room/limits.confbeside the movedlimits.pyandjourney.py, whose defaults look for it there; (2) leave factory-metrics' fixtures and contract docs intools/factory-metrics/for MT8 (#827); (3) repoint the onejourney.pyimport intools/war-room/trends_reads.py(MT3's file, new on main since revision 4). None is covered by J110 or revision 4's text. Fleet recommendation: yes to all three, same intent as revision 4's move; (1) as a byte-identical copy of the factory-metrics file. Review and CI go on; only the merge waits.jparker2006 commentedon Nov 16, 2026
Orchestrator ruling: yes to all three, for the second pull request #978. (1) Add
tools/war-room/limits.confbeside the movedlimits.pyandjourney.py, as a byte-identical copy of the file their defaults look for. (2) The fixtures and docs stay where they are for MT8 to retire. (3) The onejourney.pyimport line in MT3'strends_reads.pymay be re-pointed. Record each in Facts and asRuling:lines; these are the kinds of edit a builder now decides itself.#821: ruling on #821: limits.conf moves beside limits.py and the war …
#821: green: the move, the ruled limits.conf and the snapshot's CI ca…
#821: red first (R1): the default snapshot reads both groups over one…
#821: R1: gather.snapshot resolves one window (collect_factory.window…
#821: green: R1 fixed; the collector's proofs pass at 3293bc6
#821: R1's regression case compares activity without its today-so-far…
#821: green: R1 fixed; the collector's proofs pass at 1b96811
jparker2006 commentedon Nov 16, 2026
launch-fleet: archived