Skip to content

Bare-name phase 3: defineStack and the save door refuse a bare package-authored name; ADR-0129 and ADR-0048 amended; migration of stored and external references (ruling C on #30798) #30806

Not planned

Description

@objectstack-fleet

epic:#3600#1 · hotlong · session_01Q4EjjPXwX1YfHyKJUh4agu

Blocked-by: #31527

Filing-gate category: ② execution of a maintainer ruling. Decision #30798 ruled C, maintainer verbatim (Claude Code session, 2026-11-06): 「同意 c」: every package-authored metadata name carries its namespace, phased. Routing, verbatim: 「能交给车队开发的你不要自己开发」.

Phase 3 of 3: the contract.

Blocked-by: #30803
Blocked-by: #30804

Ask

  1. Rule. Extend validateNamespacePrefix (packages/spec/src/stack.zod.ts, the shared rule in packages/spec/src/kernel/namespace-prefix.ts) and the save door (protocol-save-door-refusals.ts) to refuse a bare package-authored top-level name in a package that declares a namespace, with the rename in the message. Same exceptions as phase 2. Clause-②: yes (contract surface).
  2. ADRs. Amend ADR-0129 (the literal prefix covers every type) and ADR-0048 §3.4 (coexistence by bare name retires; the phase 1 refusal remains as the backstop).
  3. Migration, designed before code; the plan goes in the PR or a design comment first:
    • first-party packages (hotcrm, templates, examples, the showcase) migrate in the same release; the phase 2 baseline gives the size;
    • stored references in live environments: user permission-set assignments hold bare names, so renaming a set without migrating them removes access. List every stored by-name reference (assignments, activation switches, flow and action references in records, AI agent prompts naming tools) and migrate each one;
    • external references: inbound webhook ids, connector ids and api item names may be called from outside. List them and decide an alias or an exclusion for each; never break silently;
    • third-party packages: a deprecation window (warn, then refuse) or an ADR-0087 load-time conversion; the lane's design call, stated in the plan;
    • Studio: a name typed in Studio gets the package or pair namespace prefixed automatically (ADR-0146 pairs); decide what a package-less environment item uses;
    • length: a 20-character namespace plus _ plus the short name must fit the item-name pattern and the storage identifier limit; refuse with a clear message.
  4. Tests: one refusal per type family, the exceptions, the migration of a stored assignment, and a two-package install that now cannot collide.

Reader: the domain:engine lane seat (with domain:spec for the rule), from pm:queue once both blockers close.


Generated by Claude Code

Activity

  1. added
    priority:p1
    pm:blocked
    domain:engine
    area:devpath
    on Nov 6, 2026
  2. objectstack-fleet commented on Nov 6, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: audit · domain:engine → domain:server · p1 kept · 2026-11-06T04:56Z

    ⛔ Not a claim.


    Generated by Claude Code

  3. added
    domain:server
    and removed
    domain:engine
    on Nov 6, 2026
  4. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-project-manager · session_01FEkQ5o8PE7ZtVjcor51wBZ

    Seat note for phase 3 · 2026-11-08T05:09Z · ⛔ Not a claim.

    The contract review of #30803's closing PR (#31375, record 6717571232) measured two readings outside ruling 6688041914's nine types. Phase 3's design should know about both:

    • tool is served first-registered at GET /meta/tool/NAME when two packages ship one bare tool name. A third package installed after the boot answers 200 and is shadowed. That is the same defect class phase 1 closed for the nine types, but it is not on their list. Phase 3's namespaced names resolve it; until then it is open. If the maintainer wants it closed in phase 1's way first, that is a new card, by ruling.
    • The kernel metadata service, as read by MCP agent_prompt, sees no package-shipped agent, while GET /meta/agent/NAME serves one. The two readers of "an agent by name" disagree (ADR-0063 §2 direction). Name the one reader when phase 3 rewrites agent resolution.

    Generated by Claude Code

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

    @objectstack-fleet
    ContributorAuthor

    epic:#3600#1 · hotlong · session_01Q4EjjPXwX1YfHyKJUh4agu

    Both blockers closed: #30803 (phase 1, the registration refusal) and #30804 (phase 2, the lint and templates). pm:blocked → pm:queue for the domain:server lane. Ruling C on #30798 stands: the migration plan (stored references, external references, third-party window, Studio auto-prefix, length) comes before code.

  7. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-project-manager · session_01FEkQ5o8PE7ZtVjcor51wBZ

    Claim: PM loop round 1 · 2026-11-08T09:08Z
    Session: session_01FEkQ5psDxi37aZAzXB36TT (card thread, dev) · seat session_01FEkQ5o8PE7ZtVjcor51wBZ
    Account: os-project-manager
    Branch: claude/project-thread-mi92c5
    Worktree: objectstack-issue-30806
    Domain: domain:server
    Seat: domain:server#5
    File surface: design step only: one plan comment on #30806 and /mnt/project-files/pm-orders/server/30806-plan.md; no branch, no PR, no repo file changed (the later code slices are cut by the seat from the plan and claimed separately)
    Container & model: L, mode:thread, model: default tier, effort: thread default
    Clause-②: no — this step changes no code and no published surface; each later slice declares its own arm (the spec rule and save door are yes per the card)
    Metadata-protocol: none
    Responsibility: bare-name phase 3 migration plan (objectstack + hotcrm) | ruling C on #30798 requires the plan before code: first-party size, stored by-name references, external references, third-party window, Studio auto-prefix, length | every environment holding a bare package-authored name once phase 3 refuses it
    Thread-read: 6719265041
    Premise: holds — both blockers (#30803, #30804) closed, unblocked 6719265041
    Serial constraints cleared: cleared — design only, touches no file

    Scope: Part of #30806 (step 1 of the phase: the migration plan). Measure, do not read-as; open choices go to open_questions as needs_decision; nothing is decided for the maintainer. Order: /mnt/project-files/pm-orders/server/order-30806.md. Summons: the maintainer's 「server 再开两个座位」「并发都是5」 (this project, 2026-11-07); grading per 「定级你可以自己决定」 is triage's here (graded on the card).

  8. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 8, 2026
  9. 11 remaining items

  10. objectstack-fleet commented on Nov 13, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: regrade p1 → p2 under the adopted grading rules (#32997) · 2026-11-13T03:09Z

    ⛔ Not a claim; the card's claim and state are unchanged.


    Generated by Claude Code

  11. added
    priority:p2
    and removed
    priority:p1
    on Nov 13, 2026
  12. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#35205#1 · os-warren · session_01JQwxbYJqoPAoSpWTMpH1yq

    Blocked-by: written at line start; state unchanged (pm:blocked) · 2026-11-19

    The body's two blockers (#30803, #30804) are closed; the card now waits on epic #31527 (open), which replaced its phase 3 (release comment 6726314628). The line was only in that comment.

    The unlock scan reads only a line-start Blocked-by: (references/state-machine.md); prose or a line buried in an old comment is not enough.

    Blocked-by: #31527

    Order: Warren, 2026-11-19 00:26Z, objectstack priorities discussion thread: 「先立卡改机制,排查现有的卡改状态」. Mechanism card: #35259.


    Generated by Claude Code

  13. removed
    area:devpath
    on Nov 22, 2026
  14. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Unlock: pm:blocked → pm:queue. All three Blocked-by: cards are now closed: #30803, #30804 and #31527 (closed today as completed on the maintainer's word). Grade and area are unchanged (p2 · area:package). The phase-3 refusal can start from main. Any reader should first re-read ADR-0150's final state, because the epic's later amendments may have changed what this card has to refuse.

  15. added
    pm:queue
    and removed
    pm:blocked
    on Nov 26, 2026
  16. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Closed 2026-11-27T08:03Z as superseded (not planned).

    Ruling: #30806 · letter A · maintainer 「继续只警告,关卡」 2026-11-27T08:02Z

    The maintainer (os-tesla, seat repo:objectstack#3's thread) answered a decision card: 「能力名(capability)缺包前缀,继续只警告,还是改成拒绝?(#30806)」 — A 「继续只警告,关卡」 / B 「改成拒绝,缩成小卡」. He chose A.

    Why closed: this card's phase-3 ask (refuse bare names, S1; HotCRM renames, S5) was withdrawn by ruling 6721941146 (「转向包寻址」) and recorded in ADR-0150 (:446, "Withdrawn with this record: #30806 phase 3"); replacement epic #31527 closed completed 2026-11-26.

    Measured residue, kept on purpose (isolated contract-review-tier read at origin/main e69fa46, static): an object name without the package prefix is refused at defineStack (stack.zod.ts:2672, called at :7765) and at the save door (protocol-save.ts:1100-1106, 422 NAMESPACE_PREFIX); a doc name is refused by os validate / os build (collect-docs.ts:812-818); a capability name is only warned by os lint (lint.ts:266-285), and stays warn-only by this ruling. Ruling 6683456244 item 2 (move carriesPackageNamespace into spec, packages/cli/src/utils/project-namespace.ts:84) belonged to the withdrawn phase 3 and closes with it.

  17. removed
    pm:queue
    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:packagedomain:serverpriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions