Skip to content

Queue-flake anchor: packages/fields FilterConditionField.betweenBlankBound-9914.test.tsx:174 — toHaveValue(5) receives "5" (render race before the schema types the field) #34991

Closed

Description

@objectstack-fleet

triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

Filed by triage at the request of repo:objectstack#3 (6961296270). This is a queue-flake anchor.

Grade: p2 · domain:ui, under the queue-flake rule (#34152): one independent root, one head, so p2 and no jump. It is raised to p0 if a second head is ejected by it.

Activity

  1. added
    priority:p2
    pm:queue
    finding
    domain:ui
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Raised p2 → p1 by maintainer ruling (2026-11-17 22:5xZ, in triage's session, on triage's UI-lane p2 list): 「以上提到 p1」, covering #34972, #34765, #34991, #34629 and #34728.

    This is a grade set by ruling, so the focus-grading rules and the queue-flake single-root rule (#34152) do not move it back. Domain and state are unchanged; it is queued for a p1 seat.

  3. added
    priority:p1
    and removed
    priority:p2
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz

    Claim: PM loop round 2 · 2026-11-17T22:56Z
    Session: session_01WGufzi3ezPzTysQPDEjmVz
    Account: os-support-ai
    Branch: claude/issue-34991-between-bound-flake
    Worktree: objectstack-issue-34991
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/packages/fields/src/widgets/__tests__/FilterConditionField.betweenBlankBound-9914.test.tsx (and its local harness helpers, if the race lives there); ui/packages/fields/src/widgets/FilterConditionField*.tsx only if the reading shows the widget itself renders an untyped bound after the schema lands; root .changeset/ only if product code changes
    Container & model: S, mode:subagent, model: TIER_DEFAULT (no path-derived mandate on these paths), effort: medium (small console card: one test file, no spec change; area-order addendum 16:27Z, seat 22:55Z)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack ui/packages/fields FilterConditionField.betweenBlankBound-9914.test.tsx:174 (findByLabelText('To') resolves before the async object schema types age as a number, so toHaveValue(5) sees "5") | none | every PR the merge queue ejects on this anchor (PR #34955 ejected, build 44173515593)
    Thread-read: 6963334012
    Premise: holds on origin/main 4443014: the stored-criteria test queries the To box with findByLabelText and asserts toHaveValue(5) immediately (:172-174), with no wait for the schema-typed number input; the card's reading (PR comment 6961223962) is a render race, 3/3 local passes on the queue commit
    Serial constraints cleared: no open PR touches FilterConditionField* (checked 2026-11-17 22:57Z); overlap-check before every push
    Pre-claim lane: domain:ui — every path is under ui/**
    Pre-claim deps: none
    Prior rulings read: queue-flake rule #34152 (never skip or quarantine; fix the cause); thread: none
    Ruling-ref: maintainer 「以上提到 p1」 (6963334012), seat dispatch 22:55Z

    Scope: fix the cause of the race: the assertion waits for the schema-typed render (the number input, or findBy on a typed value) before toHaveValue(5); prove it with a reproduction (slowed schema resolution, or a loop of the file under load) that fails before and passes after. ⛔ No skip, no quarantine, no retry wrapper, no weakened assertion (toHaveValue('5') is a weakening). If the widget itself can show an untyped bound to a real user after the schema lands, say so and fix it there.

    Lease o3-D (seat post #34584).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz
    os-dev-report

    {
      "issue": 34991,
      "status": "done",
      "branch": "claude/issue-34991-between-bound-flake",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35055",
      "session": "session_01WGufzi3ezPzTysQPDEjmVz",
      "premise_still_valid": true,
      "summary": "Premise held on origin/main 444301463: FilterConditionField seeds the stored between row at once, but types age as number only when the async getObjectSchema answers, so findByLabelText('To') can return the untyped text box holding \"5\". The test now waits for the typed box itself through a helper findTypedBound = findByRole('spinbutton', { name }), in both tests of the file that had the race (:174 To, and :198 From in the blank-bound migration test); toHaveValue(5)/toHaveValue(1) unchanged, no skip/retry/quarantine. Widget reading: after the schema lands the bound is a number input showing the number, so there is no product change and no changeset; skip-changeset sent with pr_create.",
      "tests": "Reproduction (schema resolution delayed 300 ms via scripts/ablation-replace.mjs, anchor hit 1, restored to HEAD blob 4f2b9b94a685 with git diff HEAD empty): Leg A, base test + delay: Tests 2 failed | 12 passed (14), :174 Expected 5 (number) Received 5 (string), the queue signature, plus :198 Received 1 (string). Leg B, 6dffff81d + delay: Test Files 1 passed (1), Tests 14 passed (14). @object-ui/fields package at 6dffff81d (vitest run --root ../.. packages/fields/, os-verify-lock): Test Files 307 passed | 1 skipped (308), Tests 4651 passed | 7 skipped (4658), VERDICT command-exit 0. Six FilterConditionField* files: 6/6 files, 128/128 tests. Package type-check (tsc -p tsconfig.test.json, needs every @object-ui dep's built .d.ts) NOT MEASURED locally, declared to CI Type Check UI. No dist ablation: test-only change.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack derived 27 at 6dffff81d; all 27 run: 26 exit 0 on first run, check:type-check-debt exited 3 on its first run (queued behind the held lock) and 0 on rerun (0 raw tsc errors); pnpm --dir ui exec vitest run scripts/ under lock: Test Files 171 passed | 2 skipped (173), Tests 5077 passed | 2 skipped (5079), VERDICT command-exit 0. --ran reconciliation: 27 derived, 27 run, 0 NOT-MEASURED (a derived zero, every line with an exit code). overlap-check before both pushes: VERDICT clean exit 0. PR check-runs at report time: Check Changeset success; the rest in_progress (Lint, Type Check, Test UI not yet concluded).",
      "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3: git push (branch), relay pr_create (POST pulls + POST issues/35055/assignees + POST issues/35055/labels, one dispatch run 44207706162), post-stamped os-dev-report comment on issue 34991",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: repo:objectstack#3 (area seat) · noted, not filed · same queue-flake race in FilterConditionField.emptyOperators-10790.test.tsx: with getObjectSchema delayed 300 ms, 6 tests fail (findByDisplayValue('5') then edit expects \"amount\":6, receives \"amount\":\"6\") · dedupe words: FilterConditionField emptyOperators findByDisplayValue race schema",
        "carrier: repo:objectstack#3 (area seat) · noted, not filed · same race in FilterConditionField.builderRows-8748.test.tsx: with the same delay, 1 test fails (findAllByRole('combobox') then toHaveTextContent('Name'), receives empty) · dedupe words: FilterConditionField builderRows combobox label race",
        "class: a (candidate) · reach: NOT MEASURED, unit harness only, no public-door reading · an edit typed into a number bound before getObjectSchema answers is emitted untyped (emptyOperators probe emits \"amount\":\"6\"), so a slow schema fetch could store a string comparand on a number column · dedupe words: FilterConditionField untyped emit before schema number string comparand",
        "carrier: PM · noted · lock holder pid 7800 held os-verify-lock about 45 min on pnpm --dir ui exec vitest run packages/app-shell/ (vitest at about 180 percent CPU); this dev waited 3 x 540 s and declared a narrowing (the repro and the six FilterConditionField files ran unlocked, --maxWorkers=1) before the lock moved"
      ]
    }
  7. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz

    Claim amendment · 2026-11-18T00:30Z

    Amends claim 6963436841 (area o3-D, same session, same branch claude/issue-34991-between-bound-flake, PR #35055), per seat order 2026-11-18 00:30Z. The dev's reproduction (schema resolution delayed 300 ms) finds the same render race in two sibling files: FilterConditionField.emptyOperators-10790.test.tsx (6 tests red: findByDisplayValue('5') then an edit expecting "amount":6 receives "amount":"6") and FilterConditionField.builderRows-8748.test.tsx (1 test red: findAllByRole('combobox') then toHaveTextContent('Name') receives ""). The File surface adds both test files (test-only). Same fix shape (wait for the schema-typed render, no skip / retry / quarantine / weakened assertion), with before/after counts under the same delay for each file.

    Not in scope here: whether the widget emits an untyped comparand when a user types before the schema answers; the seat is having that carded separately as a reading-first finding. Everything else in 6963436841 stands.

  8. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz

    Claim amendment (switch) · 2026-11-18T00:33Z

    Supersedes the delivery route of amendment 6965218495, per seat order 2026-11-18 00:31Z: PR #35055 lands as it stands at 6dffff81d (L1 ACCEPT 6965205817) to cut queue ejections now, and is re-pointed to Part of #34991. The two sibling files (FilterConditionField.emptyOperators-10790.test.tsx, FilterConditionField.builderRows-8748.test.tsx) follow in a second PR on a new branch claude/issue-34991-filter-sibling-races under this card, which carries Fixes #34991; same fix shape and same 300 ms-delay before/after counts per file. Everything else stands.

  9. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz
    os-dev-report

    {
      "issue": 34991,
      "status": "done",
      "branch": "claude/issue-34991-filter-sibling-races",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35063",
      "session": "session_01WGufzi3ezPzTysQPDEjmVz",
      "premise_still_valid": true,
      "summary": "Second PR on #34991, following #35055. It fixes the same schema-render race in the two sibling files the 300 ms reproduction found. emptyOperators-10790: three findByDisplayValue('5') sites, covering six tests, now go through findTypedAmountBox(). It waits for the typed number box (findByRole('spinbutton')) and asserts toHaveValue(5) before the edit, so the emitted \"amount\":6 assertions stay unchanged and the string \"6\" is not accepted. builderRows-8748: the seeded-row test now waits for the field trigger to show its label 'Name' before taking the triggers. findByRole('combobox', { name: 'Name' }) was tried first and fails even with no delay, because a combobox takes no accessible name from its content. Test-only; skip-changeset sent with pr_create. The untyped emit before the schema answers is left to its separate card.",
      "tests": "300 ms schema-delay reproduction via scripts/ablation-replace.mjs: anchor hit once, each leg restored to the HEAD blob, git diff HEAD empty at the end. emptyOperators-10790: base 743308b90 plus delay gives Tests 6 failed | 30 passed (36); 52bace8b1 plus delay gives Tests 36 passed (36). builderRows-8748: base plus delay gives Tests 1 failed | 3 passed (4); fix plus delay gives Tests 4 passed (4). The first attempt of the repro script was invalid: restore_all reused the loop variable, so one leg ran on the wrong file. It was fixed with a local variable and rerun in full; the counts above come from the rerun. Six FilterConditionField* files: Test Files 6 passed (6), Tests 128 passed (128). @object-ui/fields package (under os-verify-lock): Test Files 307 passed | 1 skipped (308), Tests 4651 passed | 7 skipped (4658), VERDICT command-exit 0. Package type-check NOT MEASURED locally; declared to CI Type Check UI.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack derived 27 commands at 52bace8b1 (the same set as #35055). All 27 exit 0, including pnpm --dir ui exec vitest run scripts/ under the lock: Test Files 171 passed | 2 skipped (173), Tests 5077 passed | 2 skipped (5079). --ran reconciliation: 27 derived, 27 run, 0 NOT-MEASURED (a derived zero). overlap-check before both pushes and after a fresh fetch: VERDICT clean exit 0. PR check-runs at report time: Check Changeset success; 15 in_progress and 1 queued, not concluded.",
      "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3: git push of the branch (empty marker push, then 52bace8b1); relay pr_create in run 44212264046 (POST pulls, POST issues/35063/assignees, POST issues/35063/labels), 4275 bytes read back identical, draft; post-stamped os-dev-report comment on issue 34991",
      "open_questions": [
        {
          "question": "The order asks for the HTML-comment signature at the end of the PR body, but .claude/agents/os-dev.md forbids any HTML comment in dev-written GitHub text and says the file wins over dispatch words. Which should hold?",
          "options": [
            "A: keep the plain-text signature line, as both PRs do now; the read-back shows the body intact",
            "B: amend os-dev.md (governed .claude/** surface) to exempt the area signature, after which devs write the HTML-comment form"
          ],
          "recommendation": "B if the area standard is meant to bind devs. Until os-dev.md changes, a dev following it cannot write that form, so this run kept A."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  10. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz

    Claim: PM loop round 2 (second PR on this card) · 2026-11-18T01:05Z
    Session: session_01WGufzi3ezPzTysQPDEjmVz
    Account: os-support-ai
    Branch: claude/issue-34991-filter-sibling-races
    Worktree: objectstack-issue-34991b
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/packages/fields/src/widgets/__tests__/FilterConditionField.emptyOperators-10790.test.tsx, ui/packages/fields/src/widgets/__tests__/FilterConditionField.builderRows-8748.test.tsx (test-only; claim amendments 6965218495 / 6965256074)
    Container & model: S, mode:subagent, model: TIER_DEFAULT (no path-derived mandate on these paths), effort: medium (small console card: one test file, no spec change; area-order addendum 16:27Z, seat 22:55Z)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack ui/packages/fields FilterConditionField.betweenBlankBound-9914.test.tsx:174 (findByLabelText('To') resolves before the async object schema types age as a number, so toHaveValue(5) sees "5") | none | every PR the merge queue ejects on this anchor (PR #34955 ejected, build 44173515593)
    Thread-read: 6965256074
    Premise: holds on origin/main 4443014: the stored-criteria test queries the To box with findByLabelText and asserts toHaveValue(5) immediately (:172-174), with no wait for the schema-typed number input; the card's reading (PR comment 6961223962) is a render race, 3/3 local passes on the queue commit
    Serial constraints cleared: no open PR touches FilterConditionField* (checked 2026-11-17 22:57Z); overlap-check before every push
    Pre-claim lane: domain:ui — every path is under ui/**
    Pre-claim deps: none
    Prior rulings read: queue-flake rule #34152 (never skip or quarantine; fix the cause); thread: none
    Ruling-ref: maintainer 「以上提到 p1」 (6963334012), seat dispatch 22:55Z

    Scope: the second PR on this card (PR #35063, after #35055 which is Part of #34991): the same schema-render race in the two sibling files, same fix shape, same 300 ms-delay before/after counts per file. ⛔ No skip, no quarantine, no retry wrapper, no weakened assertion. The untyped emit before the schema answers is carded separately.

    Lease o3-D (seat post #34584).

  11. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz

    Closed by merge · 2026-11-18T02:34Z

    PR #35055 (Part of #34991, merged 2026-11-18T02:11Z) and PR #35063 (Fixes #34991, merged 2026-11-18T02:12Z). Cause: FilterConditionField draws a stored row at once but types a number field only after the async getObjectSchema answers, so a test reading the bound before that saw the string. Each racing test now waits for the schema-typed render (the spinbutton, or the field label on the combobox) with its assertions unchanged. Reproduction (schema 300 ms late): betweenBlankBound-9914 2 failed / 14 → 14 / 14; emptyOperators-10790 6 failed / 36 → 36 / 36; builderRows-8748 1 failed / 4 → 4 / 4. L1 ACCEPT 6965205817 and 6965792940. The candidate user-facing gap (a number bound typed before the schema answers is emitted untyped) is with triage as its own reading-first card (seat 2026-11-18 00:30Z). pm:dispatched and lease:o3-D removed.

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

Metadata

Metadata

Assignees

Labels

domain:uifindingpriority:p1queue-flake-anchor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions