GeezerVison is showing github.com — pm-aggregator: search takes 33s and the registry twin ships 6.7 MB — bound the search + registry reads · Issue #14060 · developing-today/code
pm-aggregator: search takes 33s and the registry twin ships 6.7 MB — bound the search + registry reads #14060DescriptionFinding (PM pages review, 2026-11-23): dashboard Search is effectively unusable, and the Sessions/registry read path is far too heavy.
Measured live from the laptop's own loopback (2026-11-24 ~03:2xZ, warm server):
GET /search?q=fleet — 33.5 s, 941 KB HTML.
GET /api/search.json?q=fleet — 5.6 s, 901 KB JSON for one common word.
GET /sessions — timed out at 30 s on first hit (cold registry), 36 s in a real browser capture; warm it answers in 0.09 s. Any restart or cache expiry makes the page hang for half a minute.
GET /api/registry.json — 6.7 MB payload (28,479 session records) as the Sessions page's machine twin.
- The Sessions page renders 100 session cards, each carrying a full action panel (act-as selector, poke, answer box, stop-session two-step) — a 10,000 px DOM for a lookup page.
Ask: bound the search read (index or precomputed projection instead of a full in-memory scan per query; paginate results; cap payload), precompute/cache the registry projection so no request waits on a cold merge, and slim the registry twin (window/pagination defaults that don't ship 28k records). Targets: search < 1 s, sessions first-hit < 2 s.
Review record: doc/2026-11-24T03-51-11Z_review_pm-stack-pages (screenshots/search.png, screenshots/sessions.png).
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-24T03:52:05Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Activitydeveloping-today commented on Nov 24, 2026 dezren39 commented on Nov 24, 2026 Triage verdict (tracking #14158, lane oc-code-07): valid performance defect with measured targets (search 33.5s, registry twin 6.7MB). Size: medium. Route as a feature slice: index or precomputed projection for search, paginate results and cap payload, cache the registry projection so requests do not wait on cold merges, and slim the registry twin by default. Acceptance: search under 1s, sessions first-hit under 2s, measured as in the issue. dezren39 commented on Nov 24, 2026 Slice 1 landed: PR #14525 — repeatable search-path profiler + baseline (queue task 23609, lane code-g).
Baseline (query fleet, spawned-fixtures, this laptop 2026-11-24):
- Cold floor ~450-485ms both routes, stable across 3 runs; bytes deterministic (1592B JSON / 23373B HTML).
- Warm JSON ~1ms unloaded (spikes to ~440ms when the laptop is under load, loadavg ~10+).
- Warm HTML ~335-452ms even when warm JSON is ~1ms: server-side rendering dominates /search independent of source reads.
- Reproduce:
cd pm-stack/aggregator && bun run scripts/search-profile.ts --query fleet --cold-runs 1 --warm-runs 3
Remaining gap (for slice 2): splitting the shared searchContext path needs in-process instrumentation; the harness records per-route totals + the HTML-minus-JSON render delta only. developing-today-fleet commented on Nov 26, 2026 ContributorAuthor More actions 🤖 Agent note · triage (queue task 24533, lane oc-code-07)
dezren39 commented on Nov 26, 2026 Slice 2 in flight (lane xaltha, queue task 24920): PR #15813 — payload bounds for search + registry twin.
- /api/search.json paginated + capped (limit/offset, default 50, max 200; total = full match count).
- /search HTML renders the first bounded page with the true total in the heading.
- /api/registry.json identities scoped to the returned page — identitiesFromRecords emits one identity per record, so the twin shipped ~28k identity entries (the bulk of the measured 6.7 MB) beside a 100-record page; the full list remains at /api/author-identities.
Verification: remote dispatch via the fleet-command.yml fallback (#13185 blocks fleet queue dispatch), run 45913395070 — result to follow on the PR.
Still open after this slice: the cold-registry merge wait (sessions first-hit) and the per-query in-memory scan itself — this slice bounds what search ships/renders, not the scan. developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions
Fresh resume update (2026-11-27): PR #15813 branch xaltha/14060-bound-search-registry now includes current origin/main through merge commit 8a4f680d593; the diff remains the four slice-2 files and git diff --check origin/main...HEAD is clean. The refreshed focused remote test run is dezren39/fleet#45916852515 on fleet-personal; its execute-target command step succeeded, but the workflow is still in cleanup and has not reached a terminal result. The previous head run developing-today/fleet#45913395070 reported 37 passed, 0 failed across the three focused suites. Resume when the refreshed run is terminal: if successful, merge PR #15813 with a merge commit; if failed, fix on its branch. The issue remains open after slice 2 for the cold-registry merge wait and per-query scan. developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions
Cold-registry follow-up claim updated: task 26143 has been re-claimed by agent-next-26-local from the queue after the blocker was cleared. This lane did not modify that task's files; its earlier blocked-before-edit checkpoint should be refreshed by the current claimant before edits. developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions
Cold-registry first-hit measured and bounded: PR #16003 shares the cold feed load and registry assembly across concurrent /sessions readers; unchanged source snapshots reuse the projection, and atomic feed replacement invalidates it.
- Fleet run: developing-today/fleet#45965463997 — targeted tests: 2 passed, 0 failed.
- Deterministic 28,479-record route profile: 48.497 ms cold
/sessions, 4.526 ms warm median (under the 2-second target). Cold stages: feed stat 0.092 ms, read 2.142 ms, parse 6.640 ms, sanitize 4.683 ms, laptop map 0.265 ms, registry merge 22.233 ms; query 4.383 ms, identity mapping 1.520 ms, actions lookup 0.508 ms, render 2.432 ms. Output contains no record content.
- PR fix(pm-aggregator): index registry search candidates (#15785 slice 3) #15983 supplies the preceding indexed-search slice; PR fix(pm-aggregator): bound search + registry twin payloads (#14060 slice 2) #15813 bounds search/registry payloads.
The issue remains open for a separate reduction of the Sessions page's 100 action-heavy cards. After PR #16003, cd pm-stack/aggregator && bun run scripts/registry-profile-14060.ts --records 28479 --cold-runs 1 --warm-runs 3 measures the first-hit response path below 2 seconds. developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions
Cold-registry first-hit slice landed: PR #16003 merged as 0fcb34fcfedd6e3cb8fdaec68d34c425b5767ee0.
The issue remains open for the separate 100-card Sessions page payload/DOM reduction. Follow-up task 26160 is queued in repo-health-code-pilot and owns that remaining work. developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions Sessions card-cost slice outcome
PR #16059 defers live-session action forms from the default /sessions view while keeping all 100 records and adding a manage deep link per live card. Selecting a session by ?id= still renders its supported forms.
- Before: Fleet baseline profile 45976811158, commit
6ea81430fc5, with 28,479 synthetic records: 100 cards, 300 action forms, 242,268 HTML bytes, 20.283 ms cold render median / 7.465 ms warm render median.
- After: Fleet profile 45975415700, commit
623d79a9bd7: 100 cards, 0 default action forms, 82,208 HTML bytes (66% smaller), 5.516 ms cold render median / 0.998 ms warm render median. Both profiles report outputContainsRecordContent=false.
- Focused Sessions tests 45974702182: 18 pass, 0 fail. Cold-reader tests 45974907872: 2 pass, 0 fail.
This addresses the remaining default action-panel cost; search/index, API pagination, and cold-registry behavior were unchanged.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|