Repository navigation
Prototype inactive mandatory database fence and stamped preparation - #185
Merged
Merged
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.
Scope
Reference-only SQL outside active migrations, inactive preparation adapter, regression tests and explicit commissioning gaps. No runtime imports, route, trigger, permission, deployment or publisher activation changes.
The reference fences all five content tables, binds writes to an operation/owner/epoch, promotes via a single admitted event with atomic head/history/admission consumption, and rejects implicit-deletion REPLACE vectors including hidden rowids. Bounded preparation validates canonical bytes and exact rows, uses at most50 inserts per call, and reconciles unknown outcomes without blind replay.
Evidence
Independent review cleared reference-only scope.38 focused tests;694 full tests pass. maintenance:sync and maintenance:verify pass (1453inputs); build retains960records. An earlier concurrent local run hit the existing deadline test's timing-sensitive phase assertion; sequential final candidate passed without modifying that test.
Explicit blockers
NOT a deployable mandatory-writer fix. Authenticated durable admission lifecycle/original artifact binding, actual writer/route integration, real hosted D1 migration/race/rollback qualification and operational authority remain outstanding. Stamps are not authentication against arbitrary D1/DDL actors. No automatic admission issuance, no publication or bootstrap. Review inventory and authority contract in docs/release-database-fence-prototype.md.
Exact-head CI/export qualification pending.