Skip to content

Infra CW13: fold the internal contracts, batch 1 (a to l) #1154

Closed

Description

@jparker2006

Parent

Ticket CW13 of spec #1141 (Infra).

What to build

Fold each contract the table marks fold, names a to l: a short note beside its code says what callers need, fixtures move beside the tests that read them, and every reference is repointed.

Owned paths

  • contracts/ (shared: the fold rows a to l and their fixtures)
  • the notes beside their code that the table names
  • references to the folded files across the repository (shared: those lines only)

Relies on: docs/cleanup/wave1-contracts.md

Links

Acceptance criteria

  • Every fold row a to l done; no keep row touched
  • No reference to a folded file remains outside history and the table
  • Tests that only checked a folded document's wording go, each named
  • CI green
  • 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

CW-D, batch 1.

Builder Codex Sol 6.1 High, reviewer Claude Code Opus 5.5 High, 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/1154-fold-internal-contracts-a-l

  4. jparker2006 commented on Nov 19, 2026

    @jparker2006
    MemberAuthor

    Builder question: can #1154 make the following reference-only changes, or should the affected fold rows be held for separately approved work?

    1. GitHub identity fixtures (CW12 table: github-identity fixture fold touches a WizSkills-carried contract (polish for #1153, R1) #1192). The five fixtures must move to tools/github-app/fixtures/identity/. The old folder is named in OpenWiz and WizSkills contracts/github-identity.v1.md. Both copies match byte for byte, including at OpenWiz's current WizSkills pin, and tools/wizskills/check_contracts.py rejects a mismatch. Recommend approving one companion WizSkills change limited to replacing the fixture-directory path in that contract, then shipping the identical OpenWiz one-line change and the resulting wizskills.lock pin with the fixture move. Please name the release and pin owner and order. If the 0.2.0 release owns the pin, should these five rows wait for that coordinated change?
    2. Other kept documents. Approve reference-only edits to contracts/service.v1.md, contracts/setup-onboard.v1.md, and contracts/web-api.v1.md. The service link would point to tools/live-smoke/README.md and the first-hour links to tools/install/tests/first-hour/README.md. Keep their interface rules and first-hour schema ID verbatim.
    3. Historical admission pin. ci/main-batch/admit.py pins the old combined-coverage document, schema, and other reviewed blobs. Recommend preserving those exact historical names and digests as provenance, keeping admission fail-closed and leaving the guard and its test untouched. Please confirm the history exception covers those pin entries and the mutation case in ci/main-batch/test_admit.py, or specify the approved disposition for the gate.
    4. CI references. Approve the path-only replacements in .github/actions/docs-only/test.sh (dependency-ledger fixture paths and expected Rust selection) and ci/select/map.json (the two moved Markdown notes and the two moved schemas, with the dependency ledger still classified as a Rust input). Keep the selector and workflows unchanged.

    The affected approvals are for exact references and do not authorize changing the underlying contracts, admission behavior, or CI selection policy. No kept contract or WizSkills file has been edited.

  5. added
    needs-info
    on Nov 19, 2026
  6. jparker2006 commented on Nov 19, 2026

    @jparker2006
    MemberAuthor

    Builder question follow-up to item 3: the offline admission suite copies the old document into a synthetic pinned tree, so 17 checks fail at setup after the fold. Approve changing the single path in the Archive fixture list in ci/main-batch/test_admit.py to ci/main-batch/README.md. The suite would still check both file digests and reject drift in that synthetic pin. Keep the production paths and digests in ci/main-batch/admit.py as historical provenance.

  7. jparker2006 commented on Nov 19, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: asked the orchestrator

  8. jparker2006 commented on Nov 19, 2026

    @jparker2006
    MemberAuthor

    Path questions answered privately: https://github.com/jparker2006/ClosedWiz/issues/3065 (latest orchestrator ruling). The builder may push.

  9. removed
    needs-info
    on Nov 19, 2026
  10. added 3 commits that reference this issue on Nov 19, 2026
  11. 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