You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
install-local: wire landedKeys into the door's seed loads, so a seed row a tenant deleted does not come back on reinstall or reseed #34405
Split from #34336 (ask 2), route B by the repo:objectstack#1 seat. Measured by the #34336 dev, os-dev-report 6917684209 (open_questions), on main 719b6b537.
Business reason. A tenant admin who deletes a sample row (a demo account, a demo order) expects it to stay deleted. On install-local it comes back the next time the package is reinstalled, upgraded or reseeded.
Today.MarketplaceInstallLocalPlugin.runInlineSeed constructs SeedLoaderService without landedKeys, so this door never reads or writes sys_seed_landed_key. The loader's landed-key guard (#31021) therefore does not apply on this door: install, upgrade and the per-org replayer load every declared key again, and reseed does too.
Target.
Install, upgrade (into the caller's organization) and the per-org replayer pass landedKeys: 'honour'.
Ruling: claimable now · batch 1 · maintainer 「分两批点名放行,不改级别」 (the option he chose on the decision card) · recorded 2026-11-16T14:23Z
Recorded by the project's decision thread. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T14:19:33Z. Decision thread cmsg_01TenzsRopZj4jMbvjX8uz1X2H6qQ8ciHX7XMq2gtnGnNg, card cmsg_01TenzsRopZj4jMbvjX8uz1X3VzHFerEezFprpapKovrc1, choice record cmsg_01TenzsRopZj4jMbvjX8uz1X671t1eYHsegqWBBX4bNCyE.
Thread-read: none (the card has no comment). Labels at the read: bug, priority:p2, pm:queue, domain:server; unassigned.
The question he was asked
He named 21 open p2 cards and asked whether they should be the next tasks. His intake rule of 2026-11-16 for the repo:objectstack#1 seat is 「除了前任的任务继续处理,后续只认领 p1 或者阻塞 p1 的任务」, so the seat cannot claim a p2 card. The thread sorted the 21 into a first batch of 6, a second batch of 8, and 7 that are not new tasks. Which of them become the seat's next work, and how?
This card is in batch 1 (position 6 of 6) and may be claimed by the repo:objectstack#1 seat now, at its p2 grade. The grade does not change. p1 work still comes first.
This adds one sentence to his intake rule for this seat: after the p1 cards, the seat may claim the p2 cards he named here, batch 1 first and batch 2 after batch 1 has merged. It names these 14 cards and no other p2.
Why this card, as told to him: A sample row a tenant admin deleted comes back on reinstall, upgrade or reseed through install-local. Measured by the #34336 dev. He was told this card and #34407 sit in the same install code as the p1 cards #34336 and #34396.
State
This record changes no label and no grade. The card stays priority:p2 and pm:queue until the seat claims it with this record as its Ruling-ref.
Sizes given to him were estimated from the card faces and were not measured.
List and reasons: /mnt/project-files/pm-orders/objectstack/next-batch-2026-11-16.md.
Claim: PM loop · named p2, batch 1 (Ruling-ref 6919107678) · 2026-11-16T16:02Z
Session: session_01FEkQ5pHNFS9mn8hS13iGyL
Account: os-project-manager
Branch: claude/issue-34405-install-local-landed-keys
Worktree: objectstack-issue-34405
Domain: domain:server
Seat: repo:objectstack#1
File surface: packages/cloud-connection/src/marketplace-install-local-plugin.ts (runInlineSeed and the seed loads it serves: install, upgrade into the caller's organization, per-org replayer, reseed) and helpers it calls in packages/cloud-connection/src/**; new test files named for this card; .changeset/** (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: TIER_DEFAULT, effort: high
Clause-②: no (the door starts honouring the loader's existing landedKeys guard, #31021; no accepted shape or public export widens; the dev confirms)
Metadata-protocol: none
Responsibility: objectstack (cloud-connection install-local seed loads): a seed row a tenant deleted comes back on reinstall, upgrade or reseed because the door never passes landedKeys | SeedLoaderService landedKeys guard (#31021) | every tenant using install-local sample data
Thread-read: 6919107678
Premise: holds (#34336 dev report 6917684209: runInlineSeed constructs SeedLoaderService without landedKeys); the dev reproduces red-first on main
Serial constraints cleared: #34407 (this area, same file, translations and global-unique reads) runs in parallel in a different function; #34418 (#34396, same file, uninstall path) is open; #34406 (cross-org replay) is a decision card, not built; the dev runs git merge-tree against every open PR touching the file before push
Pre-claim lane: domain:server (packages/cloud-connection)
Pre-claim deps: #34336 (merged as PR #34403)
Prior rulings read: batch-1 ruling 6919107678 (claimable after p0 and p1s, grade stays p2); seat route B on #34336 ask 2; card body (no cross-org sweep)
{
"issue": 34405,
"status": "done",
"branch": "claude/issue-34405-install-local-landed-keys",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34429",
"session": "session_01FEkQ5pHNFS9mn8hS13iGyL",
"premise_still_valid": true,
"final_head": "2297ac0dbbea8398b08cd5822eadeca74ed4ae19",
"summary": "runInlineSeed now takes the loader's landedKeys mode as a required argument and passes it to SeedLoaderService. Honour: install and upgrade (caller's active org under a wall, else the sole org), restart heal, per-org replayer, unmanaged copy first load. Reseed: the sample-data reseed (ledgered and unmanaged) and the replayer's { reseed: true }, which matches the AppPlugin replayer. Loader modes: honour records every keyed ignore/upsert row it lands and does not insert again a recorded key whose row is gone (counted in skipped); a key never recorded still lands. Reseed records the same and inserts every missing row. No answer shape changes. Spec mode JSDoc and .describe, the 4 regenerated reference pages, seed-data.mdx and the sys_seed_landed_key JSDoc said a package install, its heal, its reseed and the fallback replayer keep no record. This change made that false, so they are corrected in this PR, outside the claimed file surface (see open_questions). The PR was opened through the relay; the card assignee was not touched.",
"tests": "New src/marketplace-install-local-landed-keys.test.ts: real SeedLoaderService over an in-memory engine that registers sys_seed_landed_key. 6 cases x {flat, composed} + 1 unmanaged-copy case = 13. Red first: at d3f1bcdf6a (main 857941dbe8 + test) Tests 13 failed (13). Red again with the final test file against main's plugin (git restore --source=857941dbe8, then restored to HEAD, hash matched): 13 failed. Green at 1f3516d7e8 and 2297ac0dbb: Tests 13 passed (13). Package suite at 1f3516d7e8: vitest run Test Files 85 passed (85), Tests 1251 passed (1251). typecheck (tsc build + tsconfig.test.json, which lists the new file) exit 0. Spec: build + gen:docs (4 reference pages) + check:generated 'All 14 generated artifacts are up to date'. No separate ablation: the red legs are the reverse verification of the one behaviour (the mode passed per door).",
"gates": "Local, under the lock where heavy: dispatch-gates --commands derived 118 for this diff, all run at 92033c6d3f. The test-reading gates were re-run at 2297ac0dbb, all exit 0: cross-package-test-inputs, test-source-alias, undeclared-dep-imports, nul-bytes, objectql-double-limit, where-matcher, query-options-erasure, type-check-debt, engine-double-contract. engine-double-contract was red (exit 1) at 92033c6d3f on the new test's findOne/update; fixed by dropping those unused verbs, not by a ledger write. --ran reconciliation exit 0: 118 derived, 115 run, 3 NOT-MEASURED (exit 3, PREREQUISITE NOT MET, unbuilt dists of packages outside the diff): spec check:skill-examples (client-react dist), check:dual-build-cjs-loads, check:i18n (CLI build). CI on 2297ac0dbb, 65 runs: 32 success, 10 skipped, 23 in_progress, 0 failure. Lint & Repo Gates, Build Core, Build & E2E UI, Live E2E UI, Governed Surface Queue Guard, Check Changeset, Dogfood Regression Gate and Type Check source/consumer/debt are success. Test Core shards and Test UI shards, Type Check UI and Type Check workspace are in_progress. The platform-checklist red on main that the coordinator named did not show here: Lint & Repo Gates is success on this head.",
"dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2: one relay stroke pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/34429/assignees os-project-manager, run 43914899959) and this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/34405/comments via post-stamped). Plus git push of the branch.",
"open_questions": [
{
"question": "The restart heal (rehydrate's empty-database heal) is a door the card does not name. It now passes 'honour'.",
"options": [
"A keep honour: purge then reinstall then restart does not bring the purged rows back, and a new database is still healed whole (pinned)",
"B revert the heal to no landedKeys: one argument at one call site. Then a purge then reinstall then single-tenant restart re-inserts every purged row, because withheld rows count as skipped and reset the ledger's purge flag"
],
"recommendation": "A, because it is the same guard the runtime's boot seed applies, and B leaves the card's defect open through a restart"
},
{
"question": "Prose outside the claimed file surface was corrected because this change made it false: spec seed.zod.ts mode JSDoc and .describe, 4 generated reference mdx, content/docs/data-modeling/seed-data.mdx, and platform-objects sys-seed-landed-key JSDoc. The claim said stop on breach. os-dev.md says a defect this change makes false must be fixed in the same PR, and that file wins on a conflict, so I followed it and am stating the conflict here.",
"options": [
"A keep them in this PR (restates route B, ruling-ref 6919107678; no shape change; @objectstack/spec patch in the changeset)",
"B split them into a docs-only follow-up PR"
],
"recommendation": "A, because shipping the door change with spec and docs that say install keeps no record would publish a false description"
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted in Acceptance notes, not filed: runInlineSeed also builds the loader without getFieldFiles, so a seed row naming a seed file would be refused on this door. Code-read only, not reproduced, so not filed",
"carrier: none · noted, not filed: the loader's info line for withheld rows names seed-replayer { reseed: true } as the way back. On install-local the operator's route is the sample-data reseed. Wording in metadata-protocol"
],
"overlaps": "git merge-tree --write-tree of 2297ac0dbb against #34418 (c965590cfc), #34316 (6d8f7954b2, same file) and origin/main (eb0d480bb8): exit 0, no conflict. #34407's branch had no commit beyond main at the probe."
}
Claim 6921698767 is amended on the seat's route (17:24Z). PR #34429 corrects prose that this change made false (it said a package install, its heal, its reseed and the fallback replayer keep no record), so the file surface now also covers:
packages/spec/src/data/seed.zod.ts (the mode JSDoc and .describe() text only; no shape change)
The restart heal also passes honour (seat route A, not a maintainer ruling). Because packages/spec/src is touched, the PR owes a contract review at CONTRACT_REVIEW_TIER (schema face) before landing.
{
"issue": 34405,
"status": "needs_decision",
"branch": "claude/issue-34405-install-local-landed-keys",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34429",
"session": "session_01FEkQ5pHNFS9mn8hS13iGyL",
"premise_still_valid": true,
"final_head": "2297ac0dbbea8398b08cd5822eadeca74ed4ae19",
"summary": "Fix round 1 stopped before building (ask 3): no shape keeps both pins, because they pin the same scenario with opposite outcomes. #30324 (packages/cli/test/package-install-local-sample-owner.integration.test.ts, last it) runs the real os start stack twice on one home and one database. Boot 1 installs, deletes Deal B, purges (flag true), reseeds (flag false, keys recorded), then deletes every row of both seeded objects by id through /api/v1/data, on purpose 'not a purge, which would tell the heal the emptiness is wanted'. Boot 2 expects the heal to bring the 3 sample deals back, owned by the installer the ledger records. The #30324 ruling (6670861426) is about ownership; the rows coming back is the device that reaches the heal. This PR's restart pin (marketplace-install-local-landed-keys.test.ts, 'a restart does not heal back the seed rows a person deleted...', flat and composed) runs the same steps: install, every seeded row deleted, no purge, restart, same store. It expects them to stay gone. Its control half (every table wiped, sys_seed_landed_key included) expects a full heal. The PR has NO purge then reinstall then restart pin. The PR body's Acceptance notes and the earlier report say it does, and that is false. Measured: one argument at the heal (maybeHealSampleData, 'honour') decides between the two pins. With it absent, the PR pin goes red 2/13 and #30324 goes green 6/6. At head the PR pin is green and #30324 is red 1/6. Shapes tried on paper, each fails one pin. (1) Heal unguarded, and the reinstall keeps the purge flag: #30324 green, but the PR pin has no purge, so it goes red. (2) Heal honours only when the ledger records a purge: the heal returns before seeding when sampleDataPurged is true (plugin line 1871), so this is shape 1. (3) Tell a data-API delete apart from other emptying: the loader keeps no record of deletions, only absence against a recorded key, and making an API delete forget its key defeats the card. (4) Key on #30324's earlier purge or reseed: the reseed clears the flag and records the keys the same way, so the data is identical and the rule would be unprincipled. No commit and no push this round; the head stays 2297ac0d.",
"tests": "All runs under scripts/pm/os-verify-lock.sh, VERDICT lines quoted. Build: pnpm --workspace-concurrency=2 --filter '@objectstack/cli^...' build, VERDICT command-exit 0 (366s). (1) Reproduced at 2297ac0d: pnpm --filter @objectstack/cli exec vitest run --project integration --maxWorkers=2 test/package-install-local-sample-owner.integration.test.ts gave 'Tests 1 failed | 5 passed (6)', 'AssertionError: expected [] to deeply equal [ Sample Deal A, …(2) ]', the same as CI job 133467961376, VERDICT command-exit 1. (2) Diagnostic mutation (not a fix; no commit): scripts/ablation-replace.mjs in WRAP mode with an EXIT/INT/TERM trap. Anchor: the heal's runInlineSeed(ctx, datasets, 'honour', ...), hit 1 to 0. Replaced with (globalThis as any).ABLATE34405HEAL, which leaves landedKeys absent, the pre-PR heal; blob 1ac00903c9d3 to 1cde59c11e41. Then rebuilt cloud-connection (exit 0), and ablation-dist-preflight found the marker present in dist/index.js and dist/index.cjs. Under the mutation: src/marketplace-install-local-landed-keys.test.ts 'Tests 2 failed | 11 passed (13)', both the restart pin (flat and composed), 'AssertionError: expected [ Acme, Globex ] to deeply equal []'. #30324 file 'Tests 6 passed (6)'. Restore: blob 1ac00903c9d3 == HEAD, git diff HEAD empty, rebuild exit 0, preflight --absent: the marker is absent from all 6 built files and the tree is clean. VERDICT command-exit 0. (3) Control at restored HEAD: vitest run of landed-keys, heal and seed-owner (cloud-connection) 'Test Files 3 passed (3) Tests 36 passed (36)', VERDICT command-exit 0. No local run of the other install-local, seed or sample cli integration tests: no code changed and no green is claimed. CI Test Core (8/8) on 2297ac0d ran them all: '@objectstack/cli Test Files 1 failed | 216 passed (217); Tests 1 failed | 2729 passed | 7 skipped (2737)', and the only FAIL is the #30324 case above.",
"gates": "No diff this round, so no dispatch-gates derivation and no --ran reconciliation (nothing to derive from). CI check-runs on 2297ac0d, latest run per check: 68 total, 54 success, 12 skipped, 2 failure. The failures are Test Core (8/8) (job 133467961376, the #30324 case, caused by this PR's heal honour) and the Test Core aggregate, which follows from it. Lint & Repo Gates, all Lint sub-jobs, Build Core, Build & E2E UI, Type Check source/consumer/debt/workspace/UI: success. The main-side check:platform-checklist red did not show: Lint & Repo Gates is success on this head. No rerun requested: the red is caused by this PR, not flaky.",
"line_budget": "n/a: no file changed",
"deviations": "Ask 4 was not run in full (the install-local, seed and sample cli integration tests and the dispatch-gates families). Ask 3 stops before building, so there is no new head to verify; the CI Test Core (8/8) tally above is the reading of the current head. The heal-guard mutation was run as a diagnostic for the decision, not as an ablation of a fix. It was restored and proved by blob hash, an empty git diff HEAD and dist preflight --absent.",
"files_changed": [],
"dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm; no new head",
"mcp_calls": "0",
"api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/34405/comments (this os-dev-report, via post-stamped). No git push this round. The reads were single-resource REST GETs (card, card comments, PR, PR comments, the PRs #34316 and #34428, check-runs, the job log).",
"open_questions": [
{
"question": "Should install-local's restart heal honour the landed-key record? #30324's restart pin and this PR's restart pin assert opposite outcomes for the same scenario: the same database, every seeded row deleted by a person (not purged), then a restart.",
"options": [
"A Keep 'honour' at the heal (current head). The PR pin stands as written. In the #30324 file the restart it keeps every assertion verbatim (healed deals = the 3 samples, owned and created by the recorded installer). Only its setup between the boots changes: it also deletes the database's sys_seed_landed_key rows (better-sqlite3, which the cli tests already use, for example dev-standalone-self-heal.integration.test.ts), so the heal sees what it exists for: a database that lost its rows and its record (os dev --fresh, a deleted dev.db, a --database switch, per the heal test's header) while the users stay, so the recorded installer still resolves. The setup comment's 'not a purge, which would tell the heal the emptiness is wanted' is reworded: a person's deletion is now wanted emptiness too. Also add the purge then reinstall then restart pin the PR body claims. Cost: edits #30324's test setup, which this dispatch forbade without a decision; #30324's ruling subject (ownership) is unchanged. Effort S. Not measured: the DB file path under os start --home; the test may need an explicit -d file: URL.",
"B Revert the heal to no landedKeys, or to 'reseed', which also keeps the record current: only the doors the card names honour. #30324 stays as written and turns green (measured under the mutation, 6/6). The PR's restart pin is inverted to 'a restart heals a same-database emptied seed', which was main's behaviour; its new-database half stays. Consequence 1: a person who deletes every sample row of every seeded object sees them all back after a single-tenant restart. Partial deletions stay deleted, because the heal does not run while any row survives. Consequence 2: purge, then reinstall, then restart re-inserts the purged rows. The reinstall withholds them, counts them as skipped and clears sampleDataPurged (plugin line 3304). B prime closes that: the reinstall keeps sampleDataPurged when the load inserted and updated nothing, with a pin. The changeset and the spec mode prose ('with its restart heal') are reworded. Effort S to M."
],
"recommendation": "A, because: the card's business reason is that a deleted demo row stays deleted. The runtime AppPlugin boot seed honours the record on every boot (packages/runtime/src/app-plugin.ts, seedLoaderOptionsFor(ctx, 'honour') at the boot and dev-reload loaders), so under B install-local's restart would be the one door that brings back a fully deleted seed. The heal's documented purpose, a new database under a kept ledger, is still met in full under honour and is pinned. And A keeps #30324's ruling subject (who owns the healed rows) asserted verbatim. B is the right choice only if the maintainer reads #30324 as promising that a restart always refills a seed a person emptied."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: PR #34429 body (area writes it) · the Acceptance notes first bullet and the 维护者速读 risk line say 'both directions are pinned: a purge followed by a reinstall and a restart stays purged'. No such pin exists. What the PR pins is 'every seeded row deleted, no purge, restart: stays empty'. Replacement text is in summary_for_pr_body."
],
"overlaps": "git merge-tree --write-tree --name-only of 2297ac0d against #34316 (6d8f7954b2, draft) gave exit 0, and against #34428 (c98999cbf6, in the merge queue) exit 0. Against origin/main (c9ef6538bf) exit 0. No conflicts. Neither PR's diff of marketplace-install-local-plugin.ts touches runInlineSeed, SeedLoaderService or maybeHealSampleData (grep exit 1 on both), so the new required landedKeys parameter of runInlineSeed has no semantic conflict either.",
"check_runs_on_final_head": "2297ac0d: 68 checks (latest per name), 54 success, 12 skipped, 2 failure (Test Core (8/8) and the Test Core aggregate; the #30324 case, caused by this PR)",
"summary_for_pr_body": "## Fix round 1\n\nNo code change this round; the head stays `2297ac0d`. Test Core (8/8) is red on one case: `#30324 … a restart over emptied tables heals them, owned by the installer the ledger records` (`expected [] to deeply equal [ 'Sample Deal A', …(2) ]`), reproduced locally.\n\nThat pin and this PR's restart pin (`a restart does not heal back the seed rows a person deleted…`) assert opposite outcomes for the same scenario: the same database, every seeded row deleted by a person (not purged), then a restart. One argument decides between them, measured: with `landedKeys` removed from the restart heal, this PR's pin goes red 2/13 and #30324 green 6/6; at head the reverse. No shape keeps both. The heal keeping no guard while the reinstall keeps the purge flag, or the heal honouring only after a recorded purge, both turn this PR's pin red; there is no deletion record to tell the two apart. The choice is on the card as a decision: A keep `honour` and move #30324's restart trigger to a database that has also lost its landed-key record (assertions verbatim), or B revert the heal to the pre-PR behaviour.\n\n`git merge-tree` against #34316 and #34428: no conflict, and neither touches `runInlineSeed`.\n\nReplacement for the first Acceptance notes bullet (the current text claims a purge pin that does not exist):\n\n- **The restart heal is wired to `honour`, a door the card does not name (seat route A, not a maintainer ruling; open decision, Fix round 1).** The heal runs only when every seeded object is empty and the ledger does not record a purge. Pinned: a restart over a seed a person emptied (no purge) does not heal it back, and a new database (no rows, no record) is healed whole. Not pinned yet: a purge followed by a reinstall and a restart. This contradicts #30324's restart pin, which expects that same emptied seed to heal (red in Test Core 8/8).\n\nReplacement for the 维护者速读 risk line:\n\n- **风险与回滚**:重装或升级后,被删的样例行不再回来,只能用「重新灌入」找回(本卡要的行为)。重启自愈也遵守台账(本卡未点名,席位路由 A),这与 #30324 的重启用例直接矛盾:同一库里样例行被人删光后重启,#30324 期望补回,本 PR 期望不补。CI 因此红一例,待裁决。回滚即撤销本 PR。"
}
{
"issue": 34405,
"status": "done",
"branch": "claude/issue-34405-install-local-landed-keys",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34429",
"session": "session_01FEkQ5pHNFS9mn8hS13iGyL",
"premise_still_valid": true,
"final_head": "6ce35da79360fa2f7b13c3cf014b6fdebd06e763",
"summary": "Fix round 2 on seat route A. The restart heal keeps 'honour' and the plugin source is unchanged. (1) #30324's restart case (package-install-local-sample-owner.integration.test.ts) now also deletes the rows of sys_seed_landed_key between its boots. This runs after boot 1 stops, with better-sqlite3 (fileMustExist) on HOME/data/objectstack.db. The harness settles that path: bootStart passes --home and no -d, the cwd has no project config, and start.ts falls back to file:HOME/data/objectstack.db. childEnv strips only vitest worker keys and NODE_PATH. A precondition throw guards a wrong path or an empty record. The setup comment is reworded and cites ruling 6670861426 and #34405. Assertions are verbatim. (2) A new pin, 'a purge stays purged across a reinstall and a restart', flat and composed, is in marketplace-install-local-landed-keys.test.ts. It was green on its first run over 2297ac0d's plugin, not red, so the stop condition did not apply. What holds it: the reinstall withholds every row, counts them as skipped and clears sampleDataPurged (plugin ~3304), so the restart heal runs, and its 'honour' withholds the recorded keys. Ablating that 'honour' reddens it. (3) The engine double needed a by-id delete for the purge. It uses assertEngineDeleteDispatch, and the pinned ledger records it (CI Lint · ESLint was red on 86d86777 for that, fixed at 6ce35da7). Coordinator ask: content/docs/deployment/cli.mdx was re-read, and no sentence there becomes false (see deviations).",
"tests": "All heavy runs went through scripts/pm/os-verify-lock.sh, and the VERDICT lines are quoted. Closure build: pnpm --workspace-concurrency=2 --filter '@objectstack/cli^...' build, VERDICT command-exit 0 (372s). (a) #30324 file at 86d86777 (the test file is identical at 6ce35da7): pnpm --filter @objectstack/cli exec vitest run --project integration --maxWorkers=2 test/package-install-local-sample-owner.integration.test.ts gave 'Tests 6 passed (6)', VERDICT command-exit 0. Reversal leg: node scripts/ablation-replace.mjs in WRAP mode, with a trap 'git checkout HEAD -- ABS' on EXIT INT TERM. The anchor was the clear line \"store.prepare('DELETE FROM sys_seed_landed_key').run();\" with --delete; anchor x1 to x0, blob 2f9450ac1da3 to 8b9e2ae4de3e. Result 'Tests 1 failed | 5 passed (6)': × 'a restart over emptied tables heals them, owned by the installer the ledger records', 'AssertionError: expected [] to deeply equal [ Sample Deal A, …(2) ]', VERDICT command-exit 1. Restore: blob 2f9450ac1da3 == HEAD, git diff HEAD empty. No dist step, because the test file is read from source. (b) Landed-key suite: pnpm --filter @objectstack/cloud-connection exec vitest run --maxWorkers=2 src/marketplace-install-local-landed-keys.test.ts gave 'Tests 15 passed (15)' on the first run of the new pin, with the plugin at 2297ac0d's blob 1ac00903c9d3, VERDICT 0. Ablation of the guard that holds it: ablation-replace WRAP, anchor = the heal's runInlineSeed(ctx, datasets, 'honour', ..., resolveRecordedInstaller(ctx, entry)), replaced with (globalThis as any).ABLATE34405HEAL (landedKeys absent, the pre-PR heal). Anchor x1 to x0, replacement x0 to x1, blob 1ac00903c9d3 to 1cde59c11e41. Result 'Tests 4 failed | 11 passed (15)': the new purge pin and the restart pin, flat and composed, 'AssertionError: expected [ Acme, Globex ] to deeply equal []', VERDICT command-exit 1. Restore: blob 1ac00903c9d3 == HEAD, git diff HEAD empty. The suite imports the plugin by relative source path, so dist is not on the path and no rebuild or dist preflight was owed. (c) cli integration, every test file whose name mentions install-local, seed or sample (boot-steps, handlers, hooks, jobs-pull, jobs-shared-name, jobs, sample-owner, uninstall-cleanups, seed-record-values-load-parity, verify-seed-outcome): 'Test Files 10 passed (10) Tests 86 passed (86)', VERDICT command-exit 0. build-seed-files-artifact.e2e.test.ts and serve-config-boot-seed-files.e2e.test.ts: the cli vitest config 'matches no test file' for them, so they were not run. (d) pnpm --filter @objectstack/cloud-connection exec vitest run --maxWorkers=2: 'Test Files 85 passed (85) Tests 1253 passed (1253)', VERDICT 0. (e) pnpm --filter @objectstack/cloud-connection typecheck && pnpm --filter @objectstack/cli typecheck (tsc plus check:test-typecheck 'OK'), VERDICT command-exit 0. (a) and (c) ran at 86d86777; 6ce35da7 adds only scripts/engine-double-contract.pinned.json. (b), (d) and (e) also ran at 86d86777-equivalent source.",
"gates": "Local subset, each exit captured before any pipe. pnpm check:engine-double-contract: exit 1 at 86d86777 ('x RETAINED [delete]: ...landed-keys.test.ts pins 1 engine double(s) that the pinned ledger does not record'). Then node scripts/check-engine-double-contract.mjs --write: exit 0, '1 added or grown, 0 lost'. Then exit 0 at 6ce35da7. Exit 0 each: check:where-matcher, objectql-double-limit, test-source-alias, cli-test-child-env, cross-package-test-inputs, tier-file-adoption, nul-bytes, issue-citations, refd-timer-probe, undeclared-dep-imports (better-sqlite3 is in the cli's optionalDependencies), query-options-erasure, type-check-coverage, system-context-census; and, for the ledger file under scripts/, agent-test-spelling, bash32-floor, entry-guard, parse-guard, pnpm-filter-targets, pnpm-flag-spellings, scripts-symbol-anchors. dispatch-gates --commands at 6ce35da7 derives 126 families over the whole PR (12 paths vs merge base 857941dbe). --ran reconciliation: 21 run, 105 UNRUN, exit 1. The narrowing is declared: the 105 read the spec, docs and plugin files that rounds 0 and 1 changed and this round did not touch. Round 0 ran them locally, and CI Lint & Repo Gates runs the farm. CI on 6ce35da7, latest run per check, read once: 64 checks, 24 success, 10 skipped, 30 in_progress, 0 failure, so the convergence is in_progress. On superseded 86d86777: Lint · ESLint failure (the engine-double gate, fixed above) and the Lint & Repo Gates aggregate; Test UI and TypeScript Type Check aggregates failure only because my push to 6ce35da7 cancelled their shards and Type Check · workspace/consumer gates. No rerun requested. The main-side check:platform-checklist red has not shown so far.",
"dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
"files_changed": [
"packages/cli/test/package-install-local-sample-owner.integration.test.ts",
"packages/cloud-connection/src/marketplace-install-local-landed-keys.test.ts",
"scripts/engine-double-contract.pinned.json"
],
"commits": [
"86d86777ca test: #30324's restart heals a database that lost its rows and its landed-key record; pin purge, reinstall, restart stays purged",
"6ce35da793 test(cloud-connection): record the landed-key suite's by-id delete double in the engine-double ledger"
],
"overlaps": "git merge-tree --write-tree --name-only of 6ce35da7: against #34316 (6d8f7954b2, open) exit 0, and against origin/main fe19c97188 exit 0. #34428 is merged; its head c98999cbf6 is not an ancestor of main because it was squashed as fe19c97188, which touches marketplace-install-local-plugin.ts. In the merged tree all four runInlineSeed callers pass a mode: heal 'honour', replayer, unmanaged copy, and the ledgered reseed or install. No merge of origin/main was needed: no conflict, and no red came from main.",
"deviations": "(1) The engine-double ledger: os-dev prefers overriding a double the file already has over pinning a new one. This file had no delete double, and the purge route deletes through the engine, so the delete was added under the real dispatch predicate and the generated ledger records it. The row is a coverage gain, and the gate's own message says so. It is outside the claimed file surface (scripts/engine-double-contract.pinned.json). (2) The #30324 setup clears every row of sys_seed_landed_key, not only the package's two objects, so it matches 'a database that lost its record'. It also requires at least one row for the two objects before it clears. (3) Coordinator ask, cli.mdx: re-read the lines that name seeding, sample data, reseed or install-local: 3440-3442 (an environment-kernel boot seeds the bundle's data arrays), 3451-3453 (--reseed is reserved), 3743 (--seed-sample-data), 3813-3819 (an install re-registers on every boot and survives restarts, which is about the package, not its rows), 3905-3908 (a seed data change is never refused). None says a restart refills sample rows a person deleted, so none is false and cli.mdx is unchanged. seed-data.mdx lines 167-189 were corrected in round 0 and say the package install or upgrade with its restart heal keeps the record. (4) Not run locally: the two cli *.e2e.test.ts files with seed in the name, which are in no cli vitest project, and the 105 derived families above.",
"mcp_calls": "0",
"api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/34405/comments (this os-dev-report, through post-stamped). git push twice (86d86777, 6ce35da7), not REST. The reads were REST GETs: the card comments, the round-1 report comment, the PR and its comments, PRs #34316 and #34428, check-runs on two heads, one job log.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [],
"summary_for_pr_body": {
"fix_round_2_section": "## Fix round 2\n\nSeat route A (17:56Z, not a maintainer ruling): the restart heal keeps `honour`; only #30324's setup between its two boots changes, and the missing purge pin is added. Head `6ce35da793`.\n\n- `packages/cli/test/package-install-local-sample-owner.integration.test.ts`: after boot 1 deletes every seeded row by id and stops, the setup also deletes the rows of `sys_seed_landed_key` in `HOME/data/objectstack.db` (better-sqlite3, `fileMustExist`; the path is `os start`'s default with no `-d` and no project config, and the setup throws a precondition error if that file records no landed key for the two seeded objects). Boot 2 now sees what the heal exists for: a database that lost the seeded rows and their record, under a kept ledger and kept users. The setup comment cites ruling 6670861426 and #34405. No assertion changed.\n- `packages/cloud-connection/src/marketplace-install-local-landed-keys.test.ts`: new pin `a purge stays purged across a reinstall and a restart` (flat and composed). The engine double gains a by-id `delete` under `assertEngineDeleteDispatch` for the purge, and `scripts/engine-double-contract.pinned.json` records it (`--write`: 1 row added, 0 lost).\n\n[a details block titled Readings, folded in the PR body; tags omitted here for the sanitizer]\n\n- #30324 file: `Tests 6 passed (6)`. With the one line that clears `sys_seed_landed_key` deleted (ablation-replace, WRAP mode): `Tests 1 failed | 5 passed (6)`, `a restart over emptied tables heals them...`, `expected [] to deeply equal [ 'Sample Deal A', …(2) ]`; restored, blob == HEAD, `git diff HEAD` empty.\n- Landed-key suite: `Tests 15 passed (15)`. The new pin was green on its first run over the round-1 plugin (`2297ac0d`'s source). What holds it is the heal's `honour`, not the purge flag: the reinstall withholds all 4 rows, counts them as skipped and so clears `sampleDataPurged`, and the restart's heal then runs and withholds the recorded keys. Ablation: heal `honour` replaced by an undefined mode gives `Tests 4 failed | 11 passed (15)` (the new pin and the restart pin, flat and composed, `expected [ 'Acme', 'Globex' ] to deeply equal []`); restored, blob == HEAD.\n- `@objectstack/cli` integration: the 10 test files whose names mention install-local, seed or sample: `Test Files 10 passed (10)`, `Tests 86 passed (86)`. The two `*.e2e.test.ts` files with seed in the name are in no vitest project of this package and were not run.\n- `@objectstack/cloud-connection`: `Test Files 85 passed (85)`, `Tests 1253 passed (1253)`. Typecheck of cloud-connection and cli (with `check:test-typecheck`) exit 0.\n- `pnpm check:engine-double-contract`: exit 1 at `86d86777` (the new `delete` double not in the pinned ledger, which also failed CI `Lint · ESLint`), exit 0 at `6ce35da793`.\n- `git merge-tree --write-tree` against #34316 (`6d8f7954b2`) and `origin/main` (`fe19c97188`, which includes the merged #34428): no conflict. In the merged tree, all four `runInlineSeed` callers pass a mode.\n[end of the details block]",
"weihu_suduo_replacements": [
"- **先看**:`packages/cloud-connection/src/marketplace-install-local-plugin.ts` 的 `runInlineSeed` 及其四个调用点(各入口选的模式);`marketplace-install-local-landed-keys.test.ts`;`packages/cli/test/package-install-local-sample-owner.integration.test.ts` 两次启动之间新增的清台账步骤。",
"- **风险与回滚**:重装或升级后,被删的样例行不再回来,只能用「重新灌入」找回(本卡要的行为)。重启自愈也遵守台账(本卡未点名,席位路由 A,非维护者裁决):样例行被人删光、或被「清除样例数据」清掉后再重装,重启都不补回;只有库里连台账一起丢了(新库)才整套补回。#30324 的重启用例改为在两次启动之间同时清掉台账,归属断言一字未改。回滚即撤销本 PR。",
"- **两分钟验证**:`pnpm --filter @objectstack/cloud-connection exec vitest run src/marketplace-install-local-landed-keys.test.ts`,预期 15 个用例全绿(原 13 个在 main 上实测全红;新增的「清除、重装、重启后仍为空」用例在 main 上未测)。"
],
"acceptance_notes_first_bullet": "- **The restart heal is wired to `honour`, a door the card does not name (seat route A, not a maintainer ruling).** The heal runs only when every seeded object is empty and the ledger does not record a purge, and then withholds every key the database records. Pinned in `marketplace-install-local-landed-keys.test.ts` (flat and composed): a restart over a seed a person emptied (no purge) does not heal it back; a purge followed by a reinstall and a restart stays purged (the reinstall clears `sampleDataPurged`, so the heal's `honour` is what holds it; measured by ablation); a new database (no rows, no record) is healed whole. #30324's restart case now reaches its heal through that last state: between its boots it also clears `sys_seed_landed_key`, and its ownership assertions are unchanged (ruling 6670861426 decides who owns the healed rows, not whether a restart refills rows a person deleted)."
}
}
On the seat's route A (17:56Z, not a maintainer ruling; ruling 6670861426 read as ownership only), fix round 2 of PR #34429 adds two paths to the surface of claim 6921698767:
{
"issue": 34405,
"status": "done",
"branch": "claude/issue-34405-install-local-landed-keys",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34429",
"session": "session_01FEkQ5pHNFS9mn8hS13iGyL",
"premise_still_valid": true,
"final_head": "df003ebc97b5b2cc2813688de6e045da9f96c7fb",
"summary": "Fix round 3 on review#1 (6926546702), built under seat route A (the restart heal keeps 'honour'). M1: maybeHealSampleData now tells withheld rows apart from a load that landed nothing. When nothing lands, skipped is above 0 and there is no error, it logs at info and records { inserted: 0, updated: 0, skipped: N, rejected: 0, droppedRefs } with no emptyInstall and no healed. Every other zero-landed load keeps today's warn and emptyInstall. The change is one else-if branch plus its JSDoc paragraph in commit 05bf2a48f2, which can be reverted on its own if the maintainer rules B. S1: the changeset and seed-data.mdx no longer say 'comes back once, on the first load after the upgrade'. They now say an existing install records nothing until its next install, upgrade, reseed, replay or restart heal, so a row deleted before that load, even after the upgrade, comes back on it. N1: the SeedSchema.mode JSDoc and .describe() list the seed-replayer replay as AppPlugin's or the marketplace's fallback one, and say that a load which names no organization and finds no sole one keeps no record. The 4 reference pages are regenerated. N2: the heal JSDoc says a recorded key is withheld and how the outcome is reported. The changeset gains '@objectstack/platform-objects': patch with a line for the sys_seed_landed_key JSDoc. N3 is done: the loader's withheld-rows info line now ends 'the seed-replayer service called with { reseed: true }, or an installed package's sample-data reseed.' The changeset gains '@objectstack/metadata-protocol': patch with a line for it. No reader of emptyInstall was changed.",
"summary_for_pr_body": {
"fix_round_3_section": "## Fix round 3\n\nAnswers review#1 (contract review FAIL, 6926546702), built under seat route A (the restart heal keeps `honour`; route A is with the maintainer, not a ruling). Head `df003ebc97`.\n\n- **M1** (`packages/cloud-connection/src/marketplace-install-local-plugin.ts`, `maybeHealSampleData`): when the heal lands nothing, `skipped` is above 0 and there is no error, the rows were withheld by the landed-key record. That is the declared outcome, so the heal logs it at `info` and records `{ inserted: 0, updated: 0, skipped: N, rejected: 0, droppedRefs }` with no `emptyInstall` and no `healed`. The boot banner, `objectstack:seed-settled`, `GET /ready` and `os verify` then read the restart as settled. A load that lands nothing and withholds nothing, or that errors, keeps the `warn` and `emptyInstall`. The change is self-contained: one `else if` branch and one JSDoc paragraph, in commit `05bf2a48f2`.\n- **S1**: the changeset and `content/docs/data-modeling/seed-data.mdx` now say an existing install records nothing until its next install, upgrade, reseed, replay or restart heal. A row deleted before that load, even after the upgrade, comes back on it.\n- **N1**: the `SeedSchema.mode` JSDoc and `.describe()` name the `seed-replayer` replay as AppPlugin's or the marketplace's fallback one. They also say that a load which names no organization and finds no sole one keeps no record. The four reference pages are regenerated.\n- **N2**: the heal's JSDoc says a recorded key is withheld and how that is reported. The changeset gains `@objectstack/platform-objects` (patch) for the `sys_seed_landed_key` JSDoc.\n- **N3**: the loader's withheld-rows `info` line names an installed package's sample-data reseed beside `seed-replayer` `{ reseed: true }`. The changeset gains `@objectstack/metadata-protocol` (patch).\n\n[fold the next bullets into a details block titled: Red first, then green]\n\n- At `7c46403ce2` (tests only, over 45afc37f's plugin): `src/marketplace-install-local-landed-keys.test.ts` + `src/marketplace-install-local-heal.test.ts`: `Tests 4 failed | 20 passed (24)`. The restart pin and the purge pin (flat and composed) failed, the diff showing `+ emptyInstall: true`, `- skipped: 4 / + skipped: 0`.\n- At `05bf2a48f2` (the fix): `Tests 24 passed (24)`.\n- Pins: the restart and purge-reinstall-restart pins read the recorded `seed-summary` outcome (`toEqual` the withheld outcome, so `emptyInstall` absent) and the logger (no heal `warn`, one heal `info`). The new-database control reads `healed: true, inserted: 4`, no `emptyInstall`. The heal suite adds the genuinely empty load (`0/0/0`, no error) and the skipped-with-error load: both still record `emptyInstall` and `warn`.\n- cloud-connection: `Test Files 87 passed (87)`, `Tests 1271 passed (1271)`; typecheck exit 0. cli integration (8 install-local files including #30324's) `Tests 83 passed (83)`, plus `seed-record-values-load-parity` and `verify-seed-outcome` `Tests 3 passed (3)`. metadata-protocol `seed-loader-landed-ids.test.ts` `Tests 27 passed (27)`. Spec build, `gen:docs` and `check:generated`: `All 14 generated artifacts are up to date`.",
"bullets_now_false": [
{
"where": "Acceptance notes, bullet 3",
"old": "Rows a person deleted before this release come back once, on the first load after the upgrade, and stay deleted from then on (the record starts empty).",
"new": "An existing install records nothing until its next install, upgrade, reseed, replay or restart heal, so a row a person deletes before that load, even after the upgrade, comes back on it once, and stays deleted from then on (the record starts empty)."
},
{
"where": "Acceptance notes, bullet 4",
"old": "The loader's `info` line for withheld rows names `seed-replayer` with `{ reseed: true }` as the way back; install-local's own route is the sample-data reseed. Wording only, in `@objectstack/metadata-protocol`, not changed here.",
"new": "The loader's `info` line for withheld rows now names an installed package's sample-data reseed beside `seed-replayer` with `{ reseed: true }` as the way back (fix round 3, `@objectstack/metadata-protocol` patch)."
},
{
"where": "Acceptance notes, bullet 1 (append a sentence; nothing in it is false, it is now incomplete)",
"old": "a new database (no rows, no record) is healed whole.",
"new": "a new database (no rows, no record) is healed whole. A heal that withholds every row reports a settled seed (real `skipped`, `info`, no `emptyInstall`), so the boot banner, `objectstack:seed-settled`, `GET /ready` and `os verify` read it as settled (fix round 3)."
},
{
"where": "维护者速读 · 风险与回滚 (append; not false, incomplete)",
"old": "只有库里连台账一起丢了(新库)才整套补回。",
"new": "只有库里连台账一起丢了(新库)才整套补回。这类「全被台账扣下」的重启,启动横幅、/ready 与 os verify 读作正常(settled),不再报「已安装但 0 行」。"
},
{
"where": "Acceptance notes, new bullet (boundary)",
"old": "",
"new": "Boundary: a heal over datasets that are all `mode: 'update'` on an empty database lands nothing and counts every row in `skipped` (update writes matched rows only). It now reads as settled, not as an empty install, because the summary does not tell an update skip from a withheld row. Telling them apart needs a withheld count in the loader's summary (`@objectstack/metadata-protocol`), which is not in this PR."
}
],
"unchanged_note": "The 两分钟验证 line still holds: the landed-key suite is still 15 cases (this round added assertions inside 2 of them, flat and composed). The heal suite grows by 2."
},
"tests": "All heavy runs under scripts/pm/os-verify-lock.sh, slot issue-34405-r3, VERDICT lines read. Closure: pnpm --workspace-concurrency=2 --filter '@objectstack/cloud-connection^...' build, VERDICT command-exit 0 (277s). RED at 7c46403ce2 (tests only, plugin = 45afc37f blob): vitest run src/marketplace-install-local-landed-keys.test.ts src/marketplace-install-local-heal.test.ts gave 'Tests 4 failed | 20 passed (24)', VERDICT command-exit 1. The 4 are the restart pin and the purge pin, flat and composed: 'expected { source: com.example.lkflat, ... } to deeply equal ...', diff '+ emptyInstall: true', '- skipped: 4 / + skipped: 0'. GREEN at 05bf2a48f2: 'Tests 24 passed (24)', VERDICT 0. The 2 new heal cases (0/0/0 with no error; skipped 2 with an error) were green before and after: they guard that the genuinely empty load still records emptyInstall and warns. No ablation: the red leg at 7c46403ce2 is the reverse verification of the one behaviour added, and the suite imports the plugin by relative source path (no dist). cloud-connection full suite plus typecheck at df003ebc97: 'Test Files 87 passed (87) Tests 1271 passed (1271)', typecheck exit 0, VERDICT 0. cli closure: pnpm --workspace-concurrency=2 --filter '@objectstack/cli^...' build plus the cli build, VERDICT command-exit 0 (401s). cli integration (--project integration): boot-steps, handlers, hooks, jobs-pull, jobs-shared-name, jobs, sample-owner (#30324), uninstall-cleanups: 'Test Files 8 passed (8) Tests 83 passed (83)'. Plus seed-record-values-load-parity and verify-seed-outcome: 'Test Files 2 passed (2) Tests 3 passed (3)'. VERDICT 0. metadata-protocol src/seed-loader-landed-ids.test.ts (reads the withheld info line by 'not inserted again'): 'Tests 27 passed (27)', VERDICT 0. Spec: pnpm --filter @objectstack/spec build && gen:docs && check:generated, 'All 14 generated artifacts are up to date', VERDICT 0. authorable-surface.base.json unchanged. The end-to-end reader assertion was not added. None of the four readers is reachable from the cloud-connection suite: seedOutcomeIsClean and readSeedReadiness are not exported from @objectstack/runtime's index, composeSeedSettledMessage and the banner live in @objectstack/cli, and @objectstack/verify is not a cloud-connection dependency. Each reader judges exactly rejected, droppedRefs and emptyInstall (format.ts:1847, seed-settled-message.ts:22, seed-readiness.ts:62, seed-outcome.ts:236), and the pin asserts that whole object by toEqual. A cli-side end-to-end check would need a new install-local restart over an emptied seed in a spawned os start, the shape of #30324's file: a new integration test, not cheap.",
"gates": "dispatch-gates --commands at df003ebc97 derived 126 families over the whole PR (14 paths vs merge base a121e29c2). All 126 were run locally at df003ebc97, exit captured before any pipe. 123 exit 0, plus check:generated exit 0 (see next). The --ran reconciliation exit 0: '126 derived, 124 run, 2 NOT-MEASURED, 0 UNRUN'. NOT-MEASURED (exit 3, PREREQUISITE NOT MET, unbuilt dists of packages outside the diff, the same two as round 0): spec check:skill-examples, check:dual-build-cjs-loads. check:generated, in the gate loop with no heap cap, ran concurrently with the cli integration run and exited 1: 'check:test-typecheck: tsc -p tsconfig.test.json failed without diagnostics'. A rerun without the cap also exited 1. A rerun with NODE_OPTIONS=--max-old-space-size=4096 under the lock gave exit 0, 'All 14 generated artifacts are up to date', so the record carries exit 0. The first failure is read as tsc running out of default heap, not a stale artifact: the gate printed no diagnostic and no file. check:nul-bytes exit 0 before the push. No export renamed or deleted, so check-platform-checklist was not owed. CI check-runs on df003ebc97, latest per name: 68 total, 57 success, 10 skipped, 1 cancelled. Success includes Lint & Repo Gates, Build Core, Test Core (1/8..8/8) and its aggregate, Type Check source/consumer/debt/workspace/UI, TypeScript Type Check, Check Changeset and Dogfood Regression Gate. The cancelled one is Check PR Size (PR Automation workflow, run 43940231708, job 133555498708): its 'Checkout repository' step hung and the job was cancelled after 10 minutes, 19:31:38 to 19:41:40. That is a checkout hang outside ci.yml, so it was not rerun and nothing was pushed to retrigger it. Merge-tree: git merge-tree --write-tree of df003ebc97 against origin/main 6a7403bae1 exit 0, and against #34316 (claude/area-A5-33922 @ 6d8f7954b2) exit 0, no conflict.",
"dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
"line_budget": "n/a: no skills/** file touched",
"deviations": "The cli integration and the gate loop ran at the same time (the gate loop is unlocked by rule). That is the likely cause of the transient check:generated tsc failure recorded above. The changeset is the PR's own file, not one already on main, so DELIBERATE CORRECTION does not apply. N3 widened the file surface by one source file outside cloud-connection, packages/metadata-protocol/src/seed-loader.ts, one string literal. The dispatch asked for that change if cheap.",
"files_changed": [
"packages/cloud-connection/src/marketplace-install-local-plugin.ts",
"packages/cloud-connection/src/marketplace-install-local-landed-keys.test.ts",
"packages/cloud-connection/src/marketplace-install-local-heal.test.ts",
"packages/metadata-protocol/src/seed-loader.ts",
"packages/spec/src/data/seed.zod.ts",
"content/docs/references/api/package-api.mdx",
"content/docs/references/data/seed-loader.mdx",
"content/docs/references/data/seed.mdx",
"content/docs/references/kernel/manifest.mdx",
"content/docs/data-modeling/seed-data.mdx",
".changeset/install-local-honours-landed-keys.md"
],
"mcp_calls": "0",
"api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/34405/comments (this os-dev-report, via post-stamped). Plus git push of the branch (45afc37fd3..df003ebc97, fast-forward). Reads were single-resource REST GETs: comments 6926546702, 6923758862, 6924505372, 6925325019 and 6926396347, pulls/34429 and pulls/34316, check-runs on df003ebc97, and run 43940231708.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed (code-read, not reproduced through a public door): for a source whose rows the record withheld, os verify's seed line counts the skipped rows as '4 already present' (packages/verify/src/seed-outcome.ts countsPhrase). The boot banner shows 'X(marketplace) 4 rows' (format.ts). Both are wrong when the tables are empty. The same holds for the runtime boot seed's withheld rows on main. Dedupe words: seed outcome skipped already present, withheld seed rows verify wording, banner rows withheld",
"carrier: none · boundary, noted in summary_for_pr_body: a heal over update-only datasets on an empty database now reads as settled, because the loader's summary has no withheld count that would tell an update skip from a withheld row"
]
}
Fix round 4 on PR #34429 (wording only), answering review#1 S2 (6928590840) and L1-a's note N1 (6928502915).
{
"issue": 34405,
"status": "done",
"branch": "claude/issue-34405-install-local-landed-keys",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34429",
"session": "session_01FEkQ5pHNFS9mn8hS13iGyL",
"premise_still_valid": true,
"final_head": "31c96c553bc57b4c42210601610d750772c4b2bd",
"summary": "S2: the heal's settled branch keys on the loader's skipped, and skipped also counts an update-mode seed row with no matching row (seed-loader.ts, case 'update', no existing row). One commit, 31c96c553b, changes wording only. The maybeHealSampleData JSDoc and the settled-branch comment now say the split reads the loader's skipped, which also counts an update row with no match, so a heal whose only skips are those records settled too. The info line reads '(a row withheld by the landed-key record, or an update-mode row with no match); the package's sample-data reseed brings withheld rows back', instead of saying a person removed them. The changeset paragraph adds the same sentence, and its last sentence now says 'lands nothing and skips nothing, or errors'. No branch condition, return value, loader summary or test changed. No test pins the info string: the landed-keys suite's healLines helper filters on '[MarketplaceInstallLocal]', the manifest id and 'heal', and all three are still in the line. content/docs/data-modeling/seed-data.mdx does not state the settled split, so it is unchanged. No spec file was touched.",
"tests": "At 31c96c553b, after building the dependency closure (pnpm --filter '@objectstack/cloud-connection^...' build, lock VERDICT command-exit 0): vitest run src/marketplace-install-local-heal.test.ts src/marketplace-install-local-landed-keys.test.ts gave Test Files 2 passed (2), Tests 24 passed (24), lock VERDICT command-exit 0. pnpm --filter @objectstack/cloud-connection typecheck gave lock VERDICT command-exit 0. No ablation: no tested behaviour changed.",
"gates": "Local at 31c96c553b, exit codes captured before any pipe, all 0: check-changeset-no-major --base origin/main, check-empty-changeset --base origin/main, check-empty-changeset --self-test, check:changeset-gate-self-tests, check-adr-0087-registration --base origin/main ('adds no declared-breaking changeset'), check:nul-bytes, check:doc-authoring, check:durability-log-level, check:issue-citations. --ran reconciliation exit 1: 117 of 126 derived families unrun. That is a declared narrowing: the derivation covers the whole PR diff, which round 3 ran in full (124 of 126). This round changes only the changeset and comment and log text in one plugin file, so it ran the families that read those. CI is the farm. CI on 31c96c553b, read once (65 check-runs, latest per name): 26 success, 10 skipped, 28 in_progress, 1 failure. The successes include Check Changeset, Lint & Repo Gates, Governed Surface Queue Guard, Dogfood Regression Gate and the three Type Check lanes. The failure is Build Docs (job 133596729098, not a required check). The packages/spec build refused because the authorable-surface anchor 7eb613c39fb8 'is not in this checkout, and the remote did not serve it'. That commit is on origin/main (merge-base --is-ancestor exit 0), and Build Docs passed on df003ebc97, whose diff carries the same base file. This round touches no spec file, so the failure is a fetch flake in CI, not this diff. It was not re-run: see open_questions.",
"dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "1: this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/34405/comments via post-stamped). Plus git push of the branch.",
"open_questions": [
{
"question": "The order allows one rerun through scripts/pm/rerun-failed.mjs for a red check that this round did not cause. That script's header says a dev never re-runs, and that the seat re-runs only after writing its flake reason on the PR or card. Build Docs is red as a fetch flake. Who re-runs it?",
"options": ["A the seat re-runs Build Docs once, after its flake note (the reason is in gates)", "B leave it: Build Docs is not one of the eleven required contexts"],
"recommendation": "A, because the log says it measured nothing, and the script reserves the re-run for the seat"
}
],
"security_findings": "none",
"out_of_scope_findings": ["carrier: none · the heal suite's comment above the empty-install it.each (marketplace-install-local-heal.test.ts, 'Withheld rows (skipped, no error) are a settled heal') carries the same withheld-only reading. It is a test comment, not an assertion, and it is outside this round's named files, so it was left; noted, not filed"],
"deviations": "The first edit was made before AGENTS.md was read in this worktree, which os-dev.md says to read first. It was read before the commit, and nothing in it changed the edit. The commit trailer is the model-free Co-Authored-By line alone, as the order specifies; AGENTS.md also names a Claude-Session line, and it was left out to match the order and round 3's commits.",
"files_changed": [".changeset/install-local-honours-landed-keys.md", "packages/cloud-connection/src/marketplace-install-local-plugin.ts"],
"line_budget": "+14/-10 over 2 files (git diff --stat df003ebc97..31c96c553b)"
}
Ruling: letter A · maintainer 「A 重启也不补回」 (the option he chose on the decision card) · recorded 2026-11-16T20:55Z
Recorded by the project's decision thread. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T20:54:24Z. Decision thread cmsg_01TenzsRopZj4jMbvjX8uz1X1tB5BSW1LU6vEes4Mi2Q28, card cmsg_01TenzsRopZj4jMbvjX8uz1XAwi9GFzXqLmy526PDtZ777, choice record cmsg_01TenzsRopZj4jMbvjX8uz1XJUea2SJf7Qf1JUSg9fGCyG.
Thread-read: 6928940827 (this card); PR #34429 through 6928590840, head 31c96c553bc57b4c42210601610d750772c4b2bd at the read.
The question he was asked
「裁定:样例数据被人删光后重启,要不要自动补回?」
Card #34405 names reinstall, upgrade, the per-organization replayer and reseed. PR #34429 also passes landedKeys: 'honour' at install-local's single-tenant restart heal (maybeHealSampleData), a door the card does not name. On main, a restart over sample rows a person deleted completely (by hand, no purge) refills them; at the PR head they stay gone. Contract review 6926546702 (review#1) escalated this as needing the maintainer's word. Until now it was seat route A, not a ruling.
He was also told, in the thread message above the card: the platform's own boot seed already honours deletions, so B would make the restart the one exception; a new database (rows and record both gone) is still healed whole under A; and A carries one cost, the M1 defect of review 6926546702 (a restart that withholds every row was reported as a failed seed), which the seat was already fixing.
The ruling
A. install-local's single-tenant restart heal honours the landed-key record. A sample row a person deleted does not come back on a restart, whether they deleted one row or all of them. The way back is the sample-data reseed. A database that lost both the rows and the record is still healed whole.
He ruled on the direction only. M1's fix, S1, S2 and the notes are the reviewers' to judge on the head, and this record does not grade them. It is not a review verdict and not a landing approval: the PR still lands by the seat's ordinary conditions (contract review PASS and L1 ACCEPT on the final head, required checks green).
Not asked and not ruled: surfacing a withheld count in the loader summary, and the banner and os verify wording for withheld rows (noted out of scope in report 6928315925).
State
This record changes no label and no grade.
Analysis as put to him: /mnt/project-files/pm-orders/objectstack/34405-restart-heal-decision-analysis.md.
{
"issue": 34405,
"status": "done",
"branch": "claude/issue-34405-install-local-landed-keys",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34429",
"session": "session_01FEkQ5pHNFS9mn8hS13iGyL",
"premise_still_valid": true,
"summary": "Fix round 5, test only. The merge-queue red (run 43958493299, job 133619628264) is install-local-no-active-organization.dogfood.test.ts's control: the reinstall after a purge in organization B lands 0 rows, not 28. Seat check (a): the purge leaves B's landed-key record in place. purgeSeedRows (packages/cloud-connection/src/marketplace-install-local-purge.ts:359-380) only calls engine.delete on the seeded objects; the purge handler (marketplace-install-local-plugin.ts:6485-6503) only sets withSampleData false and sampleDataPurged true on the ledger. No code anywhere deletes a sys_seed_landed_key row: the loader only finds (seed-loader.ts:4758) and inserts (seed-loader.ts:4830) them. So (c) applies: honour, not a PR defect, and no case fell under (b) or (d). The control now expects seeded {mode inline, inserted 0, skipped 28, errors 0} and B at 0 rows after the reinstall. It adds a reseed after the reinstall as the way back: 200 {inserted 28, errors 0, withSampleData true}, B at 28, A still 0. The header, the test name and a one-line comment cite #34405 and ruling 6929076086. Every other assertion is unchanged. Commit e738de9f43, pushed. No product code changed.",
"summary_for_pr_body": "carried in the final report to the area, which writes the PR body (the comment omits it to keep tag-shaped text out of this body)",
"tests": "At 31c96c553b (round-4 head, unchanged tree): pnpm exec vitest run --maxWorkers=2 over 191 dogfood files under os-verify-lock, VERDICT command-exit 1, 'Test Files 1 failed | 190 passed (191)', 'Tests 1 failed | 1704 passed | 1 skipped (1706)'. The only red is install-local-no-active-organization CONTROL: 'expected { mode: inline, inserted: +0, ...(5) } to match object { mode: inline, inserted: 28 }'. The 191 files are queue shard 1/3 (160 files, recomputed with vitest 4.1.12's sha1 shard order over the queue tree c584c55160's 481 files; every file named in the CI 1/3 and 3/3 logs falls in the recomputed shard; 160/160 passed) plus every file a grep for install-local, sample data, seed, reseed, purge, reinstall, upgrade or restart finds. Per file (passed tests/total): install-local-connector-package-ref 6/6, -connector-spec-file 2/2, -declared-datasources 8/8, -declared-rename 4/4, -listing-not-loaded 7/7, -listing-sample-data 4/4, -no-active-organization 6/7 (red), -object-app-owner-stamp 5/5, -purge-sample-data 9/9, -refused-package-leaves-nothing 4/4, -reseed-intact-baseline 5/5, -restart-connectors 10/10, -sample-data-not-loaded 7/7, -uninstall-flows-withdrawn 5/5, -unmanaged-mode 20/20, -unmanaged-seed-copy 6/6; package-export-bundle-round-trip 13/13, -reinstall-custom-pair 3/3, -type-read-failure 5/5; meta-types-create-seed 6/6, seed-depends-on-33812 3/3, seed-external-id-refusal 4/4, seed-ownership-claim-dispatch 1/1, showcase-declarative-rbac-seeding 3/3, showcase-invoice-seed-isolation 19/19, showcase-permission-seeding 3/3, showcase-verify-seed 2/2, stored-connector-package-ref-restart 9/9, upgrade-18x-harness 16/16, upgrade-18x-index-equivalence 11/11, upgrade-harness-fixture-as-of 22/22. NOT MEASURED: flow-record-text-org-locale.dogfood.test.ts, in queue shard 1/3 but only on main after this branch's base, so it is absent from this branch's tree. At e738de9f43: the changed file shows VERDICT command-exit 0, 'Tests 7 passed (7)'. Red at 31c96c55: 1 failed of 7; green at e738de9f: 7 of 7. pnpm --filter @objectstack/dogfood typecheck, VERDICT command-exit 0; tsc --listFilesOnly includes the file. No ablation: no tested behaviour changed, only a test expectation.",
"gates": "Local: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack over the one changed path derived 53 families. All 53 were run with exit captured before any pipe. 52 exited 0 on the first run. check:dual-build-cjs-loads exited 3 on its first run in the loop and 0 on its standalone rerun (self-test 93 cases; 124 entry points load). --ran reconciliation: '53 derived, 53 run, 0 NOT-MEASURED, 0 UNRUN', a derived zero with every exit code recorded. CI on e738de9f43 at read time: Lint & Repo Gates success, TypeScript Type Check success, Build Core success, Governed Surface Queue Guard success, Build & E2E UI success, Live E2E UI success, Type Check UI success, Lint UI skipped, Dogfood Regression Gate success (the PR-time shards are skipped by design, so the dogfood files are not measured at PR time), Test Core 6/8 success with (3/8) and (8/8) in_progress, Test UI 15/16 success. Test UI (2/16) (job 133664673312) failed on infrastructure: the step 'Fetch this commit's history and the base branch' timed out after 14 minutes, before any test ran. The Test UI aggregate therefore reads failure. Not re-run, per the order. The round-4 head's Test UI was 17/17 success.",
"dogfood_battery": "n/a: no '!' in the PR title and no (narrowing) arm. The 191-file local run above is this round's ordered dogfood reading, not the battery.",
"mcp_calls": "0",
"api_writes": "1: POST issues/34405/comments (this os-dev-report, through scripts/pm/post-stamped.mjs). Also one git push of the branch, which is not a REST write. All GitHub reads went through gh api GETs: issue comment 6929076086, PR 34429, actions run 43958493299 jobs and logs for 133619628264, 133619628118 and 133664673312, and check-runs for e738de9f43 and 31c96c553b.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none. Noted, not filed. The PR-time Dogfood Regression Gate shards are skipped (check-run 'Dogfood Regression Gate (matrix.shard/3)' skipped), so an install-local behaviour change reaches the dogfood files only in the merge queue. That is the two-speed design AGENTS.md section 7 records, not a defect."
]
}
Landed · 2026-11-17T00:35Z: PR #34429 merged through the merge queue as a6c2b83f, and Fixes #34405 closed this card. Install-local's seed loads now pass the loader's landedKeys: install, upgrade, the per-organization replay, an unmanaged copy's first load and the single-tenant restart heal honour the landed-key record (restart heal ruled A, 6929076086), while the sample-data reseed and the replayer's { reseed: true } bring withheld rows back. A row a tenant deleted, or a purge, stays gone across a reinstall, upgrade or restart. Not in this card (unruled, not filed): a withheld count in the loader summary, and the banner and os verify wording for withheld rows. pm:dispatched and lease:o1-B are removed and the assignee cleared in this stroke.
Activity
objectstack-fleet commentedon Nov 16, 2026
coordinator#1 · os-project-manager · session_01FEkQ5p5codnUGsdGxBfaL9
Ruling: claimable now · batch 1 · maintainer 「分两批点名放行,不改级别」 (the option he chose on the decision card) · recorded 2026-11-16T14:23Z
Recorded by the project's decision thread. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T14:19:33Z. Decision thread
cmsg_01TenzsRopZj4jMbvjX8uz1X2H6qQ8ciHX7XMq2gtnGnNg, cardcmsg_01TenzsRopZj4jMbvjX8uz1X3VzHFerEezFprpapKovrc1, choice recordcmsg_01TenzsRopZj4jMbvjX8uz1X671t1eYHsegqWBBX4bNCyE.Thread-read: none (the card has no comment). Labels at the read:
bug,priority:p2,pm:queue,domain:server; unassigned.The question he was asked
He named 21 open p2 cards and asked whether they should be the next tasks. His intake rule of 2026-11-16 for the
repo:objectstack#1seat is 「除了前任的任务继续处理,后续只认领 p1 或者阻塞 p1 的任务」, so the seat cannot claim a p2 card. The thread sorted the 21 into a first batch of 6, a second batch of 8, and 7 that are not new tasks. Which of them become the seat's next work, and how?The four options on the card, as he read them:
The batches, as listed in the file and the message he was given:
untrusted_key#34166, audit seal: a host checkpoint signer that fails to resolve stops the sealer instead of signing with the local key #34280, actions: an action body has no refusal catalogue — a person-facing throw from an action stays in the author's language #34273, Engine: a predicate delete on an object with delete-family lookups re-deletes by id, so its predicate never reaches the DELETE (a conditional delete is not atomic) #34373, objectstack start exits on SIGTERM before its serve child stops (measured twice; reopens the premise of #32149) #34337, Console: the organization's Localization language never decides a no-locale user's language — the Console always states a language, so the server's deployment-default rung never answers #34392.The ruling
This card is in batch 1 (position 6 of 6) and may be claimed by the
repo:objectstack#1seat now, at its p2 grade. The grade does not change. p1 work still comes first.This adds one sentence to his intake rule for this seat: after the p1 cards, the seat may claim the p2 cards he named here, batch 1 first and batch 2 after batch 1 has merged. It names these 14 cards and no other p2.
Why this card, as told to him: A sample row a tenant admin deleted comes back on reinstall, upgrade or reseed through install-local. Measured by the #34336 dev. He was told this card and #34407 sit in the same install code as the p1 cards #34336 and #34396.
State
priority:p2andpm:queueuntil the seat claims it with this record as its Ruling-ref./mnt/project-files/pm-orders/objectstack/next-batch-2026-11-16.md.Notify: rulingto therepo:objectstack#1mailbox, PR pm:mailbox — repo:objectstack#1 · os-project-manager #34367, and to the triage mailbox, PR pm:mailbox — triage#1 · hotlong #32588.Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
Claim: PM loop · named p2, batch 1 (Ruling-ref 6919107678) · 2026-11-16T16:02Z
Session:
session_01FEkQ5pHNFS9mn8hS13iGyLAccount:
os-project-managerBranch:
claude/issue-34405-install-local-landed-keysWorktree:
objectstack-issue-34405Domain:
domain:serverSeat:
repo:objectstack#1File surface:
packages/cloud-connection/src/marketplace-install-local-plugin.ts(runInlineSeedand the seed loads it serves: install, upgrade into the caller's organization, per-org replayer, reseed) and helpers it calls inpackages/cloud-connection/src/**; new test files named for this card;.changeset/**(stop on breach; explain in the report)Container & model:
M,mode:subagent,model: TIER_DEFAULT,effort: highClause-②: no (the door starts honouring the loader's existing
landedKeysguard, #31021; no accepted shape or public export widens; the dev confirms)Metadata-protocol: none
Responsibility:
objectstack (cloud-connection install-local seed loads): a seed row a tenant deleted comes back on reinstall, upgrade or reseed because the door never passes landedKeys | SeedLoaderService landedKeys guard (#31021) | every tenant using install-local sample dataThread-read: 6919107678
Premise: holds (#34336 dev report 6917684209: runInlineSeed constructs SeedLoaderService without landedKeys); the dev reproduces red-first on main
Serial constraints cleared:
#34407 (this area, same file, translations and global-unique reads) runs in parallel in a different function; #34418 (#34396, same file, uninstall path) is open; #34406 (cross-org replay) is a decision card, not built; the dev runs git merge-tree against every open PR touching the file before pushPre-claim lane: domain:server (packages/cloud-connection)
Pre-claim deps: #34336 (merged as PR #34403)
Prior rulings read: batch-1 ruling 6919107678 (claimable after p0 and p1s, grade stays p2); seat route B on #34336 ask 2; card body (no cross-org sweep)
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
os-dev-report
{ "issue": 34405, "status": "done", "branch": "claude/issue-34405-install-local-landed-keys", "pr": "https://github.com/objectstack-ai/objectstack/pull/34429", "session": "session_01FEkQ5pHNFS9mn8hS13iGyL", "premise_still_valid": true, "final_head": "2297ac0dbbea8398b08cd5822eadeca74ed4ae19", "summary": "runInlineSeed now takes the loader's landedKeys mode as a required argument and passes it to SeedLoaderService. Honour: install and upgrade (caller's active org under a wall, else the sole org), restart heal, per-org replayer, unmanaged copy first load. Reseed: the sample-data reseed (ledgered and unmanaged) and the replayer's { reseed: true }, which matches the AppPlugin replayer. Loader modes: honour records every keyed ignore/upsert row it lands and does not insert again a recorded key whose row is gone (counted in skipped); a key never recorded still lands. Reseed records the same and inserts every missing row. No answer shape changes. Spec mode JSDoc and .describe, the 4 regenerated reference pages, seed-data.mdx and the sys_seed_landed_key JSDoc said a package install, its heal, its reseed and the fallback replayer keep no record. This change made that false, so they are corrected in this PR, outside the claimed file surface (see open_questions). The PR was opened through the relay; the card assignee was not touched.", "tests": "New src/marketplace-install-local-landed-keys.test.ts: real SeedLoaderService over an in-memory engine that registers sys_seed_landed_key. 6 cases x {flat, composed} + 1 unmanaged-copy case = 13. Red first: at d3f1bcdf6a (main 857941dbe8 + test) Tests 13 failed (13). Red again with the final test file against main's plugin (git restore --source=857941dbe8, then restored to HEAD, hash matched): 13 failed. Green at 1f3516d7e8 and 2297ac0dbb: Tests 13 passed (13). Package suite at 1f3516d7e8: vitest run Test Files 85 passed (85), Tests 1251 passed (1251). typecheck (tsc build + tsconfig.test.json, which lists the new file) exit 0. Spec: build + gen:docs (4 reference pages) + check:generated 'All 14 generated artifacts are up to date'. No separate ablation: the red legs are the reverse verification of the one behaviour (the mode passed per door).", "gates": "Local, under the lock where heavy: dispatch-gates --commands derived 118 for this diff, all run at 92033c6d3f. The test-reading gates were re-run at 2297ac0dbb, all exit 0: cross-package-test-inputs, test-source-alias, undeclared-dep-imports, nul-bytes, objectql-double-limit, where-matcher, query-options-erasure, type-check-debt, engine-double-contract. engine-double-contract was red (exit 1) at 92033c6d3f on the new test's findOne/update; fixed by dropping those unused verbs, not by a ledger write. --ran reconciliation exit 0: 118 derived, 115 run, 3 NOT-MEASURED (exit 3, PREREQUISITE NOT MET, unbuilt dists of packages outside the diff): spec check:skill-examples (client-react dist), check:dual-build-cjs-loads, check:i18n (CLI build). CI on 2297ac0dbb, 65 runs: 32 success, 10 skipped, 23 in_progress, 0 failure. Lint & Repo Gates, Build Core, Build & E2E UI, Live E2E UI, Governed Surface Queue Guard, Check Changeset, Dogfood Regression Gate and Type Check source/consumer/debt are success. Test Core shards and Test UI shards, Type Check UI and Type Check workspace are in_progress. The platform-checklist red on main that the coordinator named did not show here: Lint & Repo Gates is success on this head.", "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2: one relay stroke pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/34429/assignees os-project-manager, run 43914899959) and this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/34405/comments via post-stamped). Plus git push of the branch.", "open_questions": [ { "question": "The restart heal (rehydrate's empty-database heal) is a door the card does not name. It now passes 'honour'.", "options": [ "A keep honour: purge then reinstall then restart does not bring the purged rows back, and a new database is still healed whole (pinned)", "B revert the heal to no landedKeys: one argument at one call site. Then a purge then reinstall then single-tenant restart re-inserts every purged row, because withheld rows count as skipped and reset the ledger's purge flag" ], "recommendation": "A, because it is the same guard the runtime's boot seed applies, and B leaves the card's defect open through a restart" }, { "question": "Prose outside the claimed file surface was corrected because this change made it false: spec seed.zod.ts mode JSDoc and .describe, 4 generated reference mdx, content/docs/data-modeling/seed-data.mdx, and platform-objects sys-seed-landed-key JSDoc. The claim said stop on breach. os-dev.md says a defect this change makes false must be fixed in the same PR, and that file wins on a conflict, so I followed it and am stating the conflict here.", "options": [ "A keep them in this PR (restates route B, ruling-ref 6919107678; no shape change; @objectstack/spec patch in the changeset)", "B split them into a docs-only follow-up PR" ], "recommendation": "A, because shipping the door change with spec and docs that say install keeps no record would publish a false description" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted in Acceptance notes, not filed: runInlineSeed also builds the loader without getFieldFiles, so a seed row naming a seed file would be refused on this door. Code-read only, not reproduced, so not filed", "carrier: none · noted, not filed: the loader's info line for withheld rows names seed-replayer { reseed: true } as the way back. On install-local the operator's route is the sample-data reseed. Wording in metadata-protocol" ], "overlaps": "git merge-tree --write-tree of 2297ac0dbb against #34418 (c965590cfc), #34316 (6d8f7954b2, same file) and origin/main (eb0d480bb8): exit 0, no conflict. #34407's branch had no commit beyond main at the probe." }objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
Claim amendment · file surface · 2026-11-16T17:25Z
Claim 6921698767 is amended on the seat's route (17:24Z). PR #34429 corrects prose that this change made false (it said a package install, its heal, its reseed and the fallback replayer keep no record), so the file surface now also covers:
packages/spec/src/data/seed.zod.ts(themodeJSDoc and.describe()text only; no shape change)content/docs/references/api/package-api.mdx,content/docs/references/data/seed-loader.mdx,content/docs/references/data/seed.mdx,content/docs/references/kernel/manifest.mdx(regenerated)content/docs/data-modeling/seed-data.mdxpackages/platform-objects/src/system/sys-seed-landed-key.object.ts(JSDoc)The restart heal also passes
honour(seat route A, not a maintainer ruling). Becausepackages/spec/srcis touched, the PR owes a contract review atCONTRACT_REVIEW_TIER(schema face) before landing.objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
os-dev-report
{ "issue": 34405, "status": "needs_decision", "branch": "claude/issue-34405-install-local-landed-keys", "pr": "https://github.com/objectstack-ai/objectstack/pull/34429", "session": "session_01FEkQ5pHNFS9mn8hS13iGyL", "premise_still_valid": true, "final_head": "2297ac0dbbea8398b08cd5822eadeca74ed4ae19", "summary": "Fix round 1 stopped before building (ask 3): no shape keeps both pins, because they pin the same scenario with opposite outcomes. #30324 (packages/cli/test/package-install-local-sample-owner.integration.test.ts, last it) runs the real os start stack twice on one home and one database. Boot 1 installs, deletes Deal B, purges (flag true), reseeds (flag false, keys recorded), then deletes every row of both seeded objects by id through /api/v1/data, on purpose 'not a purge, which would tell the heal the emptiness is wanted'. Boot 2 expects the heal to bring the 3 sample deals back, owned by the installer the ledger records. The #30324 ruling (6670861426) is about ownership; the rows coming back is the device that reaches the heal. This PR's restart pin (marketplace-install-local-landed-keys.test.ts, 'a restart does not heal back the seed rows a person deleted...', flat and composed) runs the same steps: install, every seeded row deleted, no purge, restart, same store. It expects them to stay gone. Its control half (every table wiped, sys_seed_landed_key included) expects a full heal. The PR has NO purge then reinstall then restart pin. The PR body's Acceptance notes and the earlier report say it does, and that is false. Measured: one argument at the heal (maybeHealSampleData, 'honour') decides between the two pins. With it absent, the PR pin goes red 2/13 and #30324 goes green 6/6. At head the PR pin is green and #30324 is red 1/6. Shapes tried on paper, each fails one pin. (1) Heal unguarded, and the reinstall keeps the purge flag: #30324 green, but the PR pin has no purge, so it goes red. (2) Heal honours only when the ledger records a purge: the heal returns before seeding when sampleDataPurged is true (plugin line 1871), so this is shape 1. (3) Tell a data-API delete apart from other emptying: the loader keeps no record of deletions, only absence against a recorded key, and making an API delete forget its key defeats the card. (4) Key on #30324's earlier purge or reseed: the reseed clears the flag and records the keys the same way, so the data is identical and the rule would be unprincipled. No commit and no push this round; the head stays 2297ac0d.", "tests": "All runs under scripts/pm/os-verify-lock.sh, VERDICT lines quoted. Build: pnpm --workspace-concurrency=2 --filter '@objectstack/cli^...' build, VERDICT command-exit 0 (366s). (1) Reproduced at 2297ac0d: pnpm --filter @objectstack/cli exec vitest run --project integration --maxWorkers=2 test/package-install-local-sample-owner.integration.test.ts gave 'Tests 1 failed | 5 passed (6)', 'AssertionError: expected [] to deeply equal [ Sample Deal A, …(2) ]', the same as CI job 133467961376, VERDICT command-exit 1. (2) Diagnostic mutation (not a fix; no commit): scripts/ablation-replace.mjs in WRAP mode with an EXIT/INT/TERM trap. Anchor: the heal's runInlineSeed(ctx, datasets, 'honour', ...), hit 1 to 0. Replaced with (globalThis as any).ABLATE34405HEAL, which leaves landedKeys absent, the pre-PR heal; blob 1ac00903c9d3 to 1cde59c11e41. Then rebuilt cloud-connection (exit 0), and ablation-dist-preflight found the marker present in dist/index.js and dist/index.cjs. Under the mutation: src/marketplace-install-local-landed-keys.test.ts 'Tests 2 failed | 11 passed (13)', both the restart pin (flat and composed), 'AssertionError: expected [ Acme, Globex ] to deeply equal []'. #30324 file 'Tests 6 passed (6)'. Restore: blob 1ac00903c9d3 == HEAD, git diff HEAD empty, rebuild exit 0, preflight --absent: the marker is absent from all 6 built files and the tree is clean. VERDICT command-exit 0. (3) Control at restored HEAD: vitest run of landed-keys, heal and seed-owner (cloud-connection) 'Test Files 3 passed (3) Tests 36 passed (36)', VERDICT command-exit 0. No local run of the other install-local, seed or sample cli integration tests: no code changed and no green is claimed. CI Test Core (8/8) on 2297ac0d ran them all: '@objectstack/cli Test Files 1 failed | 216 passed (217); Tests 1 failed | 2729 passed | 7 skipped (2737)', and the only FAIL is the #30324 case above.", "gates": "No diff this round, so no dispatch-gates derivation and no --ran reconciliation (nothing to derive from). CI check-runs on 2297ac0d, latest run per check: 68 total, 54 success, 12 skipped, 2 failure. The failures are Test Core (8/8) (job 133467961376, the #30324 case, caused by this PR's heal honour) and the Test Core aggregate, which follows from it. Lint & Repo Gates, all Lint sub-jobs, Build Core, Build & E2E UI, Type Check source/consumer/debt/workspace/UI: success. The main-side check:platform-checklist red did not show: Lint & Repo Gates is success on this head. No rerun requested: the red is caused by this PR, not flaky.", "line_budget": "n/a: no file changed", "deviations": "Ask 4 was not run in full (the install-local, seed and sample cli integration tests and the dispatch-gates families). Ask 3 stops before building, so there is no new head to verify; the CI Test Core (8/8) tally above is the reading of the current head. The heal-guard mutation was run as a diagnostic for the decision, not as an ablation of a fix. It was restored and proved by blob hash, an empty git diff HEAD and dist preflight --absent.", "files_changed": [], "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm; no new head", "mcp_calls": "0", "api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/34405/comments (this os-dev-report, via post-stamped). No git push this round. The reads were single-resource REST GETs (card, card comments, PR, PR comments, the PRs #34316 and #34428, check-runs, the job log).", "open_questions": [ { "question": "Should install-local's restart heal honour the landed-key record? #30324's restart pin and this PR's restart pin assert opposite outcomes for the same scenario: the same database, every seeded row deleted by a person (not purged), then a restart.", "options": [ "A Keep 'honour' at the heal (current head). The PR pin stands as written. In the #30324 file the restart it keeps every assertion verbatim (healed deals = the 3 samples, owned and created by the recorded installer). Only its setup between the boots changes: it also deletes the database's sys_seed_landed_key rows (better-sqlite3, which the cli tests already use, for example dev-standalone-self-heal.integration.test.ts), so the heal sees what it exists for: a database that lost its rows and its record (os dev --fresh, a deleted dev.db, a --database switch, per the heal test's header) while the users stay, so the recorded installer still resolves. The setup comment's 'not a purge, which would tell the heal the emptiness is wanted' is reworded: a person's deletion is now wanted emptiness too. Also add the purge then reinstall then restart pin the PR body claims. Cost: edits #30324's test setup, which this dispatch forbade without a decision; #30324's ruling subject (ownership) is unchanged. Effort S. Not measured: the DB file path under os start --home; the test may need an explicit -d file: URL.", "B Revert the heal to no landedKeys, or to 'reseed', which also keeps the record current: only the doors the card names honour. #30324 stays as written and turns green (measured under the mutation, 6/6). The PR's restart pin is inverted to 'a restart heals a same-database emptied seed', which was main's behaviour; its new-database half stays. Consequence 1: a person who deletes every sample row of every seeded object sees them all back after a single-tenant restart. Partial deletions stay deleted, because the heal does not run while any row survives. Consequence 2: purge, then reinstall, then restart re-inserts the purged rows. The reinstall withholds them, counts them as skipped and clears sampleDataPurged (plugin line 3304). B prime closes that: the reinstall keeps sampleDataPurged when the load inserted and updated nothing, with a pin. The changeset and the spec mode prose ('with its restart heal') are reworded. Effort S to M." ], "recommendation": "A, because: the card's business reason is that a deleted demo row stays deleted. The runtime AppPlugin boot seed honours the record on every boot (packages/runtime/src/app-plugin.ts, seedLoaderOptionsFor(ctx, 'honour') at the boot and dev-reload loaders), so under B install-local's restart would be the one door that brings back a fully deleted seed. The heal's documented purpose, a new database under a kept ledger, is still met in full under honour and is pinned. And A keeps #30324's ruling subject (who owns the healed rows) asserted verbatim. B is the right choice only if the maintainer reads #30324 as promising that a restart always refills a seed a person emptied." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: PR #34429 body (area writes it) · the Acceptance notes first bullet and the 维护者速读 risk line say 'both directions are pinned: a purge followed by a reinstall and a restart stays purged'. No such pin exists. What the PR pins is 'every seeded row deleted, no purge, restart: stays empty'. Replacement text is in summary_for_pr_body." ], "overlaps": "git merge-tree --write-tree --name-only of 2297ac0d against #34316 (6d8f7954b2, draft) gave exit 0, and against #34428 (c98999cbf6, in the merge queue) exit 0. Against origin/main (c9ef6538bf) exit 0. No conflicts. Neither PR's diff of marketplace-install-local-plugin.ts touches runInlineSeed, SeedLoaderService or maybeHealSampleData (grep exit 1 on both), so the new required landedKeys parameter of runInlineSeed has no semantic conflict either.", "check_runs_on_final_head": "2297ac0d: 68 checks (latest per name), 54 success, 12 skipped, 2 failure (Test Core (8/8) and the Test Core aggregate; the #30324 case, caused by this PR)", "summary_for_pr_body": "## Fix round 1\n\nNo code change this round; the head stays `2297ac0d`. Test Core (8/8) is red on one case: `#30324 … a restart over emptied tables heals them, owned by the installer the ledger records` (`expected [] to deeply equal [ 'Sample Deal A', …(2) ]`), reproduced locally.\n\nThat pin and this PR's restart pin (`a restart does not heal back the seed rows a person deleted…`) assert opposite outcomes for the same scenario: the same database, every seeded row deleted by a person (not purged), then a restart. One argument decides between them, measured: with `landedKeys` removed from the restart heal, this PR's pin goes red 2/13 and #30324 green 6/6; at head the reverse. No shape keeps both. The heal keeping no guard while the reinstall keeps the purge flag, or the heal honouring only after a recorded purge, both turn this PR's pin red; there is no deletion record to tell the two apart. The choice is on the card as a decision: A keep `honour` and move #30324's restart trigger to a database that has also lost its landed-key record (assertions verbatim), or B revert the heal to the pre-PR behaviour.\n\n`git merge-tree` against #34316 and #34428: no conflict, and neither touches `runInlineSeed`.\n\nReplacement for the first Acceptance notes bullet (the current text claims a purge pin that does not exist):\n\n- **The restart heal is wired to `honour`, a door the card does not name (seat route A, not a maintainer ruling; open decision, Fix round 1).** The heal runs only when every seeded object is empty and the ledger does not record a purge. Pinned: a restart over a seed a person emptied (no purge) does not heal it back, and a new database (no rows, no record) is healed whole. Not pinned yet: a purge followed by a reinstall and a restart. This contradicts #30324's restart pin, which expects that same emptied seed to heal (red in Test Core 8/8).\n\nReplacement for the 维护者速读 risk line:\n\n- **风险与回滚**:重装或升级后,被删的样例行不再回来,只能用「重新灌入」找回(本卡要的行为)。重启自愈也遵守台账(本卡未点名,席位路由 A),这与 #30324 的重启用例直接矛盾:同一库里样例行被人删光后重启,#30324 期望补回,本 PR 期望不补。CI 因此红一例,待裁决。回滚即撤销本 PR。" }Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
os-dev-report
{ "issue": 34405, "status": "done", "branch": "claude/issue-34405-install-local-landed-keys", "pr": "https://github.com/objectstack-ai/objectstack/pull/34429", "session": "session_01FEkQ5pHNFS9mn8hS13iGyL", "premise_still_valid": true, "final_head": "6ce35da79360fa2f7b13c3cf014b6fdebd06e763", "summary": "Fix round 2 on seat route A. The restart heal keeps 'honour' and the plugin source is unchanged. (1) #30324's restart case (package-install-local-sample-owner.integration.test.ts) now also deletes the rows of sys_seed_landed_key between its boots. This runs after boot 1 stops, with better-sqlite3 (fileMustExist) on HOME/data/objectstack.db. The harness settles that path: bootStart passes --home and no -d, the cwd has no project config, and start.ts falls back to file:HOME/data/objectstack.db. childEnv strips only vitest worker keys and NODE_PATH. A precondition throw guards a wrong path or an empty record. The setup comment is reworded and cites ruling 6670861426 and #34405. Assertions are verbatim. (2) A new pin, 'a purge stays purged across a reinstall and a restart', flat and composed, is in marketplace-install-local-landed-keys.test.ts. It was green on its first run over 2297ac0d's plugin, not red, so the stop condition did not apply. What holds it: the reinstall withholds every row, counts them as skipped and clears sampleDataPurged (plugin ~3304), so the restart heal runs, and its 'honour' withholds the recorded keys. Ablating that 'honour' reddens it. (3) The engine double needed a by-id delete for the purge. It uses assertEngineDeleteDispatch, and the pinned ledger records it (CI Lint · ESLint was red on 86d86777 for that, fixed at 6ce35da7). Coordinator ask: content/docs/deployment/cli.mdx was re-read, and no sentence there becomes false (see deviations).", "tests": "All heavy runs went through scripts/pm/os-verify-lock.sh, and the VERDICT lines are quoted. Closure build: pnpm --workspace-concurrency=2 --filter '@objectstack/cli^...' build, VERDICT command-exit 0 (372s). (a) #30324 file at 86d86777 (the test file is identical at 6ce35da7): pnpm --filter @objectstack/cli exec vitest run --project integration --maxWorkers=2 test/package-install-local-sample-owner.integration.test.ts gave 'Tests 6 passed (6)', VERDICT command-exit 0. Reversal leg: node scripts/ablation-replace.mjs in WRAP mode, with a trap 'git checkout HEAD -- ABS' on EXIT INT TERM. The anchor was the clear line \"store.prepare('DELETE FROM sys_seed_landed_key').run();\" with --delete; anchor x1 to x0, blob 2f9450ac1da3 to 8b9e2ae4de3e. Result 'Tests 1 failed | 5 passed (6)': × 'a restart over emptied tables heals them, owned by the installer the ledger records', 'AssertionError: expected [] to deeply equal [ Sample Deal A, …(2) ]', VERDICT command-exit 1. Restore: blob 2f9450ac1da3 == HEAD, git diff HEAD empty. No dist step, because the test file is read from source. (b) Landed-key suite: pnpm --filter @objectstack/cloud-connection exec vitest run --maxWorkers=2 src/marketplace-install-local-landed-keys.test.ts gave 'Tests 15 passed (15)' on the first run of the new pin, with the plugin at 2297ac0d's blob 1ac00903c9d3, VERDICT 0. Ablation of the guard that holds it: ablation-replace WRAP, anchor = the heal's runInlineSeed(ctx, datasets, 'honour', ..., resolveRecordedInstaller(ctx, entry)), replaced with (globalThis as any).ABLATE34405HEAL (landedKeys absent, the pre-PR heal). Anchor x1 to x0, replacement x0 to x1, blob 1ac00903c9d3 to 1cde59c11e41. Result 'Tests 4 failed | 11 passed (15)': the new purge pin and the restart pin, flat and composed, 'AssertionError: expected [ Acme, Globex ] to deeply equal []', VERDICT command-exit 1. Restore: blob 1ac00903c9d3 == HEAD, git diff HEAD empty. The suite imports the plugin by relative source path, so dist is not on the path and no rebuild or dist preflight was owed. (c) cli integration, every test file whose name mentions install-local, seed or sample (boot-steps, handlers, hooks, jobs-pull, jobs-shared-name, jobs, sample-owner, uninstall-cleanups, seed-record-values-load-parity, verify-seed-outcome): 'Test Files 10 passed (10) Tests 86 passed (86)', VERDICT command-exit 0. build-seed-files-artifact.e2e.test.ts and serve-config-boot-seed-files.e2e.test.ts: the cli vitest config 'matches no test file' for them, so they were not run. (d) pnpm --filter @objectstack/cloud-connection exec vitest run --maxWorkers=2: 'Test Files 85 passed (85) Tests 1253 passed (1253)', VERDICT 0. (e) pnpm --filter @objectstack/cloud-connection typecheck && pnpm --filter @objectstack/cli typecheck (tsc plus check:test-typecheck 'OK'), VERDICT command-exit 0. (a) and (c) ran at 86d86777; 6ce35da7 adds only scripts/engine-double-contract.pinned.json. (b), (d) and (e) also ran at 86d86777-equivalent source.", "gates": "Local subset, each exit captured before any pipe. pnpm check:engine-double-contract: exit 1 at 86d86777 ('x RETAINED [delete]: ...landed-keys.test.ts pins 1 engine double(s) that the pinned ledger does not record'). Then node scripts/check-engine-double-contract.mjs --write: exit 0, '1 added or grown, 0 lost'. Then exit 0 at 6ce35da7. Exit 0 each: check:where-matcher, objectql-double-limit, test-source-alias, cli-test-child-env, cross-package-test-inputs, tier-file-adoption, nul-bytes, issue-citations, refd-timer-probe, undeclared-dep-imports (better-sqlite3 is in the cli's optionalDependencies), query-options-erasure, type-check-coverage, system-context-census; and, for the ledger file under scripts/, agent-test-spelling, bash32-floor, entry-guard, parse-guard, pnpm-filter-targets, pnpm-flag-spellings, scripts-symbol-anchors. dispatch-gates --commands at 6ce35da7 derives 126 families over the whole PR (12 paths vs merge base 857941dbe). --ran reconciliation: 21 run, 105 UNRUN, exit 1. The narrowing is declared: the 105 read the spec, docs and plugin files that rounds 0 and 1 changed and this round did not touch. Round 0 ran them locally, and CI Lint & Repo Gates runs the farm. CI on 6ce35da7, latest run per check, read once: 64 checks, 24 success, 10 skipped, 30 in_progress, 0 failure, so the convergence is in_progress. On superseded 86d86777: Lint · ESLint failure (the engine-double gate, fixed above) and the Lint & Repo Gates aggregate; Test UI and TypeScript Type Check aggregates failure only because my push to 6ce35da7 cancelled their shards and Type Check · workspace/consumer gates. No rerun requested. The main-side check:platform-checklist red has not shown so far.", "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm", "files_changed": [ "packages/cli/test/package-install-local-sample-owner.integration.test.ts", "packages/cloud-connection/src/marketplace-install-local-landed-keys.test.ts", "scripts/engine-double-contract.pinned.json" ], "commits": [ "86d86777ca test: #30324's restart heals a database that lost its rows and its landed-key record; pin purge, reinstall, restart stays purged", "6ce35da793 test(cloud-connection): record the landed-key suite's by-id delete double in the engine-double ledger" ], "overlaps": "git merge-tree --write-tree --name-only of 6ce35da7: against #34316 (6d8f7954b2, open) exit 0, and against origin/main fe19c97188 exit 0. #34428 is merged; its head c98999cbf6 is not an ancestor of main because it was squashed as fe19c97188, which touches marketplace-install-local-plugin.ts. In the merged tree all four runInlineSeed callers pass a mode: heal 'honour', replayer, unmanaged copy, and the ledgered reseed or install. No merge of origin/main was needed: no conflict, and no red came from main.", "deviations": "(1) The engine-double ledger: os-dev prefers overriding a double the file already has over pinning a new one. This file had no delete double, and the purge route deletes through the engine, so the delete was added under the real dispatch predicate and the generated ledger records it. The row is a coverage gain, and the gate's own message says so. It is outside the claimed file surface (scripts/engine-double-contract.pinned.json). (2) The #30324 setup clears every row of sys_seed_landed_key, not only the package's two objects, so it matches 'a database that lost its record'. It also requires at least one row for the two objects before it clears. (3) Coordinator ask, cli.mdx: re-read the lines that name seeding, sample data, reseed or install-local: 3440-3442 (an environment-kernel boot seeds the bundle's data arrays), 3451-3453 (--reseed is reserved), 3743 (--seed-sample-data), 3813-3819 (an install re-registers on every boot and survives restarts, which is about the package, not its rows), 3905-3908 (a seed data change is never refused). None says a restart refills sample rows a person deleted, so none is false and cli.mdx is unchanged. seed-data.mdx lines 167-189 were corrected in round 0 and say the package install or upgrade with its restart heal keeps the record. (4) Not run locally: the two cli *.e2e.test.ts files with seed in the name, which are in no cli vitest project, and the 105 derived families above.", "mcp_calls": "0", "api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/34405/comments (this os-dev-report, through post-stamped). git push twice (86d86777, 6ce35da7), not REST. The reads were REST GETs: the card comments, the round-1 report comment, the PR and its comments, PRs #34316 and #34428, check-runs on two heads, one job log.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [], "summary_for_pr_body": { "fix_round_2_section": "## Fix round 2\n\nSeat route A (17:56Z, not a maintainer ruling): the restart heal keeps `honour`; only #30324's setup between its two boots changes, and the missing purge pin is added. Head `6ce35da793`.\n\n- `packages/cli/test/package-install-local-sample-owner.integration.test.ts`: after boot 1 deletes every seeded row by id and stops, the setup also deletes the rows of `sys_seed_landed_key` in `HOME/data/objectstack.db` (better-sqlite3, `fileMustExist`; the path is `os start`'s default with no `-d` and no project config, and the setup throws a precondition error if that file records no landed key for the two seeded objects). Boot 2 now sees what the heal exists for: a database that lost the seeded rows and their record, under a kept ledger and kept users. The setup comment cites ruling 6670861426 and #34405. No assertion changed.\n- `packages/cloud-connection/src/marketplace-install-local-landed-keys.test.ts`: new pin `a purge stays purged across a reinstall and a restart` (flat and composed). The engine double gains a by-id `delete` under `assertEngineDeleteDispatch` for the purge, and `scripts/engine-double-contract.pinned.json` records it (`--write`: 1 row added, 0 lost).\n\n[a details block titled Readings, folded in the PR body; tags omitted here for the sanitizer]\n\n- #30324 file: `Tests 6 passed (6)`. With the one line that clears `sys_seed_landed_key` deleted (ablation-replace, WRAP mode): `Tests 1 failed | 5 passed (6)`, `a restart over emptied tables heals them...`, `expected [] to deeply equal [ 'Sample Deal A', …(2) ]`; restored, blob == HEAD, `git diff HEAD` empty.\n- Landed-key suite: `Tests 15 passed (15)`. The new pin was green on its first run over the round-1 plugin (`2297ac0d`'s source). What holds it is the heal's `honour`, not the purge flag: the reinstall withholds all 4 rows, counts them as skipped and so clears `sampleDataPurged`, and the restart's heal then runs and withholds the recorded keys. Ablation: heal `honour` replaced by an undefined mode gives `Tests 4 failed | 11 passed (15)` (the new pin and the restart pin, flat and composed, `expected [ 'Acme', 'Globex' ] to deeply equal []`); restored, blob == HEAD.\n- `@objectstack/cli` integration: the 10 test files whose names mention install-local, seed or sample: `Test Files 10 passed (10)`, `Tests 86 passed (86)`. The two `*.e2e.test.ts` files with seed in the name are in no vitest project of this package and were not run.\n- `@objectstack/cloud-connection`: `Test Files 85 passed (85)`, `Tests 1253 passed (1253)`. Typecheck of cloud-connection and cli (with `check:test-typecheck`) exit 0.\n- `pnpm check:engine-double-contract`: exit 1 at `86d86777` (the new `delete` double not in the pinned ledger, which also failed CI `Lint · ESLint`), exit 0 at `6ce35da793`.\n- `git merge-tree --write-tree` against #34316 (`6d8f7954b2`) and `origin/main` (`fe19c97188`, which includes the merged #34428): no conflict. In the merged tree, all four `runInlineSeed` callers pass a mode.\n[end of the details block]", "weihu_suduo_replacements": [ "- **先看**:`packages/cloud-connection/src/marketplace-install-local-plugin.ts` 的 `runInlineSeed` 及其四个调用点(各入口选的模式);`marketplace-install-local-landed-keys.test.ts`;`packages/cli/test/package-install-local-sample-owner.integration.test.ts` 两次启动之间新增的清台账步骤。", "- **风险与回滚**:重装或升级后,被删的样例行不再回来,只能用「重新灌入」找回(本卡要的行为)。重启自愈也遵守台账(本卡未点名,席位路由 A,非维护者裁决):样例行被人删光、或被「清除样例数据」清掉后再重装,重启都不补回;只有库里连台账一起丢了(新库)才整套补回。#30324 的重启用例改为在两次启动之间同时清掉台账,归属断言一字未改。回滚即撤销本 PR。", "- **两分钟验证**:`pnpm --filter @objectstack/cloud-connection exec vitest run src/marketplace-install-local-landed-keys.test.ts`,预期 15 个用例全绿(原 13 个在 main 上实测全红;新增的「清除、重装、重启后仍为空」用例在 main 上未测)。" ], "acceptance_notes_first_bullet": "- **The restart heal is wired to `honour`, a door the card does not name (seat route A, not a maintainer ruling).** The heal runs only when every seeded object is empty and the ledger does not record a purge, and then withholds every key the database records. Pinned in `marketplace-install-local-landed-keys.test.ts` (flat and composed): a restart over a seed a person emptied (no purge) does not heal it back; a purge followed by a reinstall and a restart stays purged (the reinstall clears `sampleDataPurged`, so the heal's `honour` is what holds it; measured by ablation); a new database (no rows, no record) is healed whole. #30324's restart case now reaches its heal through that last state: between its boots it also clears `sys_seed_landed_key`, and its ownership assertions are unchanged (ruling 6670861426 decides who owns the healed rows, not whether a restart refills rows a person deleted)." } }Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
Claim amendment 2 · file surface · 2026-11-16T18:31Z
On the seat's route A (17:56Z, not a maintainer ruling; ruling 6670861426 read as ownership only), fix round 2 of PR #34429 adds two paths to the surface of claim 6921698767:
packages/cli/test/package-install-local-sample-owner.integration.test.ts: only the setup between [Decision] An installed app's sample data has no owner, so a colleague opening the app sees none of it #30324's two boots (it also clearssys_seed_landed_key); no assertion changed.scripts/engine-double-contract.pinned.json: the generated row for the landed-key suite's by-iddeletedouble.objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
os-dev-report
{ "issue": 34405, "status": "done", "branch": "claude/issue-34405-install-local-landed-keys", "pr": "https://github.com/objectstack-ai/objectstack/pull/34429", "session": "session_01FEkQ5pHNFS9mn8hS13iGyL", "premise_still_valid": true, "final_head": "df003ebc97b5b2cc2813688de6e045da9f96c7fb", "summary": "Fix round 3 on review#1 (6926546702), built under seat route A (the restart heal keeps 'honour'). M1: maybeHealSampleData now tells withheld rows apart from a load that landed nothing. When nothing lands, skipped is above 0 and there is no error, it logs at info and records { inserted: 0, updated: 0, skipped: N, rejected: 0, droppedRefs } with no emptyInstall and no healed. Every other zero-landed load keeps today's warn and emptyInstall. The change is one else-if branch plus its JSDoc paragraph in commit 05bf2a48f2, which can be reverted on its own if the maintainer rules B. S1: the changeset and seed-data.mdx no longer say 'comes back once, on the first load after the upgrade'. They now say an existing install records nothing until its next install, upgrade, reseed, replay or restart heal, so a row deleted before that load, even after the upgrade, comes back on it. N1: the SeedSchema.mode JSDoc and .describe() list the seed-replayer replay as AppPlugin's or the marketplace's fallback one, and say that a load which names no organization and finds no sole one keeps no record. The 4 reference pages are regenerated. N2: the heal JSDoc says a recorded key is withheld and how the outcome is reported. The changeset gains '@objectstack/platform-objects': patch with a line for the sys_seed_landed_key JSDoc. N3 is done: the loader's withheld-rows info line now ends 'the seed-replayer service called with { reseed: true }, or an installed package's sample-data reseed.' The changeset gains '@objectstack/metadata-protocol': patch with a line for it. No reader of emptyInstall was changed.", "summary_for_pr_body": { "fix_round_3_section": "## Fix round 3\n\nAnswers review#1 (contract review FAIL, 6926546702), built under seat route A (the restart heal keeps `honour`; route A is with the maintainer, not a ruling). Head `df003ebc97`.\n\n- **M1** (`packages/cloud-connection/src/marketplace-install-local-plugin.ts`, `maybeHealSampleData`): when the heal lands nothing, `skipped` is above 0 and there is no error, the rows were withheld by the landed-key record. That is the declared outcome, so the heal logs it at `info` and records `{ inserted: 0, updated: 0, skipped: N, rejected: 0, droppedRefs }` with no `emptyInstall` and no `healed`. The boot banner, `objectstack:seed-settled`, `GET /ready` and `os verify` then read the restart as settled. A load that lands nothing and withholds nothing, or that errors, keeps the `warn` and `emptyInstall`. The change is self-contained: one `else if` branch and one JSDoc paragraph, in commit `05bf2a48f2`.\n- **S1**: the changeset and `content/docs/data-modeling/seed-data.mdx` now say an existing install records nothing until its next install, upgrade, reseed, replay or restart heal. A row deleted before that load, even after the upgrade, comes back on it.\n- **N1**: the `SeedSchema.mode` JSDoc and `.describe()` name the `seed-replayer` replay as AppPlugin's or the marketplace's fallback one. They also say that a load which names no organization and finds no sole one keeps no record. The four reference pages are regenerated.\n- **N2**: the heal's JSDoc says a recorded key is withheld and how that is reported. The changeset gains `@objectstack/platform-objects` (patch) for the `sys_seed_landed_key` JSDoc.\n- **N3**: the loader's withheld-rows `info` line names an installed package's sample-data reseed beside `seed-replayer` `{ reseed: true }`. The changeset gains `@objectstack/metadata-protocol` (patch).\n\n[fold the next bullets into a details block titled: Red first, then green]\n\n- At `7c46403ce2` (tests only, over 45afc37f's plugin): `src/marketplace-install-local-landed-keys.test.ts` + `src/marketplace-install-local-heal.test.ts`: `Tests 4 failed | 20 passed (24)`. The restart pin and the purge pin (flat and composed) failed, the diff showing `+ emptyInstall: true`, `- skipped: 4 / + skipped: 0`.\n- At `05bf2a48f2` (the fix): `Tests 24 passed (24)`.\n- Pins: the restart and purge-reinstall-restart pins read the recorded `seed-summary` outcome (`toEqual` the withheld outcome, so `emptyInstall` absent) and the logger (no heal `warn`, one heal `info`). The new-database control reads `healed: true, inserted: 4`, no `emptyInstall`. The heal suite adds the genuinely empty load (`0/0/0`, no error) and the skipped-with-error load: both still record `emptyInstall` and `warn`.\n- cloud-connection: `Test Files 87 passed (87)`, `Tests 1271 passed (1271)`; typecheck exit 0. cli integration (8 install-local files including #30324's) `Tests 83 passed (83)`, plus `seed-record-values-load-parity` and `verify-seed-outcome` `Tests 3 passed (3)`. metadata-protocol `seed-loader-landed-ids.test.ts` `Tests 27 passed (27)`. Spec build, `gen:docs` and `check:generated`: `All 14 generated artifacts are up to date`.", "bullets_now_false": [ { "where": "Acceptance notes, bullet 3", "old": "Rows a person deleted before this release come back once, on the first load after the upgrade, and stay deleted from then on (the record starts empty).", "new": "An existing install records nothing until its next install, upgrade, reseed, replay or restart heal, so a row a person deletes before that load, even after the upgrade, comes back on it once, and stays deleted from then on (the record starts empty)." }, { "where": "Acceptance notes, bullet 4", "old": "The loader's `info` line for withheld rows names `seed-replayer` with `{ reseed: true }` as the way back; install-local's own route is the sample-data reseed. Wording only, in `@objectstack/metadata-protocol`, not changed here.", "new": "The loader's `info` line for withheld rows now names an installed package's sample-data reseed beside `seed-replayer` with `{ reseed: true }` as the way back (fix round 3, `@objectstack/metadata-protocol` patch)." }, { "where": "Acceptance notes, bullet 1 (append a sentence; nothing in it is false, it is now incomplete)", "old": "a new database (no rows, no record) is healed whole.", "new": "a new database (no rows, no record) is healed whole. A heal that withholds every row reports a settled seed (real `skipped`, `info`, no `emptyInstall`), so the boot banner, `objectstack:seed-settled`, `GET /ready` and `os verify` read it as settled (fix round 3)." }, { "where": "维护者速读 · 风险与回滚 (append; not false, incomplete)", "old": "只有库里连台账一起丢了(新库)才整套补回。", "new": "只有库里连台账一起丢了(新库)才整套补回。这类「全被台账扣下」的重启,启动横幅、/ready 与 os verify 读作正常(settled),不再报「已安装但 0 行」。" }, { "where": "Acceptance notes, new bullet (boundary)", "old": "", "new": "Boundary: a heal over datasets that are all `mode: 'update'` on an empty database lands nothing and counts every row in `skipped` (update writes matched rows only). It now reads as settled, not as an empty install, because the summary does not tell an update skip from a withheld row. Telling them apart needs a withheld count in the loader's summary (`@objectstack/metadata-protocol`), which is not in this PR." } ], "unchanged_note": "The 两分钟验证 line still holds: the landed-key suite is still 15 cases (this round added assertions inside 2 of them, flat and composed). The heal suite grows by 2." }, "tests": "All heavy runs under scripts/pm/os-verify-lock.sh, slot issue-34405-r3, VERDICT lines read. Closure: pnpm --workspace-concurrency=2 --filter '@objectstack/cloud-connection^...' build, VERDICT command-exit 0 (277s). RED at 7c46403ce2 (tests only, plugin = 45afc37f blob): vitest run src/marketplace-install-local-landed-keys.test.ts src/marketplace-install-local-heal.test.ts gave 'Tests 4 failed | 20 passed (24)', VERDICT command-exit 1. The 4 are the restart pin and the purge pin, flat and composed: 'expected { source: com.example.lkflat, ... } to deeply equal ...', diff '+ emptyInstall: true', '- skipped: 4 / + skipped: 0'. GREEN at 05bf2a48f2: 'Tests 24 passed (24)', VERDICT 0. The 2 new heal cases (0/0/0 with no error; skipped 2 with an error) were green before and after: they guard that the genuinely empty load still records emptyInstall and warns. No ablation: the red leg at 7c46403ce2 is the reverse verification of the one behaviour added, and the suite imports the plugin by relative source path (no dist). cloud-connection full suite plus typecheck at df003ebc97: 'Test Files 87 passed (87) Tests 1271 passed (1271)', typecheck exit 0, VERDICT 0. cli closure: pnpm --workspace-concurrency=2 --filter '@objectstack/cli^...' build plus the cli build, VERDICT command-exit 0 (401s). cli integration (--project integration): boot-steps, handlers, hooks, jobs-pull, jobs-shared-name, jobs, sample-owner (#30324), uninstall-cleanups: 'Test Files 8 passed (8) Tests 83 passed (83)'. Plus seed-record-values-load-parity and verify-seed-outcome: 'Test Files 2 passed (2) Tests 3 passed (3)'. VERDICT 0. metadata-protocol src/seed-loader-landed-ids.test.ts (reads the withheld info line by 'not inserted again'): 'Tests 27 passed (27)', VERDICT 0. Spec: pnpm --filter @objectstack/spec build && gen:docs && check:generated, 'All 14 generated artifacts are up to date', VERDICT 0. authorable-surface.base.json unchanged. The end-to-end reader assertion was not added. None of the four readers is reachable from the cloud-connection suite: seedOutcomeIsClean and readSeedReadiness are not exported from @objectstack/runtime's index, composeSeedSettledMessage and the banner live in @objectstack/cli, and @objectstack/verify is not a cloud-connection dependency. Each reader judges exactly rejected, droppedRefs and emptyInstall (format.ts:1847, seed-settled-message.ts:22, seed-readiness.ts:62, seed-outcome.ts:236), and the pin asserts that whole object by toEqual. A cli-side end-to-end check would need a new install-local restart over an emptied seed in a spawned os start, the shape of #30324's file: a new integration test, not cheap.", "gates": "dispatch-gates --commands at df003ebc97 derived 126 families over the whole PR (14 paths vs merge base a121e29c2). All 126 were run locally at df003ebc97, exit captured before any pipe. 123 exit 0, plus check:generated exit 0 (see next). The --ran reconciliation exit 0: '126 derived, 124 run, 2 NOT-MEASURED, 0 UNRUN'. NOT-MEASURED (exit 3, PREREQUISITE NOT MET, unbuilt dists of packages outside the diff, the same two as round 0): spec check:skill-examples, check:dual-build-cjs-loads. check:generated, in the gate loop with no heap cap, ran concurrently with the cli integration run and exited 1: 'check:test-typecheck: tsc -p tsconfig.test.json failed without diagnostics'. A rerun without the cap also exited 1. A rerun with NODE_OPTIONS=--max-old-space-size=4096 under the lock gave exit 0, 'All 14 generated artifacts are up to date', so the record carries exit 0. The first failure is read as tsc running out of default heap, not a stale artifact: the gate printed no diagnostic and no file. check:nul-bytes exit 0 before the push. No export renamed or deleted, so check-platform-checklist was not owed. CI check-runs on df003ebc97, latest per name: 68 total, 57 success, 10 skipped, 1 cancelled. Success includes Lint & Repo Gates, Build Core, Test Core (1/8..8/8) and its aggregate, Type Check source/consumer/debt/workspace/UI, TypeScript Type Check, Check Changeset and Dogfood Regression Gate. The cancelled one is Check PR Size (PR Automation workflow, run 43940231708, job 133555498708): its 'Checkout repository' step hung and the job was cancelled after 10 minutes, 19:31:38 to 19:41:40. That is a checkout hang outside ci.yml, so it was not rerun and nothing was pushed to retrigger it. Merge-tree: git merge-tree --write-tree of df003ebc97 against origin/main 6a7403bae1 exit 0, and against #34316 (claude/area-A5-33922 @ 6d8f7954b2) exit 0, no conflict.", "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm", "line_budget": "n/a: no skills/** file touched", "deviations": "The cli integration and the gate loop ran at the same time (the gate loop is unlocked by rule). That is the likely cause of the transient check:generated tsc failure recorded above. The changeset is the PR's own file, not one already on main, so DELIBERATE CORRECTION does not apply. N3 widened the file surface by one source file outside cloud-connection, packages/metadata-protocol/src/seed-loader.ts, one string literal. The dispatch asked for that change if cheap.", "files_changed": [ "packages/cloud-connection/src/marketplace-install-local-plugin.ts", "packages/cloud-connection/src/marketplace-install-local-landed-keys.test.ts", "packages/cloud-connection/src/marketplace-install-local-heal.test.ts", "packages/metadata-protocol/src/seed-loader.ts", "packages/spec/src/data/seed.zod.ts", "content/docs/references/api/package-api.mdx", "content/docs/references/data/seed-loader.mdx", "content/docs/references/data/seed.mdx", "content/docs/references/kernel/manifest.mdx", "content/docs/data-modeling/seed-data.mdx", ".changeset/install-local-honours-landed-keys.md" ], "mcp_calls": "0", "api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/34405/comments (this os-dev-report, via post-stamped). Plus git push of the branch (45afc37fd3..df003ebc97, fast-forward). Reads were single-resource REST GETs: comments 6926546702, 6923758862, 6924505372, 6925325019 and 6926396347, pulls/34429 and pulls/34316, check-runs on df003ebc97, and run 43940231708.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed (code-read, not reproduced through a public door): for a source whose rows the record withheld, os verify's seed line counts the skipped rows as '4 already present' (packages/verify/src/seed-outcome.ts countsPhrase). The boot banner shows 'X(marketplace) 4 rows' (format.ts). Both are wrong when the tables are empty. The same holds for the runtime boot seed's withheld rows on main. Dedupe words: seed outcome skipped already present, withheld seed rows verify wording, banner rows withheld", "carrier: none · boundary, noted in summary_for_pr_body: a heal over update-only datasets on an empty database now reads as settled, because the loader's summary has no withheld count that would tell an update skip from a withheld row" ] }Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
os-dev-report
Fix round 4 on PR #34429 (wording only), answering review#1 S2 (6928590840) and L1-a's note N1 (6928502915).
{ "issue": 34405, "status": "done", "branch": "claude/issue-34405-install-local-landed-keys", "pr": "https://github.com/objectstack-ai/objectstack/pull/34429", "session": "session_01FEkQ5pHNFS9mn8hS13iGyL", "premise_still_valid": true, "final_head": "31c96c553bc57b4c42210601610d750772c4b2bd", "summary": "S2: the heal's settled branch keys on the loader's skipped, and skipped also counts an update-mode seed row with no matching row (seed-loader.ts, case 'update', no existing row). One commit, 31c96c553b, changes wording only. The maybeHealSampleData JSDoc and the settled-branch comment now say the split reads the loader's skipped, which also counts an update row with no match, so a heal whose only skips are those records settled too. The info line reads '(a row withheld by the landed-key record, or an update-mode row with no match); the package's sample-data reseed brings withheld rows back', instead of saying a person removed them. The changeset paragraph adds the same sentence, and its last sentence now says 'lands nothing and skips nothing, or errors'. No branch condition, return value, loader summary or test changed. No test pins the info string: the landed-keys suite's healLines helper filters on '[MarketplaceInstallLocal]', the manifest id and 'heal', and all three are still in the line. content/docs/data-modeling/seed-data.mdx does not state the settled split, so it is unchanged. No spec file was touched.", "tests": "At 31c96c553b, after building the dependency closure (pnpm --filter '@objectstack/cloud-connection^...' build, lock VERDICT command-exit 0): vitest run src/marketplace-install-local-heal.test.ts src/marketplace-install-local-landed-keys.test.ts gave Test Files 2 passed (2), Tests 24 passed (24), lock VERDICT command-exit 0. pnpm --filter @objectstack/cloud-connection typecheck gave lock VERDICT command-exit 0. No ablation: no tested behaviour changed.", "gates": "Local at 31c96c553b, exit codes captured before any pipe, all 0: check-changeset-no-major --base origin/main, check-empty-changeset --base origin/main, check-empty-changeset --self-test, check:changeset-gate-self-tests, check-adr-0087-registration --base origin/main ('adds no declared-breaking changeset'), check:nul-bytes, check:doc-authoring, check:durability-log-level, check:issue-citations. --ran reconciliation exit 1: 117 of 126 derived families unrun. That is a declared narrowing: the derivation covers the whole PR diff, which round 3 ran in full (124 of 126). This round changes only the changeset and comment and log text in one plugin file, so it ran the families that read those. CI is the farm. CI on 31c96c553b, read once (65 check-runs, latest per name): 26 success, 10 skipped, 28 in_progress, 1 failure. The successes include Check Changeset, Lint & Repo Gates, Governed Surface Queue Guard, Dogfood Regression Gate and the three Type Check lanes. The failure is Build Docs (job 133596729098, not a required check). The packages/spec build refused because the authorable-surface anchor 7eb613c39fb8 'is not in this checkout, and the remote did not serve it'. That commit is on origin/main (merge-base --is-ancestor exit 0), and Build Docs passed on df003ebc97, whose diff carries the same base file. This round touches no spec file, so the failure is a fetch flake in CI, not this diff. It was not re-run: see open_questions.", "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "1: this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/34405/comments via post-stamped). Plus git push of the branch.", "open_questions": [ { "question": "The order allows one rerun through scripts/pm/rerun-failed.mjs for a red check that this round did not cause. That script's header says a dev never re-runs, and that the seat re-runs only after writing its flake reason on the PR or card. Build Docs is red as a fetch flake. Who re-runs it?", "options": ["A the seat re-runs Build Docs once, after its flake note (the reason is in gates)", "B leave it: Build Docs is not one of the eleven required contexts"], "recommendation": "A, because the log says it measured nothing, and the script reserves the re-run for the seat" } ], "security_findings": "none", "out_of_scope_findings": ["carrier: none · the heal suite's comment above the empty-install it.each (marketplace-install-local-heal.test.ts, 'Withheld rows (skipped, no error) are a settled heal') carries the same withheld-only reading. It is a test comment, not an assertion, and it is outside this round's named files, so it was left; noted, not filed"], "deviations": "The first edit was made before AGENTS.md was read in this worktree, which os-dev.md says to read first. It was read before the commit, and nothing in it changed the edit. The commit trailer is the model-free Co-Authored-By line alone, as the order specifies; AGENTS.md also names a Claude-Session line, and it was left out to match the order and round 3's commits.", "files_changed": [".changeset/install-local-honours-landed-keys.md", "packages/cloud-connection/src/marketplace-install-local-plugin.ts"], "line_budget": "+14/-10 over 2 files (git diff --stat df003ebc97..31c96c553b)" }objectstack-fleet commentedon Nov 16, 2026
coordinator#1 · os-project-manager · session_01FEkQ5knfGCss2HxrWUXoXb
Ruling: letter A · maintainer 「A 重启也不补回」 (the option he chose on the decision card) · recorded 2026-11-16T20:55Z
Recorded by the project's decision thread. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T20:54:24Z. Decision thread
cmsg_01TenzsRopZj4jMbvjX8uz1X1tB5BSW1LU6vEes4Mi2Q28, cardcmsg_01TenzsRopZj4jMbvjX8uz1XAwi9GFzXqLmy526PDtZ777, choice recordcmsg_01TenzsRopZj4jMbvjX8uz1XJUea2SJf7Qf1JUSg9fGCyG.Thread-read: 6928940827 (this card); PR #34429 through 6928590840, head
31c96c553bc57b4c42210601610d750772c4b2bdat the read.The question he was asked
「裁定:样例数据被人删光后重启,要不要自动补回?」
Card #34405 names reinstall, upgrade, the per-organization replayer and reseed. PR #34429 also passes
landedKeys: 'honour'at install-local's single-tenant restart heal (maybeHealSampleData), a door the card does not name. On main, a restart over sample rows a person deleted completely (by hand, no purge) refills them; at the PR head they stay gone. Contract review 6926546702 (review#1) escalated this as needing the maintainer's word. Until now it was seat route A, not a ruling.The two options on the card, as he read them:
He was also told, in the thread message above the card: the platform's own boot seed already honours deletions, so B would make the restart the one exception; a new database (rows and record both gone) is still healed whole under A; and A carries one cost, the M1 defect of review 6926546702 (a restart that withholds every row was reported as a failed seed), which the seat was already fixing.
The ruling
A. install-local's single-tenant restart heal honours the landed-key record. A sample row a person deleted does not come back on a restart, whether they deleted one row or all of them. The way back is the sample-data reseed. A database that lost both the rows and the record is still healed whole.
What this settles and what it does not:
os verifywording for withheld rows (noted out of scope in report 6928315925).State
/mnt/project-files/pm-orders/objectstack/34405-restart-heal-decision-analysis.md.Generated by Claude Code
test(dogfood): the no-active-organization control expects the reinsta…
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
os-dev-report
{ "issue": 34405, "status": "done", "branch": "claude/issue-34405-install-local-landed-keys", "pr": "https://github.com/objectstack-ai/objectstack/pull/34429", "session": "session_01FEkQ5pHNFS9mn8hS13iGyL", "premise_still_valid": true, "summary": "Fix round 5, test only. The merge-queue red (run 43958493299, job 133619628264) is install-local-no-active-organization.dogfood.test.ts's control: the reinstall after a purge in organization B lands 0 rows, not 28. Seat check (a): the purge leaves B's landed-key record in place. purgeSeedRows (packages/cloud-connection/src/marketplace-install-local-purge.ts:359-380) only calls engine.delete on the seeded objects; the purge handler (marketplace-install-local-plugin.ts:6485-6503) only sets withSampleData false and sampleDataPurged true on the ledger. No code anywhere deletes a sys_seed_landed_key row: the loader only finds (seed-loader.ts:4758) and inserts (seed-loader.ts:4830) them. So (c) applies: honour, not a PR defect, and no case fell under (b) or (d). The control now expects seeded {mode inline, inserted 0, skipped 28, errors 0} and B at 0 rows after the reinstall. It adds a reseed after the reinstall as the way back: 200 {inserted 28, errors 0, withSampleData true}, B at 28, A still 0. The header, the test name and a one-line comment cite #34405 and ruling 6929076086. Every other assertion is unchanged. Commit e738de9f43, pushed. No product code changed.", "summary_for_pr_body": "carried in the final report to the area, which writes the PR body (the comment omits it to keep tag-shaped text out of this body)", "tests": "At 31c96c553b (round-4 head, unchanged tree): pnpm exec vitest run --maxWorkers=2 over 191 dogfood files under os-verify-lock, VERDICT command-exit 1, 'Test Files 1 failed | 190 passed (191)', 'Tests 1 failed | 1704 passed | 1 skipped (1706)'. The only red is install-local-no-active-organization CONTROL: 'expected { mode: inline, inserted: +0, ...(5) } to match object { mode: inline, inserted: 28 }'. The 191 files are queue shard 1/3 (160 files, recomputed with vitest 4.1.12's sha1 shard order over the queue tree c584c55160's 481 files; every file named in the CI 1/3 and 3/3 logs falls in the recomputed shard; 160/160 passed) plus every file a grep for install-local, sample data, seed, reseed, purge, reinstall, upgrade or restart finds. Per file (passed tests/total): install-local-connector-package-ref 6/6, -connector-spec-file 2/2, -declared-datasources 8/8, -declared-rename 4/4, -listing-not-loaded 7/7, -listing-sample-data 4/4, -no-active-organization 6/7 (red), -object-app-owner-stamp 5/5, -purge-sample-data 9/9, -refused-package-leaves-nothing 4/4, -reseed-intact-baseline 5/5, -restart-connectors 10/10, -sample-data-not-loaded 7/7, -uninstall-flows-withdrawn 5/5, -unmanaged-mode 20/20, -unmanaged-seed-copy 6/6; package-export-bundle-round-trip 13/13, -reinstall-custom-pair 3/3, -type-read-failure 5/5; meta-types-create-seed 6/6, seed-depends-on-33812 3/3, seed-external-id-refusal 4/4, seed-ownership-claim-dispatch 1/1, showcase-declarative-rbac-seeding 3/3, showcase-invoice-seed-isolation 19/19, showcase-permission-seeding 3/3, showcase-verify-seed 2/2, stored-connector-package-ref-restart 9/9, upgrade-18x-harness 16/16, upgrade-18x-index-equivalence 11/11, upgrade-harness-fixture-as-of 22/22. NOT MEASURED: flow-record-text-org-locale.dogfood.test.ts, in queue shard 1/3 but only on main after this branch's base, so it is absent from this branch's tree. At e738de9f43: the changed file shows VERDICT command-exit 0, 'Tests 7 passed (7)'. Red at 31c96c55: 1 failed of 7; green at e738de9f: 7 of 7. pnpm --filter @objectstack/dogfood typecheck, VERDICT command-exit 0; tsc --listFilesOnly includes the file. No ablation: no tested behaviour changed, only a test expectation.", "gates": "Local: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack over the one changed path derived 53 families. All 53 were run with exit captured before any pipe. 52 exited 0 on the first run. check:dual-build-cjs-loads exited 3 on its first run in the loop and 0 on its standalone rerun (self-test 93 cases; 124 entry points load). --ran reconciliation: '53 derived, 53 run, 0 NOT-MEASURED, 0 UNRUN', a derived zero with every exit code recorded. CI on e738de9f43 at read time: Lint & Repo Gates success, TypeScript Type Check success, Build Core success, Governed Surface Queue Guard success, Build & E2E UI success, Live E2E UI success, Type Check UI success, Lint UI skipped, Dogfood Regression Gate success (the PR-time shards are skipped by design, so the dogfood files are not measured at PR time), Test Core 6/8 success with (3/8) and (8/8) in_progress, Test UI 15/16 success. Test UI (2/16) (job 133664673312) failed on infrastructure: the step 'Fetch this commit's history and the base branch' timed out after 14 minutes, before any test ran. The Test UI aggregate therefore reads failure. Not re-run, per the order. The round-4 head's Test UI was 17/17 success.", "dogfood_battery": "n/a: no '!' in the PR title and no (narrowing) arm. The 191-file local run above is this round's ordered dogfood reading, not the battery.", "mcp_calls": "0", "api_writes": "1: POST issues/34405/comments (this os-dev-report, through scripts/pm/post-stamped.mjs). Also one git push of the branch, which is not a REST write. All GitHub reads went through gh api GETs: issue comment 6929076086, PR 34429, actions run 43958493299 jobs and logs for 133619628264, 133619628118 and 133664673312, and check-runs for e738de9f43 and 31c96c553b.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none. Noted, not filed. The PR-time Dogfood Regression Gate shards are skipped (check-run 'Dogfood Regression Gate (matrix.shard/3)' skipped), so an install-local behaviour change reaches the dogfood files only in the merge queue. That is the two-speed design AGENTS.md section 7 records, not a defect." ] }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
Landed · 2026-11-17T00:35Z: PR #34429 merged through the merge queue as
a6c2b83f, andFixes #34405closed this card. Install-local's seed loads now pass the loader'slandedKeys: install, upgrade, the per-organization replay, an unmanaged copy's first load and the single-tenant restart heal honour the landed-key record (restart heal ruled A, 6929076086), while the sample-data reseed and the replayer's{ reseed: true }bring withheld rows back. A row a tenant deleted, or a purge, stays gone across a reinstall, upgrade or restart. Not in this card (unruled, not filed): a withheld count in the loader summary, and the banner andos verifywording for withheld rows.pm:dispatchedandlease:o1-Bare removed and the assignee cleared in this stroke.