Skip to content

Infra DS6: contracts: keep only what the code follows, in the fewest tokens #1304

Closed

Description

@jparker2006

Parent

Ticket DS6 of spec #1293 (Infra). Size: L.

What to build

Each kept contract says only what the code follows and others rely on, in the fewest tokens; a contract nothing follows any more goes or moves, as the table says. Today they hold 10,571 lines. Schemas and fixtures the tests read stay byte-identical unless the table says otherwise.

Owned paths

  • the Markdown files under contracts/

Relies on: docs/cleanup/docs-table.md

Links

Acceptance criteria

  • Every row of the table for contracts/ is done
  • Every remaining claim in a kept contract is one the code follows (the reviewer checks a sample against the code)
  • No test, script or skill reads a removed file; CI green

Proof

D2, D5: the table against the tree, and the reviewer's sample.

Builder Claude Code Opus 5.5 Medium and reviewer Codex Sol 6.2 Medium (J165), other family, no helper agents. A pull request in ClosedWiz follows the cross-repository route: a recorded claim on the pull request, exact-head CI green, the other-family review, and a merge pinned to the reviewed head.

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: started

  4. jparker2006 commented on Nov 19, 2026

    @jparker2006
    MemberAuthor

    agent: builder
    state: done
    harness: claude-code
    model: claude-opus-5-5
    skills: build-ticket@0.1.2
    step: R1 fixed at 76d800f; R2 is follow-up #1625; re-check next.
    time: 2026-11-20T00:58:49Z
    pr: #1494

  5. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    needs-info: kept contracts that still describe the server #1264 deleted

    The docs table marks these contracts keep (byte for byte), but parts of them describe HTTP routes or a server that #1264 removed, so acceptance line 2 ("every remaining claim in a kept contract is one the code follows") and the table disagree:

    • contracts/plan.v1.md: GET /api/v1/plan, "the server's working-directory repository", server clock.
    • contracts/decisions.v1.md: GET /api/v1/decisions, "the standalone server and embedded service read service/config.json", restart the server.
    • contracts/setup.v1.md: GET /api/v1/setup, the T2 server package.
    • Smaller mentions in contracts/agent-github-reads.v1.md (the service App) and contracts/loops.v1.md (the service's private state and restarts).

    The response shapes are still followed: crates/adapters/github/src/{plan,decisions}.rs and the schema conformance checks read them. Only the route and server sentences are stale.

    Options:

    1. Keep those rows byte for byte as the table says; this PR lists the stale sentences under Gaps for a follow-up.
    2. Widen this PR to rewrite just the route and server sentences in those five files (shapes untouched).

    My pick: 1. The table is the approved scope and these are shape contracts the code still reads. The rewrite rows (fleet, fleet-tick, service, open-development, ops-dispatch, review-loops v1) and the link fixes go ahead either way. I already made one small edit to a keep row, contracts/release-candidate.v1.md, because its only link pointed at a heading of the retired --expect-plan restriction (#800).

  6. added
    needs-info
    on Nov 20, 2026
  7. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: grant, answering #1304 (comment): option 2. Rewrite only the route and server sentences #1264 made untrue in those five contracts (plan, decisions, setup, agent-github-reads, loops v1): drop them or say what the code does now. Leave every response shape, field, schema and anything a test or conformance check parses byte for byte. Why: DS6's acceptance line 2 (every remaining claim in a kept contract is one the code follows) is the spec Jake approved, and the table marked these rows "keep" before #1264 deleted the server; this changes no interface the code follows. The release-candidate.v1.md dead-link edit stands. Record both in ## Rulings.

  8. removed
    needs-info
    on Nov 20, 2026
  9. added 6 commits that reference this issue on Nov 20, 2026
  10. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    needs-info: R2 on #1494 needs the canonical WizSkills copies changed

    R2 (review of #1494 at 9da5796) asks for the stale prose in three carried contracts to go:

    • contracts/decisions.v1.md: the GET /api/v1/decisions route and server sentences;
    • contracts/open-development.v1.md:29: the standalone and embedded server;
    • contracts/ops-dispatch.v1.md:197,306: "2 + 1".

    These files are WizSkills' carried contracts (contracts/wizskills.v1.md, carried_contracts). tools/wizskills/check_contracts.py requires each OpenWiz copy to equal .wizskills/contracts/ at the wizskills.lock pin (0.1.2) byte for byte. So the fix has to land in openwizdev/WizSkills contracts/ first, then reach OpenWiz through a pin move. Both are outside this ticket's owned paths.

    Options:

    1. I open a WizSkills pull request with the same prose-only edits to those three files (schemas and parsed blocks untouched, the same edits I made and reverted here). The pin relay then moves wizskills.lock and OpenWiz's copies together in a separate change. #1304: Infra DS6: contracts: keep only what the code follows, in the fewest tokens #1494 merges now with R2 logged as that follow-up.
    2. #1304: Infra DS6: contracts: keep only what the code follows, in the fewest tokens #1494 waits until that WizSkills change and the pin move land, then carries the matching OpenWiz copies.
    3. R2 is logged as a follow-up for the WizSkills 0.2.0 contract pass, with no WizSkills edit from this ticket.

    My pick: 1. It fixes the prose at its source without widening this ticket into WizSkills' release or OpenWiz's pin, and #1494 keeps the equality gate green. It needs your go to touch openwizdev/WizSkills contracts/.

  11. added
    needs-info
    on Nov 20, 2026
  12. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: answer to DS6's R2 question: #1494 merges with R2 logged as the follow-up #1625 (filed, needs-triage): the three carried contracts are fixed in WizSkills and arrive by a pin move there. DS6 opens no WizSkills PR (another repository, outside this ticket's paths; #1625's triage decides who does). Name #1625 in the R2 answer and in Gaps, record this in ## Rulings; the re-check judges it.

  13. removed
    needs-info
    on Nov 20, 2026
  14. added a commit that references this issue on Nov 20, 2026
  15. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: cost: Ticket #1304 cost (PR #1494): builder unknown; reviewer unknown; CI 145.4 runner minutes; total unknown credits, unknown tokens, 145.4 runner minutes

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