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
flow condition date-text: the index spelling record['FIELD'] and mixed bare / record. operand arithmetic still pass where record.FIELD is refused #35295
area:workflowApprovals and automation — the work that runs without a person driving itbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p2Medium: important, M3
Filing gate: class a, a follow-up named by the contract review of PR #34935 (card #34662; record 6998023700, ③ escalation and nit N5 b), and promised in this seat's hold comment 6963236571. ⛔ Not a claim. Grading and domain:* are triage's.
Suggested-grade: p3 · two spellings the #34662 pass does not reach; neither regressed, both passed before #34662 too
Index spelling.recordRootDateTextIssue (packages/formula/src/validate.ts) types record.FIELD / previous.FIELD member reads only (RECORD_ROOT_READ_RE in packages/formula/src/cel-engine.ts). record['borrow_date'] reaches neither the bare pass nor the root pass.
Mixed-spelling arithmetic. In due_date - record.borrow_date GT duration('24h'), the bare pass leaves the root operand dyn and the root pass leaves the bare name dyn. A dyn operand does not fault the check, so neither pass reports. Both same-spelling forms are refused, and the run faults on text minus text.
Done when
At flattened scope (flow conditions), both spellings get the same date-text verdicts as record.FIELD, pinned in packages/formula/src/validate-date-text-arithmetic.test.ts, with the runtime publish door and os validate agreeing. For (2), the arm (refuse or pass when one operand's typing is unproven) is decided first and the decision cited.
First touch (rules of #35223): area:workflow · Bug · Impeded · rare (two operand spellings the #34662 pass does not reach, neither a regression) · read in code → p3 by the table, as suggested. Kept open: it is a behaviour gap, not a nit, so the no-effect close does not apply. pm:queue. Issue type set to Bug.
Triage: lands in area:workflow · domain:server · Bug · p2 · pm:queue · size S; rationale: the index spelling record['FIELD'] and mixed bare / record. operand arithmetic still pass flow-condition validation where record.FIELD is refused, so an author's condition can pass the checks and then fail at run time. That is the class of #36377 and #37848 (p2), so p3 → p2. Graded, not chased (area:workflow has no seat). Audit restatement, tier 3. Recorded 2026-11-27T18:21Z.
Triage: finding removed · grade, area, type and state unchanged. Rationale: the card was graded by the first-touch record 7225422994, and a graded card no longer carries the ungraded finding label. Prompted by seat 3's knock 7257883619 on #36548; #35295 is the same case found by the same search.
Decision analysis · #35295 item (2) · posted 2026-12-01T09:28Z · by an isolated contract-tier analyst sub-agent of this seat (no seat leaning given to it).
Readings on origin/mainb06efa9a97, taken 2026-12-01T08:41Z. Probes: a 46-row battery against main's formula source with three scratch prototypes; corpus by a recorder over the shipped examples and both test suites plus a text scan of 29,367 tracked files, each with a positive control.
Today on main: 9 of 9 mixed bare / record. (or previous.) date-arithmetic forms PASS the publish check and fault at run (no such overload: dyn<string> - dyn<string>); both same-spelling forms are refused (date-text-arithmetic-run-fails). Mechanism: the bare pass leaves roots untyped and the root pass hands bare names as {} (packages/formula/src/validate.ts:599-600, :949). Item (1), the index spelling, is the regex gate alone (RECORD_ROOT_READ_RE, packages/formula/src/cel-engine.ts:1268): widening it refused all five faulting index forms with both controls clean.
Battery, three prototypes (true refusals / misses / false refusals of expressions that run today): main 6 / 20 / 0 · C (type bare names and roots in one pass, +8/−1 in validate.ts) 15 / 11 / 0 · B, refuse any date text against dyn, all arithmetic 23 / 3 / 10 · B, subtraction only 22 / 4 / 6. B's false refusals are a flow variable or node output holding an instant (cutoff - record.due_date > duration('24h'), get_policy.effective_at - record.due_date …), a shadowing variable, and text concatenation.
Existing pins: C and both B variants leave 2,176 formula tests and 546 lint expression tests green (positive control: ablating the root pass reds 9).
Corpus: 0 CEL expressions of the shape in 29,367 files (scanner control 4/4). Verdict changes over 1,891 typed flow-condition expressions in the examples and both suites: C 0, B 0. 14 of the 24 shipped flattened flow conditions mix the spellings (title != previous.title, …); 0 contain arithmetic.
Where a node can rebind a bare name (bareNamesUnproven) the date verdict stays an error with the weaker run-may-fail sentence (validate.ts:736-745), which answers the review 6998023700 N5 (b) "which outcome" question.
Options
What a flow author sees
Workload
A. Pass
publishes clean; every run fails; the consistent spelling of the same mistake is refused
0 PRs for (2); leaves CHANGELOG.md:235 and the registered surface wider than the code
B. Refuse any unproven operand
the card's mistake refused; 10 working expressions refused too, until wrapped in date(…)
1–2 PRs; a new outcome code/arm, a new semantic entry, a scope ruling; no precedent
C. Type both spellings, then judge
the card's mistake refused with the consistent spellings' code and fix; everything that runs today still publishes
os-decision-facets
① Long-term soundness: C shrinks a special case (one typing of the scope, not two disjoint ones) and adds no contract; B adds a site-specific exception to the package-wide dyn law and a new code; A keeps a spelling-dependent verdict.
② Real business pull: 0 authored instances of mixed date arithmetic or of date-against-dyn arithmetic in 29,367 files; 14 of 24 shipped conditions mix the spellings, so the pull is latent and points at the mixed form only.
③ Preventing AI mistakes: C and B both refuse the card's mistake loudly at publish; B additionally refuses 7 real faults and 10 working expressions; A refuses nothing. This is the one axis that leans toward B for genuinely unproven operands.
④ Startup-stage restraint: C enforces an already-declared rule; B declares a new refusal with zero pull and a scope question behind it; A adds nothing and leaves a declared rule half-enforced.
Governing text: packages/spec/src/migrations/entries/semantic/18.formula-date-subtraction-refused.tssurface ("flow conditions — a date or datetime field subtracted from another", no spelling excepted); AGENTS.md Prime Directive 12; ADR-0032 1c.
Recommendation: C. The card's example is refused, because neither operand is unproven; a genuinely unproven operand passes, as everywhere else in the package. Execution if C: one PR for items (1) and (2), domain:server, Clause-②: no (narrowing), contract-tier review and the dogfood battery; the dev pins the ten run-fine expressions as controls — if any is refused, report a fork, do not fall back to B.
Out of scope, for the seat: the run harness at packages/formula/src/validate-date-text-arithmetic.test.ts:568 and validate.test.ts:1349, :1432 binds bare names outside ctx.extra, so bare-spelling run pins pass for the wrong reason (Unknown variable); the builder of this card writes its run pins over the engine's scope.
Maintainer ruling · 2026-12-01T12:34Z · on the decision analysis 7306749599 (freshness: no comment newer than it).
The maintainer, in seat repo:objectstack@os-justin's session, verbatim: 「同意 C」.
Ruled C for item (2): type bare field names and record. / previous. roots against the object's field table in ONE pass, then judge; a mixed spelling whose two operands are both date/datetime fields takes the verdict, outcome code and prescription the all-bare and all-root spellings already take (date-text-arithmetic-run-fails, precedent PR #37840). An operand that is genuinely unproven (a flow variable, a node output, a shadowing name) keeps passing, as everywhere else in the package (ADR-0032 1c). A and B are not taken.
Execution parameters ruled in the same stroke: one PR for items (1) and (2) — item (1) widens RECORD_ROOT_READ_RE (packages/formula/src/cel-engine.ts:1268 on origin/main 05da5bd) to the index spelling record['FIELD'] / previous['FIELD']; Clause-②: no (narrowing), Metadata-protocol: narrowed; contract-tier review and the dogfood battery owed. The ten expressions that run today and B refused are pinned as passing controls; if C refuses any of them, the dev stops and reports a fork — no silent fallback to B. The run pins are written over the engine's real scope (the analysis found bare-spelling run pins at validate-date-text-arithmetic.test.ts:568 and validate.test.ts:1349, :1432 passing for the wrong reason, Unknown variable).
Claim: PM loop round 1
Session: session_01QSeKYnrQ7UMtHofKQVjcH2
Account: os-justin
Branch: claude/issue-35295-date-text-mixed-spelling
Worktree: objectstack-issue-35295
Domain: domain:server
Seat: repo:objectstack@os-justin
File surface: packages/formula/src/validate.ts, packages/formula/src/cel-engine.ts and the tests beside them (validate.test.ts, validate-date-text-arithmetic.test.ts, new pins), packages/spec/src/migrations/entries/semantic/ (reason: the narrowing's semantic entry, if the repo keys one per narrowing as PR #37840 did), CHANGELOG.md / the changeset (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: opus (dispatch-gates --tier: no path-derived mandate; floor sonnet · default opus · ceiling fable — default tier), effort: high
Clause-②: no
Metadata-protocol: narrowed
Responsibility: the formula package's publish check (packages/formula, objectstack) types the two spellings in separate passes | the all-bare and all-root spellings are covered (date-text-arithmetic-run-fails) | flow authors mixing a bare field and record./previous. in date arithmetic; 0 authored instances today
Thread-read: 7311348060
Premise: holds (origin/main 05da5bd, 2026-12-01T12:35Z: RECORD_ROOT_READ_RE at cel-engine.ts:1268 matches only the dot spelling; the analysis 7306749599 measured 9 of 9 mixed forms passing on b06efa9)
Serial constraints cleared: no in-flight claim names packages/formula (check-handover --inflight, 2026-12-01T12:35Z).
{
"issue": 35295,
"status": "done",
"branch": "claude/issue-35295-date-text-mixed-spelling",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38949",
"session": "session_01QSeKYnrQ7UMtHofKQVjcH2",
"premise_still_valid": true,
"summary": "Ruled C implemented. Item (2): recordRootDateTextIssue (packages/formula/src/validate.ts) keeps the roots-alone typing first (every current verdict and arm byte for byte), then types the bare names (less flow-variable-shadowed ones) and the record./previous. roots in ONE pass; a verdict that rests on a bare name takes dateArm(faultOutcome, bareNamesUnproven), so run-fails when proven and run-may-fail under bareNamesUnproven. Item (1): RECORD_ROOT_READ_RE (cel-engine.ts) admits record[ / previous[, and offendingRecordRead names an index read by its member spelling; since the regex gates every flattened root pass, an index read also takes the member read's date-arithmetic and type-mismatch verdicts (pinned equal). ADR-0087 semantic entry 19.flow-condition-mixed-or-index-spelling-date-text-refused and changeset (formula+spec minor, BREAKING, FROM-TO) added. The three run harnesses (validate-date-text-arithmetic.test.ts:568, validate.test.ts:1349, :1432) now bind the engine's scope under extra. Premise held on origin/main 05da5bdb0a: 9/9 mixed and 5/5 index forms passed before the change.",
"tests": "head 03e1b9d357, under os-verify-lock: formula full suite 'Test Files 72 passed (72) / Tests 2209 passed (2209)'; formula typecheck VERDICT command-exit 0; lint src/validate-expressions.test.ts 'Tests 546 passed (546)' against a formula dist built from this branch; spec src/migrations 'Tests 212 passed (212)'; spec check:generated all 14 up to date. New describe in validate-date-text-arithmetic.test.ts: 28 tests (9 mixed forms incl. no-outcome and bareNamesUnproven arms, 1 arm test, 6 index forms incl. previous double-quote, 1 index date-arith/type-mismatch equality, 1 index control set of 5, 10 run-today controls = B's 10 false refusals; all controls validate {ok:true,errors:[],warnings:[]} and evaluate true; mixed run pins assert the fault text 'no such overload' on a dyn string minus a dyn string). Ablations via scripts/ablation-replace.mjs, restored to HEAD blob each time: one-pass leg removed -> 11 failed/260 passed (all 9 mixed + arm + mixed-index); index regex reverted -> 6 failed/265 passed; index naming reverted -> 3 failed/268 passed. Corpus: analysis recordings re-judged base 05da5bdb0a vs head: 9,157 unique calls (2,586 flattened+typed) over examples (crm, showcase, multi-package), formula and lint suites, 0 verdict changes; positive control 3/3 changed, negative 1/1 unchanged. Text scan of 29,402 tracked files: 109 quoted-key index reads outside the new test, none a flow-condition date arithmetic/call (control 14 hits in the new test); mixed bare/root arithmetic 0 CEL hits outside this PR (control 6). No authored hit in examples, docs or skills.",
"gates": "local subset at 03e1b9d357: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 95 families; each run with exit captured before any pipe; --ran: '95 derived, 93 run, 2 NOT-MEASURED, 0 UNRUN' (exit 0). NOT-MEASURED: pnpm check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (needs full pnpm build); pnpm check:type-check-debt stopped at the foreground bound while its closure build waited on the shared lock (claimed, reason recorded). check:slot-lookup: first pass killed at the bound after its self-test passed, scan re-run alone exit 0 (203 s). cli migrate-meta-engine-guidance test and lint check:doc-formula-expressions first exit 1/3 for missing dist, exit 0 after building their closures. node scripts/check-adr-0087-registration.mjs --base origin/main exit 0. CI check-runs on PR #38949: not yet concluded at report time; CI-owned families (Lint & Repo Gates, TypeScript Type Check, Test Core incl. test:repo, Build Core, dogfood) are CI's.",
"line_budget": "6 files, +302/-16 vs merge base 8338d07029 (numstat): validate.ts +26/-4, cel-engine.ts +15/-8, validate-date-text-arithmetic.test.ts +175/-2, validate.test.ts +4/-2, semantic entry +51, changeset +31; edits sit inside existing functions of validate.ts and cel-engine.ts (both already over 1,000 lines), no new concern added there",
"files_changed": [
"packages/formula/src/validate.ts",
"packages/formula/src/cel-engine.ts",
"packages/formula/src/validate-date-text-arithmetic.test.ts",
"packages/formula/src/validate.test.ts",
"packages/spec/src/migrations/entries/semantic/19.flow-condition-mixed-or-index-spelling-date-text-refused.ts",
".changeset/35295-date-text-mixed-spelling.md"
],
"deviations": [
"Clause-② line: the claim 7311362527 carries 'Clause-②: no'; the ruling 7311348060 and the dispatch carry 'no (narrowing)'; PR body and changeset use 'no (narrowing)'.",
"The harness attribution reminder names a model in its Co-Authored-By trailer; commits use AGENTS.md's model-free pair instead (pre-push check:commit-card-trailers passed). The merge commit from os-regen-merge.sh carries no trailer pair.",
"One gate batch (rungates 73-95) exceeded 600 s and the harness moved it to the background; stopped at once with TaskStop (no leftover process found), remaining gates re-run in the foreground.",
"Index-spelling reach: widening the shared RECORD_ROOT_READ_RE (as ruled) also extends the root pass's date-arithmetic and type-mismatch verdicts to index reads; declared in changeset, semantic entry and PR, pinned equal to the member spelling.",
"GitHub reads of the card and comments went through gh api (read-only)."
],
"mcp_calls": "0",
"api_writes": "2 relay strokes as objectstack-fleet[bot] through scripts/pm/fleet-write/dispatch.mjs: pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST issues/38949/assignees os-justin; read-back identical, 10902 bytes) and this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/35295/comments via post-stamped.mjs). git push is not a REST write.",
"classifier_refusals": [],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted in PR Acceptance notes, not filed: (status == 'open' ? now() : null) - record.picked_up_at > duration('1h') passes the flow-condition check and faults at run (dyn Timestamp minus date text after the nullable-ternary rewrite); operand genuinely dyn so C passes it by design; formula-package evidence only, no public-door reach measured; dedupe words: nullable ternary dyn timestamp date text subtraction, rewriteNullableTernary, run-may-fail miss"
],
"l2": "narrowing: contract-tier review owed; dogfood battery owed on the final head (seat arms needs:dogfood-battery)",
"cleanup": "worktree /home/user/objectstack-issue-35295 removed after the report (node_modules first, then git worktree remove without --force)"
}
{
"issue": 35295,
"status": "done",
"branch": "claude/issue-35295-date-text-mixed-spelling",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38949",
"session": "session_01QSeKYnrQ7UMtHofKQVjcH2",
"premise_still_valid": true,
"patch_round": "1, on contract review 7315274427 (FAIL, M1 must-fix, S1 should-fix, N1-N3)",
"head": "5b8b6af2f8 (commits since the reviewed head 03e1b9d357: merge of origin/main 397a9d94eb via os-regen-merge.sh, 19b1bd6c62 fix, 5b8b6af2f8 declarations)",
"summary": "Seat's route taken: the index spelling takes the date-text verdicts only. RECORD_ROOT_READ_RE (gate of firstTypeMismatch's root pass) restored to the member spelling; a new RECORD_ROOT_DATE_TEXT_READ_RE (member or index) gates validate.ts's recordRootDateTextIssue alone; offendingRecordRead names index reads only when asked (indexReads, the date-text pass). The type-mismatch and date-arithmetic passes therefore see index reads exactly as on the merge base: M1 (refusal stood down to a warning) and S1 (ordering against a text field refused) are gone and pinned. The old 'index date-arith/type-mismatch equality' pin is replaced by a date-text-only reach pin (record['due_date'] + 1 > 5 is date-text-arithmetic-run-fails; previous['title'] > 5 gets no type-mismatch). N1 done (two older run pins assert the fault text; the index run pin asserts the fault text). N3 fixed in the PR body: of 6 pinned index rows 5 passed on the merge base, record['due_date'] - record.borrow_date was refused there already. Semantic entry and changeset now declare the index reach as the date-text verdicts only and state that no earlier verdict changes. Item (2) code unchanged. Standing member-spelling holes left untouched as ordered.",
"m1_s1_head_vs_base": "base = formula src at 05da5bdb0a (equal to origin/main's), head = 5b8b6af2f8, validateExpression flattened, both arms. M1: \"due_date - borrow_date > duration('1h') && record['title'] > 5\" no-outcome base ok=false date-text-arithmetic-run-may-fail / head same; run-fails base date-text-arithmetic-run-fails / head same. \"record['active'] > 5 && isoDate(picked_up_at) == 'x'\" no-outcome base date-text-call-run-may-fail / head same; run-fails base date-text-call-run-fails / head same; no warnings either side. S1: record['due_date'] > record['title'], due_date > record['title'], record['due_date'] > title, record['title'] then due_date by index: base ok=true clean / head ok=true clean on both arms. previous['title'] > 5: clean on both sides. New refusals only: record['due_date'] + 1 > 5, timestamp(record['borrow_date']) before now(), due_date - record.borrow_date > duration('24h') (clean on base, refused on head).",
"tests": "head 5b8b6af2f8 under os-verify-lock: formula full suite 'Test Files 72 passed (72) / Tests 2211 passed (2211)'; formula typecheck (tsc --noEmit + check:test-typecheck OK); lint src/validate-expressions.test.ts 'Tests 546 passed (546)' against a formula dist built from this head; spec src/migrations 'Tests 212 passed (212)'. New describe now 30 tests (28 - 1 replaced + 3: date-text-only reach, M1 both arms, S1 four spellings both arms). Ablations at 5b8b6af2f8 via scripts/ablation-replace.mjs over validate-date-text-arithmetic.test.ts + validate.test.ts (273 tests), each restored to the HEAD blob with git diff HEAD empty: shared RECORD_ROOT_READ_RE re-widened -> 3 failed/270 passed (reach, M1, S1 pins); date-text gate back to member-only -> 6 failed/267; one-pass leg removed -> 11 failed/262; index naming off -> 3 failed/270. Corpus re-judge base vs head: 9,157 unique recorded calls (2,586 flattened+typed), 0 verdict changes; controls: mixed form and index call change, index text mismatch and ordering control do not.",
"gates": "re-run at 5b8b6af2f8 for the files this patch touched: node scripts/check-adr-0087-registration.mjs --base origin/main, spec check:spec-changes, spec check:upgrade-guide, pnpm check:doc-authoring, pnpm check:nul-bytes, pnpm check:issue-citations, check-empty-changeset --base origin/main, check-changeset-no-major --base origin/main: exit 0 each (captured before any pipe). The full derived union (95 families: 93 run exit 0, 2 NOT-MEASURED check:dual-build-cjs-loads exit 3 and check:type-check-debt killed at bound) was taken at 03e1b9d357 and not re-run for this patch (same six files; CI owns the farm). CI check-runs on 5b8b6af2f8: not read, CI's.",
"line_budget": "6 files, +353/-17 vs main 645e6b1508 (numstat): validate.ts +30/-6, cel-engine.ts +24/-5, validate-date-text-arithmetic.test.ts +207/-3, validate.test.ts +5/-3, semantic entry +56, changeset +31; edits inside existing functions of validate.ts and cel-engine.ts",
"files_changed": [
"packages/formula/src/cel-engine.ts",
"packages/formula/src/validate.ts",
"packages/formula/src/validate-date-text-arithmetic.test.ts",
"packages/formula/src/validate.test.ts",
"packages/spec/src/migrations/entries/semantic/19.flow-condition-mixed-or-index-spelling-date-text-refused.ts",
".changeset/35295-date-text-mixed-spelling.md"
],
"pr_body": "updated body for the seat to PATCH: /tmp/claude-0/-home-user-objectstack/96353139-b75c-518e-b0e8-54f835f491d0/scratchpad/issue-35295/pr/body2.md (13,102 bytes before the last one-line edit; no tag-shaped fragment besides the details/summary blocks; footer kept)",
"deviations": [
"The local branch left by the first round was deleted (its tip equalled origin's 03e1b9d357) so dev-worktree.sh --resume-from could rebuild the tree; origin/main merged through os-regen-merge.sh, base pinned at 397a9d94eb.",
"A fresh tree needed the lint closure built before the lint test (first attempt failed on an unbuilt @objectstack/sdui-parser, not a test result).",
"The PR body was not PATCHed by this dev (seat's per order); the updated text is the file named in pr_body."
],
"mcp_calls": "0",
"api_writes": "1 relay stroke this round: the os-dev-report comment on #35295 via scripts/pm/post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/35295/comments). Round total 3 (pr_create, two report comments). git push is not a REST write.",
"classifier_refusals": [],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: seat · per L2 7315274427 and the patch order, the seat files or dedupes the standing member-spelling holes (warning-hides-error precedence, date-against-text ordering verdict, the .exists false refusal, the nullable-ternary miss); not touched here"
],
"l2": "narrowing: a fresh contract-tier review is owed on 5b8b6af2f8; dogfood battery owed on the final head (seat arms it)",
"cleanup": "worktree /home/user/objectstack-issue-35295 removed after this report (node_modules first, then git worktree remove without --force)"
}
Landed 2026-12-01T16:57Z: PR #38949 merged (merge commit be2df7538d; approved and enqueued by the maintainer after the seat's queue kick 7317129943); this card closed by its Fixes. Delivered, per the maintainer's ruling C (7311348060): a flow condition's date arithmetic that mixes a bare field and a record. / previous. root, and the record['FIELD'] index spelling, now take the date-text verdicts, code and prescription the consistent spellings take; a genuinely unproven operand still passes; the index spelling takes the date-text verdicts only. Contract review FAIL 7315274427 → delta PASS 7316294401; dogfood battery green. Standing holes on main found on the way are carried by #38959 (five items). pm:dispatched removed in this stroke.
area:workflowApprovals and automation — the work that runs without a person driving itbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch (rules of #35223): area:workflow · Bug · Impeded · rare (two operand spellings the #34662 pass does not reach, neither a regression) · read in code → p3 by the table, as suggested. Kept open: it is a behaviour gap, not a nit, so the no-effect close does not apply.
pm:queue. Issue type set to Bug.objectstack-fleet commentedon Nov 27, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:workflow · domain:server · Bug · p2 · pm:queue · size S; rationale: the index spelling
record['FIELD']and mixed bare /record.operand arithmetic still pass flow-condition validation whererecord.FIELDis refused, so an author's condition can pass the checks and then fail at run time. That is the class of #36377 and #37848 (p2), so p3 → p2. Graded, not chased (area:workflow has no seat). Audit restatement, tier 3. Recorded 2026-11-27T18:21Z.objectstack-fleet commentedon Nov 29, 2026
triage#1 · zhuangjianguo · session_01QsR2jRH2X4frz9bBiZHNk4
Triage:
findingremoved · grade, area, type and state unchanged. Rationale: the card was graded by the first-touch record 7225422994, and a graded card no longer carries the ungradedfindinglabel. Prompted by seat 3's knock 7257883619 on #36548; #35295 is the same case found by the same search.objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Decision analysis · #35295 item (2) · posted 2026-12-01T09:28Z · by an isolated contract-tier analyst sub-agent of this seat (no seat leaning given to it).
Readings on
origin/mainb06efa9a97, taken 2026-12-01T08:41Z. Probes: a 46-row battery against main's formula source with three scratch prototypes; corpus by a recorder over the shipped examples and both test suites plus a text scan of 29,367 tracked files, each with a positive control.维护者速读
Measurements
record.(orprevious.) date-arithmetic forms PASS the publish check and fault at run (no such overload: dyn<string> - dyn<string>); both same-spelling forms are refused (date-text-arithmetic-run-fails). Mechanism: the bare pass leaves roots untyped and the root pass hands bare names as{}(packages/formula/src/validate.ts:599-600,:949). Item (1), the index spelling, is the regex gate alone (RECORD_ROOT_READ_RE,packages/formula/src/cel-engine.ts:1268): widening it refused all five faulting index forms with both controls clean.validate.ts) 15 / 11 / 0 · B, refuse any date text againstdyn, all arithmetic 23 / 3 / 10 · B, subtraction only 22 / 4 / 6. B's false refusals are a flow variable or node output holding an instant (cutoff - record.due_date > duration('24h'),get_policy.effective_at - record.due_date …), a shadowing variable, and text concatenation.title != previous.title, …); 0 contain arithmetic.Precedent
packages/formula/src/validate.test.ts:1415-1423; semantic entry19.flow-condition-bare-ordering-before-record-date-arithmetic-refused).validate.ts:446-450,cel-engine.ts:894-898,:1092-1094,:1297(ADR-0032: never flag what the runtime tolerates),:1568-1570. lint: a flow condition's bare-name type verdict ignores names a screen node or an open binder (script, connector_action, wait, subflow, map) binds, so a record-triggered flow can be refusedtype-mismatch-run-failson a name that holds the bound value #30025 was fixed as a bug because it was a false refusal.bareNamesUnproven) the date verdict stays an error with the weakerrun-may-failsentence (validate.ts:736-745), which answers the review 6998023700 N5 (b) "which outcome" question.Options
CHANGELOG.md:235and the registeredsurfacewider than the codedate(…)os-decision-facets
① Long-term soundness: C shrinks a special case (one typing of the scope, not two disjoint ones) and adds no contract; B adds a site-specific exception to the package-wide
dynlaw and a new code; A keeps a spelling-dependent verdict.② Real business pull: 0 authored instances of mixed date arithmetic or of date-against-
dynarithmetic in 29,367 files; 14 of 24 shipped conditions mix the spellings, so the pull is latent and points at the mixed form only.③ Preventing AI mistakes: C and B both refuse the card's mistake loudly at publish; B additionally refuses 7 real faults and 10 working expressions; A refuses nothing. This is the one axis that leans toward B for genuinely unproven operands.
④ Startup-stage restraint: C enforces an already-declared rule; B declares a new refusal with zero pull and a scope question behind it; A adds nothing and leaves a declared rule half-enforced.
Governing text:
packages/spec/src/migrations/entries/semantic/18.formula-date-subtraction-refused.tssurface("flow conditions — a date or datetime field subtracted from another", no spelling excepted); AGENTS.md Prime Directive 12; ADR-0032 1c.Recommendation: C. The card's example is refused, because neither operand is unproven; a genuinely unproven operand passes, as everywhere else in the package. Execution if C: one PR for items (1) and (2),
domain:server,Clause-②: no (narrowing), contract-tier review and the dogfood battery; the dev pins the ten run-fine expressions as controls — if any is refused, report a fork, do not fall back to B.Out of scope, for the seat: the
runharness atpackages/formula/src/validate-date-text-arithmetic.test.ts:568andvalidate.test.ts:1349,:1432binds bare names outsidectx.extra, so bare-spelling run pins pass for the wrong reason (Unknown variable); the builder of this card writes its run pins over the engine's scope.objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Maintainer ruling · 2026-12-01T12:34Z · on the decision analysis 7306749599 (freshness: no comment newer than it).
The maintainer, in seat repo:objectstack@os-justin's session, verbatim: 「同意 C」.
Ruled C for item (2): type bare field names and
record./previous.roots against the object's field table in ONE pass, then judge; a mixed spelling whose two operands are both date/datetime fields takes the verdict, outcome code and prescription the all-bare and all-root spellings already take (date-text-arithmetic-run-fails, precedent PR #37840). An operand that is genuinely unproven (a flow variable, a node output, a shadowing name) keeps passing, as everywhere else in the package (ADR-0032 1c). A and B are not taken.Execution parameters ruled in the same stroke: one PR for items (1) and (2) — item (1) widens
RECORD_ROOT_READ_RE(packages/formula/src/cel-engine.ts:1268on origin/main 05da5bd) to the index spellingrecord['FIELD']/previous['FIELD'];Clause-②: no (narrowing),Metadata-protocol: narrowed; contract-tier review and the dogfood battery owed. The ten expressions that run today and B refused are pinned as passing controls; if C refuses any of them, the dev stops and reports a fork — no silent fallback to B. The run pins are written over the engine's real scope (the analysis found bare-spelling run pins atvalidate-date-text-arithmetic.test.ts:568andvalidate.test.ts:1349,:1432passing for the wrong reason,Unknown variable).objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Claim: PM loop round 1
Session:
session_01QSeKYnrQ7UMtHofKQVjcH2Account:
os-justinBranch:
claude/issue-35295-date-text-mixed-spellingWorktree:
objectstack-issue-35295Domain:
domain:serverSeat:
repo:objectstack@os-justinFile surface:
packages/formula/src/validate.ts,packages/formula/src/cel-engine.tsand the tests beside them (validate.test.ts,validate-date-text-arithmetic.test.ts, new pins),packages/spec/src/migrations/entries/semantic/(reason: the narrowing's semantic entry, if the repo keys one per narrowing as PR #37840 did),CHANGELOG.md/ the changeset (stop on breach; explain in the report)Container & model:
M,mode:subagent,model: opus (dispatch-gates --tier: no path-derived mandate; floor sonnet · default opus · ceiling fable — default tier),effort: highClause-②: no
Metadata-protocol: narrowed
Responsibility: the formula package's publish check (
packages/formula, objectstack) types the two spellings in separate passes | the all-bare and all-root spellings are covered (date-text-arithmetic-run-fails) | flow authors mixing a bare field andrecord./previous.in date arithmetic; 0 authored instances todayThread-read: 7311348060
Premise: holds (origin/main 05da5bd, 2026-12-01T12:35Z:
RECORD_ROOT_READ_REatcel-engine.ts:1268matches only the dot spelling; the analysis 7306749599 measured 9 of 9 mixed forms passing on b06efa9)Serial constraints cleared: no in-flight claim names
packages/formula(check-handover --inflight, 2026-12-01T12:35Z).objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
os-dev-report
{ "issue": 35295, "status": "done", "branch": "claude/issue-35295-date-text-mixed-spelling", "pr": "https://github.com/objectstack-ai/objectstack/pull/38949", "session": "session_01QSeKYnrQ7UMtHofKQVjcH2", "premise_still_valid": true, "summary": "Ruled C implemented. Item (2): recordRootDateTextIssue (packages/formula/src/validate.ts) keeps the roots-alone typing first (every current verdict and arm byte for byte), then types the bare names (less flow-variable-shadowed ones) and the record./previous. roots in ONE pass; a verdict that rests on a bare name takes dateArm(faultOutcome, bareNamesUnproven), so run-fails when proven and run-may-fail under bareNamesUnproven. Item (1): RECORD_ROOT_READ_RE (cel-engine.ts) admits record[ / previous[, and offendingRecordRead names an index read by its member spelling; since the regex gates every flattened root pass, an index read also takes the member read's date-arithmetic and type-mismatch verdicts (pinned equal). ADR-0087 semantic entry 19.flow-condition-mixed-or-index-spelling-date-text-refused and changeset (formula+spec minor, BREAKING, FROM-TO) added. The three run harnesses (validate-date-text-arithmetic.test.ts:568, validate.test.ts:1349, :1432) now bind the engine's scope under extra. Premise held on origin/main 05da5bdb0a: 9/9 mixed and 5/5 index forms passed before the change.", "tests": "head 03e1b9d357, under os-verify-lock: formula full suite 'Test Files 72 passed (72) / Tests 2209 passed (2209)'; formula typecheck VERDICT command-exit 0; lint src/validate-expressions.test.ts 'Tests 546 passed (546)' against a formula dist built from this branch; spec src/migrations 'Tests 212 passed (212)'; spec check:generated all 14 up to date. New describe in validate-date-text-arithmetic.test.ts: 28 tests (9 mixed forms incl. no-outcome and bareNamesUnproven arms, 1 arm test, 6 index forms incl. previous double-quote, 1 index date-arith/type-mismatch equality, 1 index control set of 5, 10 run-today controls = B's 10 false refusals; all controls validate {ok:true,errors:[],warnings:[]} and evaluate true; mixed run pins assert the fault text 'no such overload' on a dyn string minus a dyn string). Ablations via scripts/ablation-replace.mjs, restored to HEAD blob each time: one-pass leg removed -> 11 failed/260 passed (all 9 mixed + arm + mixed-index); index regex reverted -> 6 failed/265 passed; index naming reverted -> 3 failed/268 passed. Corpus: analysis recordings re-judged base 05da5bdb0a vs head: 9,157 unique calls (2,586 flattened+typed) over examples (crm, showcase, multi-package), formula and lint suites, 0 verdict changes; positive control 3/3 changed, negative 1/1 unchanged. Text scan of 29,402 tracked files: 109 quoted-key index reads outside the new test, none a flow-condition date arithmetic/call (control 14 hits in the new test); mixed bare/root arithmetic 0 CEL hits outside this PR (control 6). No authored hit in examples, docs or skills.", "gates": "local subset at 03e1b9d357: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 95 families; each run with exit captured before any pipe; --ran: '95 derived, 93 run, 2 NOT-MEASURED, 0 UNRUN' (exit 0). NOT-MEASURED: pnpm check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (needs full pnpm build); pnpm check:type-check-debt stopped at the foreground bound while its closure build waited on the shared lock (claimed, reason recorded). check:slot-lookup: first pass killed at the bound after its self-test passed, scan re-run alone exit 0 (203 s). cli migrate-meta-engine-guidance test and lint check:doc-formula-expressions first exit 1/3 for missing dist, exit 0 after building their closures. node scripts/check-adr-0087-registration.mjs --base origin/main exit 0. CI check-runs on PR #38949: not yet concluded at report time; CI-owned families (Lint & Repo Gates, TypeScript Type Check, Test Core incl. test:repo, Build Core, dogfood) are CI's.", "line_budget": "6 files, +302/-16 vs merge base 8338d07029 (numstat): validate.ts +26/-4, cel-engine.ts +15/-8, validate-date-text-arithmetic.test.ts +175/-2, validate.test.ts +4/-2, semantic entry +51, changeset +31; edits sit inside existing functions of validate.ts and cel-engine.ts (both already over 1,000 lines), no new concern added there", "files_changed": [ "packages/formula/src/validate.ts", "packages/formula/src/cel-engine.ts", "packages/formula/src/validate-date-text-arithmetic.test.ts", "packages/formula/src/validate.test.ts", "packages/spec/src/migrations/entries/semantic/19.flow-condition-mixed-or-index-spelling-date-text-refused.ts", ".changeset/35295-date-text-mixed-spelling.md" ], "deviations": [ "Clause-② line: the claim 7311362527 carries 'Clause-②: no'; the ruling 7311348060 and the dispatch carry 'no (narrowing)'; PR body and changeset use 'no (narrowing)'.", "The harness attribution reminder names a model in its Co-Authored-By trailer; commits use AGENTS.md's model-free pair instead (pre-push check:commit-card-trailers passed). The merge commit from os-regen-merge.sh carries no trailer pair.", "One gate batch (rungates 73-95) exceeded 600 s and the harness moved it to the background; stopped at once with TaskStop (no leftover process found), remaining gates re-run in the foreground.", "Index-spelling reach: widening the shared RECORD_ROOT_READ_RE (as ruled) also extends the root pass's date-arithmetic and type-mismatch verdicts to index reads; declared in changeset, semantic entry and PR, pinned equal to the member spelling.", "GitHub reads of the card and comments went through gh api (read-only)." ], "mcp_calls": "0", "api_writes": "2 relay strokes as objectstack-fleet[bot] through scripts/pm/fleet-write/dispatch.mjs: pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST issues/38949/assignees os-justin; read-back identical, 10902 bytes) and this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/35295/comments via post-stamped.mjs). git push is not a REST write.", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted in PR Acceptance notes, not filed: (status == 'open' ? now() : null) - record.picked_up_at > duration('1h') passes the flow-condition check and faults at run (dyn Timestamp minus date text after the nullable-ternary rewrite); operand genuinely dyn so C passes it by design; formula-package evidence only, no public-door reach measured; dedupe words: nullable ternary dyn timestamp date text subtraction, rewriteNullableTernary, run-may-fail miss" ], "l2": "narrowing: contract-tier review owed; dogfood battery owed on the final head (seat arms needs:dogfood-battery)", "cleanup": "worktree /home/user/objectstack-issue-35295 removed after the report (node_modules first, then git worktree remove without --force)" }objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
os-dev-report
{ "issue": 35295, "status": "done", "branch": "claude/issue-35295-date-text-mixed-spelling", "pr": "https://github.com/objectstack-ai/objectstack/pull/38949", "session": "session_01QSeKYnrQ7UMtHofKQVjcH2", "premise_still_valid": true, "patch_round": "1, on contract review 7315274427 (FAIL, M1 must-fix, S1 should-fix, N1-N3)", "head": "5b8b6af2f8 (commits since the reviewed head 03e1b9d357: merge of origin/main 397a9d94eb via os-regen-merge.sh, 19b1bd6c62 fix, 5b8b6af2f8 declarations)", "summary": "Seat's route taken: the index spelling takes the date-text verdicts only. RECORD_ROOT_READ_RE (gate of firstTypeMismatch's root pass) restored to the member spelling; a new RECORD_ROOT_DATE_TEXT_READ_RE (member or index) gates validate.ts's recordRootDateTextIssue alone; offendingRecordRead names index reads only when asked (indexReads, the date-text pass). The type-mismatch and date-arithmetic passes therefore see index reads exactly as on the merge base: M1 (refusal stood down to a warning) and S1 (ordering against a text field refused) are gone and pinned. The old 'index date-arith/type-mismatch equality' pin is replaced by a date-text-only reach pin (record['due_date'] + 1 > 5 is date-text-arithmetic-run-fails; previous['title'] > 5 gets no type-mismatch). N1 done (two older run pins assert the fault text; the index run pin asserts the fault text). N3 fixed in the PR body: of 6 pinned index rows 5 passed on the merge base, record['due_date'] - record.borrow_date was refused there already. Semantic entry and changeset now declare the index reach as the date-text verdicts only and state that no earlier verdict changes. Item (2) code unchanged. Standing member-spelling holes left untouched as ordered.", "m1_s1_head_vs_base": "base = formula src at 05da5bdb0a (equal to origin/main's), head = 5b8b6af2f8, validateExpression flattened, both arms. M1: \"due_date - borrow_date > duration('1h') && record['title'] > 5\" no-outcome base ok=false date-text-arithmetic-run-may-fail / head same; run-fails base date-text-arithmetic-run-fails / head same. \"record['active'] > 5 && isoDate(picked_up_at) == 'x'\" no-outcome base date-text-call-run-may-fail / head same; run-fails base date-text-call-run-fails / head same; no warnings either side. S1: record['due_date'] > record['title'], due_date > record['title'], record['due_date'] > title, record['title'] then due_date by index: base ok=true clean / head ok=true clean on both arms. previous['title'] > 5: clean on both sides. New refusals only: record['due_date'] + 1 > 5, timestamp(record['borrow_date']) before now(), due_date - record.borrow_date > duration('24h') (clean on base, refused on head).", "tests": "head 5b8b6af2f8 under os-verify-lock: formula full suite 'Test Files 72 passed (72) / Tests 2211 passed (2211)'; formula typecheck (tsc --noEmit + check:test-typecheck OK); lint src/validate-expressions.test.ts 'Tests 546 passed (546)' against a formula dist built from this head; spec src/migrations 'Tests 212 passed (212)'. New describe now 30 tests (28 - 1 replaced + 3: date-text-only reach, M1 both arms, S1 four spellings both arms). Ablations at 5b8b6af2f8 via scripts/ablation-replace.mjs over validate-date-text-arithmetic.test.ts + validate.test.ts (273 tests), each restored to the HEAD blob with git diff HEAD empty: shared RECORD_ROOT_READ_RE re-widened -> 3 failed/270 passed (reach, M1, S1 pins); date-text gate back to member-only -> 6 failed/267; one-pass leg removed -> 11 failed/262; index naming off -> 3 failed/270. Corpus re-judge base vs head: 9,157 unique recorded calls (2,586 flattened+typed), 0 verdict changes; controls: mixed form and index call change, index text mismatch and ordering control do not.", "gates": "re-run at 5b8b6af2f8 for the files this patch touched: node scripts/check-adr-0087-registration.mjs --base origin/main, spec check:spec-changes, spec check:upgrade-guide, pnpm check:doc-authoring, pnpm check:nul-bytes, pnpm check:issue-citations, check-empty-changeset --base origin/main, check-changeset-no-major --base origin/main: exit 0 each (captured before any pipe). The full derived union (95 families: 93 run exit 0, 2 NOT-MEASURED check:dual-build-cjs-loads exit 3 and check:type-check-debt killed at bound) was taken at 03e1b9d357 and not re-run for this patch (same six files; CI owns the farm). CI check-runs on 5b8b6af2f8: not read, CI's.", "line_budget": "6 files, +353/-17 vs main 645e6b1508 (numstat): validate.ts +30/-6, cel-engine.ts +24/-5, validate-date-text-arithmetic.test.ts +207/-3, validate.test.ts +5/-3, semantic entry +56, changeset +31; edits inside existing functions of validate.ts and cel-engine.ts", "files_changed": [ "packages/formula/src/cel-engine.ts", "packages/formula/src/validate.ts", "packages/formula/src/validate-date-text-arithmetic.test.ts", "packages/formula/src/validate.test.ts", "packages/spec/src/migrations/entries/semantic/19.flow-condition-mixed-or-index-spelling-date-text-refused.ts", ".changeset/35295-date-text-mixed-spelling.md" ], "pr_body": "updated body for the seat to PATCH: /tmp/claude-0/-home-user-objectstack/96353139-b75c-518e-b0e8-54f835f491d0/scratchpad/issue-35295/pr/body2.md (13,102 bytes before the last one-line edit; no tag-shaped fragment besides the details/summary blocks; footer kept)", "deviations": [ "The local branch left by the first round was deleted (its tip equalled origin's 03e1b9d357) so dev-worktree.sh --resume-from could rebuild the tree; origin/main merged through os-regen-merge.sh, base pinned at 397a9d94eb.", "A fresh tree needed the lint closure built before the lint test (first attempt failed on an unbuilt @objectstack/sdui-parser, not a test result).", "The PR body was not PATCHed by this dev (seat's per order); the updated text is the file named in pr_body." ], "mcp_calls": "0", "api_writes": "1 relay stroke this round: the os-dev-report comment on #35295 via scripts/pm/post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/35295/comments). Round total 3 (pr_create, two report comments). git push is not a REST write.", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: seat · per L2 7315274427 and the patch order, the seat files or dedupes the standing member-spelling holes (warning-hides-error precedence, date-against-text ordering verdict, the .exists false refusal, the nullable-ternary miss); not touched here" ], "l2": "narrowing: a fresh contract-tier review is owed on 5b8b6af2f8; dogfood battery owed on the final head (seat arms it)", "cleanup": "worktree /home/user/objectstack-issue-35295 removed after this report (node_modules first, then git worktree remove without --force)" }objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Landed 2026-12-01T16:57Z: PR #38949 merged (merge commit
be2df7538d; approved and enqueued by the maintainer after the seat's queue kick 7317129943); this card closed by itsFixes. Delivered, per the maintainer's ruling C (7311348060): a flow condition's date arithmetic that mixes a bare field and arecord./previous.root, and therecord['FIELD']index spelling, now take the date-text verdicts, code and prescription the consistent spellings take; a genuinely unproven operand still passes; the index spelling takes the date-text verdicts only. Contract review FAIL 7315274427 → delta PASS 7316294401; dogfood battery green. Standing holes on main found on the way are carried by #38959 (five items).pm:dispatchedremoved in this stroke.fix(formula)!: a flow condition's mixed bare / record. date arithmeti…