Skip to content

docs(cap): reading context is part of CAP's minimum, so every page counts five (F223) - #3780

Merged
lilyshen0722 merged 2 commits into
mainfrom
launch/f223-cap-count
Nov 8, 2026
Merged

lilyshen0722 merged 2 commits into
mainfrom
launch/f223-cap-count

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

docs/architecture/CAP.md said CAP has five kernel interfaces, and ADR-004 said four concepts across six routes. Both were half right.

Since #2580 (10-24) the send guard answers a post with 409 unseen_messages while the pod has messages the agent hasn't read. The context read (GET /api/agents/runtime/pods/:podId/context) is what clears it, and continueAnyway: true is the explicit override. A driver with only ADR-004's four verbs can't post reliably, so the context read is part of the minimum.

What changes

  • ADR-004: a dated amendment under its verbs table. Reading context is a fifth concept, and the minimum is five concepts across seven routes. ADR-004 itself says CAP additions need an amendment, so this is that amendment.
  • CAP.md: a short note on why it counts five, and the POST /memory/sync route it was missing (ADR-004's table already had it).
  • CLAUDE.md: its two CAP lines now say five interfaces and point at the amendment.

Docs only (Tier 0). No code or behaviour change.

🤖 Generated with Claude Code

https://claude.ai/code/session_01N4VWLFruMmTgvAUfXSZdUw

…unts five (F223)

CAP.md listed five kernel interfaces and ADR-004 four concepts across six
routes. Since #2580 the send guard holds a post until the agent has read
the pod, so a driver with only the four verbs gets 409 unseen_messages:
the context read is part of the minimum. ADR-004 gains a dated amendment
saying so, CAP.md says why it counts five and adds the memory sync route
it was missing, and CLAUDE.md's two CAP lines match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N4VWLFruMmTgvAUfXSZdUw
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 9 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between ab4417d and 74630cb.

Files selected for processing: 3

  • CLAUDE.md
  • docs/adr/ADR-004-commonly-agent-protocol.md
  • docs/architecture/CAP.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

…d tail; catch-up is the explicit skip (F223)

The context read returns the 12 most recent messages and clears the hold
only when every unread message is among them. CAP.md and the ADR-004
amendment said it always clears; both now name catch-up with
confirmSkipHistory as the way past a longer tail. The ADR's own "four
concepts across six routes" and "all four are pull-only" lines point at
the amendment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N4VWLFruMmTgvAUfXSZdUw

@lilyshen0722 lilyshen0722 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gate at 74630cb. Tier 0 (docs only), reviewed by a Haiku subagent. The first round, at 78ddc1c, was a HOLD with two defects. The same reviewer re-verified the fix commit and returned PASS.

  • Claim checked against the code: the post route's send guard (AgentSendFreshness.unseenMessages, continueAnyway) gives the 409 that makes the context read part of the minimum. Seven routes, counted.
  • HOLD 1, fixed: a context read clears the hold only when the unread tail fits in the 12 messages it returns. A longer tail needs POST /pods/:podId/catch-up with confirmSkipHistory: true, which stays outside the seven routes. CAP.md and the amendment now both say this.
  • HOLD 2, fixed: ADR-004's own "four concepts across six routes" and "all four are pull-only" lines now point at the amendment.
  • Left as is (reviewer's optional nit): historical "4 verbs" mentions further down the ADR, which the amendment's read-as clause covers.
  • Lanes: docs (ADR-004, CAP.md) and two CLAUDE.md lines, which are a sensitive path and need a hand press. No code, no infra identifiers.

GATE: PASS

@lilyshen0722
lilyshen0722 added this pull request to the merge queue Nov 8, 2026
Merged via the queue into main with commit 6fb0f35 Nov 8, 2026
35 checks passed
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.

1 participant