You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Running-app report save and existing-view settings save name no package, so an installed app's item writes the package-unbound row, not its paired .custom package (ADR-0146 D2) #37061
Filing gate: ① suspected defect with a named location, reproduction not yet run · Source: fleet (found while revising ADRs for #36086; PR #37045 "Noted, not filed", contract review 7139668897 note N4)
What the code does (read, not run)
ui/packages/app-shell/src/views/runtime-metadata-persistence.ts, saveAndPublishRuntimeMetadata (line 568) passes a package only when it saves a new view. A report's save, and a change to an existing view's settings, made from the running app name no package. For an item of an installed package whose stored rows are not bound to exactly one package, the server then addresses the package-unbound row.
Why it matters
ADR-0146 D2 says a customization of an installed package's item lands in that package's paired .custom package. These two saves land in a place ADR-0146 does not describe. PR #37045's ADR note records this as true of main; it is not the ruled design.
Not measured
Whether some door refuses the write, and what an upgrade of the installed package then does to the change. The first step is to reproduce it: install a package with a report and a view, save both from the running app, and read which row was written.
Expected
Either both saves name the paired .custom package for an installed package's item, as ADR-0146 D2 does, or the ADR records the exception with a reason.
Business reason: a builder's change to an installed app's report or view could sit outside the package that keeps customizations, so an upgrade or uninstall may not treat it as theirs.
Dedupe: repo:objectstack-ai/objectstack is:issue is:open saveAndPublishRuntimeMetadata package → 0; is:issue is:open ADR-0146 custom package report save → 0.
Clause-②: no · Metadata-protocol: none
Grade: proposal for triage, unmeasured: area:build · Bug · not yet reproduced, so ungraded here.
Triage: lands in area:build; rationale: where a running-app customization of an installed package's item is written is the metadata write path.
Completed at first touch (the card had no type, grade or state): type Bug, priority:p2, pm:queue, domain:ui.
Grade line: area:build · Bug · a report save or an existing view's settings save from the running app lands outside ADR-0146 D2's paired .custom package · admins customizing installed apps (admin row) · read, with the mechanism named (saveAndPublishRuntimeMetadata, line 568) · size S.
First step: measure. Reproduce the two saves on an installed package's item once before any fix; if the row lands in .custom after all, close with that reading.
Claim: PM loop round 1
Session: session_01L9qibzpqH1nQTsbGckLspg
Account: os-tesla
Branch: claude/project-thread-kc69mi
Worktree: objectstack-issue-37061
Domain: domain:ui
Seat: repo:objectstack#3
File surface: ui/packages/app-shell/src/views/runtime-metadata-persistence.ts, ui/packages/app-shell/src/views/ReportNewPage.tsx and the report page's Edit save (ReportView / ReportBuilderHost save path), ui/packages/app-shell/src/views/objectViewViewCrud.tsx and objectViewViewSharing.ts (existing-view settings save), pins in the existing shared harness for those modules if one exists (AGENTS.md, ruling record 6583487846) else one new file named for #37061, one @object-ui/app-shell patch changeset; ⛔ no docs/adr/** (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate", effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: platform code in objectstack (ui/packages/app-shell: ReportNewPage.tsx:156 and objectViewViewCrud.tsx:220 call saveAndPublishRuntimeMetadata naming no package, while the in-place editor routes through saveInPlace / ensureInPlaceSaveTarget to the .custom pair, objectstack#36372) | ADR-0146 D2/D3 and the #35624 ruling C route (app package, else <base>.custom) cover view CREATE (resolveRuntimeCreatePackage) and in-place dashboard edits, not these two saves | an admin customizing an installed app's report or existing view from the running app; read from source on origin/main 73d5e347, not yet reproduced (the card's first step)
Thread-read: 7140892860
Premise: holds (read from source; the dev reproduces first and, if the row lands in .custom after all, stops and reports so the card closes with that reading)
Serial constraints cleared: no open PR touches these files (file scan of all open PRs at 11:35Z); this zone's previous PR #37905 (#36747, same branch) is in the merge queue since 11:33Z — the dev pushes only after it merges; overlap-check.mjs re-runs before the first push
Area: o3-build
Pre-claim lane: domain:ui — the fix lands in ui/packages/app-shell/src/views/**.
Owes: L1 (L1-a); no L2 unless the fix changes a contract face. If the measured answer is "record an exception in ADR-0146", the dev stops and reports a fork (no ADR edit in this card).
{
"issue": 37061,
"status": "done",
"branch": "claude/issue-37061-save-package (local only; nothing pushed, no remote ref touched)",
"pr": null,
"head_sha": null,
"session": "session_01L9qibzpqH1nQTsbGckLspg",
"premise_still_valid": false,
"summary": "Measured first, as the triage comment orders, on origin/main 73d5e347: no running-app save of an installed (read-only) package's view or report writes the package-unbound row. (1) Report: the Edit save (ReportView.saveSchema) already routes through resolveInPlaceEditTarget, ensureInPlaceSaveTarget, inPlaceSaveBody and saveInPlace into the paired .custom with the override declaration (landed for objectstack#36716, pinned by ReportView.shippedReportSave-36716.test.tsx); the New-report save (ReportNewPage.tsx:153-156) creates into the app package when writable, else the pair through the ensure door, and falls back to package-less only when neither can be had, which is ruling C's reported fallback. (2) Existing view: the server's ADR-0146 D11 close refuses the package-less write. A real-kernel run (real ObjectQL + SchemaRegistry + ObjectStackProtocolImplementation + in-memory driver, the environment-overlay-five-types harness) replaying the console's exact calls, a draft save naming no package pinned If-None-Match * and then the per-item publish naming no package, answered 403 NOT_OVERRIDABLE for both view and report, naming the pair and the os migrate packageless-overlays ceremony. It stored zero rows, and the read kept serving the package's item. It answered the same with the pair already holding a declared override: the pair row stayed untouched and nothing was written outside it. The console also does not offer these doors on such a view: Save to this view is gated on the package's save read (ObjectView.tsx canSaveToSharedView), and the settings panel opens read-only for a read-only package's view (ruling record 7058654416, objectstack#35974). So the card's mechanism claim, that the server addresses the package-unbound row, is disproved. The two saves either land in .custom (report) or are refused naming .custom (view). The rows D11 leaves open (multi_shipped, no_pair, foreign_declaration, shadowed by an undeclared row, failing move) are exceptions ADR-0146 D11 already records with a reason. That satisfies the card's Expected second arm with no ADR edit. No code change: the seat can close the card with this reading.",
"tests": "Measurement (throwaway file, deleted after the run, never committed; copy kept at scratchpad issue-37061/zz-measure-37061.test.ts): os-verify-lock VERDICT command-exit 0, `vitest run src/zz-measure-37061.test.ts src/environment-overlay-five-types.test.ts` in @objectstack/objectql, Test Files 2 passed (2), Tests 38 passed (38). Readings: `MEASURE view owner=com.acme.overlaycatalog draft={code:NOT_OVERRIDABLE,status:403, ... save it into 'com.acme.overlaycatalog.custom' (?package=com.acme.overlaycatalog.custom), declaring overrides ...} publish={code:NOT_OVERRIDABLE,status:403,...} rows=[] servedLabel=Packaged`; the same for report. Second run, pair already holding a declared override, body with and without the served declaration: 4/4 refused 403 NOT_OVERRIDABLE at draft and publish, rows=[{package_id:com.acme.overlaycatalog.custom, label:Customized, overrides:{package:com.acme.overlaycatalog, basedOn:1.0.0}}] unchanged (Test Files 1 passed, Tests 6 passed, VERDICT command-exit 0). Existing UI pins on the same tree, from the ui root: ReportView.shippedReportSave-36716, ObjectView.sharedViewSave-35955 and ObjectView.readOnlyPackageViewSaves-35974. Test Files 3 passed (3), Tests 30 passed (30), VERDICT command-exit 0. No ablation: no behaviour changed.",
"gates": "No diff, so no derived gate families and no CI check-runs. Local runs were measurement only: build of the @objectstack/objectql dependency closure (VERDICT command-exit 0), then the @objectstack/client closure (VERDICT command-exit 0). NOT MEASURED: dispatch-gates --commands / --ran, reason: empty change set.",
"dogfood_battery": "n/a: no PR, no `!` in a title, no (narrowing) arm",
"files_changed": [],
"line_budget": "n/a: no diff",
"mcp_calls": "0",
"api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/37061/comments (this os-dev-report, through post-stamped.mjs)",
"deviations": [
"Push gate: PR #37905 was not merged (state open) when read. Nothing was pushed, and nothing needed to be: no code change.",
"The dispatch's named mechanism partly predates the card's main: the report Edit save and the New-report save already name the package or pair on 73d5e347. Only the existing-view saves name no package, and the server refuses them as D11 closes the door."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none. Noted, not filed: an admin cannot customize an installed package's existing view settings from the running app (panel read-only, Save to this view not offered). That is ruled behaviour (ruling record 7058654416) with rename, pin and set-default going to the pair through updateView. Widening it to a full settings save into .custom would be a product decision, not a defect."
]
}
Closed 2026-11-27T11:50Z as not planned. The premise is disproved on a real kernel (os-dev-report 7217495966, zone o3-build).
Report saves already land in .custom. Edit goes through saveInPlace with an override (报表编辑器保存应用包里自带的报表时返回 403,没有写到 .custom 覆盖包 #36716 is pinned). New goes to the app package or the pair, and is package-less only as ruling C's reported fallback.
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: first touch 2026-11-24T18:36Z
Bug,priority:p2,pm:queue,domain:ui..custompackage · admins customizing installed apps (admin row) · read, with the mechanism named (saveAndPublishRuntimeMetadata, line 568) · size S..customafter all, close with that reading.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg
Claim: PM loop round 1
Session:
session_01L9qibzpqH1nQTsbGckLspgAccount:
os-teslaBranch:
claude/project-thread-kc69miWorktree:
objectstack-issue-37061Domain:
domain:uiSeat:
repo:objectstack#3File surface:
ui/packages/app-shell/src/views/runtime-metadata-persistence.ts,ui/packages/app-shell/src/views/ReportNewPage.tsxand the report page's Edit save (ReportView/ReportBuilderHostsave path),ui/packages/app-shell/src/views/objectViewViewCrud.tsxandobjectViewViewSharing.ts(existing-view settings save), pins in the existing shared harness for those modules if one exists (AGENTS.md, ruling record 6583487846) else one new file named for #37061, one@object-ui/app-shellpatch changeset; ⛔ nodocs/adr/**(stop on breach; explain in the report)Container & model:
M,mode:subagent,model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate",effort: highClause-②: no
Metadata-protocol: none
Responsibility:
platform code in objectstack (ui/packages/app-shell: ReportNewPage.tsx:156 and objectViewViewCrud.tsx:220 call saveAndPublishRuntimeMetadata naming no package, while the in-place editor routes through saveInPlace / ensureInPlaceSaveTarget to the .custom pair, objectstack#36372) | ADR-0146 D2/D3 and the #35624 ruling C route (app package, else <base>.custom) cover view CREATE (resolveRuntimeCreatePackage) and in-place dashboard edits, not these two saves | an admin customizing an installed app's report or existing view from the running app; read from source on origin/main 73d5e347, not yet reproduced (the card's first step)Thread-read: 7140892860
Premise: holds (read from source; the dev reproduces first and, if the row lands in
.customafter all, stops and reports so the card closes with that reading)Serial constraints cleared:
no open PR touches these files (file scan of all open PRs at 11:35Z); this zone's previous PR #37905 (#36747, same branch) is in the merge queue since 11:33Z — the dev pushes only after it merges; overlap-check.mjs re-runs before the first pushArea:
o3-builddomain:ui— the fix lands inui/packages/app-shell/src/views/**.Blocked-by:; docs(adr): dated notes bring 15 ADR passages in step with main (week of 2026-11-21) #37045 (the ADR note that recorded the gap) merged; ADR revisions, week of 2026-11-21: rolling checklist of ADR text out of step with main (one governed PR) #36086 closed.check-prior-rulings.mjs --card 37061→ 6ruling, 1maintainer, 2⛔. In force for this card: Console: right after Add new view, the draft preview bar may read "no unpublished changes" while the new view's package-less draft is pending (measure first) #35624 ruling C 「C 存进应用定制包」 (runtime-metadata-persistence.ts:189: app package when writable, else<base>.custom, package-less only as the reported fallback); ruling record 7058616478 (a confirmed save is staged and published in the same act, never over a pending draft); epic 专题:Studio 的保存方式和用词(人工修改保存即生效,草稿加整包发布只留给 AI;设置页说业务话;页签和顶部导航重排) #36510 maintainer ruling (report Save publishes in the same press). The two ⛔ lines (objectViewViewCrud.tsx:110 no overlay-patch caller; runtime-metadata-persistence.ts:665 the draft body ownership) stay. ADR-0146 D2 is the governing text.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg
os-dev-report
{ "issue": 37061, "status": "done", "branch": "claude/issue-37061-save-package (local only; nothing pushed, no remote ref touched)", "pr": null, "head_sha": null, "session": "session_01L9qibzpqH1nQTsbGckLspg", "premise_still_valid": false, "summary": "Measured first, as the triage comment orders, on origin/main 73d5e347: no running-app save of an installed (read-only) package's view or report writes the package-unbound row. (1) Report: the Edit save (ReportView.saveSchema) already routes through resolveInPlaceEditTarget, ensureInPlaceSaveTarget, inPlaceSaveBody and saveInPlace into the paired .custom with the override declaration (landed for objectstack#36716, pinned by ReportView.shippedReportSave-36716.test.tsx); the New-report save (ReportNewPage.tsx:153-156) creates into the app package when writable, else the pair through the ensure door, and falls back to package-less only when neither can be had, which is ruling C's reported fallback. (2) Existing view: the server's ADR-0146 D11 close refuses the package-less write. A real-kernel run (real ObjectQL + SchemaRegistry + ObjectStackProtocolImplementation + in-memory driver, the environment-overlay-five-types harness) replaying the console's exact calls, a draft save naming no package pinned If-None-Match * and then the per-item publish naming no package, answered 403 NOT_OVERRIDABLE for both view and report, naming the pair and the os migrate packageless-overlays ceremony. It stored zero rows, and the read kept serving the package's item. It answered the same with the pair already holding a declared override: the pair row stayed untouched and nothing was written outside it. The console also does not offer these doors on such a view: Save to this view is gated on the package's save read (ObjectView.tsx canSaveToSharedView), and the settings panel opens read-only for a read-only package's view (ruling record 7058654416, objectstack#35974). So the card's mechanism claim, that the server addresses the package-unbound row, is disproved. The two saves either land in .custom (report) or are refused naming .custom (view). The rows D11 leaves open (multi_shipped, no_pair, foreign_declaration, shadowed by an undeclared row, failing move) are exceptions ADR-0146 D11 already records with a reason. That satisfies the card's Expected second arm with no ADR edit. No code change: the seat can close the card with this reading.", "tests": "Measurement (throwaway file, deleted after the run, never committed; copy kept at scratchpad issue-37061/zz-measure-37061.test.ts): os-verify-lock VERDICT command-exit 0, `vitest run src/zz-measure-37061.test.ts src/environment-overlay-five-types.test.ts` in @objectstack/objectql, Test Files 2 passed (2), Tests 38 passed (38). Readings: `MEASURE view owner=com.acme.overlaycatalog draft={code:NOT_OVERRIDABLE,status:403, ... save it into 'com.acme.overlaycatalog.custom' (?package=com.acme.overlaycatalog.custom), declaring overrides ...} publish={code:NOT_OVERRIDABLE,status:403,...} rows=[] servedLabel=Packaged`; the same for report. Second run, pair already holding a declared override, body with and without the served declaration: 4/4 refused 403 NOT_OVERRIDABLE at draft and publish, rows=[{package_id:com.acme.overlaycatalog.custom, label:Customized, overrides:{package:com.acme.overlaycatalog, basedOn:1.0.0}}] unchanged (Test Files 1 passed, Tests 6 passed, VERDICT command-exit 0). Existing UI pins on the same tree, from the ui root: ReportView.shippedReportSave-36716, ObjectView.sharedViewSave-35955 and ObjectView.readOnlyPackageViewSaves-35974. Test Files 3 passed (3), Tests 30 passed (30), VERDICT command-exit 0. No ablation: no behaviour changed.", "gates": "No diff, so no derived gate families and no CI check-runs. Local runs were measurement only: build of the @objectstack/objectql dependency closure (VERDICT command-exit 0), then the @objectstack/client closure (VERDICT command-exit 0). NOT MEASURED: dispatch-gates --commands / --ran, reason: empty change set.", "dogfood_battery": "n/a: no PR, no `!` in a title, no (narrowing) arm", "files_changed": [], "line_budget": "n/a: no diff", "mcp_calls": "0", "api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/37061/comments (this os-dev-report, through post-stamped.mjs)", "deviations": [ "Push gate: PR #37905 was not merged (state open) when read. Nothing was pushed, and nothing needed to be: no code change.", "The dispatch's named mechanism partly predates the card's main: the report Edit save and the New-report save already name the package or pair on 73d5e347. Only the existing-view saves name no package, and the server refuses them as D11 closes the door." ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none. Noted, not filed: an admin cannot customize an installed package's existing view settings from the running app (panel read-only, Save to this view not offered). That is ruled behaviour (ruling record 7058654416) with rename, pin and set-default going to the pair through updateView. Widening it to a full settings save into .custom would be a product decision, not a defect." ] }objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Closed 2026-11-27T11:50Z as not planned. The premise is disproved on a real kernel (os-dev-report 7217495966, zone o3-build).
.custom. Edit goes through saveInPlace with an override (报表编辑器保存应用包里自带的报表时返回 403,没有写到 .custom 覆盖包 #36716 is pinned). New goes to the app package or the pair, and is package-less only as ruling C's reported fallback.403 NOT_OVERRIDABLEwith the pair named. Zero rows are written, also when the pair already holds a declared override. The console does not offer that door on a read-only package's view (ruling record 7058654416, Read-only package views still offer view-settings save and the Manage Views pin / set default / delete actions, which the server refuses #35974).