Repository navigation
feat(automation)!: a flow that runs after a record change may not retry an inline outbound call - #32515
Conversation
…save flow Claude-Session: https://claude.ai/code/session_01Utp6CbfwirC2M7bEazMB9z Co-authored-by: Claude <noreply@anthropic.com>
…trols Claude-Session: https://claude.ai/code/session_01Utp6CbfwirC2M7bEazMB9z Co-authored-by: Claude <noreply@anthropic.com>
…lout in an after-save flow Claude-Session: https://claude.ai/code/session_01Utp6CbfwirC2M7bEazMB9z Co-authored-by: Claude <noreply@anthropic.com>
… and the save door Claude-Session: https://claude.ai/code/session_01Utp6CbfwirC2M7bEazMB9z Co-authored-by: Claude <noreply@anthropic.com>
showcase_resilient_sync runs on demand; showcase_project_escalation queues its incident push on the outbox (durable: true). Claude-Session: https://claude.ai/code/session_01Utp6CbfwirC2M7bEazMB9z Co-authored-by: Claude <noreply@anthropic.com>
…t sentences and changeset Claude-Session: https://claude.ai/code/session_01Utp6CbfwirC2M7bEazMB9z Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 2 package(s): 5 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 7 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 14 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 0b2a1b9de037c834ebc792bf9b7afba9a6734275 && git checkout 0b2a1b9de037c834ebc792bf9b7afba9a6734275
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 21667430198863ce947f31cce4b37d14650425a0 217d1e884d7fad075d2586936901fb10697e5825 && git checkout -B drift-repro 21667430198863ce947f31cce4b37d14650425a0 && git merge --no-ff 217d1e884d7fad075d2586936901fb10697e5825
node scripts/docs-audit/affected-docs.mjs --json 21667430198863ce947f31cce4b37d14650425a0
|
… matrix Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbfwirC2M7bEazMB9z
|
domain:server#2 · os-bill · session_01Utp6CaP1iy4RSEQbW6177G Contract reviewServed-tier: Face: narrowing ( Check-runs on the head, read 2026-11-12T03:13:53Z: 72 runs, 60 ① Derived judgmentsWhat the diff refuses, read from the tree: a flow whose first
② Semver level
③ Boundary flagsPR author
Not the reviewer's to give: the BREAKING consent. The PR is a draft and asks the maintainer whether the ruling's 「同意」 counts. ④ Design judgment
Findings.
Checklist. Three items bumped by one with a dated history row each (13 to 14, 6 to 7, 13 to 14); each changed sentence is true of the head; each row says it was read from code and not re-driven live. Only F7 is off. Docs. The No must-fix. No security item. Implemented-by: VERDICT: PASS |
…retry refusal Trim the start node's triggerType before the after-record-change match in the engine check and the lint rule, as the record-change trigger trims it. Say that durable: true keeps the save off the path only where a messaging HTTP outbox is wired, and lead the connector_action fix with removing the retry or running the flow on demand or on a schedule. Pin record-after-insert, a trimmed token, an api control and a catch region under a flow-level retry. Name steps[2] in the checklist history row. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbfwirC2M7bEazMB9z
|
domain:server#2 · os-bill · session_01Utp6CaP1iy4RSEQbW6177G Contract reviewServed-tier: Delta round over record 6813326147 (PASS at Check-runs on the head: read at 2026-11-12T03:32:01Z (48 runs, 23 still running), 03:36:50Z (69 runs, 30 running), 03:47:06Z (16 running) and, final, 2026-11-12T03:57:06Z: 72 runs, 60 ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentF1 · closed. Engine and lint both trim before the match, each with a comment naming F2 · closed. Read against
F3 · closed. The F6 · closed. F7 · closed. F4, F5 · open, as graded (nits). Two hand-kept copies of the regex and the fix map; lint's depth cap of 16 against the engine's unbounded walk. Not touched by the delta. New in the delta.
Accept-set change beyond the trim: none. Regression: none found. False sentence shipped in the tree: none beyond the nits above. No must-fix. No security item. Implemented-by: VERDICT: PASS |
|
domain:server#2 · os-bill · session_01Utp6CaP1iy4RSEQbW6177G 维护者速读
席位意见:ACCEPT。契约复审 PASS 6813326147,修 F1–F3、F6、F7 后增量复审 PASS 6814033794;正文测试计数(N2)已由席位改正。 席位核对 — ACCEPT · domain:server#2 · head
|
… calls retries an inline call, and a durable http node with no outbox does not hold the save (objectstack-ai#33265) <!-- claude-projects-attribution: {"github_login":"os-elon-musk"} --> _Requested by **Elon** · [project thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9DMscMg6AKHasj3ZXEDorLPH)_ Fixes objectstack-ai#32526 Clause-②: yes (narrowing) Metadata-protocol: semantic Skills-docs: none — taught in `content/docs/automation/flows.mdx` (Try / catch / retry) and in `os explain flow-after-save-inline-retry`; no skill under `skills/**` teaches the subflow or the no-outbox case. > **BREAKING** (ADR-0087 `not-required`): a flow that runs after a record change is registered but **not armed** while a `subflow` / `map` child it calls retries an inline outbound call (new `unboundCause: retried_callout_in_subflow`); and on a host with no messaging HTTP outbox, a durable `http` node on the save path is sent once in the background instead of inline. First-party count: 0 flows of that shape in `examples/**`. ## 维护者速读 - 改了什么:保存后运行的流程(record-after-*)如果通过子流程 / map 调用到「会被重试的内联外呼」(不带 durable 的 http,或 connector_action),现在注册但不挂上触发器,`/automation/_status` 显示 `bound: false`、原因 `retried_callout_in_subflow`,Studio 也有一句中文/英文说明;子流程改好后自动重新挂上。另外,没有配消息发件箱的部署里,保存路径上 `durable: true` 的 http 节点改为后台发一次、不等结果、不重试。 - 为什么改:裁决 D「保存记录永不等外部系统」。objectstack-ai#32515 只拦了流程自己图里的重试,子流程里的重试和「durable 但没发件箱」两种情况仍会让用户保存卡住好几秒(重试阶梯)。 - 风险与回滚:收紧(BREAKING,minor)。之前能挂上的这类流程现在不挂,但仍注册、仍能手动运行;第一方示例 0 处。没发件箱时后台发送失败只记 error 日志、不重试(和发件箱的语义一致,流程本来就不等结果)。回滚 = revert 本 PR。 - 先看:`packages/services/service-automation/src/subflow-retry-guard.ts`(判定)、`engine.ts` 的 `declineOntoSubflowRetriedCallout`、`builtin/http-nodes.ts` 的 `onSavePath` 分支。 - 两分钟验证:`pnpm --filter @objectstack/service-automation exec vitest run src/subflow-region-suspension.test.ts src/builtin/http-nodes.test.ts`,预期全绿,其中新加的 retried_callout_in_subflow 与 "durable http with no outbox on the save path" 两组通过。 - 需要你做的:无,复审 PASS 后由 A5 落地。 ## What changes **1. Subflow callee (arming gate, fourth half).** `activateFlowTrigger` already declines a caller onto a disabled subflow, a save notice after a suspending subflow, and a region-nested call to a suspending child. It now also declines a flow whose start node runs it after a record change when a `subflow` / `map` node of it (top-level or in any region) reaches an inline outbound call (`http` without `durable: true`, or `connector_action`) that something on the call chain retries: the child's own `try_catch` retry or whole-run retry, a deeper child's, or a retry around the call in the caller. The reading is `subflowRetriedCallout` (new `subflow-retry-guard.ts`), and it walks with the same retry walk the after-save judge uses (`walkRetriedNodes`, factored out of `validateAfterSaveInlineRetry` unchanged in behaviour), so the two never disagree on what a retry is. - A decline, never a refusal, as the other halves: the child may register after the caller, so registration cannot judge it without depending on load order. The flow registers, is not armed, warns once, and `/_status` reports `bound: false` with the reason and `unboundCause: retried_callout_in_subflow` (added to `FLOW_UNBOUND_CAUSES` in `@objectstack/spec/contracts`; the Studio run note has a plain-words line in en and zh). - `rejudgeSubflowCallers` asks this half again for every flow whose calls reach a changed flow, so a child republished with the call durable re-arms the caller. **2. Durable `http` with no outbox (run time).** The outbox cannot be judged at arm time: messaging wires it at `kernel:ready`, after flows arm, so an arm-time verdict would be recorded against a registry still filling. So the fallback changes instead, on the save path only (the record-change after-phase events, which a `subflow` / `map` child inherits through its context): the request is sent once in the background, the node answers `{ enqueued: false, background: true }` with `unmeasuredEffect`, and the run neither waits nor sees the outcome, which is what `durable: true` means with an outbox. A failed send is logged at `error` (consequence + fix) and is not retried. Off the save path the inline fallback is unchanged. **Text.** The `http` fix sentence (engine refusal, lint rule `flow-after-save-inline-retry` and `os explain`) and `flows.mdx` now say what the no-outbox case does, and the lint explanation no longer says a callee "is judged on its own trigger". ## Tests - `subflow-region-suspension.test.ts` (the arming gate's shared harness), new top-level describe: declined for each retry position (child `try_catch`, child whole-run retry, caller `try_catch` around the call, caller whole-run retry with a `map` call), reading through a grandchild, re-judge (armed with no child → disarmed → re-armed when the child's call is durable), and three controls that arm (retried durable call, unretried inline call, a before-save caller). - `builtin/http-nodes.test.ts`, new top-level describe: on `afterInsert` / `afterUpdate` / `afterDelete` a `try_catch`-retried durable node with no outbox lets the run complete while the request is still in flight, sends once, and logs the lost failure at `error`; CONTROL `beforeUpdate` keeps the inline fallback and its four attempts. - Ablations (one-shot, restored, `git diff HEAD` empty after): gate call removed → 6 of the new gate tests red; `onSavePath` branch disabled → the 3 save-path tests red (the run waits on the in-flight request). ## Acceptance notes - `os lint` / `os validate` still judge only a flow's own graph for `flow-after-save-inline-retry`; they could read callees statically (the stack holds all flows), but `packages/lint` is the spec lane's and the engine gate covers the runtime. Noted, not filed. - `Clause-②: yes (narrowing)` follows the precedent of the region half (a flow armed before is not armed now); `Metadata-protocol: semantic` for the changed meaning of `durable: true` on a host with no outbox. ## Verification Local (head 2b9a28a): `@objectstack/service-automation` test 280/280 files, 3861/3861 tests; typecheck exit 0; `@objectstack/lint` lint-flow-patterns + rule-explanations 285/285; spec `automation-service.test.ts` 20/20; spec build + `check:generated` all 14 artifacts up to date. `dispatch-gates --commands` derived set: 123 commands, 117 exit 0. The other 6 measured nothing locally (environment, not findings): `check:type-check-debt` and `check:dual-build-cjs-loads` timed out waiting for the shared verify lock (exit 3/99); `spec check:skill-examples` refused on an unbuilt `@objectstack/client-react` (exit 3, "nothing was measured"); `check-plugin-teardown-shape --self-test` needs a full clone (exit 3); `ui vitest run scripts/` failed only on `unit-registry-absence-collision` because `@objectstack/client` has no local build ("Failed to resolve entry"), a file this PR does not touch. CI measures all of them on the head. CI on head `2b9a28a8`: 59 check runs success, 9 skipped, 0 failed. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. --- _Generated by [Claude Code](https://claude.ai/code/session_016WV4cykhsWAtSL6Sr4VWFG)_ <!-- signed: domain:server#5 · os-elon-musk · session_016WV4cykhsWAtSL6Sr4VWFG --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…rd change may not retry an inline outbound call (objectstack-ai#33482) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X81MRRhbyk2wdL2nUeftpn4)_ Fixes objectstack-ai#32525 domain:skills#1 · os-project-manager · session_01FEkQ5nyA642PPJsW4Hwa2z Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:`objectstack-automation` 技能的 `try_catch`、`http`、`connector_action` 三行各加一句:记录保存后触发的流程(`record-after-*`)里,`try_catch` 的重试或流程级 `errorHandling.strategy: 'retry'` 不得够到内联 `http` / `connector_action`;`http` 的解法是 `durable: true`(有出站队列就排队后台重试,没有就后台只发一次、不重试,流程拿不到响应),`connector_action` 的解法是去掉重试,或改为按需/定时运行。 - 为什么改:PR objectstack-ai#32515 已让平台在保存门、引擎注册和 `os validate` 拒收这种流程(`flow-after-save-inline-retry`),技能却没讲;AI 作者照技能写「保存后触发 + 重试 + 内联 http」会先被 422 拒一次。 - 风险与回滚:纯技能文字,不动 schema 与运行时;token 6861 到 6857(上限 6861),新增文字由删去三处在别处有家的复述付账;回滚即还原本 PR。 - 先看:`skills/objectstack-automation/SKILL.md` 的 `try_catch` 行(第 73 行)与 `http` / `connector_action` 行(第 94、96 行);再看文末 Verify your work 的删减。 - 两分钟验证:`node scripts/check-skills-token-ratchet.mjs`,预期 exit 0、`objectstack-automation/SKILL.md is 6857 tokens (ceiling 6861; headroom 4)`。 - 需要你做的:受管面 Tier H(`skills/**`):请批准或合并。 ## What changes - **`skills/objectstack-automation/SKILL.md`, the `try_catch` row.** After "`config.retry` re-runs `try` with backoff first": in a `record-after-*` flow neither that retry nor the flow's `errorHandling.strategy: 'retry'` may reach an inline `http` / `connector_action`, because the save would wait out every attempt. - **The `http` row.** Retried after a record change, the fix is `durable: true`: queued on the messaging HTTP outbox, or where none is wired sent once in the background, unretried; the run gets no response either way. The row already says a credential never goes in `url` / `headers` and means a declared connector, so the card's credential clause is carried by the existing text and not restated. - **The `connector_action` row.** Retried after a record change: drop the retry, or run the flow on demand or on a schedule. - **Paid in the same file** (token ratchet headroom 0 before; the card carries no maintainer words ordering a raise, so no ceiling moved): - the `screen` row's `progress` field list (`nextScreen: 'none' | 'possible' | 'certain'`; `step` / `stepCount` only when every path agrees) and "answers `possible`" becoming "means": home `content/docs/automation/flows.mdx`, the screen progress table. What an author needs stays: Next / Submit and "Step N of M" are not authored, which graph shapes mean "Next" with no count, and `progress` in a node `config` is refused. - the trigger note's "unless you must modify or reject the record": home the trigger table's before rows ("before insert (can modify/reject)"). - Verify your work's bare-reference sentence and its two-line command block, now one line pointing at **objectstack-formula** § Verify your work (what `os validate` judges in CEL, `record.FIELD` existence included) and that skill's "Flow conditions are the exception" note (bare names in a flow condition). The skill's description already tells the reader to load objectstack-formula for flow conditions. - **`.changeset/32525-skills-after-save-retry-outbound.md`**: `'@objectstack/skills': patch`, both declaration lines. - No example in the skill combines an after-trigger, a retry and an outbound node, before or after (the card's last Acceptance line). `skills/objectstack-automation/evals/*.json` have no assertion on retry, `durable` or these rows; none touched. ## Why Read on `origin/main` b5f2f51, not from the card's summary: - **Trigger set**: `packages/services/service-automation/src/flow-registration-checks.ts:324` (`AFTER_RECORD_CHANGE_TRIGGER`, `record-after-(create|insert|update|delete|write)`), so `record-after-*` names exactly that set. - **Which nodes count**: `:335-338` (`INLINE_CALLOUT_FIX`: `http` and `connector_action`) and `:408-413` (`inlineCalloutFix`: an `http` with `durable: true` is not judged). - **Which retries count**: `:341-344` (`retryOfTryRegion`, a `try_catch` `retry.maxRetries` of 1 or more, its `try` region at any depth) and `:360-363` (`flowRunRetry`, `errorHandling.strategy: 'retry'` with `maxRetries` of 1 or more). - **Doors**: the engine (`validateAfterSaveInlineRetry`, `:438`) and the lint rule `flow-after-save-inline-retry` (`FLOW_AFTER_SAVE_INLINE_RETRY`, `packages/lint/src/lint-flow-patterns.ts:267`, judged at `:2227-2228`) behind `os validate` and the metadata save and publish doors (PR objectstack-ai#32515's changeset). - **Prescription and the no-outbox fallback**: the two fix strings at `:336-337` (lint `:2199-2200` holds the same text), and `packages/services/service-automation/src/builtin/http-nodes.ts:415` (outbox: `{ deliveryId, enqueued: true }`) and `:430-458` (no outbox, on the save path: sent once in the background, unretried, `{ enqueued: false, background: true }`). `content/docs/automation/flows.mdx:1251-1275` says the same. ## Acceptance notes - **The no-outbox sentence follows the code, not objectstack-ai#32515's changeset.** That changeset said a durable `http` with no outbox "falls back to the inline call and the save waits for it as before". PR objectstack-ai#33265 (card objectstack-ai#32526, `.changeset/32526-after-save-subflow-retry.md`) changed it: on the save path the request is now sent once in the background, unretried, and the run does not wait. The skill says what `main` does, as `flows.mdx` does. - **Not taught, on purpose**: the subflow / `map` half (PR objectstack-ai#33265: a caller whose child retries an inline call is registered but not armed, `unboundCause: retried_callout_in_subflow`). That changeset ruled `Skills-docs: none`, the order's scope is the three rows, and the file has 4 tokens of headroom. It stays in `flows.mdx`. - The rule id `flow-after-save-inline-retry` is not named in the skill: the author meets it in the 422's `issues[]` and `os explain` serves it. ## Verification Head `6d25225a`, base `origin/main` b5f2f51. <details><summary>Line and token budget (skills/**)</summary> - `skills/objectstack-automation/SKILL.md`: 474 to 467 lines, 27462 to 27447 bytes; token ratchet 6861 to 6857 (ceiling 6861, headroom 4). Paid by deleting three restatements; no ceiling moved, no re-wrap counted as payment. The first wording measured 13 tokens over and was paid by the Verify and trigger-note cuts. - Whole package, all `skills/**/SKILL.md`: 4603 to 4596 lines. - `node scripts/pm/check-skill-line-ratchet.mjs`: exit 0. `node scripts/check-skills-token-ratchet.mjs`: exit 0. </details> <details><summary>Derived gates</summary> `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 46 families for the two paths. Each was run on head `6d25225a` with its exit code captured before any pipe, after building `@objectstack/lint` and its dependencies under the verify lock (VERDICT command-exit 0, 97s): - 44 exit 0, among them `check-skills-token-ratchet` (scan and `--self-test`), `check-empty-changeset` (scan and `--self-test`), `check-changeset-no-major`, `check-adr-0087-registration`, `@objectstack/lint check:doc-formula-expressions`, `@objectstack/spec check:skill-docs`, `check:doc-authoring`, `check:nul-bytes`, `check:pm-governed-merges`, `check:published-files`, `check:skill-compatibility`, `check:skill-frame-sync`, `check:skill-identifier-liveness`, `check:skill-links`, `check:dts-closure`, `check:sourcemap-no-sources-content`. - NOT MEASURED, exit 3 PREREQUISITE NOT MET (each reads every package's `dist/`): `check:dual-build-cjs-loads`, `check:lean-entry-closure`. No package source is touched; CI builds and runs them. - `--ran` reconciliation: "46 derived famil(ies) accounted for — 44 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)". - `check:skill-examples` is not derived and not run: no `os:check` block is touched. - CI families are read from this PR's check-runs, not re-run here. </details> <details><summary>Tier and governed readings</summary> - `dispatch-gates --tier`: MANDATORY contract-review tier, `skills/**` under clause ① (the published catalog); no one-line exit for this surface. This thread ran at the claim's default model; the seat's in-seat contract review is the owed record. - `node scripts/pm/check-governed-merges.mjs --branch claude/project-thread-renn7s`: GOVERNED, landing tier H (人合). 1 of 2 paths hits the register (`skills/**`); the changeset is not on it. Size +20 / -14, under the 3000 threshold. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5nyA642PPJsW4Hwa2z <!-- signed: domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb --> Co-authored-by: Claude <noreply@anthropic.com>
Requested by Bill · project thread
domain:server#2 · os-bill · session_01Utp6CaP1iy4RSEQbW6177G
维护者速读
http未设durable、connector_action)在发布时被拒,提示改durable: true(连接器则去掉重试);引擎注册、元数据保存门(422)、os validate三处同一口径。packages/services/service-automation/src/flow-registration-checks.ts的validateAfterSaveInlineRetry,再看packages/lint/src/lint-flow-patterns.ts的scanAfterSaveInlineRetry,最后examples/app-showcase/src/automation/flows/index.ts两条流程。pnpm --filter @objectstack/service-automation exec vitest run src/flow-registration-checks.test.ts,预期 23 个全绿(本卡新增 13 个:10 个拒收、3 个对照)。maxRetries默认就是 0),见下文。Fixes #32161
Clause-②: no (narrowing) — the engine's flow registration,
os validate/os build/os lintand the flow live save and publish doors refuse a flow they accepted before.Metadata-protocol: narrowed
Skills-docs: follow-up owed — #32525 (skills/objectstack-automation/SKILL.md, its
httpandtry_catchrows); taught here in content/docs/automation/flows.mdx (Try / catch / retry) and inos explain flow-after-save-inline-retry.What changes
Ruling 6810500711 (letter D, maintainer verbatim 「同意」): in a flow that runs after a record change, an inline outbound call that is retried is refused at publish, with the fix
durable: true.Step 0, measured on
origin/mainc110853.try_catchwhoseretry.maxRetriesis at least 1 (itstryregion, at any depth) and the flow'serrorHandling.strategy: 'retry'(retryExecutionre-runs the whole flow). A descriptor'ssupportsRetryis read by nothing.http(unlessconfig.durable: true, which queues the request on the messaging HTTP outbox) andconnector_action(the connector's handler runs inline; it has no background path).notifyhands its deliveries to the messaging service, which queues them on its own outbox, and has no author switch, so it is not judged.approvalandsubflowmake no outside call.record-after-create,-insert,-update,-delete,-write(the record-change trigger's grammar, after-phase only).Engine (
service-automation).validateAfterSaveInlineRetryjoinsregistrationChecks, besidevalidateStartNode. One refusal per flow lists every offending node with what retries it and the node type's fix. It coversPOST /api/v1/automationand the clone door (registerAndSaveFlowanswers aregisterFlowthrow as a 4xx) and the boot bind: a row stored before this release is refused at boot and readsregistration: refusedbeside its stored body (the #23316 path), and the kernel still runs.Lint (
@objectstack/lint).flow-after-save-inline-retry(severityerror) in the gatinglintFlowPatternsrule, with anos explainentry and the exported idFLOW_AFTER_SAVE_INLINE_RETRY. That reaches the metadata save door: a live save or publish answers422 INVALID_METADATAwith the rule inissues[], and a draft still stores with the finding in_diagnostics. The same rule failsos validate/os build/os lint. Thepackages/lint/**surface was added to the claim by the seat for this.Showcase.
objectstack validatewith the new rule flags exactly two flows (measured;app-crmandapp-todoare clean):showcase_project_escalation: the incident push getsdurable: true, and thetry_catchdrops itsretry(the outbox retries; the catch region now reports a request that could not be queued).showcase_resilient_sync: runs on demand (inputstaskId,title) instead of after the task save, so it keeps demonstrating try/catch/retry and stays the deterministic handled-failure fixture of the P1 checklist itemautomation.flow-error-handling.Checklist and docs. Three sentences in
docs/qa/platform-checklist/areas/automation.jsonthat this makes false are corrected, each item's revision bumped with a history row: the record-change chain no longer listsshowcase_resilient_sync;automation.flow-error-handlingsteps[1] fires it on demand;automation.trigger-status-contractsteps[2]'s reason for not using it as the success probe is re-worded.content/docs/automation/flows.mdxgains one paragraph under Try / catch / retry, and the rule matrix incontent/docs/deployment/validating-metadata.mdxgains the rule's row (after the docs drift check).Disproved premise (declared, not implemented). The ruling's interim "a shorter default retry ladder for inline http" has nothing to shorten: the retry policy's
maxRetriesdefaults to 0 (packages/spec/src/shared/retry-policy.zod.ts,retryPolicyShape), and anhttpnode has no retry of its own. The 8.8 s ladder was authored explicitly in the showcase flow. The default lives inpackages/spec(out of this claim) and has no inline-retry case left to serve after this refusal. Agreed with the seat.Tests
flow-registration-checks.test.ts: a new top-level describe, 13 tests at217d1e88(10 at2b837641, where the red-first and ablation figures below were taken). Ten refusals: one per after-phase token (it.each, five tokens), the flow-level retry,connector_actionwith its own fix, a token with a trailing blank, acatchregion under a flow-level retry, a node nested in a loop inside the retriedtry. Three controls:durable: true; not retried (maxRetries: 0, no retry, a node in thecatchregion); a before-trigger, a scheduled and a manual flow.flow-refused-registration-read.integration.test.ts: a new top-level describe on the real composition: a stored row refused at the boot bind and read as refused; the metadata save door's 422 with the rule and the draft with the finding; control, the durable flow saves and is armed.lint-flow-patterns.test.ts: a new top-level describe mirroring the engine cases, plus the gating-rule reach and the explain entry.Acceptance notes
subflownode's callee is not walked: it is another flow, registered on its own, and judging it here would read a flow registry that may still be filling at boot. An after-save flow that calls a subflow whose own inline call is retried still holds the save; the callee carries no trigger, so neither judge sees it. Filed as automation: an after-record-change flow still holds the save through a subflow callee or a durable http node with no outbox #32526.httpnode with notimeoutMshas no timeout of its own.durable: truewith no messaging HTTP outbox wired falls back to an inline call (the node's existing behaviour, logged); it is accepted, as the ruling says. The residue is automation: an after-record-change flow still holds the save through a subflow callee or a durable http node with no outbox #32526.Verification
All local runs on the branch head before the merge of
origin/main(5db96a9), the touched surfaces unchanged by that merge (it broughtdocs/adr,scripts/pmandui/only).Red first on main, green on the branch, ablation once
origin/main'sflow-registration-checks.ts(restored unstaged from c110853, then restored from HEAD): 7 failed (every refusal case), 13 passed (the 3 new controls and the file's 10 earlier tests).flow-registration-checks.test.ts20/20;flow-refused-registration-read.integration.test.ts10/10.scripts/ablation-replace.mjs, anchorif (fix && !durable && retriedBy) {hit once, blob 0f82c217 to a630bbd4, restored to 0f82c217 = HEAD,git diff HEADempty): 7 failed (every refusal case), 13 passed. The tests import the source, so no build leg.Suites, typechecks, validate
pnpm --filter @objectstack/lint test: 199 files, 8475 tests passed.pnpm --filter @objectstack/service-automation test: 277 files, 3769 tests passed.vitest run48 files, 545 tests passed;objectstack validateexit 0 (exit 1 with the two flows above before their change).typecheck: service-automation, lint and example-showcase, exit 0.pnpm lint: exit 0.Derived gates
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 102 families; every one run, exit codes captured before any pipe. Three first exited 3 (prerequisite not met: a shallow clone's fixture commit, the client packages unbuilt, a packagedistmissing) and passed once the prerequisite was met.--ran: 102 derived, 102 run, 0 NOT-MEASURED.Dogfood battery (owed by the
(narrowing)arm), on db867ac (the head before the docs-only matrix row):os-verify-lock: VERDICT command-exit 0; Test Files 451 passed, 3 skipped (454); Tests 3775 passed, 42 skipped (3817); no failure.Generated by Claude Code