Skip to content

docs(plans): the json_tree capability in the Go SDK - #1353

Draft
coderdan wants to merge 1 commit into
nextfrom
docs/go-json-tree-plan
Draft

coderdan wants to merge 1 commit into
nextfrom
docs/go-json-tree-plan

Conversation

@coderdan

Copy link
Copy Markdown
Contributor

Summary

This adds a plan for using encrypted JSON documents from Go. json_tree is the EQL v4 type family (EQL is the SQL library installed into a customer's PostgreSQL database) for an encrypted JSON document. It supports containment, equality and ordering at a path, -> extraction and subtree walks. Rust can use it today; Go cannot.

The plan's main finding is that most of the work is in Rust. The Go SDK reaches the engine only through a data plan, and the engine refuses the JSON index there. The family is also missing from the EQL catalog, so no Go types are generated for it.

Changes

  • docs/plans/2026-10-24-go-json-tree.md:
    • the constraints that come from the SDK design principles;
    • the proposed Go surface (struct tags, generated query methods, the SQL each feeds);
    • five PR-sized steps;
    • five decisions, each with a recommendation;
    • open questions.

Verification

Documentation only. The claims about the code were read from this branch (#1336) and from next (#1229), with file references in the plan. Nothing was run.

Related

Review notes

The section to review first is Decisions needed. Step 4 (#1351) waits on those answers, while steps 1-3 can start without them. This is stacked on #1336 so that it can cite the json_tree code. It changes no code.

https://claude.ai/code/session_01XQN1QpaWVDGjHEg39KEJF3

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: 65ece53

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

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

Base automatically changed from feat/json-tree-gates to next October 24, 2026 06:12

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.

1 participant