Repository navigation
[AI-0327] fix(endpoint): retain exact provider publication bytes - #523
Conversation
Compare retained canonical bytes at bind and current-proof checks. Preserve helper-owned acknowledgement data and tolerant dispatch. Document single-state lifecycle limits; AI-0330 blocks strict wiring. Sync docs pin to accepted CTX-0161 abb820b. Closes #519
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Xuepoo
left a comment
There was a problem hiding this comment.
Independent security review verdict (guard closeout, recorded from CarryCtx notes).
- Verdict: APPROVE (final targeted security rereview, CarryCtx note PX-1465; closeout note PX-1467).
- Scope: offline exact provider-publication-byte binding under CTX-0161; no authenticated Core ingress, no strict-dispatch success, no transport/Core/Lua changes.
- Reviewed head: 7f9f589 (PR #523 branch ctx-0327/fix-provider-byte-binding).
- Prior cycle: PX-1456 NEEDS-FIX (blocking P2 regression coverage) -> fixes applied (PX-1461/PX-1463) -> targeted rereview PX-1464 -> APPROVE PX-1465.
- CI on this head: all check-runs pass, mergeable CLEAN; repository
just checkgreen locally. - Explicit residual limits recorded by the reviewer: identically reconstructed state can still accept an old otherwise matching proof; cross-reset proof isolation tracked in #522/AI-0330, blocking live strict provider-list success in #521/AI-0329.
Recorded by the guard tick because no verdict comment was posted on the PR itself.
|
Reviewed the final CodeRabbit summary after the external merge. The review reports no actionable comments. All required CI checks and independent security review PX-1465 passed. The advisory docstring-coverage percentage is declined as a blanket threshold change for this fix: the repository gates do not impose that threshold, and this patch documents retained-byte behavior, the offline authorization boundary and the state-reconstruction limitation in API.md and source comments. Mechanical comments on private accessors/test helpers would not add substantive contract information. This does not claim the advisory passed. The substantive cross-reset proof-isolation limitation is tracked separately in #522 / AI-0330 and blocks live strict provider-list success in #521 / AI-0329. PR #523 does not establish authenticated Core ingress or strict success. |
Retain validated canonical provider-routing publication bytes through acknowledgement and binding. Bind and current-proof checks now compare those bytes against the actual registry projection in addition to digest, publication identity/domain/version, epoch and registry revision.
Tests isolate bind-time byte equality from digest equality, prove caller-owned acknowledgement bytes cannot replace retained state, and reject different same-revision registry projections. The docs pin moves from
0e64af0to accepted CTX-0161abb820b; the submodule mount remains uninitialized.This is an offline helper seam. Strict dispatch remains
Unbound, normal dispatch stays tolerant, and no authenticated Core ingress is added. Cross-reset proof isolation is explicitly limited and tracked in #522 / AI-0330, which blocks live strict provider-list success in #521 / AI-0329. Identically reconstructed state can still accept an old otherwise matching proof.Validation: repository
just check, 132 endpoint tests, CI/CodeQL dry-runs and secret scan passed. Independent security review APPROVE PX-1465. CodeRabbit CLI completed with zero findings on the earlier diff; the final test additions and lifecycle wording were independently re-reviewed.Closes #519
Priority: P1 | Area: model-provider | Labels: fix,P1,area:model-provider | Milestone: v0.1.0 | RFC: AIQ-38 / CTX-0161 | Task: AI-0327
Summary by CodeRabbit