Skip to content

docs(skills): flow teaching text spells only shapes the publish checks accept - #36932

Merged
os-zhuang merged 4 commits into
mainfrom
claude/issue-36718-flow-skill-teaches-accepted-shapes
Nov 24, 2026
Merged

os-zhuang merged 4 commits into
mainfrom
claude/issue-36718-flow-skill-teaches-accepted-shapes

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Fixes #36718

Clause-②: no
Metadata-protocol: none

维护者速读

  • 搭建者和 AI 照着自动化技能、定时触发器说明和报错提示写流程时,照抄的写法不再被发布检查提醒或拦下;已有流程和检查规则本身不变。
  • 属于「各种搭建方式共用的底座:发布前检查」专题,上一批收紧了十条流程发布检查,教流程写法的文字当时没有跟上。
  • 只改文字,出错时最多是某一句说得不准,可直接撤回;技能包的长度上限没有抬高。
  • 请审阅并批准这次对外发布技能包的文字改动。

What changes

Wording only. No schema, lint rule or reader changes. The ten checks, read off packages/lint/src on main: flow-trigger-object-missing, flow-condition-option-label, flow-time-relative-shadowed, flow-time-relative-key-misplaced, flow-time-relative-date-field-invalid, flow-node-write-unknown-option, flow-node-write-date-helper-text (errors); flow-schedule-timezone-missing, flow-subflow-unknown, flow-create-update-pair (warnings).

Every place changed, before → after:

# Place Before After Check
1 skills/objectstack-automation/SKILL.md, subflow row Else os validate passes and the node fails at run time Else the node fails at run time (…). os validate warns flow-subflow-unknown on any name this stack lacks, a correct cross-package call included flow-subflow-unknown
2 SKILL.md, Valid-but-silently-wrong item 4 condition: "record.status == 'Lost'" parses, matches no row: the flow stages clean and never fires; fields: { status: 'Lost' } / a filter fails the run (invalid_option). A start condition: "record.status == 'Lost'" or fields: { status: 'Lost' } is refused at publish (inline options), else matches no row or fails the run (invalid_option). A label in a filter or an edge condition is never checked: it silently matches nothing. flow-condition-option-label, flow-node-write-unknown-option; no check reads a filter or an edge condition
3 references/examples-flows.md, the schedule example's comment A bare cron string also works; a cron tag does not. A bare expression runs in UTC. A cron tag fails. A cron with no timezone (a bare string) runs in UTC and warns. flow-schedule-timezone-missing
4 references/integration-recipes.md, recipe 1 start node schedule: { type: 'cron', expression: '0 3 * * *' } schedule: { type: 'cron', expression: '0 3 * * *', timezone: 'UTC' } flow-schedule-timezone-missing
5 recipe 1, two node labels (pays for row 4's bytes) label: 'Nightly 03:00', label: 'Write balance' label: 'Nightly', label: 'Write' token ratchet
6 evals/flows-triggers-approvals.json, eval 1 expected_output config.schedule: { type: 'cron', expression: '0 2 * * *' } (no top-level schedule) config.schedule: { type: 'cron', expression: '0 2 * * *', timezone: 'UTC' } (no top-level schedule; the request names no zone, and a cron with none warns flow-schedule-timezone-missing) flow-schedule-timezone-missing
7 packages/triggers/trigger-schedule/README.md, time-relative example schedule: { type: 'cron', expression: '0 8 * * *' } schedule: { type: 'cron', expression: '0 8 * * *', timezone: 'UTC' } flow-schedule-timezone-missing
8 the same README, under the Schedule shapes table (nothing) A cron with no timezone runs in UTC, and os validate warns on it (flow-schedule-timezone-missing). Author the first row with its timezone ('UTC' when UTC is meant); the bare string cannot carry one. flow-schedule-timezone-missing
9 examples/app-showcase/src/automation/flows/index.ts, comment at 445 e.g. { type: 'cron', expression: '0 8 * * *' } e.g. { type: 'cron', expression: '0 8 * * *', timezone: 'UTC' } flow-schedule-timezone-missing
10 the same file, comment at 2047 schedule: { type: 'cron', expression: '0 8 * * *' } schedule: { type: 'cron', expression: '0 8 * * *', timezone: 'UTC' } flow-schedule-timezone-missing
11 packages/spec/src/automation/flow-start-config-refusals.ts, empty-string refusal Write a cron expression (e.g. '0 8 * * *') or remove the key. Write { type: 'cron', expression: '0 8 * * *', timezone: 'UTC' } or remove the key. flow-schedule-timezone-missing
12 the same file, typed-schedule refusal Write { type: 'cron', … timezone: 'UTC' }, the interval form or the once form, or a bare cron string. The same sentence without ", or a bare cron string". flow-schedule-timezone-missing
13 the same file, reads-nothing refusal (the one the card names) Write a cron string such as '0 8 * * *', or { type: 'cron', expression: '0 8 * * *' }, the interval form or the once form. Write { type: 'cron', expression: '0 8 * * *', timezone: 'UTC' }, the interval form or the once form. flow-schedule-timezone-missing
14 the same file, typed-alias hint write { type: 'cron', expression: '…' } write { type: 'cron', expression: '…', timezone: 'UTC' } flow-schedule-timezone-missing
15 evals/flows-triggers-approvals.json, eval 20 expected_output without the dependency the flow still passes os validate, and the node fails at run time (outside-closure, naming acme.crm). without the dependency the node fails at run time (outside-closure, naming acme.crm). os validate warns flow-subflow-unknown here with or without the dependency, because acme.billing's own stack does not hold notify_owner: the warning is expected on this correct call and is not that failure. flow-subflow-unknown
16 SKILL.md, wording that pays for rows 1 and 2 (no fact removed) six table separator rows in the long form; autolaunched: Runs without user interaction — triggered by events, APIs, or other flows; screen: Presents UI screens; schedule: … — or a per-record date sweep; start: Entry point — every flow has exactly one; end: Exit point — can have multiple; decision: Conditional branching — routed by edge condition predicates, not node config; wait: Pause until a timer elapses or a named signal arrives; get_record: Fetch records with filters; The node as JSON; The request speaks the label ("Lost"); the row stores the value (lost). the short separator form the file already uses; No user interaction: started by events, APIs or other flows; Shows UI screens; …, or a per-record date sweep; Entry point: exactly one per flow; Exit point: one or more; Branch by edge condition predicates, not node config; Pause for a timer or a named signal; Fetch records by filter; As JSON; The request says "Lost"; the row stores lost. token ratchet

Skills size, lines and tokens (the ratchet's count, ceil(bytes / 4)):

File Lines before → after Tokens before → after
skills/objectstack-automation/SKILL.md 479 → 480 7045 → 7045 (28199 → 28198 bytes; ceiling 7045)
references/examples-flows.md 145 → 145 1543 → 1543
references/integration-recipes.md 186 → 186 2594 → 2595 (ceiling 2595)
evals/flows-triggers-approvals.json (eval fixture, not ratcheted) 450 → 450 7078 → 7147
all 14 SKILL.md files together 4947 → 4948 65225 → 65225

Net lines across skills/**: +1 (budget: at most +40). No ceiling is raised.

Tests

  • The real rule table on every extracted example. A scratch harness (not committed) extracts every fenced flow, start-node and node block, every cron the text spells (in prose, comments and the refusal strings) and every start condition and fields write the prose spells, from the six listed places; completes each fragment into a flow over objects shaped as the prose describes them (each select with a label that differs from its value); and runs runAuthoringRules('validate', …) from the built @objectstack/lint, the 78-rule table os validate runs. Before (text of f46ce5b4): 13 findings from the ten rules on shapes the text offers. After (ec3822d6): 0. Four findings remain on shapes the text itself names as refused or warned: the label condition and label write in SKILL.md item 4, and the bare string and its normalized form in the README's reader table.
  • @objectstack/spec: flow-start-config-refusals.test.ts and flow.test.ts, 157 of 157 passed; typecheck exit 0.
  • check:skill-examples: 349 marked examples type-check, exit 0. check:generated: all 14 generated artifacts up to date, nothing regenerated.
  • Patch round (commits 9e163110 and ed201b70), a run-time trace of the label trap outside the two rules, on a scratch dogfood probe (not committed) booted with bootStack(…, { automation: true }): a select with inline options Open/open and Lost/lost, two rows stored lost. get_record with filter: { status: 'Lost' }: HTTP 200, run success: true, selected: 0 (control 'lost': selected: 2). update_record with the same filter and multi: true: success: true, acted: 0, both rows untouched (control: acted: 2). A decision edge condition: "deal.status == 'Lost'": success: true, the branch skipped: 1, row untouched (control 'lost': acted: 1). No invalid_option on any of the three. The same shapes through runAuthoringRules('validate', …) from the built @objectstack/lint: no label finding on the filter or the edge; the control (label in the start condition and in fields) answers flow-condition-option-label and flow-node-write-unknown-option; an unknown subflow name answers flow-subflow-unknown (warning).
  • No behaviour a test pins changed, so no ablation. The refusal tests pin each message's head (is not a schedule at …, names no schedule the readers can use), not the sentence that offers a shape.

Acceptance notes

  • Read against each check and left as written, because the validator is silent on them: the SKILL.md trigger example (objectName present; its condition compares status with the value 'escalated'); the scheduled escalation flow (timezone: 'Asia/Shanghai', writes the value 'escalated'); the time-relative example and its JSON form (filter inside the descriptor, a date field, no triggerType); recipe 4; the notify and script node examples. No listed place carries a subflow node, a date helper inside a string, or an after-create and after-update pair.
  • SKILL.md item 4 still shows the label forms, as the thing not to write; the sentence now says publish refuses them. It says "inline options" because the two rules judge only a field whose options are inline (a field on a shared picklist is skipped). The filter trap that main named is back, restated as measured: main said a label filter fails the run (invalid_option); it does not, the run succeeds and matches nothing, and the same holds for a label in an edge condition. Neither is read by any check.
  • The README's Schedule shapes table still lists the bare string, because it is the reader's own table (normalizeSchedule) and the reader does accept it. The sentence under it now names the warning.
  • flow-subflow-unknown also warns on a correct call to a flow another installed package ships (eval 20's shape): the stack does not hold that flow. That is the rule's stated hedge. The subflow row no longer ties the warning to the name that fails at run time: it says the node fails at run time for the non-resolving cases, and separately that os validate warns flow-subflow-unknown on any name this stack lacks, a correct cross-package call included. Eval 20's answer key says the same (row 15).
  • Token ratchet: the three skill files sat at zero headroom, and the first wording went over by 74, 19 and 5 tokens. Each new sentence now replaces the stale words it corrects, and recipe 1 gives up two label words for the timezone key (row 5). The patch round's two sentences in SKILL.md are paid for inside the file by row 16: shorter spellings of eight table cells and two sentences, and the short separator-row form on six tables. No fact, trap or example was removed to pay.
  • Eval 1's expected answer is edited (row 6). It is the answer key for the nightly-cron case, and it spelled the shape the warning fires on. Its assertions are unchanged.
  • The harness's findings from other rules are artefacts of completing a fragment (a notify node read with no trigger, so record is unbound) or the README's placeholder condition '...'. None is from the ten rules.
  • PR docs(skills): objectstack-data and objectstack-automation SKILL.md become routers #36158 moves most of SKILL.md into the references. Every edit here is in place, on the lines listed above; SKILL.md gains one line (item 4), no other skill file gains or loses one.
  • Not run: the os validate binary. The harness calls the rule table it runs, on a parsed stack.

Verification

Two-minute check: node scripts/check-skills-token-ratchet.mjs exits 0 and prints (+0) for the three automation files; git diff f46ce5b4 --numstat -- skills shows equal additions and deletions per file, except SKILL.md at 21 added and 20 removed.

Read first, by risk: packages/spec/src/automation/flow-start-config-refusals.ts (three refusal strings an author is shown), skills/objectstack-automation/SKILL.md (item 4 and the subflow row), skills/objectstack-automation/evals/flows-triggers-approvals.json (eval 1's answer key).

Patch-round gate readings (run on 9e16311; head ed201b7 changes one changeset sentence)
  • On the final head ed201b70 (changeset only since 9e163110), each exit 0: node scripts/check-skills-token-ratchet.mjs, node scripts/check-empty-changeset.mjs --base origin/main, node scripts/check-changeset-no-major.mjs --base origin/main, node scripts/check-adr-0087-registration.mjs --base origin/main, pnpm check:nul-bytes, pnpm check:doc-authoring, pnpm check:issue-citations, pnpm check:published-files. The readings below are on 9e163110.
  • node scripts/pm/dispatch-gates.mjs --ran, exit 0: 96 derived famil(ies) accounted for — 95 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3). The 95 exited 0. NOT MEASURED, exit 3 (a prerequisite refusal, not a finding): pnpm check:dual-build-cjs-loads (reads every package's dist/). CI runs it.
  • node scripts/check-skills-token-ratchet.mjs, exit 0: 60 authored bundle file(s) within their ceilings; SKILL.md 7045 / 7045 (+0), examples-flows.md 1543 / 1543 (+0), integration-recipes.md 2595 / 2595 (+0); the eval fixture reads 7147 tokens, not ratcheted.
  • pnpm --filter @objectstack/spec run check:skill-examples, under the verify lock, VERDICT command-exit 0: 349 prose examples type-check across 3 surface(s). check:skill-docs, check:skill-refs, check:skill-served-sections, check:skill-links, check:skill-identifier-liveness: exit 0, inside the 95.
  • The run-time probe, under the verify lock: VERDICT command-exit 0, Tests 1 passed (1); the readings are in Tests above.
  • CI check-runs on 9e163110: 58 success, 11 skipped, none failed or pending; Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Check Changeset, Governed Surface Queue Guard, Dogfood Regression Gate: success.
Gate and harness readings (first round, head ec3822d)
  • Harness, before (f46ce5b4 text): TOTAL examples judged: 25 · skipped (no flow shape): 10 · findings from the ten rules on shapes the text offers: 13 · on shapes the text itself names as warned or refused: 0 · registry size: 78.
  • Harness, after (ec3822d6): TOTAL examples judged: 24 · skipped (no flow shape): 10 · findings from the ten rules on shapes the text offers: 0 · on shapes the text itself names as warned or refused: 4 · registry size: 78. One fewer judged: the reads-nothing refusal spelled a cron twice (a bare string and an object) and now spells it once.
  • Before, by place: SKILL.md item 4 (2 errors: flow-condition-option-label, flow-node-write-unknown-option); integration-recipes.md recipe 1 (2, the block and its cron); the README (4: the example block, its cron, the table's bare string and its normalized form); the two showcase comments (2); the refusal file (3). The other 11 are flow-schedule-timezone-missing warnings.
  • node scripts/pm/dispatch-gates.mjs --ran: 96 derived famil(ies) accounted for — 93 run, 3 NOT-MEASURED (3 DERIVED from a recorded exit 3). The 93 exited 0.
  • NOT MEASURED locally, exit 3 (a prerequisite refusal, not a finding): node scripts/check-plugin-teardown-shape.mjs --self-test (needs an unshallowed clone), pnpm check:dual-build-cjs-loads (reads every package's dist/), pnpm check:i18n-coverage (needs the workspace CLI built). CI runs all three.
  • node scripts/check-skills-token-ratchet.mjs, exit 0: 60 authored bundle file(s) within their ceilings; the three automation files print 7045 / 7045 (+0), 1543 / 1543 (+0), 2595 / 2595 (+0).
  • pnpm --filter @objectstack/spec run check:skill-examples, exit 0: 349 prose examples type-check across 3 surface(s). Its first run refused with exit 3 (the client packages were not built); it passed after pnpm --filter '@objectstack/client-react...' build.
  • pnpm --filter @objectstack/spec check:generated, exit 0: All 14 generated artifacts are up to date.
  • Under the verify lock, VERDICT command-exit 0: pnpm --filter @objectstack/spec build, then vitest run src/automation/flow-start-config-refusals.test.ts src/automation/flow.test.ts (Test Files 2 passed (2), Tests 157 passed (157)), then pnpm --filter @objectstack/spec typecheck.
  • Not run locally, left to CI: test:repo, the example app's own tests (two comments changed there), the full dogfood battery (no ! title, no narrowing arm).

Seat-written open. Seat repo:objectstack#4 (os-justin, session_01QSeKYpEsWWE9Y5YtSsDgqZ) opened this draft on the maintainer's ruling in the seat session, verbatim 「一选1+」 (2026-11-24): option 1+ — the seat performs only the writes the dev session's permission classifier refused, each checked against the branch; pull requests stay draft; no standing allow rule is added. Refused in dev session session_01QSeKYkHoFSRK5JsuPYqbtc, twice, reason [Undermining Oversight]: node scripts/pm/fleet-write/dispatch.mjs --repo objectstack-ai/objectstack --actions-file FILE carrying this one pr_create. Title and body above are the dev's text, unchanged; branch head checked at ec3822d6 (2 commits on f46ce5b4, 8 files).

Patch round 1 (head ed201b70): built by a seat os-dev subagent in seat session session_01QSeKYpEsWWE9Y5YtSsDgqZ on the L1 REWORK and contract review of ec3822d6; this body was rewritten by that round and sent by the seat (os-dev.md: PR body edits after pr_create are the seat's). Report: comment 7129961596 on #36718.


Generated by Claude Code

…s accept

The automation skill, the schedule trigger README, two showcase comments
and the start-node schedule refusals offered cron shapes with no timezone
and described label comparisons and unknown subflow names as passing
validation. Wording only.

Claude-Session: https://claude.ai/code/session_01QSeKYkHoFSRK5JsuPYqbtc
Co-authored-by: Claude <noreply@anthropic.com>
…iling

Each rewritten sentence replaces the stale words it corrects, and recipe 1
shortens two node labels for the timezone key, so no skill file grows.

Claude-Session: https://claude.ai/code/session_01QSeKYkHoFSRK5JsuPYqbtc
Co-authored-by: Claude <noreply@anthropic.com>
@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 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

2 anchor(s) derived from 2 changed package(s); no hand-written page names any of them. ⚠️ 1 changed file(s) yielded no anchor (packages/triggers/trigger-schedule/README.md), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/triggers/trigger-schedule/README.md) — pages documenting those are invisible to this run
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 175 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 69c3dc4f4323e21559a69913417aaa749db976ea → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 1b94c6d645ef0ffca6fb75cfadc5db6ff40b93f4 — the merge of head ed201b70523e7a8f738154b0fca2e5bd722628cb into base 69c3dc4f4323e21559a69913417aaa749db976ea, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 1b94c6d645ef0ffca6fb75cfadc5db6ff40b93f4 && git checkout 1b94c6d645ef0ffca6fb75cfadc5db6ff40b93f4
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 69c3dc4f4323e21559a69913417aaa749db976ea ed201b70523e7a8f738154b0fca2e5bd722628cb && git checkout -B drift-repro 69c3dc4f4323e21559a69913417aaa749db976ea && git merge --no-ff ed201b70523e7a8f738154b0fca2e5bd722628cb

node scripts/docs-audit/affected-docs.mjs --json 69c3dc4f4323e21559a69913417aaa749db976ea

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ec3822d63a91126bcc49a2f9603e30bdece2fe84
Local-runs: none
Scope: packages/spec/src/automation/flow-start-config-refusals.ts, skills/objectstack-automation/SKILL.md, skills/objectstack-automation/evals/flows-triggers-approvals.json, skills/objectstack-automation/references/examples-flows.md, skills/objectstack-automation/references/integration-recipes.md + packages/triggers/trigger-schedule/README.md, examples/app-showcase/src/automation/flows/index.ts
Security-touching: no

Read: card #36718 (body, 4 comments, newest os-dev-report 7128170046), PR #36932 (body, 8 files, net diff on merge base f46ce5b4), the 69 check-runs on the head (every one success or skipped, none failed or pending; Lint & Repo Gates, Lint · repo & tooling gates, Check Changeset, Test Core, Governed Surface Queue Guard all success). Rule code read on origin/main 9be17415: packages/lint/src/validate-flow-trigger-readiness.ts, validate-flow-node-writes.ts, flow-select-options.ts, authoring-rules.ts, rule-explanations.ts.

① Derived judgments

  • Accept set: unchanged, right. The diff in flow-start-config-refusals.ts touches four string literals only; flowStartScheduleReadsNothing, the ScheduleSchema.safeParse branch and every condition are byte-identical. Metadata-protocol: none holds.
  • Public surface: three refusal messages and the typed-alias hint (@objectstack/spec), the README (@objectstack/trigger-schedule), the published skill text. Wording only, right. No test pins the changed tails (the test file matches message heads), and Test Core is green.
  • "No ceiling raised": right. scripts/ is not in the diff. Byte counts at the head against main: SKILL.md 28199 = 28199, examples-flows.md 6170 = 6170, integration-recipes.md 10376 to 10379, which is 2595 tokens on a 2595 ceiling.
  • Rule ids and severities the text names, checked against the code: flow-schedule-timezone-missing is warning, fires on a bare cron string and on a cron object with no timezone, on schedule and time-relative flows only (cronWithoutZone, 1b-vii). flow-condition-option-label and flow-node-write-unknown-option are error, in gating rule entries, and judge only a field whose options are inline (selectOptionsOf returns nothing for a picklist field). flow-subflow-unknown is warning, advisory tier, CLI only.
  • Security-touching: no: the changed words teach a cron timezone, a validator warning and a publish refusal. One caveat for the adopting seat: eval 1's changed JSON line also carries, unchanged, the sentence on runAs: 'system' and the readonly strip. No word of it changed, so I read it as not taught by this change.

② Semver level

patch on @objectstack/skills, @objectstack/spec, @objectstack/trigger-schedule matches what the diff publishes: message and documentation text, no behaviour. The showcase example carries two comment edits and needs no entry. Clause-②: no is on the PR body and on the changeset, and is right: nothing is narrowed or widened. Check Changeset is success.

③ Boundary flags

  • Dev deviation, all three refusals and the hint changed, not only the one the card names: accepted. Each offered a zone-less cron, and the card's Expected line ("the refusal text offers only an accepted shape") covers them.
  • Dev deviation, eval 1's answer key edited: accepted as inside the claim's conditional eval surface. See N1.
  • Dev deviation, the README table keeps the bare-string row: accepted. It is the reader's table and normalizeSchedule does read that shape; the new sentence under it names the warning.
  • open_questions 1 (a structural pin that every cron a start-node schedule refusal offers states a timezone): answered, B. The claim this PR makes about the refusal text is held by no gate, and the existing test matches heads only. It pins shape, not prose. It does not block this head; it rides with the S1/S2 fix if the claim is widened to the test file, otherwise a follow-up card. A seat routing call, not a maintainer decision.
  • open_questions 2 (naming flow-subflow-unknown and the expected case in the subflow row): answered, B, in this PR and not deferred to PR docs(skills): objectstack-data and objectstack-automation SKILL.md become routers #36158. That PR is unowned and waiting on a ruling, so "when it resumes" has no date. This is finding S1.
  • SQL push-down: no query, id materialisation or join in the diff.
  • Nothing escalated to the maintainer.

④ Design judgment

packages/spec/src/automation/flow-start-config-refusals.ts: holds. All three refusals now offer { type: 'cron', expression: '0 8 * * *', timezone: 'UTC' }, which ScheduleSchema accepts (the typed refusal on main already offered it) and cronWithoutZone is silent on. The interval and once offers are unchanged. No sentence became false: the reads-nothing message still describes what the readers read, and dropping the bare-string offer removes an offer, not an accepted shape.

packages/triggers/trigger-schedule/README.md: holds. "A cron with no timezone runs in UTC" is schedule.timezone ?? 'UTC'; the warning id is right; "the first row" is the { type: 'cron', expression, timezone? } row.

examples/app-showcase/src/automation/flows/index.ts: holds. Two comments, each now a shape the rule is silent on.

references/examples-flows.md: holds. "A cron with no timezone (a bare string) runs in UTC and warns" is true for both spellings.

references/integration-recipes.md: recipe 1's cron is now silent under the rule. See N2.

skills/objectstack-automation/SKILL.md: two findings.

S1 (should-fix) — the subflow row puts the warning in the wrong branch, and eval 20's answer key still says the opposite. The row now reads "Else os validate may warn and the node fails at run time", where "Else" is the name that does not resolve. validateFlowSubflowTargets asks one thing: is the name a flow of this stack or of its packages[]. So it warns on the correct call to a flow a declared dependency ships (eval 20's shape, as the PR body itself says), and it is silent on both ambiguous-* cases, where two packages hold the name. An agent that reads the row and then sees the warning on a correct cross-package call is told the node will fail at run time; the likely repair is copying the flow into its own package, which eval 20 names as wrong. Eval 20's expected_output was left as "without the dependency the flow still passes os validate", the phrasing this PR retires in the row. Fix: say that os validate warns flow-subflow-unknown whenever the stack does not hold the called flow, a correct call to a dependency's flow included, and that the warning is not the run-time failure; align eval 20's key. SKILL.md has zero token headroom, so the words are paid for inside the file.

S2 (should-fix) — item 4 drops the filter trap and no check covers it. On main the item named three forms: the start condition, the fields write, and "a filter". The head names two and says they are "refused at publish (inline options), else matches no row or fails the run". flow-node-write-unknown-option reads literals in a fields map of update_record / create_record only; flow-condition-option-label reads the start node's config.condition only. A filter: { status: 'Lost' }, and a label compared in an edge or decision condition, are read by neither rule, with inline options too, and the reader takes "else" as "where the options are not inline". This is the case #34770's rule names: no trap is removed until a publish-time check covers it or it stays inline. Fix: keep filter (and a condition off the start node) named on the uncovered side of the sentence. A side reading for the fix: I found invalid_option raised only on the write path (record-validator.ts, rule-validator.ts), so a label in a filter most likely matches no row and does not fail the run; main's "a filter fails the run" may itself have been wrong.

The rest of item 4 holds: both rules are error in gating entries, so "refused at publish" is right, and "(inline options)" is the rules' own limit.

skills/objectstack-automation/evals/flows-triggers-approvals.json: eval 1's key holds against the rule; the file parses, 25 evals, assertions unchanged.

  • N1 (nit) — eval 1's key fixes timezone: 'UTC' for a request that names no zone. The rule's hint asks for the zone the hour is meant in, "or UTC if UTC is the intent", and the skill states no rule for an unzoned request (recipe 1 only shows one). The assertions do not require UTC, so no answer is failed by it.
  • N2 (nit) — recipe 1's labels 'Nightly 03:00' and 'Write balance' became 'Nightly' and 'Write' to pay for the timezone key. Less descriptive labels in a taught example; no effect on any check.

Implemented-by: claude/issue-36718-flow-skill-teaches-accepted-shapes
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — REWORK · L1 · head ec3822d63a91126bcc49a2f9603e30bdece2fe84 · 2026-11-24T10:26Z

First L1 on PR #36932 (card #36718), against the dev report 7128170046 (seat-posted, the newest os-dev-report on the card). One must-fix, a false sentence in the changeset, which ships as CHANGELOG.md in three packages. The rest of the delivery checks out: every taught flow shape is one the #36691 rules accept, and each warn/refuse claim matches the rule code on origin/main 9be1741. The fix is one line in one file and can be done in a patch round.

1. Shape

  • l1-face.mjs --pr 36932: CLEAN, 13 items, none flagged. Open · draft · base main; first line Fixes #36718; no closing keyword aimed at any other card; no content/docs/releases/ path; no +0/-0 file.
  • Fixes is right. The card's Acceptance asks for each listed place read against the merged rules, examples changed where they would warn, and check:skill-examples green. All three are delivered (§2, §4). The Tier H approval is the landing condition (§6), not a missing half of the card.
  • I read the body past the parser. The only closing keyword is on line 1. The seat note names the dev session and fleet: three of seven cloud dev sessions had identical relay writes refused by their permission classifier ("Undermining Oversight") while sibling sessions passed #36936, with no keyword next to either.
  • Declarations: Clause-②: no · Metadata-protocol: none, in both the PR body and the changeset body. Correct per AGENTS.md "Land it" item 3: message strings and prose only; nothing an author can write changes; the refusal set is unchanged (ScheduleSchema and flowStartScheduleReadsNothing are untouched). none ⇒ patch. Skills-docs: is not owed (kind none).
  • pr-state.mjs: OPEN, draft, mergeable_state clean, never queued, no reviews at the head.

2. Delivery vs card

All six places the card lists are covered. Each edit below was read against the rule code on origin/main (no rule file changed between merge-base f46ce5b4 and origin/main; git diff --name-only over packages/lint/src/validate-flow-{trigger-readiness,node-writes}.ts and the 8 PR files is empty).

How the rules behave on main:

  • flow-schedule-timezone-missing: validate-flow-trigger-readiness.ts:697-706 cronWithoutZone returns nothing when timezone is a non-blank string. A bare string always warns. Severity warning (:1096), read only on schedule / time_relative flows. 'UTC' is in iana_time_zone, and it is ScheduleSchema's own default (job.zod.ts:62).
  • flow-condition-option-label: error (:870), on record-change start conditions only, and only for select fields with inline options.
  • flow-node-write-unknown-option: error (validate-flow-node-writes.ts:382), on create_record / update_record only, skipping picklist and readonly fields. Both errors run on CLI_AND_RUNTIME (authoring-rules.ts:1645, entry validateFlowTriggerReadiness), so they are refused at publish; migration entry 18.publish-refuses-flows-that-save-and-do-not-run says the same.
  • flow-subflow-unknown: warning, CLI only (:1680-1718), and only for a name the stack and its packages do not hold.
Place Edit Verdict
skills/objectstack-automation/SKILL.md:81 (subflow row) "passes" → "may warn" True. outside-closure names held only by the environment or an undeclared package warn. ambiguous-* names are known, so they do not warn. "may" is exact.
SKILL.md:324-327 (item 4) label condition / write "refused at publish (inline options), else matches no row or fails the run" True for the two error rules above. "else" covers edge conditions, filters, picklist fields, and readonly selects (see nit N1).
references/examples-flows.md:30-31 cron tag fails; a cron with no timezone (a bare string) runs in UTC and warns True. The example itself carries timezone: 'Asia/Shanghai', so it is silent.
references/integration-recipes.md:46-47,50 recipe 1 cron gets timezone: 'UTC'; labels shortened to pay Silent under the rule. Labels are still present on every node.
examples/app-showcase/src/automation/flows/index.ts:445-446, 2047 comment crons get timezone: 'UTC' Comments only. The flow at 2047 is a time-relative sweep with no schedule, so cronWithoutZone(undefined) is silent.
packages/triggers/trigger-schedule/README.md:134 time-relative example cron gets timezone: 'UTC' Silent.
README.md:69-71 (new) "A cron with no timezone runs in UTC, and os validate warns on it …" True (schedule.timezone ?? 'UTC'; warning). "The first row" is the table's typed row at :63, which is unambiguous. The bare-string row stays because it is the reader's own normalizeSchedule table.
packages/spec/src/automation/flow-start-config-refusals.ts:93, 105-106, 120, 128-129 all three schedule refusals and the typed-alias hint offer only { type: 'cron', expression: '0 8 * * *', timezone: 'UTC' } (plus the interval and once forms) Every offered shape is accepted silently: interval and once are not crons to cronWithoutZone, and the cron carries a zone. The card named only :126-130. Widening to the other three strings that offered a zone-less cron is correct and was reported in deviations. What is refused is unchanged. No other copy of the old strings exists (git grep over the repo, excluding this file and its test: 0 hits).
evals/flows-triggers-approvals.json:7 (eval 1 expected_output) answer key's cron gets timezone: 'UTC', with the reason Inside the claim's conditional eval surface. The prompt names no zone, and the rule's own hint says to "set timezone: 'UTC' if UTC is the intent". The assertions (must_contain / must_not_contain) are unchanged.

The card's other "Expected" items (condition labels compare against their own field; subflow and object names resolve): the dev reports reading them, and the harness reports 0 findings from the ten rules on shapes the text offers. No listed place carries a subflow node, a date helper inside a string, or a create/update pair. That matches my grep of the listed files.

Skills token ratchet. I ran node scripts/check-skills-token-ratchet.mjs from a git archive of the head's scripts/ and skills/ (scratchpad, no checkout). Exit 0: 60 authored bundle file(s) within their ceilings. SKILL.md 7045 / 7045, examples-flows.md 1543 / 1543, integration-recipes.md 2595 / 2595 (headroom 0). scripts/ is not in the diff, so no ceiling is raised. Bytes, origin/main → head: SKILL.md 28199 → 28199, examples-flows.md 6170 → 6170, integration-recipes.md 10376 → 10379, eval JSON 28309 → 28414 (eval fixture, measured but not ratcheted), README 9719 → 9946. The line counts in skills/** balance per file, matching the PR body's table.

Changeset .changeset/36718-flow-teaching-accepted-shapes.md, read sentence by sentence:

  • Packages and level are right. @objectstack/spec ships the message strings through dist. @objectstack/trigger-schedule ships README.md (files[]). @objectstack/skills ships the synced catalog. All three are patch with kind none. examples/app-showcase is private: true, so it owes nothing. The governed reader's low-risk skills arm does not apply because the changeset releases two non-skills packages; that is correct, and the PR is Tier H.
  • Checked and true: line 7 (headline); line 12 sentence 2 ("Wording only; no schema, rule or reader changes"); line 14 in full (the three refusals, the dropped bare-string offer, the alias hint, "What is refused is unchanged"); line 15 clauses 1-5 (recipe 1, the schedule comment, the subflow row, the select-label rule, eval 1); line 16 in full.
  • Line 15, "No file grows: each new word replaces one" is false (must-fix M1). integration-recipes.md grows by 3 bytes (2594 → 2595 tokens), and eval 1's expected_output gains a whole clause (+105 bytes). What holds is narrower: no skill file gains a line, and none passes its token ceiling.
  • Line 12 sentence 1 calls all ten checks "publish-time" (nit N2). flow-subflow-unknown and flow-create-update-pair run on the CLI only, and the three warnings refuse nothing at publish (migration entry 18).

3. Gates

  • At head ec3822d6 (pr-state / l1-face): 58 success · 11 expected skip · 0 unexpected skip · 0 failed · 0 pending. Lint & Repo Gates: success. TypeScript Type Check: success.
  • check-governed-merges.mjs --pr 36932, exit 3: ⛔ GOVERNED, skills/** ×4. Landing tier H (human merge): the maintainer's hand, or an authorized APPROVED review, after which the owning seat lands it. The low-risk skills arm does not apply (three non-skills paths, and a changeset that releases spec and trigger-schedule). Size is 60 lines, under the human-merge threshold.
  • landing-k.mjs --pr 36932: OK. K = 2 < 15. Locale leg: it reads as a label PR (the showcase file), but the change is comments only and there is no new locale pack. Shared-budget leg: this PR touches the skills token ratchet, and main has not moved that book since PRBASE.
  • Dogfood not owed: no ! and no (narrowing).

4. Tests evidence

  • The dev's evidence is real commands with quoted output, pinned to ec3822d6:
    • Spec build, then vitest on flow-start-config-refusals.test.ts and flow.test.ts: Tests 157 passed (157).
    • Spec typecheck: exit 0.
    • check:skill-examples: 349 prose examples type-check.
    • check:generated: 14 artifacts up to date.
    • Token ratchet: exit 0. I reproduced this above.
    • dispatch-gates.mjs --ran: 93 run, 3 NOT MEASURED with exit-3 prerequisite reasons. CI covers those three at this head.
  • The extraction harness is not committed, which is correct: it is a one-shot verifier, not a tool that runs after merge. Its before/after reading (13 → 0 findings from the ten rules on offered shapes, with 4 on shapes the text names as refused or warned) has a natural positive control: the 13 "before" findings are the rules firing on the old text.
  • No ablation, accepted: the refusal tests pin message heads (is not a schedule at …, names no schedule the readers can use), not the offered shape. flow-start-config-refusals.test.ts on main has no assertion on the offered text.
  • No code/status envelope assertion is owed: no refusal behaviour changes.
  • NOT MEASURED by the seat: the os validate binary on a scaffolded app. The dev ran the rule table that os validate runs on a parsed stack. That is accepted for a wording-only change.

5. Accepted deviations

  • All three schedule refusals plus the typed-alias hint were changed, not only :126-130. They are the same defect class, in the same file and the same function, inside the claimed surface.
  • Eval 1's expected_output was edited, inside the claim's conditional eval surface.
  • Recipe 1's labels 'Nightly 03:00' → 'Nightly' and 'Write balance' → 'Write' pay for the timezone key at zero headroom. The cron still states the hour, and every node keeps a label.
  • The skill sentences do not spell rule ids because of zero headroom. The README and eval 1 do spell them.
  • The seat opened the PR and posted the report on the maintainer's 「一选1+」 ruling, after the dev session's classifier refused the relay pr_create twice. The refused command is recorded verbatim in deviations. The seat did not add skip-changeset on the dev's behalf, and none was needed.

6. Out of scope + landing condition

Findings

  • must-fix M1, .changeset/36718-flow-teaching-accepted-shapes.md:15. "No file grows: each new word replaces one" is false in published release text (it ships as CHANGELOG.md in @objectstack/skills, spec and trigger-schedule). integration-recipes.md grows 3 bytes, and the eval JSON grows 105 bytes. Suggested fix: "No skill file gains a line or passes its token ceiling; two node labels in recipe 1 are shortened to pay for the timezone key."
  • nit N1, skills/objectstack-automation/SKILL.md:324-326. "refused at publish (inline options)" leaves out two cases: flow-node-write-unknown-option also skips readonly selects (eval 1's status is one), and flow-condition-option-label reads only record-change start conditions. The old text also named a label filter as failing the run; the new text folds that into "else … fails the run". Both stay truthful under the hedge, and there is no headroom to spell more. No change asked.
  • nit N2, .changeset/36718-flow-teaching-accepted-shapes.md:12. "The ten publish-time flow checks" overstates: two are CLI-only and the three warnings refuse nothing at publish. Fold "the ten flow checks of os validate and publish" into the same edit if convenient.

Seat recommendations on the dev's open questions

Out-of-scope findings: the dev's note (flow-subflow-unknown warns on a correct call to another package's flow) is the rule's stated hedge. Noted, not filed; agreed.

Landing condition

  1. M1 is fixed on a new head (patch round to the same claim, changeset only), followed by a re-L1 on that head (changeset re-read sentence by sentence).
  2. The checks are green at that head, with Lint & Repo Gates and TypeScript Type Check success.
  3. The PR is Tier H. The seat never flips it ready, enqueues it, or arms auto-merge. Landing waits for os-zhuang's Approve, as the card names, or the maintainer's hand. Then the owning seat lands it.
  4. After merge, Fixes #36718 closes the card. Per the 7128031203 ruling, skills: SKILL.md becomes a router with a size budget, and points to the contract instead of restating it #34770 then leaves pm:blocked for pm:queue, and its "before" eval round runs on that main.

Seat — one patch round folds both records

The contract review on this head (posted above, PASS with two should-fix) and this L1 make ONE round:

  • M1 (this record): the changeset sentence "No file grows: each new word replaces one" — say what holds (no skill file gains a line or passes its token ceiling; recipe 1's two labels shortened to pay for the timezone key). Fix N2 in the same sentence pass ("publish-time" only for the checks that run at publish).
  • S1 (contract review): the subflow row must not tie the os validate warning to the non-resolving branch alone — flow-subflow-unknown also warns on a correct call to a flow another installed package ships, and eval 20's answer key still says "still passes os validate". This is answered IN this PR (it is the dev's Q2, scoped to making the row true; naming the rule id is optional). SKILL.md has zero token headroom: pay for it inside the file.
  • S2 (contract review): SKILL.md item 4 dropped the filter trap (a label in a filter, and in an edge/decision condition). Neither flow-node-write-unknown-option nor flow-condition-option-label reads those, so by skills: SKILL.md becomes a router with a size budget, and points to the contract instead of restating it #34770's rule ("No trap is removed until a publish-time check covers it or it stays inline") the trap stays — restated as what actually happens (the contract review reads that a label in a filter most likely matches no row rather than failing the run; trace it before writing the sentence).
  • Q1 (dev): no pin in this PR and no card — a pin would read message prose.
  • Tier H by skills/**: after the round, a re-L1 and a contract-review delta on the new head, then the hand-off to the approver.

…checks read

The `subflow` row no longer ties the `os validate` warning to the name
that fails at run time: `flow-subflow-unknown` warns on any name the
stack does not hold, a correct call to another package's flow included.
Item 4 names the `filter` and edge-condition trap again, as measured: no
check reads a label there and the run succeeds matching nothing. Eval
20's answer key states the warning. The changeset says what holds about
file size and which checks are warnings. SKILL.md stays inside its token
ceiling: the new words are paid for by shorter table rows.

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ed201b70523e7a8f738154b0fca2e5bd722628cb
Local-runs: probe — node scripts/check-skills-token-ratchet.mjs once, read-only, on a git archive of the head's scripts/ and skills/ in the scratchpad (the brief asked for the ceiling reading; nothing built, no test run)
Scope: packages/spec/src/automation/flow-start-config-refusals.ts, skills/objectstack-automation/SKILL.md, skills/objectstack-automation/evals/flows-triggers-approvals.json, skills/objectstack-automation/references/examples-flows.md, skills/objectstack-automation/references/integration-recipes.md + packages/triggers/trigger-schedule/README.md, examples/app-showcase/src/automation/flows/index.ts
Security-touching: no

Delta record. It follows the contract review of head ec3822d63a91126bcc49a2f9603e30bdece2fe84 (comment 7128772468: PASS, should-fix S1 and S2, nits N1 and N2) and judges ec3822d6..ed201b70: commits 9e163110 and ed201b70, three files (the changeset, SKILL.md, the eval JSON). The other five files of the PR are byte-identical to the head already reviewed, and that record stands for them.

Read: card #36718 (body, 5 comments, newest os-dev-report 7129961596), PR #36932 (body, 8 files, net diff against origin/main, the delta), the 73 check-runs on the head. Rule code read on origin/main 02127147: packages/lint/src/validate-flow-trigger-readiness.ts, validate-flow-node-writes.ts, flow-select-options.ts, lint-flow-patterns.ts, authoring-rules.ts, object-graph.ts; packages/objectql/src/validation/record-validator.ts and rule-validator.ts for invalid_option.

Check-runs on ed201b70: 73 completed, 60 success, 13 skipped, none failed, none pending or in progress (read once; the run the dev report saw in progress has finished). Lint & Repo Gates, Lint · repo & tooling gates, TypeScript Type Check, Test Core, Build Core, Check Changeset (both runs), Governed Surface Queue Guard, Dogfood Regression Gate: success.

① Derived judgments

  • Accept set and public surface: unchanged by the delta, right. The delta is skill prose, one eval answer key and changeset prose. No schema, rule, reader or message string moved.
  • "No ceiling raised": right. scripts/ is not in the delta or in the PR's file list. The ratchet at the head exits 0: 60 authored bundle file(s) within their ceilings; SKILL.md 7045 tokens on a 7045 ceiling (headroom 0), examples-flows.md 1543 / 1543, integration-recipes.md 2595 / 2595. The SKILL.md ceiling row reads 7045 in the head's script and in origin/main's. Bytes, ec3822d6 to head: SKILL.md 28199 to 28198, 479 to 480 lines; the eval JSON 28414 to 28588 (eval fixture, measured, not ratcheted).
  • Security-touching: no: the changed hunks teach a validator warning on a subflow name, what a label in a filter or an edge condition does, and shorter spellings of table cells. The http row (credentials in url and headers) is in the diff context and no word of it changed. The first record's caveat on eval 1's unchanged runAs sentence still applies and is still unchanged text.

② Semver level

patch on the same three packages, unchanged by the delta, and still what the diff publishes. Clause-②: no and Metadata-protocol: none stand. The changeset's new sentences, each read against the tree:

  • M1 (the seat's): "No file grows: each new word replaces one" is gone. "No skill file passes its token ceiling: SKILL.md gains one line, paid for by shorter wording and shorter table separator rows in the same file, and two node labels in recipe 1 are shortened to pay for the timezone key" is true: numstat on skills/** against origin/main is 21/20 for SKILL.md and balanced for the other three files; the ratchet reads above.
  • N2: "Ten flow checks of os validate and publish" no longer calls all ten publish-time. "Three of them are warnings and refuse nothing: flow-schedule-timezone-missing, flow-subflow-unknown (run by the CLI only) and flow-create-update-pair" is true: the three are severity: 'warning' (validate-flow-trigger-readiness.ts:1096, :1715; lint-flow-patterns.ts:2844), the other seven are error, and validateFlowSubflowTargets is tier: 'advisory', surfaces: CLI_ONLY (authoring-rules.ts:1669-1676).
  • The subflow clause ("warns flow-subflow-unknown on any name the stack does not hold, a correct call to another package's flow included, where it said os validate passes") and the label clause ("a label in a filter or an edge condition is never checked and silently matches nothing, where it said a filter fails the run") both describe the head's text and main's text correctly. "Eval 20's states that warning": true.
  • No false sentence found in the changeset.

③ Boundary flags

  • Dev deviation, rows outside the two named spots re-spelled to pay about 180 bytes: accepted, read cell by cell in ④. No fact is lost.
  • Dev deviation, SKILL.md gains one line: accepted; the changeset and the PR body both say so, and the line budget is +1 of 40.
  • Dev deviation, N2 names only flow-subflow-unknown as CLI-only because flow-create-update-pair's surface was not traced: accepted. The sentence claims nothing about that rule's surface; "warnings and refuse nothing" holds for it either way.
  • Dev deviation, a second commit corrected one changeset clause, so the dev's full gate union is one commit behind: answered by the check-runs, which are on ed201b70 itself.
  • Dev open question (who sends the replacement PR body): answered in fact, A. The live PR body is the patch-round text (rows 1, 2, 15, 16, the size table, "Net lines: +1") and matches the tree.
  • Q1 of the first round (a structural pin): the seat ruled no pin; nothing was added, right.
  • Out-of-scope finding the dev names (no check reads an option label in a CRUD filter operand or an edge condition): real, and the reading in ④ agrees. It is a lint-coverage card for the seat to file, not a change this PR owes.
  • SQL push-down: no query, id materialisation or join in the delta.
  • Nothing escalated to the maintainer.

④ Design judgment

S1: closed. The subflow row now has two separate sentences. "Else the node fails at run time (…)" keeps the three named causes and no longer mentions the validator. "os validate warns flow-subflow-unknown on any name this stack lacks, a correct cross-package call included" is what validateFlowSubflowTargets does: known is the stack's own flow names plus the flows of its packages[] entries (packagesOf, the artifact's own package bodies, not a manifest's dependencies), and a subflow or map node whose flowName is outside known gets the warning. The rule never reads dependencies, so eval 20's new sentence "warns here with or without the dependency, because acme.billing's own stack does not hold notify_owner" is right, and "the warning is expected on this correct call and is not that failure" is the rule's own hint ("ignore this if another installed package ships" the name). The retired phrasing "still passes os validate" is gone from the eval file. Eval 20's assertions are unchanged; the file parses, 25 evals.

S2: closed. Item 4 names the uncovered forms again: "A label in a filter or an edge condition is never checked: it silently matches nothing." Against the code path:

  • "never checked": optionLabelComparisons has one call site, the record-change start node's config.condition (validate-flow-trigger-readiness.ts:868); flow-node-write-unknown-option reads the fields map of update_record / create_record (FLOW_WRITE_NODE_TYPES). flow-select-options.ts has no third consumer in packages/lint/src, and no other rule id in the rule table judges an option label. So no check of os validate or publish reads a filter operand or an edge condition for a label.
  • "silently matches nothing": invalid_option is raised on write validation only (record-validator.ts, rule-validator.ts, plus import coercion and form routes). Nothing on the query path raises it, so a filter: { status: 'Lost' } is an ordinary equality that no stored row satisfies, and an edge condition comparing with the label evaluates false. This agrees with the dev's probe (HTTP 200, selected: 0, acted: 0, branch skipped, no invalid_option), and it confirms that main's "a filter fails the run (invalid_option)" was wrong. The corrected sentence is the true one.
  • The first sentence of the item is unchanged and still holds for the two error rules.

The re-spelled rows and cells of SKILL.md, each read old against new:

  • Six separator rows |:-----|:--------| (and the two other long forms) to |:--|:--|: same two left-aligned columns; the file already used this form on three tables at ec3822d6.
  • autolaunched, screen, schedule, start, decision, wait, get_record: same facts in fewer words (no user interaction, started by events, APIs or other flows; exactly one start; branching by edge condition predicates and not node config; timer or named signal; fetch by filter, no query_record).
  • end: "can have multiple" became "one or more". This adds "at least one", which is not new teaching in the bundle: references/examples-flows.md already says every path through the graph must reach an end node. No fact lost, none contradicted.
  • "The node as JSON" to "As JSON", and item 4's "The request says "Lost"; the row stores lost": the heading of item 4 still says value, never label, and the notify section heading still names the node.
  • No sentence, trap, example or rule id present at ec3822d6 is absent at the head, apart from the two sentences S1 and S2 replaced.

No must-fix, no should-fix.

  • N1 and N2 of the first record: N2 (recipe 1's shortened labels) is now stated in the changeset as the price of the timezone key and is an accepted deviation; N1 (eval 1 fixes 'UTC' for an unzoned request) is unchanged and stays a nit.
  • N3 (nit) — "silently matches nothing" is exact for an equality, the form the item shows. A negated comparison with a label (!=, $ne) matches every row instead. The start-condition sentence carries the same simplification on main, and the file has no headroom to spell it. No change asked.

Implemented-by: claude/issue-36718-flow-skill-teaches-accepted-shapes
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head ed201b70523e7a8f738154b0fca2e5bd722628cb · 2026-11-24T11:51Z

Delta L1 on PR #36932 (card #36718), against the patch-round report 7129961596 and the fold list in the REWORK record 7128796845 (M1, N2, S1, S2, Q1 no pin). The head adds two commits on ec3822d6 (9e163110, ed201b70). They touch 3 of the PR's 8 files: the changeset, SKILL.md and the eval JSON. ed201b70 changes only one changeset clause. All four fold items are closed, and each new sentence is true against the rule code on origin/main 02127147. The re-spelled SKILL.md cells lose no fact. The rewritten PR body matches the head. No ceiling moved. No must-fix and no should-fix remain; there are three nits, no change asked.

1. Shape

2. Delivery vs the fold list

M1 is closed: .changeset/36718-flow-teaching-accepted-shapes.md:15. The false "No file grows: each new word replaces one" is gone. The new closing sentence is "No skill file passes its token ceiling: SKILL.md gains one line, paid for by shorter wording and shorter table separator rows in the same file, and two node labels in recipe 1 are shortened to pay for the timezone key." I checked each clause:

  • Token ratchet, run from a git archive of the head's scripts/ + skills/: exit 0, 60 authored bundle file(s) within their ceilings. SKILL.md 7045 / 7045 (+0), examples-flows.md 1543 / 1543 (+0), integration-recipes.md 2595 / 2595 (+0).
  • "gains one line": 479 → 480 against merge-base f46ce5b4.
  • "shorter wording and … separator rows": 28199 → 28198 bytes, and |:--| occurrences 3 → 9.
  • Recipe 1's labels: unchanged since ec3822d6.

I also re-read line 15's other clauses against main's text:

  • The subflow row clause: main:81 said "os validate passes".
  • The select-label clause: main:325-327 said "stages clean … a filter fails the run".
  • Eval 1 and eval 20: true.

N2 is closed: changeset :12. "The ten publish-time flow checks" became "Ten flow checks of os validate and publish", followed by "Three of them are warnings and refuse nothing: flow-schedule-timezone-missing, flow-subflow-unknown (run by the CLI only) and flow-create-update-pair." Checked against packages/lint/src/authoring-rules.ts on origin/main:

  • validateFlowSubflowTargets is advisory, surfaces: CLI_ONLY (:1669-1676).
  • lintFlowPatterns, which holds flow-create-update-pair, is surfaces: CLI_AND_RUNTIME (:2190-2199). So the publish door does run it, as a warning.
  • flow-schedule-timezone-missing lives in validateFlowTriggerReadiness, which is CLI_AND_RUNTIME.

So "publish" is no longer claimed for a check that runs only on the CLI, and only the one CLI-only check is marked as such. Correction to my REWORK record: its N2 said flow-create-update-pair also runs on the CLI only. That was wrong. The dev traced it and did not repeat the claim.

S1 is closed:

  • The SKILL.md:81 subflow row now ends the run-time branch at the failure cases. It then says, in a sentence of its own: "os validate warns flow-subflow-unknown on any name this stack lacks, a correct cross-package call included."
  • Checked against validateFlowSubflowTargets (validate-flow-trigger-readiness.ts:1690-1730). known holds this stack's flows plus the flows of the packages in its packages[]. Any other subflow/map flowName warns. Its hint is "…or ignore this if another installed package ships ''".
  • ambiguous-* names are held, so they are silent, and the row no longer implies otherwise.
  • The eval 20 expected_output (evals/flows-triggers-approvals.json:357) no longer says "still passes os validate". It now says the warning fires with or without the manifest dependency (a dependencies entry does not put acme.crm in packages[]), and that the warning is "not that failure".
  • Eval 20's must_contain / must_not_contain are unchanged and do not conflict. The file parses, and it still holds 25 evals.

S2 is closed. SKILL.md:326-327 adds: "A label in a filter or an edge condition is never checked: it silently matches nothing."

  • "never checked": the only readers of option labels in packages/lint/src are flow-select-options.ts and its two rules. flow-condition-option-label reads the start node's config.condition only (validate-flow-trigger-readiness.ts:862-868). flow-node-write-unknown-option reads fields only. A git grep for selectOptionsOf|optionLabel|unknown-option|invalid_option outside tests finds no other reader.
  • "silently matches nothing": the dev measured this before writing the sentence, on a scratch dogfood probe under the verify lock (Tests 1 passed (1)):
    • get_record with filter: { status: 'Lost' } returns selected: 0 (the control 'lost' returns 2).
    • update_record with multi: true returns acted: 0 (control: 2).
    • A decision edge on 'Lost' gives skipped: 1 (control: acted: 1).
    • No response carried invalid_option.
    • It has a positive control on every leg.
  • main's "a filter fails the run (invalid_option)" was itself wrong. The new text corrects it rather than restoring it, which is what the fold asked for. See nit N-a.

Q1: no pin, as the record said.

Re-spelled SKILL.md cells, diffed one cell at a time (ec3822d6 → ed201b70):

Line Before After Fact kept
37, 72, 87, 98, 108, 421 |:-----|:--------| (×6, long forms) |:--|:--| Same left alignment. The form already appeared 3× in the file (:173, :390, :407)
38 autolaunched Runs without user interaction — triggered by events, APIs, or other flows No user interaction: started by events, APIs or other flows yes
39 screen Presents UI screens Shows UI screens yes
40 schedule … config.schedule** — or a per-record date sweep … … config.schedule**, or a per-record date sweep … yes, bold kept
73 start Entry point — every flow has exactly one Entry point: exactly one per flow yes
74 end Exit point — can have multiple Exit point: one or more yes
75 decision Conditional branching — routed by edge condition predicates, not node config Branch by edge condition predicates, not node config yes
80 wait Pause until a timer elapses or a named signal arrives Pause for a timer or a named signal yes
81 subflow Else os validate may warn and the node fails at run time (…) Else the node fails at run time (…). os validate warns flow-subflow-unknown on any name this stack lacks, a correct cross-package call included yes, plus S1
92 get_record Fetch records with filters (no query_record) Fetch records by filter (no query_record) yes
114 notify The node as JSON (TypeScript: …) As JSON (TypeScript: …) yes, under the ### notify heading
324 item 4 The request speaks the label ("Lost"); the row stores the value (lost). The request says "Lost"; the row stores lost. yes; the label/value naming is carried by the line-323 heading (nit N-b)

No trap, example, rule id or route was removed. check:skill-served-sections, check:skill-docs, check:skill-refs and check:skill-examples ran on 9e163110, whose skills/** content is identical to the head's (git diff --stat 9e163110 ed201b70 names only the changeset). CI at the head is green (§3).

PR body against the head. Every measured claim matches what I measured on blobs, against merge-base f46ce5b4 (git merge-base origin/main ed201b70):

Claim Measured
SKILL.md lines 479 → 480; 28199 → 28198 bytes; tokens 7045 → 7045 same
examples-flows.md 145 → 145; 1543 → 1543 same
integration-recipes.md 186 → 186; 2594 → 2595 (ceiling 2595) same (ceiling 2595 at both base and head)
eval JSON 450 → 450; 7078 → 7147 same (28309 → 28588 bytes)
all 14 SKILL.md 4947 → 4948 lines; 65225 → 65225 tokens same (summed from the ratchet's own per-file count at base and at head)
"Net lines across skills/**: +1" numstat: SKILL.md 21/20; eval 2/2; examples 2/2; recipes 3/3
Two-minute check sentence true

Table rows 1, 2, 15 and 16 match the head text word for word. Row 16's "six separator rows, eight cells and two sentences" counts right.

The stale claims the dev listed are all gone from the body:

  • "Net lines … 0"
  • "no line added or removed in skills/**" (now "SKILL.md gains one line (item 4), no other skill file gains or loses one")
  • the old rows 1 and 2
  • the old size table
  • the two acceptance notes on item 4 and the subflow row
  • the old numstat sentence
  • 维护者速读's 技能包没有变长 (now 技能包的长度上限没有抬高)

3. Gates

  • At ed201b70 (pr-state.mjs): 60 success · 13 expected skip · 0 unexpected skip · 0 failed · 0 pending. Lint & Repo Gates success; TypeScript Type Check success; Test Core, Build Core, Check Changeset ×2, Governed Surface Queue Guard, Dogfood Regression Gate, PR-body guards: success (check-runs read on the head).
  • check-governed-merges.mjs --pr 36932, exit 3: ⛔ GOVERNED, skills/** ×4. Landing tier H (human merge). The low-risk skills arm does not apply: three paths are outside skills wording, and the changeset releases @objectstack/spec and @objectstack/trigger-schedule. Size +58 / −37, under the human-merge threshold.
  • landing-k.mjs --pr 36932: OK, K = 6 < 15.
    • Locale leg: no new locale pack. It reads as a label PR because of the showcase file, but that file has two comment edits only, unchanged this round.
    • Shared-budget leg: this PR touches the skills token ratchet, and main has moved no shared book since PRBASE.
  • Ratchet ceilings unchanged: git diff --name-only f46ce5b4 ed201b70 -- scripts is empty, and the ceilings print the same at base and head (7045, 1543, 2595).
  • Dogfood not owed: no ! and no (narrowing).

4. Tests evidence

The round is wording only, so no package test is owed. The dev re-ran no package test, because no package source changed. The evidence is real commands with quoted output, pinned:

  • The S2 probe on the ec3822d6 tree: VERDICT command-exit 0, Tests 1 passed (1), with readings and a positive control on each of the three legs.
  • The same shapes through runAuthoringRules('validate', …) from the built @objectstack/lint. There is no label finding on the filter or the edge. The control (a label in the start condition and in fields) answers both error rules, which is the positive control for "never checked". An unknown subflow answers flow-subflow-unknown (warning).
  • dispatch-gates.mjs --ran on 9e163110: 95 run, exit 0. 1 NOT MEASURED, check:dual-build-cjs-loads, exit 3 because it needs dist/; CI ran it at the head.
  • On ed201b70, re-run after the changeset-only commit, each exit 0: the ratchet, check-empty-changeset, check-changeset-no-major, check-adr-0087-registration, check:nul-bytes, check:doc-authoring, check:issue-citations, check:published-files.
  • I reproduced the ratchet myself (§2).
  • The probe and harness are not committed. That is correct: they are one-shot verifiers.
  • The extraction harness was not re-run on the head. Accepted: the new item-4 sentence names the filter/edge forms as the trap and spells no flow shape for an author to copy.
  • The report's REST reads went through gh api rather than MCP. These were reads of the card and PR state, not git-answerable data. No note owed.

5. Accepted deviations

  • The two new SKILL.md sentences (about 180 bytes at zero headroom) are paid for inside the file by the re-spellings in the §2 table. Those cells are outside the two spots the fold named but inside the claimed file. I diffed each cell, and no fact was removed.
  • SKILL.md gains one line (+1 against the +40 budget). The changeset and the body both say so.
  • N2 is worded from what the dev read in the code: only flow-subflow-unknown is marked CLI-only. This is more accurate than my REWORK record's N2 (correction in §2).
  • PR body edits after pr_create went through the seat (os-dev.md), using the dev's hand-off file.
  • ed201b70 corrects one changeset clause of 9e163110. The full gate union is therefore read on 9e163110. The gates that read the changeset, and the ratchet, were re-run on the head.
  • The dev built dependency closures only to run the probe and check:skill-examples.

6. Out of scope + landing condition

Findings (no must-fix, no should-fix):

  • nit N-a, skills/objectstack-automation/SKILL.md:326-327. "it silently matches nothing" was measured on the probe's default driver only. On a SQL column with a case-insensitive collation, a label that differs from its value only in case would match. Item 4's own example, "Lost" / lost, is such a pair. driver-sql itself mentions case-insensitive columns (sql-driver-autonumber.ts:387). I did not measure this. The teaching, "compare and write the value", is right either way. No change asked; this is for the contract-review delta to weigh.
  • nit N-b, SKILL.md:324. "The request says "Lost"; the row stores lost." no longer says which is the label and which is the value. The bold heading on :323 carries that ("by its option value, never its label"). No fact lost; no change.
  • nit N-c, PR body table row 2, check column: "no check reads a filter or an edge condition". This is broader than true. Other rules do read filter operands, for example the {…}-token refusal and flow_crud_missing_selector. What is meant is that no option-label check reads them. The text is in the body only and is not shipped. The seat may change it to "no option-label check reads …" at the next body edit.

Out-of-scope findings from the report:

  • The dev's class-c finding: a label in a CRUD filter operand or an edge condition passes os validate and silently selects nothing. Proposed home: extend the two option-label rules, one family card. It is a real coverage gap behind S2's sentence and is the dev's to file through the normal intake. It does not block this PR.
  • The door-rules-corpus.ts copy of main's item 4: a dated snapshot by its own header. Noted, not filed; agreed.
  • flow-subflow-unknown on a correct cross-package call: this is the rule's stated hedge, and it is now taught. Noted, not filed.

Landing condition

  1. This head is L1 ACCEPT. CI at ed201b70 is green, with Lint & Repo Gates and TypeScript Type Check success.
  2. The PR is Tier H (skills/** ×4; the low-risk skills arm does not apply). The seat never flips it ready, enqueues it, or arms auto-merge.
  3. Next step: a contract-review delta on this same head (ed201b70523e7a8f738154b0fca2e5bd722628cb), covering S1, S2 and the re-spelled cells. After that same-head contract-review PASS, the PR is handed off to the approver: os-zhuang's Approve, as the card names, or the maintainer's hand. Then the owning seat lands it. A new push voids this ACCEPT and the PASS.
  4. After merge, Fixes #36718 closes the card. Per ruling 7128031203, skills: SKILL.md becomes a router with a size budget, and points to the contract instead of restating it #34770 then moves from pm:blocked to pm:queue, and its "before" eval round runs on that main. docs(skills): objectstack-data and objectstack-automation SKILL.md become routers #36158's resume maps this card's edits, including the re-spelled cells, onto the moved text.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ed201b70523e7a8f738154b0fca2e5bd722628cb
Local-runs: probe — node scripts/check-skills-token-ratchet.mjs once, read-only, on a git archive of the head's scripts/ and skills/ in the scratchpad (the brief asked for the ceiling reading; nothing built, no test run)
Scope: packages/spec/src/automation/flow-start-config-refusals.ts, skills/objectstack-automation/SKILL.md, skills/objectstack-automation/evals/flows-triggers-approvals.json, skills/objectstack-automation/references/examples-flows.md, skills/objectstack-automation/references/integration-recipes.md + packages/triggers/trigger-schedule/README.md, examples/app-showcase/src/automation/flows/index.ts
Security-touching: no

Delta record. It follows the contract review of head ec3822d63a91126bcc49a2f9603e30bdece2fe84 (record ID: 7128772468 — PASS with S1 and S2 graded should-fix, nits N1 and N2) and judges ec3822d6..ed201b70: commits 9e163110 and ed201b70, three files (the changeset, SKILL.md, the eval JSON). The other five files of the PR are byte-identical to the head already reviewed, and that record stands for them.

Read: card #36718 (body, 5 comments, newest os-dev-report 7129961596), PR #36932 (body, 8 files, net diff against origin/main, the delta), the 73 check-runs on the head. Rule code read on origin/main 02127147: packages/lint/src/validate-flow-trigger-readiness.ts, validate-flow-node-writes.ts, flow-select-options.ts, lint-flow-patterns.ts, authoring-rules.ts, object-graph.ts; packages/objectql/src/validation/record-validator.ts and rule-validator.ts for invalid_option.

Check-runs on ed201b70: 73 completed, 60 success, 13 skipped, none failed, none pending or in progress (read once; the run the dev report saw in progress has finished). Lint & Repo Gates, Lint · repo & tooling gates, TypeScript Type Check, Test Core, Build Core, Check Changeset (both runs), Governed Surface Queue Guard, Dogfood Regression Gate: success.

① Derived judgments

  • Accept set and public surface: unchanged by the delta, right. The delta is skill prose, one eval answer key and changeset prose. No schema, rule, reader or message string moved.
  • "No ceiling raised": right. scripts/ is not in the delta or in the PR's file list. The ratchet at the head exits 0: 60 authored bundle file(s) within their ceilings; SKILL.md 7045 tokens on a 7045 ceiling (headroom 0), examples-flows.md 1543 / 1543, integration-recipes.md 2595 / 2595. The SKILL.md ceiling row reads 7045 in the head's script and in origin/main's. Bytes, ec3822d6 to head: SKILL.md 28199 to 28198, 479 to 480 lines; the eval JSON 28414 to 28588 (eval fixture, measured, not ratcheted).
  • Security-touching: no: the changed hunks teach a validator warning on a subflow name, what a label in a filter or an edge condition does, and shorter spellings of table cells. The http row (credentials in url and headers) is in the diff context and no word of it changed. The first record's caveat on eval 1's unchanged runAs sentence still applies and is still unchanged text.

② Semver level

patch on the same three packages, unchanged by the delta, and still what the diff publishes. Clause-②: no and Metadata-protocol: none stand. The changeset's new sentences, each read against the tree:

  • M1 (the seat's): "No file grows: each new word replaces one" is gone. "No skill file passes its token ceiling: SKILL.md gains one line, paid for by shorter wording and shorter table separator rows in the same file, and two node labels in recipe 1 are shortened to pay for the timezone key" is true: numstat on skills/** against origin/main is 21/20 for SKILL.md and balanced for the other three files; the ratchet reads above.
  • N2: "Ten flow checks of os validate and publish" no longer calls all ten publish-time. "Three of them are warnings and refuse nothing: flow-schedule-timezone-missing, flow-subflow-unknown (run by the CLI only) and flow-create-update-pair" is true: the three are severity: 'warning' (validate-flow-trigger-readiness.ts:1096, :1715; lint-flow-patterns.ts:2844), the other seven are error, and validateFlowSubflowTargets is tier: 'advisory', surfaces: CLI_ONLY (authoring-rules.ts:1669-1676).
  • The subflow clause ("warns flow-subflow-unknown on any name the stack does not hold, a correct call to another package's flow included, where it said os validate passes") and the label clause ("a label in a filter or an edge condition is never checked and silently matches nothing, where it said a filter fails the run") both describe the head's text and main's text correctly. "Eval 20's states that warning": true.
  • No false sentence found in the changeset.

③ Boundary flags

  • Dev deviation, rows outside the two named spots re-spelled to pay about 180 bytes: accepted, read cell by cell in ④. No fact is lost.
  • Dev deviation, SKILL.md gains one line: accepted; the changeset and the PR body both say so, and the line budget is +1 of 40.
  • Dev deviation, N2 names only flow-subflow-unknown as CLI-only because flow-create-update-pair's surface was not traced: accepted. The sentence claims nothing about that rule's surface; "warnings and refuse nothing" holds for it either way.
  • Dev deviation, a second commit corrected one changeset clause, so the dev's full gate union is one commit behind: answered by the check-runs, which are on ed201b70 itself.
  • Dev open question (who sends the replacement PR body): answered in fact, A. The live PR body is the patch-round text (rows 1, 2, 15, 16, the size table, "Net lines: +1") and matches the tree.
  • Q1 of the first round (a structural pin): the seat ruled no pin; nothing was added, right.
  • Out-of-scope finding the dev names (no check reads an option label in a CRUD filter operand or an edge condition): real, and the reading in ④ agrees. It is a lint-coverage card for the seat to file, not a change this PR owes.
  • SQL push-down: no query, id materialisation or join in the delta.
  • Nothing escalated to the maintainer.

④ Design judgment

S1: closed. The subflow row now has two separate sentences. "Else the node fails at run time (…)" keeps the three named causes and no longer mentions the validator. "os validate warns flow-subflow-unknown on any name this stack lacks, a correct cross-package call included" is what validateFlowSubflowTargets does: known is the stack's own flow names plus the flows of its packages[] entries (packagesOf, the artifact's own package bodies, not a manifest's dependencies), and a subflow or map node whose flowName is outside known gets the warning. The rule never reads dependencies, so eval 20's new sentence "warns here with or without the dependency, because acme.billing's own stack does not hold notify_owner" is right, and "the warning is expected on this correct call and is not that failure" is the rule's own hint ("ignore this if another installed package ships" the name). The retired phrasing "still passes os validate" is gone from the eval file. Eval 20's assertions are unchanged; the file parses, 25 evals.

S2: closed. Item 4 names the uncovered forms again: "A label in a filter or an edge condition is never checked: it silently matches nothing." Against the code path:

  • "never checked": optionLabelComparisons has one call site, the record-change start node's config.condition (validate-flow-trigger-readiness.ts:868); flow-node-write-unknown-option reads the fields map of update_record / create_record (FLOW_WRITE_NODE_TYPES). flow-select-options.ts has no third consumer in packages/lint/src, and no other rule id in the rule table judges an option label. So no check of os validate or publish reads a filter operand or an edge condition for a label.
  • "silently matches nothing": invalid_option is raised on write validation only (record-validator.ts, rule-validator.ts, plus import coercion and form routes). Nothing on the query path raises it, so a filter: { status: 'Lost' } is an ordinary equality that no stored row satisfies, and an edge condition comparing with the label evaluates false. This agrees with the dev's probe (HTTP 200, selected: 0, acted: 0, branch skipped, no invalid_option), and it confirms that main's "a filter fails the run (invalid_option)" was wrong. The corrected sentence is the true one.
  • The first sentence of the item is unchanged and still holds for the two error rules.

The re-spelled rows and cells of SKILL.md, each read old against new:

  • Six separator rows |:-----|:--------| (and the two other long forms) to |:--|:--|: same two left-aligned columns; the file already used this form on three tables at ec3822d6.
  • autolaunched, screen, schedule, start, decision, wait, get_record: same facts in fewer words (no user interaction, started by events, APIs or other flows; exactly one start; branching by edge condition predicates and not node config; timer or named signal; fetch by filter, no query_record).
  • end: "can have multiple" became "one or more". This adds "at least one", which is not new teaching in the bundle: references/examples-flows.md already says every path through the graph must reach an end node. No fact lost, none contradicted.
  • "The node as JSON" to "As JSON", and item 4's "The request says "Lost"; the row stores lost": the heading of item 4 still says value, never label, and the notify section heading still names the node.
  • No sentence, trap, example or rule id present at ec3822d6 is absent at the head, apart from the two sentences S1 and S2 replaced.

No must-fix, no should-fix.

  • N1 and N2 of the first record: N2 (recipe 1's shortened labels) is now stated in the changeset as the price of the timezone key and is an accepted deviation; N1 (eval 1 fixes 'UTC' for an unzoned request) is unchanged and stays a nit.
  • N3 (nit) — "silently matches nothing" is exact for an equality, the form the item shows. A negated comparison with a label (!=, $ne) matches every row instead. The start-condition sentence carries the same simplification on main, and the file has no headroom to spell it. No change asked.

Implemented-by: claude/issue-36718-flow-skill-teaches-accepted-shapes
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ed201b70523e7a8f738154b0fca2e5bd722628cb
Local-runs: probe — node scripts/check-skills-token-ratchet.mjs once, read-only, on a git archive of the head's scripts/ and skills/ in the scratchpad (the brief asked for the ceiling reading; nothing built, no test run)
Scope: packages/spec/src/automation/flow-start-config-refusals.ts, skills/objectstack-automation/SKILL.md, skills/objectstack-automation/evals/flows-triggers-approvals.json, skills/objectstack-automation/references/examples-flows.md, skills/objectstack-automation/references/integration-recipes.md + packages/triggers/trigger-schedule/README.md, examples/app-showcase/src/automation/flows/index.ts
Security-touching: no

Delta record. It follows the contract review of head ec3822d63a91126bcc49a2f9603e30bdece2fe84 (record ID: 7128772468 — PASS with two findings, S1 and S2, owed a fix, and nits N1 and N2) and judges ec3822d6..ed201b70: commits 9e163110 and ed201b70, three files (the changeset, SKILL.md, the eval JSON). The other five files of the PR are byte-identical to the head already reviewed, and that record stands for them.

Read: card #36718 (body, 5 comments, newest os-dev-report 7129961596), PR #36932 (body, 8 files, net diff against origin/main, the delta), the 73 check-runs on the head. Rule code read on origin/main 02127147: packages/lint/src/validate-flow-trigger-readiness.ts, validate-flow-node-writes.ts, flow-select-options.ts, lint-flow-patterns.ts, authoring-rules.ts, object-graph.ts; packages/objectql/src/validation/record-validator.ts and rule-validator.ts for invalid_option.

Check-runs on ed201b70: 73 completed, 60 success, 13 skipped, none failed, none pending or in progress (read once; the run the dev report saw in progress has finished). Lint & Repo Gates, Lint · repo & tooling gates, TypeScript Type Check, Test Core, Build Core, Check Changeset (both runs), Governed Surface Queue Guard, Dogfood Regression Gate: success.

① Derived judgments

  • Accept set and public surface: unchanged by the delta, right. The delta is skill prose, one eval answer key and changeset prose. No schema, rule, reader or message string moved.
  • "No ceiling raised": right. scripts/ is not in the delta or in the PR's file list. The ratchet at the head exits 0: 60 authored bundle file(s) within their ceilings; SKILL.md 7045 tokens on a 7045 ceiling (headroom 0), examples-flows.md 1543 / 1543, integration-recipes.md 2595 / 2595. The SKILL.md ceiling row reads 7045 in the head's script and in origin/main's. Bytes, ec3822d6 to head: SKILL.md 28199 to 28198, 479 to 480 lines; the eval JSON 28414 to 28588 (eval fixture, measured, not ratcheted).
  • Security-touching: no: the changed hunks teach a validator warning on a subflow name, what a label in a filter or an edge condition does, and shorter spellings of table cells. The http row (credentials in url and headers) is in the diff context and no word of it changed. The first record's caveat on eval 1's unchanged runAs sentence still applies and is still unchanged text.

② Semver level

patch on the same three packages, unchanged by the delta, and still what the diff publishes. Clause-②: no and Metadata-protocol: none stand. The changeset's new sentences, each read against the tree:

  • M1 (the seat's): "No file grows: each new word replaces one" is gone. "No skill file passes its token ceiling: SKILL.md gains one line, paid for by shorter wording and shorter table separator rows in the same file, and two node labels in recipe 1 are shortened to pay for the timezone key" is true: numstat on skills/** against origin/main is 21/20 for SKILL.md and balanced for the other three files; the ratchet reads above.
  • N2: "Ten flow checks of os validate and publish" no longer calls all ten publish-time. "Three of them are warnings and refuse nothing: flow-schedule-timezone-missing, flow-subflow-unknown (run by the CLI only) and flow-create-update-pair" is true: the three are severity: 'warning' (validate-flow-trigger-readiness.ts:1096, :1715; lint-flow-patterns.ts:2844), the other seven are error, and validateFlowSubflowTargets is tier: 'advisory', surfaces: CLI_ONLY (authoring-rules.ts:1669-1676).
  • The subflow clause ("warns flow-subflow-unknown on any name the stack does not hold, a correct call to another package's flow included, where it said os validate passes") and the label clause ("a label in a filter or an edge condition is never checked and silently matches nothing, where it said a filter fails the run") both describe the head's text and main's text correctly. "Eval 20's states that warning": true.
  • No false sentence found in the changeset.

③ Boundary flags

  • Dev deviation, rows outside the two named spots re-spelled to pay about 180 bytes: accepted, read cell by cell in ④. No fact is lost.
  • Dev deviation, SKILL.md gains one line: accepted; the changeset and the PR body both say so, and the line budget is +1 of 40.
  • Dev deviation, N2 names only flow-subflow-unknown as CLI-only because flow-create-update-pair's surface was not traced: accepted. The sentence claims nothing about that rule's surface; "warnings and refuse nothing" holds for it either way.
  • Dev deviation, a second commit corrected one changeset clause, so the dev's full gate union is one commit behind: answered by the check-runs, which are on ed201b70 itself.
  • Dev open question (who sends the replacement PR body): answered in fact, A. The live PR body is the patch-round text (rows 1, 2, 15, 16, the size table, "Net lines: +1") and matches the tree.
  • Q1 of the first round (a structural pin): the seat ruled no pin; nothing was added, right.
  • Out-of-scope finding the dev names (no check reads an option label in a CRUD filter operand or an edge condition): real, and the reading in ④ agrees. It is a lint-coverage card for the seat to file, not a change this PR owes.
  • SQL push-down: no query, id materialisation or join in the delta.
  • Nothing escalated to the maintainer.

④ Design judgment

S1: closed. The subflow row now has two separate sentences. "Else the node fails at run time (…)" keeps the three named causes and no longer mentions the validator. "os validate warns flow-subflow-unknown on any name this stack lacks, a correct cross-package call included" is what validateFlowSubflowTargets does: known is the stack's own flow names plus the flows of its packages[] entries (packagesOf, the artifact's own package bodies, not a manifest's dependencies), and a subflow or map node whose flowName is outside known gets the warning. The rule never reads dependencies, so eval 20's new sentence "warns here with or without the dependency, because acme.billing's own stack does not hold notify_owner" is right, and "the warning is expected on this correct call and is not that failure" is the rule's own hint ("ignore this if another installed package ships" the name). The retired phrasing "still passes os validate" is gone from the eval file. Eval 20's assertions are unchanged; the file parses, 25 evals.

S2: closed. Item 4 names the uncovered forms again: "A label in a filter or an edge condition is never checked: it silently matches nothing." Against the code path:

  • "never checked": optionLabelComparisons has one call site, the record-change start node's config.condition (validate-flow-trigger-readiness.ts:868); flow-node-write-unknown-option reads the fields map of update_record / create_record (FLOW_WRITE_NODE_TYPES). flow-select-options.ts has no third consumer in packages/lint/src, and no other rule id in the rule table judges an option label. So no check of os validate or publish reads a filter operand or an edge condition for a label.
  • "silently matches nothing": invalid_option is raised on write validation only (record-validator.ts, rule-validator.ts, plus import coercion and form routes). Nothing on the query path raises it, so a filter: { status: 'Lost' } is an ordinary equality that no stored row satisfies, and an edge condition comparing with the label evaluates false. This agrees with the dev's probe (HTTP 200, selected: 0, acted: 0, branch skipped, no invalid_option), and it confirms that main's "a filter fails the run (invalid_option)" was wrong. The corrected sentence is the true one.
  • The first sentence of the item is unchanged and still holds for the two error rules.

The re-spelled rows and cells of SKILL.md, each read old against new:

  • Six separator rows |:-----|:--------| (and the two other long forms) to |:--|:--|: same two left-aligned columns; the file already used this form on three tables at ec3822d6.
  • autolaunched, screen, schedule, start, decision, wait, get_record: same facts in fewer words (no user interaction, started by events, APIs or other flows; exactly one start; branching by edge condition predicates and not node config; timer or named signal; fetch by filter, no query_record).
  • end: "can have multiple" became "one or more". This adds "at least one", which is not new teaching in the bundle: references/examples-flows.md already says every path through the graph must reach an end node. No fact lost, none contradicted.
  • "The node as JSON" to "As JSON", and item 4's "The request says "Lost"; the row stores lost": the heading of item 4 still says value, never label, and the notify section heading still names the node.
  • No sentence, trap, example or rule id present at ec3822d6 is absent at the head, apart from the two sentences S1 and S2 replaced.

No must-fix, no should-fix.

  • N1 and N2 of the first record: N2 (recipe 1's shortened labels) is now stated in the changeset as the price of the timezone key and is an accepted deviation; N1 (eval 1 fixes 'UTC' for an unzoned request) is unchanged and stays a nit.
  • N3 (nit) — "silently matches nothing" is exact for an equality, the form the item shows. A negated comparison with a label (!=, $ne) matches every row instead. The start-condition sentence carries the same simplification on main, and the file has no headroom to spell it. No change asked.

Implemented-by: claude/issue-36718-flow-skill-teaches-accepted-shapes
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

维护者速读

  • 改了什么:自动化技能(及定时触发器说明、示例应用注释、三条定时启动报错提示)不再教会被发布检查拦下或告警的流程写法——定时都带时区;按选项显示名写条件会被拒、写在过滤或分支条件里会悄悄匹配不到;子流程名会被 os validate 告警。只改文字,不改任何检查规则。
  • 为什么:上周收紧了十条流程发布检查(fix(lint)!: ten publish-time checks for flows that save and do not run #36691),官方技能还在教旧写法,AI 和搭建者照着写会被拒(p1 流程发布检查收紧后,skills 文档和示例还在教会被新检查拦下的写法(#35143 后续) #36718)。
  • 风险:零运行时风险,纯文档与报错文案;技能包没有超出任何体积上限,没有抬高上限。
  • 要你做什么:在 head ed201b70523e7a8f738154b0fca2e5bd722628cb 上批准本 PR(Tier H:skills/**)。契约审核 PASS(本 PR 上最新的 ## Contract review,Head-sha 同上),L1 ACCEPT 在本 PR 上;批准后由席位落地。

席位意见:建议批准。两份记录无必须修与应修项;全部检查绿。顺带测出的"过滤/分支条件里写显示名校验不报"已另立 #36964,不在本 PR 内。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 24, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 24, 2026 12:18
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit a03bc4e Nov 24, 2026
79 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-36718-flow-skill-teaches-accepted-shapes branch November 24, 2026 12:56
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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

流程发布检查收紧后,skills 文档和示例还在教会被新检查拦下的写法(#35143 后续)

3 participants