GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #14060

New issue
Copy link
New issue
Copy link
In progress
In progress
pm-aggregator: search takes 33s and the registry twin ships 6.7 MB — bound the search + registry reads#14060
Copy link
Labels
epic/pm-stack-maintenancePer-project maintenance for pm-stackprimary-parent/pm-stack-maintenancePrimary parent epic pm-stack-maintenance (design §3)queue/queuedHas a queued queue taskstatus/in-reviewstray-workStray work: not tied to a design or roadmap item (AUDIT-7 Lane 7)

Description

@developing-today-fleet
developing-today-fleet
bot
opened on Nov 24, 2026
Issue body actions

Finding (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)"
  }
}

Activity

Next
  1. developing-today commented on Nov 24, 2026

    @developing-today
    developing-todayBot
    on Nov 24, 2026 – with developing.today
    Contributor
    More actions

    CODE-5165

  2. dezren39
    added a parent issue on Nov 24, 2026
    • epic(pm-stack): maintenance #12458
  3. dezren39
    added
    epic/pm-stack-maintenancePer-project maintenance for pm-stack
    primary-parent/pm-stack-maintenancePrimary parent epic pm-stack-maintenance (design §3)
    stray-workStray work: not tied to a design or roadmap item (AUDIT-7 Lane 7)
    on Nov 24, 2026
  4. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    Member
    More actions

    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.

  5. dezren39
    added a commit that references this issue on Nov 24, 2026

    feat(pm-stack): repeatable search-path profiler + baseline (slice #14060

    6aeb6ab
  6. developing-today
    added
    status:in-review
    on Nov 24, 2026
  7. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    Member
    More actions

    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.

  8. developing-today-fleet
    added 2 commits that reference this issue on Nov 26, 2026

    pm-service: hosted search over an FTS5 projection of the pool (CF-7, #…

    a495902

    Merge pull request #14525 from developing-today/code-g/23609-search-p…

    192bf78
  9. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    ContributorAuthor
    More actions

    🤖 Agent note · triage (queue task 24533, lane oc-code-07)

    • Verified: 2026-11-26 via gh. pm-aggregator: search takes 33s and the registry twin ships 6.7 MB — bound the search + registry reads #14060 is OPEN and still live. Slice 1 merged as PR feat(pm-stack): repeatable search-path profiler + baseline (#14060 slice 1) #14525 (repeatable search-path profiler and baseline).
    • Baseline from feat(pm-stack): repeatable search-path profiler + baseline (#14060 slice 1) #14525: cold floor about 450–485 ms on both routes. Warm JSON is about 1 ms unloaded, but warm HTML is about 335–452 ms because server-side rendering dominates /search.
    • Still open (slice 2): the registry and sessions targets, the search read bound and pagination, and the 6.7 MB registry twin. Those are not started.
    • Verdict: still live, and only partly delivered. Slice 2 needs its own scoped fix packet, sized from the profiler's remaining gap (per-stage instrumentation of the shared searchContext path). No implementation was done in this triage.
    • Labels: status:in-review is left as is because slice 1 is landed. No queue/queued label is present.
  10. dezren39
    added a commit that references this issue on Nov 26, 2026

    fix(pm-aggregator): bound search + registry twin payloads (#14060 sli…

    7ffad7d
  11. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    Member
    More actions

    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.

  12. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    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.

  13. 33 remaining items

  14. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    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.

  15. developing-today-fleet
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    status/triagedTriaged and routed (see agent note)
    on Nov 27, 2026
  16. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    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.

  17. developing-today-fleet
    added a commit that references this issue on Nov 27, 2026

    Merge pull request #16003 from developing-today/agent-next-26-local/2…

    0fcb34f
  18. developing-today-fleet
    added
    status/in-review
    queue/queuedHas a queued queue task
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 27, 2026
  19. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    ContributorAuthor
    More actions

    Cold-registry first-hit slice landed: PR #16003 merged as 0fcb34fcfedd6e3cb8fdaec68d34c425b5767ee0.

    • Post-merge done check: developing-today/fleet#45966355737 succeeded on main; deterministic 28,479-record profile measured 53.594 ms cold /sessions and 2.932 ms warm median (well below the 2-second target). It reports only timings and counts.
    • Focused remote regression run: developing-today/fleet#45965463997 — 2 passed, 0 failed.
    • fix(pm-aggregator): index registry search candidates (#15785 slice 3) #15983 is the preceding indexed-search slice; fix(pm-aggregator): bound search + registry twin payloads (#14060 slice 2) #15813 bounds search/registry payloads.

    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.

  20. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic/pm-stack-maintenancePer-project maintenance for pm-stackprimary-parent/pm-stack-maintenancePrimary parent epic pm-stack-maintenance (design §3)queue/queuedHas a queued queue taskstatus/in-reviewstray-workStray work: not tied to a design or roadmap item (AUDIT-7 Lane 7)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.