Repository navigation
feature/Large-text-corpus · L-261115-8703f2 - #111
Merged
Merged
Conversation
…ot's compact template The projection corpus moves to the capture pipelex dev generates at 5c8f298a0: Text, Html and JSON contract schemas carry their inline value beside an optional stored value's url, size, mime_type and preview, and the corpus gains scaffold_stored_natives, scaffold_verdict_natives and output_native_yes_no, folding scaffold_anything_slot into scaffold_open_natives. The client projection had stayed behind pipelex's reference since it unwrapped native.JSON: a JSON slot's compact template is now the bare object its json_obj carries, for a single slot, a refining concept and each element of a JSON[] slot, which the input shaper reads literally. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lchoquel
marked this pull request as ready for review
November 16, 2026 10:32
Codex Review Summary: 🔄 RunningThis 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. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
TL;DR
devgenerates after large Text, Html and JSON values became storable, and the client's compact inputs template for aJSONslot is now the bare object, as pipelex's reference projection renders it.url(standard 9.0.0), and the copy here was behind pipelex even before that change.JSONslot now receives{}instead of the{concept, content: {json_obj}}envelope.Behaviour changes
native.JSONslot, a slot of a concept refining it, and each element of aJSON[]slot in a compact template:{"concept": "native.JSON", "content": {"json_obj": {}}}→{}. The explicit shape is unchanged.Breaking changes
project_inputs_templateorrender_inputs_templatewithexplicit=Falsethat read the envelope at aJSONslot now reads the object itself; the runtime's input shaper reads a bare object at aJSONposition literally.Changes
Corpus
tests/fixtures/protocol/(input_form.json,output_form.json,pipe_io_contracts.json,inputs_template/**) copied byte for byte frompipelex-dev generate-projection-corpusat pipelexdev5c8f298a0, the same bytes as the mthds-js twin. Text, Html and JSON contract schemas carry optionaltext/inner_html/json_objbeside optionalurl,size,mime_typeandpreview;scaffold_stored_natives,scaffold_verdict_nativesandoutput_native_yes_noare new;scaffold_anything_slotis folded intoscaffold_open_natives; the manifest's unshapeable record now holds only the nested-list gap.tests/fixtures/protocol/README.md: provenance, the standard 9.0.0 shapes, and the unshapeable record updated.Client projection
mthds/protocol/inputs_template.py:JSONleaves the envelope-keeping set;keeps_envelopereturns false for aJSONnode (lists included), and the compact value of aJSONnode is the projection of itsjson_obj, mirroringprojection_reference.pyin pipelex.Tests
tests/unit/test_inputs_template_rendering.py: theJSONcompact rule held by name, for a single slot, a refining concept and aJSON[]slot.tests/unit/test_protocol_pipe_io_contracts.py: every captured single Text, Markdown, Html or JSON slot states its inline value and a stored value's fields, requiring neither.tests/unit/test_data.py: the cases, and the hand-written_TEXT_SCHEMAprobe no longer requirestext.How it was verified
DO_NOT_TRACK=1 make agent-check:> done: agent-check(ruff, pyright 0 errors, mypy no issues, error registry agrees).DO_NOT_TRACK=1 make agent-test:All tests passed.scaffold_open_nativesandscaffold_stored_natives, and nowhere else.diff -rof the generated corpus (withoutengine/) againsttests/fixtures/protocol/: onlyREADME.mdand.gitattributesdiffer, as intended.Documentation
docs/inputs-template.md: theJSONcompact rule, and why the storable natives need no rule of their own.tests/fixtures/protocol/README.md: provenance and the new shapes.CHANGELOG.md: one### Changedentry under[Unreleased].Not done
conformance/tests/mthds/fixtures/protocol_corpus_census.jsonstill listsscaffold_anything_slotand lacks the new pipes; that census belongs toconformance.Closes L-261115-8703f2
Advances L-261113-38f717
🤖 Generated with Claude Code
Summary by cubic
Updates the compact inputs template so a
JSONslot renders as the bare object it carries — for a single slot, a concept refiningnative.JSON, and each element of aJSON[]slot — and re-commits the projection corpus from pipelexdevat the change that made Text, Html and JSON values storable.This is breaking: a consumer of
project_inputs_templateorrender_inputs_templatewithexplicit=Falsethat read the{"concept": "native.JSON", "content": {"json_obj": {}}}envelope at aJSONslot now reads the object itself, which the runtime's input shaper accepts literally. The explicit shape is unchanged.Corpus
dev, addingscaffold_stored_natives,scaffold_verdict_nativesandoutput_native_yes_no, and foldingscaffold_anything_slotintoscaffold_open_natives.url,size,mime_typeandpreviewstored-value fields, none required.Written for commit 3dca698. Summary will update on new commits.