Repository navigation
mcpx: route revision comparisons through internal/spec predicates (#2211) - #2849
Conversation
) Phase 2 of #2209: mcpserver.AtLeast delegates to spec.AtOrAfter; Modern(), CallerLegacy, the client.go listen check, and elicitModeDeclared (same file/pattern, found on current main) go through spec predicates. Pure refactor, semantics identical (empty revision rejected by both forms). daemon/hooks.go:291 left alone: it deliberately treats an empty Negotiated as passing, which spec predicates do not express, and it sits outside the triage-named packages.
|
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 34 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. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Phase 2 of #2209 — one predicate vocabulary for revision comparisons, per the triage verdict on #2211 (queue task 3952).
Changes (pure refactor, semantics identical — both forms reject the empty revision and compare ISO dates lexically):
internal/mcpserver/revisions.go—AtLeastnow delegates tospec.AtOrAfter(call sites inconn.goandDefinesunchanged).internal/mcpserver/server.go—Modern()viaspec.AtOrAfter("2026-07-28").internal/mcpclient/modern.go—CallerLegacyviaspec.Before("2026-07-28"); alsoelicitModeDeclared'sNegotiated >= "2025-11-25"viaspec.AtOrAfter— a fifth site with the identical pattern in a triage-named file, found on current main (line drift since triage).internal/mcpclient/client.go— the standalone-GET listen check viaspec.AtOrAfter("2025-03-26").After this change, no file in
internal/mcpserverorinternal/mcpclient(outsideinternal/specitself) contains a raw revision-date ordering comparison.Deliberately left alone:
internal/daemon/hooks.go:291(era.Negotiated >= "2025-11-25") — it deliberately treats an emptyNegotiatedas passing (era.Negotiated == "" || ...), which the spec predicates do not express, and it sits outside the packages triage named for this phase. Flagging it here for a follow-up decision rather than silently expanding scope or changing its semantics.Verification: full
pkgs/mcpxsuite runs in CI on this PR per fleet policy; acceptance requires every test verdict unchanged — any changed verdict is a stop-and-report, not an adjustment.Closes #2211 (on merge).
Need help on this PR? Tag
@codesmith-botwith what you need.