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
fix(formula): a bare date ordering before a record. date arithmetic still slips past the flow-condition refusal (follow-up of #36333) #36377
Follow-up of PR #36333 (#34946), carried from contract review 7076631700 S1 (should-fix, non-blocking) and its nits N1–N3. Filed under the maintainer's 2026-11-22 07:49Z rule that should-fix items go to their own card.
S1 (by code read, not yet run; measure first). A flow condition that orders a bare date field against a text literal AND-ed before a root read's date arithmetic, e.g. due_date > "2026-01-01" && record.due_date + 1 > 5, is accepted, though it faults on every run. In packages/formula/src/cel-engine.ts the bare pass meets the Timestamp-vs-string ordering first and confirmAgainstDateText stands it down; the record-root pass types bare names and roots together (buildTypedEnv(bareTypes, 'flattened', …)), meets the same ordering first, sees it is not isDateArith and answers null; recordRootDateTextIssue then asks recordRootReadsFaultDateArith, which types the roots alone, meets record.due_date + 1 first and stands down as "answered by firstTypeMismatch". All-root and all-bare spellings are refused; only the mixed one falls through. Not a regression (main accepts it too).
Fix direction from the review: when the root pass's first fault is not date arithmetic, also ask the roots-only typing, or have the stand-down ask firstTypeMismatch's actual answer.
Nits (same card, optional):
N1: offendingRecordRead names the first Timestamp field read through a root in field-map order, which can be a read other than the one in the arithmetic.
N2: a bare-and-root pair under unproven names reports the bare verdict at run-may-fail.
Done when: S1 measured; if confirmed, the mixed spelling is refused at os validate and the publish door like the other two, pinned with an ablation; nits pinned or split off. Narrowing (newly refused) ⇒ declare it as #36333 did.
Triage: lands in domain:server (packages/formula flow-condition check) · pm:queue; rationale: area:build (writing metadata; it had no area) · Bug · a bare date ordered against a text literal AND-ed before a record. date arithmetic (due_date > "2026-01-01" && record.due_date + 1 > 5) is accepted though it faults on every run. By code read; measure first. Follow-up of #34946 → p2 as filed · size S.
Triage: lands in domain:server (packages/formula flow-condition check) · pm:queue; rationale: area:build (writing metadata; it had no area) · Bug · a bare date ordered against a text literal AND-ed before a record. date arithmetic (due_date > "2026-01-01" && record.due_date + 1 > 5) is accepted though it faults on every run. By code read; measure first. Follow-up of #34946 → p2 as filed · size S.
Claim: PM loop round 1
Session: session_01L9qibyUSf2nKJWW6qBemSU
Thread session: session_01L9qibz2oLCRAYBpwsBBUyG
Account: os-tesla
Branch: claude/project-thread-lzodgq
Worktree: objectstack-issue-36377
Domain: domain:server
Seat: repo:objectstack#3
File surface: packages/formula/src/** (cel-engine.ts, validate.ts) + pins, changeset (stop on breach; explain in the report)
Container & model: S, mode:thread, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate", effort: high, reason: narrowing a published refusal (formula type check) — judgement, not mechanical
Clause-②: no
Metadata-protocol: narrowed
Responsibility: platform code in objectstack (packages/formula) produces the risk | none — #36333 refuses date arithmetic only when it is the first fault | a metadata author or AI writing a flow condition that mixes a bare date ordering with record date arithmetic; refused at run time today, by nobody at validate/publish
Thread-read: 7076809862
Premise: holds (read in code; the thread runs the repro first)
Serial constraints cleared: overlap-check.mjs runs on the thread's first push (branch not yet pushed); no in-flight claim on these files named by any seat
Area: o3-build (dispatched by the seat as a card thread).
Reported 2026-11-27T06:32Z, PR #37840, head 8ca7780.
{
"issue": 36377,
"status": "done",
"branch": "claude/project-thread-lzodgq",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37840",
"session": "session_01L9qibz2oLCRAYBpwsBBUyG",
"premise_still_valid": true,
"summary": "S1 measured on origin/main c826e8a15 before any edit: `due_date > \"2026-01-01\" && record.due_date + 1 > 5` (and the previous. / datetime variants) got 0 findings while the all-bare and all-root spellings got date-text-arithmetic-run-fails; the evaluator faults on all of them. Fix: recordRootDateTextIssue (validate.ts) is reached only where firstTypeMismatch answered null, so its stand-down on the roots-only typing's date-arith fault could only drop an unrefused fault; removed it and its now-unused internal predicate recordRootReadsFaultDateArith (cel-engine.ts). The mixed spelling now takes the all-root spelling's verdict byte for byte (card's second fix direction, chosen over the dispatch's optional route so the code family matches the other two spellings). Pins in formula, lint (os validate) and the runtime publish door; N3 pinned; N1/N2 noted in Acceptance notes; ADR-0087 semantic entry + minor changeset (formula, spec) as #36333.",
"tests": "formula vitest exit 0, 72 files / 2155 tests; lint validate-expressions.test.ts exit 0, 538 tests; runtime meta-flow-condition-record-date-text.test.ts VERDICT command-exit 0, 6/6; spec src/migrations 202/202 + service-automation flow-registration-schema-e2e 7/7 VERDICT 0; formula+lint typecheck VERDICT 0; runtime tsc clean, check:test-typecheck names 3 untouched files (not this diff). Ablation: re-inserted the stand-down via ablation-replace.mjs (marker ABLATION-36377, blob 9fb19fcb8bd1 -> 28d00dc285eb): validate.test.ts 2 failed / 149 passed; restored to HEAD blob, git diff HEAD empty.",
"gates": "dispatch-gates --commands: 95 derived at HEAD 8ca7780c; all run; --ran: '95 derived, 95 run, 0 NOT-MEASURED (a DERIVED zero — all 95 recorded an exit code and none of them is 3)'. Three first exited 3 and were rerun to 0: check-plugin-teardown-shape --self-test (shallow clone, fixture sha fetched), check:type-check-debt (lock queue behind dogfood; rerun under the lock), check:dual-build-cjs-loads (needed the full build). CI check-runs: in_progress at report time, not re-run locally.",
"dogfood_battery": "8ca7780c · os-verify-lock: VERDICT command-exit 0 · Test Files 490 passed | 3 skipped (493) · Tests 4144 passed | 68 skipped (4212) · no failure",
"mcp_calls": "4 — mcp__github__issue_read x2 (card get, get_comments), mcp__github__pull_request_read x2 (#36333 get_files, get); no write tool",
"api_writes": "2 relay strokes via scripts/pm/fleet-write/dispatch.mjs — pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /repos/objectstack-ai/objectstack/issues/37840/assignees os-tesla), and this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/36377/comments via post-stamped.mjs). git push is not a REST write.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — N1 (offendingRecordRead names the first timestamp root read in field-map order) and N2 (bare verdict at run-may-fail beside a root-read fault under unproven names) are best-effort naming / arm choices on an already-refused expression, recorded in PR Acceptance notes",
"carrier: none · noted, not filed — runtime check:test-typecheck reports 1 error each in three test files this diff does not touch (boolean-written-spelling-row-scope, meta-object-publish-column-changes, organization-ownership-boot-guard.turso-remote.kernel), measured on this worktree's build; CI TypeScript Type Check is the verdict"
]
}
Claim: PM loop round 1 (amendment: Clause-② spelled with its narrowing arm)
Session: session_01L9qibyUSf2nKJWW6qBemSU
Thread session: session_01L9qibz2oLCRAYBpwsBBUyG
Account: os-tesla
Branch: claude/project-thread-lzodgq
Worktree: objectstack-issue-36377
Domain: domain:server
Seat: repo:objectstack#3
File surface: packages/formula/src/** (cel-engine.ts, validate.ts) + pins, changeset (stop on breach; explain in the report)
Container & model: S, mode:thread, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate", effort: high, reason: narrowing a published refusal (formula type check) — judgement, not mechanical
Clause-②: no (narrowing)
Metadata-protocol: narrowed
Responsibility: platform code in objectstack (packages/formula) produces the risk | none — #36333 refuses date arithmetic only when it is the first fault | a metadata author or AI writing a flow condition that mixes a bare date ordering with record date arithmetic; refused at run time today, by nobody at validate/publish
Thread-read: 7211625108
Premise: holds (read in code; the thread runs the repro first)
Serial constraints cleared: overlap-check.mjs runs on the thread's first push (branch not yet pushed); no in-flight claim on these files named by any seat
Area: o3-build (dispatched by the seat as a card thread).
Activity
objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server(packages/formulaflow-condition check) ·pm:queue; rationale: area:build (writing metadata; it had no area) · Bug · a bare date ordered against a text literal AND-ed before arecord.date arithmetic (due_date > "2026-01-01" && record.due_date + 1 > 5) is accepted though it faults on every run. By code read; measure first. Follow-up of #34946 → p2 as filed · size S.objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server(packages/formulaflow-condition check) ·pm:queue; rationale: area:build (writing metadata; it had no area) · Bug · a bare date ordered against a text literal AND-ed before arecord.date arithmetic (due_date > "2026-01-01" && record.due_date + 1 > 5) is accepted though it faults on every run. By code read; measure first. Follow-up of #34946 → p2 as filed · size S.fix(formula)!: a flow condition's record. / previous. date arithmetic…
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Claim: PM loop round 1
Session:
session_01L9qibyUSf2nKJWW6qBemSUThread session:
session_01L9qibz2oLCRAYBpwsBBUyGAccount:
os-teslaBranch:
claude/project-thread-lzodgqWorktree:
objectstack-issue-36377Domain:
domain:serverSeat:
repo:objectstack#3File surface:
packages/formula/src/**(cel-engine.ts, validate.ts) + pins, changeset (stop on breach; explain in the report)Container & model:
S,mode:thread,model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate",effort: high, reason: narrowing a published refusal (formula type check) — judgement, not mechanicalClause-②: no
Metadata-protocol: narrowed
Responsibility:
platform code in objectstack (packages/formula) produces the risk | none — #36333 refuses date arithmetic only when it is the first fault | a metadata author or AI writing a flow condition that mixes a bare date ordering with record date arithmetic; refused at run time today, by nobody at validate/publishThread-read: 7076809862
Premise: holds (read in code; the thread runs the repro first)
Serial constraints cleared:
overlap-check.mjs runs on the thread's first push (branch not yet pushed); no in-flight claim on these files named by any seatobjectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibz2oLCRAYBpwsBBUyG
os-dev-report
Reported 2026-11-27T06:32Z, PR #37840, head 8ca7780.
{ "issue": 36377, "status": "done", "branch": "claude/project-thread-lzodgq", "pr": "https://github.com/objectstack-ai/objectstack/pull/37840", "session": "session_01L9qibz2oLCRAYBpwsBBUyG", "premise_still_valid": true, "summary": "S1 measured on origin/main c826e8a15 before any edit: `due_date > \"2026-01-01\" && record.due_date + 1 > 5` (and the previous. / datetime variants) got 0 findings while the all-bare and all-root spellings got date-text-arithmetic-run-fails; the evaluator faults on all of them. Fix: recordRootDateTextIssue (validate.ts) is reached only where firstTypeMismatch answered null, so its stand-down on the roots-only typing's date-arith fault could only drop an unrefused fault; removed it and its now-unused internal predicate recordRootReadsFaultDateArith (cel-engine.ts). The mixed spelling now takes the all-root spelling's verdict byte for byte (card's second fix direction, chosen over the dispatch's optional route so the code family matches the other two spellings). Pins in formula, lint (os validate) and the runtime publish door; N3 pinned; N1/N2 noted in Acceptance notes; ADR-0087 semantic entry + minor changeset (formula, spec) as #36333.", "tests": "formula vitest exit 0, 72 files / 2155 tests; lint validate-expressions.test.ts exit 0, 538 tests; runtime meta-flow-condition-record-date-text.test.ts VERDICT command-exit 0, 6/6; spec src/migrations 202/202 + service-automation flow-registration-schema-e2e 7/7 VERDICT 0; formula+lint typecheck VERDICT 0; runtime tsc clean, check:test-typecheck names 3 untouched files (not this diff). Ablation: re-inserted the stand-down via ablation-replace.mjs (marker ABLATION-36377, blob 9fb19fcb8bd1 -> 28d00dc285eb): validate.test.ts 2 failed / 149 passed; restored to HEAD blob, git diff HEAD empty.", "gates": "dispatch-gates --commands: 95 derived at HEAD 8ca7780c; all run; --ran: '95 derived, 95 run, 0 NOT-MEASURED (a DERIVED zero — all 95 recorded an exit code and none of them is 3)'. Three first exited 3 and were rerun to 0: check-plugin-teardown-shape --self-test (shallow clone, fixture sha fetched), check:type-check-debt (lock queue behind dogfood; rerun under the lock), check:dual-build-cjs-loads (needed the full build). CI check-runs: in_progress at report time, not re-run locally.", "dogfood_battery": "8ca7780c · os-verify-lock: VERDICT command-exit 0 · Test Files 490 passed | 3 skipped (493) · Tests 4144 passed | 68 skipped (4212) · no failure", "mcp_calls": "4 — mcp__github__issue_read x2 (card get, get_comments), mcp__github__pull_request_read x2 (#36333 get_files, get); no write tool", "api_writes": "2 relay strokes via scripts/pm/fleet-write/dispatch.mjs — pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /repos/objectstack-ai/objectstack/issues/37840/assignees os-tesla), and this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/36377/comments via post-stamped.mjs). git push is not a REST write.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — N1 (offendingRecordRead names the first timestamp root read in field-map order) and N2 (bare verdict at run-may-fail beside a root-read fault under unproven names) are best-effort naming / arm choices on an already-refused expression, recorded in PR Acceptance notes", "carrier: none · noted, not filed — runtime check:test-typecheck reports 1 error each in three test files this diff does not touch (boolean-written-spelling-row-scope, meta-object-publish-column-changes, organization-ownership-boot-guard.turso-remote.kernel), measured on this worktree's build; CI TypeScript Type Check is the verdict" ] }objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Claim: PM loop round 1 (amendment: Clause-② spelled with its narrowing arm)
Session:
session_01L9qibyUSf2nKJWW6qBemSUThread session:
session_01L9qibz2oLCRAYBpwsBBUyGAccount:
os-teslaBranch:
claude/project-thread-lzodgqWorktree:
objectstack-issue-36377Domain:
domain:serverSeat:
repo:objectstack#3File surface:
packages/formula/src/**(cel-engine.ts, validate.ts) + pins, changeset (stop on breach; explain in the report)Container & model:
S,mode:thread,model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate",effort: high, reason: narrowing a published refusal (formula type check) — judgement, not mechanicalClause-②: no (narrowing)
Metadata-protocol: narrowed
Responsibility:
platform code in objectstack (packages/formula) produces the risk | none — #36333 refuses date arithmetic only when it is the first fault | a metadata author or AI writing a flow condition that mixes a bare date ordering with record date arithmetic; refused at run time today, by nobody at validate/publishThread-read: 7211625108
Premise: holds (read in code; the thread runs the repro first)
Serial constraints cleared:
overlap-check.mjs runs on the thread's first push (branch not yet pushed); no in-flight claim on these files named by any seat