You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
flows: an option label in a get_record / update_record filter or a decision edge condition silently matches nothing, and os validate says nothing #36964
area:buildbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p1High: required for production / M2
Filing gate: ① a defect measured by the patch-round dev of #36718 (PR #36932, report 7129961596 on #36718, out_of_scope_findings class c); filed by the seat (dev agents never file cards). Untriaged: grade, domain and state are triage's.
What happens (measured, scratch dogfood probe on the ec3822d tree)
A select field with inline options Open/open, Lost/lost; two rows stored lost. Through the public trigger route POST /api/v1/automation/NAME/trigger:
get_record with filter { status: 'Lost' } (the label): HTTP 200, success: true, 0 selected (control with the value lost: 2).
update_record with the same filter, multi: true: success: true, 0 acted, rows untouched (control: 2).
a decision edge condition deal.status == 'Lost': success: true, the branch is skipped (control lost: taken).
No invalid_option in any response.
os validate (runAuthoringRules('validate')) reports nothing on these shapes: flow-node-write-unknown-option reads node fields only, flow-condition-option-label reads the start condition only. The same label in a start condition or in fields IS refused.
Expected
A flow that compares or filters a select field against an option LABEL is told so before it runs — the two option-label rules extend to CRUD filter operands and edge conditions (one family card) — instead of silently matching nothing.
Pointers
packages/lint/src/validate-flow-node-writes.ts, packages/lint/src/validate-flow-trigger-readiness.ts, packages/lint/src/flow-select-options.ts. The automation skill (PR #36932) now teaches the silent behaviour as the trap; it would read "refused" once this lands.
Dedupe: flow-node-write-unknown-option filter, option label filter operand, edge condition option label, flow-condition-option-label decision edge — no open card found.
Triage: lands in area:build · domain:server · priority:p2 · Bug · pm:queue · size S.
Rationale: measured. A builder who writes an option's label instead of its stored value in a flow filter or a decision condition gets a flow that silently does nothing, and os validate says nothing. Builders write labels often, so p2. The fix belongs at build time, as a check that names the label and the value it should be, beside the expression checks of #36237. So it is area:build, and repo:objectstack#7 takes it under the maintainer's routing.
Triage: lands in area:build · domain:server · Bug · priority:p1 · pm:queue · size M; rationale: an option label in a flow get_record / update_record filter or a decision condition matches nothing, while the run reports success and os validate says nothing. The automation silently skips its work, which is data silently wrong, so p1.
Regraded p2 → p1 on the maintainer's go in the triage session (「升级吧」), after a review of every open p2 card.
Claim: PM loop round 5
Session: session_01Utp6CY2uhJ1AYNPw5TUSVS
Account: os-bill
Branch: claude/issue-36964-flow-option-label-filters
Worktree: objectstack-issue-36964
Domain: domain:server
Seat: repo:objectstack#5
Area: o5-P
File surface: packages/lint/src/validate-flow-node-writes.ts, packages/lint/src/validate-flow-trigger-readiness.ts, packages/lint/src/flow-select-options.ts and their *.test.ts; one changeset. NOT skills/** (the automation skill's trap sentence is governed text: report it as a follow-up, do not edit it). NOT packages/lint/src/authoring-rules.ts, rule-explanations.ts, index.ts (held by open PR #37422) (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: the two option-label rules were written for node fields and the start condition only; CRUD filter operands and decision edge conditions were never read (card body, measured on ec3822d)
Thread-read: none
Premise: holds — read at origin/main eaa9e54 2026-11-26T08:24Z: FLOW_NODE_WRITE_UNKNOWN_OPTION (validate-flow-node-writes.ts L158) and FLOW_CONDITION_OPTION_LABEL (validate-flow-trigger-readiness.ts L417) still exist under the card's names; the card's measured shapes are not re-measured here.
Serial constraints cleared: open PRs #37422 and #37436 touch packages/lint/src/ but none of the three files on this surface; #37422's registry files are fenced out above.
Pre-claim lane: domain:server, area:build p1 (triage regrade by hotlong 2026-11-26T06:59Z on the maintainer's go); zone o5-P.
Pre-claim deps: Blocked-by: none (card body).
Prior rulings read: option,label,flow → hits ADR-0061 D4 (label↔value resolves server-side: a label in an authored filter is not resolved, so refusing it agrees), ADR-0044 D2, ADR-0003 Decision §2; thread: none; repo: objectstack-ai/objectstack.
{
"issue": 36964,
"status": "done",
"branch": "claude/issue-36964-flow-option-label-filters",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37491",
"session": "session_01Utp6CY2uhJ1AYNPw5TUSVS",
"premise_still_valid": true,
"head": "4e9c077b1",
"summary": "flow-condition-option-label (error, its existing severity) now reads past the start condition: every operand of a get_record / update_record / delete_record filter (node types derived from the spec expression ledger's filterOperands entries) at any region depth plus a time-relative timeRelative.filter, via the spec's flowFilterOperands walk (implicit equality, $eq/$ne, $in/$nin members, under $and/$or/$not); and every edge condition and decision conditions[].expression, against the trigger record (record.F / previous.F / bare F unless shadowed by a binding) on record-change or time-relative flows and the row a single-row get_record bound to its outputVariable (deal.F), skipping any variable something else also binds. Premise held on eaa9e5447: both rules read only fields / start condition; A1 measured true. One existing id extended, no new id: the filter goes to flow-condition-option-label, not flow-node-write-unknown-option, because the write rule's verdict (record validator refuses invalid_option, step fails) is false for a filter operand, which nothing refuses; validate-flow-node-writes.ts gets a comment saying so and no code. authoring-rules.ts / rule-explanations.ts / index.ts untouched.",
"files": ".changeset/36964-flow-option-label-filters.md +17/-0; packages/lint/src/flow-publish-checks-second-batch.test.ts +158/-0; packages/lint/src/flow-select-options.ts +108/-10; packages/lint/src/validate-flow-node-writes.ts +5/-0 (comment only); packages/lint/src/validate-flow-trigger-readiness.ts +240/-2; total 5 files +528/-12",
"severities": "error at every new position (A2): the start condition's severity, on the #5762 criterion in the trigger-readiness header (is this stack enough to know: the label, the inline options and the object are all in the stack, nothing installed changes what the row stores). flow-node-write-unknown-option keeps error and gains no shape. Escape hatch for a deliberate label filter (clean-up of rows stored before an options change): a CEL value envelope operand, which is not judged; stated in the changeset and the constant's docblock.",
"tests": "At head 4e9c077b1. New top-level describe in packages/lint/src/flow-publish-checks-second-batch.test.ts (the existing shared harness pinning both ids), 9 cases: label in get_record filter (path flows[0].nodes[1].config.filter.stage, severity error, exact hint), update_record $eq, delete_record $or + $in member + multiselect, $ne message 'excludes no record', filter in a loop body, time-relative filter, decision edge deal.stage == 'Closed Lost' over get_record outputVariable deal (string and CEL envelope), record-change edge on record.stage, decision conditions[0].expression, bare read reported and shadowed-bare silent -> reported; value -> silent; CEL envelope operand, a double-brace template string operand, envelope $in member, variable comparand, double-brace comparand -> silent (A3); limit 5, templated objectName, name also declared as a variable, bare read on a manual flow -> silent; os validate (runAuthoringRules('validate')) reports and runtime publish gate refuses both an edge flow and a filter flow. Runs: `pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/flow-publish-checks-second-batch.test.ts` -> Test Files 1 passed (1), Tests 44 passed (44); full `pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2` -> Test Files 236 passed (236), Tests 9665 passed | 5 skipped (9670), lock VERDICT command-exit 0; `pnpm --filter @objectstack/lint typecheck` -> lock VERDICT command-exit 0 (tsc --noEmit + check:test-typecheck OK, debt ledger unchanged at 2 files / 6 errors); eslint --no-inline-config on the 3 edited .ts files -> exit 0. Ablations (one per new read site, scripts/ablation-replace.mjs wrap mode, each: anchor x1 -> x0, blob moved, restored blob == HEAD a8aad6094562, git diff HEAD empty; subject resolves to src so no dist leg): CRUD filter walk guard -> unconditional continue: 5 failed / 39 passed; sweep timeRelative.filter branch unreachable: 1 failed / 43; edges loop unreachable: 4 failed / 40; decision guard always-skip: 1 failed / 43; get_record row reader push removed: 3 failed / 41. First CRUD-filter attempt used replacement 'continue;' (already 17 occurrences) and was refused by the tool (count did not rise by 1), nothing ran; redone with a distinct replacement, that run is the one cited.",
"gates": "Local: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 64 families at 4e9c077b1; each run with exit captured before any pipe; `--ran` with ':: exit N' lines -> 'dispatch-gates --ran: 64 derived famil(ies) accounted for -- 59 run, 5 NOT-MEASURED'. 59 exit 0 (incl. check:nul-bytes, check:doc-authoring, check:issue-citations, check:cross-package-test-inputs, check:test-source-alias, check:type-check-coverage, check:published-files, check:adr-0087-registration, check:changeset-no-major, check:empty-changeset; check:docs-transcript-drift first exited 3 PREREQUISITE lint dist absent, re-run after `pnpm --filter @objectstack/lint build` -> exit 0, '4 declared transcript value(s) across 499 page(s) ... equal'). NOT MEASURED (5): check-plugin-teardown-shape --self-test exit 3 (shallow clone, fixture commit unreachable); check:dual-build-cjs-loads exit 3 (needs full pnpm build); check:lean-entry-closure exit 3 (objectql dist absent); check:query-options-erasure and check:type-check-debt killed by my own 300 s per-gate timeout (exit 124) on the shared box, recorded as not measured -- CI ran both green (see below). Declared narrowing: the five are left to CI. CI at report time on 4e9c077b1: success -- Lint & Repo Gates, Lint · ESLint, Lint · scoped · query-options erasure, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · repo & tooling gates, Lint · CI, release & engine gates, Lint · scoped · tooling self-tests, Lint · scoped · slot lookup & corpus, TypeScript Type Check, Type Check · workspace / source gates / consumer gates / debt ledger, Build Core, Test Core (1..10/10 all success), Test UI (all 16 shards + aggregate), Type Check UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Governed Surface Queue Guard, Check Changeset, Check PR Size, PR-body guards, Flag docs affected; Lint UI skipped; Test Core aggregate in_progress (all 10 shards success).",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3 REST writes through the fleet-write relay (2 dispatches): pr_create -> POST /repos/objectstack-ai/objectstack/pulls (draft, #37491, body read back 8845/8845 bytes identical) + POST /repos/objectstack-ai/objectstack/issues/37491/assignees (os-bill, read back); report comment -> POST /repos/objectstack-ai/objectstack/issues/36964/comments via post-stamped.mjs. Plus git push (not REST). Card reads via gh api (GET only).",
"deviations": "(1) Tests live in flow-publish-checks-second-batch.test.ts, not validate-flow-*.test.ts: it is the existing shared harness that pins both option-label ids (AGENTS.md: a new pin for a component with a shared harness goes into that file as a top-level describe). (2) Only flow-condition-option-label is extended; flow-node-write-unknown-option gains no shape (reason in summary). (3) Read sites beyond the card's named three, same family: delete_record filter (derived from the spec ledger, 'any other node taking the same filter shape'), a time-relative start's timeRelative.filter, and decision conditions[].expression (the decision node's other branch mechanism). (4) PR body footer uses the AGENTS.md session-URL form, not the harness reminder's line, per the precedence the reminder itself states.",
"open_questions": [
{
"question": "os-dev.md rule 3 says a shipped text this change makes false must be fixed in the same round, while the dispatch fences skills/** and asks for a follow-up. skills/objectstack-automation/SKILL.md section 4 says 'A label in a filter or an edge condition is never checked: it silently matches nothing', which goes false when this PR merges. I followed the fence and did not edit it. Which rule wins?",
"options": [
"A: follow-up skills-only PR (Tier S wording), queued to land right after this one",
"B: add the sentence edit to this PR, which makes it a governed-surface PR"
],
"recommendation": "A, because it keeps this PR ungoverned and the skill edit is a one-sentence wording change the seat can land on a contract review; the false window is only the gap between the two merges"
},
{
"question": "The os explain text for flow-condition-option-label (rule-explanations.ts) covers 'why a start condition compares option values' and describes the start condition only. The file is fenced (held by open PR #37422). Who updates it?",
"options": [
"A: the seat adds it to a follow-up after #37422 lands",
"B: the holder of #37422 folds it in"
],
"recommendation": "A, because #37422 has its own scope and the explanation edit is one paragraph"
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: repo:objectstack#5 seat (os-bill) · skills/objectstack-automation/SKILL.md section 4 trap sentence ('A label in a filter or an edge condition is never checked: it silently matches nothing') becomes false when PR #37491 merges; governed skills text, fenced on this card; noted, not filed · dedupe words: automation skill option label filter, select compared by value skill",
"carrier: repo:objectstack#5 seat (os-bill) · packages/lint/src/rule-explanations.ts FLOW_CONDITION_OPTION_LABEL_EXPLANATION ('why a start condition compares option values') describes the start condition only; fenced (open PR #37422); noted, not filed · dedupe words: flow-condition-option-label explanation, os explain option label",
"carrier: none · positions this PR deliberately leaves unjudged, in PR Acceptance notes only: a time-relative start's own config.condition, node-level config.condition on non-start nodes, NODE_ID.record.F reads, a loop iterator over a list get_record, nested-relation filter conditions"
]
}
Claim amendment to comment 7186576390 (zone o5-P) · 2026-11-26T09:33Z
Reason: contract review 7188130381 on PR #37491 (VERDICT FAIL, M1): the diff narrows the accept set of os validate and the publish gate at error, so the claim's declaration was a false no.
Clause-②: no (narrowing)
Metadata-protocol: narrowed
File surface addition: packages/spec/src/migrations/entries/semantic/18.publish-refuses-flows-that-save-and-do-not-run.ts (extend the entry's surface to the new positions, per ADR-0087 not-required (already-registered …), precedent .changeset/36237-hop-list-equality.md) and whatever generated artifact that entry's own gate regenerates; the changeset level moves patch → minor. Still NOT: authoring-rules.ts, rule-explanations.ts, index.ts (open PR #37422), skills/** (#37504).
Review owed: the narrowing face at CONTRACT_REVIEW_TIER on the corrected head.
{
"issue": 36964,
"status": "done",
"branch": "claude/issue-36964-flow-option-label-filters",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37491",
"session": "session_01Utp6CY2uhJ1AYNPw5TUSVS",
"premise_still_valid": true,
"head": "7093e465e",
"round": "rework after contract review 7188130381 (FAIL); claim amendment 7188149229 read",
"summary": "Rework, one push (4e9c077b1 -> 7093e465e, two commits). M1: the changeset is now '@objectstack/lint': minor plus '@objectstack/spec': patch (the entry edit ships in spec). It carries Clause-②: no (narrowing), Metadata-protocol: narrowed, Skills-docs: follow-up #37504, the ADR-0087 marker not-required (already-registered publish-refuses-flows-that-save-and-do-not-run) with its reason, a BREAKING banner, FROM -> TO for the filter and the edge/decision condition, a one-line fix, and the CEL-envelope escape stated for filters only, following the shape of the 36237 and 35143 changesets. The entry's surface in packages/spec/src/migrations/entries/semantic/18.publish-refuses-flows-that-save-and-do-not-run.ts now names the edge condition, the decision branch and the get_record/update_record/delete_record/timeRelative filter operand beside the start condition. Only surface was edited; replacement and reason are unchanged. No generated artifact changed: the registry is gitignored, check:spec-changes and check:upgrade-guide generate in memory and are green, and git status was clean after the spec build. The PR title is now fix(lint)!, and the PR body carries the three declaration lines and the BREAKING paragraph, both patched through the relay with issue_patch. S1: a record or previous root that collectFlowVariableNames or a screen field reports as bound is dropped from the trigger reader; bare reads keep their own shadow set. S2: tests added for an edge in a loop body and a decision branch in a parallel branch; $not over $ne, $nin and $and; a time-relative trigger record and previous.F; the ambiguity drop when two get_record steps bind different objects; and the node-id and screen-field shadows, for both a row variable and a bare read. N2: the changeset says readonly selects are still judged and that edge and decision conditions have no envelope escape. N3: the docblock now says (1-iv). N1: unchanged, per the order.",
"files": ".changeset/36964-flow-option-label-filters.md +30/-0; packages/lint/src/flow-publish-checks-second-batch.test.ts +284/-0; packages/lint/src/flow-select-options.ts +108/-10; packages/lint/src/validate-flow-node-writes.ts +5/-0; packages/lint/src/validate-flow-trigger-readiness.ts +245/-2; packages/spec/src/migrations/entries/semantic/18.publish-refuses-flows-that-save-and-do-not-run.ts +4/-2; total 6 files +676/-14 vs eaa9e5447",
"severities": "Unchanged from round 1: error at every new position, the start condition's severity, on the #5762 criterion.",
"tests": "At head 7093e465e. The harness `pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/flow-publish-checks-second-batch.test.ts` gives Test Files 1 passed (1), Tests 49 passed (49): 44 before, plus 5 new cases for S1/S2. The full `pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2` gives Test Files 236 passed (236), Tests 9675 passed (9675), lock VERDICT command-exit 0. `pnpm --filter @objectstack/lint typecheck` gives lock VERDICT command-exit 0 (check:test-typecheck OK, debt unchanged). `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/migrations` gives Test Files 5 passed (5), Tests 201 passed (201). After building the cli closure, `pnpm --filter @objectstack/cli exec vitest run --project integration test/migrate-meta-engine-guidance.test.ts` gives Test Files 1 passed (1), Tests 3 passed (3); the derived spelling without --project also passes once the closure is built. eslint --no-inline-config on the edited lint and spec files: exit 0. S1 ablation, through scripts/ablation-replace.mjs wrap mode: anchor `const roots = TRIGGER_RECORD_READS.roots.filter((root) =` ... replaced by the unfiltered roots. Anchor x1 -> x0, blob 1fced8487bd5 -> dd6400f73ab3, then 1 failed / 48 passed (the rebound-record case), restored blob == HEAD 1fced8487bd5 and git diff HEAD empty. The five round-1 ablations stand as reported.",
"gates": "Changeset and ADR-0087 gates, local at 7093e465e, all exit 0: check-adr-0087-registration --base origin/main ('1 declared-breaking changeset(s) ... [BREAKING+bang+clause-②-narrowing+metadata-protocol-narrowed] not-required (already-registered)'), check-changeset-no-major --base origin/main ('no major bump'; its level axis is NOT APPLICABLE locally, since there is no pull_request payload), check-empty-changeset --base origin/main, spec check:spec-changes, spec check:upgrade-guide. Derived list: 91 families at 7093e465e, and --ran with ':: exit N' answers '91 derived famil(ies) accounted for -- 88 run, 3 NOT-MEASURED'. Two of the 88 needed a build first. The cli guidance test's first run exited 1 because the cli closure was absent (an oclif manifest write failed before collection); after `pnpm --filter '@objectstack/cli^...' build` it exited 0. check:lean-entry-closure first exited 3 (objectql dist absent), then exited 0. NOT MEASURED (3): check-plugin-teardown-shape --self-test exit 3 (shallow clone); check:dual-build-cjs-loads exit 3 (needs a full build); check:type-check-debt killed by my own 420 s timeout (124) on the shared box. All three are left to CI. The derivation warns STALE TREE: the branch is 6 commits behind origin/main and 3 files it derives from changed upstream. I did not merge main, because there is no conflict and no main-caused red. CI on 7093e465e at report time: 59 success, 13 skipped, 1 failure. The failure is Check Changeset job 139838894975, the synchronize run started 10:15:06Z. It read the PR body from before my issue_patch, which landed at 10:15:18Z, and its log says 'This PR declares clause-② `no` and metadata-protocol `none` ... @objectstack/lint: minor'. The edited-event run 139839481919 (10:16:09Z) read the patched body and is success. Root cause: ordering. I pushed before patching the body, so the push-time run saw the round-1 declaration; nothing in the diff is wrong. The stale failure stays listed on the head until a later run supersedes it.",
"dogfood_battery": "7093e465e · os-verify-lock: VERDICT command-exit 0 (held 42m58s, shared box) · Test Files 487 passed | 3 skipped (490) · Tests 4129 passed | 68 skipped (4197) · no failures. The first attempt exited 2 before any test ran: I wrote `--concurrency=2` after `build`, pnpm forwarded it to the cli build script, and tsc refused it. Rerun with `pnpm --workspace-concurrency=2 --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test`.",
"mcp_calls": "0",
"api_writes": "This round, 2 REST writes through the relay: issue_patch -> PATCH /repos/objectstack-ai/objectstack/issues/37491 (title and body, read back 11883/11883 bytes identical; title read back as fix(lint)!: ...), and this report comment -> POST /repos/objectstack-ai/objectstack/issues/36964/comments via post-stamped.mjs. One earlier issue_patch was refused by the relay before sending, so nothing was written. Plus one git push. Round 1: 3 writes, as reported.",
"deviations": "(1) The PR body now ends with the trailer `signed: repo:objectstack#5 · os-bill · session_...` inside an HTML comment, as its last line. The relay refused issue_patch without a signature, and line 1 must stay `Fixes #36964`, so the trailer is the only form it accepts on a PR. os-dev.md permits this trailer only when a dispatch order asks for it. The relay requires it, so I report it here. (2) '@objectstack/spec': patch was added to the changeset because the entry edit ships in spec, as in the 35143 precedent. (3) S1 also drops a record or previous root that a declared flow variable binds, not only the three binders named, because collectFlowVariableNames reports all of them. This direction is conservative: it can only silence a finding. (4) The PR body's ablation table keeps the five round-1 rows with their round-1 test totals and adds the S1 row.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: #37504 · skills/objectstack-automation/SKILL.md section 4 trap sentence and rule-explanations.ts FLOW_CONDITION_OPTION_LABEL_EXPLANATION, both answered A in the review; noted, not filed",
"carrier: none · positions left unjudged on purpose (a time-relative start's own config.condition, node-level config.condition, NODE_ID.record.F reads, a loop iterator over a list get_record, nested relations); PR Acceptance notes only"
]
}
Close-out (zone o5-P) · 2026-11-26T12:00Z
Delivered: PR #37491 merged (227e952): the publish check flow-condition-option-label (error, no new rule id) now covers get_record / update_record / delete_record filter values, timeRelative filters, edge conditions and decision branches, not only start conditions. Comparing a choice field to an option label is refused there; the flow's rebound record / previous roots are no longer judged, and the changeset lists that new miss. Declared narrowing (lint minor, spec patch, BREAKING FROM → TO, ADR-0087 already-registered marker, entry surface extended). Seat contract PASS 7190372362 at CONTRACT_REVIEW_TIER, ACCEPT 7190384001. The zone's 11:13Z landing (7190441059) was withdrawn: the Governed Surface Guard refused the merge group under the 2026-11-19 narrowed-spec ruling on #35321. The seat handed it off (7190771126), and os-zhuang approved and enqueued it.
State: pm:dispatched removed with the close. Remaining: #37504 (skills wording).
area:buildbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p1High: required for production / M2
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: lands in
area:build·domain:server·priority:p2· Bug ·pm:queue· size S.Rationale: measured. A builder who writes an option's label instead of its stored value in a flow filter or a decision condition gets a flow that silently does nothing, and
os validatesays nothing. Builders write labels often, so p2. The fix belongs at build time, as a check that names the label and the value it should be, beside the expression checks of #36237. So it isarea:build, and repo:objectstack#7 takes it under the maintainer's routing.objectstack-fleet commentedon Nov 26, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:build · domain:server · Bug · priority:p1 ·
pm:queue· size M; rationale: an option label in a flow get_record / update_record filter or a decision condition matches nothing, while the run reports success andos validatesays nothing. The automation silently skips its work, which is data silently wrong, so p1.Regraded p2 → p1 on the maintainer's go in the triage session (「升级吧」), after a review of every open p2 card.
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CY2uhJ1AYNPw5TUSVS
Claim: PM loop round 5
Session:
session_01Utp6CY2uhJ1AYNPw5TUSVSAccount:
os-billBranch:
claude/issue-36964-flow-option-label-filtersWorktree:
objectstack-issue-36964Domain:
domain:serverSeat:
repo:objectstack#5Area: o5-P
File surface:
packages/lint/src/validate-flow-node-writes.ts,packages/lint/src/validate-flow-trigger-readiness.ts,packages/lint/src/flow-select-options.tsand their*.test.ts; one changeset. NOTskills/**(the automation skill's trap sentence is governed text: report it as a follow-up, do not edit it). NOTpackages/lint/src/authoring-rules.ts,rule-explanations.ts,index.ts(held by open PR #37422) (stop on breach; explain in the report)Container & model: M, mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: the two option-label rules were written for node
fieldsand the start condition only; CRUD filter operands and decision edge conditions were never read (card body, measured on ec3822d)Thread-read: none
Premise: holds — read at origin/main eaa9e54 2026-11-26T08:24Z:
FLOW_NODE_WRITE_UNKNOWN_OPTION(validate-flow-node-writes.ts L158) andFLOW_CONDITION_OPTION_LABEL(validate-flow-trigger-readiness.ts L417) still exist under the card's names; the card's measured shapes are not re-measured here.Serial constraints cleared: open PRs #37422 and #37436 touch
packages/lint/src/but none of the three files on this surface; #37422's registry files are fenced out above.Pre-claim lane:
domain:server, area:build p1 (triage regrade by hotlong 2026-11-26T06:59Z on the maintainer's go); zone o5-P.Pre-claim deps:
Blocked-by: none(card body).Prior rulings read: option,label,flow → hits ADR-0061 D4 (label↔value resolves server-side: a label in an authored filter is not resolved, so refusing it agrees), ADR-0044 D2, ADR-0003 Decision §2; thread: none; repo: objectstack-ai/objectstack.
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CY2uhJ1AYNPw5TUSVS
os-dev-report
{ "issue": 36964, "status": "done", "branch": "claude/issue-36964-flow-option-label-filters", "pr": "https://github.com/objectstack-ai/objectstack/pull/37491", "session": "session_01Utp6CY2uhJ1AYNPw5TUSVS", "premise_still_valid": true, "head": "4e9c077b1", "summary": "flow-condition-option-label (error, its existing severity) now reads past the start condition: every operand of a get_record / update_record / delete_record filter (node types derived from the spec expression ledger's filterOperands entries) at any region depth plus a time-relative timeRelative.filter, via the spec's flowFilterOperands walk (implicit equality, $eq/$ne, $in/$nin members, under $and/$or/$not); and every edge condition and decision conditions[].expression, against the trigger record (record.F / previous.F / bare F unless shadowed by a binding) on record-change or time-relative flows and the row a single-row get_record bound to its outputVariable (deal.F), skipping any variable something else also binds. Premise held on eaa9e5447: both rules read only fields / start condition; A1 measured true. One existing id extended, no new id: the filter goes to flow-condition-option-label, not flow-node-write-unknown-option, because the write rule's verdict (record validator refuses invalid_option, step fails) is false for a filter operand, which nothing refuses; validate-flow-node-writes.ts gets a comment saying so and no code. authoring-rules.ts / rule-explanations.ts / index.ts untouched.", "files": ".changeset/36964-flow-option-label-filters.md +17/-0; packages/lint/src/flow-publish-checks-second-batch.test.ts +158/-0; packages/lint/src/flow-select-options.ts +108/-10; packages/lint/src/validate-flow-node-writes.ts +5/-0 (comment only); packages/lint/src/validate-flow-trigger-readiness.ts +240/-2; total 5 files +528/-12", "severities": "error at every new position (A2): the start condition's severity, on the #5762 criterion in the trigger-readiness header (is this stack enough to know: the label, the inline options and the object are all in the stack, nothing installed changes what the row stores). flow-node-write-unknown-option keeps error and gains no shape. Escape hatch for a deliberate label filter (clean-up of rows stored before an options change): a CEL value envelope operand, which is not judged; stated in the changeset and the constant's docblock.", "tests": "At head 4e9c077b1. New top-level describe in packages/lint/src/flow-publish-checks-second-batch.test.ts (the existing shared harness pinning both ids), 9 cases: label in get_record filter (path flows[0].nodes[1].config.filter.stage, severity error, exact hint), update_record $eq, delete_record $or + $in member + multiselect, $ne message 'excludes no record', filter in a loop body, time-relative filter, decision edge deal.stage == 'Closed Lost' over get_record outputVariable deal (string and CEL envelope), record-change edge on record.stage, decision conditions[0].expression, bare read reported and shadowed-bare silent -> reported; value -> silent; CEL envelope operand, a double-brace template string operand, envelope $in member, variable comparand, double-brace comparand -> silent (A3); limit 5, templated objectName, name also declared as a variable, bare read on a manual flow -> silent; os validate (runAuthoringRules('validate')) reports and runtime publish gate refuses both an edge flow and a filter flow. Runs: `pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/flow-publish-checks-second-batch.test.ts` -> Test Files 1 passed (1), Tests 44 passed (44); full `pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2` -> Test Files 236 passed (236), Tests 9665 passed | 5 skipped (9670), lock VERDICT command-exit 0; `pnpm --filter @objectstack/lint typecheck` -> lock VERDICT command-exit 0 (tsc --noEmit + check:test-typecheck OK, debt ledger unchanged at 2 files / 6 errors); eslint --no-inline-config on the 3 edited .ts files -> exit 0. Ablations (one per new read site, scripts/ablation-replace.mjs wrap mode, each: anchor x1 -> x0, blob moved, restored blob == HEAD a8aad6094562, git diff HEAD empty; subject resolves to src so no dist leg): CRUD filter walk guard -> unconditional continue: 5 failed / 39 passed; sweep timeRelative.filter branch unreachable: 1 failed / 43; edges loop unreachable: 4 failed / 40; decision guard always-skip: 1 failed / 43; get_record row reader push removed: 3 failed / 41. First CRUD-filter attempt used replacement 'continue;' (already 17 occurrences) and was refused by the tool (count did not rise by 1), nothing ran; redone with a distinct replacement, that run is the one cited.", "gates": "Local: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 64 families at 4e9c077b1; each run with exit captured before any pipe; `--ran` with ':: exit N' lines -> 'dispatch-gates --ran: 64 derived famil(ies) accounted for -- 59 run, 5 NOT-MEASURED'. 59 exit 0 (incl. check:nul-bytes, check:doc-authoring, check:issue-citations, check:cross-package-test-inputs, check:test-source-alias, check:type-check-coverage, check:published-files, check:adr-0087-registration, check:changeset-no-major, check:empty-changeset; check:docs-transcript-drift first exited 3 PREREQUISITE lint dist absent, re-run after `pnpm --filter @objectstack/lint build` -> exit 0, '4 declared transcript value(s) across 499 page(s) ... equal'). NOT MEASURED (5): check-plugin-teardown-shape --self-test exit 3 (shallow clone, fixture commit unreachable); check:dual-build-cjs-loads exit 3 (needs full pnpm build); check:lean-entry-closure exit 3 (objectql dist absent); check:query-options-erasure and check:type-check-debt killed by my own 300 s per-gate timeout (exit 124) on the shared box, recorded as not measured -- CI ran both green (see below). Declared narrowing: the five are left to CI. CI at report time on 4e9c077b1: success -- Lint & Repo Gates, Lint · ESLint, Lint · scoped · query-options erasure, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · repo & tooling gates, Lint · CI, release & engine gates, Lint · scoped · tooling self-tests, Lint · scoped · slot lookup & corpus, TypeScript Type Check, Type Check · workspace / source gates / consumer gates / debt ledger, Build Core, Test Core (1..10/10 all success), Test UI (all 16 shards + aggregate), Type Check UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Governed Surface Queue Guard, Check Changeset, Check PR Size, PR-body guards, Flag docs affected; Lint UI skipped; Test Core aggregate in_progress (all 10 shards success).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 REST writes through the fleet-write relay (2 dispatches): pr_create -> POST /repos/objectstack-ai/objectstack/pulls (draft, #37491, body read back 8845/8845 bytes identical) + POST /repos/objectstack-ai/objectstack/issues/37491/assignees (os-bill, read back); report comment -> POST /repos/objectstack-ai/objectstack/issues/36964/comments via post-stamped.mjs. Plus git push (not REST). Card reads via gh api (GET only).", "deviations": "(1) Tests live in flow-publish-checks-second-batch.test.ts, not validate-flow-*.test.ts: it is the existing shared harness that pins both option-label ids (AGENTS.md: a new pin for a component with a shared harness goes into that file as a top-level describe). (2) Only flow-condition-option-label is extended; flow-node-write-unknown-option gains no shape (reason in summary). (3) Read sites beyond the card's named three, same family: delete_record filter (derived from the spec ledger, 'any other node taking the same filter shape'), a time-relative start's timeRelative.filter, and decision conditions[].expression (the decision node's other branch mechanism). (4) PR body footer uses the AGENTS.md session-URL form, not the harness reminder's line, per the precedence the reminder itself states.", "open_questions": [ { "question": "os-dev.md rule 3 says a shipped text this change makes false must be fixed in the same round, while the dispatch fences skills/** and asks for a follow-up. skills/objectstack-automation/SKILL.md section 4 says 'A label in a filter or an edge condition is never checked: it silently matches nothing', which goes false when this PR merges. I followed the fence and did not edit it. Which rule wins?", "options": [ "A: follow-up skills-only PR (Tier S wording), queued to land right after this one", "B: add the sentence edit to this PR, which makes it a governed-surface PR" ], "recommendation": "A, because it keeps this PR ungoverned and the skill edit is a one-sentence wording change the seat can land on a contract review; the false window is only the gap between the two merges" }, { "question": "The os explain text for flow-condition-option-label (rule-explanations.ts) covers 'why a start condition compares option values' and describes the start condition only. The file is fenced (held by open PR #37422). Who updates it?", "options": [ "A: the seat adds it to a follow-up after #37422 lands", "B: the holder of #37422 folds it in" ], "recommendation": "A, because #37422 has its own scope and the explanation edit is one paragraph" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: repo:objectstack#5 seat (os-bill) · skills/objectstack-automation/SKILL.md section 4 trap sentence ('A label in a filter or an edge condition is never checked: it silently matches nothing') becomes false when PR #37491 merges; governed skills text, fenced on this card; noted, not filed · dedupe words: automation skill option label filter, select compared by value skill", "carrier: repo:objectstack#5 seat (os-bill) · packages/lint/src/rule-explanations.ts FLOW_CONDITION_OPTION_LABEL_EXPLANATION ('why a start condition compares option values') describes the start condition only; fenced (open PR #37422); noted, not filed · dedupe words: flow-condition-option-label explanation, os explain option label", "carrier: none · positions this PR deliberately leaves unjudged, in PR Acceptance notes only: a time-relative start's own config.condition, node-level config.condition on non-start nodes, NODE_ID.record.F reads, a loop iterator over a list get_record, nested-relation filter conditions" ] }objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CY2uhJ1AYNPw5TUSVS
Claim amendment to comment 7186576390 (zone o5-P) · 2026-11-26T09:33Z
Reason: contract review 7188130381 on PR #37491 (VERDICT FAIL, M1): the diff narrows the accept set of
os validateand the publish gate aterror, so the claim's declaration was a falseno.Clause-②: no (narrowing)
Metadata-protocol: narrowed
File surface addition:
packages/spec/src/migrations/entries/semantic/18.publish-refuses-flows-that-save-and-do-not-run.ts(extend the entry'ssurfaceto the new positions, per ADR-0087not-required (already-registered …), precedent.changeset/36237-hop-list-equality.md) and whatever generated artifact that entry's own gate regenerates; the changeset level movespatch→minor. Still NOT:authoring-rules.ts,rule-explanations.ts,index.ts(open PR #37422),skills/**(#37504).Review owed: the narrowing face at CONTRACT_REVIEW_TIER on the corrected head.
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CY2uhJ1AYNPw5TUSVS
os-dev-report
{ "issue": 36964, "status": "done", "branch": "claude/issue-36964-flow-option-label-filters", "pr": "https://github.com/objectstack-ai/objectstack/pull/37491", "session": "session_01Utp6CY2uhJ1AYNPw5TUSVS", "premise_still_valid": true, "head": "7093e465e", "round": "rework after contract review 7188130381 (FAIL); claim amendment 7188149229 read", "summary": "Rework, one push (4e9c077b1 -> 7093e465e, two commits). M1: the changeset is now '@objectstack/lint': minor plus '@objectstack/spec': patch (the entry edit ships in spec). It carries Clause-②: no (narrowing), Metadata-protocol: narrowed, Skills-docs: follow-up #37504, the ADR-0087 marker not-required (already-registered publish-refuses-flows-that-save-and-do-not-run) with its reason, a BREAKING banner, FROM -> TO for the filter and the edge/decision condition, a one-line fix, and the CEL-envelope escape stated for filters only, following the shape of the 36237 and 35143 changesets. The entry's surface in packages/spec/src/migrations/entries/semantic/18.publish-refuses-flows-that-save-and-do-not-run.ts now names the edge condition, the decision branch and the get_record/update_record/delete_record/timeRelative filter operand beside the start condition. Only surface was edited; replacement and reason are unchanged. No generated artifact changed: the registry is gitignored, check:spec-changes and check:upgrade-guide generate in memory and are green, and git status was clean after the spec build. The PR title is now fix(lint)!, and the PR body carries the three declaration lines and the BREAKING paragraph, both patched through the relay with issue_patch. S1: a record or previous root that collectFlowVariableNames or a screen field reports as bound is dropped from the trigger reader; bare reads keep their own shadow set. S2: tests added for an edge in a loop body and a decision branch in a parallel branch; $not over $ne, $nin and $and; a time-relative trigger record and previous.F; the ambiguity drop when two get_record steps bind different objects; and the node-id and screen-field shadows, for both a row variable and a bare read. N2: the changeset says readonly selects are still judged and that edge and decision conditions have no envelope escape. N3: the docblock now says (1-iv). N1: unchanged, per the order.", "files": ".changeset/36964-flow-option-label-filters.md +30/-0; packages/lint/src/flow-publish-checks-second-batch.test.ts +284/-0; packages/lint/src/flow-select-options.ts +108/-10; packages/lint/src/validate-flow-node-writes.ts +5/-0; packages/lint/src/validate-flow-trigger-readiness.ts +245/-2; packages/spec/src/migrations/entries/semantic/18.publish-refuses-flows-that-save-and-do-not-run.ts +4/-2; total 6 files +676/-14 vs eaa9e5447", "severities": "Unchanged from round 1: error at every new position, the start condition's severity, on the #5762 criterion.", "tests": "At head 7093e465e. The harness `pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/flow-publish-checks-second-batch.test.ts` gives Test Files 1 passed (1), Tests 49 passed (49): 44 before, plus 5 new cases for S1/S2. The full `pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2` gives Test Files 236 passed (236), Tests 9675 passed (9675), lock VERDICT command-exit 0. `pnpm --filter @objectstack/lint typecheck` gives lock VERDICT command-exit 0 (check:test-typecheck OK, debt unchanged). `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/migrations` gives Test Files 5 passed (5), Tests 201 passed (201). After building the cli closure, `pnpm --filter @objectstack/cli exec vitest run --project integration test/migrate-meta-engine-guidance.test.ts` gives Test Files 1 passed (1), Tests 3 passed (3); the derived spelling without --project also passes once the closure is built. eslint --no-inline-config on the edited lint and spec files: exit 0. S1 ablation, through scripts/ablation-replace.mjs wrap mode: anchor `const roots = TRIGGER_RECORD_READS.roots.filter((root) =` ... replaced by the unfiltered roots. Anchor x1 -> x0, blob 1fced8487bd5 -> dd6400f73ab3, then 1 failed / 48 passed (the rebound-record case), restored blob == HEAD 1fced8487bd5 and git diff HEAD empty. The five round-1 ablations stand as reported.", "gates": "Changeset and ADR-0087 gates, local at 7093e465e, all exit 0: check-adr-0087-registration --base origin/main ('1 declared-breaking changeset(s) ... [BREAKING+bang+clause-②-narrowing+metadata-protocol-narrowed] not-required (already-registered)'), check-changeset-no-major --base origin/main ('no major bump'; its level axis is NOT APPLICABLE locally, since there is no pull_request payload), check-empty-changeset --base origin/main, spec check:spec-changes, spec check:upgrade-guide. Derived list: 91 families at 7093e465e, and --ran with ':: exit N' answers '91 derived famil(ies) accounted for -- 88 run, 3 NOT-MEASURED'. Two of the 88 needed a build first. The cli guidance test's first run exited 1 because the cli closure was absent (an oclif manifest write failed before collection); after `pnpm --filter '@objectstack/cli^...' build` it exited 0. check:lean-entry-closure first exited 3 (objectql dist absent), then exited 0. NOT MEASURED (3): check-plugin-teardown-shape --self-test exit 3 (shallow clone); check:dual-build-cjs-loads exit 3 (needs a full build); check:type-check-debt killed by my own 420 s timeout (124) on the shared box. All three are left to CI. The derivation warns STALE TREE: the branch is 6 commits behind origin/main and 3 files it derives from changed upstream. I did not merge main, because there is no conflict and no main-caused red. CI on 7093e465e at report time: 59 success, 13 skipped, 1 failure. The failure is Check Changeset job 139838894975, the synchronize run started 10:15:06Z. It read the PR body from before my issue_patch, which landed at 10:15:18Z, and its log says 'This PR declares clause-② `no` and metadata-protocol `none` ... @objectstack/lint: minor'. The edited-event run 139839481919 (10:16:09Z) read the patched body and is success. Root cause: ordering. I pushed before patching the body, so the push-time run saw the round-1 declaration; nothing in the diff is wrong. The stale failure stays listed on the head until a later run supersedes it.", "dogfood_battery": "7093e465e · os-verify-lock: VERDICT command-exit 0 (held 42m58s, shared box) · Test Files 487 passed | 3 skipped (490) · Tests 4129 passed | 68 skipped (4197) · no failures. The first attempt exited 2 before any test ran: I wrote `--concurrency=2` after `build`, pnpm forwarded it to the cli build script, and tsc refused it. Rerun with `pnpm --workspace-concurrency=2 --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test`.", "mcp_calls": "0", "api_writes": "This round, 2 REST writes through the relay: issue_patch -> PATCH /repos/objectstack-ai/objectstack/issues/37491 (title and body, read back 11883/11883 bytes identical; title read back as fix(lint)!: ...), and this report comment -> POST /repos/objectstack-ai/objectstack/issues/36964/comments via post-stamped.mjs. One earlier issue_patch was refused by the relay before sending, so nothing was written. Plus one git push. Round 1: 3 writes, as reported.", "deviations": "(1) The PR body now ends with the trailer `signed: repo:objectstack#5 · os-bill · session_...` inside an HTML comment, as its last line. The relay refused issue_patch without a signature, and line 1 must stay `Fixes #36964`, so the trailer is the only form it accepts on a PR. os-dev.md permits this trailer only when a dispatch order asks for it. The relay requires it, so I report it here. (2) '@objectstack/spec': patch was added to the changeset because the entry edit ships in spec, as in the 35143 precedent. (3) S1 also drops a record or previous root that a declared flow variable binds, not only the three binders named, because collectFlowVariableNames reports all of them. This direction is conservative: it can only silence a finding. (4) The PR body's ablation table keeps the five round-1 rows with their round-1 test totals and adds the S1 row.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: #37504 · skills/objectstack-automation/SKILL.md section 4 trap sentence and rule-explanations.ts FLOW_CONDITION_OPTION_LABEL_EXPLANATION, both answered A in the review; noted, not filed", "carrier: none · positions left unjudged on purpose (a time-relative start's own config.condition, node-level config.condition, NODE_ID.record.F reads, a loop iterator over a list get_record, nested relations); PR Acceptance notes only" ] }objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CY2uhJ1AYNPw5TUSVS
ACCEPT → PR #37491 comment 7190384001 (seat repo:objectstack#5 L1, head
7093e465); delta contract record 7190372362 PASS at CONTRACT_REVIEW_TIER (narrowing face). Landing by zone o5-P · 2026-11-26T11:11Z. Follow-up: #37504.objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CY2uhJ1AYNPw5TUSVS
Close-out (zone o5-P) · 2026-11-26T12:00Z
Delivered: PR #37491 merged (227e952): the publish check
flow-condition-option-label(error, no new rule id) now coversget_record/update_record/delete_recordfilter values,timeRelativefilters, edge conditions anddecisionbranches, not only start conditions. Comparing a choice field to an option label is refused there; the flow's reboundrecord/previousroots are no longer judged, and the changeset lists that new miss. Declared narrowing (lint minor, spec patch, BREAKING FROM → TO, ADR-0087 already-registered marker, entry surface extended). Seat contract PASS 7190372362 at CONTRACT_REVIEW_TIER, ACCEPT 7190384001. The zone's 11:13Z landing (7190441059) was withdrawn: the Governed Surface Guard refused the merge group under the 2026-11-19 narrowed-spec ruling on #35321. The seat handed it off (7190771126), and os-zhuang approved and enqueued it.State:
pm:dispatchedremoved with the close. Remaining: #37504 (skills wording).