Repository navigation
test(organizations): a restart between the un-walled seed and the person's sign-up still fills the seed's person columns - #34581
Conversation
…d the person's sign-up still fills the seed's person columns The held list of seed person references lives in the process, and the restart window was read as a loss. Measured: an un-walled boot runs its inline seed on every start, so the second process's replay meets the same unresolved person on the row the first landed on and holds it again. The seed declaration is the durable holder; no second record is needed. Claude-Session: https://claude.ai/code/session_01ADHkmT4PX8G5q4d3Z7C1TF Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckNothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs. What this run could not see
Coarse fallback — 0 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ Final head · 2026-11-17T02:38Z
|
|
repo:objectstack#2 · os-steve · session_01ADHkmQtnGcx7hYEL11ptVs 席位核对L1 first review: REWORK (2 items, scope of the premise refutation and the closing keyword; the test itself is acceptable) · PR #34581 · card #34542 · area o2-A · L1-a2 · 2026-11-17T02:41Z Head-sha: Final-head comment 6936312982; dev report 6936294507. Checked, no problem
R1: the refutation holds for the keyed modes only; the body and the test header claim it for every seedThe body says the premise "did not hold" and "a restart loses nothing". The test file header says "a restart loses nothing: the durable holder is the seed declaration itself". The evidence covers
So for an Fix, either:
R2:
|
…tasets A restart re-holds a seed person reference only where the replay matches the row it landed on before by its key (mode ignore, upsert, update). An insert or replace dataset matches no row on replay, so its first row is not held again; the header now says so instead of claiming every seed. Claude-Session: https://claude.ai/code/session_01ADHkmT4PX8G5q4d3Z7C1TF Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ Final head · 2026-11-17T03:14Z
|
|
repo:objectstack#2 · os-steve · session_01ADHkmQtnGcx7hYEL11ptVs 席位核对L1 delta: ACCEPT · PR #34581 · card #34542 · area o2-A · L1-a2 · 2026-11-17T03:18Z Head-sha: Previous L1: REWORK 6936354630 at What moved
R1 and R2
Gates and landing
|
|
repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ Landing · 2026-11-17T03:19Z · head
L1 ACCEPT 6937050182 on this head (after rework 6936354630). Test-only, no contract review owed. The unkeyed remainder is #34613. Ready for review and auto-merge through the queue; #34542 closes with the merge. |
Requested by Steve · project thread
Fixes #34542
Clause-②: no
Metadata-protocol: none
The claim recorded
Clause-②: yes (widening); the diff is test-only, so both lines are corrected to what it measures. Onorigin/main(1e4656d) the card's premise does not hold for keyed datasets (modeignore,upsert,update): no contract change is made. Forinsert/replacedatasets the first row stays NULL after a restart, measured below; that is a different root cause and is filed as its own finding (see Acceptance notes).维护者速读
What changes
packages/plugins/organizations/src/default-organization-seed-owner.wall.test.ts: a new top-leveldescribein the existing harness file. It boots the un-walled app over a SQLite file (bootStack({ databaseFile })), reads the seeded row with NULLassignee/reviewer, stops the kernel before the named person exists, boots a second kernel cold over the same file, signs the person up, and asserts both columns now name the person on the row the first process seeded (same row id). The file header gains one paragraph saying what the leg shows.No product file changes. For a keyed dataset the held-reference list needs no persisted copy where #34516 put it (
SeedLoaderService, held byAppPlugin): the inline seed of an un-walled boot runs on every start (AppPluginruns it unless the wall is up orskipSeedDatais set), reference resolution runs before the write decision, and a row the replay matches by its key still reports its landed id (noteLandedon theskip/updatepaths), so pass 2 holds the same reference again in the new process. That match exists only in the keyed modes (keyedModeinloadDataset;decideWriteActionanswersinsertforinsert/replace), so the claim is limited to them.Tests
Acceptance notes
origin/main1e4656d, before any edit, with the same two-boot probe:mode: 'upsert'dataset, columns filled after the restart;mode: 'ignore'dataset, filled too.mode: 'update'writes no row on the first boot (nothing to match), so the window does not arise.origin/main), one record{ name: 'Late task', assignee: 'Late Person', reviewer: 'Late Person' }, the person signing up in the second process:mode: 'insert'(with or withoutexternalId) andmode: 'replace': the second boot inserts a secondLate taskrow. After the sign-up the new row names the person in both columns; the first process's row keepsassigneeandreviewerNULL.namedeclaredunique: true: the second boot's insert is refused by the database (UNIQUE constraint failed: seedowner_task.organization_id, seedowner_task.name, logged atwarn). After the sign-up the one row keeps both columns NULL.insert/replacedatasets. Its cause is not the in-memory hold but the unkeyed replay itself, which inserts the dataset again on every un-walled start. It is filed as its own finding: seed: an unkeyed (insert/replace) inline seed is inserted again on every un-walled start, so the first row's person references stay NULL and the dataset duplicates #34613.AssertionError … to match object, 1 failed). The fill depends on the restart's own replay, which is what the pin holds.seed-settlementis an in-process probe (ISeedSettlementService); nothing persisted carries that name. With the replay already re-deriving the hold, a persisted copy would be a second holder of what the seed declaration already says.Verification
Test file at 2bd14db
Typecheck at 399d9b7 (the merge brought no change to this package)
Derived gate set
node scripts/pm/dispatch-gates.mjs --commandsderives 53 families for this diff. All 53 ran at 399d9b7 and answered exit 0;--ranreconciles 53 run, 0 NOT-MEASURED. Two first answered exit 3 (shallow clone; no full build) and were re-run aftergit fetch --unshallowandpnpm build. The same 53 were re-run on 8f3e7e4 (53/53 exit 0) and are re-run on 2bd14db, a header-comment change in the same file; the dev report on the card carries that reading.