Repository navigation
test(interactive): S07 authenticated Host oversize receipt recovery - #9
Merged
Merged
Conversation
…nded retry/terminal; reject forged raw overflow
…ilure receipt and bounded retry semantics
…enticated bounded result capacity exit
Contributor
Author
S07 Trusted Host 超限契约 — 独立复审(2026-11-11)审查对象:精确 HEAD 源码与边界复审
新增端到端行为验证(真实 Compiler + Program + Store + Trusted Host + Ed25519 + Coordinator,脚本传输事件)
精确 HEAD CIGitHub Actions 42946128092:7/7 completed/success。Ubuntu/Windows × Node22.13/24.22 四矩阵 裁决:本次 Host 超限契约和集成测试 PASS,可按已授权门禁 squash 合并 PR #9。 |
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.
P0-A S07 — Trusted Host → Coordinator oversize boundary, strictly scoped
Following the audited S07 capacity fix merged as #8, this PR proves the remaining security/operation distinction:
(1) Unauthenticated raw receipt over 2 MiB:
host.acceptmust rejectFK_I_PROVENANCE_REJECTEDwithout changing Checkpoint, Journal or receipt index. A model is never permitted to force a terminal transition just by sending oversized data.(2) Genuine Host-observed oversized model response: a trusted Host transport, after independently verifying its provider/session event, creates an existing bounded
agent-call-failedreceipt with a constant-sized error message; the existing Ed25519 attestation → Host verification → Coordinator CAS executes normal bounded retries and terminalFK_R004on exhaustion. Exact requestId/nodeId/attempt, immutable Program, State privacy, and existing receipt/Ack history remain pinned. No new signed message kind, no new storage or Context module.(3) Signed bounded result that cannot fit the active Checkpoint: existing
FK_I_CHECKPOINT_CAPACITYterminal behavior in #8 remains unchanged.New evidence
tests/interactive/host-oversize.test.mjs: raw overflow/forged failure negatively rejected with no writes, authenticated failure followed by second-attempt reference result (with duplicate Ack + Host recreation), and no-retry terminalFK_R004.docs/interactive-host-security.md: precise Host-owned streaming limit observation, bounded signed failure recipe, no authority from model text, failure vs capacity-exit distinction.docs/interactive-s07-capacity.md: fix earlier ambiguity that every oversized raw input automatically terminates a Run.Important: The test's Host transport size observation is scripted; this is NOT genuine Codex/Claude/Grok provider evidence. M6 PR #7 remains Draft until S13 passes.
Required gates
Full Ubuntu/Windows × Node22/24
npm run verifywith Standard regression, types, package/docs, website, and Linux Host OS isolation, precise-final-HEAD independent source review. Only squash merge when all pass. Do not publish or proceed to P0-B/P1/P2.Note
Low Risk
Docs and test-only changes; behavior under test is security-sensitive but this PR does not modify production code paths.
Overview
Clarifies three distinct oversize failure modes for trusted Host integrations and adds end-to-end test evidence—no runtime/SDK changes in this diff.
Documentation:
interactive-host-security.mdgains a Host → Coordinator oversize contract section: unverified receipts over the 2 MiB v1 limit are rejected vianormalizeHostAgentReceipt/FK_I_PROVENANCE_REJECTEDwith no Checkpoint, Journal, or receipt-index writes; Host-observed provider overflow must produce a bounded, signedagent-call-failedreceipt (retries thenFK_R004); checkpoint budget overflow remainsFK_I_CHECKPOINT_CAPACITY. Includes illustrative Host transport logic usingnormalizeHostAgentReceipt.interactive-s07-capacity.mdis updated so oversized raw input is not conflated with capacity-terminal behavior.Tests: New
host-oversize.test.mjscovers raw/forged oversize rejection with unchanged store state, authenticated transport failure → retry → small reference success (duplicate Ack, Host reopen), and no-retry durableFK_R004.Reviewed by Cursor Bugbot for commit 70394d4. Bugbot is set up for automated code reviews on this repo. Configure here.