Skip to content

docs(plans): reconcile Go JSON delivery with merged implementation - #1353

Open
coderdan wants to merge 5 commits into
nextfrom
docs/go-json-tree-plan
Open

coderdan wants to merge 5 commits into
nextfrom
docs/go-json-tree-plan

Conversation

@coderdan

@coderdan coderdan commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Go JSON is now implemented on next. This documentation-only PR records the supported contract and the remaining customer delivery work, reconciled against next at ffeed7a (2026-10-27).

The plan stays at docs/plans/2026-10-24-go-json-tree.md, preserving tracking links. Its companion engine findings and new Go implementation-status document cite the reviewed source. Tracking #1347 and implementation issues #1348–#1352 are now closed.

What changed in the plan

Remaining delivery work

Formalize the implemented dynamic contract and conformance corpus; complete parent-bound child opening; address required complex ordered-path declarations and configurable Go match options (#1112); validate the assembled release and freeze storage/search profiles. Direct typed EQL conversion and broader Rust/context/packaging work remain explicit follow-ups.

SQL children/count preparation does not implement a plaintext child opener. Selector opening accepts one entry per document group; bounded subtree reads provide the supported all-match plaintext route. Keep these limits visible rather than treating closed issues as proof that every proposed convenience exists.

Validation

Reviewed nine first-parent merges since ebdb5de, source, existing tests, documentation and issue states. Checked Markdown fences, JSON examples, relative links and git diff whitespace. Runtime and database suites were not rerun. No production code changes relative to next.

Related: #1365 for the broader API design. Ngram research and the separate Go delivery document remain outside this PR.

Plans how a Go program declares, stores and queries an encrypted JSON
document (EQL v4 json_tree). Most of the work is in Rust: the engine
refuses the JSON index in a data plan, and the family is missing from
the EQL catalog, so Go has no types to generate. Five steps, one issue
each, with the decisions the Go surface needs.

Refs #1347

Claude-Session: https://claude.ai/code/session_01XQN1QpaWVDGjHEg39KEJF3
@changeset-bot

changeset-bot Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: dd19d86

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI; Enforced overrides: Organization
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6d6d5d42-939b-47f9-9462-3be342f10290

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

Base automatically changed from feat/json-tree-gates to next October 24, 2026 06:12
@coderdan coderdan changed the title docs(plans): define Go JSON dynamic contract and delivery docs(plans): reconcile Go JSON delivery with merged implementation Oct 27, 2026
@coderdan
coderdan marked this pull request as ready for review November 3, 2026 11:48
@coderdan
coderdan requested a review from a team as a code owner November 3, 2026 11:48
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T11:50:19.855929Z fb4b9e7 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-03T11:50:37.446194Z fb4b9e7 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cipherstash-agent cipherstash-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review attestation

Reviewed fb4b9e7 · posted from Claude Code · model unknown (runtime-selected) · effort medium
Sources: code-review (medium) · model unknown
Skills: code-review, review-cross-check, review-post

Findings (4): 4 minor — 4 inline.

One further candidate was dropped: the EQL v4 section cites packages/eql/src/v3/json_tree/functions.sql. That is the only json_tree SQL in the tree, so it is likely the shared implementation. Worth a one-line note in the doc if so.


Generated by Claude Code

Comment thread docs/plans/2026-10-24-go-json-tree.md Outdated
and shared conformance corpus; allocate versioning explicitly. Do not
describe the earlier illustrative versioned envelope as already accepted
by the runtime. General definition caches and Rust factories can follow.
2. **Close narrow coverage gaps.** Add parent-bound child-scalar opening

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor Item 2 commits to adding parent-bound child-scalar opening, but the table (line 144), the engine doc (line 120) and the status doc (line 105) treat it as an open decision. Reword to "decide whether to add".

Source: code-review (medium) · runtime-selected model


Generated by Claude Code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in dd19d86. Item 2 now says "Decide whether to add parent-bound child-scalar opening". The table, the engine document, and the status document all treat it as open, and item 2 now agrees with them.

Comment thread docs/plans/2026-10-24-go-json-tree.md Outdated
(#1112); configurable tokenizers/filter pipelines are not thereby done.
The implementation uses deterministic domain-separated word terms, not
random variants. This review records that fact without settling the
previously raised privacy concern or changing the uncommitted research.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor "The previously raised privacy concern" and "the uncommitted research" have no link or description, so the open question cannot be acted on. Link the issue or document, or state the concern in one sentence.

Source: code-review (medium) · runtime-selected model


Generated by Claude Code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in dd19d86. Item 3 now states the concern from #1397. A short-word token is specific to its word. So someone who groups tokens across rows can tell the rows that contain "Ng" from the rows that contain "Nguyen". Item 3 also points to #1326, the lower-leakage alternative.

"The uncommitted research" is the n-gram research that the PR body says is outside this PR. It is not in this repository, so I could not link it. The text now says that. If it should be linked, Dan needs to say where it lives.

Comment thread docs/plans/2026-10-24-go-json-tree.md Outdated

This refresh inspected the nine first-parent merges, current source,
changelogs, tests and documentation, and checked the tracking issue states.
No new runtime code was written. Markdown/link/JSON checks are run on the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor "Markdown/link/JSON checks are run on the plan changes" is not backed by anything in the PR, and the status doc says no fresh run was made. Run the checks and say how, or drop the claim.

Source: code-review (medium) · runtime-selected model


Generated by Claude Code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in dd19d86. I ran the four checks the PR body names on the three plan files:

  • the code fences pair up;
  • the one json block parses;
  • each relative link names a file that exists;
  • git diff --check reports nothing.

The evidence section now lists those checks. It still says runtime and database suites were not rerun.

Comment thread docs/plans/2026-10-24-go-json-tree.md Outdated
round-trip empty, nonfinite floats are allowed, and some formerly JSON-only
opaque types are refused. No new migration system is requested here.

Go currently pins Vitamin C at `06568ba93bd9` using pseudo-versions. Rust

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor The pins (Vitamin C 06568ba93bd9, Rust 0.8.0) are written as current facts and will mislead once they move. Anchor them "as of ffeed7ad". The filename date (10-24) also disagrees with Updated: 2026-10-27.

Source: code-review (medium) · runtime-selected model


Generated by Claude Code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in dd19d86. The paragraph now reads "As of ffeed7ad, Go pins Vitamin C at 06568ba93bd9", and it says where to read the current pins. The pins have already moved: on next today, languages/golang/go.mod pins vitaminc f1fc9ae74, and the guests use vitaminc 0.10.0.

For the date: the header now reads "Created: 2026-10-24. Updated: 2026-10-27." I kept the file name, because the PR body and the two companion documents link to it by that name.

The coverage-gap item said to add parent-bound child opening, while the
table and both companion documents treat it as an open decision. It now
says to decide whether to add it.

The short-word item named a privacy concern and some research without
saying what either was. It now states the concern from #1397 and points
to #1326.

The Vitamin C pins read as current facts. They are now dated to
ffeed7a, and the text says where to read the current pins.

The evidence section claimed checks with no record of them. The checks
were run on the three files, and the section says what they were.

The engine document now notes that the json_tree SQL it links, though
under src/v3/, is EQL v4 only.
@coderdan

Copy link
Copy Markdown
Contributor Author

Review bodies on this PR:

  • cipherstash-agent review (5751693399). The four inline findings are answered in their threads, all fixed in dd19d86. The review body also noted a dropped candidate: the engine document cites packages/eql/src/v3/json_tree/functions.sql. That file is the only json_tree SQL. Its first line is -- ONLY EQL VERSION: 4. dd19d86 adds one line after the link to say so.
  • Codex review summary (6603015838). Code review and security review both finished on fb4b9e7 with no findings. Nothing to change.

This PR may be stale. It is 1,493 commits behind next. The plan describes next at ffeed7ad (2026-10-27). One fact has already moved: the Go Vitamin C pin is now f1fc9ae74, not 06568ba93bd9.

The fixes above did not need next, so I did not merge it in. Dan should decide whether to refresh this plan against current next, merge it as a dated snapshot, or close it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants