Repository navigation
sinex: primary mode and the rebuild proof; the loop builds the index from stored bytes - #6304
Merged
Merged
Conversation
Sinity
enabled auto-merge (squash)
October 19, 2026 03:12
… them A deleted or outdated index.db is built again by the same loop from what archive.db stored, even when the provider file moved or went; stored chains are read by range, so a large input is never held whole. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AcQETkbTfFMr1hgNJ8A3em
…e an archive from it Every input blob is placed into Sinex's content store and registered as a material; every unit of archive.db rows travels as a record-batch material with one polylogue.rows event, named by its position in write order. The publish step asks Sinex what it holds and sends the rest. An empty archive is restored from the confirmed stream and the loop builds index.db from the stored bytes, read from Sinex's store. The rebuild proof runs a real sinexd: publish, restore, converge with no provider files, identical answers. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AcQETkbTfFMr1hgNJ8A3em
Sinity
force-pushed
the
boundary/sinex-primary
branch
from
October 19, 2026 03:31
c94ecac to
a5dda9f
Compare
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.
Polylogue's
primarymode on Sinex (architecture 7.1; epic plnext-3sx), and the rebuild proof (joint #7).The loop builds the index from stored bytes. A deleted or outdated
index.dbis built again by the same loop from whatarchive.dbstored, read by range throughhashed-blobs, even when the provider file moved or went. This is also what lets a standalone archive rebuild without its files. Two engine tests cover it.crates/sinex(polylogue-sinex, behind thesinexfeature; the default build has no NATS dependency):archive.dbrows (a revision with its input, extents, observations and blob rows; a note with targets and relations; an excision; a setting; a delivery) travels as a record-batch material plus onepolylogue.rowsevent (polylogue.rows: Polylogue's archive units in primary mode sinex#2779). Frames are named by what they carry, units by their position in write order, so the publish step asks Sinex (have, by bisection) and sends only the rest; nothing local records what was sent.index.dbwith Sinex's store as an extra blob root.$XDG_CONFIG_HOME/polylogue/sinex.tomlwithmode = "primary"adds Sinex's store as a blob root, restores an empty archive named byarchive = "<id>", and publishes once a minute. A file that does not parse pauses publishing and never switches mode.polylogue-store::rows(only the store opens SQLite);archive.dbnow carries anarchive_id.Proof (
crates/sinex/tests/proof.rs, ignored by default; how to run it is indocs/development.md): the Claude Code examples converge standalone, publish to a realsinexdover a throwaway PostgreSQL and NATS (a second publish sends nothing), restore into an empty archive, converge with no provider files present, and every session and message comes back identical. Passed (18 s).Verification:
xtask fast; nextest on store, engine and sinex (56 passed); the proof run againstsinexdbuilt from Sinex #2779.Not done (follow-ups filed): normalized segments and object-level equivalence keys (joint #3–#5); excision orders across the boundary (joint #6, #19); the pending area that drops local copies once Sinex confirms; tables without
local_seq(kept_result,variant,variant_alignment,notice_delivery) anddelivery_events added after their delivery's publish; publishing from another host (bytes over NATS); the real-corpus rebuild before any cutover.🤖 Generated with Claude Code
https://claude.ai/code/session_01AcQETkbTfFMr1hgNJ8A3em