Skip to content

docs(lint): os explain flow-condition-option-label covers filters and edge conditions - #37843

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-6o09fu
Nov 27, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-6o09fu

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #37504 (item 2; item 1 landed in #37551).

What changes

os explain flow-condition-option-label said the rule reads a record-change start condition only (covers: 'why a start condition compares option values'). Since #37491 the same rule id also fires on edge conditions, decision branch expressions, and the filter of get_record / update_record / delete_record and of a time-relative sweep. An author whose filter was refused read an explanation of a narrower rule than the one that fired.

packages/lint/src/rule-explanations.ts FLOW_CONDITION_OPTION_LABEL_EXPLANATION now:

  • covers: why flow conditions and filters use option values (49 chars, the test's ≤60 bar).
  • names every position the rule reads, and what the label costs there (the read finds nothing, the update / delete changes nothing, the branch is never taken, the run still reports success);
  • conditions: the comparand shapes, the trigger record's record.F / previous.F / bare F, and a single-row get_record outputVariable row (deal.F); a variable bound elsewhere too is not judged;
  • filters: implicit equality, $eq / $ne, $in / $nin members, under $and / $or / $not; not judged: related-object fields, ordering / text operators, braced strings (templates, {current_user_id});
  • the escape hatch for a deliberate label filter: a CEL value envelope { dialect: 'cel', source }, which is not judged;
  • the shared exclusions kept (label also a value, picklist-backed fields).

Every sentence is read off validate-flow-trigger-readiness.ts (FLOW_CONDITION_OPTION_LABEL doc, optionLabelsBeyondStart) and flow-select-options.ts (optionLabelOperands) on main 1028438. No rule behaviour changes.

Gates run

  • vitest run src/rule-explanations.test.ts src/flow-publish-checks-second-batch.test.ts (packages/lint): 2 files, 58 tests passed.
  • tsc --noEmit -p packages/lint: clean.
  • Changeset: @objectstack/lint patch (explanation text only).

Clause-②: no
Metadata-protocol: none

Small calls this thread made

  • Kept one rule id's explanation in one entry (five paragraphs) rather than splitting per position: os explain takes the rule id, and one id has one entry.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgT5oFVDnxy3bMa3NBi

… edge conditions (#37504)

The explanation said the rule reads a record-change start condition only.
Since #37491 it also reads edge and decision conditions and the query
filters of get_record / update_record / delete_record and a time-relative
sweep; the text now says so, with each position's matching rules and the
CEL value envelope escape for a deliberate label filter.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgT5oFVDnxy3bMa3NBi
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

Nothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 1 changed package(s)), so this run has no opinion about the docs.

What this run could not see

Coarse fallback — 4 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 1028438748dfbb6a76a981a25310fe39c481fb2c → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — ACCEPT · head ed3a9a8 · card #37504 · area s2-ai · 2026-11-27T09:11Z

L1 checklist

  • Shape and checks. l1-face.mjs --pr 37843 flags one item, all-checks: 58 success, 13 expected skips, and one Check Changeset failure. That failed run (140353271430, 06:40Z) predates the body's declaration lines; the rerun on the same head after the body edit (140354415753, 06:44Z) is success. Nothing else failed. mergeable_state clean.
  • No contract face. record-recognisers.mjs --brief-template exits 1 on the file list (packages/lint/src/rule-explanations.ts and one changeset), so this record is the review of record at TIER_DEFAULT. Not governed, 43 changed lines.
  • The text, against the rule. The rewritten flow-condition-option-label explanation names the places the rule reads, and packages/lint/src/flow-select-options.ts reads exactly those: the start condition, an edge condition, a decision expression, a get_record row bound to its outputVariable, and the get_record / update_record / delete_record and time-relative sweep filters, by plain equality, $eq / $ne / $in / $nin, under $and / $or / $not. It skips a string carrying a brace, and it does not judge a nested relation, an ordering or text operator, or a CEL value envelope. The rule's verdicts are unchanged; only the explanation moved.
  • Changeset. @objectstack/lint patch, explanation text only. Clause-②: no, Metadata-protocol: none are right.
  • Fixes #37504 is right. Item 1 landed in docs(skills): objectstack-data names actionLayout among the pair-only keys; objectstack-automation says an option label in a flow filter or edge condition is refused #37551; this is item 2.

Tier: S. Landing: ready and queued.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 27, 2026 09:12
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit ddc96d8 Nov 27, 2026
72 of 73 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-6o09fu branch November 27, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants