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
test(app-shell): sameServerFetch.bearer.ratchet "every bare cookie-only call is a counted row" scans the whole ui source tree in ~5 s locally and ~15 s on a CI shard, and times out the required Test UI (1/16) #38101
Filing gate: ① fleet-measured flaky required check, filed at its first sighting (Tesla 2026-11-28 01:05Z 「同意」 to filing at the first eviction, not the second). Source: fleet.
Grading: area:ux · Bug · p2 · reach: every PR, since Test UI (1/16) is required and the case scans the whole tree whatever the diff touches · evidence: CI job 140828751977, local timing.
ui/packages/app-shell/src/sameServerFetch.bearer.ratchet.test.ts, case "every bare cookie-only call is a counted row…": Test timed out in 15000ms (15202 ms, job 140828751977, run 46096246586, PR #38089). The other 3 cases in the file pass.
On the same head the file passes 4/4 locally, with this case at 5215 ms.
AGENTS.md puts a single test file over 10 s on its own lane to fix.
Acceptance
The case runs well under the timeout on a CI shard (target under 5 s there), for example by parsing each file once and sharing the scan across the file's cases, or by narrowing the walk to the files that can hold a fetch call.
The ratchet keeps its teeth: an ablation that adds a bare cookie-only call to a scanned file still reds it.
Triage: lands in area:fleet · domain:devx · Bug · p2 · pm:queue · size S; rationale: the bearer-ratchet case scans the whole ui tree (about 5 s locally, about 15 s on a CI shard) in a required check, whatever the diff touches, the same shape as #38072. It is a timeout risk with no queue ejection recorded yet, so p2. It rises to p1 if it ejects a queue build or turns main red. Tests sit in area:fleet (area:ux → area:fleet), linked under topic #38081. Recorded 2026-11-28T03:13Z.
Claim: PM loop round 1
Session: session_016WV4cxRDKprCtjpEdtiPFW
Account: os-elon-musk
Branch: claude/issue-38101-bearer-ratchet-scan-speed
Worktree: objectstack-issue-38101
Domain: domain:devx
Seat: repo:objectstack#1
Area: o1-F
File surface: ui/packages/app-shell/src/sameServerFetch.bearer.ratchet.test.ts (scan shared across the file's cases, or narrowed); ⛔ no timeout raised, no product source
Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: ui/packages/app-shell/src/sameServerFetch.bearer.ratchet.test.ts in objectstack (the "every bare cookie-only call is a counted row" case scans the whole ui source tree) | none | every PR's required Test UI (1/16); measured job 140828751977 (15202 ms) on PR #38089
Thread-read: 7232897379
Premise: holds (card measures 5215 ms locally, 15202 ms on CI; file present on 10321fa)
Serial constraints cleared: none — no claimed card in this area names this file
Pre-claim lane: domain:devx per triage 7232897379; path ui/packages/app-shell/src/*.test.ts, test only, stays in this seat (留道).
Pre-claim deps: none named.
Prior rulings read: check-prior-rulings.mjs --card 38101 at 10321fa: 0 ruling comments in the thread; tier-3 ADR candidates are term matches (ADR-0061 D2 etc.), none on this ratchet. Card Acceptance verbatim: "The ratchet keeps its teeth" and "No timeout is raised to hide it."
{
"issue": 38101,
"status": "done",
"branch": "claude/issue-38101-bearer-ratchet-scan-speed",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38148",
"session": "session_016WV4cxRDKprCtjpEdtiPFW",
"premise_still_valid": true,
"summary": "Head 1334197b, one file: ui/packages/app-shell/src/sameServerFetch.bearer.ratchet.test.ts (+20/-3; 414 -> 431 lines). The scan was already memoised across its two cases, so the time was all TypeScript parse. Profile on this box: 2464 files, about 41 MB; walk 22 ms, read 146 ms, parse about 3.5 s, AST visits about 0.2 s. Two fixes. First, a pre-parse skip (MAY_HOLD_A_COUNTED_CALL = /\\bfetch\\b|sharedGetJson/): every counted transport is matched on written text that contains one of those tokens, and 397 of 2464 files are kept. Second, the parse runs with jsDocParsingMode ParseNone and setParentNodes false; the detector reads neither, and every getText/getStart call is handed sf. A new assertion pins the skip: every positive detector case must pass the filter. Scanned set and counted rows are unchanged: a temporary unfiltered-vs-filtered comparison read FILES 2464 ROWFILES 15 CALLS 21 EQUAL true, against both commits, and the exact-row case was green before and after. No timeout or config raised, and no product source touched.",
"tests": "Timings on a shared 4-core box (load about 4) under os-verify-lock. Before (origin/main 5b8ca361): 5291 ms for the case, and 5394/5420 ms for a base copy run in the same process. After: 2060/1422 ms in that same sequential pair (--maxWorkers=1 --no-file-parallelism), a ratio of 0.26-0.38, which projects to about 4-5.8 s on a CI shard against the 15202 ms reading. The CI shard figure itself is NOT MEASURED until Test UI reports on PR 38148. Final run on 1334197b: Tests 4 passed (4). Ablation 1 (on disk, restored, git status clean): appended `await fetch('/api/v1/x', { credentials: 'include' })` to ui/packages/fields/src/FieldEditWidget.tsx, a file with no fetch token before the edit. Result: ABL_EXIT=1; the counted-row case was red with `packages/fields/src/FieldEditWidget.tsx:495 :: fetch('/api/v1/x', …)` and Tests 1 failed | 3 passed. Ablation 2: narrowing the filter to /sharedGetJson/ turned the detector case red (kept: false) along with the exact-row case; VERDICT command-exit 1. app-shell declares no typecheck script, so none was run.",
"gates": "Local, at head 1334197b: dispatch-gates --commands derived 27 families, all exit 0, with each exit captured before any pipe. They include check:cross-package-test-inputs, check:nul-bytes, check:test-source-alias, check:type-check-coverage, check:type-check-debt, check:published-files, check-comment-mask-corpus and check-sdui-manifest (+self-test). `pnpm --dir ui exec vitest run scripts/` ran under the lock: Test Files 172 passed | 2 skipped, Tests 5144 passed | 2 skipped, VERDICT command-exit 0. The --ran reconciliation reads: 27 derived, 27 run, 0 NOT-MEASURED (a DERIVED zero). overlap-check: VERDICT clean exit 0 (merges cleanly onto origin/main 0e361201). CI check-runs on PR 38148: in_progress, not read at report time.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 relay strokes. (1) pr_create: POST /repos/objectstack-ai/objectstack/pulls (draft), POST /issues/38148/assignees [os-elon-musk], POST /issues/38148/labels [skip-changeset]; read-back identical, 4608 bytes. (2) os-dev-report comment on issue 38101 via post-stamped.mjs. Plus git push to the branch (not REST).",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
Landed · 2026-11-28T05:32Z · PR #38148 merged ebcec5c3fc at 2026-11-28T05:31Z (Fixes #38101). ACCEPT: in-area self-review on the PR (test only, ≤50 lines, Clause-②: no).
What changed: the same-server bearer ratchet test skips files holding neither fetch nor sharedGetJson before parsing, and parses without JSDoc or parent links; the counted rows are unchanged (15 files / 21 calls) and the file ran in 3955 ms on CI against 15202 ms before.
Card state:pm:dispatched comes off in this stroke.
Activity
objectstack-fleet commentedon Nov 28, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:fleet · domain:devx · Bug · p2 · pm:queue · size S; rationale: the bearer-ratchet case scans the whole
uitree (about 5 s locally, about 15 s on a CI shard) in a required check, whatever the diff touches, the same shape as #38072. It is a timeout risk with no queue ejection recorded yet, so p2. It rises to p1 if it ejects a queue build or turnsmainred. Tests sit in area:fleet (area:ux → area:fleet), linked under topic #38081. Recorded 2026-11-28T03:13Z.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW
Claim: PM loop round 1
Session:
session_016WV4cxRDKprCtjpEdtiPFWAccount:
os-elon-muskBranch:
claude/issue-38101-bearer-ratchet-scan-speedWorktree:
objectstack-issue-38101Domain:
domain:devxSeat:
repo:objectstack#1Area:
o1-FFile surface:
ui/packages/app-shell/src/sameServerFetch.bearer.ratchet.test.ts(scan shared across the file's cases, or narrowed); ⛔ no timeout raised, no product sourceContainer & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility:
ui/packages/app-shell/src/sameServerFetch.bearer.ratchet.test.ts in objectstack (the "every bare cookie-only call is a counted row" case scans the whole ui source tree) | none | every PR's required Test UI (1/16); measured job 140828751977 (15202 ms) on PR #38089Thread-read: 7232897379
Premise: holds (card measures 5215 ms locally, 15202 ms on CI; file present on 10321fa)
Serial constraints cleared:
none — no claimed card in this area names this filePre-claim lane:
domain:devxper triage 7232897379; pathui/packages/app-shell/src/*.test.ts, test only, stays in this seat (留道).Pre-claim deps: none named.
Prior rulings read:
check-prior-rulings.mjs --card 38101at 10321fa: 0 ruling comments in the thread; tier-3 ADR candidates are term matches (ADR-0061 D2 etc.), none on this ratchet. Card Acceptance verbatim: "The ratchet keeps its teeth" and "No timeout is raised to hide it."objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW
os-dev-report
{ "issue": 38101, "status": "done", "branch": "claude/issue-38101-bearer-ratchet-scan-speed", "pr": "https://github.com/objectstack-ai/objectstack/pull/38148", "session": "session_016WV4cxRDKprCtjpEdtiPFW", "premise_still_valid": true, "summary": "Head 1334197b, one file: ui/packages/app-shell/src/sameServerFetch.bearer.ratchet.test.ts (+20/-3; 414 -> 431 lines). The scan was already memoised across its two cases, so the time was all TypeScript parse. Profile on this box: 2464 files, about 41 MB; walk 22 ms, read 146 ms, parse about 3.5 s, AST visits about 0.2 s. Two fixes. First, a pre-parse skip (MAY_HOLD_A_COUNTED_CALL = /\\bfetch\\b|sharedGetJson/): every counted transport is matched on written text that contains one of those tokens, and 397 of 2464 files are kept. Second, the parse runs with jsDocParsingMode ParseNone and setParentNodes false; the detector reads neither, and every getText/getStart call is handed sf. A new assertion pins the skip: every positive detector case must pass the filter. Scanned set and counted rows are unchanged: a temporary unfiltered-vs-filtered comparison read FILES 2464 ROWFILES 15 CALLS 21 EQUAL true, against both commits, and the exact-row case was green before and after. No timeout or config raised, and no product source touched.", "tests": "Timings on a shared 4-core box (load about 4) under os-verify-lock. Before (origin/main 5b8ca361): 5291 ms for the case, and 5394/5420 ms for a base copy run in the same process. After: 2060/1422 ms in that same sequential pair (--maxWorkers=1 --no-file-parallelism), a ratio of 0.26-0.38, which projects to about 4-5.8 s on a CI shard against the 15202 ms reading. The CI shard figure itself is NOT MEASURED until Test UI reports on PR 38148. Final run on 1334197b: Tests 4 passed (4). Ablation 1 (on disk, restored, git status clean): appended `await fetch('/api/v1/x', { credentials: 'include' })` to ui/packages/fields/src/FieldEditWidget.tsx, a file with no fetch token before the edit. Result: ABL_EXIT=1; the counted-row case was red with `packages/fields/src/FieldEditWidget.tsx:495 :: fetch('/api/v1/x', …)` and Tests 1 failed | 3 passed. Ablation 2: narrowing the filter to /sharedGetJson/ turned the detector case red (kept: false) along with the exact-row case; VERDICT command-exit 1. app-shell declares no typecheck script, so none was run.", "gates": "Local, at head 1334197b: dispatch-gates --commands derived 27 families, all exit 0, with each exit captured before any pipe. They include check:cross-package-test-inputs, check:nul-bytes, check:test-source-alias, check:type-check-coverage, check:type-check-debt, check:published-files, check-comment-mask-corpus and check-sdui-manifest (+self-test). `pnpm --dir ui exec vitest run scripts/` ran under the lock: Test Files 172 passed | 2 skipped, Tests 5144 passed | 2 skipped, VERDICT command-exit 0. The --ran reconciliation reads: 27 derived, 27 run, 0 NOT-MEASURED (a DERIVED zero). overlap-check: VERDICT clean exit 0 (merges cleanly onto origin/main 0e361201). CI check-runs on PR 38148: in_progress, not read at report time.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 relay strokes. (1) pr_create: POST /repos/objectstack-ai/objectstack/pulls (draft), POST /issues/38148/assignees [os-elon-musk], POST /issues/38148/labels [skip-changeset]; read-back identical, 4608 bytes. (2) os-dev-report comment on issue 38101 via post-stamped.mjs. Plus git push to the branch (not REST).", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }Generated by Claude Code
objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW
Landed · 2026-11-28T05:32Z · PR #38148 merged
ebcec5c3fcat 2026-11-28T05:31Z (Fixes #38101). ACCEPT: in-area self-review on the PR (test only, ≤50 lines,Clause-②: no).fetchnorsharedGetJsonbefore parsing, and parses without JSDoc or parent links; the counted rows are unchanged (15 files / 21 calls) and the file ran in 3955 ms on CI against 15202 ms before.pm:dispatchedcomes off in this stroke.