Skip to content

objectql: narrow the phase-1 one-holder refusal from environment to namespace for webhook, connector and email_template (ADR-0150 child B, webhook family) #31699

Closed
2 of 3 issues completed

Description

@objectstack-fleet

epic:#31527#1 · os-steve · session_01ADHkmP7o3uDTti21wLTfPf

Filing gate: ④ coordination node: child B of the epic #31527 (parent and per-layer children), as ADR-0150 (docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md, merged in #31586 at 5d1382a)'s execution plan lists it. Filed by the epic seat after its take-over (6727547008; the previous holder's hand-over 6727376945 left this row unfiled). ⛔ Not a claim.
Ruling-ref: per-type table A (6723462584); epic A 「立专题」 (6723499113); division of labour A 「留核心,其余交车道」 (6723571682); Q1/Q2 (6724050556); Q3 (6724530715); D2 (6724570466); ADR-0150 accepted by merge (#31586).
Business reason: inherited from the parent #31527. Behavioural metadata is addressed by (package, name), so two installed packages can each ship an item of the same name and every reader answers the right one, or refuses with the candidates, instead of silently taking the first match.
Reader: the next domain:server seat picks it from the queue once every Blocked-by: below is closed; the epic seat reviews its PR against the red lines below (ruling 6723571682).
Dedupe (open AND closed): one-holder refusal narrow namespace (52; top hits #31670(open) #31669(open) #31681(open), none on point: they are this epic's own children N, P and K).
class: d · type: Feature
Grade: p1, inherited from the parent (self-graded under 「定级你可以自己决定」).
Blocked-by: #31677
Blocked-by: #31691
Blocked-by: #31693

维护者速读

收尾卡:webhook, connector and email_template 这几类的「全环境只能一个持有者」拒绝收窄为「同一命名空间内唯一」。只在这些类型的索引、入口和存储引用都带上软件包之后做。

What to build

Phase 1's one-holder refusal for webhook, connector and email_template narrows from one package holder per environment to one holder per namespace (D2, D9), only after this family's E, G and S children have landed. Two packages of different namespaces may then each ship the name; co-owners of one namespace still may not (N's rule).

Surface

  • Expected file surface: objectql bare-name-one-holder.ts.
  • Clause-②: no.
  • Narrowing: yes, for co-owners of one namespace (measured first-party: 0); a widening for everyone else, declared here.

Acceptance — the epic's three red lines (every child shares them)

  • Resolution never loosens. No first-registered fallback, no environment-wide guess for a caller with a package, no silent pick.
  • Ambiguity is reported, never guessed. Every refusal and every migration report names every candidate.
  • Independently releasable (red line 3). The PR proves it with ADR-0150's four readings: (a) the phase-1 one-holder tests stay green; (b) bare-name behaviour (URLs, MCP, SDK) is unchanged for every name with one holder, except this card's declared narrowing; (c) any migration is re-runnable and never guesses; (d) its Clause-②: declaration and, where it changes the protocol, its ADR-0087 migration entry.
  • The epic seat accepts the PR against these lines; a narrowing beyond the declared one goes to the maintainer (needs-user-decision) before landing.

Parent: #31527.

Sub-issues

Sub-issues

2 of 3 Issues completed
Loading 3 sub-issues

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: confirmed · domain:server · p1 · pm:blocked · 2026-11-08T22:54Z

    ⛔ Not a claim.


    Generated by Claude Code

  3. objectstack-fleet commented on Nov 10, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#31527#1 · os-steve · session_01ADHkmP7o3uDTti21wLTfPf

    Unblocked. G1 #31691 is closed: (a) #31959, (b) #31979, (c) #32001 and (d) #32049 (d834a36) are all merged. This card moves to pm:queue (p1).

    This card'"'"'s own carry-ins (webhook, connector, email_template):

    1. Connector dispatch (D9, from the feat(service-automation): a connector_action names its connector from the calling flow's package #31863 review). Dispatch goes to the resolved holder'"'"'s instance. Today it goes by bare name, which is correct only while phase 1 refuses a second holder.
    2. email_template. A bundle addition counts as a holder (E5 Q2, the R2 fix). Keep it counted when the scope narrows.
    3. Webhooks. The delivery and its audit name the holder (package, name), so two holders' same-named webhooks never share a row or a secret.

    Carry-ins every B card shares (the shape set by #31701, PR #31973 9046e02):

    • One switch. Add this card's type(s) to NAMESPACE_SCOPED_BARE_NAME_TYPES in packages/objectql/src/bare-name-one-holder.ts and judge them by bareNameHoldersMeet. Change the matrix rival to a same-namespace co-owner. These stay refused, with the same sentence as today: a co-owner, a package with no namespace, base/system/sys, and built-ins. Every B card edits this one set, so land them one after another and rebase each onto the last.
    • BUILT_IN_BARE_NAMES. Fill it for every name of the type that the platform itself requests, or show a census of 0.
    • Readers before narrowing. Every reader of the type resolves by ADR-0150 D3 (package, name), and the G1 qualified addresses reach each holder. A bare address with two holders answers 409 naming both, and never picks one. A composition that has no package-scoped resolver slice fails closed (6729233545).
    • Stored references. Before narrowing, run os migrate stored-references (S4) on the dogfood and on app-crm. A row that the report names as ambiguous stays refused at read, and the fix is the operator's bind.
    • Clause lines: Narrowing: no, Clause-②: yes (widening), Metadata-protocol: added.
    • Red-line review by the epic seat before landing.
  4. added
    pm:queue
    pm:dispatched
    and removed
    pm:blocked
    pm:queue
    on Nov 10, 2026
  5. objectstack-fleet commented on Nov 10, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#1 · os-steve · session_01ADHkmPF1skfu2kx89BEXZi

    Claim: PM loop round 1 · #31699 · 2026-11-10T05:50Z · enhancement (p1; ADR-0150 child B, webhook / connector / email_template family)
    Session: session_01ADHkmPF1skfu2kx89BEXZi
    Account: os-steve
    Branch: claude/project-thread-x11fa6 (the card thread's harness-pinned branch, base main 48f18b5; platform exception to claude/issue-N-slug)
    Worktree: objectstack-issue-31699
    Domain: domain:server
    Seat: domain:server#1
    File surface: packages/objectql/src/bare-name-one-holder.ts (NAMESPACE_SCOPED_BARE_NAME_TYPES, BUILT_IN_BARE_NAMES), the webhook / connector / email_template readers the card's carry-ins name (ADR-0150 D3 (package, name) resolution and the G1 qualified addresses), their tests and dogfood pins, a changeset (stop on breach; explain in the report)
    Container & model: L, mode:thread, model: default tier, effort: high
    Clause-②: yes (widening)
    Metadata-protocol: added
    Ruling-ref: 6723499113 (epic ruling on #31527); the epic carry-in 6760064196
    Responsibility: n/a — not a defect card
    Thread-read: 6760064196
    Premise: holds (read at 48f18b58: G1 #31691 closed, its four parts merged; this card released to pm:queue by the epic seat)
    Serial constraints: B cards share NAMESPACE_SCOPED_BARE_NAME_TYPES and land serially, #31696 > #31697 > #31699 > #31700 > #31985; a later card merges origin/main after the earlier lands. #31698 PR-2 edits the same set; its overlap is reported in step 0 before the first push.
    Order: standard order + epic-31527/b-release/31699.md (project files).

  6. objectstack-fleet commented on Nov 10, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#1 · os-steve · session_01ADHkmPF1skfu2kx89BEXZi

    Seat rulings on step 0 (project file server-seat1/31699-step0.md, read at main 48f18b5) · 2026-11-10T05:52Z

    Step 0 finds that "readers before narrowing" is not yet met for any of the three types. The /meta door was never wired for them, the email bundle is not filtered to the resolved holder, the webhook dispatcher and its activation are keyed by name, and the connector engine and connection rows are keyed by name. That is too large for one PR. Rulings:

    Stored references: before each PR narrows its type, run os migrate stored-references on the dogfood and on app-crm, and put the readings in the PR.

  7. 66 remaining items

  8. added
    needs-user-decision
    and removed
    pm:dispatched
    on Nov 14, 2026
  9. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#7 · os-tesla · session_01L9qibzuZJBQY4wUQFJbkfx

    Maintainer decision recorded · 2026-11-14T21:36Z: on the seat's decision card for anchor 6884489751, the maintainer chose 「A 按申报接受,CI 绿后落地」 (2026-11-14T21:35Z). The ten FROM → TO rows of PR #33431's changeset, including the three one-holder moves ((6), (7) and the unstamped-entry window), are accepted as declared. The seat lands #33431 once CI is green on its head. needs-user-decision → pm:dispatched.

  10. added
    pm:dispatched
    and removed
    needs-user-decision
    on Nov 14, 2026
  11. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#7 · os-tesla · session_01L9qibzuZJBQY4wUQFJbkfx

    Landed · 2026-11-15T02:52Z: PR #33431, the last PR of this card (the connector narrowing, maintainer ruling A 6884569185), merged as 322ded7d, which closes the card. ADR-0150 child B is complete: email_template (#32214), webhook (#32577) and connector (#33199, #33218, #33281, #33431) each hold one name per namespace. The follow-up is #33507. Removing pm:dispatched.

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

Metadata

Metadata

Assignees

Labels

area:devpathdomain:serverenhancementpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions