Skip to content

Nav groups: a contributed group's renamedFrom can claim the same old id as an app group's, and nothing refuses it #39108

Description

@objectstack-fleet

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

Filing gate: ② nit N2 from the contract-tier L2 on #39092 (#39053 PR 1, record 7339624012), filed by the carrier seat as a follow-up. Grading: area:ux · domain:spec · Bug · p2 (epic #39050, which takes every card) · reach: a package that contributes a navigation group declaring renamedFrom: ['x'] into an app whose own group also declares 'x' gets an arbitrary resolution for contributions aimed at x, with no warning. · evidence: the L2 record. Start after #39092 merges.
Dedupe: none open.

What happens

Done when

  • The fold, or checkNavContributionGroups, refuses or warns, by name, when a contributed group's renamedFrom claims an old id that the target app's groups already claim, or that is a live group id there. The warning names both packages and the old id.
  • Pinned with an ablation. Clause-② no, unless a new warning code is added to a published vocabulary.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:spec
    on Dec 2, 2026
  2. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Claim: PM loop round 2 (epic:#39050 pick, hand-over 7350199169; the maintainer's 「Setup 导航专题 现在就可以派发」 and 「Setup 专题 不限制 p1」)
    Session: session_01QSeKYnrQ7UMtHofKQVjcH2
    Account: os-justin
    Branch: claude/issue-39108-contributed-group-renamed-from-clash
    Worktree: objectstack-issue-39108
    Domain: domain:spec (card label; every file of the surface is under packages/objectql/src/)
    Seat: repo:objectstack@os-justin
    File surface:

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 2, 2026
  4. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Dispatched 2026-12-02T16:58Z · os-dev subagent of session session_01QSeKYnrQ7UMtHofKQVjcH2 (mode:subagent, model: opus, effort: high), branch claude/issue-39108-contributed-group-renamed-from-clash, on claim 7352684516.

  5. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
    os-dev-report

    {
      "issue": 39108,
      "status": "done",
      "branch": "claude/issue-39108-contributed-group-renamed-from-clash",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39166",
      "session": "session_01QSeKYnrQ7UMtHofKQVjcH2",
      "served_tier": "opus (served as the Opus model of this session; matches the dispatch's default tier), effort high, container M, mode:subagent",
      "premise_still_valid": true,
      "summary": "Added NavGroupClaimLedger to packages/objectql/src/nav-contribution-diagnostics.ts and wired it into the contribution fold (applyNavContributions in registry-apps.ts). The fold seeds it from the app's own navigation, then admits each folded contribution and warns once per registry at warn when a contributed group's renamedFrom lists an old id that another group already claims (an app group, or a group an earlier contribution brought, so two contributed groups from different packages are covered at no extra cost) or that is a live group id of the app. A live id that arrives later from another contribution is reported against the claimant, so fold order does not change the verdict. The message names the contributing package, its group, the old id and the other side (the app's group, or the other package and its group). Warning, not refusal: this family's established pattern is option B (the missing-group relocation and the retired-id notice both warn and never refuse), and the fold must stay order-independent. No new diagnostics code: the finding is a log line with no reader branching on a code, and a D6c code would need a classification row in packages/runtime/src/dispatcher-error-vocabulary.ts plus index.ts/core.ts exports, all outside the claimed surface. So Clause-2 is no and the published entry points are unchanged.",
      "tests": "head ebdbaafde6. New file packages/objectql/src/registry-nav-contribution-renamed-from-clash-39108.test.ts, 7 cases: app-group claim vs contributed claim; live id vs contributed claim; two contributed groups from different packages; a later contributed live id reported against the claimant; a nested contributed group; CONTROL with distinct old ids (no warning, and contributions land in their own claimant with only the existing rename notices); the ledger's structured findings. Targeted: vitest run of the 4 nav files gave 'Test Files 4 passed (4) / Tests 49 passed (49)'. Full: 'pnpm --filter @objectstack/objectql test' gave 'Test Files 647 passed (647) / Tests 14692 passed (14692)'. 'pnpm --filter @objectstack/objectql typecheck' exited 0 ('check:test-typecheck: OK'). Ablation via scripts/ablation-replace.mjs (an early return of no findings at the top of admit; src is imported directly, so no dist leg): 'mutation landed: anchor 1 -> 0, blob 277f70d3efd3 -> b4e2d3685780'. 'Tests 6 failed | 1 passed (7)' (the control stayed green). 'restored: blob == HEAD (277f70d3efd3) and git diff HEAD is empty'.",
      "gates": "Local, head ebdbaafde6: 'dispatch-gates --commands --repo objectstack-ai/objectstack' derived 68 commands; each was run with its exit code captured before any pipe. '--ran' reconciliation: '68 derived, 67 run, 1 NOT-MEASURED, 0 UNRUN' (exit 0). The NOT-MEASURED one is 'pnpm check:dual-build-cjs-loads', exit 3 PREREQUISITE NOT MET: it needs a whole-workspace pnpm build, and 83 packages have no dist; CI covers it. 'pnpm check:lean-entry-closure' exited 3 on the first pass and 0 after 'pnpm --filter @objectstack/objectql build'. Notable greens: check:dispatcher-error-vocabulary, check:error-code-provenance, check:registry-log-declared, check:durability-log-level, check:nul-bytes, check:doc-authoring, check:issue-citations, check:adr-0087-registration, check:changeset-no-major. PR check-runs on ebdbaafde6, read at 18:38Z: 25 success, 18 skipped, 11 in progress, 2 not green. SUCCESS: Lint & Repo Gates, TypeScript Type Check, Build Core, Governed Surface Queue Guard, Dogfood Regression Gate, Live E2E UI, Test UI, Type Check workspace / source gates / debt ledger / consumer gates, every Lint family, PR-body guards, Test Core (10/12). IN PROGRESS: Test Core 1-9, 11 and 12 of 12. NOT GREEN, both infrastructure and both before any test ran: (1) 'Plan Test Core shards' failed with '##[error]The action 'Fetch this commit's history and the base branch' has timed out after 8 minutes' (job 143665639567, run 46938099538); (2) 'Check Changeset' was cancelled with '##[error]The operation was canceled' after 10 minutes, its log showing no verdict (job 143664946313). A dev never re-runs (rerun-failed.mjs header), so both are the seat's to re-run once. Mergeable state is 'blocked' (draft / required checks), not dirty.",
      "line_budget": "4 files, +449 / -2. nav-contribution-diagnostics.ts 398 -> 623 lines (+225). registry-apps.ts 266 -> 301 (+37/-2). The new test file has 173 lines. The changeset has 14. No file is over 1,000 lines, and no skills/** file is touched.",
      "files_changed": [
        "packages/objectql/src/nav-contribution-diagnostics.ts",
        "packages/objectql/src/registry-apps.ts",
        "packages/objectql/src/registry-nav-contribution-renamed-from-clash-39108.test.ts",
        ".changeset/39108-contributed-group-renamed-from-clash.md"
      ],
      "declarations": "Clause-②: no · Metadata-protocol: none · Skills-docs: not owed (kind none, no narrowing arm) · changeset: @objectstack/objectql patch",
      "deviations": [
        "CI wait: per the dispatch, I waited for checks in the foreground for about 20 minutes after the PR opened. The two infra failures cannot be cleared by a dev (no re-run), so I am reporting with Test Core shards still in progress rather than holding the report.",
        "Two foreground poll loops ran past the 10-minute ceiling and were auto-moved to the background by the harness. Both were stopped with TaskStop at once, and no background job or monitor is left.",
        "The pr_create relay returned exit 6 (UNCONFIRMED; the relay lag was about 27 minutes). It was not re-run. I read the relay run (46937565152, success) and the target: PR #39166 is a draft with assignee os-justin, and its body reads back byte-identical to the one sent."
      ],
      "mcp_calls": "0",
      "api_writes": "2 relay writes: (1) fleet-write dispatch pr_create, i.e. POST /repos/objectstack-ai/objectstack/dispatches executing POST /repos/objectstack-ai/objectstack/pulls plus POST /issues/39166/assignees; (2) this report comment, via post-stamped.mjs, POST /issues/39108/comments. Not REST: 4 git pushes (the empty-branch probe and 3 commits).",
      "classifier_refusals": [],
      "open_questions": [
        {
          "question": "Should the contributed-group claim clash join the ADR-0112 D6c diagnostics family as its own code, so it also reaches the os build / os validate warnings list?",
          "options": [
            "A: keep it as it is: a registry warn line, a module-level structured finding, no code. Cost: none. It is not on the build door, so an author sees it only at runtime.",
            "B: a follow-up card adds code nav_contribution_group_claim_conflict: the runtime dispatcher-error-vocabulary row, index.ts/core.ts exports, and a CLI build-door check that folds contributions in order. Cost: about 0.5-1 day across objectql, runtime and cli. It makes Clause-2 yes (widening) on @objectstack/objectql exports and adds a new code to the D6c warnings vocabulary."
          ],
          "recommendation": "A for now. No in-tree package contributes a group with renamedFrom, so nothing reaches the build door today. B is worth doing only if third-party packages start contributing groups."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: none measured (no named real producer: no in-tree package contributes a group that another contribution then targets) · evidence: applyNavContributions pushes contributed items by reference, so a group that arrived by contribution is the registered object itself, and a contribution into that group is appended again on every getApp read. Two reads gave children ['nav_cpq','nav_cpq'] in this card's first test run, at head f72f909376, on fold code unchanged from main. · dedupe words: applyNavContributions by reference, contributed group duplicate children, structuredClone contribution items, nav fold mutation · carrier: none · noted in the PR Acceptance notes, not filed (no reach)",
        "class: none · not judged on purpose: an app group's renamedFrom claim shadowed by a contributed group whose own id is that old id (the duplicate-exact-id case the review of the previous round calls pre-existing) · carrier: none · noted in Acceptance notes",
        "class: none · the docblock of packages/spec/src/ui/app-nav-group-renamed-from.ts still argues only the per-group rules for contributed groups; the cross-group rules are now judged in the fold. Spec file outside surface · carrier: none · noted in Acceptance notes"
      ],
      "memory_note": "The user-memory note feedback_reply_language_chinese.md (reply to the user in Chinese) applies to chat only; GitHub artifacts stay English per AGENTS.md. I used nothing else from memory."
    }
  6. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Landed · PR #39166 · merged 360820b420 (2026-12-02T20:08Z) · read 2026-12-02T21:02Z

    Probe Reading
    sweep-closed-cards --pr 39166 Fixes #39108; this card closed 4 s after the merge, the only card closed

    Delivered: a contributed group's renamedFrom that claims an old id the app's own groups (or another contribution) already claim, or a live group id, is now announced once per registry with the package, the group, the old id and the other side (ACCEPT 7356516061). Placement is unchanged. No review follow-ups are owed: the L1 record left none.

    Status: pm:dispatched removed, assignee cleared.

  7. removed
    pm:dispatched
    on Dec 2, 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:uxbugdomain:specpriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions