Repository navigation
Conversation
Bind shared chunk hints to authenticated source shards and exact immutable object identities. Keep capsule provenance separate from released manifest receipt keys. Draft: exact staged-proof revalidation and current-source real-store qualification remain incomplete.
This was referenced Oct 15, 2026
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.
Capsule pushes currently publish Xet payloads without populating the shared chunk index queried by a cold native add in another repository. The consumer repacks identical content instead of reusing the committed payload.
This draft publishes bounded capsule chunk candidates after ref visibility and validates them through the source repository's authenticated shard closure plus the canonical object's verified identity. Direct CLI publication and protected receive share the metadata encoder/writer. Immutable placement-digest records preserve the original add-time proof when shared heads change. Push revalidates those exact placement/origin IDs and retains authenticated source descriptors and original receipts, avoiding a redundant full xorb GET. Partial add-time hints expand only the requested closure; mixed physical assertions fail explicitly. New key families keep capsule provenance separate from released manifest receipts; whole-body and payload digests remain distinct. The shared writer initializes the canonical format marker for new databases and rejects noncanonical existing databases.
Stacked on #590 (
codex/immutable-origin-identity,3637d2d0aae). Review the incremental diff against that base. No merge requested.Validation
nfs,simd-accel,gix-pathmatch).5002c1c59f8e2d6d3fa82abed1c5686c67d46feb93f975c0c1d76c1930f3dc70. Report SHA-256:36d6ec1b744a2f5545a9a998710271bc2fa092ceadf756dd56c95acf75eeff2f.3c93bbe140b(0.55 s runtime; 6m45s test build). It uses real native Git and staging with an in-memory object store, a different consumer repository, and no advisory candidate caches. This proves publisher/classifier integration, not real S3 qualification.Required before readiness
crab-remotepublication sibling.This is an unfinished draft, not completion of the indexing/staging initiative or a merge-ready correctness verdict.
Review evidence map
crab/src/git/capsule_push.rsandcrates/crab-auth-server/src/receive/capsule.rspublish hints only after a successful ref transitionChunkIndexStore::capsule_candidates-> metadata codecs and pagedPointerCatalogLookup::shards-> existing canonical-origin verifierfiles()reuses the selected-shard closure reader; protected receive tests pass; shared remote publication still needs integration prooforigin/main(cc2e4e25f46) is an ancestor and has no capsule candidate publisher; parent #590 retains the publisher/classifier gapIs this the best fix? Shared metadata ownership and operation-bound origin identity address the observed publication gap. The full best-fix verdict remains open until all publication siblings, fault/lifecycle paths and final large-file qualification are proven. This draft deliberately records those gaps.
The added production code introduces one capsule provenance contract shared by direct publication, protected receive and add lookup; it does not replace the existing released manifest contract. The follow-up production LOC growth preserves immutable proof history, returns bounded caller-owned descriptors and adds exact revalidation through the existing origin verifier; the long end-to-end regression lives in its own test module. No dependency or lockfile changes. The two large-file audit reports and user-owned advisor plan are excluded.