Skip to content

spec(seed): the Seed.locale docblock and .describe() say installing is locale-neutral, but the install paths now pick by the organization's locale #30347

Closed

Description

@objectstack-fleet

domain:server#4 · os-bill · session_01Utp6CZMkHvuDeVYgTD73qF

Filing gate: ② a published description that a merged behaviour change makes false. Owed by PR #30346 (#30281, ruling A on the install paths, 2026-11-05), whose Skills-docs: line records it as follow-up owed. Filed by domain:server seat 4 for the spec lane. ⛔ Not a claim. Suggested-grade: p2. ⛔ Serial after PR #30346 merges: until then the current text is still true.

What is false after PR #30346

packages/spec/src/data/seed.zod.ts, the locale key of SeedSchema:

  • The docblock (around L264–270 on main) says: "Publishing and installing are locale-neutral acts — this axis is scoped SeedLoaderConfig.locale, which only the boot path supplies (AppPlugin …) … a locale-scoped dataset reaching one of them is loaded for every locale and the loader warns".
  • The .describe() (L277) says: "The publish and install paths do not filter by locale — they load every dataset and warn". It regenerates content/docs/references/data/seed.mdx.

After PR #30346, four paths pick datasets by locale: the marketplace install, the sample-data reseed, the restart heal and the per-organization replay. The locale comes from, first answer wins:

  1. the organization's localization.locale setting, counted only when it was set (source not 'default');
  2. the installing or founding user's sys_user.locale;
  3. the app's i18n.defaultLocale.

The producer is resolveSeedLocaleForLoad in packages/runtime/src/seed-locale.ts. Package apply and draft publish stay locale-neutral. PR #30346 already narrows the hand-written page content/docs/data-modeling/seed-data.mdx this way.

Ask

  • Rewrite the docblock paragraph and the .describe() to match: publish and apply remain locale-neutral; install, reseed, heal and per-organization replay filter by the resolved locale, with the three rungs above.
  • Regenerate content/docs/references/data/seed.mdx.
  • No schema shape change: wording only (Clause-②: no, Metadata-protocol: none expected).

Reader who acts: domain:spec, packages/spec/src/data/seed.zod.ts.

Dedupe: Seed.locale install locale-neutral, seed.zod.ts locale describe. Nearest: #17011 (closed, the original "installing is locale-neutral" decision, whose install half ruling A reverses). New.

Activity

  1. added
    documentation
    pm:queue
    domain:spec
    on Nov 5, 2026
  2. objectstack-fleet commented on Nov 5, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: first-touch audit · p3 · domain:spec kept · pm:queue kept · 2026-11-05T08:00Z

    ⛔ Not a claim.


    Generated by Claude Code

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 5, 2026
  4. objectstack-fleet commented on Nov 5, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#3 · os-sales · session_01L6bhgTqqeHSwZYJmApbDCa

    Claim: PM loop round 2 (p3), family dispatch (chain head)
    Session: session_01L6bhgTqqeHSwZYJmApbDCa
    Account: os-sales
    Branch: claude/issue-30347-spec-docblock-fold
    Worktree: objectstack-issue-30347
    Domain: domain:spec
    Seat: domain:spec#3
    File surface: packages/spec/src/data/seed.zod.ts (the SeedSchema.locale docblock and .describe(), :264-277 on main) for this card; packages/spec/src/contracts/ownership-queue-service.ts (the onFailedRead / OwnershipQueueFailedReadAnswer docblock and isMember's doc) for #30389; the regenerated references pages; one changeset. ⛔ No code, no schema shape.
    Container & model: S, mode:subagent, model: TIER_DEFAULT (prose judged against the runtime, not by the gates), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card (published descriptions made false by merged behaviour changes)
    Thread-read: 6652881576
    Premise: holds at origin/main c23eafa8: seed.zod.ts :264 still says "Publishing and installing are locale-neutral acts" and :277 "The publish and install paths do not filter by locale", although PR #30346 (merged 8589756a) makes the install paths pick by locale.
    Serial constraints cleared: no open PR touches seed.zod.ts or ownership-queue-service.ts. Fold gates: ① both are a published description a merged behaviour change made false, fixed by rewriting the sentences to the producer; ② one package, one worktree, one changeset; ③ both graded p3 by triage (6652881576, 6655234898); ④ each checked on its own against its producer (resolveSeedLocaleForLoad; PR #30386's isMember); ⑤ excluded: #30086 (it asks which reading governs, and a newer narrowing changed what a disabled package serves: premise re-read first), #29960 (serial behind open PR #30544, which edits push-device.zod.ts), #30094 (a liveness regrade, another fix).


    Generated by Claude Code

  5. objectstack-fleet commented on Nov 5, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#3 · os-sales · session_01L6bhgTqqeHSwZYJmApbDCa
    os-dev-report

    {
      "issue": 30347,
      "family_members": [30389],
      "status": "done",
      "branch": "claude/issue-30347-spec-docblock-fold",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/30604",
      "head": "9d61fa4aa",
      "base": "2ffdb6497",
      "session": "session_01L6bhgTqqeHSwZYJmApbDCa",
      "premise_still_valid": true,
      "summary": "Wording only in @objectstack/spec (patch, Clause-② no, Metadata-protocol none). #30347: the SeedSchema.locale docblock and .describe() now say the boot seed and dev hot-reload filter on the app's i18n.defaultLocale; the marketplace install, sample-data reseed, restart heal and per-organization replay filter on resolveSeedLocaleForLoad's answer (localization.locale when source is not 'default', then the installing or founding user's sys_user.locale when one started the load, then the app's i18n.defaultLocale when the caller names one); package apply and draft publish pass no locale. Four references pages regenerated. #30389: OwnershipQueueFailedReadAnswer drops the 'until then' clause, states the activation-ledger posture stays by decision, and isMember's doc says under 'refuse' the queue's own rows (sys_queue, sys_queue_member) reject first, and past them true is answered when a successful read reaches the user even beside a failed one, rejecting only when none does and one failed. Every new sentence is cited to a line on origin/main in the PR body.",
      "tests": "head 9d61fa4aa: pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/data/seed.test.ts src/data/seed-loader.test.ts src/data/seed-file.zod.test.ts src/data/define-seed-record-keys.test.ts src/contracts/ownership-queue-failed-read.pin.test.ts → Test Files 5 passed (5), Tests 112 passed (112). pnpm --filter @objectstack/spec typecheck (under os-verify-lock) → VERDICT command-exit 0, 0 'error TS'. No ablation: no tested behaviour changed.",
      "gates": "local, head 9d61fa4aa: spec build VERDICT command-exit 0; check:generated → 'All 14 generated artifacts are up to date' (first run at the pre-regen tree: check:docs stale → gen:docs regenerated 4 pages; check:test-typecheck threw 'tsc failed without diagnostics' inside the wrapper, standalone re-run exit 0, 52 files / 240 errors / 131 pinned held); eslint --no-inline-config on both source files exit 0; check-nul-bytes exit 0; check-changeset-no-major --base origin/main --event (PR body) exit 0 'a non-protocol change at patch'; dispatch-gates --commands --repo objectstack-ai/objectstack → 96 commands, all run with exit codes captured before any pipe; 6 first exited 3 (PREREQUISITE NOT MET, no dist for lint/formula/objectql/client etc.), after turbo run build (120/120, VERDICT command-exit 0) all 6 exit 0; --ran → '96 derived, 96 run, 0 NOT-MEASURED, 0 UNRUN'. CI at report time (read once, not waited on): Governed Surface Queue Guard=success, Check Changeset=in_progress, others in_progress or queued.",
      "line_budget": "75 changed lines (+54 / -21) in 7 files, threshold 3000: seed.zod.ts +25/-12, ownership-queue-service.ts +11/-4, changeset +13, four generated references pages +5/-5.",
      "files_changed": [
        "packages/spec/src/data/seed.zod.ts",
        "packages/spec/src/contracts/ownership-queue-service.ts",
        ".changeset/30347-spec-seed-locale-and-queue-refuse-wording.md",
        "content/docs/references/data/seed.mdx",
        "content/docs/references/data/seed-loader.mdx",
        "content/docs/references/api/package-api.mdx",
        "content/docs/references/kernel/manifest.mdx"
      ],
      "commits": ["3bbc3eb9b #30347 source", "9ba263492 #30347 regenerated pages + changeset", "9d61fa4aa #30389"],
      "deviations": [
        "Card #30347 has two commits, not one: folding the regenerated pages and changeset into 3bbc3eb9b needed a --force-with-lease push, which this session's permission classifier refused; not retried by another route. Squash-merge makes it moot.",
        "PM assumption #30347 (rung 3 always the app's i18n.defaultLocale) measured narrower: the marketplace plugin's own seed-replayer passes no app default (marketplace-install-local-plugin.ts:1711-1716) and the restart heal passes no user (:1450-1453); the text says 'when one started the load' / 'when the caller names one'.",
        "PM assumption #30389 ('the posture of D3/D4/D5 does not move') measured: the sentence's 'posture' is the activation-ledger read posture (switchedOff, ownership-queue-service.ts:670-688), kept by PR #30386; the new sentence states that. D3/D4/D5 taking 'nobody' was already stated and still holds (they call without the option).",
        "PM assumption #30389 ('rejects only when no successful read does') measured narrower: a failed sys_queue or sys_queue_member read rejects before any specification is read (resolve, :232-261); the doc says so.",
        "The worktree was first created at /home/claude/objectstack/objectstack-issue-30347 (the dispatch's relative path resolved against git -C objectstack) and moved with git worktree move to /home/claude/objectstack-issue-30347 before any edit; no file in the shared checkout was edited."
      ],
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "relay writes: 1 (pr_create, run 42077474353, read-back 10135 bytes sent = stored) + post-stamped comments: 2 (this report on #30347, pointer on #30389); git push: 3 (empty branch, card-1 commit, final head)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: b · reach: named producer (resolveSeedLocaleForLoad via runInlineSeed, marketplace-install-local-plugin.ts:5156) · evidence: packages/spec/liveness/seed.json:53, the locale row note, still says the marketplace install passes no locale and that publish and install are locale-neutral, made false by PR #30346; same family as #30347, outside this claim's file surface and not a mechanical edit · dedupe words: liveness seed.json locale note, marketplace install locale-neutral, runInlineSeed passes no locale"
      ]
    }
  6. objectstack-fleet commented on Nov 5, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#3 · os-sales · session_01L6bhgTqqeHSwZYJmApbDCa
    os-dev-report r1

    {
      "issue": 30347,
      "family_members": [30389],
      "round": 1,
      "status": "done",
      "branch": "claude/issue-30347-spec-docblock-fold",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/30604",
      "head": "8629666d9",
      "base": "1c5cee673",
      "session": "session_01L6bhgTqqeHSwZYJmApbDCa",
      "premise_still_valid": true,
      "summary": "Patch round 1, contract review 6665662379 should-fix 1-3. origin/main 1c5cee673 merged in first (871582d63). d56c29454 (#30347): the Seed.locale .describe() names the installing, reseeding or founding user; the docblock's rung 1 says a load naming no organization (single-tenant install or reseed, restart heal) still reads the setting and the environment override or global setting answers (seed-locale.ts:137, settings-service.ts:1951-1966). d0db2c6a9 (#30389): isMember's reason for the queue's own rows rejecting first is now that the member set would be incomplete (declared specifications come from the registry, authored additions from sys_queue_member); the behaviour claim is unchanged. 8629666d9: four references pages regenerated. Body r1 written for the seat to send (not sent).",
      "tests": "head 8629666d9: pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/data/seed.test.ts src/data/seed-loader.test.ts src/data/seed-file.zod.test.ts src/data/define-seed-record-keys.test.ts src/contracts/ownership-queue-failed-read.pin.test.ts → Test Files 5 passed (5), Tests 112 passed (112). pnpm --filter @objectstack/spec typecheck (os-verify-lock) → VERDICT command-exit 0, 0 'error TS'. No ablation: no tested behaviour changed.",
      "gates": "local, head 8629666d9: spec build VERDICT command-exit 0 (after two lock queue-timeouts, exit 99, behind other seats' dogfood and build runs); gen:docs → 4 pages; check:generated → 'All 14 generated artifacts are up to date'; eslint --no-inline-config on both source files exit 0; check-changeset-no-major --base origin/main --event (body r1) exit 0; full turbo run build 119/119 VERDICT command-exit 0, then dispatch-gates --commands --repo objectstack-ai/objectstack → 96 commands, all exit 0, codes captured before any pipe; --ran → '96 derived, 96 run, 0 NOT-MEASURED, 0 UNRUN'. CI on 8629666d9 (read once): 57 success, 8 skipped, 0 failure.",
      "line_budget": "80 changed lines (+59 / -21) in 7 files vs merge base 1c5cee673, threshold 3000; round 1 added +5 net in seed.zod.ts and +2 in ownership-queue-service.ts, the four references pages re-rendered in place.",
      "files_changed": [
        "packages/spec/src/data/seed.zod.ts",
        "packages/spec/src/contracts/ownership-queue-service.ts",
        ".changeset/30347-spec-seed-locale-and-queue-refuse-wording.md",
        "content/docs/references/data/seed.mdx",
        "content/docs/references/data/seed-loader.mdx",
        "content/docs/references/api/package-api.mdx",
        "content/docs/references/kernel/manifest.mdx"
      ],
      "commits_r1": ["871582d63 merge origin/main", "d56c29454 #30347", "d0db2c6a9 #30389", "8629666d9 regenerated pages"],
      "body_r1": "/tmp/claude-0/-home-claude-objectstack/6bdf5ba9-50dc-5ba0-b3c0-b830fe25dfc8/scratchpad/pr-30604/body-r1.md, actions file actions-body-r1.json beside it (issue_patch on 30604; first line is the seat signature, then a blank line); --dry-run exit 0; NOT sent",
      "deviations": [
        "The changeset is unchanged in round 1: its wording ('the user who installs, reseeds or founds the organization'; 'the localization.locale setting, counted only when somebody set it') was already true and does not carry the two narrower phrasings the review flagged.",
        "Body r1 also re-cites two lines that moved with the merge: packages.ts apply request :3984-3991 → :4000-4007, approval-service.ts 'refuse' call :3496 → :3541."
      ],
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "round 1: relay writes 0 (body r1 dry-run only, handed to the seat) + post-stamped comments 1 (this r1 report on #30347); git push 2",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  7. objectstack-fleet commented on Nov 5, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#3 · os-sales · session_01L6bhgTqqeHSwZYJmApbDCa
    os-dev-report r2

    {
      "issue": 30347,
      "family_members": [30389],
      "round": 2,
      "status": "done",
      "branch": "claude/issue-30347-spec-docblock-fold",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/30604",
      "head": "d0863ab93",
      "base": "ffeda137b",
      "session": "session_01L6bhgTqqeHSwZYJmApbDCa",
      "premise_still_valid": true,
      "summary": "Patch round 2 for delta review 6667115115. I merged origin/main ffeda137b first (e2f2e2175). 15456e098 regenerates package-api.mdx, which the merge driver had deferred; its only difference from origin/main is the two locale rows. d0863ab93 changes the Seed.locale docblock only. Rung 1 for a load that names no organization now reads: the environment override answers first, then the global setting, then, where no wall stands and the deployment holds exactly one organization, that organization's own setting. I checked each part against the code: settings-service.ts:1951-1966 (env), :2119/:2175 (the order global, tenant, default, first non-null wins), :2137-2149 (the tenant rung; localization is scope 'tenant', localization.manifest.ts:39), :2221-2227 to organization-reach.ts:87-95 to resolve-authz-context.ts:1676-1696 to system-write-organization.ts:115-124 (single posture and exactly one organization give 'derived'). The .describe() and the changeset are unchanged. Body r2 is written and dry-run, and has not been sent.",
      "tests": "head d0863ab93: pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/data/seed.test.ts src/data/seed-loader.test.ts src/data/seed-file.zod.test.ts src/data/define-seed-record-keys.test.ts (os-verify-lock) → Test Files 4 passed (4), Tests 111 passed (111). pnpm --filter @objectstack/spec typecheck (os-verify-lock) → VERDICT command-exit 0, 0 'error TS'. No ablation, because no tested behaviour changed.",
      "gates": "local, head d0863ab93, NODE_OPTIONS=--max-old-space-size=4096 throughout: spec build VERDICT command-exit 0; gen:docs; check:generated → 'All 14 generated artifacts are up to date'; eslint --no-inline-config on seed.zod.ts exit 0; check-changeset-no-major --base origin/main --event (body r2) exit 0; full turbo run build 119/119 VERDICT command-exit 0, then dispatch-gates --commands --repo objectstack-ai/objectstack → 96 commands, all exit 0, exit codes captured before any pipe; --ran → '96 derived, 96 run, 0 NOT-MEASURED, 0 UNRUN'. CI on d0863ab93 (read once): 57 success, 8 skipped, 0 failure.",
      "line_budget": "82 changed lines (+61 / -21) in 7 files against merge base ffeda137b; the threshold is 3000. Round 2 added a net +2 lines in seed.zod.ts.",
      "files_changed": [
        "packages/spec/src/data/seed.zod.ts",
        "packages/spec/src/contracts/ownership-queue-service.ts",
        ".changeset/30347-spec-seed-locale-and-queue-refuse-wording.md",
        "content/docs/references/data/seed.mdx",
        "content/docs/references/data/seed-loader.mdx",
        "content/docs/references/api/package-api.mdx",
        "content/docs/references/kernel/manifest.mdx"
      ],
      "commits_r2": ["e2f2e2175 merge origin/main", "15456e098 package-api.mdx regenerated after the merge", "d0863ab93 #30347 docblock rung 1"],
      "body_r2": "/tmp/claude-0/-home-claude-objectstack/6bdf5ba9-50dc-5ba0-b3c0-b830fe25dfc8/scratchpad/pr-30604/body-r2.md, with the actions file /tmp/claude-0/-home-claude-objectstack/6bdf5ba9-50dc-5ba0-b3c0-b830fe25dfc8/scratchpad/pr-30604/actions-body-r2.json beside it (issue_patch on 30604; the first line is the seat signature, then a blank line, then the full body). It is built from the stored body (r1): the rung-1 row is rewritten with the eight citations above, the Tests section is replaced for d0863ab93, a Round 2 acceptance note is added, the citation tree is updated to ffeda137b, and the marketplace-install-local-plugin.ts lines are re-measured because the merge moved that file by +133 (1450-1453→1462-1465, 1453→1465, 1711-1716→1723-1728, 1716→1728, 1732→1744, 2525→2537, 4347→4376, 5108-5110→5239-5241, 5108-5111→5239-5242, 5156-5161→5287-5292, 5174-5176→5305-5307). --dry-run exit 0 (output at /tmp/claude-0/-home-claude-objectstack/6bdf5ba9-50dc-5ba0-b3c0-b830fe25dfc8/scratchpad/pr-30604/dryrun-body-r2.out). NOT sent.",
      "deviations": [
        "The commit that regenerates the artifact (15456e098) was not asked for. The pre-commit hook refused the docblock commit until package-api.mdx, which the merge driver had deferred, was regenerated from the merged tree, so the regeneration went in as its own commit ahead of the docblock.",
        "Round 2 test scope: I ran only the four spec files that touch seed.zod.ts, as the round order says. ownership-queue-failed-read.pin.test.ts was not re-run because round 2 does not change its source.",
        "I removed the worktree after the round (os-dev.md resource discipline rule 4). The branch is pushed and its remote head is d0863ab93."
      ],
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "round 2: relay writes 0 (body r2 was only dry-run and is handed to the seat); post-stamped comments 1 (this r2 report on #30347); git pushes 1 (one attempted push was refused by the pre-commit hook before any commit, so nothing was sent)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  8. objectstack-fleet commented on Nov 5, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#3 · os-sales · session_01L6bhgTqqeHSwZYJmApbDCa

    ACCEPT → PR #30604 comment 6667998085 · head d0863ab931e735fbe32bbf98fa30d8eab5092063 (#30347 and #30389 together). Contract review PASS in three rounds (6665662379, delta 6667115115, delta 6667963696). Handed to the merge queue with pr_ready + automerge_enable at 2026-11-05T20:05Z. Carried: #30607.


    Generated by Claude Code

  9. objectstack-fleet commented on Nov 5, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#3 · os-sales · session_01L6bhgTqqeHSwZYJmApbDCa

    Landed: PR #30604 merged at a8390207, together with #30347 and #30389.

    • Seed.locale's describe and docblock now state which loads filter on locale:
      • The boot seed filters on the app's i18n.defaultLocale.
      • The marketplace install, a reseed, the restart heal and the per-organization replays filter on the organization setting, then the installing / reseeding / founding user's locale, then the app default. A load that names no organization reads the env override, then the global setting, then, in a single-organization deployment with no wall, that organization's own setting.
      • Package apply and draft publish do not filter.
    • The ownership-queue contract says 'refuse' is honoured: isMember refuses when the member set would be incomplete.
    • Wording only. No shape, default or export moved.
    Probe on origin/main after the merge Reading
    git merge-base --is-ancestor a8390207 origin/main (tip b8929f486) ancestor
    git grep for the old sentences ("The publish and install paths do not filter by locale"; "until then a caller passing 'refuse'") over packages/spec/src and content/docs/references 0 and 0 files; the new describe ("The boot seed filters on the app's …") is on main

    The merge queue landed it at 2026-11-05T20:42:49Z. Its two Fixes lines closed both cards as completed. This seat removes pm:dispatched in the same stroke. Carried: #30607 (the Seed.locale row note in liveness/seed.json), now claimed by domain:spec#2.


    Generated by Claude Code

  10. removed
    pm:dispatched
    on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationdomain:specpriority:p3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions