Skip to content

Infra FM4: a one-line cost for a merged pull request #1172

Closed

Description

@jparker2006

Parent

Ticket FM4 of spec #1165 (Infra).

What to build

One command prints a pull request's ticket cost in one line (builder, reviewer, CI and total, with unknown parts marked), for the fleet to post when the ticket merges.

Owned paths

  • tools/collector/cost_line.py
  • tools/collector/test_cost.py

Relies on: tools/collector/collector.v1.md

Links

Acceptance criteria

  • The line from synthetic facts, red first, including an unknown part
  • Runs in under 10 seconds on a real merged pull request
  • 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

FM-D's pull-request line.

Builder and reviewer per the current agent rulings on ClosedWiz #3065 (J148, or J150 while it lasts), other family, no helper agents.

Activity

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

    @jparker2006
    MemberAuthor

    launch-fleet: start checked, branch room/1172-cost-line

  4. jparker2006 commented on Nov 19, 2026

    @jparker2006
    MemberAuthor

    Builder question (FM4): may I add one line to .github/workflows/war-room-proof.yml so CI runs the new test?

    Found: CI runs collector tests only by name in war-room-proof.yml (no discovery). tools/collector/test_cost.py is owned, but no owned path or standing supporting-edit kind puts it in CI, and workflows are on the ask-first list. Without the line, the new tests never run in CI.

    Exact diff (one added line, after the existing test_collect_factory.py line in the "proof" job's collector step):

               python3 -I tools/collector/test_collect_factory.py
    +          python3 -I tools/collector/test_cost.py

    Options: (a) widen the paths by this one line; (b) leave CI as is and rely on local runs (the test then guards nothing in CI).

    Recommendation: (a). It's offline (synthetic facts, fake gh), adds well under a second, and the workflow already triggers on tools/collector/**.

    I'm building the command and tests meanwhile and won't touch the workflow until this is answered here.

  5. added
    needs-info
    on Nov 19, 2026
  6. added 3 commits that reference this issue on Nov 19, 2026
  7. jparker2006 commented on Nov 19, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: asked the orchestrator

  8. jparker2006 commented on Nov 19, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: noted #1200

  9. added a commit that references this issue on Nov 19, 2026
  10. removed
    needs-info
    on Nov 19, 2026
  11. added 2 commits that reference this issue on Nov 19, 2026
  12. added
    held
    and removed
    held
    on Nov 19, 2026
  13. added a commit that references this issue on Nov 19, 2026
  14. jparker2006 commented on Nov 19, 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