Skip to content

fix(catalog,cli): hold the claim on a re-created graph and let --claim cover main - #1594

Open
aaltshuler wants to merge 11 commits into
ModernRelay:mainfrom
aaltshuler:claude/main-claim-followups
Open

aaltshuler wants to merge 11 commits into
ModernRelay:mainfrom
aaltshuler:claude/main-claim-followups

Conversation

@aaltshuler

Copy link
Copy Markdown
Contributor

Follow-up to #1593, from its review, under Server state transitions and recovery. A graph removed and declared again by one running server refused every write to main until the server restarted. The new root starts at epoch 0, and the holder registry kept the entry of the root before it whenever that entry's epoch was at or above the one the new claim published, so the claim answered success and the process held nothing it could publish under. main has no native name to tell the two roots apart. Three smaller defects came with the same change. Binding a coordinator to an admission dropped the manifest image its open had read, so a managed claim cost 7 GETs where the same claim without an admission costs 2. A claim that landed returned an error with no effect evidence when the schema reload after it failed. And --claim could not serve a direct load that creates its branch, a merge into a named branch that deletes its source, or schema upgrade-system-columns; on a cluster graph, whose named branches take no claim, the forking load had no working form once main was claimed.

A claim now replaces the entry its attempt saw before it loaded the branch, whatever the two epochs are: its put landed on the rows that load read, so it follows that entry on one chain and on a root created again. An entry recorded while the claim ran still stands when it is the newer one, which is the guard that keeps a late acknowledgement of an older claim from replacing a newer one. The publisher carries its image and its holders into the publisher bound to an admission. A reload that fails after a landed claim reports the claim as an earlier publication, and the handle reloads whenever the claim installed a fresh head. In the CLI, --claim claims each branch a publication of the command moves: main for the fork of a load's missing destination, for the retired row of a merged source, and for schema upgrade-system-columns. A cluster graph still takes a claim on main only, so a write to a named branch alone refuses the flag as before. The write-path, recovery and control-plane guides and the agent skill described the registry, reconciliation and writer_fenced as they were before #1593, and now describe them as they are.

a_claim_on_a_recreated_root_replaces_what_the_process_held_before_it fails without the registry change, with and without an admission, at an equal and at a higher earlier epoch. binding_an_admission_keeps_the_image_the_open_read holds the image, and the storage-cost golden moves one line, ManagedWriterClaim l.get from 7 to 2, which is the cost of WriterClaim. branch_claim_reports_a_landed_claim_when_its_schema_reload_fails arms the reload seam and reads the evidence. The standalone claim test gains the forking load, the merge with --delete-branch and the system-column upgrade, and a new cluster test runs the forking load against a claimed main. Two checks the review found weakened or missing are back: the Blob stat parity test reads the branch head again beside the seeded snapshot, where only the resolved snapshot may differ between the arms, and a format-18 source has a stamp-route test.

For review: the decision to challenge is the registry rule. It rests on the claim's put being a strict overwrite of the version its load read, so an entry that existed before that load is older than the claim on any one chain; an entry is compared by (admission, epoch) only when it was recorded while the claim ran. The input that would expose a mistake is two claims of one process on one branch whose loads and acknowledgements interleave. The cluster path of the first defect, a live apply that removes a graph and a later one that declares it again, is covered at the catalog and not end to end. Not changed here, and left for a decision: a command given --claim checks branch_claim and publishes the claim before the command's own permission is checked, so a command denied afterwards leaves the claim. That is either a second step to state in the contract, beside the load that forks its branch, or a check to move before the claim. Also unchanged: writer_epoch and held in the detailed branch listing stay required fields, since the wire policy is to upgrade the CLI and the server together. No golden row yet records a served write on a named branch, which pays the same open that the claim row now pins.

Contract: keeps E4, E6 and the branch kind's direct --claim. The cost claim is for the claim a server makes at boot and for writes that open a branch other than the handle's own.

…under an admission

A claim on a root created again at its path landed at an epoch at or below
what the process still held from the root before it, so the registry kept
the old entry and refused every publish after the claim. The claim now
replaces the entry its attempt saw before it loaded: its put landed on the
rows that load read, so it follows that entry whatever the two epochs are.

Binding a coordinator to a cluster admission rebuilt its publisher and
dropped the manifest image the open had read, so the first publish read it
again. The publisher now carries its image and holders into the bound one.
The reload ran after the claim was durable and its error replaced the
claimed epoch with no effect evidence. It now reports the claim as an
earlier publication. The handle also reloads whenever the claim installed
a fresh head, whether or not the claim landed.
…rce and the system-column upgrade

A direct load that creates its branch publishes the branch row on main,
and a merge that deletes its source publishes the retired row there, but
--claim claimed the destination only. On a cluster graph, whose named
branches take no claim, the forking load had no working form once main
was claimed. --claim now claims each branch a publication of the command
moves. schema upgrade-system-columns publishes on main and accepts it.
ManagedWriterClaim l.get moves from 7 to 2, the cost of WriterClaim: the
publisher bound to the admission keeps the manifest image the open read,
so the claim's load rereads none of it.
… 18 stamp route

The Blob stat parity test read a seeded snapshot on both arms after the
boot claim moved the served main one manifest version ahead. It keeps that
exact comparison and reads the head again, where only the resolved
snapshot may differ. A format 18 source had no stamp-route test.
…_fenced as they are

The write-path guide still said an entry on another native branch is
dropped and that a claim takes the shared schema permit. The recovery and
control-plane guides still named the neutral fence as what reconciliation
publishes. The agent skill still said no command claims a branch.
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