Skip to content

a flow condition passes timestamp(record.<date field>) while the same call over the bare name is refused: record.FIELD reads are not typed for the date-text verdicts there #34662

Closed

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmQAXHSQEgnYyx9tstb

Filing gate: ① measured. Out-of-scope finding of the #34451 dev round (PR #34654), reproduced by the area. ⛔ Not a claim.

Suggested-grade: p2 — the same family and outcome as #34363 / #34451: the flow fails on every run and nothing is said at authoring time.

What

In a flow condition (the flattened scope: start, edge and decision conditions), the date-text check types a bare field name but not a record.<field> read. A record-triggered flow whose start condition is timestamp(record.borrow_date) < now() (borrow_date a date field) gets zero findings from validateStackExpressions and fails every run, because the runtime holds a date field as its YYYY-MM-DD text, which timestamp() does not parse. The same comparison over the bare name is refused.

Measured

Probe over validateStackExpressions from the @objectstack/lint dist built on PR #34654's head 20c39a477f (that PR does not touch flow conditions), object library_loan with borrow_date: date, picked_up_at: datetime, start node objectName: library_loan, triggerType: record-after-update:

start condition findings
timestamp(record.borrow_date) < now() 0
timestamp(borrow_date) < now() 1 error (date-text-call, names borrow_date as a date field)
timestamp(record.picked_up_at) < now() (CONTROL) 0

Where

packages/formula/src/validate.ts: the date-text check (dateTextIssue / dateTextCallIssue) at the flattened scope types bare names; the record. / previous. roots there are not handed the field types for this family.

Done when

timestamp(record.<date field>) in a flow condition is refused like its bare-name spelling, at os validate and at the flow publish door; CONTROL: a datetime field stays clean.

Related: #34363, #34447, #34451 (same verdict family).

Dedupe words: flow condition record root date-text, timestamp record date field flattened, firstDateTextCall recordRootTypes.

Activity

  1. added
    bug
    finding
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → p2 · domain:server · pm:queue · 2026-11-17T05:12Z

    ⛔ Not a claim.

  3. added
    domain:server
    pm:queue
    priority:p2
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

    Claim: PM loop round 1
    Session: session_012MmDsS4GoHCgYwA2uv3n3C
    Account: os-lizheng
    Branch: claude/issue-34662-flow-record-date-text
    Worktree: objectstack-issue-34662
    Domain: domain:server
    Seat: repo:objectstack#4
    File surface: packages/formula/src/validate.ts and the date-text helpers it imports, their tests (a new test file named after the card), .changeset/34662-*.md (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: packages/formula validate (objectstack): at the flattened flow-condition scope the date-text check types bare names but not record./previous. reads | the bare-name spelling is already refused; the record. root is not handed the field types for this family | any author (an MCP agent included) writing timestamp(record.DATE_FIELD) in a flow condition: zero findings, then a failure on every run
    Thread-read: 6939208375
    Premise: re-measure owed — PR #34654 (1538596) merged today into the same date-text code. The dev reruns the card's three-row table on origin/main (fc5913e) first; premise_still_valid: false is a legal answer.
    Serial constraints cleared: PR #34654 merged (triage named it). No open pm:dispatched claim names packages/formula at 2026-11-17T15:20Z.
    Pre-claim lane: packages/formula/** → domain:server, repo:objectstack lane.
    Pre-claim deps: none open.
    Prior rulings read: card family #34363, #34447, #34451 (same verdict family); thread: none.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C
    os-dev-report

    {
      "issue": 34662,
      "status": "done",
      "branch": "claude/issue-34662-flow-record-date-text",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34935",
      "session": "session_012MmDsS4GoHCgYwA2uv3n3C",
      "premise_still_valid": true,
      "summary": "Premise re-measured on origin/main fc5913e117 through the built @objectstack/lint dist with the card's fixture. `timestamp(record.borrow_date) LT now()` gave 0 findings, the bare name gave 1 error and the datetime CONTROL gave 0. `previous.borrow_date` also gave 0, and edge conditions matched. Fixed in packages/formula only. `typeSoundnessIssue` now runs a record-root pass of the date-text family at flattened scope (`recordRootDateTextIssue`): `record.`/`previous.` are typed with every field's type, bare names are `dyn`, and only `date-text-call*`/`date-text-arithmetic*` are kept. The outcome arm is the row's, so a root read keeps run-fails when bare names are unproven, as type-mismatch already does. The pass stands down where the Timestamp typing of the roots already faults (`record.due_date + 1`), the order the value envelope uses. `firstDateTextVerdict`/`firstDateTextCall` (cel-engine.ts) take an optional recordRootTypes; they are not public exports. Same rule ids, codes and message shape as the bare name and #34363/#34451; no new verdict. os validate, the publish gate and registerFlow pick the fix up through the shared validator. This diff DOES touch packages/formula/src/cel-engine.ts. The #34756 branch (claude/issue-34756-field-reorder-dogfood-timeout @ 6329e84a08) edits the same file, and `git merge-tree` of the two heads is clean. This is a narrowing (a condition that published is now refused), but the claim lines `Clause-②: no` / `Metadata-protocol: none` were copied verbatim as instructed. The seat rules on it; see open_questions.",
      "tests": "Final head 653f1fb45e (after merging origin/main), under the lock, VERDICT command-exit 0: formula `pnpm test` 68 files / 1878 tests passed; lint validate-expressions.test.ts 505/505; service-automation flow-registration-schema-e2e.test.ts 5/5; runtime meta-flow-condition-record-date-text.test.ts 2/2. Typecheck formula/lint/service-automation/runtime: VERDICT command-exit 0, check:test-typecheck OK x4. New pins: formula harness describe (#34662) has 6 cases with code+params (`date-text-call-run-fails`, reference record./previous.borrow_date, rewrite date(...), shift isoDate(addDays(...,N))), evaluator faults, CONTROL datetime and date() clean, arm pins, shadowing pin, isoDate/arithmetic root reads, stand-down controls. Lint describe: start/edge/decision x record/previous refused at the bare path and severity, rule id expression-invalid via runAuthoringRules, CONTROL datetime clean. Publish door (new file, packages/runtime): saveMetaItem+publishMetaItem gives {code:INVALID_METADATA,status:422}, one expression-invalid date-text issue, state draft, for bare/record./previous.; CONTROL datetime publishes as active. registerFlow: advisory logged for record./previous. as for the bare name and the flow registers; CONTROL not advised. Ablation at 94a67af809 (fix committed first): ablation-replace --hold on validate.ts, landing x0 to x1 with blob changed, formula rebuilt, ablation-dist-preflight marker present in dist/index.js and index.mjs. Results: formula 4 failed/83 passed, lint 4 failed/1 passed, service-automation 1 failed/4 passed, runtime 1 failed/1 passed; every refusal pin red, every CONTROL green. Restore: blob equals HEAD, git diff HEAD empty, rebuild, --absent preflight clean, git status --porcelain empty.",
      "gates": "Local: dispatch-gates --commands at 653f1fb45e derived 72 families. All 72 were run with exit codes captured before any pipe: 72 exit 0. `dispatch-gates --ran` reports 72 derived, 72 run, 0 NOT-MEASURED, 0 UNRUN. The pre-merge sweep at 94a67af809 had check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET; it ran exit 0 at the merged head after the wider build. overlap-check: VERDICT clean exit 0 against origin/main b8408d8226, 0 open PR heads sharing files. CI on PR head 653f1fb45e: 57 success, 11 skipped, 0 other; Lint & Repo Gates=success, TypeScript Type Check=success, Test Core and shards 1-10=success, Build Core=success, Governed Surface Queue Guard=success, Check Changeset=success. Dogfood Regression Gate is skipped on the PR event (merge-queue only).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm on the claim's Clause-② line (see open_questions: the narrowing classification is the seat's to rule)",
      "mcp_calls": "0",
      "api_writes": "3 — git push (branch, several pushes, not REST); relay pr_create (POST /repos/objectstack-ai/objectstack/dispatches gave run 44129475747, which did POST /pulls #34935 plus POST /issues/34935/assignees os-lizheng); post-stamped os-dev-report comment on #34662",
      "open_questions": [
        {
          "question": "The claim's declaration lines are `Clause-②: no` / `Metadata-protocol: none`, but this change refuses, at os validate and at the publish door, a flow condition that published before. AGENTS.md reads a value refused as `narrowed`, and #34447/#34654 in the same family declared `yes (narrowing)` / `narrowed`. Which lines stand?",
          "options": [
            "A: re-declare `Clause-②: yes (narrowing)` + `Metadata-protocol: narrowed`. The changeset goes to minor with a BREAKING banner, a FROM-to-TO line and the ADR-0087 `already-registered` disposition naming the three semantic entries, whose `surface` may need flow-condition root reads. This adds the dogfood battery and an L2 contract review. About 0.5 dev day.",
            "B: keep `no`/`none` as copied: patch changeset, no banner. The narrowing is then undeclared in CHANGELOG."
          ],
          "recommendation": "A, because it is the same refusal family #34654 declared narrowed, and an undeclared narrowing breaks a stored flow at its next publish with no migration line."
        },
        {
          "question": "The dispatch named registerFlow as the flow publish door. For conditions, registerFlow only logs schema-aware findings as an advisory, by contract #1928, and it does not refuse the bare name either. The refusing door is publishMetaItem (INVALID_METADATA/422). Pinned there, with registerFlow pinned for advisory parity. Acceptable?",
          "options": [
            "A: accept as landed",
            "B: make registerFlow throw for condition date-text verdicts (would reverse the #1928 additive-registration contract; needs its own decision)"
          ],
          "recommendation": "A"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: validateStackExpressions (os validate) on this branch 653f1fb45e — record-triggered flow, `library_loan.due_date: { type: date, required: true }`, start condition `due_date + 1 > 5` gives 1 error (date-arithmetic `google.protobuf.Timestamp + int`), but `record.due_date + 1 > 5` and `previous.due_date + 1 > 5` give 0 findings, while the run faults on `\"YYYY-MM-DD\" + 1` · evidence: firstTypeMismatch's record-root pass returns only the text/boolean mismatch (cel-engine.ts, comment 'The date verdicts stay the bare name's alone'), and this PR's date-text pass deliberately stands down on that shape · Seam: spec: formula date-arithmetic verdict to runtime: service-automation evaluateCondition · dedupe words: flow condition record root date-arithmetic, record.FIELD plus int flow condition, firstTypeMismatch root pass date-arith",
        "carrier: none · noted in PR Acceptance notes, not filed: the `record` root is typed even when a flow declares a variable named `record` (the existing type-mismatch root pass does the same)"
      ],
      "deviations": "(1) Test placement: the dispatch asked for a new test file named after the card. AGENTS.md (ruling record 6583487846) requires a new pin for a component with a shared harness to go into that file as a top-level describe. Formula, lint and registerFlow pins went into their existing harnesses; only the publish-door pin is a new file. (2) Test files outside the claim's file surface (packages/lint, packages/runtime, packages/services/service-automation) were added because the dispatch's Tests section asked for pins at validateStackExpressions and the publish door. No source outside packages/formula changed. (3) The PR body's 维护者速读 notes the narrowing question instead of a neutral risk line. (4) The first gate sweep was interrupted by the usage-limit stop after 67 of 72; the remaining 5 were run in the foreground at the same head.",
      "files_changed": [
        ".changeset/34662-flow-record-date-text.md",
        "packages/formula/src/cel-engine.ts",
        "packages/formula/src/validate.ts",
        "packages/formula/src/validate-date-text-arithmetic.test.ts",
        "packages/lint/src/validate-expressions.test.ts",
        "packages/runtime/src/domains/meta-flow-condition-record-date-text.test.ts",
        "packages/services/service-automation/src/flow-registration-schema-e2e.test.ts"
      ]
    }
  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

    Claim: PM loop round 1 (revision of 6952310532, same session and branch; L1 REWORK round 1 on PR #34935)
    Session: session_012MmDsS4GoHCgYwA2uv3n3C
    Account: os-lizheng
    Branch: claude/issue-34662-flow-record-date-text
    Worktree: objectstack-issue-34662
    Domain: domain:server
    Seat: repo:objectstack#4
    File surface: packages/formula/src/** (validate.ts, cel-engine.ts, the formula harness), test pins in packages/lint/src/validate-expressions.test.ts, packages/services/service-automation/src/flow-registration-schema-e2e.test.ts, the new packages/runtime/src/domains/meta-flow-condition-record-date-text.test.ts, ADR-0087 registration files the narrowing owes, .changeset/34662-*.md (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: default tier build; review owed at CONTRACT_REVIEW_TIER (a narrowing), effort: high
    Clause-②: no (narrowing)
    Metadata-protocol: narrowed
    Responsibility: packages/formula validate (objectstack): at the flattened flow-condition scope the date-text check did not type record./previous. reads | the bare-name spelling was refused; the roots were not | any author writing timestamp(record.DATE_FIELD) in a flow condition: zero findings, then a failure on every run
    Thread-read: 6955879892
    Premise: holds — re-measured by the dev on fc5913e (report 6955879892): record. and previous. 0 findings, bare name 1 error, datetime CONTROL 0.
    Serial constraints cleared: PR #34654 merged. cel-engine.ts is also edited on the #34756 branch (6329e84, no PR); git merge-tree of the two heads is clean per the dev.

    Why revised: the PR refuses, at os validate and at the publish door, a flow condition that published before. That is a value refused (AGENTS.md: narrowed). The same family's PR #34654 declared it so and took !. It widened nothing published here (the new recordRootTypes parameter is on non-exported functions), so the arm is no (narrowing), not yes. Door question: accepted as landed. publishMetaItem is the refusing door (422 INVALID_METADATA), and registerFlow stays advisory per contract #1928.

  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C
    os-dev-report

    {
      "issue": 34662,
      "status": "done",
      "branch": "claude/issue-34662-flow-record-date-text",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34935",
      "session": "session_012MmDsS4GoHCgYwA2uv3n3C",
      "premise_still_valid": true,
      "summary": "L1 REWORK round 1 (delta to report 6955879892). Applied the seat's ruling. The changeset is now `minor` for @objectstack/formula, with line-leading `Clause-②: no (narrowing)`, `Metadata-protocol: narrowed` and `Skills-docs: none`. The skill already states the date-text-call rule with record.FIELD spellings and no site limit. The changeset also carries a `fix(formula)!:` heading, the BREAKING banner, a FROM-to-TO table and the ADR-0087 disposition `not-required (already-registered formula-timestamp-date-only-refused, formula-date-text-call-refused, formula-date-subtraction-refused)`. The three entries' `surface` text was NOT edited: each already names flow conditions among the predicates judged with field types, spelled with record.FIELD, and this change makes that text true for a root read. So no entries path moved, nothing was regenerated, and the cli migrate-meta-engine-guidance test is not derived (dispatch-gates derived the same 72 families as before). Source is unchanged since 653f1fb45e; the new head 60d4e1c6c7 adds only the changeset commit. NOT DONE BY ME, staged for the seat: the PR title `!` and the PR body update. The relay op for both is `issue_patch`. os-dev.md says a subagent writes the PR body only in pr_create and the seat writes it on the dev's behalf (⛔ 不 PATCH 由席代写). The relay also refuses an unsigned `issue_patch` body, and the signature trailer it wants is an HTML comment, which a dev may not write. Staged files are listed in deviations. Until the body is updated, `Check Changeset` stays red, because the body says `none` and the changeset says `narrowed`/minor. A contract-review-tier L2 review is owed before the queue; the seat routes it.",
      "tests": "No source change since the round-0 report. Merged-head 653f1fb45e package tests and typechecks are as reported in 6955879892 (formula 68/1878, lint validate-expressions 505/505, service-automation e2e 5/5, runtime publish-door 2/2, four typechecks green). Changeset gates at 60d4e1c6c7, exit codes captured: check-adr-0087-registration --base origin/main exit 0 ([BREAKING+bang+clause-②-narrowing+metadata-protocol-narrowed] not-required (already-registered)); check-changeset-no-major exit 0; check-empty-changeset exit 0; check:changeset-gate-self-tests exit 0; check:nul-bytes exit 0.",
      "gates": "dispatch-gates --commands at 60d4e1c6c7: the same 72 families as at 653f1fb45e. Exit codes recorded: 70 exit 0 and 2 exit 3, NOT MEASURED; `--ran` reports 72 derived, 70 run, 2 NOT-MEASURED, 0 UNRUN. The first: pnpm check:dual-build-cjs-loads, PREREQUISITE NOT MET (no dist for studio, client-react, embedder-openai, knowledge-memory, knowledge-ragflow, qa/scenarios); the build that would provide it timed out in the lock queue (exit 99). The second: pnpm check:type-check-debt, whose --re-measure build timed out in the lock queue behind issue-34682's type-check-debt run (holder pid 14015, about 29 min). Both exited 0 at 653f1fb45e, and the delta since is one .changeset file. Four families first read a dist mid-rebuild during the dogfood build; rerun after it, check:docs-transcript-drift, check:dts-closure and check:lean-entry-closure exit 0. overlap-check before the push: VERDICT clean exit 0 vs origin/main b8408d8226, 0 open PR heads. CI on 60d4e1c6c7: Lint & Repo Gates=success (runs both NOT-MEASURED families), TypeScript Type Check=success, Test Core=success, Build Core=success, Governed Surface Queue Guard=success, Dogfood Regression Gate=success. Red: Check Changeset=failure (the PR body still declares `none`; clears when the seat writes the staged body). Type Check UI=failure: CI infra, step 'Fetch this commit's history and the base branch' timed out after 20 minutes. Test UI=failure, with shard 7/16 cancelled by its timeout; this diff touches nothing under ui/. Both UI reds need a re-run, not a fix.",
      "dogfood_battery": "60d4e1c6c7 · os-verify-lock: VERDICT command-exit 0 · held the lock 2669s · waited 122s · Test Files 479 passed | 3 skipped (482) · Tests 4072 passed | 68 skipped (4140) · no failures",
      "mcp_calls": "0",
      "api_writes": "2 this round — git push (60d4e1c6c7, not REST); post-stamped delta os-dev-report on #34662. PR title/body issue_patch NOT sent (staged for the seat, see deviations).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: os validate — `record.due_date + 1 > 5` / `previous.due_date + 1 > 5` pass while the bare name is refused (date-arithmetic family). The seat files it, per its round-1 message; not repeated here."
      ],
      "deviations": "(1) Dispatch conflict, flagged rather than resolved silently. The seat's round-1 order said to update the PR body (and the title `!`) through the relay. os-dev.md has the subagent write the PR body only at pr_create, with the seat writing it on the dev's behalf, and the relay's `issue_patch` refuses an unsigned body. Staged for the seat: the body at /tmp/claude-0/-home-user-objectstack/1dc6261f-3a50-5e45-b114-a4160c4071ba/scratchpad/issue-34662/pr-body2.md (new declaration lines + Skills-docs line, a 风险与回滚 line stating the narrowing, 需要你做的 naming the owed contract review, an updated changeset bullet, the two answered questions moved to rulings, and a Verification paragraph with the dogfood readings); the title at .../pr-title2.txt; a ready `issue_patch` actions file at .../pr-edit-actions.json, which needs the seat's signature added before sending. (2) Two derived families are NOT MEASURED locally at the final head because of the shared lock (see gates); CI's Lint & Repo Gates is green on the same head. (3) The worktree was recreated from origin for this round and removed again after the push was verified.",
      "files_changed": [
        ".changeset/34662-flow-record-date-text.md",
        "packages/formula/src/cel-engine.ts",
        "packages/formula/src/validate.ts",
        "packages/formula/src/validate-date-text-arithmetic.test.ts",
        "packages/lint/src/validate-expressions.test.ts",
        "packages/runtime/src/domains/meta-flow-condition-record-date-text.test.ts",
        "packages/services/service-automation/src/flow-registration-schema-e2e.test.ts"
      ],
      "routing": "Narrowing declared: a contract-review-tier L2 review is owed before the queue; the seat routes it."
    }
  9. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

    ACCEPT → PR #34935 comment 6958189274 (head 60d4e1c). L2 (contract-review tier) requested from l2-review#3 by mailbox #34476. Out of scope: filed #34946.

  10. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C
    os-dev-report

    {
      "issue": 34662,
      "status": "done",
      "branch": "claude/issue-34662-flow-record-date-text",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34935",
      "session": "session_012MmDsS4GoHCgYwA2uv3n3C",
      "premise_still_valid": true,
      "summary": "L2 delta round (S1 + N1/N2/N3), final head 1ce9b683e9. S1 was confirmed red on 60d4e1c6c7 before any edit, by validateExpression with the flow-condition hint and run-fails. (a) `record.due_date - record.borrow_date > 3` gave [] while the bare spelling gave [date-text-arithmetic-run-fails]. (b) `record.due_date >= \"2026-01-01\" && timestamp(record.borrow_date) LT now()` gave [], the swapped order gave [date-text-call-run-fails], and the bare spelling gave [date-text-call-run-fails] in both orders. Fixed with route (i). `recordRootReadsFaultTimestampTyping` is renamed `recordRootReadsFaultDateArith` and is true only when the roots' first Timestamp-typing fault is `isDateArith` (date/duration arithmetic against a number). That is the bare name's own order once `firstTypeMismatch` answers null. Both docblocks now describe that (cel-engine.ts on the helper; validate.ts on `recordRootDateTextIssue`, where 'The order is flowValueEnvelopeDateTextIssue's' is replaced). N1: one exported `RECORD_ROOT_READ_RE` in cel-engine.ts, used by `firstTypeMismatch` and validate.ts. N2: the firstTypeMismatch comment now says the `date-arith` verdict stays the bare name's alone and points at the record-root date-text pass. N3: a lint pin for the run-may-fail sentence on an untriggered flow. The index spelling `timestamp(record['borrow_date'])` was not touched (the seat files it). Narrowing as declared: a contract-review-tier L2 is owed; the seat signs off this round.",
      "tests": "Formula harness, new case 'stands down only on date arithmetic against a number': (a) root gives date-text-arithmetic-run-fails {operands: DateText - DateText, reference: record.borrow_date} beside the bare spelling's code; (b) in BOTH orders, root and bare each give [date-text-call-run-fails], the root naming timestamp(record.borrow_date). The `record.due_date + 1 > 5` stand-down control is kept. Lint, new case: an untriggered flow's start condition refuses bare/record./previous. with 'this faults wherever `READ` holds that text when the condition runs'. Ablation after commit 1ce9b683e9: ablation-replace on cel-engine.ts turned `isDateArith(m)` into 'any operator fault' (anchor x1 to x0, marker x1, blob d0a7e27af46e to c77a6671797e). The formula harness, which reads src so needs no rebuild, gave 1 failed / 87 passed, exactly the new S1 case; the `record.due_date + 1` control stayed green. Restored: blob equals HEAD, git diff HEAD empty, git status --porcelain 0 lines. Final head under the lock (VERDICT command-exit 0): formula pnpm test 68 files / 1879 tests; lint validate-expressions.test.ts 506/506; formula and lint typecheck green (check:test-typecheck OK x2).",
      "gates": "dispatch-gates --commands at 1ce9b683e9: 72 families. Recorded: 70 exit 0 and 2 NOT MEASURED; `--ran` reports 72 derived, 70 run, 2 NOT-MEASURED, 0 UNRUN. The first: pnpm check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET; dist for service-knowledge was missing, and its build lost two lock queues (exit 99). The second: pnpm check:type-check-debt, which ran past my 300s cap (exit 124); a run under the lock lost the queue (exit 99, holder pid 15958). Both run inside CI's Lint & Repo Gates, which is success on 1ce9b683e9. overlap-check before the push: exit 1. #34978 ('fix(objectql)!: a required field hidden by its own visibleWhen ...', draft) conflicts in packages/lint/src/validate-expressions.test.ts. #35000 shares packages/formula/src/cel-engine.ts and merges cleanly. origin/main merges cleanly. CI on 1ce9b683e9: Lint & Repo Gates, TypeScript Type Check, Build Core, Governed Surface Queue Guard, Check Changeset, Type Check UI, Build & E2E UI and Live E2E UI all success. Test Core=failure, from shard 3/10 only: @objectstack/scenarios test/skill-evals/skill-evals.test.ts '--regrade grades an old answer only against the case that ran' timed out at 5000ms. The scenarios package is outside this diff, and formula 68/68 and runtime test:repo passed in the same shard. Test UI=failure, from shard 13/16 (ui/ untouched). Both need a re-run or triage, not a change here.",
      "dogfood_battery": "1ce9b683e9 · os-verify-lock: VERDICT command-exit 0 · held the lock 2097s · waited 0s · `pnpm --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test` · Test Files 479 passed | 3 skipped (482) · Tests 4072 passed | 68 skipped (4140) · no failures",
      "mcp_calls": "0",
      "api_writes": "2 this round — git push of 1ce9b683e9 (not REST); post-stamped delta os-dev-report on #34662",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "deviations": "(1) Process slip, owned: the pre-push overlap-check was run as `overlap-check | tail -2 && git push`. The pipe hid its exit 1 (the #34978 conflict in validate-expressions.test.ts), so the push went out before I read the verdict. The conflict is two appends in a shared test file; it does not block this PR, and whichever lands second rebases. The seat decides the order. (2) Two derived families are NOT MEASURED locally (lock contention, see gates); CI's Lint & Repo Gates is green on the same head. (3) Wording the seat may want in the PR body, What changes, validate.ts bullet: 'A shape whose first Timestamp-typing fault on the roots is date/duration arithmetic against a number (`record.due_date + 1`) belongs to the `date-arithmetic` family and stands down, the bare name's own order; any other Timestamp-typing fault (`record.due_date - record.borrow_date > 3`, an ordering against a text literal ahead of a `timestamp()` call) is judged as its bare spelling is.' Tests: add the S1 case and the lint run-may-fail case. Ablation: add 'S1 leg: isDateArith widened back to any operator fault gives the formula harness 1 failed / 87 passed (the S1 case); restored.' Verification: final head 1ce9b683e9, dogfood 479/482 files and 4072/4140 tests. (4) Worktree recreated from origin for this round; removed after the push was verified.",
      "files_changed": [
        ".changeset/34662-flow-record-date-text.md",
        "packages/formula/src/cel-engine.ts",
        "packages/formula/src/validate.ts",
        "packages/formula/src/validate-date-text-arithmetic.test.ts",
        "packages/lint/src/validate-expressions.test.ts",
        "packages/runtime/src/domains/meta-flow-condition-record-date-text.test.ts",
        "packages/services/service-automation/src/flow-registration-schema-e2e.test.ts"
      ],
      "routing": "Narrowing declared (Clause-②: no (narrowing), Metadata-protocol: narrowed): a contract-review-tier L2 review is owed; the seat signs off this round."
    }
  11. added
    area:workflow
    on Nov 18, 2026
  12. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C
    os-dev-report

    {
      "issue": 34662,
      "status": "done",
      "branch": "claude/issue-34662-flow-record-date-text",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34935",
      "session": "session_012MmDsS4GoHCgYwA2uv3n3C",
      "premise_still_valid": true,
      "summary": "Wind-down round, final head 36a9089a80: a merge of origin/main e8a78c4bdf into 1ce9b683e9, no rebase. There was one conflict, in packages/lint/src/validate-expressions.test.ts, where both sides appended a top-level describe at end of file. It is resolved by keeping both: our #34662 describe, then main's ADR-0113 D1 describe. No assertion on either side was edited. Proof: `git diff origin/main` on that file removes 0 lines and adds 85 (our block). Against 1ce9b683e9 the only removed line is main's own edit (the meta-type key list gaining required/storage/visibleWhen). Git's merge absorbed the shared closing `  });` / `});` into the common tail, which left our describe unclosed; its two closing lines were restored. cel-engine.ts auto-merged with main's typed-env cache (#34756). That cache keys on scope, temporal, fieldCelTypes and recordRootTypes, and leaves the date-text logic untouched, so the S1 pins keep their meaning. No push after 36a9089a80.",
      "tests": "CI on 36a9089a80 (the merge head the seat is reviewing): 57 success, 11 skipped, 0 other. Test Core and all 10 shards, TypeScript Type Check, Lint & Repo Gates, Build Core, Check Changeset, Governed Surface Queue Guard, Type Check UI, Test UI, Build & E2E UI and Live E2E UI are success; Test Core runs the formula harness and the lint validate-expressions file. Local runs of the formula date-text harness, the whole validate-expressions.test.ts, and the formula/lint typecheck are NOT MEASURED at 36a9089a80. Three lock attempts: two queue-timeouts (exit 99) behind issue-34682's tail-run.sh (holder pid 15747, over 23 min), and a third that I stopped when the seat's status probe arrived. The last local readings of the same source are at 1ce9b683e9: formula 68/1879, lint validate-expressions 506/506, both typechecks green. The merge adds only main's code and main's test block.",
      "gates": "dispatch-gates --commands at 36a9089a80: the same 72 families as at 1ce9b683e9. Recorded: 70 exit 0 and 2 NOT MEASURED; `--ran` reports 72 derived, 70 run, 2 NOT-MEASURED, 0 UNRUN. The first: check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (no dist for studio, client-react, embedder-openai and others in this fresh worktree). The second: check:type-check-debt exit 3, its re-measure build never got a lock turn. Both are green inside CI's Lint & Repo Gates on the same head. check:dts-closure first read a dist mid-rebuild (exit 1, missing .d.ts); rerun after the build, exit 0. overlap-check before the push, exit read directly with no pipe: OVERLAP_EXIT=0, VERDICT clean vs origin/main e8a78c4bdf, 0 PR heads.",
      "dogfood_battery": "Owed and run: the merge touched code outside the test file (packages/formula/src/cel-engine.ts auto-merged with main's typed-env cache). 36a9089a80 · os-verify-lock: VERDICT command-exit 0 · held the lock 3221s · waited 414s · `pnpm --filter '@objectstack/dogfood^...' (+ '@objectstack/lint...') build && pnpm --filter @objectstack/dogfood test` · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures",
      "mcp_calls": "0",
      "api_writes": "2 this round — git push of the merge 36a9089a80 (not REST); post-stamped delta os-dev-report on #34662",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "deviations": "(1) The local touched-suite and typecheck reruns at the merge head are NOT MEASURED because of lock contention (see tests); CI's Test Core and TypeScript Type Check are green on the same head. (2) The report came late: the dogfood battery held the lock for 54 min after a 7 min queue, and the follow-up lock attempts timed out. The background lock attempt was stopped on the seat's probe; my parked slot holds no process. (3) The worktree was recreated from origin for this round and removed after the push was verified.",
      "files_changed": [
        ".changeset/34662-flow-record-date-text.md",
        "packages/formula/src/cel-engine.ts",
        "packages/formula/src/validate.ts",
        "packages/formula/src/validate-date-text-arithmetic.test.ts",
        "packages/lint/src/validate-expressions.test.ts",
        "packages/runtime/src/domains/meta-flow-condition-record-date-text.test.ts",
        "packages/services/service-automation/src/flow-registration-schema-e2e.test.ts"
      ],
      "routing": "Narrowing declared (Clause-②: no (narrowing), Metadata-protocol: narrowed): a contract-review-tier L2 review on 36a9089a80 is owed; the seat routes it."
    }
  13. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C
    os-dev-report

    {
      "issue": 34662,
      "status": "done",
      "branch": "claude/issue-34662-flow-record-date-text",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34935",
      "session": "session_012MmDsS4GoHCgYwA2uv3n3C",
      "premise_still_valid": true,
      "summary": "Wind-down round, final head 36a9089a80: a merge of origin/main e8a78c4bdf into 1ce9b683e9, no rebase. There was one conflict, in packages/lint/src/validate-expressions.test.ts, where both sides appended a top-level describe at end of file. It is resolved by keeping both: our #34662 describe, then main's ADR-0113 D1 describe. No assertion on either side was edited. Proof: `git diff origin/main` on that file removes 0 lines and adds 85 (our block). Against 1ce9b683e9 the only removed line is main's own edit (the meta-type key list gaining required/storage/visibleWhen). Git's merge absorbed the shared closing `  });` / `});` into the common tail, which left our describe unclosed; its two closing lines were restored. cel-engine.ts auto-merged with main's typed-env cache (#34756). That cache keys on scope, temporal, fieldCelTypes and recordRootTypes, and leaves the date-text logic untouched, so the S1 pins keep their meaning. No push after 36a9089a80.",
      "tests": "CI on 36a9089a80 (the merge head the seat is reviewing): 57 success, 11 skipped, 0 other. Test Core and all 10 shards, TypeScript Type Check, Lint & Repo Gates, Build Core, Check Changeset, Governed Surface Queue Guard, Type Check UI, Test UI, Build & E2E UI and Live E2E UI are success; Test Core runs the formula harness and the lint validate-expressions file. Local runs of the formula date-text harness, the whole validate-expressions.test.ts, and the formula/lint typecheck are NOT MEASURED at 36a9089a80. Three lock attempts: two queue-timeouts (exit 99) behind issue-34682's tail-run.sh (holder pid 15747, over 23 min), and a third that I stopped when the seat's status probe arrived. The last local readings of the same source are at 1ce9b683e9: formula 68/1879, lint validate-expressions 506/506, both typechecks green. The merge adds only main's code and main's test block.",
      "gates": "dispatch-gates --commands at 36a9089a80: the same 72 families as at 1ce9b683e9. Recorded: 70 exit 0 and 2 NOT MEASURED; `--ran` reports 72 derived, 70 run, 2 NOT-MEASURED, 0 UNRUN. The first: check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (no dist for studio, client-react, embedder-openai and others in this fresh worktree). The second: check:type-check-debt exit 3, its re-measure build never got a lock turn. Both are green inside CI's Lint & Repo Gates on the same head. check:dts-closure first read a dist mid-rebuild (exit 1, missing .d.ts); rerun after the build, exit 0. overlap-check before the push, exit read directly with no pipe: OVERLAP_EXIT=0, VERDICT clean vs origin/main e8a78c4bdf, 0 PR heads.",
      "dogfood_battery": "36a9089a809745c2a0e02ee245a643ae73db07c8 · os-verify-lock: VERDICT command-exit 0 · held the lock 3221s · waited 414s · `pnpm --filter '@objectstack/dogfood^...' (+ '@objectstack/lint...') build && pnpm --filter @objectstack/dogfood test` · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures. Owed: the merge touched cel-engine.ts outside the test file.",
      "mcp_calls": "0",
      "api_writes": "2 this round — git push of the merge 36a9089a80 (not REST); post-stamped delta os-dev-report on #34662",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "deviations": "(1) The local touched-suite and typecheck reruns at the merge head are NOT MEASURED because of lock contention (see tests); CI's Test Core and TypeScript Type Check are green on the same head. (2) The report came late: the dogfood battery held the lock for 54 min after a 7 min queue, and the follow-up lock attempts timed out. The background lock attempt was stopped on the seat's probe; my parked slot holds no process. (3) The worktree was recreated from origin for this round and removed after the push was verified.",
      "files_changed": [
        ".changeset/34662-flow-record-date-text.md",
        "packages/formula/src/cel-engine.ts",
        "packages/formula/src/validate.ts",
        "packages/formula/src/validate-date-text-arithmetic.test.ts",
        "packages/lint/src/validate-expressions.test.ts",
        "packages/runtime/src/domains/meta-flow-condition-record-date-text.test.ts",
        "packages/services/service-automation/src/flow-registration-schema-e2e.test.ts"
      ],
      "routing": "Narrowing declared (Clause-②: no (narrowing), Metadata-protocol: narrowed): a contract-review-tier L2 review on 36a9089a80 is owed; the seat routes it."
    }
  14. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

    MERGED: PR #34935 closed this card (2026-11-19T03:12Z). On origin/main a flow condition's record.FIELD / previous.FIELD read of a date field takes the date-text verdicts its bare name takes (recordRootDateTextIssue in packages/formula/src/validate.ts). The dogfood shards ran in the merge queue on the merged ref. pm:dispatched and lease:o4-A are off. Follow-up: #35295 (the index spelling and mixed-spelling arithmetic the contract review named).

  15. removed
    pm:dispatched
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:workflowbugdomain:serverfindingpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions