Repository navigation
Description
eval#1 · os-justin · session_01QSeKYpxQpmErd1ixfkgbYh
Filing gate: ① product defect, reproduced through the public entry (os migrate meta) · Source: maintainer. In the verification seat's session on 2026-12-01 the seat laid out the migrate-tool findings and proposed this card at p1; the maintainer answered 「立卡 p1」.
Grading: area:build · domain:cli · Bug · p1 (maintainer's word). This is the default upgrade path to 19.0.0 GA. Every project scaffolded from the official template meets it on its first protocol-19 removal.
Business reason
#38550 (in 19.0.0-next.3) made view.list.bulkActions a build error whose message says: run os migrate meta --from 18, and --write applies the edits it can prove. On the template's own wiring, and on our largest real app, --write proves none. Every user upgrading to 19 hand-edits what the tool promised to do. The dry run's "Applied" wording also makes it easy to believe the edits were made, and then the build fails again.
Reproduction (measured 2026-12-01)
1. Stock scaffold. Evidence: smoke record #38847, cell U, from npm.
npm create objectstack@19.0.0-next.2. Add one list view withlist: { bulkActions: ['flag_company'] }and the action. Bump every@objectstack/*to19.0.0-next.3and reinstall.npx objectstack migrate meta --from 18lists 3 mechanical changes.--writeexits 0 with "Wrote 0 of 3 mechanical change(s) into 0 file(s)" and "3 mechanical change(s) left for you to apply by hand". Each one readsnot written [helper]: the value is built by exportsOf(…), not written as a literal.objectstack.config.tsis the template's ownexportsOf(views)/exportsOf(actions).- Control: the same sources, with
views: [views.company, views.contact]andactions: [actions.flagCompany]written as literals, give "Wrote 3 of 3 mechanical change(s) into 2 file(s)" and "Re-ran the chain over the written sources: no mechanical change remains". So the conversions are right, and only locating the source files fails.
2. HotCRM v7 (objectstack-ai/hotcrm afae64b5), on objectstack main 0fc9eab9 workspace packages. Evidence: eval-run #38830, section Migration.
npx objectstack migrate meta --from 18lists 144 mechanical changes: 8bulkActionsremovals, 3 actionlocationsadditions and 131viewAllFieldsadditions, plus 85 manual notices.--writeexits 0 with "Wrote 0 of 144 … into 0 file(s)". All 144 readnot written [helper]: which input of composeStacks(…) built package 6 is unknown: input 0, before it, is not read as a stack literal (the value is built by createHotCrmServiceStack(…), not written as a literal).- The 11 bulk-action edits were applied by hand across 6 files, and the build then passed.
3. Wording. The dry run (no --write) prints "Applied N mechanical change(s)". The --write run prints "Applied" above its "Wrote 0 of N".
Expected
--writefollows the template'sexportsOf(…)wiring (and a stack built bydefineStack/composeStackshelpers wherever their inputs resolve to module exports) to the source files, and writes the edits it can prove there. At minimum it must do this for the stockcreate-objectstacktemplate: the path the error message sends every user down.- If a wiring cannot be followed, the first line of the output says so: "0 of N written — your stack is built by X; apply these by hand", with the file and line of each edit.
- The dry run says "Would apply N" (or "N to apply"), never "Applied".
Reader
The domain:cli lane dev who owns os migrate meta's source writer (the not written [helper] path; see #38319 for the helper diagnostics landed earlier). Acceptance pins:
- the scaffold reproduction above writes 3 of 3 with the template's own
exportsOfwiring; - a
composeStacks/ helper-built fixture shaped like HotCRM's writes its provable edits, or names each edit's file and line; - a dry-run output test that never prints "Applied".
Dedupe
Searches (open and closed):
"migrate meta" exportsOf→ 0 cards;"migrate meta" "not written"→ 2 closed: cli:os migrate meta"not written [helper]" names the first packageStacks input (createHotCrmServiceStack) for edits that live in another stack (createHotCrmAppStack), and gives an index, not the set name #38319 and its twin cli:os migrate meta"not written [helper]" names the first packageStacks input (createHotCrmServiceStack) for edits that live in another stack (createHotCrmAppStack), and gives an index, not the set name #38320, diagnostics wording for the helper case and not the write itself;"migrate meta" composeStacks→ [finding] cli(migrate meta): on acomposeStackspreserve project the authored-source load is refused with STACK_PROVENANCE_MISSING ("not built by defineStack") although every input is wrapped #22289, closed, a load refusal on composeStacks, a different mechanism.
No open card covers it. Related and closed: #22256 (--write skips conversions the load already applied), #22144 (published skills overstating what --write strips).
Related: #38550 (the retirement that sends users here), #38847 cell U, #38830 Migration, and the sibling card on prerelease starting points filed in the same pass.
Activity
objectstack-fleet commentedon Dec 1, 2026
eval#1 · os-justin · session_01QSeKYpxQpmErd1ixfkgbYh
Reach widened: every 18.x project, not only 19 prereleases · 2026-12-01T09:04Z
The published
create-objectstack@18.6.0blank template (dist/templates/blank/objectstack.config.ts, read from the npm tarball) wires every collection through the same helper:So every project scaffolded on 18.x meets this card when it upgrades to 19:
os migrate meta --from 18 --writecan write none of its edits, the 18→19 conversions included (viewAllFields,bulkActions→selection, and the rest). The maintainer's focus, 2026-12-01 in the verification seat's session, is 「重点解决 v18到 v19 的升级」. This card is the first item on that path.objectstack-fleet commentedon Dec 1, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
Triage: first-touch · lane grade kept:
area:build· Bug · p1 (maintainer 「立卡 p1」) ·pm:queue.objectstack-fleet commentedon Dec 1, 2026
qa#1 · os-justin · session_01QSeKYpxQpmErd1ixfkgbYh
Provenance: posted by the verification seat from runner
session_01QSeKYnbcNyGspzsj2EpdvP(upgrade acceptance 18.6.0 → 19.0.0-next.3, record #38920); the runner made no GitHub write.New evidence, measured 2026-12-01 on npm 19.0.0-next.3 (framework
ea6e312a), starting from 18.6.0 npmlatest:npm create objectstack@18.6.0enriched (2 objects, views withbulkActions, actions, flow, dataset, dashboard, permission sets):os migrate meta --from 18lists 10 mechanical;--writewrites 0 of 10, eachnot written [helper] … exportsOf(…), while the output says "Applied 10 mechanical change(s)". Onlyengines.protocolmoved to'^19'. Hand-applied, the replay--from 18 --to 19reportsapplied: 0.--writewrites 6 files, fails its re-check and restores them: 0 of 138 written, exit 1, protocol range rolled back too. That rollback is its own mechanism, filed as cli:os migrate meta --from 18 --writeon the 18.6.0 showcase writes 6 files, fails its own re-check and restores all of them (exit 1), protocol range included: independent edits are all-or-nothing #38922 (C2 from QA run · upgrade:18.6.0-to-19.0.0-next.3 (2/2) · ea6e312a · 2026-12-01 · 0 PASS / 2 PARTIAL / 0 FAIL #38920).So this card's reach holds on a real 18.6.0 start, not only a 19 prerelease scaffold: an 18.6.0 user gets 0 automatic edits on either app shape. Record: #38920.
objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYoSKoNUygbCoMBTbGc
Claim: PM loop round 1 (zone build, W0)
Session:
session_01QSeKYoSKoNUygbCoMBTbGcAccount:
os-justinArea: build
Branch:
claude/issue-38879-migrate-write-exportsofWorktree:
objectstack-issue-38879Domain:
domain:serverSeat:
repo:objectstack@os-justinFile surface:
packages/cli/src/utils/authored-source-codemod.ts,packages/cli/src/commands/migrate/meta.ts,packages/cli/src/commands/migrate/(reason: new per-card test filesmeta.write-exportsof*.test.tsand fixtures only)Container & model:
M,mode:subagent,model: default judgement tier — dispatch-gates --tier on this surface at 431f8802: "no path-derived mandate",effort: high(M card with a design judgement: how far the writer follows helper-built wiring)Clause-②: no
Metadata-protocol: none
Responsibility:
packages/clisource writer in objectstack (this repo carries the fix) | no platform path covers it: the error message of #38550 sends users to this command | every project scaffolded from create-objectstack 18.x or 19 prereleases (templateexportsOf(…)wiring) reaches it on its first 18 → 19 upgradeThread-read: 7312596685
Premise: holds — measured 2026-12-01 at
ea6e312a(body; comment 7312596685, 18.6.0 start); the dev re-measures the scaffold reproduction onorigin/main431f880 before writing code and stops with evidence if it no longer reproducesPre-claim lane:
domain:server(file ownership only) —packages/cli/**inside zone build's leasePre-claim deps: the card names no
Blocked-by:or "after #N";check-handover.mjs --inflighton the surface: no overlap (one surface unread, #38415, a pm-dispatch skill card, no cli path);overlap-check.mjsVERDICT clean at 431f880 (no branch yet; re-run at every push)Prior rulings read:
check-prior-rulings.mjs --card 38879—ruling0 ·Ruling-ref0 ·maintainer0 ·⛔5 lines inmeta.ts(99, 337, 919, 1064, 1732), none conflicting with this route; ADR-0087 D3 ("never silence": no notice dropped or summarised) and Boundaries ("source rewriting only happens via D3's explicitmigrate meta") read, consistent; linked cards #38319 / #38320 / #22289 / #22256 closed, no ruling on this mechanismFold-or-serial: no fold. #38922 shares the writer but fails fold gate ① (its defect is the all-or-nothing re-check rollback, not locating the sources); #38923 (
--stored), #38924 / #38925 (notice / access-matrix wording), #38928 (os validate), #38929 (relevantWheninpackages/spec/src/migrations) are different mechanisms. Serial queue onmeta.ts/authored-source-codemod.ts: #38879 → #38922 → the rest by overlap-check.Serial constraints cleared: none in flight on
packages/cli/src/commands/migrate/meta.tsorpackages/cli/src/utils/authored-source-codemod.ts(inflight read above); sibling #38922 waits on this cardobjectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYoSKoNUygbCoMBTbGc
os-dev-report
{ "issue": 38879, "status": "done", "branch": "claude/issue-38879-migrate-write-exportsof", "pr": "https://github.com/objectstack-ai/objectstack/pull/39096", "session": "session_01QSeKYoSKoNUygbCoMBTbGc", "premise_still_valid": true, "summary": "Premise re-measured on origin/main 431f8802 before any edit: with the 18.x helper `const exportsOf = (barrel) => Object.values(barrel)`, the dry run printed `Applied 3 mechanical change(s):` and --write printed `Wrote 0 of 3 mechanical change(s) into 0 file(s):`, then three `not written [helper]: the value is built by exportsOf(…)`. Fix 1: the source walk reads a project's own one-line forwarding wrapper of Object.values (const arrow or function expression, or a non-reassigned function declaration, local or relatively imported, one plain parameter, body exactly Object.values(param) or param) as the call it wraps, and follows the barrel to the module files. The scaffold reproduction now writes 3 of 3 and the re-run is clean. Fix 2: a refusal carries the blocking call (`builder`); a zero-written --write opens its group with `0 of N mechanical change(s) written — your stack is built by X(…), which --write cannot follow to the sources; apply these by hand …`, and every manual site gets a `found at FILE:LINE` content-match pointer (never written). Fix 3: group ② reads `Would apply N …` on a dry run and `N mechanical change(s) to apply …` with --write, never `Applied`. The --json shape is unchanged. Wrapper recognition and the site finder are new sibling modules (the codemod is over 1,000 lines). Real HotCRM afae64b5: 0 of 154 written (factory-built), and 146 of 154 sites print a found-at line (all 13 bulkActions and all 131 viewAllFields).", "tests": "New packages/cli/src/commands/migrate/meta.write-exportsof.test.ts, 15 cases, `Tests 15 passed (15)`. Targeted unit subset on ec0a60d42e (`vitest run --project unit` over src/commands/migrate/meta.*, test/migrate-meta*, doctor-deprecation-hint-commands, invocation, vitest-tiers-partition): `Test Files 19 passed (19)`, `Tests 213 passed (213)`. The integration-tier file it edits (test/migrate-meta-default-range.test.ts): `7 passed | 1 skipped` (pre-existing skipIf). `pnpm --filter @objectstack/cli typecheck`: exit 0. Full cli unit tier: NOT-MEASURED (39 files passed, then the 585 s foreground limit); left to CI Test Core. Ablations, all via scripts/ablation-replace.mjs with restore verified (blob == HEAD, `git diff HEAD` empty), source-resolved (no dist involved): A, wrapper following off, 5 failed / 10 passed (the write cases; the literal control and the non-wrapper battery stay green); B, site finder off, 7 failed / 8 passed (six non-wrapper cases and the HotCRM shape); C, header restored to `Applied N mechanical change(s):`, 3 failed / 12 passed (the wording cases). Smoke with the built CLI: the real blank template (typed helper) plus bulkActions printed `Wrote 3 of 3 mechanical change(s) into 2 file(s):` and `no mechanical change remains`.", "gates": "Local, on ec0a60d42e: all 73 families `node scripts/pm/dispatch-gates.mjs --commands` derives, each run with its exit code captured before any pipe; all exited 0. `--ran`: `73 derived famil(ies) accounted for — 73 run, 0 NOT-MEASURED (a DERIVED zero — all 73 recorded an exit code and none of them is 3)`. On the earlier head 6e26fcaa79, check:test-source-alias was red (exit 1: the new and edited test files reach dynamic imports with no module-top load). Fixed by adding the same module-top side-effect imports test/migrate-meta-composed.test.ts carries; re-run exit 0. overlap-check VERDICT clean before each push except the first (see deviations). CI on PR #39096 head ec0a60d42e at report time: Governed Surface Queue Guard success; Lint, Type Check, Check Changeset and PR-body guards in_progress; opt-in jobs skipped. Not read again (convergence is PM's).", "mcp_calls": "0", "api_writes": "2 relay strokes: (1) pr_create via fleet-write dispatch (POST pulls + POST issues/39096/assignees [os-justin]), read back identical, 10504 bytes; (2) this os-dev-report comment via post-stamped.mjs on #38879. git push is not counted.", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: repo:objectstack@os-justin · noted, not filed — wording this change makes false, left outside this PR's file surface: (1) skills/objectstack-upgrade/references/examples-upgrade.md:68 tells readers the run prints `Applied N mechanical change(s)`. It is a published skill and a governed Tier H path, so editing it here would make the p1 PR Tier H. Proposed text: `Would apply N mechanical change(s)` on a dry run / `N mechanical change(s) to apply` with --write. (2) docs/qa/platform-checklist/areas/cli.json steps locate the `Applied N mechanical change(s):` block. (3) packages/spec/src/shared/retired-key.ts:66-67 code comment quotes it. os-dev rule: what this change makes false is a must-fix; the dispatch says stop on any surface breach. The seat decides between a docs-only companion PR and widening this one.", "carrier: hotcrm · noted, not filed — on objectstack origin/main 431f8802, `os migrate meta --from 18` over hotcrm afae64b5 refuses before any conversion: INVALID_ARTIFACT_PACKAGE_ENTRY on packages[1] flows.2 edge order (quote-generation flow, e6 before e16, both branches park at a screen). This is a newer flow rule HotCRM's flow does not meet, not this card. The measurement reordered the two edges in a scratch copy only. Dedupe words: migrate meta, INVALID_ARTIFACT_PACKAGE_ENTRY, quote-generation, edge order parks" ], "files_changed": [ ".changeset/38879-migrate-write-exportsof.md", "packages/cli/src/utils/authored-source-codemod.ts", "packages/cli/src/utils/authored-source-wrappers.ts (new)", "packages/cli/src/utils/authored-source-site-finder.ts (new)", "packages/cli/src/commands/migrate/meta.ts", "packages/cli/src/commands/migrate/meta.write-exportsof.test.ts (new)", "packages/cli/src/commands/migrate/meta.report-order.test.ts", "packages/cli/test/migrate-meta-default-range.test.ts", "packages/cli/test/migrate-meta-default-range-window.test.ts" ], "line_budget": "9 files, +1163 / -27 vs origin/main (merge base 78148226fd), under the 3,000-line human-review line; no skills/** diff. authored-source-codemod.ts 2042 -> 2093 lines (only the calls, the builder field and doc), meta.ts 1829 -> 1863.", "deviations": [ "File surface widened past the claim: 2 new sibling modules under packages/cli/src/utils (os-dev rule: a new concern in a file over 1,000 lines goes in a new sibling module), 3 existing test files whose pins quote the old `Applied` header (meta.report-order.test.ts, test/migrate-meta-default-range.test.ts, test/migrate-meta-default-range-window.test.ts), and the changeset the dispatch named. The claim's file surface needs this supplement.", "The first push (cb5cb3cf5f, WIP) went out before `overlap-check.mjs`. Run right after it: VERDICT clean (0 PR heads, merges cleanly). Every later push had it run first.", "Commit trailers use the model-free pair AGENTS.md prescribes (Claude-Session + Co-authored-by: Claude), not the harness reminder's model-named Co-Authored-By. The PR footer uses the AGENTS.md session-URL form.", "Full packages/cli unit tier NOT-MEASURED locally (does not fit the foreground limit); targeted subset run instead, full tier left to CI.", "L2: none believed owed: Clause-② no, Metadata-protocol none, --json shape unchanged and pinned; the only exported-type change is an optional `builder` on CodemodRefusal inside packages/cli." ] }objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYoSKoNUygbCoMBTbGc
Claim amendment (claim 7336933200) · 2026-12-02T08:23Z
File surface (added):
packages/cli/src/utils/authored-source-wrappers.tsandpackages/cli/src/utils/authored-source-site-finder.ts(new sibling modules:authored-source-codemod.tsis over 1,000 lines);packages/cli/src/commands/migrate/meta.report-order.test.ts,packages/cli/test/migrate-meta-default-range.test.ts,packages/cli/test/migrate-meta-default-range-window.test.ts(existing pins that quote the retiredAppliedheader).check-handover.mjs --inflighton these paths: no overlap (one unread surface, #38415, a pm-dispatch skill card).PR: #39096 (draft, head
ec0a60d42e), dev report 7339352487.Wording made false outside this surface, handed to the seat, not widened here:
skills/objectstack-upgrade/references/examples-upgrade.md:68(governed, proposed to ride #38926),docs/qa/platform-checklist/areas/cli.json, and the comment atpackages/spec/src/shared/retired-key.ts:66-67.objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYoSKoNUygbCoMBTbGc
Delivered · 2026-12-02T09:20Z · PR #39096 merged as
4b561894de(L1 ACCEPT 7340092033, landing 7340113353). Card closed byFixes #38879;pm:dispatchedremoved with this note. Follow-ups: #38922 (in flight, builds on this), theAppliedwording companion PR (QA checklist step +retired-key.tscomment), and the skills line riding #38926.