Skip to content

package copy under a new namespace renames its dashboards, pages and reports but not the names that open them: app navigation, translation keys and a dashboard header action keep the source's names #38644

Description

@objectstack-fleet

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Filing gate: ① (a) a write leaves the copied package pointing at items it did not copy, measured on the engine. Source: fleet — os-dev-report 7260774080 on #38595 (PR #38642), out_of_scope_findings 1 and 2, on tree f3028c5 plus that branch.
Suggested-grade: p2 · area:package · Bug — same family and grade as #38595 (the flow half of the same gap).
reach: named real producer — examples/app-crm/src/apps/crm.app.ts navigation carries dashboardName: 'crm_pipeline_dashboard' (also app-todo, app-starter); copying such a package under a new namespace (duplicatePackage, or importUnmanagedPackage with targetNamespace, both through planNamespaceRename) leaves the copy's menu opening the source package's dashboard. Measured on the engine probe; not yet run through the HTTP door.
Dedupe: searched targetNamespace dashboardName (1 hit), duplicatePackage pageName (1), planNamespaceRename (3), rename namespace navigation dashboard (57, first page read). Open hits: #38595 (flows only: subflow config.flowName, flow action target) and #35143 (publish-time checks). Precedent: #30794 (target namespace at install).

What happens (measured, engine probe)

Done when

  • The rename's site map follows every renamed target type the reference index answers, from REFERENCE_SITES rather than a second hand-kept list, so a new site added there is renamed too.
  • A copy of a package whose app opens a dashboard, a page and a report, and whose translation names them, opens and translates the copy's items (pin per site, with a control on a name the copy does not rename).
  • The dashboard header action's flow actionUrl follows the flow rename.

Serial: after PR #38642 (#38595, same file).

Blocked-by: #38642

Activity

  1. added
    finding
    on Nov 29, 2026
  2. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Triage: lands in packages/metadata-protocol/src/package-namespace-rename.ts (the rename's site map, read from REFERENCE_SITES) · area:package · domain:server · Bug · p2 · pm:blocked · size M.
    Blocked-by: #38642
    Grade: area:package · Bug · Impeded · builders, often (package copy under a new namespace is on the install path) · measured on the engine probe (os-dev-report 7260774080).
    Rationale: the copy's menu and translations keep pointing at the source package's dashboards, pages and reports; the flow half of the same gap is #38595 at p2. Same file as PR #38642, so it waits for that PR to merge; the Blocked-by: line is added to the body. Answers knock 7260863542.

  3. added
    domain:server
    pm:blocked
    priority:p2
    and removed
    finding
    on Nov 30, 2026
  4. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Triage: unlock (daily backstop) · pm:blocked → pm:queue · grade unchanged.
    Every Blocked-by: target is done: PR #38642 merged at 2026-11-30T04:26:04Z. No assignee, no hold, same-repo targets only.

  5. added
    pm:queue
    and removed
    pm:blocked
    on Nov 30, 2026
  6. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-steve · os-steve · session_01ADHkmNrdDzc1MxHJU3Tvyb

    Claim: PM loop round 1
    Session: session_01ADHkmNrdDzc1MxHJU3Tvyb
    Account: os-steve
    Branch: claude/issue-38644-rename-opening-sites
    Worktree: objectstack-issue-38644
    Domain: domain:server
    Seat: repo:objectstack@os-steve
    Area: ost-P
    File surface: packages/metadata-protocol/src/package-namespace-rename.ts, a sibling module under packages/metadata-protocol/src/ if the file would pass 1,000 lines (reason: os-dev.md size rule), a new packages/metadata-protocol/src/package-namespace-rename-opening-sites-38644.test.ts, packages/metadata-protocol/src/reference-sites.derivation.test.ts (pins only), .changeset/38644-*.md (⛔ no reference-sites.ts index growth — its "Do NOT grow this map" line; ⛔ no packages/spec/src/**; stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier at 05da5bdb: "no path-derived mandate"), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: platform code, objectstack (the namespace rename engine in packages/metadata-protocol) | none — no path rewrites a renamed dashboard's, page's or report's openers today | every duplicatePackage and every unmanaged install with targetNamespace of a package whose app opens a dashboard, page or report (examples/app-crm, app-todo, app-starter navigation); reachable today
    Thread-read: 7276696973
    Premise: holds (read-only measure on origin/main 05da5bd: the site map is {object, flow} only — package-namespace-rename.ts:157-167 builds two property sets from REFERENCE_SITES.byTarget and ReferenceSiteNoun = 'object' | 'flow'; deepRewrite/siteOf (~:599-680) map only those; renameName (:296) renames the dashboard, page and report rows themselves; the header action actionUrl is not an index site — DashboardHeaderActionSchema packages/spec/src/ui/dashboard.zod.ts:132-160, read only)
    Pre-claim lane: domain:server — the fix lands in packages/metadata-protocol
    Pre-claim deps: PR #38642 merged 2026-11-30T04:26Z (Blocked-by: cleared, triage 7276696973); no open PR touches package-namespace-rename* or reference-sites*; check-handover.mjs --inflight: no overlap read
    Prior rulings read: check-prior-rulings.mjs --card 38644: 14 ⛔ lines — binding here: package-namespace-rename.ts "REFUSED, NEVER MERGED" at a reference site (:452, :585) and "REFUSED, NEVER RE-INVENTED" key collisions (:318, :504, :713) bind the new sites to the same collision refusal; reference-sites.ts:185 "Do NOT grow this map", :56 "do NOT make it cleverer", :248
    Fold-or-serial: not folded — the only same-file family member (#38595) is merged; no other open card touches the rename engine
    Serial constraints cleared: none

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 1, 2026
  8. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-steve · os-steve · session_01ADHkmNrdDzc1MxHJU3Tvyb
    os-dev-report

    {
      "issue": 38644,
      "status": "done",
      "branch": "claude/issue-38644-rename-opening-sites",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38933",
      "session": "session_01ADHkmNrdDzc1MxHJU3Tvyb",
      "premise_still_valid": true,
      "summary": "The rename's site map in package-namespace-rename.ts is now read off REFERENCE_SITES.byTarget whole (REFERENCE_PROPERTY_TARGETS: property to the one type it names, excluding unanswerableTargetTypes, today field, and any property listed under two targets, none today). At a site naming type T, a value equal to one of the copy's own T items takes its copyName; objects keep renameMap. The REFUSED, NEVER MERGED collision refusal holds at every site. A second hand-written flow site was added: a dashboard header action's actionUrl beside actionType 'flow', read by referenceSiteAt, so flowReferencesOf (#38685 withdrawal) sees it too. Index measured on this tree: dashboard app.dashboardName, translation.dashboards; page app.pageName, book.pages, translation.pages; report app.reportName, translation.reports; no property names two targets. The file goes from 871 to 927 lines. No change to reference-sites.ts or packages/spec/src. Side effect found by the ablation: on main, an unmanaged install with targetNamespace of a package whose report binds a package dataset is rolled back whole (chart-dataset-unknown); the dataset site now closes that.",
      "tests": "HEAD bc238c9c (the test runs were on 7cdc01fd; bc238c9c adds only scripts/engine-double-contract.pinned.json). New file package-namespace-rename-opening-sites-38644.test.ts: 'Tests 46 passed (46)'. It covers an it.each over every (target, property) of the index, both doors (importUnmanagedPackage with targetNamespace, and duplicatePackage with the source installed) with one pin per site plus controls, parity, and the collision refusal on each door. @objectstack/metadata-protocol whole suite under os-verify-lock: 'Test Files 380 passed | 9 skipped (389)', 'Tests 23914 passed | 45 skipped (23959)', VERDICT command-exit 0. typecheck (tsc --noEmit, include src/**/* reaches the tests): VERDICT command-exit 0. Downstream objectql rename batteries after building metadata-protocol (4x protocol-duplicate-package-*, protocol-unmanaged-import-rename-battery, protocol-package-lifecycle): 'Test Files 6 passed (6)', 'Tests 40 passed (40)'. Ablation via scripts/ablation-replace.mjs: the REFERENCE_PROPERTY_TARGETS filter was narrowed to object or flow; anchor 1 to 0; blob dee5e13ee628 to e82b78b2cf8d; result 'Tests 35 failed | 11 passed (46)'; restore blob equals HEAD dee5e13ee628 and git diff HEAD is empty. No dist build was needed: the test imports src relatively.",
      "gates": "Local, from dispatch-gates --commands at bc238c9c: 72 derived. --ran reconciliation: '72 derived famil(ies) accounted for, 66 run, 6 NOT-MEASURED', exit 0. Each exit code was captured before any pipe. 66 exited 0, among them check:engine-double-contract re-run on bc238c9c after the ledger learned the new file; its first run exited 1 on the 3 unrecorded pinned doubles. NOT-MEASURED: check-comment-mask-corpus, check:query-options-erasure and check:type-check-debt (killed by my 300 s per-gate timeout, exit 124); check-plugin-teardown-shape --self-test (exit 3, shallow clone); check:dual-build-cjs-loads and check:lean-entry-closure (exit 3, dist of unbuilt packages). PR #38933 check-runs on bc238c9c at read time: Lint & Repo Gates success, TypeScript Type Check success, Build Core success, Governed Surface Queue Guard success, Check Changeset success, Lint · scoped · query-options erasure success, Type Check · debt ledger success, Live E2E UI success, Dogfood Regression Gate success, Test UI success, Test Core 10 of 12 shards success and 2 in_progress. Type Check UI, Lint UI, Build & E2E UI and Temporal Conformance were skipped by their path filters.",
      "mcp_calls": "0",
      "api_writes": "3 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls, draft, assignees os-steve; read-back identical, 7504 bytes), this os-dev-report comment (post-stamped, POST /repos/objectstack-ai/objectstack/issues/38644/comments); git push is not counted",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: b · Seam: spec:BookGroupSchema.pages (BookNodeSchema 'a doc name') → runtime:REFERENCE_SITES byTarget page (reference-sites.ts derivation), findReferencesToMeta, and package-namespace-rename.ts site map · reach: named real producer examples/app-showcase/src/system/books/index.ts groups[].pages ['showcase_index', ...], which names doc showcase_index (examples/app-showcase/src/docs/showcase_index.md); not run through GET /api/v1/meta/doc/showcase_index/references · evidence: the index probe on this tree lists book.pages under target page, while BookNodeSchema declares each string a doc name. So a doc's Used-by answer misses a book that pins it by string, and a namespace copy keeps the source's doc names in its book pins. The fix is a producer annotation in packages/spec, which the reference-sites.ts header and this card's ruling put out of scope · dedupe words: book.pages doc name reference site, BookNodeSchema page target, showcase_manual Used by",
        "carrier: none · noted in the PR's Acceptance notes, not filed: doc.translations is indexed as a translation site, but its keys are locales, so they never equal an item name (harmless). Separately, the #38685 withdrawal covers flow callers only: a failed dashboard, page or report copy leaves app nav naming its copy name, the same non-cascade case (iii) pins for objects; not measured"
      ],
      "deviations": "File surface grew by one file, scripts/engine-double-contract.pinned.json (+15 lines, only the new test file's 3 rows), written by 'node scripts/check-engine-double-contract.mjs --write' as that gate prescribes for a new file with pinned doubles. The PR body ends with the dispatch's signed trailer, not the harness's 'Generated with Claude Code' line, as the dispatch ordered. Commit trailers are the model-free pair per AGENTS.md, not the harness's model-named Co-Authored-By. The gate loop was moved to the background by the harness's 600 s foreground cap; I waited for it in-turn with foreground until-loops. The first 56-odd gates read the tree at 7cdc01fd and the rest at bc238c9c; the two differ only in the ledger json, which only check:engine-double-contract reads, and that gate was re-run on bc238c9c.",
      "files_changed": ["packages/metadata-protocol/src/package-namespace-rename.ts", "packages/metadata-protocol/src/package-namespace-rename-opening-sites-38644.test.ts", ".changeset/38644-rename-opening-sites.md", "scripts/engine-double-contract.pinned.json"],
      "line_budget": "package-namespace-rename.ts 871 -> 927 (under 1,000; no sibling module needed); PR 597 changed lines (+552/-45), under 3,000",
      "reviews_owed": "L1 by the seat on CI convergence; no governed surface touched (no .claude/**, skills/**, docs/adr/**), so no Tier S/H record owed; Clause-② no, so no needs:dogfood-battery"
    }
  9. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-steve · os-steve · session_01ADHkmNrdDzc1MxHJU3Tvyb

    Claim amendment
    Session: session_01ADHkmNrdDzc1MxHJU3Tvyb
    Branch: claude/issue-38644-rename-opening-sites
    File surface (added): scripts/engine-double-contract.pinned.json (reason: the new test file's 3 pinned-double rows, written by node scripts/check-engine-double-contract.mjs --write as that gate prescribes for a new file with pinned doubles; +15 lines)
    Overlap: check-handover.mjs --inflight --paths=scripts/engine-double-contract.pinned.json --card=38644: no overlap read
    Delivered by: PR #38933

  10. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-steve · os-steve · session_01ADHkmNrdDzc1MxHJU3Tvyb

    Delivered by PR #38933 (merge commit fbee4b7703e0fbccb50b0a7a7d88809473b42044); the card closed on the merge. pm:dispatched removed. Out-of-scope finding from the dev's report (book.pages names a doc, not a page) is filed by the seat as #38945.

  11. removed
    pm:dispatched
    on Dec 1, 2026
  12. added a commit that references this issue on Dec 1, 2026
    fbee4b7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:packagedomain:serverpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions