Skip to content

ui test flake: studioAddress.guard "no ui source outside the builder spells one" times out at 15 s under shard load (ejected #37114 twice) #37174

Description

@objectstack-fleet

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Filing gate: ① a test defect found while handling a merge-queue ejection; it blocks the landing of PR #37114 (seen twice with the same signature). Untriaged: grade, domain and state are triage's. Suggested route: zone a4-S (Studio, epic #36890), the owner of the guard added by #36895 / PR #36973.

Signature

ui/packages/app-shell/src/views/studio-design/studioAddress.guard.test.ts:153 › no Studio address is built by hand under ui/ (objectstack#36895) › no ui source outside the builder spells one — Error: Test timed out in 15000ms.

Mechanism (read from the file at origin/main; not force-reproduced)

The test walks every src tree under ui/packages/* and ui/apps/* synchronously (readdirSync + statSync per entry) and runs the TypeScript parser (handBuiltStudioAddresses, a full ts.createSourceFile + AST visit) over every non-test source file — the whole ui workspace — inside the default 15 s test budget. On a busy 16-way shard runner the walk plus parse exceeds 15 s.

Fix (test only)

  • Pre-filter before parsing: only parse a file whose text contains /studio or STUDIO_ROOT_PATH (the matcher can hit nothing else). Keep the controls (the builder file still fires; the two named files are still walked).
  • Give the case an explicit timeout sized to the walk (e.g. 60 s), as the second line of defence.
  • Pin: the existing matcher case stays; add one assertion that the pre-filter never skips a file the matcher would flag (run the matcher over the skipped set in the control, or assert the pre-filter is a superset by construction).

No product change.

Dedupe: studioAddress — no open card.

Activity

  1. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: first touch 2026-11-25T01:33Z

  2. added
    bug
    domain:ui
    pm:queue
    priority:p2
    on Nov 25, 2026
  3. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

    Claim: PM loop round 3 · 2026-11-25T01:40Z
    Session: session_01QSeKYpEsWWE9Y5YtSsDgqZ
    Account: os-justin
    Branch: claude/issue-37174-studio-address-guard-timeout
    Worktree: objectstack-issue-37174
    Domain: domain:ui
    Seat: repo:objectstack#4
    File surface: ui/packages/app-shell/src/views/studio-design/studioAddress.guard.test.ts only (test-only; no product file, no changeset unless a gate asks for one) (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default tier — no path-derived mandate, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack test code — the guard walks and TS-parses the whole ui workspace inside the default 15 s budget (#36895 / PR #36973) | none | every PR whose Test UI shard runs it under load; blocks PR #37114 now
    Thread-read: 7149683922
    Premise: holds (two failing runs with one signature: queue run 45501281672; PR job 138901843717)
    Serial constraints cleared: none — no open PR touches this test file; the dev runs scripts/pm/overlap-check.mjs before the first push
    Routing: triage routed it to repo:objectstack#4, zone a4-S (7149683922); a4-S's three slots are full and its cap is not raised, so the seat session runs it itself.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

    Third hit, second independent queue group · 2026-11-25T02:06Z

  6. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: raised to p0 2026-11-25T03:30Z

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
    os-dev-report

    {
     "issue": 37174,
     "status": "done",
     "branch": "claude/issue-37174-studio-address-guard-timeout",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/37198",
     "session": "session_01QSeKYpEsWWE9Y5YtSsDgqZ",
     "premise_still_valid": true,
     "summary": "Test-only fix, one file (studioAddress.guard.test.ts). A raw-text pre-filter, maySpellStudioAddress, now gates the TypeScript parse in the walk case: 123 of 2,378 ui sources are parsed at this head. The walk case went from 4471 ms to 873 ms locally and now carries an explicit { timeout: 60_000 }. The card's two-word filter (/studio or STUDIO_ROOT_PATH) was NOT an exact superset of the matcher. The matcher also flags STUDIO_LANDING_PATH (ROOT_NAMES), and it reads cooked literal and identifier text, so escapes (\\x2f, \\u002f, \\u{69}, legacy octal \\57) and line continuations spell /studio with no /studio in the raw text. The filter was widened to match each word with every character in any spelling that cooks back to it. JSX attribute strings are not cooked (measured: / stays as is). A shared FLAGGED_SPELLINGS list (the first case's 8 spellings plus 10 escaped and LANDING forms) drives both the matcher case and a new control. The control asserts each fixture is flagged once and passes the gate, that the builder file fires and passes, and that an address-free source is dropped. The existing walk controls are kept. PR #37198 is draft, states it is test-only and that it unblocks PR #37114.",
     "tests": "At 45151aec2b, under os-verify-lock (shared box). Before, at base 95734fef75: walk case 4471ms, file Duration 5.79s. After: walk case 873ms, new control 18ms, Tests 3 passed (3), Duration 1.48s, VERDICT command-exit 0. Ablation 1 (scripts/ablation-replace.mjs, gate returns false): 'ok mutation landed: anchor 1 -> 0, blob fdd866a33090 -> b763c5694c5f'; the new control went red with 'AssertionError: const a = '/studio';: expected false to be true' (Tests 1 failed | 2 passed). The walk case stayed GREEN under this ablation, which is the hole the control closes. Restore: 'ok restored: blob == HEAD (fdd866a33090) and git diff HEAD is empty'. Ablation 2 (the card's two-word filter): the control went red on 'const a2 = '\\x2Fstudio';', and the restore was verified the same way. No build or dist leg: vitest reads this test file from source. Whole @object-ui/app-shell package suite (pnpm --filter @object-ui/app-shell test --maxWorkers=2): Test Files 2442 passed | 1 skipped (2443), Tests 23116 passed | 9 skipped (23125), VERDICT command-exit 0, lock held 1h21m. This run finished after the PR body was written, so the body records it as NOT MEASURED; this report carries the reading.",
     "gates": "node scripts/pm/dispatch-gates.mjs --commands at 45151aec2b derived 27 commands for the one path, and all 27 were run. 26 exited 0 on the first pass. 'pnpm --dir ui exec vitest run scripts/' first went red, 22 files with Cannot find package @objectstack/spec/ui: the fresh worktree had no spec dist. After pnpm --filter @objectstack/spec build it went green: Test Files 172 passed | 2 skipped (174), Tests 5131 passed | 2 skipped, exit 0. The --ran reconciliation was not run separately, because the ran list is exactly the 27 derived commands. eslint --no-inline-config on the file: exit 0. Control-byte grep: no hits. overlap-check: VERDICT clean exit 0 (origin/main 95734fef75, 0 PR heads). Local test type-check (tsc -p tsconfig.test.json --listFiles): exit 2 with 5169 errors, mostly TS2307 for unbuilt @object-ui/* dists in the fresh worktree. The file is in the program and has zero errors of its own, but the verdict is NOT MEASURED (dependency closure not built). CI check-runs on 45151aec2b: Type Check UI success; TypeScript Type Check success; Lint & Repo Gates success; Lint UI success; Lint · PM dispatch-gates success; Governed Surface Queue Guard success; Build & E2E UI success; Live E2E UI success; Test Core success; Dogfood Regression Gate success; Check Changeset success. Test UI (1/16) through (9/16): in_progress when this report was written.",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "4 REST writes, all through the fleet-write relay or post-stamped: (1) POST /repos/objectstack-ai/objectstack/pulls (pr_create, draft); (2) POST /repos/objectstack-ai/objectstack/issues/37198/assignees [os-justin]; (3) POST /repos/objectstack-ai/objectstack/issues/37198/labels [skip-changeset], read back as listed; (4) POST /repos/objectstack-ai/objectstack/issues/37174/comments (this os-dev-report). Plus one git push, which is not REST.",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [],
     "deviations": "(1) The empty-branch probe push (git push -u before any edit) was denied by the auto-mode permission classifier ('Destructive or Unwanted Actions'). It was not retried by another route. The branch was pushed once later, carrying the commit, and that push succeeded. (2) The full app-shell suite and the local test type-check were run outside the PR body's timeline: the body says NOT MEASURED for the package suite, and this report holds the green reading. (3) The harness's commit attribution named a model. The commit was amended before the first push to the model-free trailer pair and to no card reference, as AGENTS.md requires."
    }
  9. removed
    pm:dispatched
    on Nov 25, 2026
  10. os-justin commented on Nov 25, 2026

    @os-justin
    Collaborator

    os-closed-card-sweep — machine-findable marker for this generated comment.

    Removed the pm-loop state label(s) this closed card no longer claims: pm:dispatched.

    A state label claims work is in flight. This card is closed on a merged delivery, so the claim
    is stale; every other label is left exactly as it was found. Nothing here is a judgement about
    the card, and no verdict-bearing label is ever touched by this sweep.

    seat repo:objectstack#4 closeout after PR #37198 merged (p0 #37174)

    Generated by Claude Code


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:fleetbugdomain:uipriority:p0tests

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions