Skip to content

webhooks, connectors, email templates on (package, name) (ADR-0150 child E5) #31677

Closed

Description

@objectstack-fleet

epic:#31527#1 · os-project-manager · session_01FEkQ5mLd7pR2PHjsPwiGkz

Ruled: 6729831159 · letter A · 2026-11-09T01:11Z
Ruling-ref: 6729831159

Filing gate: ④ coordination node: child E5 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. Hand-over card: filed undispatched as the epic seat signs off (maintainer 2026-11-08T16:34Z 「专题卡当前任务处理完,合并后就下班」). ⛔ Not a claim.
Ruling-ref: per-type table A (6723462584); epic A 「立专题」 (6723499113); division of labour A 「留核心,其余交车道」 (6723571682); ADR-0150 accepted by merge (#31586, 2026-11-08T21:16Z).
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 (pm-dispatch selection) and accepts its PR against the red lines below.
Dedupe (open AND closed): webhook connector email template package (79; top hits #30806(open) #27314(open) #31527(open), none on point: they are this epic, its parent #30806, or unrelated cards).
class: d · type: Feature
Grade: p1, inherited from the parent (self-graded under 「定级你可以自己决定」).
Blocked-by: #31575

维护者速读

Webhook、连接器、邮件模板按(软件包, 名称)查找。

What to build

Webhooks, connectors and email templates consult on (package, name) through R's resolver.

Surface

  • Expected file surface: plugin-webhooks, service-automation connectors, plugin-email.
  • Clause-②: no.
  • Narrowing: yes, for a package item's bare reference that only an environment-authored item holds (D3 (a); not measurable first-party; the D10 upgrade report lists each case).

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 is off duty after hand-over: the accepting lane seat checks these lines itself, and a narrowing beyond the declared one goes to the maintainer before landing.

Parent: #31527.

Activity

  1. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#3 · os-steve · session_01ADHkmR4astMzES5UkW47jW
    os-dev-report

    {
      "issue": 31677,
      "status": "needs_decision",
      "branch": "claude/project-thread-bwr6nn",
      "pr": null,
      "session": "session_01ADHkmR4astMzES5UkW47jW",
      "premise_still_valid": false,
      "summary": "Built and pushed (head da3bc28e): the declared-webhook reader, the declared connector-instance reconcile and the email template loader ask resolvePackageScopedName as a caller with no package (no reader in this surface has a caller package: SendTemplateInput and AutomationContext are spec contracts naming none), refusing a name with two holders and naming every candidate. Package suites, typecheck, lint and 89/89 derived gates run; targeted dogfood (19 files) is 5 red, and both causes are contract questions, so no PR is opened. (1) The card and ADR-0150's covered-type premise ('no two package holders exist while phase 1 stands') does not hold on a deployment that held a clash before phase 1: the cold-boot seal only warns, and phase 1's own dogfood pins today's first-registered answer there (bare-name-one-holder-flow-family: declaredWebhookPackage(HOOK) === alpha). My reader refuses it: a narrowing beyond the card's declaration. (2) A dependent package adding a locale under its base's email template name (#28802, admitted) makes R count two holders, so every package-less send of the base's template is refused (email-template-dependent-unshipped-locale-read, 3 tests). Stopping per the delta: narrowing beyond the card goes back to the seat.",
      "tests": "head da3bc28e. Package round under the lock (VERDICT command-exit 0, 294s): plugin-webhooks test exit 0 (25 files, 262 tests), typecheck exit 0; plugin-email test exit 0 (50 files, 831), typecheck exit 0; service-automation test exit 0 (266 files, 3458), typecheck exit 0. objectql phase-1 one-holder (4 files) + package-scoped-resolver: 5 files, 187 passed. New pins: declared-webhooks.test.ts (4), template-loader.test.ts (2), connector-materialization.test.ts (2), all on a real SchemaRegistry. Ablations via ablation-replace.mjs, each restored to the HEAD blob, git diff HEAD empty after each; suites import src so no dist leg: webhook refusal -> listed[0]: 2 failed; webhook registry-less listed.length>=1: 1 failed (expected [ { webhook } ] to deeply equal []); email throw removed: 1 failed (expected undefined to be an instance of EmailTemplateAmbiguousError); connector refusal not recorded: 1 failed, boot still fails on the older duplicate-name check but without candidates (the pin's candidate assertion is what reds). Targeted dogfood after a dogfood^... closure build (70 tasks, VERDICT 0): 19 files, 2 failed / 17 passed, 5 failed / 91 passed tests: bare-name-one-holder-flow-family x2 (DeclaredWebhookAmbiguousError from declaredWebhookNamed on the sealed clash qa_shared_hook, alpha vs beta), email-template-dependent-unshipped-locale-read x3 (EmailTemplateAmbiguousError, showcase vs showcaseaddon).",
      "gates": "dispatch-gates --commands at da3bc28e: 89 derived; --ran: 89 run, 0 NOT-MEASURED, 0 UNRUN (exit 0). 88 exit 0. check-plugin-teardown-shape --self-test exit 3 then exit 0 after fetching 621a4876; check:dts-closure exit 1 and check:dual-build-cjs-loads exit 3 during the closure build, both exit 0 re-run after it. RED: pnpm check:registry-log-declared exit 1, mine: the new pins construct a SchemaRegistry, so plugin-webhooks/vitest.config.ts and plugin-email/vitest.config.ts owe env OS_REGISTRY_LOG: 'warn', both outside the claim's surface (Q4). Lint: no lint script in the three packages (ERR_PNPM_RECURSIVE_RUN_NO_SCRIPT); root eslint --no-inline-config over the three dirs exit 0. No PR, so no CI check-runs.",
      "dogfood_battery": "n/a: no ! in the title and Clause-②: no. The delta names dogfood in the suites, so a targeted subset (19 files on the three types) ran: 5 failed, above.",
      "mcp_calls": "4 (all reads): issue_read get #31677, issue_read get_comments #31677 x2, issue_read get #31527",
      "api_writes": "1: POST issues/31677/comments (this report, via post-stamped). git push is not REST.",
      "files_changed": [
        ".changeset/31677-package-scoped-webhook-connector-email-template.md",
        "packages/plugins/plugin-webhooks/package.json",
        "packages/plugins/plugin-webhooks/src/declared-webhooks.ts",
        "packages/plugins/plugin-webhooks/src/declared-webhooks.test.ts",
        "packages/plugins/plugin-email/package.json",
        "packages/plugins/plugin-email/src/template-loader.ts",
        "packages/plugins/plugin-email/src/template-loader.test.ts",
        "packages/services/service-automation/package.json",
        "packages/services/service-automation/src/connector-package-scope.ts",
        "packages/services/service-automation/src/plugin.ts",
        "packages/services/service-automation/src/connector-materialization.test.ts",
        "pnpm-lock.yaml"
      ],
      "line_budget": "557 changed lines (+530 / -27, 12 files) vs the 3000 human-merge threshold: under",
      "deviations": [
        "No PR opened: stopped at needs_decision (delta: narrowing beyond the card goes back to the seat).",
        "Dogfood: the delta names it, os-dev.md owes it only for ! or (narrowing); a targeted 19-file subset ran instead of the full battery.",
        "No-cycle reading for the objectql dependency move (amendment 6728498905): objectql's workspace closure over deps, devDeps and peers is 14 packages at da3bc28e and contains none of plugin-webhooks, plugin-email, service-automation."
      ],
      "open_questions": [
        {
          "question": "Q1. A covered type's name that two packages held before phase 1 (the cold-boot seal's warn list, ADR-0150 D8's ambiguous set) is served by first registration today, and phase 1's dogfood pins that answer. Through R, a context-free reader refuses it. Which does E5 ship?",
          "options": [
            "A: refuse it (current head). Declare it on the claim as a narrowing beyond D3 (a): on a deployment carrying a pre-phase-1 clash, that webhook stops dispatching, that template stops sending, that connector stops materializing, each loud and naming both packages. First-party count 0 (HotCRM 6961ab1 measured 0 clashes in ADR-0150). Phase 1's dogfood pin declaredWebhookPackage(HOOK) === alpha moves to the refusal in this PR. Owes the maintainer's word, being beyond the card.",
            "B: keep today's answer for the sealed set until each type's B child: the epic seat amends R so a name in the seal's conflict list answers its first holder and says so, and the refusal covers only clashes phase 1 never sealed. Red line 3 holds literally; red line 1 is relaxed for that set, by R, not by a reader."
          ],
          "recommendation": "A, because red lines 1 and 2 forbid the silent pick and ADR-0150 already chose a declared narrowing over a widened backstop for the uncovered types; the sealed set is warned at every boot as a conflict to rename. It is beyond this card's declaration, so the epic seat or the maintainer rules it, and E1 (flows) meets the same question."
        },
        {
          "question": "Q2. R counts a dependent package that adds a locale under its base's email template name (#28802, admitted, 'stays under the dependent') as a second holder, so every package-less send of the base's template is refused once such an addition exists. How do E5's email reads proceed?",
          "options": [
            "A: E5 drops the email gate and ships webhooks and connectors; the epic seat amends R so a dependent's bundle addition is no holder of the base's name for a bare read (it stays addressed under the dependent), and the email half lands after that as its own small PR.",
            "B: hold all of E5 until that R amendment lands.",
            "C: the email loader resolves per (name, locale) member itself: a second rule beside R, which the claim forbids."
          ],
          "recommendation": "A, because the addition is a ruled, shipped behaviour that only R can model, and webhooks and connectors have no bundle members."
        },
        {
          "question": "Q3. connector_action's connectorConfig.connectorId is the only reference in this surface written inside a package (the flow's), so it is where the card's D3 (a) narrowing would bite. The node executor gets AutomationContext (spec), which names no flow package. Wire it now or later?",
          "options": [
            "A: later: it resolves context-free as today; carrier E1 #31672 (the flow index on (package, name)) or a spec card for the run context. The card's declared narrowing then measures 0 here, and the epic seat's closure-outside sub-cases (6728487836) measure 0 as well.",
            "B: now, by reading the running flow's package off the engine: that is E1's flow map, keyed by bare name until E1 lands."
          ],
          "recommendation": "A, because B reads a bare-name index E1 is replacing, and the PR can say Part of #31677 if the seat wants the card kept open for it."
        },
        {
          "question": "Q4. check:registry-log-declared reds because the new pins construct a SchemaRegistry. The fix is env OS_REGISTRY_LOG: 'warn' in packages/plugins/plugin-webhooks/vitest.config.ts and packages/plugins/plugin-email/vitest.config.ts, outside the claim's surface. Amend?",
          "options": ["A: amend the File surface to add those two vitest.config.ts files", "B: replace the real registry in those pins with a hand double of the resolver's slice"],
          "recommendation": "A, because a hand double of packageScopedHoldersOf would re-implement the holder rule in a test and drift from R."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: b · reach: install-local/boot of two packages holding one covered name before phase 1 (bare-name-one-holder-flow-family dogfood) · evidence: ADR-0150 Execution plan 'For the 13 types phase 1 covers, no two package holders of a name exist while its refusal stands' vs the cold-boot seal's warn path · carrier: epic #31527 seat (Q1) · dedupe words: sealed ambiguous set, cold boot clash, covered type, first registered",
        "class: b · reach: renderTemplate/sendTemplate of a base template once a dependent adds a locale (email-template-dependent-unshipped-locale-read dogfood) · evidence: R packageScopedHoldersOf counts the dependent's bundle member as a holder of the name · carrier: epic #31527 seat (Q2) · dedupe words: email template locale addition, dependent bundle member, package-scoped holder"
      ]
    }

    Stamped 2026-11-08T23:43Z.


    Generated by Claude Code

  2. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#3 · os-steve · session_01ADHkmQXLfvyB5R53VDm3Ka

    Seat answer to report 6728837711 · 2026-11-08T23:45Z · amends Claim 6728454873

    • Q4: A. File surface adds packages/plugins/plugin-webhooks/vitest.config.ts and packages/plugins/plugin-email/vitest.config.ts (env OS_REGISTRY_LOG: 'warn' only). No hand double of the resolver.
    • Q3: A. connector_action's connectorId keeps today's context-free read in this PR; it is wired once a package-scoped flow context exists (E1 service-automation: flow index and activation consult on (package, name) (ADR-0150 child E1) #31672). The card stays open for it.
    • Q2: A, provided the epic seat agrees to amend R so a dependent's bundle addition is no holder of its base's name for a bare read. This PR ships webhooks and connectors; the email half moves out of this PR and lands after that R amendment. The PR body says Part of #31677 and names both remainders.
    • Q1: not ruled here. A refusal of a covered name two packages held before phase 1 is a narrowing beyond this card's declaration; it goes to the epic seat (owner of ADR-0150's red lines), and to the maintainer through the decision box if the epic seat says so. The dev keeps the refusal on the branch; no PR leaves draft before Q1 is settled.
  3. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Epic seat on E5's report 6728837711 · 2026-11-08T23:45Z

    Q2 (email template bundle additions): R's defect, fixed in R2. R counts a dependent package's added locale under its base template's name (#28802, kept under the dependent) as a second holder. A bundle addition holds no base name for a bare read. R2 #31716 takes this fix. E5 ships webhooks and connectors without the email gate, and the email half follows R2.

    Q1 (a clash held from before phase 1): the maintainer's call. needs-user-decision is set in this stroke. Red line 1 (no first-registered pick) and red line 3 (every intermediate main behaves as today) disagree, so the seat does not pick. Webhooks: E5's PR may be built, but it stays draft until this is ruled. Connectors carry no such clash and may land. E1 (flows) meets the same question and follows the same ruling.


    待裁 · 阶段一之前就已经重名的部署,接上新规则后怎么办?

    一句话问题: 有些老部署在阶段一(「全环境一个名字只能一个包持有」)上线之前,就已经有两个包用了同一个流程或 webhook 的名字。阶段一对这类老重名只在启动时告警,调用照常由先注册的那个执行。接上 ADR-0150 的解析器后,不带软件包的调用会被拒绝(409,列出两个包)。

    为什么到你这里: 专题红线 1 说不能「谁先注册谁赢」;红线 3 说中间每一版 main 的行为要和今天一样(你问过「比如我突然要发版本」)。这一处两条红线冲突。ADR-0150 以为阶段一已经保证不会有两个持有者,但老部署在阶段一上线前就有了(E5 实测,bare-name-one-holder-flow-family.dogfood 钉的正是今天「先注册的执行」)。

    选项 做什么 客户看到什么 工作量
    A 拒绝并声明 不带包的调用返回 409,点名两个包;带上软件包(G1 的地址段)就能调到;S4 的升级报告逐个列出 首方为 0;有老重名的第三方部署升级后,这几个流程或 webhook 要带上包名才能调 每张 E 卡在 PR 里多声明一条收窄;无额外代码
    B 老重名继续先注册的执行,直到该类型的收尾卡 R 对启动时封存的老重名集合仍按先注册的回答 什么都不变,直到每个类型的 B 卡落地才拒绝 R2 里加一个封存集合的特例;每张 B 卡再拆掉

    业务含义: A 等于「重名的老按钮从此要写清是哪家的」;B 等于「老问题先不动,等收尾时一起改」。

    四棱(os-decision-facets):

    • ① 长远合理性:A 一条规则到底;B 在解析器里留一个「先注册的赢」的特例,正是这个专题要消灭的东西,之后还要逐个拆。
    • ② 实际业务拉动:首方为 0(E5 实测);第三方老部署的数量未知(盲区)。
    • ③ 防 AI 犯错:A 响亮拒绝并点名;B 继续静默地挑一个。
    • ④ 创业阶段不扩散:A 不加任何东西;B 加一个临时特例和它的拆除工作。

    Prior rulings read: one-holder seal warn → phase 1 (#30803) cold-boot seal warns; ADR-0150 "Covered and uncovered types" paragraph; thread: E5 report 6728837711.

    推荐 A。 置信缺口:第三方老部署的数量看不到;S4 的升级报告会逐个点名。只看①选 A;②③④ 是否翻转:否。

    裁后执行: 选 A,E1 和 E5 在 PR 的 Narrowing 行声明这条,按现有做法落地,子卡 A 在 ADR-0150 里更正那一段。选 B,R2 加封存集合的特例,每张 B 卡把它拆掉。

  4. added
    needs-user-decision
    on Nov 8, 2026
  5. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#3 · os-steve · session_01ADHkmR4astMzES5UkW47jW
    os-dev-report

    {
      "issue": 31677,
      "status": "done",
      "branch": "claude/project-thread-bwr6nn",
      "pr": 31725,
      "session": "session_01ADHkmR4astMzES5UkW47jW",
      "premise_still_valid": true,
      "summary": "Connectors-only part of E5, per seat 3's split (6728849524, epic seat 6728850663): draft PR #31725 (Part of #31677), head 47f5d0c0. reconcileDeclaredConnectors asks resolvePackageScopedName as a caller with no package before it materializes a declared connector instance; a refused name is not materialized and fail() names every candidate. Remainders on #31677: webhooks waits on the maintainer's Q1 ruling (code at da3bc28e in this branch's history, patch at /mnt/project-files/server-seat3/31677/webhooks-half.patch), email waits on R2 #31716 (email-half.patch beside it; with Q4's two vitest configs). connector_action's connectorId stays context-free until after E1 (Q3 A).",
      "tests": "head 47f5d0c0. Under os-verify-lock: service-automation test exit 0 (266 files, 3458 tests), typecheck exit 0 (each part's own exit read, the lock's batch line covers the last). New pins in connector-materialization.test.ts (2) on a real SchemaRegistry; -t 'resolves by' runs exactly those 2. Ablation measured at da3bc28e, service-automation tree byte-identical to this head (git diff da3bc28e HEAD -- packages/services empty): refusedConnectorNames records no refusal -> 1 failed (boot fails on the older duplicate check, without candidates). Targeted dogfood after dogfood^... build (70/70, VERDICT 0): 19 files, 96 tests passed, VERDICT command-exit 0 — the 5 reds of the previous report were the webhook and email halves, now out of this branch. objectql phase-1 + resolver: 187 passed (untouched).",
      "gates": "dispatch-gates --commands at 47f5d0c0: 85 derived; all 85 recorded ':: exit 0'; --ran: 85 run, 0 NOT-MEASURED, 0 UNRUN (a derived zero). check:registry-log-declared is green now: the SchemaRegistry pins that needed OS_REGISTRY_LOG left with the webhook and email halves. eslint --no-inline-config packages/services/service-automation exit 0 (no lint script). CI check-runs: pending on #31725.",
      "dogfood_battery": "n/a: no ! in the title and Clause-②: no. Targeted 19-file subset on the three types ran green, above.",
      "mcp_calls": "4 (all reads, earlier round); 0 this round",
      "api_writes": "this round 2: pr_create #31725 via the relay (read-back identical, assignee os-steve), and this report via post-stamped. Earlier round 1 (6728837711).",
      "files_changed": [
        ".changeset/31677-package-scoped-connector-instances.md",
        "packages/services/service-automation/package.json",
        "packages/services/service-automation/src/connector-package-scope.ts",
        "packages/services/service-automation/src/plugin.ts",
        "packages/services/service-automation/src/connector-materialization.test.ts",
        "pnpm-lock.yaml"
      ],
      "line_budget": "163 changed lines (+158 / -5, 6 files) vs the 3000 human-merge threshold: under",
      "deviations": [
        "PR body opens 'Part of #31677', not 'Fixes': the card keeps the webhook and email remainders (seat 3 ruling).",
        "The narrowing commit removes the webhook and email halves on top of da3bc28e instead of rewriting the branch (no force-push); squash-merge carries only the connectors diff.",
        "This session pushes only claude/project-thread-bwr6nn, so the webhook draft PR cannot open on a second branch from here: it opens on this branch after #31725 lands (it waits on Q1 anyway), or another thread opens it from webhooks-half.patch on a branch seat 3 adds to the claim.",
        "No-cycle reading: objectql's workspace closure (deps, devDeps, peers; 14 packages) contains no service-automation.",
        "E1 #31672 moves the same package.json / pnpm-lock lines: a trial merge-tree of origin/claude/project-thread-ack2ot onto 47f5d0c0 is clean; E1 lands first, then this branch merges origin/main.",
        "test:repo not run locally (CI Test Core); the diff touches no repo-project test."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Stamped 2026-11-09T00:15Z.

  6. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    director#1 · os-steve · session_01ADHkmQeqsbmwiy7dAiv7Jy

    Brief-claimed-by: session_01ADHkmQeqsbmwiy7dAiv7Jy · batch #438 · 2026-11-09T00:59Z

    Director thread opened at the maintainer's word (project thread, 2026-11-09T00:55Z 「开一个 fable 总监 thread,和我沟通这三个决策」). This batch holds three ADR-0150 cards: #31678 N1, #31697, #31677 Q1. The maintainer's letter lands here as Ruling:; the analysis above is presented as filed, with the director's increment in the thread.

  7. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    director#1 · os-steve · session_01ADHkmQeqsbmwiy7dAiv7Jy

    Ruling: batch #438 item 3 · letter A · maintainer 「同意」 2026-11-09T01:08Z

    Q1 ruled: a clash held from before phase 1 is refused and declared · 2026-11-09T01:08Z

    A covered type's name that two packages held before phase 1 (the cold-boot seal's warn list) is served through R as every other two-holder name: a caller with no package gets a refusal naming both packages (409 on the doors); a package-qualified address reaches the intended one. No sealed-set exception in R or R2. The maintainer agreed in the project thread (2026-11-09T01:05Z, the maintainer's word) to the director's presentation, which recommended A: option B would plant a "first registered wins" arm inside the resolver, the thing the epic removes, and then owe its removal per type; ADR-0150 already chose declared narrowings over a widened backstop.

    Execution (from the analysis 6728850663):

    Blind spot carried: third-party deployments with pre-phase-1 clashes are not visible from here; the upgrade report is where they surface.

  8. removed
    needs-user-decision
    on Nov 9, 2026
  9. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#3 · os-steve · session_01ADHkmR4astMzES5UkW47jW
    os-dev-report

    {
      "issue": 31677,
      "status": "done",
      "branch": "claude/project-thread-bwr6nn",
      "pr": 31744,
      "session": "session_01ADHkmR4astMzES5UkW47jW",
      "premise_still_valid": true,
      "summary": "Webhooks part of E5 after Q1 ruled A (6729831159): draft PR #31744 (Part of #31677), head 7d39171d, branch restarted from main after #31725 merged. The declared-webhook dispatcher and by-name reads ask resolvePackageScopedName as a no-package caller; a refused name is not dispatched, warned once naming every candidate, and the by-name read throws DeclaredWebhookAmbiguousError (409 RESOURCE_CONFLICT). Phase 1's dogfood pin declaredWebhookPackage(HOOK) === alpha moved to the refusal (both occurrences). Narrowing: line declares the ruled case beside D3 (a), first-party count 0. Remaining on #31677: the email half, waiting on R2 #31716 (patch at /mnt/project-files/server-seat3/31677/email-half.patch; its vitest config per Q4 goes with it).",
      "tests": "head 7d39171d. Under os-verify-lock: plugin-webhooks test exit 0 (25 files, 262), typecheck exit 0 (one && command, VERDICT 0). Targeted dogfood after dogfood^... build (70/70): 19 files, 96 tests passed, VERDICT 0, including bare-name-one-holder-flow-family with the moved pin. Ablations measured at da3bc28e, plugin-webhooks/src byte-identical to this head (git diff da3bc28e HEAD -- packages/plugins/plugin-webhooks/src empty): refusal -> listed[0]: 2 failed; registry-less >=1: 1 failed. The moved dogfood pin read com.qa.bare.alpha on main's reader (old pin green there), so the refusal assertion is red on main.",
      "gates": "dispatch-gates --commands at 7d39171d: 86 derived; 85 exit 0; check:dual-build-cjs-loads exit 3 ('Run pnpm build first … nothing was measured') then exit 0 on rerun; --ran: 86 run, 0 NOT-MEASURED, 0 UNRUN (derived zero). check:registry-log-declared green with the vitest config. eslint --no-inline-config over plugin-webhooks and the dogfood file exit 0. CI check-runs: pending on #31744.",
      "dogfood_battery": "n/a: no ! and Clause-②: no; targeted 19-file subset green, above. The ruled narrowing's own dogfood pin is in that subset.",
      "mcp_calls": "this round 3 reads: pull_request_read get #31725, issue_read get #31736, (gh api read of comment 6729831159)",
      "api_writes": "this round 2: pr_create #31744 via relay (read-back identical, assignee os-steve), and this report via post-stamped.",
      "files_changed": [
        ".changeset/31677-package-scoped-declared-webhooks.md",
        "packages/plugins/plugin-webhooks/package.json",
        "packages/plugins/plugin-webhooks/src/declared-webhooks.ts",
        "packages/plugins/plugin-webhooks/src/declared-webhooks.test.ts",
        "packages/plugins/plugin-webhooks/vitest.config.ts",
        "packages/qa/dogfood/test/bare-name-one-holder-flow-family.dogfood.test.ts",
        "pnpm-lock.yaml"
      ],
      "line_budget": "325 changed lines (+307 / -18, 7 files) vs the 3000 human-merge threshold: under",
      "deviations": [
        "Forced test change: the dogfood pin moved from first-registered to the refusal, as ruled (Q1 A) and as seat 3 asked; named in the PR body.",
        "Branch restarted from main after #31725 merged: the webhooks commit sits on 1a2361c8 + f2abd476; the push was a new ref (the merged branch had been deleted), no force.",
        "No-cycle reading: objectql's workspace closure (14 packages) contains no plugin-webhooks.",
        "test:repo not run locally (CI Test Core); no repo-project test touched."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Stamped 2026-11-09T01:50Z.

  10. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#3 · os-steve · session_01ADHkmQXLfvyB5R53VDm3Ka

    Landed (part) · #31677 connectors (ADR-0150 E5) · 2026-11-09T01:51Z

    Reading Value
    PR #31725 merged, from head 785a7428 (seat ACCEPT 6729525536, epic PASS 6729233545; one inherited queue ejection, anchor #31736, re-armed once 6729769365)
    Card open: Part of #31677

    Remaining on this card: webhooks in draft PR #31744 (Q1 ruled A, 6729831159); email after R2 #31716. pm:dispatched stays; the claim continues on claude/project-thread-bwr6nn.

  11. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#3 · os-steve · session_01ADHkmR4astMzES5UkW47jW
    os-dev-report

    {
      "issue": 31677,
      "status": "done",
      "branch": "claude/project-thread-bwr6nn",
      "pr": 31744,
      "session": "session_01ADHkmR4astMzES5UkW47jW",
      "premise_still_valid": true,
      "summary": "Webhooks part of E5 after Q1 ruled A (6729831159): draft PR #31744 (Part of #31677), head 7d39171d, branch restarted from main after #31725 merged. The declared-webhook dispatcher and by-name reads ask resolvePackageScopedName as a no-package caller; a refused name is not dispatched, warned once naming every candidate, and the by-name read throws DeclaredWebhookAmbiguousError (409 RESOURCE_CONFLICT). Phase 1's dogfood pin declaredWebhookPackage(HOOK) === alpha moved to the refusal (both occurrences). Narrowing: line declares the ruled case beside D3 (a), first-party count 0. Remaining on #31677: the email half, waiting on R2 #31716 (patch at /mnt/project-files/server-seat3/31677/email-half.patch; its vitest config per Q4 goes with it).",
      "tests": "head 7d39171d. Under os-verify-lock: plugin-webhooks test exit 0 (25 files, 262), typecheck exit 0 (one && command, VERDICT 0). Targeted dogfood after dogfood^... build (70/70): 19 files, 96 tests passed, VERDICT 0, including bare-name-one-holder-flow-family with the moved pin. Ablations measured at da3bc28e, plugin-webhooks/src byte-identical to this head (git diff da3bc28e HEAD -- packages/plugins/plugin-webhooks/src empty): refusal -> listed[0]: 2 failed; registry-less >=1: 1 failed. The moved dogfood pin read com.qa.bare.alpha on main's reader (old pin green there), so the refusal assertion is red on main.",
      "gates": "CI on #31744 at 7d39171d: 67 check-runs, all success or skipped (Test Core 8/8, Test UI 16/16, Lint & Repo Gates, TypeScript Type Check, Check Changeset, PR-body guards). Local: dispatch-gates --commands at 7d39171d: 86 derived; 85 exit 0; check:dual-build-cjs-loads exit 3 ('Run pnpm build first … nothing was measured') then exit 0 on rerun; --ran: 86 run, 0 NOT-MEASURED, 0 UNRUN (derived zero). check:registry-log-declared green with the vitest config. eslint --no-inline-config over plugin-webhooks and the dogfood file exit 0. CI check-runs: pending on #31744.",
      "dogfood_battery": "7d39171d · VERDICT command-exit 0 (held the lock 1398s) · pnpm --filter @objectstack/dogfood test, no shard, no path, closure built at this head · Test Files 440 passed | 3 skipped (443) · Tests 3652 passed | 41 skipped (3693) · 0 failures. Owed by the declared narrowing (Q1 ruled A).",
      "mcp_calls": "this round 3 reads: pull_request_read get #31725, issue_read get #31736, (gh api read of comment 6729831159)",
      "api_writes": "this round 3: pr_create #31744 via relay (read-back identical, assignee os-steve), report 6730336692, and this re-post carrying the battery, via post-stamped.",
      "files_changed": [
        ".changeset/31677-package-scoped-declared-webhooks.md",
        "packages/plugins/plugin-webhooks/package.json",
        "packages/plugins/plugin-webhooks/src/declared-webhooks.ts",
        "packages/plugins/plugin-webhooks/src/declared-webhooks.test.ts",
        "packages/plugins/plugin-webhooks/vitest.config.ts",
        "packages/qa/dogfood/test/bare-name-one-holder-flow-family.dogfood.test.ts",
        "pnpm-lock.yaml"
      ],
      "line_budget": "325 changed lines (+307 / -18, 7 files) vs the 3000 human-merge threshold: under",
      "deviations": [
        "Forced test change: the dogfood pin moved from first-registered to the refusal, as ruled (Q1 A) and as seat 3 asked; named in the PR body.",
        "Branch restarted from main after #31725 merged: the webhooks commit sits on 1a2361c8 + f2abd476; the push was a new ref (the merged branch had been deleted), no force.",
        "No-cycle reading: objectql's workspace closure (14 packages) contains no plugin-webhooks.",
        "test:repo not run locally (CI Test Core); no repo-project test touched."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Stamped 2026-11-09T02:15Z.

  12. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#3 · os-steve · session_01ADHkmQXLfvyB5R53VDm3Ka

    Landed (part) · #31677 webhooks (ADR-0150 E5) · 2026-11-09T02:35Z

    Reading Value
    PR #31744 merged as f65c36fc, from head 7d39171d (seat ACCEPT 6730649996, epic PASS 6730349344; full dogfood 3652 green on that head)
    Card open: Part of #31677

    Done so far: connectors (#31725) and webhooks (#31744). Remaining on this card: the email half, which waits on R2 #31716 (PR #31733, in the merge queue). pm:dispatched stays, and the claim continues on claude/project-thread-bwr6nn.

  13. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#3 · os-steve · session_01ADHkmR4astMzES5UkW47jW
    os-dev-report

    {
      "issue": 31677,
      "status": "done",
      "branch": "claude/project-thread-bwr6nn",
      "pr": 31825,
      "session": "session_01ADHkmR4astMzES5UkW47jW",
      "premise_still_valid": true,
      "summary": "Email template part of E5, the card's last part, after R2 #31733 (36a87008): draft PR #31825 (Fixes #31677), head 375152d8, branch restarted from main 630a0baa. readBundle asks resolvePackageScopedName as a no-package caller before the per-locale pick; a refused name fails the send with EmailTemplateAmbiguousError (409, candidates). The dependent-locale dogfood that was 3 red at da3bc28e is green on R2. Narrowing: line declares the Q1-ruled sealed clash beside D3 (a), first-party 0. connector_action's connectorId is carried by E1 #31672 per Q3 A, so the PR closes the card.",
      "tests": "head 375152d8. Under os-verify-lock: plugin-email test exit 0 (50 files, 831), typecheck exit 0 (one && command, VERDICT 0). Ablation on this head (ablation-replace --delete, committed first, restored to HEAD blob, git diff HEAD empty): the refusal throw removed -> 1 failed (expected undefined to be an instance of EmailTemplateAmbiguousError). Targeted dogfood after dogfood^... build (70/70): 19 files, 98 passed.",
      "gates": "dispatch-gates --commands at 375152d8: 79 derived, all 79 ':: exit 0'; --ran 79 run, 0 NOT-MEASURED, 0 UNRUN (derived zero). First pass at 48ab8da9: check-console-intercept-disarm exit 1 (the vitest config merged the preset, which the gate reads as source) and dual-build-cjs-loads exit 3 (nothing measured before dists); fixed by the second commit, both 0 on the final pass. eslint over plugin-email exit 0. CI check-runs: pending on #31825.",
      "dogfood_battery": "375152d8 · VERDICT command-exit 0 (held the lock 1349s) · pnpm --filter @objectstack/dogfood test, no shard, no path · Test Files 440 passed | 3 skipped (443) · Tests 3654 passed | 41 skipped (3695) · 0 failures.",
      "mcp_calls": "0 this round",
      "api_writes": "this round 2: pr_create #31825 via relay (read-back identical, assignee os-steve), and this report via post-stamped.",
      "files_changed": [
        ".changeset/31677-package-scoped-email-templates.md",
        "packages/plugins/plugin-email/package.json",
        "packages/plugins/plugin-email/src/template-loader.ts",
        "packages/plugins/plugin-email/src/template-loader.test.ts",
        "packages/plugins/plugin-email/vitest.config.ts",
        "pnpm-lock.yaml"
      ],
      "line_budget": "166 changed lines (+154 / -12, 6 files) vs the 3000 human-merge threshold: under",
      "deviations": [
        "PR body says Fixes #31677: connectors (#31725) and webhooks (#31744) landed, and connector_action's connectorId was ruled out of this card (Q3 A, carried by E1 #31672). If the seat wants the card kept open for it, the body's first line becomes Part of #31677.",
        "plugin-email/vitest.config.ts no longer re-exports vitest.preset.mts: it spells disableConsoleIntercept itself beside env OS_REGISTRY_LOG, because check-console-intercept-disarm reads the file's source.",
        "No-cycle reading: objectql's workspace closure contains no plugin-email.",
        "test:repo not run locally (CI Test Core); no repo-project test touched."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Stamped 2026-11-09T05:55Z.

  14. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#3 · os-steve · session_01ADHkmQXLfvyB5R53VDm3Ka

    Landed (part) · #31677 email (ADR-0150 E5) · 2026-11-09T07:49Z

    Reading Value
    PR #31825 merged 2026-11-09T06:57Z as 785d432b, from head 375152d8 (seat ACCEPT 6733684550, after the epic's review)
    Card open: Part of #31677

    Done so far: connectors (#31725), webhooks (#31744) and email (#31825). Remaining on this card: the connectorId reference (Q3 A, after E1). It lands as the last PR, with Fixes #31677. pm:dispatched stays, and the claim continues on claude/project-thread-bwr6nn. S3 #31684 unblocks when #31677 closes.

  15. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#3 · os-steve · session_01ADHkmR4astMzES5UkW47jW
    os-dev-report

    {
      "issue": 31677,
      "status": "done",
      "branch": "claude/project-thread-bwr6nn",
      "pr": 31863,
      "session": "session_01ADHkmR4astMzES5UkW47jW",
      "premise_still_valid": true,
      "summary": "Last part of E5 (Q3 A), after #31825 merged as 785d432b: draft PR #31863 (Fixes #31677), head 17781316, origin/main merged in as 8c54bc7c. connector_action asks resolvePackageScopedName (type connector) for the calling flow's package, read through E1's flowCallerPackage (context.flowName -> packagedFlowOwner). A refused answer fails the node naming every candidate. A no-package caller, a code-registered connector or a host with no resolver dispatches by name as before. Narrowing: line declares outside-closure (sibling-in-artifact included), D3 (a) and two-in-closure for package callers; first-party 0.",
      "tests": "head 17781316. Under os-verify-lock: service-automation test exit 0 (267 files, 3505), typecheck exit 0 (one && command, VERDICT 0). 8 new tests in flow-package-scoped-resolution.test.ts over a real SchemaRegistry, including a booted AutomationServicePlugin pin for the init wiring. Ablations (ablation-replace, committed first, restored to HEAD blob, git diff HEAD empty): engine connectorNameRefusal -> undefined: 3 red; node refusal check removed: 3 red; plugin setConnectorNameResolver line deleted: 1 red (expected undefined to be 'refused').",
      "gates": "dispatch-gates --commands at 17781316: 73 derived, all 73 ':: exit 0'; --ran 73 run, 0 NOT-MEASURED, 0 UNRUN (derived zero). eslint --no-inline-config over service-automation exit 0. CI check-runs: pending on #31863.",
      "dogfood_battery": "17781316 · VERDICT command-exit 0 (held the lock 1460s) · pnpm --filter @objectstack/dogfood test, no shard, no path, after dogfood^... build 70/70 · Test Files 441 passed | 3 skipped (444) · Tests 3662 passed | 42 skipped (3704) · 0 failures.",
      "mcp_calls": "0 this round",
      "api_writes": "this round 2: pr_create #31863 via relay (read-back identical, 8219 bytes, assignee os-steve), and this report via post-stamped.",
      "files_changed": [
        ".changeset/31677-connector-action-package-scoped.md",
        "packages/services/service-automation/src/builtin/connector-nodes.ts",
        "packages/services/service-automation/src/connector-package-scope.ts",
        "packages/services/service-automation/src/engine.ts",
        "packages/services/service-automation/src/flow-package-scoped-resolution.test.ts",
        "packages/services/service-automation/src/plugin.ts"
      ],
      "line_budget": "272 changed lines (+270 / -2, 6 files) vs the 3000 human-merge threshold: under",
      "deviations": [
        "Only a refusal is acted on: the engine holds one instance per name, materialized for the no-package answer, and the registry cannot hold an environment item beside a package holder of the same name, so a package caller that resolves at all resolves to the served instance. The mismatch branch was dropped as unreachable (no test can build it).",
        "origin/main merged into the branch (8c54bc7c), not rebased, per seat instruction.",
        "test:repo not run locally (CI Test Core); no repo-project test touched."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Stamped 2026-11-09T07:55Z.

  16. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#3 · os-steve · session_01ADHkmQXLfvyB5R53VDm3Ka

    Seat answer · #31677 · public names for the epic's R1 fix on PR #31863 (head 17781316) · 2026-11-09T08:02Z

  17. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#3 · os-steve · session_01ADHkmR4astMzES5UkW47jW
    os-dev-report

    {
      "issue": 31677,
      "status": "done",
      "branch": "claude/project-thread-bwr6nn",
      "pr": 31863,
      "session": "session_01ADHkmR4astMzES5UkW47jW",
      "premise_still_valid": true,
      "summary": "Epic R1 (6735080780) fixed on #31863, head c6a08105 (main 2e9121ed merged in as 5e37bfd4; epic PASS 6735249931 at 5e37bfd4, one test-only commit since). The engine records the arm of every flow registration (registerFlow(name, def, armedFrom?: FlowContender), WeakMap keyed by the parsed body; no arm = runtime, a held body put back keeps its arm by identity). armedFlowPackage(name) answers packagedFlowOwner only for a package arm; flowCallerPackage reads it, which corrects E1's subflow reader too. Names accepted by seat 3 (6735158321). Precedence winners carry contender for every name; the four plugin arming steps pass it. Real-kernel measurement: at kernel:ready the protocol view serves the .custom override with _packageId = base and overrides.package = base, which the old classifier read as package; classifyContender now answers override for that shape via isServedOverrideRowOf on the pair's row.",
      "tests": "head c6a08105. Under os-verify-lock: service-automation test exit 0 (267 files, 3518), typecheck exit 0. R1 pins: 3 override shapes (package-less row, .custom stored row, .custom served envelope) x connectorId and subflow resolve with no package (6); 2 package-arm CONTROLs answer P; 1 write-door/held pin; real kernel (#28717 harness) 4 cases at the boot pull and after kernel:ready. Ablations (restored to HEAD blob, git diff HEAD empty): reader back to packagedFlowOwner: 6 red; served-envelope branch off: 4 red; plugin arm dropped at the 4 arming steps: 2 red; plus the earlier 3 (engine 3, node 3, plugin wiring 1). Existing pin restated: flow-precedence-loader-set 'never asks for an uncontested name' -> 'once per name' (red at 5e37bfd4 locally and in CI Test Core 5/8).",
      "gates": "dispatch-gates --commands at c6a08105: 73 derived (same set as at 5e37bfd4), all 73 ':: exit 0'; --ran 73 run, 0 NOT-MEASURED, 0 UNRUN (derived zero). eslint --no-inline-config over service-automation exit 0. CI at c6a08105: green (seat 3: 35 success, 15 skipped).",
      "dogfood_battery": "5e37bfd4 · VERDICT command-exit 0 (held the lock 1450s) · pnpm --filter @objectstack/dogfood test, no shard, no path, after dogfood^... build 70/70 · Test Files 441 passed | 3 skipped (444) · Tests 3662 passed | 42 skipped (3704) · 0 failures. c6a08105 differs by one test file only.",
      "mcp_calls": "this round: get_job_logs x3, pull_request_read x1, issue_read x1 (reads)",
      "api_writes": "this round 3: issue_patch #31863 body x2 via relay (read-back identical, 8327 and 13608 bytes), and this report via post-stamped.",
      "files_changed": [
        ".changeset/31677-connector-action-package-scoped.md",
        "packages/services/service-automation/src/builtin/connector-nodes.ts",
        "packages/services/service-automation/src/connector-package-scope.ts",
        "packages/services/service-automation/src/engine.ts",
        "packages/services/service-automation/src/flow-declared-override-first-boot-pull.integration.test.ts",
        "packages/services/service-automation/src/flow-package-scoped-resolution.test.ts",
        "packages/services/service-automation/src/flow-precedence-loader-set.test.ts",
        "packages/services/service-automation/src/flow-precedence.ts",
        "packages/services/service-automation/src/plugin.ts"
      ],
      "line_budget": "551 changed lines (+531 / -20, 9 files) vs the 3000 human-merge threshold: under",
      "deviations": [
        "Existing test pins changed: flow-precedence-loader-set (uncontested names are now asked once, for the arm), E1's ship() helper arms { source: 'package' }, and the plugin pin arms P's charge before asking.",
        "The served-override shape is recognised with _packageId === owner plus the exported isServedOverrideRowOf on the pair's row, not servedOverrideBaseOf, which is a protocol method and not a package export (no new export).",
        "Dogfood measured at 5e37bfd4; c6a08105 adds only a test file.",
        "Recorded for later, per the epic: connector dispatch stays by bare name until the D9 backstop child; #31850 reuses armedFlowPackage.",
        "test:repo not run locally (CI Test Core); no repo-project test touched."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Stamped 2026-11-09T09:00Z.

  18. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#3 · os-steve · session_01ADHkmQXLfvyB5R53VDm3Ka

    Landed · #31677 (ADR-0150 E5) · 2026-11-09T09:24Z

    Reading Value
    PR #31863, merged 2026-11-09T09:23Z, merge commit 5d17aa6b, from head c6a08105 (seat ACCEPT 6736153918, epic PASS at 5e37bfd4). It went through the queue once, with no ejection.
    Card closed completed by Fixes #31677
    Parts connectors #31725, webhooks #31744, email #31825, and connectorId plus the armed-flow reader #31863

    pm:dispatched is removed in this stroke. #31863 also lands AutomationEngine.armedFlowPackage(name) (names ruled in 6735158321), which corrects E1's subflow reader for environment overrides; #31790 reuses it. With E1, E5 and E7 landed, S3 #31684 is unblocked, and the epic seat moves it. Recorded for the connector D9 backstop child: dispatch is still by bare name, which is safe only while phase 1's one-holder refusal stands.

  19. removed
    pm:dispatched
    on Nov 9, 2026
  20. added 4 commits that reference this issue on Nov 10, 2026
    5d17aa6
    8079fa9
    036a9fb
    c62e72a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:devpathdomain:serverenhancementpm:blockingpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions