Skip to content

Infra MT2: the collector gathers the factory facts (factory-metrics folds in) #821

Closed

Description

@jparker2006

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.py
  • tools/war-room/test_collect_factory.py
  • tools/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 in activity.py, cost.py, rework.py, stage_waits.py, review_loops.py, sources.py, weekly.py and health.py only their factory-metrics import lines; in test_*.py and fixtures/ 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

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>, 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: fixture tests against factory-metrics' own fixtures.

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/821-collect-factory

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

    @jparker2006
    MemberAuthor

    launch-fleet: asked the orchestrator: PR #924 adds one line to .github/workflows/war-room.yml so its new collector test runs in CI. J110 covers CI step lists such as tools/ci-bench/steps.tsv but 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.

  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. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Orchestrator ruling: yes, a full rerun's result counts. A full gh run rerun re-runs the changes job, 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 merging main in for a fresh first run; a flake always gets its evidence on the pull request and an issue, as you did with #933.

  8. added 2 commits that reference this issue on Nov 16, 2026
  9. 3 remaining items

  10. added 3 commits that reference this issue on Nov 16, 2026
  11. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: asked the orchestrator: the builder's three questions for its second pull request #978 (#821 (comment)): (1) add tools/war-room/limits.conf beside the moved limits.py and journey.py, whose defaults look for it there; (2) leave factory-metrics' fixtures and contract docs in tools/factory-metrics/ for MT8 (#827); (3) repoint the one journey.py import in tools/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.

  12. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Orchestrator ruling: yes to all three, for the second pull request #978. (1) Add tools/war-room/limits.conf beside the moved limits.py and journey.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 one journey.py import line in MT3's trends_reads.py may be re-pointed. Record each in Facts and as Ruling: lines; these are the kinds of edit a builder now decides itself.

  13. added 2 commits that reference this issue on Nov 16, 2026
  14. removed
    needs-info
    on Nov 16, 2026
  15. added 5 commits that reference this issue on Nov 16, 2026
  16. 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