You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Formula validation passes timestamp(record.<date field>), which fails on every run against the field's date-only text #34363
Filing gate: ① reproduced. Found while fixing objectstack-ai/cloud#4717. The fix is objectstack-ai/cloud#4723, a cloud-side verify_build probe; this card is the shared gate's half.
Defect
On the pin b914e724 (18.5.0), @objectstack/formulavalidateExpression('value', "isoDate(timestamp(record.borrow_date) + duration('168h'))", { fieldTypes: { borrow_date: 'date' } }) returns errors: []. lintvalidateStackExpressions gives the same verdict. At run time the flow engine's CEL refuses the expression on the field's date-only text ("2026-11-16"): timestamp() requires a string in ISO 8601 format. So every run of the flow fails and the field stays null.
The existing date-text verdicts miss this shape. date-text-call covers timestamp-only calls and date-text-arithmetic covers arithmetic, but timestamp(<date field>) (the string overload) is neither.
Reach: any hand-authored or AI-authored stack. It passes os validate and the publish door, then fails on every trigger. Measured live on staging in cloud#4717: the run on record CexnsMC2iK0oiwRH failed.
The supported shape exists and is documented: isoDate(addDays(record.<date_field>, N)) (formula/src/stdlib.ts Dates block; skills/objectstack-formula/SKILL.md, the addDays row and "Shift a date").
Done when
validateExpression / validateStackExpressions report timestamp(<date-typed field>) (and the same field inside + duration(...) arithmetic) as an error, with the fix hint isoDate(addDays(record.<field>, N)).
A pin test covers the cloud#4717 expression (error) and the taught shape (clean, evaluating to the date + N over a date-only value).
Once the framework refuses the shape, cloud's verify_build probe can retire to the shared verdict; that follow-up is the cloud seat's.
Dedupe words: timestamp date field date-text-call, validateExpression timestamp ISO 8601 date-only, date-text verdict timestamp string overload.
Triage: first touch → domain:server · p2 · 2026-11-16T09:46Z
⛔ Not a claim.
The formula gate accepts timestamp(record.<date field>), but the flow engine refuses it on every run against the date-only text. So an author ships a flow that never sets the field, with nothing at authoring time to warn them. This is a gate false negative with a user-visible effect (the automation silently does nothing), so p2. The cloud half is objectstack-ai/cloud#4723. Seam: @objectstack/formulavalidateExpression date-text verdicts and lintvalidateStackExpressions.
Ruling: claimable now · batch 1 · maintainer 「分两批点名放行,不改级别」 (the option he chose on the decision card) · recorded 2026-11-16T14:21Z
Recorded by the project's decision thread. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T14:19:33Z. Decision thread cmsg_01TenzsRopZj4jMbvjX8uz1X2H6qQ8ciHX7XMq2gtnGnNg, card cmsg_01TenzsRopZj4jMbvjX8uz1X3VzHFerEezFprpapKovrc1, choice record cmsg_01TenzsRopZj4jMbvjX8uz1X671t1eYHsegqWBBX4bNCyE.
Thread-read: 6912978375 (the newest comment). Labels at the read: bug, priority:p2, pm:queue, domain:server; unassigned.
The question he was asked
He named 21 open p2 cards and asked whether they should be the next tasks. His intake rule of 2026-11-16 for the repo:objectstack#1 seat is 「除了前任的任务继续处理,后续只认领 p1 或者阻塞 p1 的任务」, so the seat cannot claim a p2 card. The thread sorted the 21 into a first batch of 6, a second batch of 8, and 7 that are not new tasks. Which of them become the seat's next work, and how?
This card is in batch 1 (position 3 of 6) and may be claimed by the repo:objectstack#1 seat now, at its p2 grade. The grade does not change. p1 work still comes first.
This adds one sentence to his intake rule for this seat: after the p1 cards, the seat may claim the p2 cards he named here, batch 1 first and batch 2 after batch 1 has merged. It names these 14 cards and no other p2.
Why this card, as told to him: timestamp(<date field>) passes validation and the publish door, then fails on every run of the flow. Measured live on staging (cloud#4717). He was told an AI-authored app is the likeliest to hit it.
State
This record changes no label and no grade. The card stays priority:p2 and pm:queue until the seat claims it with this record as its Ruling-ref.
Sizes given to him were estimated from the card faces and were not measured.
List and reasons: /mnt/project-files/pm-orders/objectstack/next-batch-2026-11-16.md.
Claim: repo:objectstack area-lease mode, area o1-C, lease lease:o1-C (named p2, batch 1, under the maintainer's 「分两批点名放行,不改级别」; the grade stays p2) · built by an os-dev sub-agent (mode:subagent) · posted at 2026-11-16T17:54Z
Session: session_01FEkQ5kgF3mo9f7LXuv5hac
Account: os-project-manager
Branch: claude/issue-34363-formula-timestamp-date-field
Worktree: objectstack-issue-34363
Domain: domain:server
Seat: repo:objectstack#1
File surface: packages/formula/src/** (the date-text verdict pass and expression-refusal.ts codes), plus its tests and the refusal-code pins; packages/lint/src/** only if validateStackExpressions does not already read the formula verdict; content/docs/** and the formula docs that teach date shifting; new tests; a changeset. Stop on a breach and explain it in the report.
Container & model: M, mode:subagent, model: default, effort: default
Clause-②: yes (narrowing) (the formula gate now refuses timestamp(<date-typed field>), which it accepts today; the dev confirms the arm against the diff)
Metadata-protocol: narrowed (a value refused at author time)
Responsibility: objectstack platform: @objectstack/formula validateExpression has no date-text verdict for the timestamp() string overload over a date-only field | none: the existing date-text-call and date-text-arithmetic verdicts miss this shape | every stack whose flow or formula writes timestamp(record.<date field>); measured on staging, cloud#4717
Thread-read: 6919070524
Premise: holds (the card's reproduction is on 18.5.0; the dev re-measures on main first)
Shape: the card's "Done when". validateExpression and validateStackExpressions report timestamp(<date-typed field>), including inside + duration(...) arithmetic, as an error, with the fix hint isoDate(addDays(record.<field>, N)). The pin covers the cloud#4717 expression (error) and the taught shape (clean, and it evaluates to the date + N).
Ruling-ref: 6919070524 (maintainer 「分两批点名放行,不改级别」, batch 1, 2026-11-16T14:19Z)
Pre-claim lane: repo:objectstack lane (the seat's area o1-C). The cloud verify_build probe's retirement is the cloud seat's follow-up.
Pre-claim deps: none open; no open PR on this verdict.
Prior rulings read: #28944 / PR #29058 (date-text verdicts); no ⛔ conflict.
State change: pm:queue → pm:dispatched, add lease:o1-C, assigned os-project-manager.
{
"issue": 34363,
"status": "done",
"branch": "claude/issue-34363-formula-timestamp-date-field",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34447",
"head_sha": "26665b66fd222a9ba2f28b35bbd297f728c01f1e",
"session": "session_01FEkQ5kgF3mo9f7LXuv5hac",
"premise_still_valid": true,
"summary": "Re-measured on main c9ef6538bf: validateExpression('value', \"isoDate(timestamp(record.borrow_date) + duration('168h'))\", { scope: 'record', fieldTypes: { borrow_date: 'date' } }) returned ok with errors [], and celEngine.evaluate over record.borrow_date '2026-11-16' faulted with 'timestamp() requires a string in ISO 8601 format'. (The card's call carried no scope; without scope or fields the typed checks never run, for every date verdict, by design.) Fix extends the date-text-call family: firstDateTextCall now reports timestamp(FIELD) over a date-typed (not datetime) field, rewrite date(FIELD) in place of the call, and the optional shift param and clause isoDate(addDays(FIELD, N)); no new refusal code. The flow value envelope site where cloud#4717 wrote the expression (update_record fields, assignment values) is validated without field types, so it is NOT reached; raised as an open question.",
"declarations": "Clause-②: yes (narrowing) confirmed: accept set narrows (timestamp over a date field refused) and the published ExpressionRefusalParams type gains the optional shift param on date-text-call codes. Metadata-protocol: narrowed confirmed (a value refused at author time). Skills-docs: follow-up owed — skills/objectstack-formula/SKILL.md (its built-ins line lists timestamp(s) with no word that it refuses a date field's YYYY-MM-DD text). Changeset: formula minor + spec minor, BREAKING banner, FROM to TO table, one-line fix, exactly one ADR-0087 marker: registered formula-timestamp-date-only-refused.",
"tests": "Red on main: main's cel-engine.ts, validate.ts, expression-refusal.ts restored from c9ef6538bf over the branch tests → Test Files 2 failed (2), Tests 4 failed | 118 passed (122) (measured expression, bare call, outcome arms, date-text-call pin); restored from HEAD, git diff HEAD empty. Fix: pnpm --filter @objectstack/formula test → Test Files 67 passed (67), Tests 1766 passed (1766); typecheck exit 0. pnpm --filter @objectstack/lint test → Test Files 212 passed (212), Tests 9063 passed | 5 skipped; typecheck exit 0. pnpm --filter @objectstack/spec test (at 26665b66fd) → Test Files 845 passed (845), Tests 27056 passed | 1 todo, VERDICT command-exit 0. Taught shape isoDate(addDays(record.borrow_date, 7)) clean and evaluates '2026-11-23' over '2026-11-16'; CONTROL datetime timestamp(record.picked_up_at) clean and evaluates.",
"ablation": "node scripts/ablation-replace.mjs on packages/formula/src/cel-engine.ts, anchor (the date-only guard) x1 → x0, '&& false' appended x0 → x1, blob e4d83827d466 → 63c5f10f84d9; the two formula pin files → Tests 4 failed | 118 passed (122), the same four; restored blob == HEAD, git diff HEAD empty. Tests import ./validate from src (relative), so no dist leg applies.",
"gates": "Local: 114 families derived by dispatch-gates --commands (identical derivation at 748a8508f3 and 26665b66fd); 113 exit 0 (8 first refused exit 3 on missing dist and were re-run green after building the lint, objectql and client closures); check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (needs every package built) = NOT MEASURED locally. dispatch-gates --ran with exit-coded record: '114 derived famil(ies) accounted for — 113 run, 1 NOT-MEASURED'. eslint on the 7 changed source files exit 0. CI at 26665b66fd when reported: Lint & Repo Gates success, Lint · ESLint success, Lint · PM dispatch-gates success, Check Changeset success, Governed Surface Queue Guard success, Dogfood Regression Gate success, Type Check · source gates success, Spec property liveness success; Build Core, Test Core (1-8/8), Type Check · workspace, Type Check · debt ledger, Type Check · consumer gates, Test UI, Type Check UI, Build & E2E UI, Live E2E UI in_progress. check:platform-checklist (main's red) not run here, untouched.",
"dogfood_battery": "26665b66fd222a9ba2f28b35bbd297f728c01f1e · DOGFOOD_HEAD printed before and after a fresh '@objectstack/dogfood^...' closure build (VERDICT command-exit 0) · pnpm --filter @objectstack/dogfood test under os-verify-lock: VERDICT command-exit 0 · Test Files 475 passed | 3 skipped (478) · Tests 4019 passed | 42 skipped (4061) · no failures",
"faces": "Measured through @objectstack/lint runStackExpressionPasses on this branch: os validate / os build / os lint (no runtimeWriteType), the object save door (runtimeWriteType object) and the flow publish door (runtimeWriteType flow) now refuse timestamp over a date field in formula fields and flow start conditions (and every site typed with field types: validation rules, field rule predicates, edge and decision conditions). Not refused: flow value envelopes (update_record/create_record fields, assignment values), at lint and at the engine's valueEnvelopeRefusals alike. registerFlow's schema pass is advisory (warning), not a refusing face.",
"files_changed": [
"packages/formula/src/cel-engine.ts",
"packages/formula/src/validate.ts",
"packages/formula/src/expression-refusal.ts",
"packages/formula/src/validate-date-text-arithmetic.test.ts",
"packages/formula/src/expression-refusal-codes.test.ts",
"packages/lint/src/validate-expressions.test.ts",
"packages/spec/src/migrations/entries/semantic/18.formula-timestamp-date-only-refused.ts",
"content/docs/data-modeling/formulas.mdx",
".changeset/34363-formula-timestamp-date-only.md"
],
"deviations": [
"File surface breach: packages/spec/src/migrations/entries/semantic/18.formula-timestamp-date-only-refused.ts added, outside the claim's surface. The claim's own Metadata-protocol: narrowed makes check:adr-0087-registration refuse every disposition but registered (or a checked category that is not true here), and registered needs this entry; precedent formula-date-text-call-refused. Not stopped, because the declaration itself requires it.",
"PR body signed trailer is a plain-text last line ('signed: repo:objectstack#1 · os-project-manager · session_01FEkQ5kgF3mo9f7LXuv5hac'), not the HTML-comment form the dispatch asked for: os-dev.md forbids HTML comments in dev-written GitHub text and wins on conflict. The seat can re-sign through pr_body_edit.",
"Commit trailers are the model-free pair, per the dispatch and AGENTS.md, over the harness reminder that named a model.",
"check:dual-build-cjs-loads NOT MEASURED locally (needs a full pnpm build); CI's Lint & Repo Gates carries it.",
"PR body keeps the repo template's Why and Human Minimum sections beside What changes / Tests / Acceptance notes / Verification; Human Minimum item 3 left unchecked (repo-wide pnpm lint is CI's)."
],
"mcp_calls": "0",
"api_writes": "2 relay strokes — pr_create (POST /repos/objectstack-ai/objectstack/pulls draft, POST /repos/objectstack-ai/objectstack/issues/34447/assignees) via fleet-write dispatch (POST /repos/BOARD/dispatches); this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/34363/comments) via post-stamped.mjs",
"open_questions": [
{
"question": "Should flow value envelopes (update_record/create_record fields, assignment values) on a record-triggered or time-relative flow be judged with the trigger object's field types? cloud#4717 wrote its expression there, and this PR's verdict does not reach it.",
"options": [
"A: thread the trigger object's field types into lint checkDeclaredValue and the engine's valueEnvelopeRefusals, date-text verdicts only (date-text-call, date-text-arithmetic): one follow-up card, about a day; narrows value slots for the whole date-text family, needs its own changeset and dogfood run",
"B: type value envelopes fully (fields, field types, flattened scope): also turns on field-existence, near-miss and type-mismatch on value slots; bigger narrowing, more fixture churn",
"C: leave value slots untyped; cloud's verify_build probe stays the only guard for that site"
],
"recommendation": "A, because it closes the measured cloud#4717 site with the verdicts already proven at other sites, without widening into verdicts nobody measured on value slots."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"class: a · reach: validateStackExpressions (os validate) on a record_change flow whose update_record writes due_date from isoDate(timestamp(record.borrow_date) + duration('168h')) returns zero findings on this branch, and the run fails on every trigger (measured on staging, cloud#4717) · evidence: lint checkDeclaredValue calls validateExpression('value', raw) with no field types, as does service-automation valueEnvelopeRefusals, so no date-text verdict reaches a flow value envelope · dedupe words: flow value envelope field types, checkDeclaredValue fieldTypes, update_record value date-text"
]
}
PR #34447 meets the first two Done-when items: validateExpression / validateStackExpressions report timestamp(<date-typed field>), including inside + duration(...) arithmetic, with the isoDate(addDays(record.<field>, N)) hint, and the pins are in place. It does not reach the site cloud#4717 measured. A flow value envelope (update_record / create_recordfields, assignment values) is validated without field types, so that stack still validates clean. That gap is carried by #34451 (filed by the seat, p2). cloud's verify_build probe (cloud#4723) stays in place until #34451 lands. The third Done-when item (retire the probe) moves to #34451 and the cloud seat.
PR #34447 merged through the queue as 22bf910fed (2026-11-16T21:34Z); Fixes #34363 closed this card. L1 delta ACCEPT 6927330470 (L1-b, after body-only REWORK 6927214876). L2 CONTRACT_REVIEW_TIER PASS 6927318721 (review#2), with S1 closed on the same head by 6927419870. Dogfood battery was pinned to the head (dev report 6927066639). Landing record 6927692581. The PR was re-queued twice, after a runner fetch timeout and a timeout in an unrelated script test; the head did not move.
Delivered (narrowing, !, minor): formula validation now refuses timestamp(FIELD) over a date-only field, including inside + duration(...) arithmetic, wherever an expression is judged with field types: os validate / build / lint, the object save door and the flow publish door. The refusal rides the existing date-text-call code and names the rewrite date(FIELD), plus a new optional shift param that teaches isoDate(addDays(FIELD, N)). Datetime fields are not refused.
Activity
objectstack-fleet commentedon Nov 16, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:server· p2 · 2026-11-16T09:46Z⛔ Not a claim.
The formula gate accepts
timestamp(record.<date field>), but the flow engine refuses it on every run against the date-only text. So an author ships a flow that never sets the field, with nothing at authoring time to warn them. This is a gate false negative with a user-visible effect (the automation silently does nothing), so p2. The cloud half is objectstack-ai/cloud#4723. Seam:@objectstack/formulavalidateExpressiondate-text verdicts andlintvalidateStackExpressions.objectstack-fleet commentedon Nov 16, 2026
coordinator#1 · os-project-manager · session_01FEkQ5p5codnUGsdGxBfaL9
Ruling: claimable now · batch 1 · maintainer 「分两批点名放行,不改级别」 (the option he chose on the decision card) · recorded 2026-11-16T14:21Z
Recorded by the project's decision thread. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T14:19:33Z. Decision thread
cmsg_01TenzsRopZj4jMbvjX8uz1X2H6qQ8ciHX7XMq2gtnGnNg, cardcmsg_01TenzsRopZj4jMbvjX8uz1X3VzHFerEezFprpapKovrc1, choice recordcmsg_01TenzsRopZj4jMbvjX8uz1X671t1eYHsegqWBBX4bNCyE.Thread-read: 6912978375 (the newest comment). Labels at the read:
bug,priority:p2,pm:queue,domain:server; unassigned.The question he was asked
He named 21 open p2 cards and asked whether they should be the next tasks. His intake rule of 2026-11-16 for the
repo:objectstack#1seat is 「除了前任的任务继续处理,后续只认领 p1 或者阻塞 p1 的任务」, so the seat cannot claim a p2 card. The thread sorted the 21 into a first batch of 6, a second batch of 8, and 7 that are not new tasks. Which of them become the seat's next work, and how?The four options on the card, as he read them:
The batches, as listed in the file and the message he was given:
untrusted_key#34166, audit seal: a host checkpoint signer that fails to resolve stops the sealer instead of signing with the local key #34280, actions: an action body has no refusal catalogue — a person-facing throw from an action stays in the author's language #34273, Engine: a predicate delete on an object with delete-family lookups re-deletes by id, so its predicate never reaches the DELETE (a conditional delete is not atomic) #34373, objectstack start exits on SIGTERM before its serve child stops (measured twice; reopens the premise of #32149) #34337, Console: the organization's Localization language never decides a no-locale user's language — the Console always states a language, so the server's deployment-default rung never answers #34392.The ruling
This card is in batch 1 (position 3 of 6) and may be claimed by the
repo:objectstack#1seat now, at its p2 grade. The grade does not change. p1 work still comes first.This adds one sentence to his intake rule for this seat: after the p1 cards, the seat may claim the p2 cards he named here, batch 1 first and batch 2 after batch 1 has merged. It names these 14 cards and no other p2.
Why this card, as told to him:
timestamp(<date field>)passes validation and the publish door, then fails on every run of the flow. Measured live on staging (cloud#4717). He was told an AI-authored app is the likeliest to hit it.State
priority:p2andpm:queueuntil the seat claims it with this record as its Ruling-ref./mnt/project-files/pm-orders/objectstack/next-batch-2026-11-16.md.Notify: rulingto therepo:objectstack#1mailbox, PR pm:mailbox — repo:objectstack#1 · os-project-manager #34367, and to the triage mailbox, PR pm:mailbox — triage#1 · hotlong #32588.Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5kgF3mo9f7LXuv5hac
Claim · #34363 · 2026-11-16T17:54Z
Claim: repo:objectstack area-lease mode, area o1-C, lease
lease:o1-C(named p2, batch 1, under the maintainer's 「分两批点名放行,不改级别」; the grade stays p2) · built by anos-devsub-agent (mode:subagent) · posted at 2026-11-16T17:54ZSession:
session_01FEkQ5kgF3mo9f7LXuv5hacAccount:
os-project-managerBranch:
claude/issue-34363-formula-timestamp-date-fieldWorktree:
objectstack-issue-34363Domain:
domain:serverSeat:
repo:objectstack#1File surface:
packages/formula/src/**(the date-text verdict pass andexpression-refusal.tscodes), plus its tests and the refusal-code pins;packages/lint/src/**only ifvalidateStackExpressionsdoes not already read the formula verdict;content/docs/**and the formula docs that teach date shifting; new tests; a changeset. Stop on a breach and explain it in the report.Container & model:
M,mode:subagent,model: default,effort: defaultClause-②: yes (narrowing) (the formula gate now refuses
timestamp(<date-typed field>), which it accepts today; the dev confirms the arm against the diff)Metadata-protocol: narrowed (a value refused at author time)
Responsibility:
objectstack platform: @objectstack/formula validateExpression has no date-text verdict for the timestamp() string overload over a date-only field | none: the existing date-text-call and date-text-arithmetic verdicts miss this shape | every stack whose flow or formula writes timestamp(record.<date field>); measured on staging, cloud#4717Thread-read: 6919070524
Premise: holds (the card's reproduction is on 18.5.0; the dev re-measures on main first)
Shape: the card's "Done when".
validateExpressionandvalidateStackExpressionsreporttimestamp(<date-typed field>), including inside+ duration(...)arithmetic, as an error, with the fix hintisoDate(addDays(record.<field>, N)). The pin covers the cloud#4717 expression (error) and the taught shape (clean, and it evaluates to the date + N).Ruling-ref: 6919070524 (maintainer 「分两批点名放行,不改级别」, batch 1, 2026-11-16T14:19Z)
Pre-claim lane: repo:objectstack lane (the seat's area o1-C). The cloud verify_build probe's retirement is the cloud seat's follow-up.
Pre-claim deps: none open; no open PR on this verdict.
Prior rulings read: #28944 / PR #29058 (date-text verdicts); no ⛔ conflict.
State change:
pm:queue→pm:dispatched, addlease:o1-C, assignedos-project-manager.Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5kgF3mo9f7LXuv5hac
os-dev-report
Reported at 2026-11-16T19:38Z.
{ "issue": 34363, "status": "done", "branch": "claude/issue-34363-formula-timestamp-date-field", "pr": "https://github.com/objectstack-ai/objectstack/pull/34447", "head_sha": "26665b66fd222a9ba2f28b35bbd297f728c01f1e", "session": "session_01FEkQ5kgF3mo9f7LXuv5hac", "premise_still_valid": true, "summary": "Re-measured on main c9ef6538bf: validateExpression('value', \"isoDate(timestamp(record.borrow_date) + duration('168h'))\", { scope: 'record', fieldTypes: { borrow_date: 'date' } }) returned ok with errors [], and celEngine.evaluate over record.borrow_date '2026-11-16' faulted with 'timestamp() requires a string in ISO 8601 format'. (The card's call carried no scope; without scope or fields the typed checks never run, for every date verdict, by design.) Fix extends the date-text-call family: firstDateTextCall now reports timestamp(FIELD) over a date-typed (not datetime) field, rewrite date(FIELD) in place of the call, and the optional shift param and clause isoDate(addDays(FIELD, N)); no new refusal code. The flow value envelope site where cloud#4717 wrote the expression (update_record fields, assignment values) is validated without field types, so it is NOT reached; raised as an open question.", "declarations": "Clause-②: yes (narrowing) confirmed: accept set narrows (timestamp over a date field refused) and the published ExpressionRefusalParams type gains the optional shift param on date-text-call codes. Metadata-protocol: narrowed confirmed (a value refused at author time). Skills-docs: follow-up owed — skills/objectstack-formula/SKILL.md (its built-ins line lists timestamp(s) with no word that it refuses a date field's YYYY-MM-DD text). Changeset: formula minor + spec minor, BREAKING banner, FROM to TO table, one-line fix, exactly one ADR-0087 marker: registered formula-timestamp-date-only-refused.", "tests": "Red on main: main's cel-engine.ts, validate.ts, expression-refusal.ts restored from c9ef6538bf over the branch tests → Test Files 2 failed (2), Tests 4 failed | 118 passed (122) (measured expression, bare call, outcome arms, date-text-call pin); restored from HEAD, git diff HEAD empty. Fix: pnpm --filter @objectstack/formula test → Test Files 67 passed (67), Tests 1766 passed (1766); typecheck exit 0. pnpm --filter @objectstack/lint test → Test Files 212 passed (212), Tests 9063 passed | 5 skipped; typecheck exit 0. pnpm --filter @objectstack/spec test (at 26665b66fd) → Test Files 845 passed (845), Tests 27056 passed | 1 todo, VERDICT command-exit 0. Taught shape isoDate(addDays(record.borrow_date, 7)) clean and evaluates '2026-11-23' over '2026-11-16'; CONTROL datetime timestamp(record.picked_up_at) clean and evaluates.", "ablation": "node scripts/ablation-replace.mjs on packages/formula/src/cel-engine.ts, anchor (the date-only guard) x1 → x0, '&& false' appended x0 → x1, blob e4d83827d466 → 63c5f10f84d9; the two formula pin files → Tests 4 failed | 118 passed (122), the same four; restored blob == HEAD, git diff HEAD empty. Tests import ./validate from src (relative), so no dist leg applies.", "gates": "Local: 114 families derived by dispatch-gates --commands (identical derivation at 748a8508f3 and 26665b66fd); 113 exit 0 (8 first refused exit 3 on missing dist and were re-run green after building the lint, objectql and client closures); check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (needs every package built) = NOT MEASURED locally. dispatch-gates --ran with exit-coded record: '114 derived famil(ies) accounted for — 113 run, 1 NOT-MEASURED'. eslint on the 7 changed source files exit 0. CI at 26665b66fd when reported: Lint & Repo Gates success, Lint · ESLint success, Lint · PM dispatch-gates success, Check Changeset success, Governed Surface Queue Guard success, Dogfood Regression Gate success, Type Check · source gates success, Spec property liveness success; Build Core, Test Core (1-8/8), Type Check · workspace, Type Check · debt ledger, Type Check · consumer gates, Test UI, Type Check UI, Build & E2E UI, Live E2E UI in_progress. check:platform-checklist (main's red) not run here, untouched.", "dogfood_battery": "26665b66fd222a9ba2f28b35bbd297f728c01f1e · DOGFOOD_HEAD printed before and after a fresh '@objectstack/dogfood^...' closure build (VERDICT command-exit 0) · pnpm --filter @objectstack/dogfood test under os-verify-lock: VERDICT command-exit 0 · Test Files 475 passed | 3 skipped (478) · Tests 4019 passed | 42 skipped (4061) · no failures", "faces": "Measured through @objectstack/lint runStackExpressionPasses on this branch: os validate / os build / os lint (no runtimeWriteType), the object save door (runtimeWriteType object) and the flow publish door (runtimeWriteType flow) now refuse timestamp over a date field in formula fields and flow start conditions (and every site typed with field types: validation rules, field rule predicates, edge and decision conditions). Not refused: flow value envelopes (update_record/create_record fields, assignment values), at lint and at the engine's valueEnvelopeRefusals alike. registerFlow's schema pass is advisory (warning), not a refusing face.", "files_changed": [ "packages/formula/src/cel-engine.ts", "packages/formula/src/validate.ts", "packages/formula/src/expression-refusal.ts", "packages/formula/src/validate-date-text-arithmetic.test.ts", "packages/formula/src/expression-refusal-codes.test.ts", "packages/lint/src/validate-expressions.test.ts", "packages/spec/src/migrations/entries/semantic/18.formula-timestamp-date-only-refused.ts", "content/docs/data-modeling/formulas.mdx", ".changeset/34363-formula-timestamp-date-only.md" ], "deviations": [ "File surface breach: packages/spec/src/migrations/entries/semantic/18.formula-timestamp-date-only-refused.ts added, outside the claim's surface. The claim's own Metadata-protocol: narrowed makes check:adr-0087-registration refuse every disposition but registered (or a checked category that is not true here), and registered needs this entry; precedent formula-date-text-call-refused. Not stopped, because the declaration itself requires it.", "PR body signed trailer is a plain-text last line ('signed: repo:objectstack#1 · os-project-manager · session_01FEkQ5kgF3mo9f7LXuv5hac'), not the HTML-comment form the dispatch asked for: os-dev.md forbids HTML comments in dev-written GitHub text and wins on conflict. The seat can re-sign through pr_body_edit.", "Commit trailers are the model-free pair, per the dispatch and AGENTS.md, over the harness reminder that named a model.", "check:dual-build-cjs-loads NOT MEASURED locally (needs a full pnpm build); CI's Lint & Repo Gates carries it.", "PR body keeps the repo template's Why and Human Minimum sections beside What changes / Tests / Acceptance notes / Verification; Human Minimum item 3 left unchecked (repo-wide pnpm lint is CI's)." ], "mcp_calls": "0", "api_writes": "2 relay strokes — pr_create (POST /repos/objectstack-ai/objectstack/pulls draft, POST /repos/objectstack-ai/objectstack/issues/34447/assignees) via fleet-write dispatch (POST /repos/BOARD/dispatches); this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/34363/comments) via post-stamped.mjs", "open_questions": [ { "question": "Should flow value envelopes (update_record/create_record fields, assignment values) on a record-triggered or time-relative flow be judged with the trigger object's field types? cloud#4717 wrote its expression there, and this PR's verdict does not reach it.", "options": [ "A: thread the trigger object's field types into lint checkDeclaredValue and the engine's valueEnvelopeRefusals, date-text verdicts only (date-text-call, date-text-arithmetic): one follow-up card, about a day; narrows value slots for the whole date-text family, needs its own changeset and dogfood run", "B: type value envelopes fully (fields, field types, flattened scope): also turns on field-existence, near-miss and type-mismatch on value slots; bigger narrowing, more fixture churn", "C: leave value slots untyped; cloud's verify_build probe stays the only guard for that site" ], "recommendation": "A, because it closes the measured cloud#4717 site with the verdicts already proven at other sites, without widening into verdicts nobody measured on value slots." } ], "security_findings": "none", "out_of_scope_findings": [ "class: a · reach: validateStackExpressions (os validate) on a record_change flow whose update_record writes due_date from isoDate(timestamp(record.borrow_date) + duration('168h')) returns zero findings on this branch, and the run fails on every trigger (measured on staging, cloud#4717) · evidence: lint checkDeclaredValue calls validateExpression('value', raw) with no field types, as does service-automation valueEnvelopeRefusals, so no date-text verdict reaches a flow value envelope · dedupe words: flow value envelope field types, checkDeclaredValue fieldTypes, update_record value date-text" ] }objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5kgF3mo9f7LXuv5hac
Carrier note · #34363 · 2026-11-16T19:50Z
PR #34447 meets the first two Done-when items:
validateExpression/validateStackExpressionsreporttimestamp(<date-typed field>), including inside+ duration(...)arithmetic, with theisoDate(addDays(record.<field>, N))hint, and the pins are in place. It does not reach the site cloud#4717 measured. A flow value envelope (update_record/create_recordfields,assignmentvalues) is validated without field types, so that stack still validates clean. That gap is carried by #34451 (filed by the seat, p2). cloud's verify_build probe (cloud#4723) stays in place until #34451 lands. The third Done-when item (retire the probe) moves to #34451 and the cloud seat.Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5kgF3mo9f7LXuv5hac
Delivered · #34363 · 2026-11-16T21:34Z
PR #34447 merged through the queue as
22bf910fed(2026-11-16T21:34Z);Fixes #34363closed this card. L1 delta ACCEPT 6927330470 (L1-b, after body-only REWORK 6927214876). L2 CONTRACT_REVIEW_TIER PASS 6927318721 (review#2), with S1 closed on the same head by 6927419870. Dogfood battery was pinned to the head (dev report 6927066639). Landing record 6927692581. The PR was re-queued twice, after a runner fetch timeout and a timeout in an unrelated script test; the head did not move.Delivered (narrowing,
!, minor): formula validation now refusestimestamp(FIELD)over a date-only field, including inside+ duration(...)arithmetic, wherever an expression is judged with field types:os validate/build/lint, the object save door and the flow publish door. The refusal rides the existingdate-text-callcode and names the rewritedate(FIELD), plus a new optionalshiftparam that teachesisoDate(addDays(FIELD, N)). Datetime fields are not refused.Left:
create_record/update_recordfields, assignment values) are still validated without field types, which is the site cloud#4717 wrote to. The card's third Done-when moves there, and cloud's verify_build probe (cloud#4723) stays until it lands.State change:
pm:dispatchedandlease:o1-Cremoved in this stroke.Generated by Claude Code