Repository navigation
fix(spec): rewrite a stored bulk-actions list when the object already declares the same selection arm - #39444
Conversation
…rsion Claude-Session: https://claude.ai/code/session_016WV4cxRh6Sbfo2Xm49JPx6 Co-authored-by: Claude <noreply@anthropic.com>
…es the same selection arm Claude-Session: https://claude.ai/code/session_016WV4cxRh6Sbfo2Xm49JPx6 Co-authored-by: Claude <noreply@anthropic.com>
…election Claude-Session: https://claude.ai/code/session_016WV4cxRh6Sbfo2Xm49JPx6 Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check3 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. What this run could not see
Coarse fallback — 185 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 6f954ddb3c1fb7d9f60fd485c15008af2ff9fc66 && git checkout 6f954ddb3c1fb7d9f60fd485c15008af2ff9fc66
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 55d673c6e588251ee9b246df3c7edffa40c03db1 171441c25ff3da46b4c5f7c5f5cfe8f73e181181 && git checkout -B drift-repro 55d673c6e588251ee9b246df3c7edffa40c03db1 && git merge --no-ff 171441c25ff3da46b4c5f7c5f5cfe8f73e181181
node scripts/docs-audit/affected-docs.mjs --json 55d673c6e588251ee9b246df3c7edffa40c03db1 |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR 2026-12-04T00:18Z · L1-a verdict: ACCEPT (L1) at head 席位核对Checklist verdict. Shape: open, draft, base Code read (
The point the zone asked to judge — equality defined from the source half's own output. Accepted. Evidence. Ablation reading: the new test fails 2/8 on the L2 owed. The diff touches Pointer for #39395: |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7 Contract-review-claim: session_016WV4cxiJF5PkqquFk98Bh7 · head e20b5e7 · 2026-12-04T00:19Z |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7 Contract reviewServed-tier: Read: card #39395 (body and its three comments), the PR body, its three-file list and the net diff against ① Derived judgmentsNo schema, export or accept-set moves: the diff changes one branch of
② Semver level
The changeset body states the equality rule and the unchanged workaround accurately against the tree. One sentence in the PR body ("nothing else is written") is narrower than the tree: the named actions still gain ③ Boundary flags
④ Design judgmentAgainst the protocol-19 shape. Against the sibling conventions. Still a leaf (no new import), still reports through Against the card's scenario (source half adds Attempts to break it.
S1 (should-fix) — A stored row that names fewer actions than the declared arm, in an order the arm agrees with, is still left as stored, and its new TODO states something false. This is the ordinary output of the source half on any object with more than one list: the source half merges every list of the object in walk order (lines 287 to 299, which accept a list whenever the merged order restricted to its names is the list), so two views N1 (nit) — The header's new sentence "Any other arm is the author's arrangement and is never overwritten, nor read as agreeing" is true only of a list in non-default order. A list already in default order returns at line 307 before any arm is read, so it moves under a declared arm of another order. That behaviour is N2 (nit) — TODO grammar: "needs the object's N3 (nit) — No must-fix. Implemented-by: VERDICT: PASS |
…d list's order A stored row replays alone, so an arm the source half merged from several lists is wider than the row; judge it by the merge's own criterion. Claude-Session: https://claude.ai/code/session_016WV4cxRh6Sbfo2Xm49JPx6 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7 Contract-review-claim: session_016WV4cxiJF5PkqquFk98Bh7 · head 76b5105 · 2026-12-04T01:16Z |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR 2026-12-04T01:16Z · L1-a delta verdict: REWORK at head 席位核对 (delta)Read. The defect. Measured on this head (probe test in a scratch worktree, not pushed), with the file's own five actions declared in alphabetical order: So Asked fix. Make the stored-half criterion match the source half: a row agrees when every name it lists is in the arm and the arm's order (
Pin the counterexample above as a test either way (source half over both lists, then each row replayed alone ⇒ no TODO). If (b) is chosen and that case stays a TODO, Held. Accepting |
…r a stored list The source half's merge lets a list's names land in more, so a row replayed alone agrees with the merged arm when the arm keeps its order. Claude-Session: https://claude.ai/code/session_016WV4cxRh6Sbfo2Xm49JPx6 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7 Contract-review-claim: session_016WV4cxiJF5PkqquFk98Bh7 · head 171441c · 2026-12-04T01:44Z |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7 Contract reviewServed-tier: Delta record: it follows the PASS at ① Derived judgmentsThe delta replaces
② Semver levelUnchanged and still right: ③ Boundary flags
④ Design judgmentS1 from 7396734393: resolved. The subset row now moves, and the TODO no longer asserts that the object's arm must be one particular arm: it says the order needs an arm naming the list's actions in that order, gives the entry's own arm as an example ("as … does"), and prints the declared arm beside it. N1: resolved. The header now limits the "never read as agreeing" sentence to a list not in the default order and says a default-order list moves before any arm is read. N2: resolved in substance; see N4. N3: stands, unchanged, outside the surface: the header comment of New attempts to break it.
N4 (nit) — The reworked TODO sentence still does not parse cleanly: "Keeping it needs the object's N5 (nit) — N6 (nit) — Two sentences trail the rule. The header's refusal list at line 65 still says "one that already has a different No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR 2026-12-04T01:48Z · L1-a delta verdict: ACCEPT at head 席位核对 (delta 2)Read. The asked fix, option (a), holds.
Gates at this head: 18 success, 16 skipped, 1 cancelled, 24 pending at read time. Landing needs every check green or expected skip on the head that lands, and a contract-review record ( Pointer for #39395 / #39446: |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxRh6Sbfo2Xm49JPx6 2026-12-04T02:11Z · Landing (zone em-upgrade). L1 delta ACCEPT 7398264551 and seat L2 delta PASS 7398206418 at head |
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxRh6Sbfo2Xm49JPx6
Requested by Elon · project thread
Fixes #39395
Fixes #39446
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The protocol-19 conversion
view-bulk-actions-to-action-selectionleft every list of an object as stored (with a TODO) whenever the object already declaredactionLayout.selection, without comparing it. The source half (os migrate meta --from 18 --write) writes exactly that arm, so after the source edit a Studio-saved row stayed unconverted andos migrate meta --stored --applyexited 1, its TODO prescribing the edit already made.Now the declared arm is read against the list's order, the way the entry's own multi-list merge reads each list against the merged order. Agreement definition (source: the source half's own output, i.e. the arm this same entry builds in
planObject, merged from every list of the object): the declared arm names every action the list names, and its order (pinned, thenmore) restricted to those names is the list's order. Which names are buttons is the arm's own split, as declared, never recomputed from one list, because the merge already lets a list's names land inmore. So views[b, a]and[b, a, c](mergedpinned: [b, a, c]), or[alpha, beta, gamma, epsilon, delta]and[epsilon, delta](mergedpinned: [alpha, beta, gamma], more: [epsilon, delta]), each move when replayed alone. Agreeing ⇒ the list moves and the arm is left as declared; the named actions still gain'selection'where they lack it, and no arm is written. Any other arm (another order, a name of the list missing, not an arm) is the author's arrangement: never overwritten, the row stays as stored, and the TODO names the declared arm beside an arm that would keep the list's order.Review N3 (the comment in
packages/metadata-protocol/src/protocol-stored-view-selection.tsnaming "an arm the object already declares" under left) is outside this claim's file surface and is left unchanged.Tests
view-bulk-actions-to-action-selection-39395.test.ts: 16 cases. Equal arm (pinned only; pinned and more); six agreeing arms (emptymore, wider after, wider between, wider inmore, the same order split differently, wider with a named action inmore); the source half over two lists then each row replayed alone in the stored half, for a prefix pair and for[alpha, beta, gamma, epsilon, delta]+[epsilon, delta]; five disagreeing arms (each pinning the TODO's declared-arm wording); and the undeclared/absent-object regression.Tests 3 failed | 13 passed (16), exit 1 (the two split cases and the[epsilon, delta]replay). Onorigin/mainsource the two equal-arm cases failed (first round). On this branch: pass.vitest run src/conversionsin@objectstack/specat 171441c:Test Files 30 passed (30),Tests 897 passed (897), exit 0. Full@objectstack/specsuite left to CI (declared narrowing).pnpm --filter @objectstack/spec build && typecheck: exit 0.Acceptance notes
armKeepsOrderreads a declared arm as agreeing when it keeps the list's order; the arm's ownpinned/moresplit is accepted as declared, as the source half's merge does (somore: []and a re-split arm agree). A list already in the default order moves before any arm is read, as onmain.Verification
Read first:
packages/spec/src/conversions/entries/19/view-bulk-actions-to-action-selection.ts(planObjectearly return andarmKeepsOrder).Two-minute check:
pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/conversions/entries/19/view-bulk-actions-to-action-selection-39395.test.ts— expect 16 passed.Local gates at 171441c
dispatch-gates --ran: 83 derived, 76 run (exit 0), 7 NOT-MEASURED (repo-wide scans timed out on the shared box or need dist of other packages / a full clone: comment-mask-corpus, plugin-teardown-shape self-test, dual-build-cjs-loads, lean-entry-closure, query-options-erasure, slot-lookup, type-check-debt; measured as such on the first round, not rerun), 0 UNRUN — left to CI.overlap-check: VERDICT clean exit 0.🤖 Generated with Claude Code
https://claude.ai/code/session_016WV4cxRh6Sbfo2Xm49JPx6