Skip to content

metadata: migrateDatabaseLoaderRowPackages keys its slot-taken test without the bundle member, so an unbound email template row beside a column-bound row of another locale is left unbound #32489

Closed

Description

@objectstack-fleet

epic:#31527#1 · os-bill · session_01Utp6CYGYEUhpi29FpjLmxT

Filing gate: ① product defect with a named location, found by reading. Carried out of PR #32214's contract review 6809461650 (outside its diff) by epic ruling 6809488921. Part of #31527 (ADR-0150).

维护者速读

The defect

migrateDatabaseLoaderRowPackages keys its slot-taken test by (type, package, name) without the bundle member. Take an unbound email_template row of locale fr-FR beside a column-bound row of the same name in locale en-US. The fr-FR row is reported slot-taken and left unbound, though its member's slot is free. Read by the contract reviewer, not yet run.

Expected: the slot-taken test keys by member for a bundled type, as DatabaseLoader.save's member-aware target does after #32214 round 6. A truly taken member slot is still reported, never overwritten (epic red line 2).

reach: the upgrade backfill on a deployment with per-locale email template rows. First-party: 0.

Reader

The epic seat epic:#31527#1 dispatches it after PR #32214 lands. Pin it red first.

Dedupe (open and closed): migrateDatabaseLoaderRowPackages, slot-taken bundle member → none.
Grade: p2.


Generated by Claude Code

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: confirmed · domain:server · p2 · pm:queue · 2026-11-12T01:53Z

    ⛔ Not a claim.


    Generated by Claude Code

  3. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#31527#2 · os-bill · session_01Utp6Ca5UHVBDE3DqQXgJsW

    Claim · #32489 · 2026-11-12T02:27Z (second epic seat epic:#31527#2, seated by the coordinator after the maintainer's 「再开一个座位能进一步提速吗」「太慢了」, 2026-11-12T02:17Z/02:19Z)

    Assignee os-bill, labels pm:queue → pm:dispatched, in this same write.

    Claim: epic seat 2 round 1 · #32489 (migration slot-taken test keyed by bundle member)
    Session: session_01Utp6CbddaPx1Q15nCTHvS5
    Account: os-bill
    Branch: claude/project-thread-8p3gfl
    Worktree: objectstack-issue-32489
    Domain: domain:server
    Seat: epic:#31527#2
    File surface: packages/metadata migrateDatabaseLoaderRowPackages (slot-taken test) and its tests; changeset. Stop on breach; explain in the report.
    Container & model: S, mode:thread, model: default tier, effort: high
    Clause-②: no (expected; the dev declares it from the diff)
    Metadata-protocol: none
    Responsibility: the upgrade backfill in packages/metadata (objectstack); no platform path covers the member; reach: per-locale email template rows, first-party 0
    Thread-read: 6812062811
    Premise: holds as filed (read, not yet run; the dev pins it red first on main after #32214)
    Serial constraints cleared: PR #32214 (seat 1, landing) defines the member-aware save target and edits database-loader.ts: the dev builds only after it is on main; #32351 (server seat A) shares database-loader.ts, whichever lands second merges main.


    Generated by Claude Code

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

    @objectstack-fleet
    ContributorAuthor

    epic:#31527#2 · os-bill · session_01Utp6CbddaPx1Q15nCTHvS5
    os-dev-report

    {
      "issue": 32489,
      "status": "done",
      "branch": "claude/project-thread-8p3gfl",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/32547",
      "head": "55055b4ff35bf9d6ddfcf1e32ff597d1d8edafdd",
      "session": "session_01Utp6CbddaPx1Q15nCTHvS5",
      "premise_still_valid": true,
      "summary": "migrateDatabaseLoaderRowPackages (packages/metadata/src/migrations/bind-database-loader-row-packages.ts) keyed its slot-taken set by (type, name, package). slotOf now keys a bundled type (isBundledStoreType: email_template) by (type, name, package, member), the member read by storedBundleMemberOf(type, body, row.bundle_member): the bundle_member column first, else the body's locale, else canonical (null), the store's unique-key spelling. An unbound fr-FR row beside the package's bound en-US row is bound; a member whose own slot is held is still left slot-taken (red line 2). Every other type keys as before. Nothing in database-loader.ts.",
      "clause_2": "no",
      "metadata_protocol": "none",
      "changeset": "patch, @objectstack/metadata",
      "tests": "Pins (new top-level describe in the existing bind-database-loader-row-packages.test.ts) alone at 3559c097 on 27abd458: 2 of 29 failed (fr-FR/de-DE left slot-taken beside the bound canonical row). Fix at 6eb1863a: 29/29, src/migrations 68/68. Ablation 1 (member dropped from slotOf): the same 2 red. Ablation 2 (bundle_member column ignored): the column case red. Restored, porcelain empty, 68/68.",
      "gates": "At 55055b4f after pnpm install and a full DTS build (turbo build, docs excluded): dispatch-gates --commands derived 59; 59 exit 0 (check-plugin-teardown-shape --self-test first exit 3 for a fixture commit missing from the shallow clone; after fetching that sha, 48 cases pass). --ran: 59 derived, 59 run, 0 NOT-MEASURED, 0 UNRUN. @objectstack/metadata vitest 1360/1360, typecheck exit 0, eslint --no-inline-config on the 2 source files exit 0; repo-wide pnpm lint left to CI. check-commit-card-trailers on this PR's 2 commits exit 0; check-governed-merges: 0 of 3 paths governed, 109 lines. No dogfood (no !, no narrowing arm).",
      "dogfood_battery": "n/a: no ! in the title and no (narrowing) arm",
      "line_budget": "+104 / -5 over 3 files (changeset 12, test +63/-1, source +29/-4); under 3000",
      "files_changed": [".changeset/32489-row-package-migration-bundle-member.md", "packages/metadata/src/migrations/bind-database-loader-row-packages.ts", "packages/metadata/src/migrations/bind-database-loader-row-packages.test.ts"],
      "shared_files": "none with 3giljf (landed), wqgmuu, du44hj, phk4r9; none with database-loader.ts",
      "deviations": [
        "Branch cut at 27abd458 (the #32214 head) on the seat's go before it landed, then merged with origin/main after it did; the PR's commit list (49) carries that branch's history, the diff against main is the 3 files only.",
        "First push refused by the pre-push card-trailer hook (Fixes/Refs in commit messages); the two unpublished commits were re-made without them before any push. Tree identical.",
        "pnpm lint ran as eslint on the changed files, not repo-wide."
      ],
      "mcp_calls": "3 reads: issue_read x1 (get), pull_request_read x1 (get), plus ToolSearch loads; no MCP write",
      "api_writes": "2: relay pr_create (run 43152658684, body read back identical 7097 bytes, draft, no assignee) and this report through post-stamped; 1 git push",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Report taken 2026-11-12T04:08Z.

  6. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#31527#2 · os-bill · session_01Utp6Ca5UHVBDE3DqQXgJsW

    Landed · #32489 · 2026-11-12T05:21Z

    Reading Value
    PR #32547 merged through the merge queue, merge commit 67c49d778d
    Queue dequeued once by an unrelated timeout in packages/qa/scenarios (filed as #32562), re-armed once, then merged

    State change: pm:dispatched removed now that the card is closed.


    Generated by Claude Code

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

Metadata

Metadata

Assignees

Labels

area:devpathbugdomain:serverpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions