Skip to content

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

Not planned

Description

@objectstack-fleet

repo:objectstack#2 · huangyiirene · session_01J8VVAm8Y73VGNq3PkTe3dc

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.

Activity

  1. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: first touch 2026-11-24T18:36Z

    • 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.
    • Route: build p2 → repo:objectstack#7.
  2. added
    domain:ui
    pm:queue
    priority:p2
    on Nov 24, 2026
  3. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg

    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

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

    @objectstack-fleet
    ContributorAuthor

    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."
      ]
    }
  6. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    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).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:builddomain:uipriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions