✨ feat: P-40 approvals ask only for what needs the owner

Merged
AT
1mo ago
+251-19

Slice: #99

  • A request on GitHub is its own approval. A slice added after its work item's approval passes when its body links …/issues/<work item>#issuecomment-<id> and that comment, as GitHub returns it among the work item's comments, is the owner's, made before the slice was last added, and not edited since (REST does not say who edited a comment, and the agent can edit others').
  • Fixes need no approval, and no new rule. A fix restores what the owner approved and changes nothing they would see beyond it: it is filed as a State under the slice it fixes, and its pull request names that slice, open or closed. That already passes; a test pins it. A fix filed as its own slice keeps the πŸ‘, since no code rule can tell from an issue's text whether a change goes beyond what was approved.
  • Chat requests keep the πŸ‘, unchanged.
  • Self-contained proposals. propose writes what changes (the slice's **You will see:**), why (**Why:**), what it costs (**Cost:**, else one more slice to review) and what happens if declined; a dropped State takes its own **Why:**. It refuses, posting nothing, while a body lacks those sections, naming them. The first line and its #N are unchanged, so existing proposals still count.
  • README approvals section and a docs/decisions.md record for P-40. No version bump.

πŸ€– Generated with Claude Code


Summary by cubic

Implements P-40 so approvals ask the owner only for what needs them: an owner's request on the work item approves a late-added slice, fixes filed as States need no approval, and propose writes proposals that stand alone.

New Features

  • A slice added after approval passes when its body links the owner's comment (…/issues/<work item>#issuecomment-<id>), written before the slice's latest addition; a comment edited since does not count.
  • A fix filed as a State under the slice it fixes, with a pull request naming that slice, needs no approval; a fix filed as its own slice keeps the πŸ‘.
  • Chat requests keep the existing πŸ‘ path.

Refactors

  • propose posts what changes, why, what it costs, and what happens if declined; for a dropped State it relies on the state's own **Why:**, and posts nothing while a body lacks a needed section, naming it.
  • README approvals section and docs/decisions.md record added; no version bump.