Skip to content

install-local: composed artifacts read package-owned collections from the top level only (translationsLoaded 0; global-unique gate sees no objects) #34407

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL

Family card for the out-of-scope findings of #34336 (os-dev-report 6917684209), filed by the repo:objectstack#1 seat's route. Same defect class as #34336: on a composed artifact (ADR-0130 D4) a collection lives in packages[i], and install-local reads only the top level. PR #34403 fixes the seed datasets through resolveStackCollection; these two readers are left.

Business reason. A composed app installed through install-local shows untranslated labels (zh-CN users see raw keys or the source language), and the global-unique install ceremony checks nothing for it.

Items

  • 1. Translations (measured). 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 the 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 worktree, not committed. Cause: applySideEffects step 1 reads manifest.translations from the top level only (packages/cloud-connection/src/marketplace-install-local-plugin.ts). Fix shape: resolveStackCollection(manifest, 'translations'). Not measured: whether the hosted UI gets these labels by another path.
  • 2. Global-unique gate (code-read only, not reproduced). evaluateGlobalUniqueGate (ADR-0120 D5e) runs collectGlobalUniques(manifest?.objects), a top-level read, so on a composed artifact the ceremony would see no objects. Reproduce red-first before fixing.

Grade. p2 (seat route).

Reader. domain:server, packages/cloud-connection. Serial after PR #34403 (same file).

Dedupe. Searches: "composed translations install-local" (22 hits; #34336, #34396 related, none about translations), "translationsLoaded composed" (2: #34336, a seat archive), "global-unique composed" (26, none), "collectGlobalUniques" (3: #34336, #9022 and #24040 closed, other defects).

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:server
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    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:22Z

    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?

    The four options on the card, as he read them:

    • 「分两批点名放行,不改级别」: 「第一批 6 张小而有实测的现在可认领,第二批 8 张等第一批合并后放开。级别保持 p2,p1 仍然优先。其余 7 张不作为新任务。」 (recommended)
    • 「两批都升 p1」: 「和前两次一样改标签,14 张都变成 p1。做法简单,但 p1 会从“数据错、安全、核心任务走不通”变成“你想先做的”,今天已升了 8 张。」
    • 「只放第一批 6 张」: 「只放开 6 张小卡,级别不改。要改协议或引擎的那 8 张,等手上的 p1 清完再问你。」
    • 「先不加」: 「本席手上已有 12 张 p1 在做、2 张待领。这 21 张都留在 p2,等你下次再排。」

    The batches, as listed in the file and the message he was given:

    The ruling

    This card is in batch 1 (position 5 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 composed app installed through install-local loads no translations (translationsLoaded: 0), and the global-unique install check sees no objects. Measured by the #34336 dev. He was told this card and #34405 sit in the same install code as the p1 cards #34336 and #34396, so one area thread can take them in a row.

    State


    Generated by Claude Code

  3. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL

    Claim: PM loop · named p2, batch 1 (Ruling-ref 6919096499) · 2026-11-16T16:02Z
    Session: session_01FEkQ5pHNFS9mn8hS13iGyL
    Account: os-project-manager
    Branch: claude/issue-34407-composed-top-level-reads
    Worktree: objectstack-issue-34407
    Domain: domain:server
    Seat: repo:objectstack#1
    File surface: packages/cloud-connection/src/marketplace-install-local-plugin.ts (applySideEffects translations read; the global-unique gate's objects read) 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 reading collections a composed artifact already declares, as #34403 did for datasets; no accepted shape or public export widens; the dev confirms)
    Metadata-protocol: none
    Responsibility: objectstack (cloud-connection install-local): on a composed artifact, translations and the global-unique gate read the top level only | resolveStackCollection already used for datasets since #34403 | every tenant installing a composed bundle through install-local; zh-CN labels of a composed app
    Thread-read: 6919096499
    Premise: holds for item 1 (measured translationsLoaded 0 vs 1 by the #34336 dev); item 2 is code-read only, the dev reproduces red-first or reports premise false
    Serial constraints cleared: #34405 (this area, same file, runInlineSeed landedKeys) runs in parallel in a different function; #34418 (#34396, same file, uninstall path) is open; 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 6919096499 (claimable after p0 and p1s, grade stays p2); card body; no further ruling found on the card

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
    os-dev-report

    {
      "issue": 34407,
      "status": "done",
      "branch": "claude/issue-34407-composed-top-level-reads",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34428",
      "pr_number": 34428,
      "final_head": "c98999cbf6f6b74a98db4d34ce3683c0a9b4ec68",
      "session": "session_01FEkQ5pHNFS9mn8hS13iGyL",
      "premise_still_valid": true,
      "summary": "Item 1: applySideEffects step 1 now reads resolveStackCollection(manifest, 'translations'), so a composed bundle loads every package body's locale bundles in package order on install, reseed, upgrade and restart. Before, it answered translationsLoaded 0. Item 2's premise holds and the gate is reachable: under OS_TENANCY_POSTURE=isolated a composed install answered 200 with its package bodies' unique 'global' never asked and no attestation recorded. evaluateGlobalUniqueGate now reads resolveStackCollection(manifest, 'objects'). The step-2b call site answers a resolver refusal of packages with that refusal's declared 4xx and code (422 INVALID_ARTIFACT_PACKAGES), writes nothing, and rethrows an undeclared throw. Flat bundles and flattened-union composed artifacts read their top-level list once, as before. Card assignee was not touched. The PR carries the claim's Account as assignee.",
      "tests": "New file packages/cloud-connection/src/marketplace-install-local-composed-top-level-reads.test.ts, 8 cases, through the real install route handler and the kernel:ready rehydrate. Red first on base 857941dbe8 (plugin source as on main): 'Tests 5 failed | 3 passed (8)'. The 3 controls pass. The 5 composed cases fail: 'expected +0 to be 3', 'expected [] to deeply equal [zh-CN:客户, zh-CN:订单, ja-JP:注文]', the isolated composed install answering 200 instead of 409, 'expected undefined to match object { posture: isolated }', and the refused-packages case answering 503 instead of 422. Reverse verification after the fix was committed (773a6e770b): plugin restored from 857941dbe8 with git restore --source (hash f8c52c47 equals the base blob, both new reader lines counted 0 on disk), same 5 failed and 3 passed. Restored with git checkout HEAD -- PATH: hash 3b52c79f equals the HEAD blob, git diff HEAD empty, trap with absolute path. No rebuild leg: the suite imports the plugin from src through a relative path, not from dist. At head: new file plus posture-gate plus composed-bundle-seeds give 'Test Files 3 passed (3) Tests 33 passed (33)'. Package: pnpm --filter @objectstack/cloud-connection typecheck (tsc --noEmit and -p tsconfig.test.json) clean; pnpm --filter @objectstack/cloud-connection test 'Test Files 85 passed (85) Tests 1246 passed (1246)'; lock VERDICT command-exit 0, head c98999cbf6.",
      "gates": "Local, head c98999cbf6: node scripts/pm/dispatch-gates.mjs --commands derived 71 families from objectstack-ai/objectstack at c98999cbf6. All 71 run, exit codes captured before any pipe: 70 exit 0, and pnpm check:dual-build-cjs-loads exit 3 (PREREQUISITE NOT MET: it reads every package's dist/, nothing measured, CI runs it). --ran reconciliation with exit codes: '71 derived famil(ies) accounted for, 70 run, 1 NOT-MEASURED'. check:nul-bytes in the set, exit 0. test:repo not run locally (the diff touches no repo-project test; declared to CI). Check-runs on c98999cbf6 at report time, latest per name: 23 runs, 18 in_progress and 5 skipped, 0 failure, 0 success yet. CI has not converged.",
      "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2: (1) relay pr_create, POST /repos/objectstack-ai/objectstack/dispatches; workflow run 43914645296 executed POST /repos/objectstack-ai/objectstack/pulls (PR #34428, draft, body read back 7073 bytes identical) and POST /repos/objectstack-ai/objectstack/issues/34428/assignees (os-project-manager); (2) post-stamped os-dev-report comment on issue #34407. Also 3 git pushes of the branch (empty-branch probe, fix commit, changeset commit), which are not REST writes. Reads only otherwise: issue, comments, open-PR files, check-runs.",
      "merge_overlaps": "git merge-tree --write-tree of head against each open PR touching packages/cloud-connection/src/marketplace-install-local*: #34418 (c965590cfc, composed uninstall, touches the plugin) exit 0; #34316 (6d8f7954b2, touches the plugin) exit 0; #34419 (7bf9cf500f, rename planner and a test, not the plugin) exit 0. Branch claude/issue-34405-install-local-landed-keys (92033c6d3f, no PR yet, touches the plugin) exit 0. origin/main 9e6fee19ea exit 0. No conflicts; temporary refs deleted.",
      "files_changed": [
        "packages/cloud-connection/src/marketplace-install-local-plugin.ts",
        "packages/cloud-connection/src/marketplace-install-local-composed-top-level-reads.test.ts",
        ".changeset/34407-composed-translations-global-uniques.md"
      ],
      "line_budget": "n/a: no skills/** file touched",
      "check_run_tally": "c98999cbf6: 23 check runs (latest per name), 18 in_progress, 5 skipped, 0 failure, 0 success at report time",
      "summary_for_pr_body": null,
      "deviations": [
        "Commit trailer: the harness reminder asked for a model-named Co-Authored-By and the Claude-Session line. I followed common.md and AGENTS.md: Claude-Session plus the model-free 'Co-Authored-By: Claude (noreply@anthropic.com)'.",
        "PR footer: I used AGENTS.md's session-URL footer form, not the harness reminder's robot-emoji line.",
        "Test file location: the claim names 'new test files named for this card', and I created one. AGENTS.md says a new pin for a component that already has a shared harness file goes into that file. Each install-local suite carries its own harness and no shared harness file exists, so I judged that rule not triggered. The seat may move the describes into composed-bundle-seeds or posture-gate if it reads that differently.",
        "PR body line 2 is 'Fixes #34407' right after the attribution comment. No 'Requested by' project-thread line, because none was supplied for this card."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: real POST /api/v1/marketplace/install-local route handler in a vitest harness, @objectstack/runtime mocked (connectPackageDatasources capturing its arguments, datasourceNameHolder answering free). A composed bundle whose core package body declares datasources [{ name: erp_db, driver: memory }] installs 200, but connectPackageDatasources is handed datasources [] and objects [], and the answer carries no datasources field. The flat control is handed [erp_db] and [crm_account] and answers [{ name: erp_db, status: connected }]. · evidence: declaredDatasources(manifest) and connectDeclaredDatasources read top-level datasources and objects only (install step 4b′ and the rehydrate); findHeldDatasourceName at step 2a reads the same way · same family as this card, so fold it in as a follow-up item of the #34407 family rather than a single-point card · dedupe words: composed datasources install-local, connectPackageDatasources composed, declaredDatasources packages, held datasource composed",
        "carrier: #34407 family (seat decides: follow-up item or family card) · install-local describeInstalledCredentialRefs reads top-level connectors only, so a composed bundle's connector credentialRefs would be missing from the install answer · code-read only, not measured, noted in PR Acceptance notes, not filed",
        "class: a · reach: real POST /api/v1/marketplace/install-local route handler in a vitest harness, posture single, measured on base 857941dbe8 and still present at head. A composed body the artifact resolver refuses, either packages 'not-a-list' or a package entry with a retired bare indexes[].unique: true, answers 503 SERVICE_UNAVAILABLE 'Installing ... is stopped: the tables its declared rename(s) carry could not be read (...) ... Retry once the database answers.' It should be the resolver's 4xx refusal (422 INVALID_ARTIFACT_PACKAGES / INVALID_ARTIFACT_PACKAGE_ENTRY). Retrying never helps, and the message blames the database. · evidence: step 2c″ evaluateDeclaredRenames turns a resolver refusal into the unreadable-table 503 · dedupe words: install-local 503 declared renames artifact refusal, evaluateDeclaredRenames INVALID_ARTIFACT_PACKAGE_ENTRY, retry once the database answers malformed packages",
        "carrier: none · applySideEffects still reads a top-level array i18n as extra translation bundles. i18n is TranslationConfigSchema (an object) in the spec, so the read never matches spec-valid metadata. Dead read, noted in Acceptance notes only"
      ]
    }
  6. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL

    Landed · 2026-11-16T18:02Z: PR #34428 merged through the merge queue as fe19c971, and Fixes #34407 closed this card. A composed bundle now loads every package body's translations on install, reseed, upgrade and restart. The isolated-posture global-unique gate now reads the package bodies' objects, and it answers a resolver refusal of packages with its declared 422. The cancelled advisory Docs Drift Check was landed on the seat's exception record 6924061969. Same-family follow-ups are carded as #34431 and #34432. pm:dispatched and lease:o1-B are removed and the assignee cleared in this stroke.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdomain:serverpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions