Skip to content

Infra CC1: the comments contract and its checker, first #1816

Closed

Description

@jparker2006

Parent

Ticket CC1 of spec #1815 (Infra). Size: M.

What to build

The comments contract and its checker, before any cut. The contract states what stays (the spec's list, carried from Lauren Tan's /no-comments in our own words, crediting it), the meaning-first rule, the escape tag with its required reason, what counts as a comment in each language our repositories use, what is excluded from counts, and the BEFORE and AFTER count report. The checker (standard-library Python, one file, no dependencies) has a diff mode for CI, which reads only added lines, and a count mode. Read pstack's no-comments skill and its subagent on GitHub first (MIT); copy no text word for word.

Owned paths

  • contracts/comments.v1.md
  • contracts/comments.v1.schema.json (the count report)
  • contracts/fixtures/comments/
  • tools/comment-check/ (the checker and its tests)

Relies on: nothing

Links

none

Acceptance criteria

  • Each allowed kind passes and each disallowed kind fails with its file and line, in every listed language
  • The escape tag passes only with a non-empty reason
  • The diff mode fails only on added lines; the count mode matches a fixture tree's known count
  • The credit to pstack (Lauren Tan, MIT) is in the contract
  • Off limits: never edit a file in an open pull request of a 0.1.0 must-list ticket before RL1 (0.1.0 RL1: OpenWiz 0.1.0 ships before Demo Day: branch, changelog, gates and publish #1671) records the release branch cut, a file owned by an open cleanup wave 3 ticket (Infra spec: Cleanup wave 3: the kernel, drivers, CLI and app, nothing else #1774), or the private repository's frozen copy. Read the lists at start and at each merge of main; the pull request lists what it skipped.
  • 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

P1: the checker's fixtures, red first.

Activity

  1. added this to the Infra milestone on Nov 20, 2026
  2. added
    held
    on Nov 20, 2026
  3. added
    ready-for-agent
    and removed
    held
    on Nov 20, 2026
  4. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: start checked, branch room/1816-comments-contract

    collision checked by the J87 planner: disjoint from #1187's paths; its unreadable bullet is WizSkills-only

  5. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    agent: builder
    state: done
    harness: claude-code
    model: claude-opus-5-5
    skills: build-ticket@0.2.0
    step: Handed back PR #1842 at 502b1f3: main merged in, all comment-check proofs pass.
    time: 2026-11-20T15:42:47Z
    pr: #1842

  6. added 4 commits that reference this issue on Nov 20, 2026
  7. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: cost unknown (PR #1842): no cost command

  8. 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