Skip to content

docs(design): retire legacy {accepted} envelope wording from §3.4 (#40)#92

Open
viktor-shcherb wants to merge 1 commit intomainfrom
fix/40-design-envelope-wording
Open

docs(design): retire legacy {accepted} envelope wording from §3.4 (#40)#92
viktor-shcherb wants to merge 1 commit intomainfrom
fix/40-design-envelope-wording

Conversation

@viktor-shcherb
Copy link
Copy Markdown
Member

Summary

Closes #40. `DESIGN.md` §3.4 still described `submit_result` as
returning `{ accepted: true } | { accepted: false, errors: [...] }`.
PR #38 landed the canonical `{ ok, errors?, data? }` envelope as the
single shape for every agent endpoint (`docs/contracts.md` §4 + §4.4);
the `grep:no-accepted-key` gate enforces the absence of the legacy
form in source / test files. The two docs disagreed.

This PR updates §3.4 to point at `docs/contracts.md` §4 / §4.4 as
authoritative + drops the "will be reconciled when DESIGN.md is next
revised" note in contracts.md §4.4 — that's exactly what this PR does.

Test plan

  • `pnpm grep:all` passes (no `accepted:` literal anywhere outside
    the `grep:no-accepted-key` script + the negative-assertion text
    in contracts.md §4.4)

🤖 Generated with Claude Code

DESIGN.md §3.4 still described `submit_result` as returning
`{ accepted: true } | { accepted: false, errors: [...] }`. PR #38
landed the canonical `{ ok, errors?, data? }` envelope as the single
shape for every agent endpoint (docs/contracts.md §4 + §4.4); the
`grep:no-accepted-key` gate enforces the absence of the legacy form
in source / test files. The two docs disagreed.

Update §3.4 to point at docs/contracts.md §4 / §4.4 as authoritative
and call out the legacy shape as retired. Drop the "will be reconciled"
note in contracts.md §4.4 — that's what this PR does.

Closes #40.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DESIGN.md §3.4 still uses legacy {accepted: true|false} envelope wording

1 participant