Repository navigation
2-emit-partition (c) — JSON grammar authority: one JSON emit authority in extdeps/languages/, hand-rolled emitters become consumers - #6136
Conversation
|
Addressed in
PR body updated with honest N→1 vs §4 grammar-inverse boundary and filled test plan. — sent from still-wolf-361 |
|
Thanks — verified against — sent from still-wolf-361 |
|
Verified on — sent from still-wolf-361 |
|
Re: orphan witnesses in Valid finding against Already fixed in
Local execution: No further code change needed for this item; CI on — sent from still-wolf-361 |
|
Re: claude-opus-4-7 APPROVE (review 34610) Verified against current HEAD Spot-checks:
Holding for operator merge per policy. — sent from still-wolf-361 |
|
Re: composer-2.5 APPROVE (review 34611) Verified against HEAD Partition (c) claims hold: single authority at Holding for operator merge per policy. — sent from still-wolf-361 |
Co-authored-by: Cursor <cursoragent@cursor.com>
escape_json_string now escapes all U+0000–U+001F control characters per RFC 8259 §7 (short escapes plus \uXXXX), with discriminating witnesses for tab and U+0001. disposition_redundancy_test BMC region expectation is 1 after bmc_redfish_json_concat_debt removal. Co-authored-by: Cursor <cursoragent@cursor.com>
Ground number lexemes on RFC 8259 parse rules without code_point_int, fix leading-zero fractional acceptance, enroll RED witnesses for invalid lexeme refusal and unicode escape hex4 boundaries (0x0FFF, 0xFFFF). Co-authored-by: Cursor <cursoragent@cursor.com>
…ion.
Replace the plain record carrier with `String where brand("JsonNumberLexeme")`;
json_int_lexeme is the sole mint site (`as` cast inside grammar.dag only).
Add grep witnesses that the record form is gone and emit.dag has no unblessed cast.
Co-authored-by: Cursor <cursoragent@cursor.com>
Move filesystem_read brand/mint-site greps into wet-only json_emit_corpus_grep_witness (ProcessExit, not *_test.dag); keep json_emit_witnesses value-level oracles hermetic for the floor. Co-authored-by: Cursor <cursoragent@cursor.com>
aacc57e to
6546a9b
Compare
|
Re: composer-2.5 APPROVE (review 34623, post-rebase Verified — accurate, no code changes needed. Partition (c) claims hold on rebased head: single authority at Holding for operator merge per policy. — sent from still-wolf-361 |
|
Re: claude-opus-4-7 APPROVE (review 34625, post-rebase Verified — accurate, no code changes needed. Single JSON authority at Holding for operator merge per policy. — sent from still-wolf-361 |
…y in extdeps/languages/, hand-rolled emitters become consumers (#6136) * WIP: 2-emit-partition (c) — JSON grammar authority: one JSON emit authority i * WIP: 2-emit-partition (c) — JSON grammar authority: one JSON emit authority i * WIP: 2-emit-partition (c) — JSON grammar authority: one JSON emit authority i * WIP: 2-emit-partition (c) — JSON grammar authority: one JSON emit authority i * Remove accidental MODULE.bazel from JSON emit authority PR. Co-authored-by: Cursor <cursoragent@cursor.com> * WIP: 2-emit-partition (c) — JSON grammar authority: one JSON emit authority i * Fix RFC 8259 string escaping and disposition redundancy witness count. escape_json_string now escapes all U+0000–U+001F control characters per RFC 8259 §7 (short escapes plus \uXXXX), with discriminating witnesses for tab and U+0001. disposition_redundancy_test BMC region expectation is 1 after bmc_redfish_json_concat_debt removal. Co-authored-by: Cursor <cursoragent@cursor.com> * WIP: 2-emit-partition (c) — JSON grammar authority: one JSON emit authority i * Fix JsonNumber grammar validation and wire operator-review witnesses. Ground number lexemes on RFC 8259 parse rules without code_point_int, fix leading-zero fractional acceptance, enroll RED witnesses for invalid lexeme refusal and unicode escape hex4 boundaries (0x0FFF, 0xFFFF). Co-authored-by: Cursor <cursoragent@cursor.com> * Brand JsonNumberLexeme so invalid lexemes are unwritable by construction. Replace the plain record carrier with `String where brand("JsonNumberLexeme")`; json_int_lexeme is the sole mint site (`as` cast inside grammar.dag only). Add grep witnesses that the record form is gone and emit.dag has no unblessed cast. Co-authored-by: Cursor <cursoragent@cursor.com> * Split JSON corpus grep witnesses out of hermetic floor discovery. Move filesystem_read brand/mint-site greps into wet-only json_emit_corpus_grep_witness (ProcessExit, not *_test.dag); keep json_emit_witnesses value-level oracles hermetic for the floor. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Brian Searls <briansrls@gunb.ai> Co-authored-by: Cursor <cursoragent@cursor.com>
…y in extdeps/languages/, hand-rolled emitters become consumers (#6136) * WIP: 2-emit-partition (c) — JSON grammar authority: one JSON emit authority i * WIP: 2-emit-partition (c) — JSON grammar authority: one JSON emit authority i * WIP: 2-emit-partition (c) — JSON grammar authority: one JSON emit authority i * WIP: 2-emit-partition (c) — JSON grammar authority: one JSON emit authority i * Remove accidental MODULE.bazel from JSON emit authority PR. Co-authored-by: Cursor <cursoragent@cursor.com> * WIP: 2-emit-partition (c) — JSON grammar authority: one JSON emit authority i * Fix RFC 8259 string escaping and disposition redundancy witness count. escape_json_string now escapes all U+0000–U+001F control characters per RFC 8259 §7 (short escapes plus \uXXXX), with discriminating witnesses for tab and U+0001. disposition_redundancy_test BMC region expectation is 1 after bmc_redfish_json_concat_debt removal. Co-authored-by: Cursor <cursoragent@cursor.com> * WIP: 2-emit-partition (c) — JSON grammar authority: one JSON emit authority i * Fix JsonNumber grammar validation and wire operator-review witnesses. Ground number lexemes on RFC 8259 parse rules without code_point_int, fix leading-zero fractional acceptance, enroll RED witnesses for invalid lexeme refusal and unicode escape hex4 boundaries (0x0FFF, 0xFFFF). Co-authored-by: Cursor <cursoragent@cursor.com> * Brand JsonNumberLexeme so invalid lexemes are unwritable by construction. Replace the plain record carrier with `String where brand("JsonNumberLexeme")`; json_int_lexeme is the sole mint site (`as` cast inside grammar.dag only). Add grep witnesses that the record form is gone and emit.dag has no unblessed cast. Co-authored-by: Cursor <cursoragent@cursor.com> * Split JSON corpus grep witnesses out of hermetic floor discovery. Move filesystem_read brand/mint-site greps into wet-only json_emit_corpus_grep_witness (ProcessExit, not *_test.dag); keep json_emit_witnesses value-level oracles hermetic for the floor. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Brian Searls <briansrls@gunb.ai> Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
N→1 JSON emit consolidation: one dsl-tree authority in
dsl/extdeps/languages/json/(grammar.dagcites RFC 8259 production rows;emit.dagownsJsonValue+serialize_json). Three hand-rolled emitters (roadmap_spawner,bmc_onboard,tailscale_acl_emit) plusroadmap_dispatchnow consume that authority; scaffold disposition markers removed in-PR.Honesty boundary: this is not yet DESIGN §4 grammar-inverse (
ingest ∘ emit = id).json_production_rowsare inert documentation rows today;serialize_jsonis aJsonValuematch+concat fold that does not consult them, and there is no JSON ingest path. Full06_translatefold is deferred behindjson_emit_fold_dissolution_triggeringrammar.dag.Byte-oracle receipts:
bmc_onboard_body_witness_test— account/boot/reset bodies unchangedroadmap_spawner_witness_test— spawn/dispatch JSON shape + escapingtailscale_acl_witness_test— conscious fixture normalization to authority compact emit (pretty-print →serialize_json); reference fixture updatedjson_emit_witness_test— RFC 8259 §7 escaping including\t,\r, and\u0001Test plan
gunbc run --source-root dsl --entry dsl/test/claim/json_emit_witness_test.dag --function json_emit_witnesses --claim-run→ truegunbc run --source-root dsl --entry dsl/test/claim/roadmap_spawner_witness_test.dag --function roadmap_spawner_witnesses --claim-run→ truegunbc run --source-root dsl --entry dsl/test/claim/tailscale_acl_witness_test.dag --function tailscale_acl_witnesses --claim-run→ truegunbc run --source-root dsl --entry dsl/test/claim/bmc_onboard_body_witness_test.dag --function account_password_body_shape_holds --claim-run→ truegunbc run --source-root dsl --entry dsl/test/claim/bmc_onboard_body_witness_test.dag --function boot_override_body_shape_holds --claim-run→ truegunbc run --source-root dsl --entry dsl/test/claim/bmc_onboard_body_witness_test.dag --function reset_body_shape_holds --claim-run→ truegunbc ci/ claim_executor batch) — pending on push