Skip to content

flow value envelopes refuse with condition wording: the date-text verdicts say "when the condition runs … a flow condition" at an update_record / create_record / assignment value slot #34660

Closed
1 of 1 issue completed

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmQAXHSQEgnYyx9tstb

Filing gate: ① measured. Found in the #34451 dev round (PR #34654, open question 1). ⛔ Not a claim.

Blocked-by: #34451
Suggested-grade: p3 — the refusal is right and its fix hint is right; only the sentence names the wrong kind of slot.

What

PR #34654 lets the date-text verdicts reach a flow value envelope (assignment values, create_record / update_record fields.*). It reuses the existing date-text-call-run-may-fail / date-text-arithmetic-run-may-fail codes, whose shared sentence reads "when the condition runs … a flow condition that cannot be evaluated fails the run". At a value slot there is no condition: the slot computes a value, and the run fails when it is evaluated. The location and the leading value-envelope sentence name the slot, so an author can still act, but the outcome sentence describes another kind of slot.

Where (after #34654)

  • packages/formula/src/validate.ts: flowValueEnvelopeDateTextIssue maps the family onto the -run-may-fail arm.
  • The refusal-code ledger in packages/formula/src/expression-refusal.ts (and its catalogue readers): a value-slot arm would be a new code.

Done when

A value-envelope refusal says the run fails when the value is computed, not when a condition runs; the codes are registered in the ledger; lint and registerFlow keep one verdict.

Dedupe words: value envelope refusal wording, date-text run-may-fail condition sentence, flowValueEnvelopeDateTextIssue message.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

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 → p3 · domain:server · pm:blocked · 2026-11-17T05:11Z

    ⛔ Not a claim.

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Unlock (13:5xZ): the only blocker, #34451, closed at 12:52Z. Moved pm:blocked → pm:queue. The grade is unchanged.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY

    Ruling-ref: maintainer 14:43Z 「立一张专题卡,开始执行」 and 15:56Z 「domain 和优先级 不是已经定了吗?为什么现在不能改卡」 · regrade v3 under epic #35205

    Grade: p2 (was p3) · area:ux · Bug · UX × not every user every time · 「flow value envelopes refuse with condition wording: the date-text verdicts say "when the condition runs … a…」; UX has no p3 (15:07Z 「和 cloud 对齐」)

  7. added
    priority:p2
    and removed on Nov 18, 2026
  8. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

    Claim: PM loop round 5 (area-lease ux-3 of repo:objectstack#5; the maintainer, verbatim, 2026-11-19T00:07Z: 「接手 area:ux」「优先 p1 p2」) · 2026-11-19T05:27Z
    Session: session_01Utp6CZiaBg6rk7dpy1s9Me
    Account: os-bill
    Branch: claude/issue-34660-value-envelope-refusal-wording
    Worktree: objectstack-issue-34660 (os-dev worktree in the ux-3 container)
    Domain: domain:server
    Seat: repo:objectstack#5
    File surface: packages/formula/src/validate.ts (flowValueEnvelopeDateTextIssue, the date arm / fault-clause helpers it calls, and DATE_TEXT_FAMILY_RE if the new codes need it), packages/formula/src/expression-refusal.ts (the code ledger: params map, CODE_TABLE, docblocks), packages/formula/src/expression-refusal-codes.test.ts, the value-envelope pins in packages/formula/src/validate-date-text-arithmetic.test.ts (or a new test file named for this card), changeset. Stop on breach and report.
    Container & model: S, mode:subagent, model: default — no path-derived mandate, effort: high
    Clause-②: no
    Accept set: unchanged. The same value-envelope sources are refused at the same grade; only the code and the outcome sentence at a value slot change. New members of the closed refusal-code set follow the #32817 precedent (codes added under a no declaration).
    Metadata-protocol: none
    Responsibility: platform — flowValueEnvelopeDateTextIssue in packages/formula/src/validate.ts (objectstack, @objectstack/formula) reuses the -run-may-fail arm, whose sentence names a flow condition; a flow author whose assignment value or create_record / update_record fields.* value mixes a date field with text.
    Thread-read: 6984671744
    Premise: holds — on main flowValueEnvelopeDateTextIssue calls dateTextIssue(source, celFieldTypes, 'record', 'value', 'run-may-fail', dateOnly) (:906), and the run-may-fail fault clause in dateArmFault reads "a flow condition that cannot be evaluated fails the run" (:700).
    Serial constraints cleared: none — no open PR touches packages/formula/src/validate.ts or expression-refusal.ts at claim time; #34935 merged.
    Pre-claim lane: server/formula refusal copy — packages/formula/src/**; on the ux-3 lease table row (#34660); not governed.
    Pre-claim deps: #34451 closed (unlock 6950022572); #34935 merged.
    Prior rulings read: triage 6939187142; unlock 6950022572; regrade 6984671744 (p2, area:ux); PR #34654 open question 1; PR #32817 Clause-② line for new refusal codes.
    Lease: lease:ux-3

  9. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  10. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
    os-dev-report

    {
      "issue": 34660,
      "status": "done",
      "branch": "claude/issue-34660-value-envelope-refusal-wording",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35358",
      "head": "2cd098bdec6ff2b8849856fd9725bf971a7dcebf",
      "session": "session_01Utp6CZiaBg6rk7dpy1s9Me",
      "premise_still_valid": true,
      "summary": "A flow value envelope (assignment value, create_record / update_record fields.* value) now takes its own date-text outcome arm, value-run-may-fail, served under two new ledger codes, date-text-call-value-run-may-fail and date-text-arithmetic-value-run-may-fail. Its sentence says the fault happens when the value is computed and the flow stops at this step, with no condition wording. Grade (error), location, the head, the fix hint and the doors' leading value-envelope sentence are unchanged. Flow conditions keep -run-may-fail / -run-fails byte for byte. The names follow the ledger's one site-qualified precedent, type-mismatch-sweep-run-fails: family, then site, then outcome. Draft PR #35358, changeset @objectstack/formula patch.",
      "tests": "Red leg at 240b77bf9c (tests committed alone, source at base 81c0947798): vitest run src/validate-date-text-arithmetic.test.ts src/expression-refusal-codes.test.ts -> Tests 5 failed | 134 passed (139), 'expected [ date-text-call-run-may-fail ] to deeply equal [ date-text-call-value-run-may-fail ]', VERDICT command-exit 1. Green at 2cd098bdec: same two files -> Test Files 2 passed, Tests 141 passed (141), VERDICT 0. pnpm --filter @objectstack/formula test -> Test Files 68 passed (68), Tests 1888 passed (1888), VERDICT 0. pnpm --filter @objectstack/formula typecheck -> check:test-typecheck OK, VERDICT 0. Door suites against rebuilt dist (outside the file surface, run only): service-automation src/builtin/assignment-value-envelope.test.ts Tests 76 passed; lint src/validate-expressions.test.ts Tests 515 passed; VERDICT 0. One-shot (not committed): built lint validateStackExpressions and service-automation AutomationEngine.registerFlow on an assignment value and an update_record fields.due_date value -> both doors give the identical value clause; the lint message has no 'condition'. No ablation beyond the red leg: the tests import ./validate from src.",
      "gates": "At head 2cd098bdec. Build: pnpm --filter '@objectstack/formula^...' build VERDICT 0; lint/service-automation closures built for the door check, VERDICT 0. dispatch-gates --commands --repo objectstack-ai/objectstack: 65 commands; 64 exit 0; 1 exit 3 PREREQUISITE NOT MET: pnpm check:dual-build-cjs-loads (workspace dist not built) -> NOT MEASURED locally, CI Lint & Repo Gates runs it. --ran: '65 derived famil(ies) accounted for — 64 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)', 0 UNRUN, exit 0. check:nul-bytes exit 0 (derived set). check-platform-checklist not owed: no exported symbol renamed or removed. test:repo not run locally (CI Test Core). overlap-check --branch=claude/issue-34660-value-envelope-refusal-wording: origin/main merges cleanly, 0 PR heads, VERDICT clean exit 0. PR check-runs: not awaited (os-dev), in_progress at report time.",
      "files_changed": [
        ".changeset/34660-value-envelope-refusal-wording.md",
        "packages/formula/src/expression-refusal-codes.test.ts",
        "packages/formula/src/expression-refusal.ts",
        "packages/formula/src/validate-date-text-arithmetic.test.ts",
        "packages/formula/src/validate.ts"
      ],
      "line_budget": "n/a — no skills/** touched; diff 5 files, all inside the claim's file surface",
      "assumptions": {
        "A1": "holds — outside packages/formula/src the -run-may-fail date-text codes appear only in CHANGELOGs and one changeset/release page about flow conditions; EXPRESSION_REFUSAL_CODES has no consumer outside the package. The lint and service-automation door pins assert the fix hint and the envelope prefix, never the code, and stay green. No i18n pack, docs catalogue, skill or eval names these codes. No catalogue row was owed.",
        "A2": "holds — the same sources are refused at the same grade (error) at the same path; the accept-set CONTROL (taught shift, datetime field, no field types) stays clean. Only the code and the outcome sentence change. Clause-② no."
      },
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — relay pr_create (repository_dispatch -> POST /repos/objectstack-ai/objectstack/pulls, PR #35358, assignee os-bill, read-back 8562 bytes identical); post-stamped issue comment on #34660 (this report)",
      "deviations": [
        "The lint-and-registerFlow pin is on the shared entry: validateExpression('value', envelope, { fieldTypes, flowValueEnvelope: true }) in packages/formula, which both doors call. A pin running the source through both callers would need lint and service-automation test files, which are outside the claim's file surface. Both doors were measured once on built packages instead (PR Verification).",
        "The validate sweep in expression-refusal-codes.test.ts grew from 15 schemas to 16 so that its positive control reaches the new codes. Re-measured as its docblock asks: 192 to 225 ms against 186 to 267 ms for the 15 on the same box. The budget is unchanged and the reading is recorded in the docblock.",
        "The PR body's maintainer brief follows the coordinator's four-line ruling (seat-practice §1), not os-dev.md's six lines. Files-first and the two-minute check are in '## 席位核对'.",
        "The PR footer uses AGENTS.md's session-URL footer form, not the harness reminder's robot-emoji footer, per the instruction precedence."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: registerFlow (the flow publish/boot door), reproduced on the built @objectstack/service-automation: registering a record-triggered flow whose assignment value is timestamp(record.borrow_date) throws a header 'Flow ... has 1 invalid expression (ADR-0032 §1a). Predicates — conditions and declared bare-CEL slots ... — must not wrap references in {…} template braces, and neither may a value slot ...'. The header explains template braces whatever the refusal listed below it is, here a date-text verdict with no braces. Pre-existing, not caused by this PR · evidence: packages/services/service-automation/src/flow-registration-checks.ts ~:1047-1051, one fixed header for every failure kind · dedupe words: registerFlow refusal header template braces, invalid expression header misleading, flow-registration-checks message preamble"
      ]
    }
  11. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

    Close-out 2026-11-19T07:07Z: PR #35358 MERGED as 8b550f8193; Fixes closed this card. Delivered: a flow value envelope (assignment value, create_record / update_record fields.* value) that mixes a date field with text is refused under its own codes, date-text-call-value-run-may-fail and date-text-arithmetic-value-run-may-fail, registered in the ledger; the sentence says the run fails when the value is computed and the flow stops at this step. Flow conditions keep their codes and sentence byte for byte; lint and registerFlow share the one verdict. L1-a ACCEPT 7001828368. Follow-up #35369 (the flow registration header names template braces for every refusal) is nested here. pm:dispatched off.

  12. 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:uxbugdomain:serverfindingpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions