Repository navigation
docs(cap): reading context is part of CAP's minimum, so every page counts five (F223) - #3780
Merged
Merged
Conversation
…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
|
Warning Review limit reachedYou'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. View limit details
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. |
…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
commented
Nov 8, 2026
lilyshen0722
left a comment
Contributor
Author
There was a problem hiding this comment.
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-upwithconfirmSkipHistory: 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docs/architecture/CAP.mdsaid 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_messageswhile the pod has messages the agent hasn't read. The context read (GET /api/agents/runtime/pods/:podId/context) is what clears it, andcontinueAnyway: trueis 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
POST /memory/syncroute it was missing (ADR-004's table already had it).Docs only (Tier 0). No code or behaviour change.
🤖 Generated with Claude Code
https://claude.ai/code/session_01N4VWLFruMmTgvAUfXSZdUw