Conversation
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Content-addressed records, a single push protocol, CLI foundation, and protocol documentation.
What changed
Content-addressed record storage — Records are now stored by their SHA-256 hash in a
record_objectstable, linked to versions via aversion_recordsjoin table. Same record in 10 versions = stored once. This matches how files and schemas already worked. Removes the oldrecordstable entirely.Single push protocol — Consolidated three push paths (simple push, chunked upload, negotiate push) into one git-like flow: negotiate → send records → commit. The client sends a manifest of record hashes, the server says what it needs, the client sends only those records in JSONL batches, then commits. 100,000 unchanged records + 5 new ones = only 5 transferred. Deletes
uploads.ts(878 lines) and thepush()function fromversions.ts(~480 lines).Record provenance — New
/api/records/:hash/provenanceendpoint traces a record back to every collection and version that includes it, with a first-seen date.Batch record fetch — New
POST /api/records/batchendpoint returns records by hash as a JSONL stream. Enables efficient pull sync.CLI — Local
underlayCLI with init, schema-set, add, status, commit, log, diff, remote, push, pull. Local versioning with the same content-addressed storage model. Push/pull use the negotiate protocol.Protocol page (
/protocol) — Full protocol spec: data model, hashing, push/pull, schemas, files, provenance, collaboration.Updated docs — ai.txt, integration guide, API docs, and dev tool all updated for the single negotiate protocol.