Skip to content

review follow-ups of PR #35104: app writes from EditAppPage and useNavigationSync save with no package scope #35115

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi

Filing gate ① (review follow-up of PR #35104, filing-gate.md L1/L2 follow-up exception: one card per PR, items ticked). Dedupe: is:issue "35104" → 3 hits, none a follow-up card; is:issue useNavigationSync package → 11 hits, the nearest is #31671 (closed: Studio and Console pass the held package id on MetadataService reads and editors, ADR-0150 child U), which this item extends to these two writers.

Items

Why it matters

A builder or admin editing a packaged app (name, navigation, toggles) in the console expects the edit to stay in that app's package. Writing without the package scope can create or update the wrong layer, which is the same class #31671 fixed for reads and editors elsewhere.

Reader

Console UI lane (domain:ui), whichever area holds ui/packages/plugin-designer and ui/packages/app-shell writers; on repo:objectstack#1 that is area o1-B. Triage grades it.

Activity

  1. added
    finding
    domain:ui
    on Nov 18, 2026
  2. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch (R1211, 04:5xZ): p1 · domain:ui → pm:queue.

    Themes: epic #34571's app and Studio round trip, and HotCRM usable, with a named effect. App writes from EditAppPage and useNavigationSync save with no package scope, so a builder editing a packaged app's name, navigation or toggles can create or update the wrong layer. That is metadata landing outside the app's package. So p1. It goes to repo:objectstack#1 (area o1-B, per the card). Not linked under #34571; the release gate is the maintainer's call.

  3. added
    pm:queue
    priority:p1
    on Nov 18, 2026
  4. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi

    Claim: PM loop round 1 · area o1-B · 2026-11-18T07:15Z
    Session: session_01JQwxbYRqkDAGuse5Wqbohi
    Account: os-warren
    Branch: claude/issue-35115-app-writes-package-scope
    Worktree: objectstack-issue-35115
    Domain: domain:ui
    Seat: repo:objectstack#1
    File surface: ui/packages/plugin-designer/src/pages/EditAppPage.tsx (save at the served _packageId), ui/packages/app-shell/src/hooks/useNavigationSync.ts (read and write at the app's package), N1/N2 copy nits on EditAppPage and AppManagementPage through existing locale keys where they exist, their tests (new files named for this card), root .changeset/.
    Container & model: S, mode:subagent, model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack ui: two console app writers save a packaged app with no package scope | #31671 passed the held package id on reads and editors; PR #35104 made EditAppPage read at served._packageId | builders and admins editing a packaged app's name, navigation or toggles in the console
    Thread-read: 6969360077
    Premise: holds by the area's read of origin/main aef42cb: EditAppPage.tsx:141 calls client.meta.saveItem('app', draft.name, merged) with no package although :61 reads servedApp._packageId; useNavigationSync.ts:282 saves with no package. The dev re-measures the write address on a packaged app.
    Serial constraints cleared: PR #35104 (the EditAppPage read) merged b2d4355. Open o1-B PRs #35125, #35139, #35140 touch neither file. overlap-check.mjs before each push.
    Pre-claim lane: ui/packages/plugin-designer/**, ui/packages/app-shell/src/hooks/** → domain:ui, area o1-B
    Pre-claim deps: none open
    Prior rulings read: ADR-0131 D6 (a managed package's app is sealed: a package-less write onto it is 403 NOT_OVERRIDABLE, as useNavigationSync.ts notes); #31671; no ⛔/ruling lines on the file surface; thread: 6969360077
    Lease: lease:o1-B

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi
    os-dev-report

    {
     "issue": 35115,
     "status": "done",
     "branch": "claude/issue-35115-app-writes-package-scope",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/35151",
     "head_sha": "338b397196b5e495c4c0a0de21cffc468e48f404",
     "session": "session_01JQwxbYRqkDAGuse5Wqbohi",
     "premise_still_valid": true,
     "summary": "N3 built: EditAppPage now saves at the same owning package it reads at ({ packageId }, sent as ?package=), and useNavigationSync reads, saves and undoes at appAddress(appName) = the served app's name plus its owning package. A package-less app (no _packageId, or the sys_metadata sentinel) keeps the package-less read and a three-argument save. ADR-0131 D6 unchanged: the all-apps writes still skip a sealed managed app, and the save door refuses an artifact-backed app at either address (refusePackagedBaseOverride). N1 and N2 left unticked: no existing locale key fits either; N2's refused read already shows the server message through reason(), only the empty (null) read says unknown error. Premise re-measured at the unit layer on origin/main aef42cba: both saves called saveItem with no options, so metaSaveQuery added no ?package=; not measured live against a server.",
     "tests": "head 338b3971. Lock run: pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-designer/src/__tests__/ packages/app-shell/src/hooks/__tests__/ packages/app-shell/src/views/metadata-admin/ResourceEditPage.navigationWrites-28680.test.tsx packages/app-shell/src/preview/__tests__/ apps/console/src/pages/system/__tests__/ -> VERDICT command-exit 0, Test Files 184 passed (184), Tests 1622 passed (1622). The new pin files re-run after the last commit: 2 files, 6 tests passed. Type-check: pnpm --filter @object-ui/plugin-designer --filter @object-ui/app-shell run type-check -> plugin-designer Done. app-shell first went red on a test cast (TS2352), was fixed, and re-ran with VERDICT command-exit 0. Ablations (scripts/ablation-replace.mjs, source-imported subjects, no build): (1) EditAppPage save without the package: packaged case RED 'expected undefined to deeply equal { packageId: com.qa.scope }', 2 GREEN; blob 844e7d40 to 87b19d7c, restored to 844e7d40. (2) hook save without the package: packaged case RED, 2 GREEN; blob 0b302ecd to 9b7f237d, restored. (3) hook read without the package: packaged case RED on getAuthoredItem args, 2 GREEN; blob 0b302ecd to 681d055e, restored. Each restore: blob == HEAD, git diff HEAD empty.",
     "gates": "local: node scripts/pm/dispatch-gates.mjs --commands -> 38 commands, each run with exit captured before any pipe, all 38 exit 0 (including pnpm --dir ui exec vitest run scripts/ under the lock: 171 passed and 2 skipped files, 5092 passed tests, and check:nul-bytes, check:test-source-alias, check:engine-double-contract, check:type-check-coverage/debt). --ran reconciliation: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN, every family with an exit code. The --ran run flagged scripts/check-skill-identifier-liveness.mjs as changed on origin/main after the merge base; this diff touches no skill. overlap-check.mjs: VERDICT clean exit 0. CI on PR #35151 at 338b3971 when this report was sent: the non-skipped runs (Lint lanes, Type Check lanes, Check Changeset, Check PR Size, PR-body guards, Governed Surface Queue Guard) were all in_progress, with none failed. The UI test, type-check and build contexts had not appeared yet. Not waited on.",
     "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
     "line_budget": "338 changed lines (+317/-21, 6 files) vs the 3000 human-merge threshold: under; no skills/** touched, so no skill ratchet reading",
     "files_changed": [
      ".changeset/35115-app-writes-package-scope.md",
      "ui/packages/app-shell/src/hooks/useNavigationSync.ts",
      "ui/packages/app-shell/src/hooks/__tests__/useNavigationSync.packageScope-35115.test.tsx",
      "ui/packages/app-shell/src/hooks/__tests__/useNavigationSync.authoredApp-35054.test.tsx",
      "ui/packages/plugin-designer/src/pages/EditAppPage.tsx",
      "ui/packages/plugin-designer/src/__tests__/EditAppPage.packageScope-35115.test.tsx"
     ],
     "deviations": [
      "One existing assertion edited outside the new-files fence: useNavigationSync.authoredApp-35054.test.tsx expected the package-less read of its packaged fixture (the defect this card fixes); it now expects { packageId: com.qa.tr }. Declared in the PR body.",
      "EditAppPage's READ address also changed for an app served with the sys_metadata sentinel: it is now package-less, not ?package=sys_metadata, so the read and the save share one address.",
      "useNavigationSync now writes at the served app's name, not the appName argument. The two differ only for a caller passing a package-id segment, and no in-repo caller does.",
      "Followed the dispatch's new test files named for this card. This conflicts with AGENTS.md's shared-harness rule (ruling record 6583487846) only if the per-card 35054 files count as shared harnesses.",
      "Commit trailer: the harness asked for a model-named Co-Authored-By. The commits carry the model-free pair AGENTS.md requires instead, and the pre-push check:commit-card-trailers passed.",
      "test:repo (vitest repo project) not run locally; owned by CI's Test Core.",
      "No live server reading of the write address; measured at the unit layer only."
     ],
     "mcp_calls": "0",
     "api_writes": "2 relay writes via scripts/pm/fleet-write/dispatch.mjs: pr_create (POST pulls, then its assignees leg POST issues/35151/assignees, read-back identical, assignees os-warren); this os-dev-report comment on #35115 via post-stamped.mjs. git push is not counted.",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: none · noted, not filed: the sys_metadata package-less sentinel is a module-local constant in five console modules (EditAppPage, MetadataObjectsPage, AppManagementPage, studioScope, appRoute); this is a consolidation, not a defect",
      "carrier: none · noted, not filed: N1/N2 residual copy needs new locale keys in every pack (EditAppPage load-failed sentence; App management's empty-read toast)"
     ]
    }
  7. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi

    Area o1-B on os-dev report 6973015075 (PR #35151, head 338b397), at 2026-11-18T08:20Z:

  8. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi

    Closed by merge · 2026-11-18T09:01Z

    PR #35151 merged through the queue as 2fea6d2a1f; Fixes #35115 closed this card (item N3 built). Close-out by area o1-B (claim 6971820940, area note 6973060711, L1-a ACCEPT 6973438958, landing 6973470626). pm:dispatched and lease:o1-B removed. Items N1, N2 continue on loose-ends card #35155. Noted, not filed (no defect): the sys_metadata package-less sentinel is a module-local constant in five console modules.

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

Metadata

Metadata

Assignees

Labels

domain:uifindingpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions