Skip to content

报表编辑器保存应用包里自带的报表时返回 403,没有写到 .custom 覆盖包 #36716

Description

@objectstack-fleet

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

② fleet finding (class a) · Source: found live by the card thread of #36645 while verifying PR #36705 (showcase, zh-CN, admin). Not caused by that PR: the control run without any filter change gives the same answer.

What happens. Open a report that ships in an app package (showcase 「按状态统计工时(图表)」) in the console report builder, change anything (for example the chart type), and Save. The metadata write door answers 403 and nothing is saved. Saving a NEW report succeeds.

Evidence: frame 6-preexisting-shipped-report-save-refused.png in project files issue-36645/.

Expected. ADR-0146 D11: an edit to a package-shipped item is written into the app's .custom overlay package (the save carries ?package=), so an admin can adjust a shipped report the same way other shipped metadata is customized. Or, if a shipped report is meant to be read-only, the builder says so before the admin edits instead of failing at Save.

Acceptance. A pin that saving a package-shipped report from the builder writes the .custom overlay (or the builder shows the read-only state up front); a browser check on the showcase report above.

Grading (proposed): area:build · Bug · an admin's edit to any shipped report is lost at Save with a bare refusal ⇒ p2. Evidence: measured (screenshot, control run) + read (ADR-0146 D11).

Dedupe: searched repo:objectstack-ai/objectstack is:issue is:open for "report builder save 403 package", "report save custom overlay package", "ReportView save shipped report 403": no open card on this path.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Nov 23, 2026
  2. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:build · domain:ui · priority:p1 · Bug · pm:queue; proposed p2 → p1.
    Rationale: editing any report that ships in an app package and pressing Save answers 403, so the admin's edit is lost. ADR-0146 D11 says such an edit belongs in the app's .custom overlay. Adjusting a shipped report is the everyday way an installed app gets customised, so this is a common function that errors and throws away the user's work: p1 under the table. Measured with a screenshot and a control run (not caused by PR #36705).

  3. added
    priority:p1
    and removed
    priority:p2
    on Nov 23, 2026
  4. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As6kDA9BVrMsBR9rmrJ

    Claim: PM loop round 1, 2026-11-24T00:47Z
    Session: session_011y7As6kDA9BVrMsBR9rmrJ
    Account: os-alice
    Branch: claude/issue-36716-report-save-custom-overlay
    Worktree: objectstack-issue-36716
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: o7-studio
    File surface: ui/packages/app-shell/src/views/{ReportView.tsx,ReportBuilderHost.tsx,ReportConfigPanel.tsx} (the report editor's save target), ui/packages/app-shell/src/views/runtime-metadata-persistence.ts only to reuse resolveDashboardEditTarget (rename or generalise only if needed), ui/packages/plugin-report/src/** only if the save is issued there, new test files named for this card, one changeset per moved package (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier: "no path-derived mandate"), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: ui/packages/app-shell report editor save path (objectstack) | dashboards and public forms already save a package-shipped item into .customthroughresolveDashboardEditTarget; the report editor does not | admins adjusting a report an installed app ships, today
    Thread-read: 7103017895
    Premise: holds as filed (measured by the #36645 card thread with a screenshot and a control run); read at origin/main 844218f: ReportView.tsx opens the editor at servedPackageId(reportData) (line 345), the shipped package itself, while DashboardInPageEditor.tsx resolves the save target to "the owning package when it is writable, else the app's customization package <base>.custom (ADR-0146)". The dev measures the save call before writing.
    Ruling-ref: ADR-0146 (D2, D3, D11) and the maintainer's 「定制都进 .custom」 (cited at designModeMenuCreate.ts:10, objectstack#35624 ruling C). The card's alternative "if a shipped report is meant to be read-only, the builder says so before the admin edits" conflicts with that ruling and is cut; the route is the .custom overlay.
    Pre-claim lane: domain:ui, routed to o7-studio by the seat; every path above is ui/packages/**.
    Pre-claim deps: no Blocked-by:; the card names #36645 / PR #36705 only as where it was found.
    Prior rulings read: check-prior-rulings.mjs --card 36716 at 844218f: thread 0 rulings; surface grep 2 hit lines in ReportView.tsx, read: :270 (Save writes and publishes in one press, the maintainer's ruling on epic #36510, kept) and :323 (the editor buffer is the layered read at the served package, never the served copy, kept); neither decides the write target, which ADR-0146 above governs.
    Fold-or-serial: not folded — #36726 (in flight, Studio Save pins) is a different defect and file set.
    Serial constraints cleared: scan 00:46Z: no open PR touches the report editor files. overlap-check before each push.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As6kDA9BVrMsBR9rmrJ

    Paused, 2026-11-24T10:18Z.

    The dev on this card is stopped by the maintainer's concurrency cap: seat 7 runs at most 3 dev subagents in total, counting every running dev, and o7-studio runs 0 until the seat resumes one. Claim 7118449407 stands; the card stays pm:dispatched to os-alice. Work so far is kept: branch claude/issue-36716-report-save-custom-overlay pushed at 77f59c40, worktree kept, no PR yet. Main merged in; the pin tests, browser check and PR are still to do. Resume continues from that head.

  7. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH

    Claim amendment: 2026-11-24T16:31Z, seat takeover from o7-studio.
    Session: session_011y7As5bdhV5T4N9vpjmZzH (the seat session; it now owns this card directly, since the o7-studio zone thread is closed)
    Account: os-alice
    Branch: claude/issue-36716-report-save-custom-overlay (unchanged; resumes from 77f59c4090 on origin)
    Container & model: the default judgment tier, opus, at effort high (p1, assumed size M). dispatch-gates --tier on the branch diff: "no path-derived mandate".
    Everything else in claim 7118449407 stands: file surface, Clause-②: no, Metadata-protocol: none, ruling reference (ADR-0146 D2/D3/D11, the .custom route).

  8. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH
    os-dev-report

    {
      "issue": 36716,
      "status": "done",
      "branch": "claude/issue-36716-report-save-custom-overlay",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37091",
      "session": "session_011y7As5bdhV5T4N9vpjmZzH (seat session; resumes the o7-studio run session_011y7As6kDA9BVrMsBR9rmrJ, whose pushed head 77f59c4090 this continues)",
      "premise_still_valid": true,
      "summary": "The report builder and report inspector panel now resolve the save target when the editor opens, using the in-page dashboard editor's resolver: the served package when writable, else the app's BASE.custom pair (ADR-0146 D2/D3/D11), with the ensure door asked at Save and the body declaring overrides { package, basedOn }. Where the save could not land (owner not listed, ensure door walled, no listed base version) the editor does not open and a toast gives the reason; an unbound report saves as before. The dashboard helper names in runtime-metadata-persistence.ts stay as delegating aliases of new item-neutral names. On resume: claim amendment posted (comment 7137816270), origin/main merged (merge commit 93c8631f6c8, not a rebase), changeset trimmed to consumer-visible text, PR #37091 opened as draft. The browser check on the showcase report was NOT MEASURED (see tests).",
      "tests": "head fad5ea01bf8. (1) vitest on ReportView.shippedReportSave-36716 + authoredEditBuffer-35008 + headingStaysServed-36373: Test Files 3 passed (3), Tests 12 passed (12), lock VERDICT command-exit 0. (2) pnpm --filter @object-ui/app-shell type-check: passed. (3) Narrowed app-shell run, declared: the 41 test files naming ReportView / runtime-metadata-persistence / DashboardInPageEditor / the dashboard target helpers / designModeMenuCreate / publicForms: Test Files 41 passed (41), Tests 345 passed (345), lock VERDICT command-exit 0. The full app-shell suite (2,426 files) was started and stopped after about 70 min holding the shared lock; CI Test UI (all shards) is success on this head. (4) Ablation, fix committed first: ablation-replace.mjs set the saveSchema target to { kind: 'unbound' } (the old save, naming no package). Anchor 1 to 0, blob 14ec5897d718 to 73b2daaae6fc. Predicted: shipped case and writable control red, the unbound and refusal cases green. Observed: 2 failed, 2 passed. Restore: blob == HEAD 14ec5897d718, git diff HEAD empty. No dist leg: the test imports ./ReportView from source. (5) Browser check on showcase showcase_hours_by_status_chart: NOT MEASURED. Reason: pnpm dev's check-dev-prereqs needs 16 more workspace packages built. That build never got the shared verify lock in 5 tries of 540 s each: the holders were a dogfood build (pid 26375, about 30 min) and a full turbo build (pid 31167, 30+ min). CI Live E2E UI and Build & E2E UI are success on this head, but they do not exercise this path.",
      "gates": "Local: the full dispatch-gates --commands derivation (38 families at fad5ea01bf8, vs merge base 8e4ac50d4). 37 exit 0. pnpm check:type-check-debt NOT MEASURED: the first run hit a 500 s timeout (exit 124), the second never got the verify lock (exit 3). dispatch-gates --ran over the exit-coded record: 38 derived, 37 run, 1 NOT-MEASURED (derived from the recorded exit 3), 0 UNRUN. eslint --no-inline-config over the five changed files: 0 errors. CI check-runs on fad5ea01bf8, all completed: Lint & Repo Gates success, TypeScript Type Check success (Type Check debt ledger success, which covers check:type-check-debt), Test Core success, Build Core skipped, Governed Surface Queue Guard success, Lint UI success, Type Check UI success, Test UI success, Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success, Check Changeset success, PR-body guards success, Check PR Size success.",
      "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 relay writes as objectstack-fleet[bot]: POST /repos/objectstack-ai/objectstack/issues/36716/comments (claim amendment 7137816270); pr_create POST /repos/objectstack-ai/objectstack/pulls + POST /issues/37091/assignees (os-alice); POST /repos/objectstack-ai/objectstack/issues/36716/comments (this os-dev-report). Plus 3 git pushes (not REST).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  9. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH
    os-dev-report

    {
      "issue": 36716,
      "status": "done",
      "branch": "claude/issue-36716-report-save-custom-overlay",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37091",
      "session": "session_011y7As5bdhV5T4N9vpjmZzH",
      "premise_still_valid": true,
      "summary": "Rework round on seat record 7143254237. Must-fix 1: the browser check ran on showcase_hours_by_status_chart at head bcc7ee84d20, on a fresh build and a fresh DB, and is posted as PR comment 7145843007. Save made ensure-customization 201, then PUT ?mode=draft&package=com.example.showcase.custom 200, then publish ?package=com.example.showcase.custom 200. After a reload the line chart is served with overrides, and the reopened builder shows Line checked. Should-fix: handleOpenBuilder now resolves the target first, as openDashboardForEdit does. When the pair is listed it probes the pair for a pending draft and refuses at open with a new Studio sentence; this was verified live in the browser. The buffer stays the layered read at the served package, because the served _packageId stays the base after publish while that read's effective layer carries the customization. I corrected the code comment that wrongly leaned on ADR-0150 D5. Nits: the refused target now has its own sentence (new Studio key engine.studio.customize.noPackage), with the reason as the toast description and no longer inside the loadFailed template. The changeset now names the unreadable-package-list refusal, the pair-draft refusal and the @object-ui/i18n patch.",
      "tests": "At bcc7ee84d20, under the verify lock: (cd ui; vitest run on every app-shell ReportView, DashboardInPageEditor, runtime-metadata-persistence and ReportNewPage file) gave Test Files 20 passed (20) and Tests 133 passed (133), including 2 new 36716 cases (pair pending-draft refused at open; listed pair with no draft opens and saves into the pair). One existing case was changed: the not-listed refusal now asserts its own sentence, the reason as description, no 'could not load' and no layered read. pnpm --filter @object-ui/app-shell type-check exit 0. pnpm --filter @object-ui/i18n type-check exit 0. Browser (Playwright plus Chromium against objectstack dev --ui on port 4716 with a fresh DB): the rows are in PR comment 7145843007. The earlier run at 80022cfa777 gave identical rows. No ablation this round: the tested save behaviour was already ablated at fad5ea01bf8, and the new open-time probe is pinned by a case that turns red without it (the builder would open) and was observed end to end in the browser.",
      "gates": "Local, at bcc7ee84d20: all 39 families from dispatch-gates --commands exited 0, check:type-check-debt and pnpm --dir ui exec vitest run scripts/ included (172 files passed, 2 skipped). dispatch-gates --ran with exit codes: 39 derived, 39 run, 0 NOT-MEASURED (derived zero). eslint --no-inline-config on the 5 changed source files: 0 errors, 57 warnings. CI check-runs at bcc7ee84d20 when this was read: 45 success, 15 skipped, 0 failure, 2 in_progress (PR-body guards; a re-run of Check Changeset, whose first run is success). Test UI 1-16/16 success, Type Check UI success, TypeScript Type Check success, Lint & Repo Gates success, Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success, Type Check debt ledger success.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 relay writes as objectstack-fleet[bot] via post-stamped: POST /repos/objectstack-ai/objectstack/issues/37091/comments (browser check 7145843007); PATCH /repos/objectstack-ai/objectstack/pulls/37091 body refresh (--ack-through=7145843007, signature line now first, Fixes #36716 second, as the tool requires); POST /repos/objectstack-ai/objectstack/issues/36716/comments (this os-dev-report). Plus 2 git pushes (80022cfa777, bcc7ee84d20), which are not REST.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  10. removed
    pm:dispatched
    on Nov 24, 2026
  11. os-justin commented on Nov 24, 2026

    @os-justin
    Collaborator

    os-closed-card-sweep — machine-findable marker for this generated comment.

    Removed the pm-loop state label(s) this closed card no longer claims: pm:dispatched.

    A state label claims work is in flight. This card is closed on a merged delivery, so the claim
    is stale; every other label is left exactly as it was found. Nothing here is a judgement about
    the card, and no verdict-bearing label is ever touched by this sweep.

    seat repo:objectstack#4 close-out sweep

    Generated by Claude Code


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:buildbugdomain:uipriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions