Skip to content

fallback-review-panel contract item 7 carries four requirements under one number, and stable numbering blocks splitting it #167

Description

@topij

Surfaced by the fallback panel on #166 (LOW, flagged independently as a length/structure concern). Not repaired there: rebuilding the contract inside a fix round is the mechanism creep fallback-review-panel.md itself warns against.

What is wrong

Contract item 7 is now 75 of 389 lines (~19%) of docs/agentic-dev-kit/fallback-review-panel.md, and it is the largest single item by a wide margin. It has been repaired in four separate changes.

The doc's own "Keep the record small" section says "A claim that has needed repairing twice is doing more work than it can carry; cut it back to what you can stand behind." Item 7 is exempt from the letter of that rule — it is executed prose, first class, so the remedy is not deletion — but the size is a real problem for a different reason: item 7 now carries four separable requirements under one number.

  1. Do not mutate the shared tree (the original requirement).
  2. Establish your placement — linked worktree vs. the shared checkout — before any write, and report HEAD + git status --short at the end.
  3. Namespace the scratch path by lens and revision.
  4. Resolve the right revision — diff against the named sha, verify the base, handle the wrong-repo case.

(2) and (4) were added on #166; (3) came from #136. A lens is handed this as one blob, and a reader looking for "how do I get to the right code" has to read past three other requirements to find it.

Why it was not just split

The obvious repair — promote each into its own numbered item — is blocked by stable numbering. Items 2, 5, 7 and 9 are referenced by number from:

So renumbering silently invalidates external references, including in tests and issue titles. #166 worked around it by appending item 10 rather than inserting, which preserves references but puts a report-shape requirement after the severity requirement instead of beside the other report-shape items (8, 9).

What a repair needs to decide

Not urgent

Nothing is broken. This is a readability and maintainability ceiling on the file that every panel run reads, filed so the next person to touch item 7 does not have to re-derive why it could not simply be split.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions