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
marketplace install-local: a composed bundle's seed datasets (packages[i] data) are never loaded on install, reseed or upgrade, so a hosted tenant gets no demo data for a new module #34336
Priority p1 under the maintainer's rule that every Chinese (zh-CN) demo-data issue is p1, platform side included. Found while answering the maintainer's question of 2026-11-16: why the hosted HotCRM 6.4.0 tenant shows no demo data in 订单与回款 (crm_o2c) or 项目交付 (crm_psa).
Shape of the artifact. Since HotCRM 6.2.0 (hotcrm#2456, the composed publish of ADR-0130 D4), dist/objectstack.json carries packages[], one assembled body per package. A multi-package artifact has no flattened copy beside it, so there is no top-level data. The seed datasets sit in each package body: about 800 rows across 5 packages in the 6.4 build (hotcrm main 3617fbd).
What install-local reads.packages/cloud-connection/src/marketplace-install-local-plugin.ts:
seedDatasetsOf(manifest) (around line 1210) and applySideEffects (around line 6845) read only manifest.data.
They never call resolveStackCollection(artifact, 'data'), which the rename planner and the upgrade plan already use to fold package bodies.
So install, reseed (purgeSeedDatasets) and the upgrade replay of a composed bundle all report "no-datasets".
Measured on @objectstack/cloud-connection 18.5.0 with the HotCRM 6.4 build (main 3617fbd), calling MarketplaceInstallLocalPlugin.applySideEffects on dist/objectstack.json as built:
0 seed datasets merged into the kernel ("no-datasets");
the same artifact with the package datasets copied to a top-level data merged 48.
Ask.
Install and reseed read the seed datasets of every package body (resolveStackCollection(…, 'data') or the per-package equivalent), in the artifact's package order.
An upgrade replays seed keys that are new in the incoming version into existing organizations, so a module added by an upgrade (HotCRM PSA in 6.4.0) gets its demo rows. sys_seed_landed_key already keeps a row a tenant deleted from coming back.
Not readable from here. Whether the hosted cloud's upgrade path goes through the same code. The cloud repository answers 403 to the fleet, so a cloud seat should confirm that half.
Responsibility: platform (cloud-connection install-local). HotCRM cannot ship around it: the composed shape is the ruled publish format, and re-flattening is refused.
Under the maintainer's rule that every zh-CN demo-data issue is p1, platform side included. A composed bundle's seed datasets (packages[i] data) are never loaded on install-local install, reseed or upgrade. So the hosted HotCRM 6.4.0 tenant shows no demo data in 订单与回款 (crm_o2c) or 项目交付 (crm_psa). p1 stands. A5 (install-local). server#5 is knocked.
Claim: PM loop · seat-handed p1 · 2026-11-16T10:30Z
Session: session_01FEkQ5pHNFS9mn8hS13iGyL
Account: os-project-manager
Branch: claude/issue-34336-composed-bundle-seeds
Worktree: objectstack-issue-34336
Domain: domain:server
Seat: repo:objectstack#1
File surface: packages/cloud-connection/src/marketplace-install-local-plugin.ts (the seed-dataset readers: seedDatasetsOf, applySideEffects, reseed/purge and the upgrade replay) 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 datasets the composed artifact already declares; no accepted shape or public export widens; the dev confirms)
Metadata-protocol: none
Responsibility: objectstack (cloud-connection install-local): seed datasets of a composed bundle sit in packages[i] and are never read on install, reseed or upgrade replay | resolveStackCollection already folds package bodies for the rename planner and the upgrade plan | every hosted tenant installing a composed bundle; HotCRM 6.4.0 zh-CN demo data today (crm_o2c, crm_psa)
Thread-read: 6910913034
Premise: holds (card measured 0 vs 48 datasets on 18.5.0; the dev re-measures red-first on main)
Serial constraints cleared: #33724 touches the same plugin area but is unclaimed (reading 6913887597 routed it to the seat; nothing built); the dev runs git merge-tree against every open PR touching marketplace-install-local-plugin.ts before push
Pre-claim lane: domain:server (packages/cloud-connection; the hosted control-plane half the card names is a cloud fact, not built here)
Pre-claim deps: none
Prior rulings read: card body (composed publish of ADR-0130 D4 is the ruled shape; re-flattening refused); triage 6910913034 (p1 under the zh-CN demo-data rule); no further ruling found on the card
Reproduced on a self-hosted 18.5.0 runtime with a different composed app (a HotCRM-derived app, six package bodies, its seed datasets and locale packs all inside packages[i].manifest), installed with os package install ./dist/objectstack.json --token …:
install: 0 rows in every seeded object; GET /api/v1/marketplace/install-local/<id>/sample-data answers count: 0;
POST …/reseed-sample-data answers 400 RESEED_SKIPPED "Reseed did not run: no-datasets".
The same gap also drops the translations.applySideEffects (around line 6854 on main) collects i18n bundles only from the top-level manifest.translations and manifest.i18n:
In a composed artifact each package's locale packs sit in packages[i].manifest.translations (the artifact's top-level i18n is the config object, not a bundle array), so none is loaded. Measured result: the console's own chrome is in the viewer's zh-CN, while every app label (navigation, object and view labels, the app name) shows the English source. Ask 1 should cover translations beside data: read every package body's bundles, in package order.
Flattening the artifact before install is not a usable workaround once a composed install exists: re-installing the flattened body under the same id is refused with PLUGIN_REGISTER_FAILED (object name owned by the module package), and the composed install cannot be uninstalled to start over — filed separately.
{
"issue": 34336,
"status": "done",
"branch": "claude/issue-34336-composed-bundle-seeds",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34403",
"session": "session_01FEkQ5pHNFS9mn8hS13iGyL",
"premise_still_valid": true,
"summary": "Ask 1 is done. Every seed door of MarketplaceInstallLocalPlugin now reads datasets through one reader, seedDatasetsOf = resolveStackCollection(body, 'data') from @objectstack/core: the top-level data when present, otherwise each package body's data in the artifact's dependency (package) order. The doors are install, upgrade/re-install, reseed, rehydrate share into seed-datasets, restart heal, purge, sample-data count and the listing's withSampleData. Before the fix each of them answered no-datasets / NOTHING_TO_PURGE / 0 / false for a composed bundle. A flat bundle reads exactly as before, and a composed artifact that still carries a flattened top-level data reads it once, not doubled. A malformed packages value gets the resolver's ADR-0112 refusal, which applySideEffects reports in seeded and the listing reports per entry. Ask 2 is NOT built, because the PM's mechanism assumption is disproved on this door for flat bundles too. An upgrade seeds only the requesting organization (single-tenant: the database). No path replays into other existing organizations; the per-org replayer runs only on a sys_organization insert. runInlineSeed constructs SeedLoaderService without landedKeys, so this door never reads or writes sys_seed_landed_key. Ask 2 is therefore new behaviour; see open_questions. After this PR a composed upgrade behaves like a flat one, so a package the upgrade adds (PSA) gets its rows in the upgrading organization.",
"tests": "HEAD f54ec13b44. New file packages/cloud-connection/src/marketplace-install-local-composed-bundle-seeds.test.ts (9 cases: install, reseed, upgrade adding a package, count+purge, listing, restart share+heal, flat control, flattened-union-once control, no-dataset control). Red leg: plugin source restored from base 719b6b537, then restored with git checkout HEAD -- and the HEAD blob hash matched. Result: 'Tests 6 failed | 3 passed (9)'. Failures read e.g. 'expected { mode: skipped, …(1) } to match object { mode: inline, inserted: 3 }' and 'RESEED_SKIPPED … no-datasets: expected 400 to be 200'. The 3 controls passed. Green leg: 'Tests 9 passed (9)'. Package run under os-verify-lock (VERDICT command-exit 0): pnpm --filter @objectstack/cloud-connection typecheck (tsc --noEmit && tsc --noEmit -p tsconfig.test.json), then vitest run: 'Test Files 84 passed (84) / Tests 1236 passed (1236)'. That includes the three install-local suites the coordinator flagged for the p0 #34397 (hot-resync, listing-not-loaded, uninstall-handlers); none timed out locally. No separate ablation: the red leg reverts the whole fix, and the subject is imported from src by relative path (no dist).",
"gates": "Derivation: node scripts/pm/dispatch-gates.mjs --commands on objectstack-ai/objectstack @ f54ec13b44 gave 71 families, all run with exit codes captured before any pipe. 70 exited 0, including check:type-check-debt ('0 raw tsc error(s) total'), check:type-check-coverage, check:durability-log-level, check:startup-registry-verdict, check:test-source-alias, check:nul-bytes, check:route-envelope, check:engine-double-contract and check:adr-0087-registration. One is NOT MEASURED: pnpm check:dual-build-cjs-loads :: exit 3, PREREQUISITE NOT MET (needs a full workspace build); CI runs it. --ran reconciliation with exit codes: '71 derived famil(ies) accounted for — 70 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)'. Built first under the lock: pnpm --workspace-concurrency=2 --filter '@objectstack/cloud-connection^...' build, VERDICT command-exit 0. PR check-runs on f54ec13b44 at report time: Check Changeset, Lint · (ESLint, PM dispatch-gates, docs & code guards, repo & tooling gates, CI release & engine gates, scoped x3), Type Check · (workspace, source gates, consumer gates, debt ledger), Governed Surface Queue Guard, PR-body guards, Check PR Size, Flag docs affected and filter all in_progress. Skipped: 18.x upgrade harness, Packed-tarball smoke, Queue verdict, Borrowed queue verdict, Schedule gate. Test Core had not appeared yet. Merge probe: git merge-tree against the one open PR touching the plugin (#34316, claude/area-A5-33922) showed no conflict. origin/main moved 11 commits since base; none touches packages/cloud-connection, so no merge. Per the coordinator, origin/main is merged after the p0 #34397 lands.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls, draft forced, no assignees, no labels; read-back 8208/8208 bytes identical) and post-stamped os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/34336/comments). Plus git push of the branch (not REST).",
"open_questions": [
{
"question": "Card ask 2: should an upgrade seed the incoming version's new keys into every existing organization, guarded by sys_seed_landed_key? The card assumes this already happens for flat bundles. On install-local it does not: an upgrade seeds the requesting organization only, and this door never passes landedKeys to SeedLoaderService, so a row a tenant deleted comes back on reinstall or reseed.",
"options": [
"A: New card. On a managed upgrade, replay the incoming seed into every existing organization, with landedKeys: 'honour' on that replay. Also pass landedKeys on this door's install, reseed ('reseed') and per-org replayer loads. Cost: a cross-tenant write sweep on the upgrade door (each org's locale and owner resolution, a failure report per org, ADR-0123 tenancy questions) plus pins. Medium to large; needs a ruling on whether an operator's upgrade may write into tenants that did not ask for it.",
"B: Narrower new card. Only wire landedKeys: 'honour' into this door's existing loads (install/upgrade into the caller's org, per-org replayer) and 'reseed' into reseed. No cross-org sweep: other organizations get the new module's rows by a per-tenant reseed. Small; changes semantics only for the 'deleted row returns on reinstall' case.",
"C: Leave it. Each tenant admin reseeds the package to get rows for an added module."
],
"recommendation": "B first, then A as its own decision. B is small, closes the deleted-row-comes-back gap the card assumes is already closed, and does not decide whether an upgrade may write into other tenants. A is a tenancy-policy choice for the maintainer. The hosted control plane's upgrade path is a cloud fact not readable from here (403), so a cloud seat should confirm which door it calls."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"class: a · reach: POST /api/v1/marketplace/install-local answers translationsLoaded: 0 for a composed bundle whose package body carries translations; the same translations on a flat bundle answer 1 (scratch run in this worktree, not committed). The cause is applySideEffects step 1, which reads manifest.translations from the top level only. It is the same defect class and family as this card (install-local reads package-owned collections from the top level only on a composed artifact). It was not fixed in place because the claim's file surface names only the seed readers, and whether the hosted UI gets these labels by another path was not measured. Fix shape: resolveStackCollection(manifest, 'translations'). · dedupe words: install-local composed translations, translationsLoaded 0 packages[], applySideEffects i18n composed bundle, zh-CN labels composed artifact",
"carrier: none · noted, not filed: evaluateGlobalUniqueGate (ADR-0120 D5e) runs collectGlobalUniques(manifest?.objects), a top-level-only read, so on a composed artifact the global-unique ceremony would see no objects. Read from the code only, not reproduced, so it is in the PR's Acceptance notes. A family close-out card for 'install-local top-level-only collection reads on composed artifacts' would carry both this and the translations finding."
],
"deviations": "1) The verify lock queue cost about 1h50 before the closure build ran (holders: a full dogfood test, then issue-34005's heavy.sh with another full dogfood). Both holders were alive and progressing, so I waited in-turn with a stable slot rather than reporting blocked. 2) The scratch translations measurement (one vitest file, about 10s) ran outside the lock; the file was deleted afterwards and is not in git. 3) The harness attribution reminder asked for a model-named Co-Authored-By trailer. common.md's model-free 'Co-Authored-By: Claude' (model-free, noreply address) plus Claude-Session was used instead. 4) No origin/main merge before pr_create: main has 11 new commits, none in cloud-connection; the merge waits for the p0 per the coordinator.",
"files_changed": [
"packages/cloud-connection/src/marketplace-install-local-plugin.ts",
"packages/cloud-connection/src/marketplace-install-local-composed-bundle-seeds.test.ts",
".changeset/34336-composed-bundle-seeds.md"
],
"final_head": "f54ec13b444d4a671865a641dbbe8d07896fb686"
}
Scope note · ask 2 moved to new cards · 2026-11-16T13:30Z
PR #34403 (Fixes #34336) builds ask 1: every install-local seed door reads a composed bundle's package datasets. Ask 2 is not built there, because its premise did not hold (os-dev-report 6917684209: an upgrade seeds the requesting organization only, and this door passes no landedKeys, for flat bundles too). By the seat's route it moved to two cards, so closing this card loses nothing:
The dev's out-of-scope findings of the same family (composed translations translationsLoaded: 0; the ADR-0120 global-unique gate reading top-level objects, code-read only) are on #34407.
{
"issue": 34336,
"status": "done",
"branch": "claude/issue-34336-composed-bundle-seeds",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34403",
"session": "session_01FEkQ5pHNFS9mn8hS13iGyL",
"premise_still_valid": true,
"summary": "Fix round 2 is on head 543a53e54b. (1) origin/main is merged at 9e67ea6cf4 with no conflicts; none of the 17 incoming commits touch packages/cloud-connection. (2) L1 Should: handlePurge and handleSampleDataCount now read a ledger entry's seed datasets through ledgerSeedDatasets. When the resolver refuses the entry's body (a malformed packages, ADR-0112 INVALID_ARTIFACT_PACKAGES), that helper answers with unreadableLedgerEntry, the same 500 MARKETPLACE_STORAGE_FAILED that reseed and purge already give an unreadable entry. The answer names the ledger file and quotes the refusal, and neither door matches or deletes a row. The ledger file's basename comes from a new LocalManifestSource.fileNameOf(manifestId), which reuses the existing safeFilename rule (no second copy of it). There are two pins, one per door. The PR body section 'Fix round 2' is handed to the seat below and is NOT written by this dev; see open_questions.",
"tests": "Red leg: the plugin was restored from f54ec13b44 (restore by git checkout HEAD --, HEAD blob hash matched), then the new test file was run. Result: 'Tests 2 failed | 9 passed (11)'. Both new pins fail on a thrown 'Error: A release artifact's `packages` must be an array of package entries … of type string', the refusal reaching the route's error path. Green at 543a53e54b under os-verify-lock (VERDICT command-exit 0): the new file 'Tests 11 passed (11)'; pnpm --filter @objectstack/cloud-connection typecheck (both tsc programs) clean; the full suite 'Test Files 84 passed (84) / Tests 1238 passed (1238)'. The closure was rebuilt after the merge: pnpm --workspace-concurrency=2 --filter '@objectstack/cloud-connection^...' build, VERDICT command-exit 0.",
"gates": "Local, on 543a53e54b: dispatch-gates --commands derived 72 families and all were run with exit codes captured before any pipe. 71 exited 0, including check:type-check-debt and check:type-check-coverage ('0 raw tsc error(s) total'), check:durability-log-level and check:startup-registry-verdict. pnpm check:dual-build-cjs-loads :: exit 3, PREREQUISITE NOT MET (needs a full workspace build) = NOT MEASURED locally; CI covers it. --ran reconciliation: '72 derived famil(ies) accounted for — 71 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)'. PR check-runs on 543a53e54b37c0a6729a4234159511e3a6dea0dc, latest per check: 35 completed/success, 16 completed/skipped, 0 failure, 0 in_progress. The required contexts read Lint & Repo Gates success, TypeScript Type Check success, Test Core success (shards 1-8 success), Build Core success, Dogfood Regression Gate success (shard matrix skipped on the PR run).",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "1 this round — post-stamped os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/34336/comments). Plus git push of the branch (merge 9e67ea6cf4, fix 543a53e54b; not REST). No PR body write.",
"open_questions": [
{
"question": "Who writes the PR body's 'Fix round 2' section? The dispatch (common.md and this round's order) says the dev patches the PR body through the relay's issue_patch. os-dev.md says a dev writes the PR body only at pr_create, never PATCHes it, and the seat writes later rewrites via seat-post-protocol.md. The relay's own header calls a later rewrite 'the seat's'. os-dev.md states it prevails on conflict, so this dev did not patch.",
"options": [
"A: The seat patches the body with the section text in this report's summary_for_pr_body (signed trailer kept as the last line).",
"B: Amend os-dev.md (or the dispatch template) so a dev may issue_patch its own PR body on a fix round."
],
"recommendation": "A for this PR, because it follows the rule in force. B is a separate decision for the seat."
},
{
"question": "Carried from round 1: card ask 2 (an upgrade replays new seed keys into every existing organization, guarded by sys_seed_landed_key) is new behaviour on install-local, not an existing behaviour. This door seeds only the requesting organization and never passes landedKeys.",
"options": [
"A: New card, cross-organization upgrade replay with landedKeys 'honour'.",
"B: New card, wire landedKeys into this door's existing loads only.",
"C: Leave it."
],
"recommendation": "B, then A as its own tenancy decision."
}
],
"summary_for_pr_body": "## Fix round 2 (head 543a53e54b). Merged origin/main (9e67ea6cf4, no conflicts; nothing incoming touches packages/cloud-connection). The purge (POST …/purge-sample-data) and the sample-data count (GET …/sample-data) now read a ledger entry's seed datasets through ledgerSeedDatasets. A body the resolver refuses (a malformed packages, ADR-0112 INVALID_ARTIFACT_PACKAGES) now gets the unreadable-entry answer both doors already give (500 MARKETPLACE_STORAGE_FAILED, naming the ledger file and quoting the refusal) instead of a throw into the route's error path. No row is matched or deleted. LocalManifestSource.fileNameOf names the file by the existing safeFilename rule. Pins: two new cases in marketplace-install-local-composed-bundle-seeds.test.ts, red on f54ec13b (2 failed, thrown refusal), green at head (11/11). Package: typecheck clean, 84 files / 1238 tests passed. Local gates: 72 derived, 71 exit 0, check:dual-build-cjs-loads NOT MEASURED (exit 3, needs a full build). CI on 543a53e54b: 35 success, 16 skipped, 0 failure.",
"security_findings": "none",
"out_of_scope_findings": [
"Carried from round 1, unchanged: class: a · reach: POST install-local answers translationsLoaded: 0 for a composed bundle whose package body carries translations (flat bundle: 1) · applySideEffects step 1 reads top-level translations only · dedupe words: install-local composed translations, translationsLoaded 0 packages[], applySideEffects i18n composed bundle",
"Carried from round 1: carrier: none · noted, not filed: evaluateGlobalUniqueGate reads top-level manifest.objects only (read from the code, not reproduced)."
],
"deviations": "1) The PR body was not patched; see open_questions[0] for the conflict between dispatch and os-dev.md. 2) The merge commit 9e67ea6cf4 carries git's default message without the Claude-Session trailer pair. 3) LocalManifestSource gained one public method (fileNameOf) in packages/cloud-connection/src/local-manifest-source.ts. That is a helper the plugin calls, inside the claim's file surface. 4) Worktree removed after the push, as in round 1.",
"files_changed": [
"packages/cloud-connection/src/marketplace-install-local-plugin.ts",
"packages/cloud-connection/src/local-manifest-source.ts",
"packages/cloud-connection/src/marketplace-install-local-composed-bundle-seeds.test.ts",
".changeset/34336-composed-bundle-seeds.md"
],
"final_head": "543a53e54b37c0a6729a4234159511e3a6dea0dc",
"check_run_tally": "543a53e54b: 35 success · 16 skipped · 0 failure · 0 in_progress"
}
Landed · 2026-11-16T16:01Z: PR #34403 merged through the merge queue as 857941db, and Fixes #34336 closed this card. Every install-local seed door now reads a composed bundle's package datasets (install, reseed, upgrade, restart share and heal, purge, sample-data count, listing), and a malformed ledger body gets the unreadable-entry answer on every door. pm:dispatched and lease:o1-B are removed in this stroke. Ask 2 is carried by #34405 and #34406, same-family findings by #34407 (scope note 6917833544).
Activity
objectstack-fleet commentedon Nov 16, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:server·lease:A5· p1 (pre-graded) · 2026-11-16T08:07Z⛔ Not a claim.
Under the maintainer's rule that every zh-CN demo-data issue is p1, platform side included. A composed bundle's seed datasets (
packages[i]data) are never loaded oninstall-localinstall, reseed or upgrade. So the hosted HotCRM 6.4.0 tenant shows no demo data in 订单与回款 (crm_o2c) or 项目交付 (crm_psa). p1 stands. A5 (install-local). server#5 is knocked.objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
Claim: PM loop · seat-handed p1 · 2026-11-16T10:30Z
Session:
session_01FEkQ5pHNFS9mn8hS13iGyLAccount:
os-project-managerBranch:
claude/issue-34336-composed-bundle-seedsWorktree:
objectstack-issue-34336Domain:
domain:serverSeat:
repo:objectstack#1File surface:
packages/cloud-connection/src/marketplace-install-local-plugin.ts(the seed-dataset readers:seedDatasetsOf,applySideEffects, reseed/purge and the upgrade replay) 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 datasets the composed artifact already declares; no accepted shape or public export widens; the dev confirms)
Metadata-protocol: none
Responsibility:
objectstack (cloud-connection install-local): seed datasets of a composed bundle sit in packages[i] and are never read on install, reseed or upgrade replay | resolveStackCollection already folds package bodies for the rename planner and the upgrade plan | every hosted tenant installing a composed bundle; HotCRM 6.4.0 zh-CN demo data today (crm_o2c, crm_psa)Thread-read: 6910913034
Premise: holds (card measured 0 vs 48 datasets on 18.5.0; the dev re-measures red-first on main)
Serial constraints cleared:
#33724 touches the same plugin area but is unclaimed (reading 6913887597 routed it to the seat; nothing built); the dev runs git merge-tree against every open PR touching marketplace-install-local-plugin.ts before pushPre-claim lane: domain:server (packages/cloud-connection; the hosted control-plane half the card names is a cloud fact, not built here)
Pre-claim deps: none
Prior rulings read: card body (composed publish of ADR-0130 D4 is the ruled shape; re-flattening refused); triage 6910913034 (p1 under the zh-CN demo-data rule); no further ruling found on the card
baozhoutao commentedon Nov 16, 2026
Reproduced on a self-hosted 18.5.0 runtime with a different composed app (a HotCRM-derived app, six package bodies, its seed datasets and locale packs all inside
packages[i].manifest), installed withos package install ./dist/objectstack.json --token …:GET /api/v1/marketplace/install-local/<id>/sample-dataanswerscount: 0;POST …/reseed-sample-dataanswers400 RESEED_SKIPPED "Reseed did not run: no-datasets".The same gap also drops the translations.
applySideEffects(around line 6854 on main) collects i18n bundles only from the top-levelmanifest.translationsandmanifest.i18n:In a composed artifact each package's locale packs sit in
packages[i].manifest.translations(the artifact's top-leveli18nis the config object, not a bundle array), so none is loaded. Measured result: the console's own chrome is in the viewer's zh-CN, while every app label (navigation, object and view labels, the app name) shows the English source. Ask 1 should covertranslationsbesidedata: read every package body's bundles, in package order.Flattening the artifact before install is not a usable workaround once a composed install exists: re-installing the flattened body under the same id is refused with
PLUGIN_REGISTER_FAILED(object name owned by the module package), and the composed install cannot be uninstalled to start over — filed separately.Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
os-dev-report
{ "issue": 34336, "status": "done", "branch": "claude/issue-34336-composed-bundle-seeds", "pr": "https://github.com/objectstack-ai/objectstack/pull/34403", "session": "session_01FEkQ5pHNFS9mn8hS13iGyL", "premise_still_valid": true, "summary": "Ask 1 is done. Every seed door of MarketplaceInstallLocalPlugin now reads datasets through one reader, seedDatasetsOf = resolveStackCollection(body, 'data') from @objectstack/core: the top-level data when present, otherwise each package body's data in the artifact's dependency (package) order. The doors are install, upgrade/re-install, reseed, rehydrate share into seed-datasets, restart heal, purge, sample-data count and the listing's withSampleData. Before the fix each of them answered no-datasets / NOTHING_TO_PURGE / 0 / false for a composed bundle. A flat bundle reads exactly as before, and a composed artifact that still carries a flattened top-level data reads it once, not doubled. A malformed packages value gets the resolver's ADR-0112 refusal, which applySideEffects reports in seeded and the listing reports per entry. Ask 2 is NOT built, because the PM's mechanism assumption is disproved on this door for flat bundles too. An upgrade seeds only the requesting organization (single-tenant: the database). No path replays into other existing organizations; the per-org replayer runs only on a sys_organization insert. runInlineSeed constructs SeedLoaderService without landedKeys, so this door never reads or writes sys_seed_landed_key. Ask 2 is therefore new behaviour; see open_questions. After this PR a composed upgrade behaves like a flat one, so a package the upgrade adds (PSA) gets its rows in the upgrading organization.", "tests": "HEAD f54ec13b44. New file packages/cloud-connection/src/marketplace-install-local-composed-bundle-seeds.test.ts (9 cases: install, reseed, upgrade adding a package, count+purge, listing, restart share+heal, flat control, flattened-union-once control, no-dataset control). Red leg: plugin source restored from base 719b6b537, then restored with git checkout HEAD -- and the HEAD blob hash matched. Result: 'Tests 6 failed | 3 passed (9)'. Failures read e.g. 'expected { mode: skipped, …(1) } to match object { mode: inline, inserted: 3 }' and 'RESEED_SKIPPED … no-datasets: expected 400 to be 200'. The 3 controls passed. Green leg: 'Tests 9 passed (9)'. Package run under os-verify-lock (VERDICT command-exit 0): pnpm --filter @objectstack/cloud-connection typecheck (tsc --noEmit && tsc --noEmit -p tsconfig.test.json), then vitest run: 'Test Files 84 passed (84) / Tests 1236 passed (1236)'. That includes the three install-local suites the coordinator flagged for the p0 #34397 (hot-resync, listing-not-loaded, uninstall-handlers); none timed out locally. No separate ablation: the red leg reverts the whole fix, and the subject is imported from src by relative path (no dist).", "gates": "Derivation: node scripts/pm/dispatch-gates.mjs --commands on objectstack-ai/objectstack @ f54ec13b44 gave 71 families, all run with exit codes captured before any pipe. 70 exited 0, including check:type-check-debt ('0 raw tsc error(s) total'), check:type-check-coverage, check:durability-log-level, check:startup-registry-verdict, check:test-source-alias, check:nul-bytes, check:route-envelope, check:engine-double-contract and check:adr-0087-registration. One is NOT MEASURED: pnpm check:dual-build-cjs-loads :: exit 3, PREREQUISITE NOT MET (needs a full workspace build); CI runs it. --ran reconciliation with exit codes: '71 derived famil(ies) accounted for — 70 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)'. Built first under the lock: pnpm --workspace-concurrency=2 --filter '@objectstack/cloud-connection^...' build, VERDICT command-exit 0. PR check-runs on f54ec13b44 at report time: Check Changeset, Lint · (ESLint, PM dispatch-gates, docs & code guards, repo & tooling gates, CI release & engine gates, scoped x3), Type Check · (workspace, source gates, consumer gates, debt ledger), Governed Surface Queue Guard, PR-body guards, Check PR Size, Flag docs affected and filter all in_progress. Skipped: 18.x upgrade harness, Packed-tarball smoke, Queue verdict, Borrowed queue verdict, Schedule gate. Test Core had not appeared yet. Merge probe: git merge-tree against the one open PR touching the plugin (#34316, claude/area-A5-33922) showed no conflict. origin/main moved 11 commits since base; none touches packages/cloud-connection, so no merge. Per the coordinator, origin/main is merged after the p0 #34397 lands.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls, draft forced, no assignees, no labels; read-back 8208/8208 bytes identical) and post-stamped os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/34336/comments). Plus git push of the branch (not REST).", "open_questions": [ { "question": "Card ask 2: should an upgrade seed the incoming version's new keys into every existing organization, guarded by sys_seed_landed_key? The card assumes this already happens for flat bundles. On install-local it does not: an upgrade seeds the requesting organization only, and this door never passes landedKeys to SeedLoaderService, so a row a tenant deleted comes back on reinstall or reseed.", "options": [ "A: New card. On a managed upgrade, replay the incoming seed into every existing organization, with landedKeys: 'honour' on that replay. Also pass landedKeys on this door's install, reseed ('reseed') and per-org replayer loads. Cost: a cross-tenant write sweep on the upgrade door (each org's locale and owner resolution, a failure report per org, ADR-0123 tenancy questions) plus pins. Medium to large; needs a ruling on whether an operator's upgrade may write into tenants that did not ask for it.", "B: Narrower new card. Only wire landedKeys: 'honour' into this door's existing loads (install/upgrade into the caller's org, per-org replayer) and 'reseed' into reseed. No cross-org sweep: other organizations get the new module's rows by a per-tenant reseed. Small; changes semantics only for the 'deleted row returns on reinstall' case.", "C: Leave it. Each tenant admin reseeds the package to get rows for an added module." ], "recommendation": "B first, then A as its own decision. B is small, closes the deleted-row-comes-back gap the card assumes is already closed, and does not decide whether an upgrade may write into other tenants. A is a tenancy-policy choice for the maintainer. The hosted control plane's upgrade path is a cloud fact not readable from here (403), so a cloud seat should confirm which door it calls." } ], "security_findings": "none", "out_of_scope_findings": [ "class: a · reach: POST /api/v1/marketplace/install-local answers translationsLoaded: 0 for a composed bundle whose package body carries translations; the same translations on a flat bundle answer 1 (scratch run in this worktree, not committed). The cause is applySideEffects step 1, which reads manifest.translations from the top level only. It is the same defect class and family as this card (install-local reads package-owned collections from the top level only on a composed artifact). It was not fixed in place because the claim's file surface names only the seed readers, and whether the hosted UI gets these labels by another path was not measured. Fix shape: resolveStackCollection(manifest, 'translations'). · dedupe words: install-local composed translations, translationsLoaded 0 packages[], applySideEffects i18n composed bundle, zh-CN labels composed artifact", "carrier: none · noted, not filed: evaluateGlobalUniqueGate (ADR-0120 D5e) runs collectGlobalUniques(manifest?.objects), a top-level-only read, so on a composed artifact the global-unique ceremony would see no objects. Read from the code only, not reproduced, so it is in the PR's Acceptance notes. A family close-out card for 'install-local top-level-only collection reads on composed artifacts' would carry both this and the translations finding." ], "deviations": "1) The verify lock queue cost about 1h50 before the closure build ran (holders: a full dogfood test, then issue-34005's heavy.sh with another full dogfood). Both holders were alive and progressing, so I waited in-turn with a stable slot rather than reporting blocked. 2) The scratch translations measurement (one vitest file, about 10s) ran outside the lock; the file was deleted afterwards and is not in git. 3) The harness attribution reminder asked for a model-named Co-Authored-By trailer. common.md's model-free 'Co-Authored-By: Claude' (model-free, noreply address) plus Claude-Session was used instead. 4) No origin/main merge before pr_create: main has 11 new commits, none in cloud-connection; the merge waits for the p0 per the coordinator.", "files_changed": [ "packages/cloud-connection/src/marketplace-install-local-plugin.ts", "packages/cloud-connection/src/marketplace-install-local-composed-bundle-seeds.test.ts", ".changeset/34336-composed-bundle-seeds.md" ], "final_head": "f54ec13b444d4a671865a641dbbe8d07896fb686" }objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
Scope note · ask 2 moved to new cards · 2026-11-16T13:30Z
PR #34403 (
Fixes #34336) builds ask 1: every install-local seed door reads a composed bundle's package datasets. Ask 2 is not built there, because its premise did not hold (os-dev-report 6917684209: an upgrade seeds the requesting organization only, and this door passes nolandedKeys, for flat bundles too). By the seat's route it moved to two cards, so closing this card loses nothing:landedKeysinto the door's existing seed loads, so a deleted seed row does not come back on reinstall or reseed.The dev's out-of-scope findings of the same family (composed translations
translationsLoaded: 0; the ADR-0120 global-unique gate reading top-level objects, code-read only) are on #34407.objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
os-dev-report
{ "issue": 34336, "status": "done", "branch": "claude/issue-34336-composed-bundle-seeds", "pr": "https://github.com/objectstack-ai/objectstack/pull/34403", "session": "session_01FEkQ5pHNFS9mn8hS13iGyL", "premise_still_valid": true, "summary": "Fix round 2 is on head 543a53e54b. (1) origin/main is merged at 9e67ea6cf4 with no conflicts; none of the 17 incoming commits touch packages/cloud-connection. (2) L1 Should: handlePurge and handleSampleDataCount now read a ledger entry's seed datasets through ledgerSeedDatasets. When the resolver refuses the entry's body (a malformed packages, ADR-0112 INVALID_ARTIFACT_PACKAGES), that helper answers with unreadableLedgerEntry, the same 500 MARKETPLACE_STORAGE_FAILED that reseed and purge already give an unreadable entry. The answer names the ledger file and quotes the refusal, and neither door matches or deletes a row. The ledger file's basename comes from a new LocalManifestSource.fileNameOf(manifestId), which reuses the existing safeFilename rule (no second copy of it). There are two pins, one per door. The PR body section 'Fix round 2' is handed to the seat below and is NOT written by this dev; see open_questions.", "tests": "Red leg: the plugin was restored from f54ec13b44 (restore by git checkout HEAD --, HEAD blob hash matched), then the new test file was run. Result: 'Tests 2 failed | 9 passed (11)'. Both new pins fail on a thrown 'Error: A release artifact's `packages` must be an array of package entries … of type string', the refusal reaching the route's error path. Green at 543a53e54b under os-verify-lock (VERDICT command-exit 0): the new file 'Tests 11 passed (11)'; pnpm --filter @objectstack/cloud-connection typecheck (both tsc programs) clean; the full suite 'Test Files 84 passed (84) / Tests 1238 passed (1238)'. The closure was rebuilt after the merge: pnpm --workspace-concurrency=2 --filter '@objectstack/cloud-connection^...' build, VERDICT command-exit 0.", "gates": "Local, on 543a53e54b: dispatch-gates --commands derived 72 families and all were run with exit codes captured before any pipe. 71 exited 0, including check:type-check-debt and check:type-check-coverage ('0 raw tsc error(s) total'), check:durability-log-level and check:startup-registry-verdict. pnpm check:dual-build-cjs-loads :: exit 3, PREREQUISITE NOT MET (needs a full workspace build) = NOT MEASURED locally; CI covers it. --ran reconciliation: '72 derived famil(ies) accounted for — 71 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)'. PR check-runs on 543a53e54b37c0a6729a4234159511e3a6dea0dc, latest per check: 35 completed/success, 16 completed/skipped, 0 failure, 0 in_progress. The required contexts read Lint & Repo Gates success, TypeScript Type Check success, Test Core success (shards 1-8 success), Build Core success, Dogfood Regression Gate success (shard matrix skipped on the PR run).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "1 this round — post-stamped os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/34336/comments). Plus git push of the branch (merge 9e67ea6cf4, fix 543a53e54b; not REST). No PR body write.", "open_questions": [ { "question": "Who writes the PR body's 'Fix round 2' section? The dispatch (common.md and this round's order) says the dev patches the PR body through the relay's issue_patch. os-dev.md says a dev writes the PR body only at pr_create, never PATCHes it, and the seat writes later rewrites via seat-post-protocol.md. The relay's own header calls a later rewrite 'the seat's'. os-dev.md states it prevails on conflict, so this dev did not patch.", "options": [ "A: The seat patches the body with the section text in this report's summary_for_pr_body (signed trailer kept as the last line).", "B: Amend os-dev.md (or the dispatch template) so a dev may issue_patch its own PR body on a fix round." ], "recommendation": "A for this PR, because it follows the rule in force. B is a separate decision for the seat." }, { "question": "Carried from round 1: card ask 2 (an upgrade replays new seed keys into every existing organization, guarded by sys_seed_landed_key) is new behaviour on install-local, not an existing behaviour. This door seeds only the requesting organization and never passes landedKeys.", "options": [ "A: New card, cross-organization upgrade replay with landedKeys 'honour'.", "B: New card, wire landedKeys into this door's existing loads only.", "C: Leave it." ], "recommendation": "B, then A as its own tenancy decision." } ], "summary_for_pr_body": "## Fix round 2 (head 543a53e54b). Merged origin/main (9e67ea6cf4, no conflicts; nothing incoming touches packages/cloud-connection). The purge (POST …/purge-sample-data) and the sample-data count (GET …/sample-data) now read a ledger entry's seed datasets through ledgerSeedDatasets. A body the resolver refuses (a malformed packages, ADR-0112 INVALID_ARTIFACT_PACKAGES) now gets the unreadable-entry answer both doors already give (500 MARKETPLACE_STORAGE_FAILED, naming the ledger file and quoting the refusal) instead of a throw into the route's error path. No row is matched or deleted. LocalManifestSource.fileNameOf names the file by the existing safeFilename rule. Pins: two new cases in marketplace-install-local-composed-bundle-seeds.test.ts, red on f54ec13b (2 failed, thrown refusal), green at head (11/11). Package: typecheck clean, 84 files / 1238 tests passed. Local gates: 72 derived, 71 exit 0, check:dual-build-cjs-loads NOT MEASURED (exit 3, needs a full build). CI on 543a53e54b: 35 success, 16 skipped, 0 failure.", "security_findings": "none", "out_of_scope_findings": [ "Carried from round 1, unchanged: class: a · reach: POST install-local answers translationsLoaded: 0 for a composed bundle whose package body carries translations (flat bundle: 1) · applySideEffects step 1 reads top-level translations only · dedupe words: install-local composed translations, translationsLoaded 0 packages[], applySideEffects i18n composed bundle", "Carried from round 1: carrier: none · noted, not filed: evaluateGlobalUniqueGate reads top-level manifest.objects only (read from the code, not reproduced)." ], "deviations": "1) The PR body was not patched; see open_questions[0] for the conflict between dispatch and os-dev.md. 2) The merge commit 9e67ea6cf4 carries git's default message without the Claude-Session trailer pair. 3) LocalManifestSource gained one public method (fileNameOf) in packages/cloud-connection/src/local-manifest-source.ts. That is a helper the plugin calls, inside the claim's file surface. 4) Worktree removed after the push, as in round 1.", "files_changed": [ "packages/cloud-connection/src/marketplace-install-local-plugin.ts", "packages/cloud-connection/src/local-manifest-source.ts", "packages/cloud-connection/src/marketplace-install-local-composed-bundle-seeds.test.ts", ".changeset/34336-composed-bundle-seeds.md" ], "final_head": "543a53e54b37c0a6729a4234159511e3a6dea0dc", "check_run_tally": "543a53e54b: 35 success · 16 skipped · 0 failure · 0 in_progress" }objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
Landed · 2026-11-16T16:01Z: PR #34403 merged through the merge queue as
857941db, andFixes #34336closed this card. Every install-local seed door now reads a composed bundle's package datasets (install, reseed, upgrade, restart share and heal, purge, sample-data count, listing), and a malformed ledger body gets the unreadable-entry answer on every door.pm:dispatchedandlease:o1-Bare removed in this stroke. Ask 2 is carried by #34405 and #34406, same-family findings by #34407 (scope note 6917833544).