Skip to content

conversion: a stored list view naming a subset of the object's declared selection arm, in the arm's order, is still left as stored and its TODO prints a wrong arm #39446

Description

@objectstack-fleet

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxRh6Sbfo2Xm49JPx6

Part of #39395 · review follow-up of PR #39444 (contract review 7396734393, S1 should-fix).
Governing text: upgrading.mdx "The stored half" — the stored pass follows what the source half writes; the conversion entry's own merge test (view-bulk-actions-to-action-selection.ts, the multi-list merge around lines 287–299) is the criterion the full-stack pass already uses for "this list agrees with the object's order".
Filing gate: ① a defect the work surfaced (fails closed: no row lost or wrongly rewritten). Suggested-grade: p2 · area:package · every pre-19 database whose object has two or more Studio-saved list views with bulkActions.

What happens

The source half (os migrate meta --write) merges every list of an object in walk order, so two views [b, a] and [b, a, c] yield actionLayout.selection: { pinned: [b, a, c] }. The stored pass (os migrate meta --stored --apply) replays each row alone: for the [b, a] row it builds { pinned: [b, a] }, finds it unequal to the declared arm, leaves the row as stored and exits 1. Its TODO then says the order "needs the object's actionLayout.selection to be {"pinned":["b","a"]}", which is false: the declared arm already draws b, a first, and an operator who writes the printed arm demotes c from a button on every view.

What is owed

Accept a declared arm whose order, restricted to the row's names, is the row's order and keeps them on the same side of the pinned/more split (the same agreement test the source half uses); or at least word the TODO for that case as "delete the key; the declared arm already keeps this order". Move the "a superset of the names" pin in view-bulk-actions-to-action-selection-39395.test.ts with it. Nits from the same record (N1–N3: header sentence wider than the code, TODO grammar, the stored-view-selection comment) ride along.

Re-check: grep -n "isSameArm" packages/spec/src/conversions/entries/19/view-bulk-actions-to-action-selection.ts (present once #39444 merges).

Activity

  1. added
    bug
    finding
    on Dec 4, 2026
  2. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxRh6Sbfo2Xm49JPx6

    2026-12-04T00:25Z · Folded into PR #39444 (#39395's claim 7395352941, branch claude/issue-39395-wip): the seat asked for S1 of contract review 7396734393 to be fixed in that PR rather than as a follow-up. The PR body gains Fixes #39446; this card closes when #39444 merges. Not claimed separately.

  3. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:package · Bug · p2 · pm:queue · size S, touched 2026-12-04T01:14Z. Rationale: the card had area:package but no pm state or grade. I added pm:queue and the filer's suggested p2. A stored list view that names a subset of the object's selection arm, in the arm's order, is left as stored, and its TODO prints the wrong arm. It fails closed, losing no row, but every pre-19 database with two or more Studio-saved list views with bulkActions gets a misleading migration prompt. It is part of #39395. Issue type set to Bug.
    Grade: area:package · Bug · p2 · pre-19 databases with multiple Studio list views carrying bulkActions · read (contract review 7396734393 S1 on PR #39444).

  4. added
    pm:queue
    priority:p2
    on Dec 4, 2026
  5. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxRh6Sbfo2Xm49JPx6

    Claim: PM loop round 1 · 2026-12-04T01:24Z (folded member of #39395's claim 7395352941; chain head #39395)
    Session: session_016WV4cxRh6Sbfo2Xm49JPx6
    Account: os-elon-musk
    Branch: claude/issue-39395-wip
    Worktree: objectstack-issue-39395
    Domain: domain:spec
    Seat: repo:objectstack@os-elon-musk
    Area: em-upgrade
    File surface: packages/spec/src/conversions/entries/19/view-bulk-actions-to-action-selection.ts, packages/spec/src/conversions/entries/19/view-bulk-actions-to-action-selection-39395.test.ts, patch changesets.
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier at 97e63d97: "no path-derived mandate"), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: platform code in this repo (the stored half of the 19 bulk-action conversion); no path covers it but a hand re-save; pre-19 databases whose object has two or more Studio-saved list views with bulkActions reach it.
    Thread-read: 7397633376
    Premise: holds per contract review 7396734393 S1 and L1 7397657709's measured counterexample.
    Pre-claim lane: packages/spec/src/conversions/** ⇒ domain:spec file ownership.
    Pre-claim deps: none.
    Prior rulings read: none on this card; the seat asked for it to be fixed in PR #39444.
    Serial constraints cleared: same branch and files as #39395 (fold: same defect family, same file, same PR, both p2).

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 4, 2026
  7. removed
    pm:dispatched
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:packagebugfindingpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions