Repository navigation
Conversation
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
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Codex Review SummaryThis 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. |
cipherstash-agent
left a comment
There was a problem hiding this comment.
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
| 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
| (#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. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
|
|
||
| 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Fixed in dd19d86. I ran the four checks the PR body names on the three plan files:
- the code fences pair up;
- the one
jsonblock parses; - each relative link names a file that exists;
git diff --checkreports nothing.
The evidence section now lists those checks. It still says runtime and database suites were not rerun.
| 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
|
Review bodies on this PR:
This PR may be stale. It is 1,493 commits behind The fixes above did not need |
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
Open(ctx, rows).->selects an unspecified element; use explicit all-match semantics. Freeze post-cascade vectors despite the unchanged header version.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.