Skip to content

fix(lint,service-automation)!: a flow value envelope is typed for the date-text verdicts, so timestamp() over a date field is refused at os validate and registerFlow - #34654

Merged
os-zhuang merged 14 commits into
mainfrom
claude/project-thread-wlvkf3
Nov 17, 2026
Merged

os-zhuang merged 14 commits into
mainfrom
claude/project-thread-wlvkf3

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Fixes #34451
Completes #34661 (not closed by this PR: the seat closes it after merge).

Clause-②: yes (narrowing) — narrowed: a flow value envelope (assignment values, create_record / update_record fields.*) that registered and published now refuses at os validate and at registerFlow when it hands timestamp() a date field (the date-text verdict family). Widened: the published ExprSchemaHint type gains one optional key, flowValueEnvelope.
Metadata-protocol: narrowed
Skills-docs: none — no published skill teaches a flow value envelope over a date field; skills/objectstack-formula/SKILL.md already states the timestamp() / date-text-call rule without naming a site, so it now holds for value envelopes as written

维护者速读

  • 改了什么:flow 的值信封(update_record / create_record 的 fields.*、assignment 的值)在记录触发或对被定型对象的 sweep、且 flow 不自己重绑 record/previous(previous 只算节点绑定,声明的会被运行时覆盖)时,按触发对象的字段类型校验,只放行 date-text 这一族判词;isoDate(timestamp(record.DATE_FIELD) + duration('168h')) 这类写法在 os validate 和引擎 registerFlow 同时被拒,并提示改写为 isoDate(addDays(record.DATE_FIELD, N));inbound hook、schedule、无触发或被父流程调用的 flow 不判。spec 的三条 ADR-0087 条目 surface 同步点名这个新位置(ADR-0087 upgrade-guide entries for the date-text verdicts name formulas and predicates only, not flow value envelopes #34661)。
  • 为什么改:日期字段运行时是 YYYY-MM-DD 文本,timestamp() 只认完整时间戳,这种写法过去校验通过、发布成功、每次运行都失败(cloud#4717 的现场);fix(formula)!: refuse timestamp() over a date-only field, which faults on every row #34447 的拒绝够不到值信封。
  • 风险与回滚:收窄(BREAKING,按 minor 发布):已存的、值信封里带这种写法的 flow 在挂了对象解析器的引擎上会注册失败,直到改写;只判 record.FIELD / previous.FIELD 读,其它类型判词不进值信封,运行时求值路径不变。回滚即 revert 本 PR。
  • 先看:packages/formula/src/validate.ts(flowValueEnvelopeDateTextIssue 与新 hint 键)、packages/services/service-automation/src/flow-registration-checks.ts(注册门传字段类型、存量预览也算)、packages/lint/src/validate-expressions.ts(checkDeclaredValue)。
  • 两分钟验证:pnpm --filter @objectstack/service-automation exec vitest run --maxWorkers=2 src/builtin/assignment-value-envelope.test.ts -t 34451,预期全部通过。
  • 需要你做的:受管面未触及;本 PR 是收窄,落地前需一次契约复审记录,由席位路由。

What changes

A flow value envelope was validated with no field types, by @objectstack/lint's checkDeclaredValue and by the engine's valueEnvelopeRefusals alike, so the date-text verdicts (#28944, #32595, #34447) never reached it. Measured on origin/main ffa6db1 before building: a record-triggered flow whose update_record writes due_date from isoDate(timestamp(record.borrow_date) + duration('168h')) got zero findings from validateStackExpressions and registered clean, in update_record, create_record and assignment alike.

Route A, as the seat named it: the date-text family only.

  • packages/formula/src/validate.ts: ExprSchemaHint gains the optional flowValueEnvelope key. With it (and fieldTypes), the value role runs ONE schema-aware pass, flowValueEnvelopeDateTextIssue: the date-text check typed at record scope, so it judges record.FIELD / previous.FIELD reads only; the Timestamp-typing mismatch is asked first and stands it down (so record.due_date + 1 and record.title * 2 stay another family's and say nothing here); the result is kept only when its code is date-text-call* / date-text-arithmetic*, under the run-may-fail arm. A bare name and a source that reads input take no verdict. Field existence, the near-miss, the bare-reference refusal, type-mismatch*, date-arithmetic*, date-duration-value and the traversal arm all stand down. Without the key the call is unchanged.
  • packages/lint/src/validate-expressions.ts: checkDeclaredValue takes the field types of the object the flow's conditions are typed against (start objectName, else a time-relative flow's swept object) and passes the hint only where the run's record is that object's row: the same faultOutcomeOf set a flow condition's proven outcome uses (record-triggered, or a sweep of the typed object), and only while the flow rebinds neither record (any row of collectFlowVariableNames) nor previous (a node row only: the collector asked without flow.variables, since seedRunVariables sets previous over a declared variable). Every other flow's envelopes are judged untyped, as before.
  • packages/services/service-automation: valueEnvelopeRefusals(value, fieldTypes?) passes the same hint when handed types. validateFlowExpressions hands it the resolver's field types for the bound object in BOTH modes, so registerFlow throws the refusal and the stored pass (canonicalizeStoredFlow) lists it at the slot; the binding is now derived in the stored mode too, so a time-relative flow is typed with its swept object there as well. The run-time evaluator still calls valueEnvelopeRefusals(envelope) untyped, unchanged. Three engine.ts docblocks that said "a resolver can never break a flow that used to register cleanly" now name this one exception. The typing is handed on only where deriveTriggerBinding gives record_change (string triggerType) or a time-relative sweep of the typed object, and flowRebindsRunRowRoots finds neither record (declared variable, node id, output / iterator / index / error variable, assignment target) nor previous (the same rows less the declared variable) via flowNodeBoundNames, so both doors judge one set. plugin.ts's resolver wiring comment and debug line now say the same (L2 N2).
  • .changeset/34451-flow-value-envelope-date-text.md: minor for @objectstack/spec, @objectstack/formula, @objectstack/lint and @objectstack/service-automation, the declaration lines, BREAKING banner, FROM to TO table, ADR-0087 disposition already-registered naming the three semantic entries (formula-timestamp-date-only-refused, formula-date-text-call-refused, formula-date-subtraction-refused), whose surface this PR rewrites to name the value-envelope site, its scope (record-triggered or a sweep of the typed object, rebinding neither record nor previous), its boot-registration consequence, and an acceptance-criteria line telling an operator how to confirm a stored flow is clear (no "failed to register flow" warning at boot; no registerFlow TODO from POST /api/v1/meta/_migrate-stored on the running server — the CLI's os migrate meta --stored boots automation inert, armRuntime: false, with no object-schema resolver, so it types no value envelope and cannot show this); it states ADR-0087 upgrade-guide entries for the date-text verdicts name formulas and predicates only, not flow value envelopes #34661 is completed by this PR.
  • packages/spec/src/migrations/entries/semantic/18.formula-timestamp-date-only-refused.ts, 18.formula-date-text-call-refused.ts, 18.formula-date-subtraction-refused.ts: surface text only (seat ruling on L2 S1, option i). No generated file moves (check:generated 14/14 up to date).

Tests

  • packages/formula/src/validate-date-text-arithmetic.test.ts, new top-level describe: the measured expression refused under date-text-call-run-may-fail with its params (call, reference, rewrite, shift); the bare call, a previous.FIELD read and record.borrow_date - duration('24h'); CONTROL: a datetime field under timestamp() and the taught addDays shift stay clean; CONTROL: record.title * 2, record.due_date + 1, today() - record.borrow_date and an unknown field say nothing in an envelope while a formula site still reports type-mismatch; a bare name and an input read take no verdict; a malformed envelope is still refused, and no hint means no change.
  • packages/lint/src/validate-expressions.test.ts, new top-level describe: validateStackExpressions refuses the measured expression and the bare call in update_record, create_record and assignment, at the slot's key path, naming the addDays shift; a time-relative flow is typed with its swept object; CONTROL: a datetime field and the taught shift are clean, and a text field in arithmetic stays silent in the envelope. CONTROLs for the stand-down, each carrying timestamp(record.borrow_date): an inbound-hook (api) start, a start with no trigger, a schedule, a child flow a parent starts through subflow, a record-triggered flow declaring a record variable, and one whose assignment assigns record. For the no-trigger and schedule starts the lint CONTROL asserts the findings equal those of a bare record.borrow_date read (the existing unbound-root refusal, automation: a flow CEL expression may name the run user as user, ctx.user or os.user; objectstack validate passes it and the run faults Unknown variable, because flow CEL binds only current_user #22565) and carry no date-text verdict. Round 3: record bound through a get_record outputVariable, a loop iterator / index variable, a try_catch errorVariable, a node id, and assignment shapes 2 and 3, and a sweep whose start names another object, each a CONTROL; timestamp(previous.borrow_date) refused, and two previous CONTROLs (get_record outputVariable: 'previous', an assignment building it); a declared previous still refused; field minus field refused.
  • packages/services/service-automation/src/builtin/assignment-value-envelope.test.ts, new top-level describe: registerFlow throws for all three slots, located and led by the published value-envelope sentence, naming the shift; the stored pass lists exactly the slot registerFlow refuses; a time-relative flow is typed with its swept object; CONTROL: datetime, a text field in arithmetic and record.due_date + 1 still register; with no resolver nothing changes, and the evaluator's own call stays untyped. CONTROLs for the stand-down, each carrying timestamp(record.borrow_date): an inbound-hook (api) start, a start with no trigger, a schedule, a child flow a parent starts through subflow, a record-triggered flow declaring a record variable, and one whose assignment assigns record. Each registers, with no stored todos. Round 3: record bound through a get_record outputVariable, a loop iterator / index variable, a try_catch errorVariable, a node id, and assignment shapes 2 and 3, and a sweep whose start names another object, each a CONTROL; timestamp(previous.borrow_date) refused, and two previous CONTROLs (get_record outputVariable: 'previous', an assignment building it); a declared previous still refused; field minus field refused.
  • No existing test changed: no test pinned the untyped value-envelope behaviour this narrows.

Acceptance notes

Verification

Final head: 8598c1dcb77d7865c91fac5e967d1df84ed44d7d (round 5, text only: 2a1630d, then a merge of origin/main). Round 5: the three entries' printed guidance no longer cites a tracker number (CI red at f11fa42: packages/cli/test/migrate-meta-engine-guidance.test.ts:420); packages/cli/test/migrate-meta-engine-guidance.test.ts 3/3, spec src/migrations + upgrade-guide-surface-span 213/213, check:generated up to date, the three changeset gates exit 0, check:nul-bytes exit 0.

Round 4 head f11fa429a9928903a4c41f400f34eb5ccc70be0e ( text only: L2 S4 and N7 in 50adcc3, then a merge of origin/main). Round 4 (text only): spec build, check:generated (14 up to date), spec src/migrations + upgrade-guide-surface-span + build-migration-registry-entry 216/216, spec and formula typecheck, the three changeset gates on the current body (exit 0), check:nul-bytes exit 0; the derived-gate set, the lint / service-automation suites and the dogfood battery were not re-run (last at 97856f7, readings below).

Round 3 head 97856f7327f7470fedfc65045b9a03eb4e4a6da8 ( L2 S3 / N5 / N6 in b49e849, then a merge of origin/main a34eb07; round 2 was 9a6882b and 8401e76). At that head: @objectstack/formula 68 files / 1872 tests, @objectstack/lint 214 / 9132, @objectstack/service-automation 287 / 4132, @objectstack/spec 848 / 27168 (1 todo), all passed, the four typechecks exit 0; spec check:generated exit 0 (14/14 up to date); dispatch-gates --commands 98 families, all exit 0, --ran 98 run / 0 NOT-MEASURED (/mnt/project-files/objectstack-seat2/34451-gates-ran.txt); dogfood battery VERDICT command-exit 0, 478 files passed / 3 skipped, 4055 tests passed / 68 skipped; the three changeset gates exit 0 (not-required (already-registered)).

Stand-down ablations (scripts/ablation-replace.mjs, each restored, git diff HEAD empty): lint, the previous stand-down removed → 2 failed / 23 passed (the two previous CONTROLs); engine, || nodeBound.has('previous') removed → 2 failed / 74 passed; lint, the trigger half removed → 5 failed (api, no trigger, schedule, subflow child, mismatched sweep); lint, the record half removed → 9 failed (declared record, the seven other binders, an assignment to record); engine, the whole predicate replaced by true → 16 failed (every CONTROL).

The details below are the first round's, at 81d78bb0f0 (merge of origin/main 31096af into the branch).

Premise on origin/main ffa6db1

validateStackExpressions over a record-triggered flow, three slots, the measured expression, the bare call, the datetime control and record.note * 2: zero findings in all twelve. registerFlow with a resolver wired: all six (three slots, measured and datetime) registered, no warning logged.

Packages
  • pnpm --filter @objectstack/formula test: Test Files 68 passed (68), Tests 1872 passed (1872); typecheck exit 0 (at 17673d2; formula is untouched by the later merge).
  • pnpm --filter @objectstack/lint test at 81d78bb: Test Files 214 passed (214), Tests 9097 passed (9097); typecheck exit 0.
  • pnpm --filter @objectstack/service-automation test at 81d78bb: Test Files 287 passed (287), Tests 4113 passed (4113); typecheck exit 0.
Ablation: the field types withheld at each door

Through scripts/ablation-replace.mjs (both suites import the edited file from source):

  • lint: anchor fieldTypes ? { fieldTypes, flowValueEnvelope: true } : undefined, x1 to x0, blob a47831c9ea26 to 71212190e115: Tests 4 failed | 2 passed (the three slot cases and the time-relative case red; the two CONTROLs green). Restored: blob == HEAD a47831c9ea26, git diff HEAD empty.
  • service-automation: anchor this.valueEnvelopeRefusals(found.value, schemaHint?.fieldTypes) x1 to x0, blob 104d6e1b2022 to b7c46e5799bc: Tests 5 failed | 52 passed (three slots, the stored pass, time-relative). Restored: blob == HEAD 104d6e1b2022, git diff HEAD empty.
Gates and dogfood battery
  • node scripts/pm/dispatch-gates.mjs --commands at 81d78bb: 74 families, each run with its exit captured before any pipe; --ran: 74 derived famil(ies) accounted for — 74 run, 0 NOT-MEASURED. check:dual-build-cjs-loads and check:type-check-debt first answered exit 3 (unbuilt packages; the lock held by the battery) and were re-run after building: exit 0 both.
  • check-adr-0087-registration: [BREAKING+clause-②-narrowing+metadata-protocol-narrowed] not-required (already-registered), exit 0.
  • Dogfood battery at 81d78bb (closure @objectstack/dogfood^... built, then pnpm --filter @objectstack/dogfood test under the verify lock): VERDICT command-exit 0, Test Files 478 passed | 3 skipped (481), Tests 4055 passed | 68 skipped (4123).
git merge-tree against the in-flight lint PRs

git merge-tree --write-tree --name-only of 81d78bb with each head, exit code and tree:


Generated by Claude Code

@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 4 package(s): @objectstack/formula, @objectstack/lint, @objectstack/service-automation, @objectstack/spec, touching 23 documentable anchor(s).

18 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json f02f4f63707bd05ae2186ca63babd54bfe37abcc.

⛔ 6 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 2 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 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; 123 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 — 174 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 f02f4f63707bd05ae2186ca63babd54bfe37abcc → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 5d145929f29465d35b240cad671a881d480d104c — the merge of head 8598c1dcb77d7865c91fac5e967d1df84ed44d7d into base f02f4f63707bd05ae2186ca63babd54bfe37abcc, 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 5d145929f29465d35b240cad671a881d480d104c && git checkout 5d145929f29465d35b240cad671a881d480d104c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin f02f4f63707bd05ae2186ca63babd54bfe37abcc 8598c1dcb77d7865c91fac5e967d1df84ed44d7d && git checkout -B drift-repro f02f4f63707bd05ae2186ca63babd54bfe37abcc && git merge --no-ff 8598c1dcb77d7865c91fac5e967d1df84ed44d7d

node scripts/docs-audit/affected-docs.mjs --json f02f4f63707bd05ae2186ca63babd54bfe37abcc

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

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs f02f4f63707bd05ae2186ca63babd54bfe37abcc → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…otocol narrowed, minor

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

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head 20c39a4 · 2026-11-17T05:04Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 20c39a477f2487327a3dad27d283b890903a2d92
Local-runs: none
Scope: packages/formula/src/validate.ts, packages/formula/src/validate-date-text-arithmetic.test.ts, packages/lint/src/validate-expressions.ts, packages/lint/src/validate-expressions.test.ts, packages/services/service-automation/src/dag-traversal.ts, packages/services/service-automation/src/engine.ts, packages/services/service-automation/src/flow-registration-checks.ts, packages/services/service-automation/src/builtin/assignment-value-envelope.test.ts + read, not reviewed: packages/formula/src/cel-engine.ts (firstTypeMismatch, firstDateTextVerdict, firstDateTextCall), packages/formula/src/index.ts, packages/services/service-automation/src/plugin.ts (resolver wiring, boot pull, re-sync), packages/services/service-automation/src/flow-definitions.ts (canonicalizeStoredFlow), packages/lint/src/flow-cel-root-scope.ts, packages/spec/src/migrations/entries/semantic/18.formula-timestamp-date-only-refused.ts, 18.formula-date-text-call-refused.ts, 18.formula-date-subtraction-refused.ts, docs/adr/0087-metadata-protocol-upgrade-contract.md, skills/objectstack-formula/SKILL.md, AGENTS.md (pre-landing item 3). Not reviewed: .changeset/34451-flow-value-envelope-date-text.md as prose (read for ②).

① Derived judgments

  • Accept-set, narrowed — right as declared. Refused now, clean on main: a flow whose start node names an object (or a time-relative flow, its swept object), where field types for that object are in hand, carrying a CEL value envelope in assignment assignments.* or create_record / update_record fields.* whose source, with no input read and no Timestamp-typing mismatch elsewhere in it, holds one of: (a) timestamp(record.F) or timestamp(previous.F) with F a date field, alone or nested (isoDate(timestamp(record.borrow_date) + duration('168h'))); (b) a date or datetime field handed straight to a call with no overload on its text (isoDate(record.picked_up_at), record.d.getFullYear()); (c) arithmetic on that text (record.end_date - record.start_date, record.borrow_date - duration('24h')). Codes date-text-call-run-may-fail and date-text-arithmetic-run-may-fail, error grade.
  • Doors that now refuse: @objectstack/lint validateStackExpressions (os validate, os build, and every caller of runStackExpressionPasses, the runtime write gate among them); registerFlow wherever a resolver is wired, which plugin.ts does whenever an ObjectQL registry is present, so the boot pull, the re-sync and the clone route all throw; the stored pass (canonicalizeStoredFlow().todos) lists the slot. At boot the throw is caught per flow (plugin.ts, "failed to register flow", warn) and the whole flow stays unregistered: no crash, and no run of any branch of that flow.
  • Doors that still accept, by design and stated: registerFlow with no resolver (a host without ObjectQL); the run-time evaluator (evaluateValueEnvelope calls valueEnvelopeRefusals(envelope) untyped, so a flow already armed in a live process runs and faults at the node as before); the save door's canonicalizer, which does not read todos. Right: registration's set is evaluation's plus one family, never less. Not traced: whether the field types the lint index holds and the ones the registry resolver returns are the same map for system fields; a difference would make the two doors refuse different sets on record.created_at-style reads.
  • Stand-downs — right, and they keep the verdict from guessing: a datetime field under timestamp() stays clean (its text is an instant); a bare name, a vars.x read and any source reading input take no verdict; type-mismatch*, date-arithmetic*, date-duration-value, field existence, near-miss, bare-reference and the traversal arm do not reach the envelope; a text field holding a date literal is string, never typed as a date. A null-guarded call is still refused, correctly: the fault is on the text, not the null.
  • Same verdict as the formula site — right in substance. flowValueEnvelopeDateTextIssue follows typeSoundnessIssue's order (firstTypeMismatch first, then dateTextIssue at record scope, role value) and filters to the family, so the expression a formula field is refused for under date-text-call is refused here under the same check, with the same params, rewrite and shift; only the outcome arm differs. Known false negatives, all on the quiet side: a source that also carries a Timestamp-typing mismatch gets nothing at all here (a formula site reports the mismatch), and arithmetic beside an undeclared flow variable may fail the typed check for another reason and return null.
  • Public surface, widened — right: ExprSchemaHint is exported from @objectstack/formula alone (src/index.ts), no spec path; one optional key, absent means byte-identical behaviour. valueEnvelopeRefusals gains an optional second parameter on a private method and an internal module function: not published.
  • Behaviour contract of an exported type, changed — right to declare breaking: FlowObjectSchemaResolver promised on main that a resolver can never break a flow that used to register cleanly; the three amended docblocks now name the one exception.

② Semver level

  • Metadata-protocol: narrowed is the right kind (a value an author could write is refused), and AGENTS.md pre-landing item 3 gives a kind at least minor on each package the diff moves: @objectstack/formula, @objectstack/lint, @objectstack/service-automation are all minor. Correct; no package the diff moves is missing, and no spec bump is owed because no spec path moves.
  • The changeset carries both declaration lines, the BREAKING banner, the FROM to TO table, the one-line fix and exactly one ADR-0087 marker. Check Changeset and PR-body guards concluded success on this head.
  • Clause-②: yes (narrowing) — matches the diff, and the widening half (one optional key on ExprSchemaHint) is named beside it in both the PR body and the changeset. The claim correction on the card (from no / none) was the right correction.

③ Boundary flags

  • Check-runs on this head: no failure concluded. Concluded success: Check Changeset, PR-body guards, Governed Surface Queue Guard, Lint ESLint, Lint docs and code guards, Lint repo and tooling gates, Lint PM dispatch-gates, Type Check source gates, Dogfood Regression Gate. Pending when read: Build Core, Test Core 1 to 8 of 8, Type Check workspace, Type Check consumer gates, Type Check debt ledger, Lint CI release and engine gates, Lint scoped slot lookup and corpus, the UI shards. The gate verdicts for those families are therefore not yet given; this record judges the contract, and a red conclusion on any of them stands over it.
  • Dev flag, the outcome clause says "condition": confirmed in dateArmFault. The refusal an author reads at a value slot says the fault happens "when the condition runs" and that "the flow stops at this condition". The outcome it states is true for a value envelope (evaluateValueEnvelope throws); the noun is wrong. See N1. A value-worded arm is a new refusal code: the seat's call, a follow-up card.
  • Dev flag, bare names stand down: accepted. The engine door cannot see declared variables or open binders, and the two doors must refuse one set.
  • Dev flag, date-duration-value stays out: accepted, route A names the date-text family alone.
  • Dev flag, ADR-0087 surface prose does not name value envelopes: answered in ④, S1.
  • Dev flag, found on the way (a flow CONDITION does not type record.FIELD reads for the date-text check, so timestamp(record.borrow_date) passes in a start condition while the same read is now refused in a value envelope): escalated to the seat as its own card. It is a gap on main, not introduced here, but after this PR the two sites of one flow disagree about one read.
  • Deviation, three engine.ts docblocks amended: accepted, the change made them false. The sibling comment was missed, see N2.
  • Skills-docs: none: holds. skills/objectstack-formula/SKILL.md states the timestamp() and date-text-call rule with no site, so it is true of value envelopes as written.
  • ExprSchemaHint.flowValueEnvelope: the key is needed (field types on a value role with no flag is the formula-field path, so a mode marker is the only way to ask for the one family) and is placed beside its siblings timeRelativeSweep, traversalHydration, bareNamesUnproven. The NAME awaits the seat; this record does not rule on it.
  • ADR-0087 disposition and stored flows at boot: answered in ④, S1.
  • SQL push-down (Prime Directive 5): not applicable. The diff adds no query, no id materialisation and no in-app join; it is authoring-time and registration-time typing of expression text.

④ Design judgment

The narrowing makes a published refusal real; it takes no declared capability away. Nothing on main declares that timestamp() over a date field works: SKILL.md says it is refused, the three semantic entries say every door should have refused it, and the evaluator faults on the YYYY-MM-DD text at the very slot the card measured (cloud#4717). The value envelope is evaluated by the same engine on the same record values as a flow condition, and a faulting envelope throws and fails the run, so refusing it at authoring and at registration is the rule arriving at a site it had not reached. The stand-down set is conservative, the controls pin the datetime and non-family cases at all three layers, and both doors pass one hint. Two points do not hold as written:

S1 (should-fix) — the ADR-0087 marker not-required (already-registered …) claims the three entries cover this change, and they cover it only in part. ADR-0087 itself says the gate checks that the ids resolve and pre-date the base, never that the entry covers the change, and that a narrowing's upgrade notice lives in the ledger so an author learns it "before a save door, a publish or a boot refuses it". The three entries' surface enumerates a formula field's expression and CEL predicates (validation conditions, field rule predicates, flow conditions); a flow value envelope is neither, and their reason knows no outcome where a stored flow stops registering at boot, which is new with this PR and stronger than anything they describe (a flow condition with the same fault is still only a logged advisory at registerFlow). What does carry over is real: the codes, the rewrites, and site-free acceptance criteria (os validate reports no date-text-call finding), plus the stored pass listing the slot. So the disposition is defensible only once the ledger says so: amend the three surface strings to name flow value envelopes and the registration refusal (a packages/spec/src edit, outside this claim's surface, Tier H), or register one semantic entry for the site, or have the seat rule in writing that the site-free acceptance criteria are the coverage. The dev reported the gap; the marker's own sentence should not assert more than is true until one of those lands.

S2 (should-fix) — the refusal is fatal at registerFlow on a premise the engine's own contract denies. The new ExprSchemaHint.flowValueEnvelope docblock says the record.FIELD and previous.FIELD reads "hold the bound row's value by construction". celScope's docblock on main says otherwise: record resolves through the variable spread, so it is the trigger row only when a record-change trigger or a sweep handed it; it is the request body on an inbound hook, the parent's record in a subflow / map child, and whatever the flow itself bound when it declares or assigns a variable named record (not a claimed identifier in FLOW_SCOPE_CLAIMED_IDENTIFIERS). Both doors type the envelope from the start node's objectName whatever the trigger kind, and the verdict's own arm is run-may-fail. On main that uncertainty is why the lint ledger declares a proven outcome only for record-triggered flows and typed sweeps, and why the engine keeps the whole resolver pass advisory. Here a flow whose record.F holds a full instant by one of those routes evaluates today and stops registering after the upgrade, with a warn line as the only trace. No new test covers a flow that is not record-triggered or swept. Either stand the verdict down at both doors unless the trigger binding is a record trigger or a sweep of the typed object and the flow binds no record of its own (the engine has deriveTriggerBinding in hand, lint has triggerKind and flowCelRootScope), with a CONTROL for each; or have the seat accept the residue in writing and correct the "by construction" sentence in that docblock.

N1 (nit) — the -run-may-fail clause names a condition at a value slot (dev-reported). Accepted deviation on this head; follow-up card for a value-worded arm.
N2 (nit) — plugin.ts, at the setObjectSchemaResolver wiring, still says "Everything it surfaces is advisory (logged, never thrown)", and its debug line says flow conditions are checked; both are now incomplete in the same way the three amended engine.ts docblocks were. Not in the diff; follow-up.
N3 (nit) — with flowValueEnvelope: true and a role other than value, or no fieldTypes, validateExpression runs no schema-aware pass at all and says nothing. The docblock says "value role only"; no caller does this today. Left as is.
N4 (nit) — on a time-relative flow whose start names a different object than it sweeps, lint types the envelope with the start object and the engine with the swept one. The publish rule flow-time-relative-object-mismatch already refuses that flow, and conditions have the same split on main. Left as is.

Implemented-by: claude/project-thread-wlvkf3
Reviewed-by: session_01ADHkmP44onN8RMzsPMqjRq

VERDICT: PASS

…run's record is the typed row

Both doors now type a flow value envelope for the date-text family only on a
record-triggered flow or a time-relative sweep of the typed object (lint's
proven-outcome set for flow conditions) that binds no variable named `record`
itself. Inbound-hook, no-trigger, schedule and subflow-started flows, and flows
that declare or assign `record`, are judged untyped as before. Docblocks state
the premise; plugin.ts wiring comment and debug line corrected.

Claude-Session: https://claude.ai/code/session_01ADHkmQAXHSQEgnYyx9tstb
Co-authored-by: Claude <noreply@anthropic.com>
The surface of formula-timestamp-date-only-refused, formula-date-text-call-refused
and formula-date-subtraction-refused now names the flow value envelope
(assignment values, create_record / update_record fields.*) within the
record-triggered / sweep scope and its boot-registration consequence. The
changeset bumps spec minor and records the rewrite in its ADR-0087 disposition.

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

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head 143cece · 2026-11-17T06:50Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 143cece408e2e2c9743f620b23f7c9a6d2ad2e0d
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/18.formula-date-subtraction-refused.ts, packages/spec/src/migrations/entries/semantic/18.formula-date-text-call-refused.ts, packages/spec/src/migrations/entries/semantic/18.formula-timestamp-date-only-refused.ts + packages/formula/src/validate.ts, packages/formula/src/validate-date-text-arithmetic.test.ts, packages/lint/src/validate-expressions.ts, packages/lint/src/validate-expressions.test.ts, packages/services/service-automation/src/dag-traversal.ts, packages/services/service-automation/src/engine.ts, packages/services/service-automation/src/flow-registration-checks.ts, packages/services/service-automation/src/plugin.ts, packages/services/service-automation/src/builtin/assignment-value-envelope.test.ts. Read, not reviewed: packages/lint/src/flow-variable-scope.ts (collectFlowVariableNames, collectScreenFieldNames), packages/lint/src/flow-cel-root-scope.ts (entrances, open binders), packages/spec/src/automation/flow-trigger-kind.ts (resolveFlowTriggerKind), packages/services/service-automation/src/plugin-extension-api.ts (deriveTriggerBinding), dag-traversal.ts celScope and seedRunVariables, engine.ts applyResumeSignal, packages/spec/src/automation/builtin-node-config.zod.ts (ScreenFieldConfigSchema), packages/spec/src/migrations/entries/README.md, docs/adr/0087-metadata-protocol-upgrade-contract.md, scripts/check-adr-0087-registration.mjs, .changeset/config.json, AGENTS.md (pre-landing item 3). .changeset/34451-flow-value-envelope-date-text.md read for ② and for the marker, not reviewed as prose. This is a delta record over comment 6939229542 (head 20c39a47): judged is the change between the two heads on the PR's own files, commits 9a6882b and 8401e76; the merge of main in 143cece is not reviewed.

① Derived judgments

  • Accept-set against the prior head, widened back; against main, still narrowed, and by less. Refused at this head: the same three source shapes as before (a date field under timestamp(), a date or datetime field handed straight to a timestamp-only call, arithmetic on that text), in assignment values and create_record / update_record fields.*, but only in a flow that is record-triggered with a string record-* token, or a time-relative sweep whose start names no other object than the swept one, and that binds no variable named record through any row of the flow-variable collector. Accepted again, as on main: the same envelope in an inbound-hook flow, a schedule, a flow with no trigger, a sweep whose start names another object, the array form of triggerType, and any flow that declares, assigns, outputs to, iterates into or names a node record.
  • The two doors, predicate against predicate: they match. Trigger half: lint asks faultOutcomeOf (kind record_change, or time_relative with the swept object equal to the typed object, the typed object being the start's objectName else the swept one) and requires a typed object; the engine asks deriveTriggerBinding for record_change with a string triggerType, or time_relative with a string timeRelative.object and a start objectName that is absent or equal to it. Both rest on the one spec resolver resolveFlowTriggerKind; the engine's extra string test removes exactly the array form, which that resolver already answers with no kind for lint. Binding half: flowBindsRecordVariable restates collectFlowVariableNames row for row, asked about one name: flow.variables[].name, node id, the four name-valued config keys, and the three assignment shapes in the executor's precedence (array entries by variable, name, key, first non-empty string wins; the object form by own key; the wrapper-less form by the config's own keys, gated on node type assignment), over every graph collectFlowGraphs yields. No line differs in outcome.
  • Stand-down on a mismatched sweep: with a start naming another object than the sweep scans, lint used to type with the start object and the engine with the swept one. Both now give no verdict on that flow.
  • Docblock of ExprSchemaHint.flowValueEnvelope: the "by construction" sentence is gone; the premise is stated as the caller's to establish, with the counted binders enumerated, and the reads are said to hold the bound row's values "under that premise". True for record. Not fully true for previous, see S3.
  • The six CONTROLs per side exist and each carries the refused source: inbound hook, no trigger, schedule, a child a parent starts through subflow, a declared record variable, an assignment to record; the engine side also asserts no stored todo. Read for what they pin: on the engine side the subflow-child CONTROL exercises the same predicate as the no-trigger one (the engine sees one flow), and on the lint side the no-trigger and schedule CONTROLs assert the findings equal a bare record.FIELD read's, which is the right assertion there because the unbound-root refusal already speaks. Not pinned by any test: the node-id, output, iterator, index and error rows of the binder check, assignment shapes 2 and 3, the array-form trigger, and the mismatched sweep. The dev's ablation is reported in the PR body, not re-run here.
  • The three semantic entries: surface alone moved, in each. It now names the site (assignment values, create_record / update_record fields.*), the read (through record or previous), the scope (record-triggered or a sweep of the typed object, binding no record variable), that both doors refuse one set, and the consequence (a stored flow fails to register at boot where the resolver is wired, until rewritten). Each statement holds against the code at this head. The subtraction entry limits itself to its first two shapes: verified in dateTextIssue, where field minus field and field with a duration return date-text-arithmetic under the flow arm, and a computed Duration returns date-duration-value, which DATE_TEXT_FAMILY_RE drops; the formula test pins today() - record.borrow_date as silent in an envelope and record.borrow_date - duration('24h') as refused. Field minus field in an envelope is reached by the same branch but has no envelope test of its own.
  • plugin.ts: the wiring comment now says what is advisory (conditions) and what is thrown (the date-text family on a value envelope, with its scope), and the debug line names both. Accurate.

② Semver level

  • @objectstack/spec joins the changeset at minor: right. The diff now moves packages/spec/src, the kind is narrowed, and AGENTS.md pre-landing item 3 gives a narrowing at least minor on each package the diff moves. @objectstack/spec, @objectstack/formula and @objectstack/lint are in one fixed group, so the level is the same number either way. @objectstack/service-automation stays minor. No package the diff moves is missing.
  • Clause-②: yes (narrowing) and Metadata-protocol: narrowed still match the diff; the widening half (one optional key on ExprSchemaHint) is unchanged. The changeset's verdict, where and not-refused paragraphs were rewritten to the stand-down scope and agree with the code; "The two doors judge the same set of flows" holds for the predicate, with the caveat carried from the prior record that the field-type maps the two doors read were not traced against each other.
  • The newest Check Changeset run on this head concluded success.

③ Boundary flags

④ Design judgment

S1: closed
S2: closed
N2: closed
N4: closed
N1: carried, filed as #34660.
N3: carried, left as is; no caller sets the key outside the value role with field types.

Against the code it cites, the stand-down is the one the prior record asked for: the refusal now rests on the same premise the lint ledger already uses for a proven outcome on a flow condition, both doors derive it from one resolver, and the engine's own celScope contract (record resolves through the variable spread) is honoured for the name record. The three entries hold against their first consumer, the upgrade guide generated from the registry: an author upgrading reads the site, the scope and the boot consequence before a door refuses. The narrowing still makes a published refusal real and takes no declared capability away. One point does not hold as written:

S3 (should-fix) — the judged reads are record.FIELD and previous.FIELD, and the stand-down asks only about record. seedRunVariables sets previous as an ordinary variable, and celScope resolves it through the same spread, so an assignment target, an outputVariable, an iterator, index or error variable, or a node id named previous rebinds it for every envelope downstream (a declared variable does not: the seed overwrites it). No schema or lint rule refuses that name. A record-triggered flow that binds previous itself, say a get_record writing to outputVariable: 'previous' or an assignment building it, and then reads timestamp(previous.F) over a value that is a full instant, evaluates today, passes the stated premise ("binds no variable named record itself") and is refused at registerFlow. It is the class S2 named, for the second root, and unlike residue 3 both doors can see it. Either stand the verdict down at both doors when the flow binds previous by the same rows (one name more in flowBindsRecordVariable, one more has in lint) with a CONTROL per side, and say so in the docblock, the three surface strings and the changeset; or have the seat accept it in writing and correct "which under that premise hold the bound row's values" for previous.

N5 (nit) — the three entries' reason and acceptanceCriteria are untouched. The criteria stay true (they are site-free on the os validate half), but their stored-row half speaks only of sys_metadata object rows; nothing tells an upgrading operator how to confirm a stored flow is clear (no "failed to register flow" warning at boot, or an empty stored-pass todo list). The consequence itself sits in surface, where a reader of the guide will find it.
N6 (nit) — test pins: field minus field in an envelope, the non-assignment rows of the binder check, assignment shapes 2 and 3, and the mismatched sweep have no CONTROL. The code is correct on each by reading.

Implemented-by: claude/project-thread-wlvkf3
Reviewed-by: session_01ADHkmP44onN8RMzsPMqjRq

VERDICT: PASS

…ious`

Both doors now stand the date-text typing down when a node rebinds `previous`
(assignment target, output / iterator / index / error variable, node id); a
declared `previous` is not counted because the run's seed sets `previous` over
it. The engine helper becomes flowNodeBoundNames + flowRebindsRunRowRoots, and
lint asks collectFlowVariableNames without flow.variables. Pins added for the
remaining binder rows, assignment shapes 2 and 3, field minus field in an
envelope and a sweep whose start names another object. The three ADR-0087
entries' surface scope names `previous`, and their acceptance criteria say how
an operator confirms a stored flow is clear.

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

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head 97856f7 · 2026-11-17T08:39Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 97856f7327f7470fedfc65045b9a03eb4e4a6da8
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/18.formula-date-subtraction-refused.ts, packages/spec/src/migrations/entries/semantic/18.formula-date-text-call-refused.ts, packages/spec/src/migrations/entries/semantic/18.formula-timestamp-date-only-refused.ts + packages/formula/src/validate.ts, packages/formula/src/validate-date-text-arithmetic.test.ts, packages/lint/src/validate-expressions.ts, packages/lint/src/validate-expressions.test.ts, packages/services/service-automation/src/dag-traversal.ts, packages/services/service-automation/src/engine.ts, packages/services/service-automation/src/flow-registration-checks.ts, packages/services/service-automation/src/plugin.ts, packages/services/service-automation/src/builtin/assignment-value-envelope.test.ts. Read, not reviewed: dag-traversal.ts seedRunVariables, seedDeclaredVariables and celScope, engine.ts (the seedRunVariables and celScope docblocks), packages/lint/src/flow-variable-scope.ts (collectFlowVariableNames, assignmentTargets), packages/formula/src/cel-engine.ts (firstDateTextCall docblock), packages/triggers/trigger-record-change (README, record-change-trigger.ts), packages/spec/src/automation/flow-trigger-kind.ts, plugin.ts start (the inert return, the resolver wiring, the three register-failure warnings), packages/cli/src/commands/migrate/meta.ts (runStored), packages/cli/src/utils/data-migration-plugins.ts, packages/metadata-protocol/src/protocol-save.ts and stored-migration.ts (the flow canonicalizer and the registerFlow conversion id). .changeset/34451-flow-value-envelope-date-text.md read for ② and the marker, not reviewed as prose. This is a delta record over comment 6941161607 (head 143cece4): judged is the change between the two heads on the PR's own files, commit b49e849; the merge of main in 97856f7 is not reviewed (on the PR's own files it brings one hunk, plugin.ts organizationLocaleReader, which is main's and outside this change).

① Derived judgments

  • Accept-set against the prior head, widened back by one class; against main, still narrowed. Newly accepted again, as on main: a record-triggered or typed-sweep flow in which a node binds previous (node id, outputVariable, iterator, index or error variable, an assignment target in any of its three shapes). Nothing is newly refused by the delta: timestamp(previous.F) was already typed at the prior head, and a declared previous was already not counted there.
  • The premise, read in the code: true. seedRunVariables seeds the declared variables first and then runs variables.set('previous', context?.previous ?? null) with no condition, on every entrance and every attempt (it is the one seeding chokepoint), so a declared previous, input or default, never survives the seed. On a record-change run the trigger hands the pre-image or nothing (null on the create leg); a sweep hands none (null). In all three a declared variable is overwritten.
  • The two doors, predicate against predicate, both roots: they match. record: lint asks collectFlowVariableNames(flow, graphs).has('record') (row 1 plus the node rows); the engine asks flow.variables for a member named record, then flowNodeBoundNames. previous: lint asks the same collector with an empty host, which skips row 1 alone; the engine asks flowNodeBoundNames alone. flowNodeBoundNames restates the collector's node rows line for line: a non-empty string node id, the four name-valued config keys when a non-empty string, and on an assignment node the array form (first non-empty string among variable, name, key), the object form by own keys, else the config's own keys. The only difference is that the engine may add an empty-string key, which neither name is.
  • The dev declaration, a declared record still counts: the seed does overwrite it too, but conditionally, if (context?.record). A record-change run and a sweep run both hand a row, so on the entrances the typing applies to a declared record is overwritten exactly as a declared previous is, and counting it leaves one class unjudged at both doors: a record-triggered flow that declares a record variable and writes timestamp(record.DATE_FIELD) faults at run time and still registers. That is an under-refusal only, the same at both doors, as on main, and stated in what is published (the three surface strings and the changeset both say "no declared variable named record"). An accepted residue, not a finding; the asymmetry with previous is real and has one defence beyond the seat's S2 ruling: on an entrance that hands no record (a record-triggered flow run by hand) the declared value is what record holds.
  • Can the previous typing refuse a flow that evaluates today: not through an evaluated read. Where the trigger hands a pre-image the field holds the same text the row does (the trigger builds record over previous); where previous is null (create leg, sweep) the member read cannot yield an instant and timestamp() has no overload for null, so the envelope faults whatever the field's type. One class remains: a previous.F read in a branch that never runs on that trigger, for example previous == null ? X : timestamp(previous.F) on a create-only token or a sweep. The verdict is type-based and not branch-aware, so it is refused although every run takes the other branch. On record-after-write, where the guard is the documented idiom, the update leg does evaluate the read and the refusal is true. Not introduced by this delta. See N8.
  • Docblock of ExprSchemaHint.flowValueEnvelope: the binder enumeration matches the code for both roots. The value sentence is true for record and for a sweep, and one leg short for previous: see N7.
  • The three entries' surface: the parenthesis added to each (no assignment target, output, iterator, index or error variable or node id of either name, and no declared variable named record) is the predicate above, word for word in outcome. The changeset marker, verdict paragraph and not-refused list ("rebinds neither", "assigns or outputs its own previous", the seed sentence) agree with the code, as do the amended comments in engine.ts, plugin.ts and validate-expressions.ts.
  • The three entries' acceptanceCriteria, the stored-flow sentence: the strings are real at this head. plugin.ts warns [Automation] failed to register flow on the boot pull and [Automation] cold-boot flow bind: failed to register flow on the cold-boot bind (a third spelling, flow re-sync: failed to register flow, is the re-sync path, not boot, and a search for the shared tail finds all three). os migrate meta --stored exists, and the stored pass files what registerFlow would refuse under conversion id registerFlow. The boot-log half is true. The command half is not true of this refusal: see S4.
  • Pins, read for what they pin. Seven record binder CONTROLs per door (outputVariable, iterator, index, error variable, node id, assignment shapes 2 and 3), each carrying the refused source and expecting zero findings or a clean registration: each fails if its row is dropped. The mismatched-sweep CONTROL names two typed objects, so only the stand-down keeps it clean; the engine side also asserts no stored todo. timestamp(previous.borrow_date) is refused at the slot path (lint) and with the addDays(previous.borrow_date, N) shift in the message (engine). Two previous CONTROLs per door (outputVariable, an assignment that builds it). A declared previous is still refused: lint pins the one path; the engine pin matches previous.borrow_date in the thrown text, which any refusal at that slot would carry. Field minus field: both doors pin an error at the slot, neither names the code; since an envelope takes no other typed verdict the family is implied, the arithmetic code is not. Not pinned: the previous rows other than outputVariable and assignment shape 1 (same set, same lookup). The dev's ablations are reported in the PR body, not re-run here.

② Semver level

  • Nothing moves. The changeset's frontmatter is untouched by the delta: minor on @objectstack/spec, @objectstack/formula, @objectstack/lint and @objectstack/service-automation, which is every package the diff moves, and a narrowing owes at least that. Against the prior head the delta only stands down more, and adds entry text and tests; no exported name or type changes.
  • Clause-②: yes (narrowing) and Metadata-protocol: narrowed still match the diff. The marker stays not-required (already-registered …) with the same three ids, all of which pre-date the base; its sentence now also claims the acceptance-criteria line, which S4 qualifies.
  • The newest Check Changeset run on this head concluded success.

③ Boundary flags

④ Design judgment

S3: closed
N5: closed
N6: closed
N1: carried, filed as #34660.
N3: carried, left as is.

Against the code it cites, the previous stand-down is the one the prior record asked for, and it is built on a premise that holds: the seed writes previous last and unconditionally, so only a node can rebind it, and both doors now ask the same rows about it. The three entries hold against their first consumer, the upgrade guide generated from the registry, on the site, the scope and the boot consequence. The narrowing still makes a published refusal real and takes no declared capability away. One point does not hold as written:

S4 (should-fix) — the new acceptance-criteria sentence names a check that cannot see this refusal. os migrate meta --stored boots the automation plugin inert (data-migration-plugins.ts, armRuntime: false), and AutomationServicePlugin.start returns for inert mode before the one place setObjectSchemaResolver is called. With no resolver, validateFlowExpressions derives no binding and hands no field types, so the stored pass the CLI runs types no value envelope and lists no registerFlow TODO for the date-text family, whether or not a stored flow carries one. An operator who runs the command the entry names, before the upgraded boot, reads a clean report for a flow that then fails to register. The entry writes the command and the route as one thing, os migrate meta --stored (POST /api/v1/meta/_migrate-stored); they are not: the route on a running server resolves the armed engine's canonicalizer, where the resolver is wired and the slot is listed, and the CLI opens the database with its own inert stack. The boot-log half of the sentence is true and does catch the flow, so the criterion as a conjunction is not false, only its second half vacuous through the CLI. Either wire the resolver before the inert return (it reads the object registry and arms nothing) with a pin through the inert plugin, which makes the sentence true and gives the operator the pre-boot check ADR-0087 wants; or reword the three criteria to name the route on a running server alone and say the CLI pass does not type envelopes. The same sentence is repeated in the changeset marker and the PR body.

N7 (nit) — the flowValueEnvelope docblock says that under previous the read holds "the row before the write (on a record-change trigger) or null (a sweep has none …)". On the create leg of a record-change trigger it is null as well (seedRunVariables, engine docblock item 3). The verdict is unaffected: a read through null faults too.
N8 (nit) — a previous.F read under a guard that is never true on the flow's trigger (a create-only token, a sweep) is refused although no run evaluates it. The date-text check is not branch-aware at any site on main, for either root, so this is the published rule's own reach and not this PR's; it needs dead code to occur and the rewrite is to delete the branch. Named because the door is fatal; for the seat to accept or card, no change asked of this head.

Implemented-by: claude/project-thread-wlvkf3
Reviewed-by: session_01ADHkmP44onN8RMzsPMqjRq

VERDICT: PASS

… printed guidance

`os migrate meta` prints each semantic entry's surface, reason and acceptance
criteria to the author, and that text carries no tracker number
(packages/cli/test/migrate-meta-engine-guidance.test.ts). The three entries'
flow-value-envelope sentence cited one; it now states the rule alone.

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

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head 8598c1d · 2026-11-17T09:56Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8598c1dcb77d7865c91fac5e967d1df84ed44d7d
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/18.formula-date-subtraction-refused.ts, packages/spec/src/migrations/entries/semantic/18.formula-date-text-call-refused.ts, packages/spec/src/migrations/entries/semantic/18.formula-timestamp-date-only-refused.ts + packages/formula/src/validate.ts, packages/formula/src/validate-date-text-arithmetic.test.ts, packages/lint/src/validate-expressions.ts, packages/lint/src/validate-expressions.test.ts, packages/services/service-automation/src/dag-traversal.ts, packages/services/service-automation/src/engine.ts, packages/services/service-automation/src/flow-registration-checks.ts, packages/services/service-automation/src/plugin.ts, packages/services/service-automation/src/builtin/assignment-value-envelope.test.ts. Read, not reviewed: packages/cli/test/migrate-meta-engine-guidance.test.ts (the rule the delta answers) and packages/cli/src/commands/migrate/meta.ts (the block it prints). .changeset/34451-flow-value-envelope-date-text.md read for ②, not reviewed as prose. This is a delta record over comment 6943432350 (head f11fa429): judged is the change between the two heads on the PR's own files, commit 2a1630d; the merge of main in 8598c1d is not reviewed.

① Derived judgments

  • What moved between the heads on the PR's thirteen files: three files, one line each, 3 in and 3 out. In each of the three entries the surface string loses the token (#34451) and nothing else: "refused too (flow value envelopes are validated without field types, so the date-text verdicts (timestamp over a date field) never reach update_record / create_record fields #34451): an assignment node's" becomes "refused too: an assignment node's" in the text-call and timestamp entries, and "refused in a flow VALUE envelope too (flow value envelopes are validated without field types, so the date-text verdicts (timestamp over a date field) never reach update_record / create_record fields #34451): an assignment node's" becomes "... too: an assignment node's" in the subtraction entry. Checked by content, not by reading the hunk alone: each file at the prior head with that one token removed hashes equal to the file at this head. id, replacement, reason and acceptanceCriteria are untouched in all three, and the other ten files of the PR do not move.
  • The merge commit 8598c1d has parents 2a1630d and main f02f4f6. Its diff against its first parent, restricted to the PR's thirteen files, is empty, and the PR's net file list against the new merge base is the same thirteen. Of the code the earlier records cite outside the diff (packages/cli/src, the REST meta routes, metadata-protocol, service-automation src, the triggers, formula src, spec migrations) the merge moves nothing. What main brought under packages/lint/src is data-model-rules.ts and its inline-edit test, which this PR neither touches nor cites.
  • Meaning: unchanged. The parenthesis was a citation, not a clause; the sentence it sat in states the same site, the same scope and the same consequence with or without it. No reader loses information the entry is meant to carry, since the rule is stated in words around it.
  • The CLI test's rule, read at this head (the file is identical on main). It takes every semantic entry of every major from the registry, rebuilds the block os migrate meta prints (the protocol line with surface and replacement, then why: with reason and verify: with acceptanceCriteria), asserts the block is in stdout verbatim, and asserts the block does not match # followed by four or five digits at a word boundary. So all four strings of an entry are read, not surface alone.
  • Do the three entries satisfy it now: yes on the text. At this head none of the three files holds a # followed by a digit anywhere, in any of the four strings or in a comment. The four- and five-digit runs that remain are years and date literals (2026, "2026-12-01", "2026-11-01", ISO-8601, YYYY-MM-DD) and ADR-0053, none preceded by #; the test's own detector case shows an ADR id stays dark. The old phrase with the number occurs nowhere in the tree at this head, and the new phrase occurs only in the three entries, so no committed generated file carried the token or needs to move.
  • The three ids are not in the test's REWRITTEN floor list. That list only guards the covered set against shrinking; the assertion loops over the whole registry, so the three entries are held to the rule regardless.
  • Why this was not caught at the tier: the token entered surface in the round that first rewrote it, and the records on heads 143cece4, 97856f73 and f11fa429 judged that text against the engine and lint code it describes, not against the CLI pin that reads every printed string. The red Test Core shard on f11fa429 caught it. The miss is this seat's; the fix is the smallest one that answers the rule.
  • N9, N10: untouched by the delta (acceptanceCriteria and the validate.ts docblock do not move). The lane leaves both for follow-up; carried below.

② Semver level

  • Nothing moves. The changeset is byte-identical between the heads: minor on @objectstack/spec, @objectstack/formula, @objectstack/lint and @objectstack/service-automation, every package the diff touches, and a narrowing owes at least that. The delta removes a citation from printed guidance; it adds no exported name, changes no schema, no accept-set and no behaviour.
  • Clause-②: yes (narrowing) and Metadata-protocol: narrowed on the PR body still match the diff, and the ADR-0087 marker still names the same three registered ids, whose ids and dispositions the delta leaves alone.
  • Both Check Changeset runs on this head concluded success.

③ Boundary flags

④ Design judgment

N9: carried, left by the lane for follow-up.
N10: carried, left by the lane for follow-up.
N8: carried, accepted by the seat as the published rule's reach; no card.
N1: carried, filed as #34660.
N3: carried, left as is.

Each of the three hits files holds against the code it cites exactly as at the prior head, since the sentence that moved describes the same value-envelope site in the same words less a citation; the judgments of comment 6943432350 on the engine, the lint door and the stored pass apply unchanged. Against its first consumer the change is an improvement the repository already ruled on: os migrate meta and the upgrade guide print surface to an author, and the CLI pin holds that such text states the lesson in words and sends no reader to a tracker page. The entries now do that, and the rule they state stands on its own without the number. The narrowing itself is unchanged: it makes a published refusal real and takes no declared capability away.

N9 (nit) - the criterion names a POST on /api/v1/meta/_migrate-stored and does not say the call with no body is a preview that writes nothing, nor that it needs manage_metadata. A few words would spare an operator the doubt. No change asked of this head.
N10 (nit) - the validate.ts docblock names the update leg, the create leg and a sweep; a record-change delete leg hands the pre-image under previous too, and an update whose prior row could not be read hands none. The verdict is the same on every leg, so nothing depends on it.

No new finding on this delta.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-wlvkf3
Reviewed-by: session_01ADHkmP44onN8RMzsPMqjRq

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmQAXHSQEgnYyx9tstb

Final head for review: 8598c1dcb77d7865c91fac5e967d1df84ed44d7d — CI complete at 2026-11-17T10:37Z: 58 success, 13 skipped, 0 failed (Test Core 1–8 included, so the CLI guidance test that was red at f11fa429 is green here).

  • Rounds since the first L1 read (20c39a47): round 2 (L2 S1, S2, N2) 143cece408; round 3 (S3, N5, N6) 97856f7327; round 4 (S4, N7, text only) f11fa429a9; round 5 (the three migration entries' printed guidance drops its tracker number, text only) 8598c1dcb7. L2 records: 6939229542, 6941161607, 6943205739, 6943432350, 6944777051 (PASS, nothing open at this head).
  • Local readings: the full set (four package suites, 98 derived families with 0 NOT-MEASURED, the dogfood battery) at 97856f7327; rounds 4–5 changed text only and re-ran spec build, check:generated, the spec migration suites (213/213), packages/cli/test/migrate-meta-engine-guidance.test.ts (3/3), the three changeset gates and check:nul-bytes, all exit 0. Not re-run since 97856f7327: the derived-gate set, the lint and service-automation suites, the dogfood battery. The record is /mnt/project-files/objectstack-seat2/34451-gates-ran.txt.
  • Declarations: Clause-②: yes (narrowing) / Metadata-protocol: narrowed; minor on @objectstack/spec, @objectstack/formula, @objectstack/lint, @objectstack/service-automation. Completes ADR-0087 upgrade-guide entries for the date-text verdicts name formulas and predicates only, not flow value envelopes #34661 (the seat closes it after merge). Lands through Tier H via the seat.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmTHGRTjPqZAcBuo9WH

席位核对

L1 full review · ACCEPT · head 8598c1dcb77d7865c91fac5e967d1df84ed44d7d (final head 6945649783) · card #34451 · read 2026-11-17T10:39Z

I read this PR in full at 20c39a47 before. This verdict covers the whole PR at this head. The four rounds since (143cece4, 97856f73, f11fa429, 8598c1dc) were read as the PR's own delta: git diff 20c39a47 8598c1dc over its files. The only file main also moved in between is plugin.ts, and that file was read as its three-dot diff.

Checklist (read on GitHub at this head, not from the report)

  • Shape:

    • The PR is a draft against main, and mergeable_state is clean.
    • The title carries !.
    • Fixes #34451 is the only closing-keyword hit.
    • The declarations are Clause-②: yes (narrowing), Metadata-protocol: narrowed and Skills-docs: none, with its reason. They appear in both the body and the changeset.
    • The changeset is minor for @objectstack/spec, formula, lint and service-automation, with **BREAKING** and FROM → TO.
    • The adr-0087 marker is not-required (already-registered …) and names the three entries whose surface this PR rewrites.
  • Skills-docs, verified at this head:

    • skills/objectstack-formula/SKILL.md states the timestamp() / date-text-call rule with no site named.
    • No skill teaches a flow value envelope over a date field.
    • So none holds, as it did at 20c39a47.
  • File surface: 13 files, +871/−33. Since my earlier read, plugin.ts (prose and a debug line only) and the three ADR-0087 semantic entries under packages/spec/src/migrations/entries/semantic/ are added. Those three are the S1 ruling (i) surface edits that were announced.

  • Mechanism, read in the source (the S2 root fix):

    • Engine. validateFlowExpressions now types an envelope only when runBindsTypedRow && !flowRebindsRunRowRoots(flow) holds:

      • a record_change binding whose start declares a string triggerType; or
      • a time_relative binding whose start names no other objectName than the swept one.

      flowRebindsRunRowRoots:

      • reads record off a declared variable;
      • reads both record and previous off every node row in every graph: node id, output, iterator, index and error variable, and all three assignment shapes in logic-nodes.ts precedence;
      • treats a declared previous as not rebinding, because the seed sets previous over it. The code comment says so.
    • Lint. valueEnvelopeFieldTypes requires flowFaultOutcome !== undefined && objectName, no record in collectFlowVariableNames(flow, graphs), and no previous in collectFlowVariableNames({}, graphs), which reads nodes only. This is the same set, by construction and by the paired controls.

    • Formula. validate.ts changes only its docblock in the delta. The premise is the caller's to establish, and the previous create leg reads null.

  • Tests: both doors carry the same controls, and each one carries the refused source:

    • api, no trigger, schedule, a subflow child, a sweep of another object;
    • a declared record;
    • seven record binders (one each per node row and assignment shape);
    • two previous binders;
    • the declared-previous case, which stays typed.

    They also carry the previous.<field> refusal and the date-minus-date arithmetic refusal. Each engine control also asserts the stored pass lists no todo.

  • ADR-0087 surface text:

    • Each entry names the envelope slots, its scope and the boot consequence.
    • The subtraction entry names its first two shapes only, not the formula-only duration value.
    • Each entry's acceptance criteria now say how an operator confirms a stored flow is clear: the boot-log line, and POST /api/v1/meta/_migrate-stored on the running server.
    • Each entry also says os migrate meta --stored cannot show it, because it boots automation inert.
    • id, replacement and reason are unchanged. The tracker number is gone from the printed guidance (2a1630d7).
  • Gates at this head:

    • Check-runs on 8598c1dc…: 71 runs, 58 success, 13 skipped, 0 failed. Test Core 1–8 is included; the cli guidance test that was red on f11fa429 is green here.
    • git merge-tree --write-tree is clean against today's origin/main.
    • check-governed-merges.mjs --pr 34654, read here: 0 of 13 paths governed, 904 lines.
    • L2: l2-review#4 6944777051 is pinned to this head (CONTRACT_REVIEW_TIER, a delta over 6943432350) and has no open item.
    • The area's full local battery is pinned at 97856f73. Later rounds are text-only or merges, and their re-runs are listed in the final-head comment and gates-ran.

Before landing (body only, no head move)

Residuals (accepted by the seat, in Acceptance notes)

Owed after this

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

Seat record · 2026-11-17T10:51Z · Head-sha: 8598c1d

维护者速读

  • 改了什么:flow 的值信封(update_record / create_record 的 fields.*、assignment 的值)在记录触发或对已定型对象的 sweep 里,按触发对象的字段类型校验 date-text 这一族判词。isoDate(timestamp(record.日期字段) + duration('168h')) 这类写法现在在 os validate 和引擎 registerFlow 两处都被拒,并提示改写为 isoDate(addDays(record.日期字段, N))。inbound hook、schedule、无触发或被父流程调用的 flow 不判。spec 的三条 ADR-0087 条目同步点名这个新位置。
  • 为什么改:日期字段运行时是 YYYY-MM-DD 文本,timestamp() 只认完整时间戳;这种写法过去校验通过、发布成功、每次运行都失败(cloud 现场)。
  • 风险与回滚:收窄(BREAKING,按 minor 发布):已存的、值信封里带这种写法的 flow,在挂了对象解析器的引擎上会注册失败,直到改写;这些 flow 今天每次运行本来就失败。只判 record.字段 / previous.字段 的读,运行时求值路径不变。回滚即撤回本 PR。
  • 先看:packages/formula/src/validate.ts(flowValueEnvelopeDateTextIssue)、packages/services/service-automation/src/flow-registration-checks.ts(注册门)、packages/lint/src/validate-expressions.ts(checkDeclaredValue)。
  • 两分钟验证:pnpm --filter @objectstack/service-automation exec vitest run --maxWorkers=2 src/builtin/assignment-value-envelope.test.ts -t 34451,预期全部通过。
  • 需要你做的:用 os-zhuang 审读并批准(spec 面加收窄,按 Tier H 交人)。契约复审 PASS 6944777051,钉在 Head-sha 8598c1dcb77d7865c91fac5e967d1df84ed44d7d。批准在案后由席位翻 ready,经合并队列落地。

席位意见:同意合并。拒的是每次运行必然失败的写法,把失败从运行时提前到校验与注册,并给出改写;保守的少拒(只判 date-text 一族)席位已接受。

席位核对

  1. 形态:13 个文件,+871/−33,Fixes #34451,Completes #34661(合并后由席位关);Clause-②: yes (narrowing),Metadata-protocol: narrowed;四包 minor。spec 面加收窄 ⇒ Tier H。
  2. 前提实测:main 上该写法 os validate 通过、运行失败(卡上复现);fix(formula)!: refuse timestamp() over a date-only field, which faults on every row #34447 的拒绝够不到值信封。
  3. 门禁 check-runs:head 8598c1dc 上 75 条,60 绿、15 跳、0 红;迁移条目 guidance 测试(CI 曾红)已删卡号转绿,派生漏项已立 dispatch-gates: a change to spec migration entries does not derive the cli migrate-meta-engine guidance test that reads them #34760。
  4. 接受的偏差:L1-b2 整审 ACCEPT 6945707920;契约复审 PASS 6944777051,无开项;S1 吸收 ADR-0087 upgrade-guide entries for the date-text verdicts name formulas and predicates only, not flow value envelopes #34661 的三条 ADR-0087 条目;保守少拒、N8 不另立卡、S4 按 (b) 文字处置。
  5. 范围外去向:Skills-docs: none(formula 技能已陈述该规则,不点位置,对值信封同样成立);dispatch-gates: a change to spec migration entries does not derive the cli migrate-meta-engine guidance test that reads them #34760(门禁派生)。automation: a packaged flow cannot ship switched off for an administrator to turn on — status: 'obsolete' disarms it for good, yet POST /automation/:name/toggle answers 200 {enabled:true} #34655(A) 在本 PR 合入后落地。
  6. 落地条款:os-zhuang 授权批准在案后,席位翻 ready,经合并队列落地;合并后席位关 ADR-0087 upgrade-guide entries for the date-text verdicts name formulas and predicates only, not flow value envelopes #34661,区清 flow value envelopes are validated without field types, so the date-text verdicts (timestamp over a date field) never reach update_record / create_record fields #34451 标签。

@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 44080346297 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Dogfood Regression Gate (2/3) — 失败步骤: Boot example apps and exercise real user flows

    @objectstack/dogfood:test:  FAIL   isolated  test/activity-text-predicate.dogfood.test.ts > [#21154] a query over activity text or the approval snapshot, by a reader withheld a field of its record > a
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    @objectstack/dogfood:test:  FAIL   isolated  test/activity-text-predicate.dogfood.test.ts > [#21154] a query over activity text or the approval snapshot, by a reader withheld a field of its record > a
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    @objectstack/dogfood:test:  FAIL   isolated  test/activity-text-predicate.dogfood.test.ts > [#21154] a query over activity text or the approval snapshot, by a reader withheld a field of its record > a
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: {"object":"sys_activity","records":[],"total":0,"hasMore":false}: expected 200 to be 403 // Object.is equality
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 29 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

Merged via the queue into main with commit 1538596 Nov 17, 2026
81 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-wlvkf3 branch November 17, 2026 12:52
os-support-ai pushed a commit that referenced this pull request Nov 17, 2026
os-support-ai pushed a commit that referenced this pull request Nov 17, 2026
Brings #34654 (value-envelope refusal) and later main into half A before
the L2 S4 fix round.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfr1xZSFZzCR8HnqXX
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/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants