Repository navigation
Add explicit retained-column Draft document validation - #337
Conversation
Signed-off-by: kikashy <kikashy@hotmail.com>
Signed-off-by: kikashy <kikashy@hotmail.com>
Signed-off-by: kikashy <kikashy@hotmail.com>
Signed-off-by: kikashy <kikashy@hotmail.com>
Independent review of Runtime PR #337Recommendation: request changes for R1 before approval. One MEDIUM finding; no HIGH or LOW findings. The completed source review found no other actionable defects in this candidate. Reviewed head: Reviewer: OpenAI Codex, host launch selection R1 — MEDIUM: literal U+2028/U+2029 still make an admitted Base response exceed the client envelopeLocation:
The existing mixed-character stress test first constructs its input with Go's JSON encoder. That encoder has already expanded both characters before the frame byte ceiling is measured. The test therefore does not cover literal UTF-8 separator input even though it names both characters. Handwritten independent probes supplied a complete generated frame with
Expected: the supported Base frame has a complete response consumable by the bounded 16 MiB client while retaining both equivalent report forms and the exact retained data/digest. Actual: the server accepts the small request and reports success, but the response line exceeds that client limit by 1,399,731 bytes. The first newline is outside the permitted line window. Both decoded report forms agree and retained bytes/digests remain correct; the defect is complete response admission, not data corruption or an authorization bypass. Disposition recommendation: fix this selected response path in the builder's fix round and add raw literal UTF-8 U+2028/U+2029 regression fixtures that do not pre-escape their frame through Go's encoder. Verify the complete serialized response through the bounded client reader, preserve ordinary serialization and exact data, and validate the fix's full escaping behavior. Do not silently reduce the supported Base frame envelope, remove a report form, clip data or raise a global limit. Re-read the fix against this finding after exact-head CI; no unrelated broad review is requested. Evidence: Scope and evidence assessmentThe complete sixteen-file diff was reviewed, including the CLI and MCP routes, shared ordinary reader changes, frame/declaration parser, selected discovery/input schemas, documentation and added tests. The byte-exact 673,006-byte corpus and schema were checked by SHA-256 and matched independently fetched Git blobs at the pinned immutable Spec revision. Runtime's use of these cases is explicitly document/frame admission; it does not claim to run their conversion or preparation expectations. The exact trusted Draft tuple is revision Source inspection and the reused tests cover base document/frame ceilings of 1/2 MiB, explicit document-only Extended selection with 2/4 MiB ceilings, profile mismatch refusal, independent parser budgets, fixed retained spelling/declaration limits, duplicate and surrogate refusal, target ownership and source ordering. Raw All sixteen source hashes from the completed stable-batch checklist matched the exact reviewed commit. Its recorded uncommitted candidate diff hash equals this commit's complete diff hash; its base-head field correctly reflects that precommit execution. Reused local evidence: nine checks passed, zero failed/skipped/not run, exit 0, sources unchanged. Reused coordinator-verified CI evidence: run The PR correctly limits its claims to an experimental document-validation role. The Extended capability does not establish Runner Extended preparation. Merged Draft source does not establish normative adoption; the development binary and this source PR do not establish a released supported dependency. Agent #171's final certified two-language tool integration, actual consumer compatibility and upstream adoption/release gates remain separate. This review supplies no live provider or whole Desk execution evidence. Finding disposition
Source was clean and unchanged when this report was frozen. No implementation edits, Git publication, installs, cleanup, CI mutation or delegation were performed. The reviewer stops here so the parent can reuse the builder for the bounded fix. Runtime PR #337: original-reviewer confirmation of R1R1 is closed at This is a continuation of the original independent reviewer session, with its original OpenAI Change assessedI inspected the complete original-head-to-confirmed-head diff relevant to R1. Fix commit This is a documented layout adjustment to the selected unpublished report, not a reduction of accepted input or loss of source data. No output schema in this change promises the previous duplicated typed frame. Ordinary reports, default selection, trusted pins, input schemas/corpus, input and parser limits, and both JSON encoders are unchanged. Three carried Devkit provenance comments are the only other changes from the original review; their executable text is unchanged. The serialization bound now follows the representation: a valid Base frame of F bytes is retained once per report. Its JSON string encoding requires at most 2F plus quotes, and quoting that report text again at most 4F plus fixed overhead. Both forms therefore require at most 6F plus bounded report/summary and normal fixed request-ID framing overhead. At F=2 MiB this leaves approximately 4 MiB beneath the 16 MiB client window. This bound is for the selected Base report under the exercised client framing; it does not establish a general Extended-response or arbitrary JSON-RPC-envelope guarantee. VerificationI verified the fix manifest SHA-256 To avoid duplicate application runs, I independently read the recorded actual-binary responses to both original reviewer requests through a bounded 16,777,216-byte client line reader. Both complete lines fit, contain no trailing second response, and parse successfully. I checked equivalent text/structured reports, successful status, exact original document/digest, full frame reconstruction and summary counts.
I inspected and reused the verified 33 focused transport witnesses. They cover actual CLI/MCP paths, literal and escaped separators, mandatory quote/backslash expansion, literal backslash-u spellings, mixed Unicode/escaping, full-document reports, asserted/generated frame families, exact limits and one-over refusals. Their largest complete dual response is 12,584,841 bytes; the full-document maximum witness is 6,292,617 bytes. The reconstruction fixture preserves noncanonical source spacing/order, historical null, absence, opaque malformed typed JSON and ordered declarations. The internal typed-frame preservation check passes. Nine exact-byte comparisons cover five ordinary outputs and four unaffected selected contract/document outputs; all are equal. The verified safeguard-removal control restores the duplicated typed-frame wire representation and fails at the intended bounded-client assertion ( Reused exact-head CI record: run Disposition and limits
This confirmation covers R1, its representation change, regression coverage and relevant interactions. It is not a restarted whole-PR review. The original review supplies the remaining source assessment. No new actionable issue was found within this scope. Downstream consumer inspection statements in builder/coordinator evidence are supporting context, not an independently rerun Agent/Runner interoperability test. The selected capability remains experimental document-validation only. Draft publication/merge is not normative adoption. The development binary and source PR do not satisfy immutable artifact publication, actual complete consumer compatibility or release gates. The parent owns those remaining decisions. No source, Git or public mutation, install, cleanup, delegation, broad test run or additional binary build was performed. The original review and failing probe evidence remain unchanged. This finding-specific record and its hash manifest are frozen separately under Maintainer disposition
No new actionable finding in the bounded confirmation. This is the authorized same-vendor Codex review; it is not cross-vendor compliance. Normative adoption and published dependency/artifact gates remain separate. |
|
🎉 Thank you for your contribution to Judgment Pack! If you’d like another task, choose a path that interests you: |
Agent's retained-column authoring path needs an explicitly selected Runtime document reader. This adds experimental CLI/MCP selection pinned to reviewed RFC0029 source
ade3914b0b81ef299e5b9a8d6147f37ff3f0976c, byte-exact schema/corpus fixtures, discovery metadata, bounded document/frame validation and exact retained-byte digests. Ordinary paths retain their existing behavior.Selected Draft MCP serialization preserves both text and structured representations. The unpublished standalone frame report keeps its complete original
documentand digest, plus boundedframeSummarycounts; the typed frame remains internal rather than duplicating every decoded value on the wire. This closes review finding R1: raw Unicode separators and mandatory quote/backslash escaping previously exceeded the 16 MiB client envelope. No accepted input domain or transport limit is reduced or enlarged.Supports Judgment-Pack/judgment-pack-agent#171 and Judgment-Pack/judgment-pack-spec#271. This PR implements the document-validation role only. Normative adoption, producer authenticity, preparation/offline roles, final Agent compatibility and published dependency support remain separate gates.
Material-decision impact: caller-selected experimental document admission and MCP response handling. Independent clean-room Codex review under the maintainer's temporary same-vendor exception found one MEDIUM (R1). The original reviewer confirmed R1 closed at the current head after all five exact-head CI jobs passed; no new actionable findings. The verbatim review and disposition are recorded here. This is not cross-vendor compliance.
Checks
One full local checklist at original candidate
c15fe243c9f14388c4f20334f1847d8db72c6b7a, Go 1.26.10 / Python 3.12.11:After R1, focused validation covers 33 actual CLI/MCP transport witnesses, complete reconstruction, typed-frame preservation, nine byte-exact comparisons (five ordinary and four unaffected selected surfaces) and both original reviewer requests. The largest tested Base response is 12,584,841 bytes; both raw-separator reviewer requests return 9,089,880-byte consumable, equivalent responses. Restoring only duplicate frame serialization fails at the intended bounded-client assertion (18,177,185 bytes); restored production passes. Complete original values, declaration order, null/absence, raw spelling and digest are retained.
Current candidate:
735566bc12915a3c40d612424ba8aa7701363857. The coordinator verified 1,349 source hashes and 29 artifacts before committing the four-file fix. Main and GitHub's automated carry changed only three Devkit provenance comments; merging the automatic carry preserved the final tree exactly. No repeated full suite was run for this bounded fix. All five exact-head CI jobs passed in run40403014277; the original independent reviewer confirmed the fix. Normative adoption and publication/artifact gates remain separate.