Skip to content

verify: run a flow locally and report the node trace, before it is submitted #34779

Closed

Description

@objectstack-fleet

epic:#34659#1 · hotlong · session_01Q4EjjMnXJdSZifpEN5i7aU

Filing gate: ④ a child of the cross-lane parent #34659 (the 「MCP 二期与问数」 epic), filed on the maintainer's word in this seat's chat, 2026-11-17, verbatim: 「三点都同意,按最终计划把后续里程碑的卡全部立出来」, and, on the list of thirteen cards the seat then showed: 「同意」. The ruling records are #34659 comment 6940528935 and #34691 comment 6943107981. Readings: objectstack a0326b06, cloud 53a5844, 2026-11-17.

Why

A flow is the item most often saved clean and dead at run time, and the one a static check sees least of. Nothing lets an author trigger it once against a local runtime and read what each node did.

Who acts: the server lane (packages/verify, packages/cli, packages/services/service-automation). Reader: an author, or an AI client, before submitting a flow.

Evidence

  • os verify boots the stack and proves CRUD, row-level security, reference shapes, delete behaviour, unique scope and dashboard windows (packages/cli/src/commands/verify.ts); none of its proofs runs a flow.
  • The hosted product has a flow test tool and withholds it from the MCP door.

Scope

  • A local flow run: given a flow and a triggering record or input, run it against the booted stack and print each node's status, the first failure with its code, and what the run wrote.
  • A flow that would write runs against the ephemeral stack only.
  • Only this piece of the local export, simulate and submit loop is built now (E3 = phased).

Done when

  • A flow whose node type has no executor, and one whose trigger never binds, are both reported by the local run with the node named.

Relations

Activity

  1. added
    pm:epic
    area:ai
    domain:server
    on Nov 17, 2026
  2. added
    pm:on-hold
    and removed
    pm:epic
    on Nov 17, 2026
  3. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Released by the maintainer (recorded on #34659 at 23:01Z, comment 6963538703: 「云端的任务你说暂缓,他也不会排的呀,是不是应该先放回队列」 and 「其他技能体系的卡如果改动面大不是理由啊…那就应该开放」). pm:on-hold → pm:queue. Theme: MCP, epic #34659 (in focus).

    Run a flow locally and report its node trace before submitting it, ruled to be built now (E3, #34659 comment 6940528935). There is no customer break today, so p2.

  4. added
    pm:queue
    priority:p2
    and removed
    pm:on-hold
    on Nov 17, 2026
  5. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi

    Claim: PM loop (area o1-B, seat 1 order 15:52Z under the maintainer's 「你就处理这10张」, seat post 6983704179 on #34366) · 2026-11-18T15:54Z
    Session: session_01JQwxbYRqkDAGuse5Wqbohi
    Account: os-warren
    Branch: claude/issue-34779-verify-flow-run
    Worktree: objectstack-issue-34779
    Domain: domain:server
    Seat: repo:objectstack#1
    File surface: packages/verify/src/**, packages/cli/src/commands/verify.ts (and its sibling helpers under packages/cli/src/** only where the verify command needs them), packages/services/service-automation/src/** only for a read-only seam that runs one flow and returns its node trace, their tests, one changeset. ⛔ Not packages/spec/src/** (a new published shape goes to the spec lane by amendment first). ⛔ Not skills/**.
    Container & model: M, mode:subagent, model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: yes
    Metadata-protocol: none
    Responsibility: os verify: no proof runs a flow, so a flow saved clean but dead at run time (a node type with no executor, a trigger that never binds) is found only after submit | the hosted product's test_flow tool is withheld from the MCP door | authors and AI clients before submitting a flow
    Thread-read: 6963643452
    Premise: on origin/main ec227fc7b1, packages/cli/src/commands/verify.ts proves CRUD, row-level security, reference shapes, delete behaviour, unique scope and dashboard windows, and none of its proofs runs a flow (re-measured by the dev before the first edit). The hosted test_flow (cloud packages/service-ai-studio/src/tools/flow-tools.ts, cloud main c21b372) is read for semantics only.
    Serial constraints cleared: no Blocked-by: on the card; is:pr is:open "34779" → 0. Parent #34659 (E3 = phased, comment 6940528935); epic line #35153.
    Pre-claim lane: packages/verify/**, packages/cli/**, packages/services/service-automation/** → domain:server; outside area o1-B's ui/** roots, taken into o1-B by seat 1's order 15:52Z.
    Pre-claim deps: none
    Prior rulings read: E3 = phased (#34659 6940528935; #34691 6943107981): only the local run is built now; maintainer 2026-11-17 23:01Z release to pm:queue (6963643452); maintainer 2026-11-18 15:44Z 「我理解主要是 cloud 仓库现有的 skills 和 工具迁移到开源仓库」; a flow that writes runs against the ephemeral stack only (card scope).
    Lease: lease:o1-B

  6. added
    pm:dispatched
    on Nov 18, 2026
  7. 1 remaining item

  8. added and removed
    area:ai
    on Nov 18, 2026
  9. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi
    os-dev-report

    {
      "issue": 34779,
      "status": "done",
      "branch": "claude/issue-34779-verify-flow-run",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35243",
      "head_sha": "348cc18de61c582bcb961b0f23aca34cc01bf160",
      "session": "session_01JQwxbYRqkDAGuse5Wqbohi",
      "premise_still_valid": true,
      "summary": "os verify --flow NAME (with --flow-record / --flow-input JSON) runs one flow once on a fresh in-memory boot and reports each node's status from the engine's run log, missing executors by node, an unbound trigger by name with the engine's reason, the first failure (kind, code, node) and every write the run made. Record-change flows are fired by a real write of the given record, so the production trigger path runs. An ObjectQL middleware refuses any write whose object routes to a driver other than the ephemeral default (PERMISSION_DENIED/403, before that driver is called). Only read seams of service-automation are used (getFlow, getFlowRuntimeStates, getUnknownNodeTypeAudit, listRuns). Semantics adapted from cloud c21b372 packages/service-ai-studio/src/tools/flow-tools.ts and flow-trigger-words.ts.",
      "tests": "head 348cc18de6: flow-run.test.ts 4/4 passed (CONTROL, no executor, unbound trigger, confinement); @objectstack/verify typecheck exit 0; earlier full verify suite 53 files / 449 tests, VERDICT command-exit 0; flow-json-flag.test.ts 7/7; cli typecheck exit 0; cli unit tier 427/429 then the 2 dist-prerequisite files 29/29 after building the cli. Ablations via scripts/ablation-replace.mjs, each red then restored (blob == HEAD 37624804c18c, git diff HEAD empty): no-executor -> 'expected [] to deeply equal [ { nodeId: mystery } ]'; unbound -> kind not_started instead of trigger_unbound; control -> an fr_watch trigger write leaked into writes; confinement -> run completed and wrote 'insert fr_remote remote_1 (datasource fr_remote_ds)' into the remote driver. First control/confinement attempts were no-ops refused by the tool and re-run with marker comments. Verify test imports src relatively, so no build sits between mutation and run.",
      "gates": "local: dispatch-gates --ran over 122 derived families with recorded exit codes -> 121 run, 1 NOT-MEASURED (pnpm check:dual-build-cjs-loads :: exit 3, needs a full pnpm build; CI owns it), 0 UNRUN. Four families first exited 3 (skill-examples, i18n, i18n-coverage, i18n-walk-parity) and exited 0 after the prerequisite builds; check:test-source-alias and check:verify-stand-in first exited 1 and were fixed (exit 0, and re-run at the final head). The 18 families derived from the scripts/ edit, check:pm-dispatch-gates included, exited 0; the 52 families reading flow-run.ts were re-run at final head 348cc18de6, all exit 0. check:nul-bytes OK. overlap-check VERDICT clean exit 0 vs origin/main ec227fc7b1 and #34717. CI at report time on 348cc18de6: 19 in_progress, 1 success, 5 skipped. Not waited on.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "line_budget": "n/a — no skills/** or ratcheted ledger touched; 9 files, +1161/-6",
      "files_changed": [
        ".changeset/34779-verify-flow-run.md",
        "content/docs/deployment/cli.mdx",
        "packages/cli/src/commands/verify.ts",
        "packages/cli/src/utils/flow-json-flag.ts",
        "packages/cli/src/utils/flow-json-flag.test.ts",
        "packages/verify/src/flow-run.ts",
        "packages/verify/src/flow-run.test.ts",
        "packages/verify/src/index.ts",
        "scripts/check-verify-stand-in-erasure.mjs"
      ],
      "deviations": [
        "scripts/check-verify-stand-in-erasure.mjs edited outside the claimed surface: check:verify-stand-in requires each new @objectstack/verify export to be classified; two NOT_A_STAND_IN entries added.",
        "packages/cli/src/utils/flow-json-flag.ts (+ test) added as a sibling helper so the flag-parser test does not reach into the command module (check:test-source-alias).",
        "check:dual-build-cjs-loads NOT MEASURED locally (prerequisite: full build); CI owns it.",
        "test:repo and the cli integration tier declared to CI; the diff touches no integration-tier file or spawn entry.",
        "Clause-② and Metadata-protocol re-judged: both correct as dispatched; changeset bumps are patch, per the kind none.",
        "PR body footer follows the dispatch.mjs PR_CREATE_FOOTER_TAIL session-URL form rather than the harness attribution lines."
      ],
      "mcp_calls": "0",
      "api_writes": "2 — fleet-write pr_create (POST pulls + POST issues/35243/assignees, via relay run 44365790675); this os-dev-report comment on #34779 via post-stamped.mjs. Plus git push of the branch.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: b · reach: NOT MEASURED at the public door (only through bootStack, where the confinement ablation wrote into a plugin-driver datasource) · evidence: packages/verify/src/derive.ts:236-244 admits writable external objects to the CRUD phase, so os verify CRUD could write into an app's declared external datasource, against the harness header 'never touches a real database or production data' · Seam: spec:none -> runtime:packages/verify/src/derive.ts:236-244 | consumer: os verify CRUD phase · dedupe words: verify external datasource write; writable external CRUD verify; os verify production datasource",
        "carrier: none · noted, not filed (reach unmeasured at a public door)",
        "boundary: outbound nodes (http, connector_action, notify, script) are not confined by --flow; documented in cli.mdx and the changeset"
      ]
    }
  10. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi

    Area o1-B on os-dev report 6987214963 (PR #35243, os verify --flow), at 2026-11-18T18:08Z:

    • Deviations accepted. Two NOT_A_STAND_IN entries in scripts/check-verify-stand-in-erasure.mjs (the gate requires every new @objectstack/verify export to be classified); the sibling flow-json-flag.ts helper so the test does not reach into the command module; test:repo and the cli integration tier left to CI (no integration-tier file or spawn entry touched).
    • NOT MEASURED locally: check:dual-build-cjs-loads (needs a full build). It is read from CI on the final head before landing.
    • Port provenance accepted. The behaviour is adapted from cloud c21b372 (packages/service-ai-studio/src/tools/flow-tools.ts, flow-trigger-words.ts). Only behaviour moved: no keys, tenant data, hosted endpoints or hosted-only material.
    • Boundary for the contract review. Writes are confined to the ephemeral default driver: a write to an object routed elsewhere is refused before that driver is called. Outbound nodes (http, connector_action, notify, script) are not confined, and the docs and changeset say so. The reviewer judges whether that meets the card's "a flow that would write runs against the ephemeral stack only".
    • Out-of-scope note: noted, not filed. The existing CRUD phase may admit writable objects on a declared external datasource. Its reach is not measured at a public door. It goes to the seat to decide, and the area files nothing new (wind-down 17:50Z).
    • No open questions, security_findings: none.
    • Next: the TIER_DEFAULT contract record on 348cc18de6, then the final head for L1 once CI is green.
  11. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi
    os-dev-report

    {
      "issue": 34779,
      "status": "done",
      "round": 2,
      "branch": "claude/issue-34779-verify-flow-run",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35243",
      "head_sha": "f1b566279d8b071c0363ed2b4cb2a6a90c624fd5",
      "session": "session_01JQwxbYRqkDAGuse5Wqbohi",
      "premise_still_valid": true,
      "summary": "Round 2 on contract record 6987485237 and the seat's S3 ruling A. S1: a trigger unbound only by deployment_policy is reported as not armed (with the engine's sentence) and the flow still runs through the no-caller start; it is no longer a hard failure. S2: an API-triggered flow is started through the engine's execute with the context the inbound hook builds, record and params from --flow-input and event api (trigger-api/src/api-trigger.ts, the queue consumer in arm). A time-relative flow gets the --flow-record row, seeded first, as record and params, with object and event time_relative (trigger-schedule/src/time-relative-trigger.ts, the per-row sweep context); with no record it is record_required. S3 (ruling A): on the verify stack's engine only, each registered http, connector_action, notify and script executor is replaced by a stand-in. The stand-in keeps the type's descriptor, executes nothing, and returns a guard-class failure, so no fault edge is followed. The run stops at the first one with verdict stopped and kind outbound_not_run naming the node; this does not fail os verify. A try_catch region catches the stop and the report says so. The help text, cli.mdx and the changeset now say outbound nodes are not executed, replacing the 'run for real' caveat. N2: update-leg and delete-leg pins added. N1 skipped. No new flags.",
      "tests": "flow-run.test.ts 10/10 at f1b566279d. @objectstack/verify full suite: 53 files / 455 tests, VERDICT command-exit 0. verify typecheck exit 0. cli typecheck exit 0 at 07a5495f11, the last cli change. flow-json-flag.test 7/7. Smoke on app-todo, os verify --flow todo_task_reminder: exit 0; the schedule was not armed by policy, the run completed, and send_reminder (notify) was stopped inside its try_catch. Ablations through ablation-replace, each red then restored with blob == HEAD 2157605f9845 and git diff HEAD empty: outbound (stand-in not installed) let the run complete and the local server received /ping, 'expected [ /ping ] to deeply equal []'; policy (policyUnarmed=false) gave not_run instead of completed, failing the schedule and time-relative pins; api record (record dropped) and time-relative record (record dropped) each gave failed instead of completed. The first outbound ablation went red on an earlier assertion, so the pin was reordered to read the server log first and re-ablated. The update and delete pins cover behaviour this round did not change and were not ablated.",
      "gates": "local: dispatch-gates --ran over 122 derived families with recorded exit codes: 121 run, 1 NOT-MEASURED (check:dual-build-cjs-loads :: exit 3, needs a full build; CI Build Core runs it), 0 UNRUN. The 103 families reading this round's files ran at f1b566279d. check:skill-examples and check:i18n-coverage first exited 3 on a missing prerequisite and exited 0 after the builds. An earlier pass found check-comment-mask-corpus exit 1 (UNPARSEABLE verify.ts, an unterminated string in the --flow help). That was fixed in 07a5495f11, and the corpus exits 0 at the final head. overlap-check VERDICT clean exit 0 against origin/main ad15579576, #35244 and #34717. CI on f1b566279d had not been read when this was posted.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "files_changed": [
        ".changeset/34779-verify-flow-run.md",
        "content/docs/deployment/cli.mdx",
        "packages/cli/src/commands/verify.ts",
        "packages/verify/src/flow-run.ts",
        "packages/verify/src/flow-run.test.ts"
      ],
      "deviations": [
        "origin/main was merged at the start of the round (f2078e3674). It has since moved to ad15579576 (4 commits, none touching this PR's files or verify/cli/service-automation/objectql). Not merged again; overlap-check is clean.",
        "Outbound stop is reported, not counted as a hard failure. That matches skipped and paused; the seat can flip it in summarize().",
        "The stand-in uses the engine's public registerNodeExecutor on the verify stack's own engine; service-automation is not edited.",
        "check:dual-build-cjs-loads NOT MEASURED locally; test:repo and the cli integration tier left to CI; the cli unit tier was not re-run (this round's cli change is help text and a comment)."
      ],
      "pr_body": "Stale lines in the current PR body: 维护者速读 风险与回滚 (outbound 'runs for real'), 先看 (no standInOutbound), 两分钟验证 ('4 个测试'); What changes ('Read-only seams only', the schedule/API/runAs start sentence, the outcome lists); Tests ('four pins'); Acceptance notes Boundary ('run for real') and the app-todo smoke (trigger_unbound); Verification (head 348cc18de6). It also lacks the not-covered line. The corrected body is in the seat's scratchpad file pr-body-r2.md; I did not PATCH the PR body.",
      "mcp_calls": "0",
      "api_writes": "1 this round: this os-dev-report comment on #34779 via post-stamped.mjs. Plus git push of the branch.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "boundary: a plugin-defined node type that calls out under a name other than http, connector_action, notify or script is not stood in; noted in the PR body, not filed",
        "carrier: none · the round-1 note on derive.ts CRUD admitting writable external objects stands unchanged"
      ]
    }
  12. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi
    os-dev-report

    {
      "issue": 34779,
      "status": "done",
      "round": 3,
      "branch": "claude/issue-34779-verify-flow-run",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35243",
      "head_sha": "3d4db25136b66d721c89967d9658172c76dfb8a6",
      "session": "session_01JQwxbYRqkDAGuse5Wqbohi",
      "premise_still_valid": true,
      "summary": "Round 3 on contract record 6989190390. M1: every failing step is now classified as a stand-in stop or not. A stop is the stopped node's own step, or a step whose error carries the stand-in's sentence. The first failure is the first failing step that is not a stop. The verdict becomes stopped with outbound_not_run only when the run failed and no other step did. A stop the run went on past becomes a note. Every stood-in node is listed in the new report field outboundStops. S1: a subflow or map node whose child was stopped carries the child's sentence, so it is recognised in the verify layer. outbound_not_run names the child's node, parsed from the sentence, and the docs say a fault edge on the calling node is still followed. service-automation is not edited. S2: the help text, changeset and cli.mdx now say exactly four types (http, connector_action, notify, script) are not executed, and that a plugin's own outbound node type runs for real. N2: the docs say a time-relative start sets no acting organization. N1 skipped. No new flags.",
      "tests": "flow-run.test.ts 13/13 at 17561e0f98, the last code commit; 3d4db25136 changes prose only. New pins: a try_catch around http followed by a failing Ledger write (verdict failed, node_failed at boom, one hard failure, the stop listed); a parallel branch (fork_boom named); a child flow (stopped, outbound_not_run at child_call, 0 hard failures). The verify full suite at 3d4db25136: 53 files / 458 tests passed. verify and cli typecheck both exit 0 at 3d4db25136. Smoke: os verify --flow todo_task_reminder on app-todo exits 0, with the caught notify listed and the went-on-past note. Ablations through ablation-replace, each red and then restored to blob 835d69e8caba with git diff HEAD empty. m1 (a stop first in the log masks the rest): the caught and parallel pins got 'expected failed, received stopped', 2 failed / 11 passed. s1-child (sentence match off): the child pin got 'expected stopped, received failed', and the parallel pin also went red because its container step carries the sentence, 2 failed / 11 passed.",
      "gates": "Locally, dispatch-gates --ran with recorded exit codes: 122 derived, 121 run, 1 NOT-MEASURED (check:dual-build-cjs-loads :: exit 3, which CI Build Core runs), 0 UNRUN. The 103 families that read this round's files ran at 3d4db25136 and all exited 0. overlap-check VERDICT clean exit 0 against origin/main b02484e13a, #35244 and #34717. Main has moved since the last merge, but its new commits touch none of this PR's files, so it was not merged again. CI was not read at report time.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "files_changed": [
        ".changeset/34779-verify-flow-run.md",
        "content/docs/deployment/cli.mdx",
        "packages/cli/src/commands/verify.ts",
        "packages/verify/src/flow-run.ts",
        "packages/verify/src/flow-run.test.ts"
      ],
      "deviations": [
        "FlowRunReport gains an outboundStops field (an inline type, no new export); cli.mdx's JSON section names it.",
        "A child-flow stop is recognised by the stand-in's sentence in the step's error text. That is a text match on this family's own sentence, not an engine field, because the subflow arm carries no guard class or structured cause and service-automation is out of scope.",
        "This round's cli change is help text only, so the cli unit tier was not re-run. test:repo and the integration tier are left to CI."
      ],
      "pr_body": "The corrected body is in the seat's scratchpad as pr-body-r3.md; the PR body was not PATCHed.",
      "mcp_calls": "0",
      "api_writes": "1 this round: this comment via post-stamped.mjs. Plus a git push.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "boundary: an object's declared webhooks fire on record events, not through flow nodes, so they are outside the stand-in; delivery from the verify boot is not measured, and this is noted in the PR body",
        "carrier: none · the round-1 note on derive.ts CRUD and writable external objects stands unchanged"
      ]
    }
  13. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi

    Closed by merge · 2026-11-18T20:59Z: PR #35243 merged (Fixes #34779). os verify --flow NAME (with --flow-record / --flow-input) runs one flow once on a fresh in-memory boot. It reports each node's status, a node with no executor and an unbound trigger (each named), the first failure and every write. Writes stay on the ephemeral default driver. The four outbound node types are not executed locally (seat ruling A). The contract record of record is 6990247650 (TIER_DEFAULT, PASS), and L1-a ACCEPT is 6990771676. Follow-up filed by the seat: #35255. pm:dispatched and lease:o1-B are removed.

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

Metadata

Metadata

Assignees

Labels

area:clouddomain:serverpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions