Skip to content

automation notify-channel check: a malformed channel roster refuses every channel, and the migration entry omits two not-judged cases #32733

Closed

Description

@objectstack-fleet

domain:server#1 · os-sales · session_01L6bhgVaKJ9TPfXPRhdqx3e

Follow-up of #32142 (PR #32665), from its delta contract review (PR #32665 comment 6824007053, nits N1–N3). Filed under the maintainer's rule of 2026-11-12 09:41Z: simple review findings get their own card, not another PR round. None blocks #32665.

Blocked-by: #32142

维护者速读

  • 改什么:两处小问题。① 自动化保存时检查通知节点的渠道名,如果消息服务返回的渠道列表元素不是 { id } 形状,现在会被过滤成空列表,导致所有渠道都被拒;应与「读不到」同样处理(不判)。② 新增的迁移说明条目漏写了两种不判的情况,路径也只写了一种。
  • 为什么:① 树里目前没有返回这种形状的实现,但这是静默误拒的入口。② 迁移说明是给升级者读的,应与 changeset、文档一致。
  • 风险:① 只改判定前的读取;② 纯数据文案。第一方 0 处受影响。
  • 先看:packages/runtime/src/domains/automation.ts 读 getKnownChannels() 的地方;packages/spec/src/migrations/entries/semantic/18.notify-channel-unknown-refused.ts。
  • 验证:① 元素形状不对的列表与「读不到」一样放行,有 pin 与消融。
  • 需要你做的:无,p3。

Do

  1. N1. A list from getKnownChannels() whose members are not { id: string } is filtered rather than treated as unreadable, so a reader answering bare strings yields an empty roster and every named channel is refused, while a non-list answer is not judged. Treat a list with any malformed member as unreadable (not judged), pin it, ablate it.
  2. N2. The semantic entry's reason omits two not-judged cases the door has (a save before kernel:ready settles, and an unreadable reader) and names only nodes.N.config.channels, not the list-member or region-body paths. Align it with the changeset and content/docs/automation/flows.mdx. This touches packages/spec/src/** (data only): the review face is CONTRACT_REVIEW_TIER.
  3. N3 (optional). The entry has no relevance question, like its sibling 18.picklist-binding-unknown-refused; add one to both only if the migration registry's readers use it.

Clause-②: N1 no (a false refusal removed; cite the declared channel contract), N2 none. Metadata-protocol: none.

Activity

  1. added
    bug
    pm:queue
    domain:server
    on Nov 12, 2026
  2. objectstack-fleet commented on Nov 13, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first-touch audit (pre-labeled card) · p3 confirmed · 2026-11-13T08:27Z

    ⛔ Not a claim; the claim (if any) is unchanged.


    Generated by Claude Code

  3. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUZKdq3PK2Sab53cT3

    Claim: server area-lease mode (#33751 §2), area S6 lease A5, dispatched by seat domain:server#5 area thread · executed by an os-dev sub-agent (mode:subagent) · posted at 2026-11-15T11:21Z
    Session: session_01QsR2jUZKdq3PK2Sab53cT3
    Account: zhuangjianguo
    Branch: claude/area-A5b-33026
    Worktree: objectstack-issue-33026
    Domain: domain:server
    Seat: domain:server#5
    File surface: as the lead claim on #33026 (the getKnownChannels() read in runtime/src/domains/automation.ts, the semantic entry 18.notify-channel-unknown-refused.ts) (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default (no path-derived mandate; dispatch-gates --tier at 1e65a389), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack runtime: a channel roster with a malformed member refuses every channel | the unreadable-roster path (not judged) | no in-tree reader returns that shape
    Thread-read: 6847961700
    Premise: holds
    Serial constraints cleared: see the lead claim on #33026; Blocked-by #32142 is closed
    Fold member: shares branch claude/area-A5b-33026 with lead #33026. N1 is a false refusal removed: Clause-②: no, the dev cites the declared channel contract in the PR body.

    Generated by Claude Code

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  5. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUZKdq3PK2Sab53cT3

    Claim: server area-lease mode (#33751 §2), area S6 lease A5, restated by the same session (fold with #33026 split) · executed by an os-dev sub-agent (mode:subagent) · posted at 2026-11-15T12:43Z
    Session: session_01QsR2jUZKdq3PK2Sab53cT3
    Account: zhuangjianguo
    Branch: claude/area-A5b-32733
    Worktree: objectstack-issue-33026 (reused)
    Domain: domain:server
    Seat: domain:server#5
    File surface: the getKnownChannels() read in packages/runtime/src/domains/automation.ts, the semantic entry packages/spec/src/migrations/entries/semantic/18.notify-channel-unknown-refused.ts (data text), their tests, a changeset (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default (no path-derived mandate; dispatch-gates --tier at 1e65a389), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack runtime: a channel roster with a malformed member refuses every channel | the unreadable-roster path (not judged) | no in-tree reader returns that shape
    Thread-read: 6893560426
    Premise: holds
    Serial constraints cleared: PR #33721 (open) edits other hunks of runtime/src/domains/automation.ts; under the maintainer's hot-file rule this p3 PR is held until #33721 merges, then merges main and opens
    Split from the #33026 fold: own branch and own PR. Built at 42667cd1 (one commit), held off GitHub until #33721 merges.

    Generated by Claude Code

  6. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUZKdq3PK2Sab53cT3
    os-dev-report

    {
      "issue": 32733,
      "status": "done",
      "branch": "claude/area-A5b-32733",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/33970",
      "head_sha": "f3979189f3e0a90cf559147254dc4d5a4797c8b8",
      "session": "session_01QsR2jUZKdq3PK2Sab53cT3",
      "premise_still_valid": true,
      "summary": "N1: in packages/runtime/src/domains/automation.ts, refuseUnknownNotifyChannels now treats a getKnownChannels() list with any member that is not { id: string } as unreadable, so nothing is judged and the save goes on. Before, those members were filtered out and every named channel was refused. The cited contract is NotifyChannelRegistry.getKnownChannels(): ReadonlyArray of { id: string; configured: boolean }, mirroring MessagingService.getKnownChannels(). N2: the reason text of the semantic entry 18.notify-channel-unknown-refused now names the two missing not-judged cases (before kernel:ready settles, and an unreadable reader) plus the list-member and region-body paths; this is data text only in packages/spec. N3 is declined: the field is relevantWhen, but its contract says to omit it for a surface that lives in runtime-stored metadata. The branch is 42667cd1 merged with origin/main, which brings in #33721 (83198201). The merge was clean, and #33721's automation.ts hunks do not touch the getKnownChannels() read. The PR delta is 4 files, +50/-14.",
      "tests": "All at head f3979189 under os-verify-lock (VERDICT command-exit 0). Builds and typechecks: runtime closure build exit 0; runtime typecheck exit 0; spec typecheck exit 0. Spec src/migrations: Test Files 5 passed, Tests 198 passed. Pin file automation-authoring-doors-durable.test.ts: 19 passed (19). Ablation with scripts/ablation-replace.mjs, putting the old filter in place of the guard ('ok mutation landed: anchor 1 -> 0, blob d39570fc2127 -> 8515df9c8898'): it failed as intended, 'x a list with any member that is not a { id: string } is unreadable, not judged ... AssertionError: reader-bare-ids: expected 400 to be 200', Tests 1 failed | 18 passed. Then 'ok restored: blob == HEAD (d39570fc2127) and git diff HEAD is empty'. Full runtime suite: Test Files 605 passed (605), Tests 10959 passed | 19 skipped. I ran the full suite, not the scoped files; it got the lock after one queue-timeout retry.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at f3979189: 94 families, all run. --ran reconciliation: 94 derived, 94 run, 0 UNRUN. Every family exits 0 except pnpm check:dual-build-cjs-loads, which exited 3 and is NOT MEASURED because it needs a full pnpm build. check:dts-closure and check:lean-entry-closure exited 3 on their first run, before the closure was built; re-run afterwards they exit 0. eslint --no-inline-config on the 3 touched .ts files: exit 0. PR-body gates, all exit 0: check-changeset-no-major, check-adr-0087-registration, check-closing-keyword-parity, check-partof-closing-keyword. Declaration self-check with scripts/pm/clause2-line.mjs on both the PR body and the changeset: Clause-② declared no with no arm, Metadata-protocol declared none, matching the claim. PR check-runs were in_progress when I opened the PR; I did not wait on them.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm (Clause-②: no)",
      "mcp_calls": "0",
      "api_writes": "2 — relay pr_create (objectstack-ai/objectstack#33970, read back byte-identical) and this os-dev-report comment on #32733 via post-stamped; plus git pushes (not REST)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — content/docs/automation/flows.mdx omits the not-judged cases (save before kernel:ready, an unreadable reader) and the list-member and region-body paths; this is noted in the PR's Acceptance notes."
      ],
      "deviations": "None beyond the split and hold the area ordered. No force pushes.",
      "files_changed": [
        ".changeset/32733-notify-channel-roster-malformed-member.md",
        "packages/runtime/src/domains/automation.ts",
        "packages/runtime/src/domains/automation-authoring-doors-durable.test.ts",
        "packages/spec/src/migrations/entries/semantic/18.notify-channel-unknown-refused.ts"
      ],
      "line_budget": "+50 / -14 across 4 files (PR net diff)"
    }
  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUZKdq3PK2Sab53cT3

    Follow-up filed per review-c (verdict 6896677521 on PR #33970): #33976, content/docs/automation/flows.mdx names every judged path and every not-judged case of the unknown notify channel refusal (docs only). · 2026-11-15T15:15Z


    Generated by Claude Code

  8. added a commit that references this issue on Nov 16, 2026
    1f923d7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:automationbugdomain:serverpm:dispatchedpriority:p3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions