Repository navigation
Optimize slow dashboard pages and simplify Model routing - #19015
Conversation
Consolidate the six deployed-data performance workstreams into one reviewed implementation. Share page-bound dependency graphs and campaign declarations; retain scoped canonical reads, evidence quality, authored limits, previews, pagination and reactive lifetimes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Dashboard dead viewsDead element views (0):
|
|
Combined-build Campaigns captures, not mocked views: the complete deployed snapshot was ingested through the production worker, all canonical collection counts matched the successful combined Lighthouse run, and the 11-row Campaigns inventory finished rendering before desktop (1440×1000) and mobile (390×844) capture. The worker evidence clock matches the pinned snapshot. Images are attached only, never committed. |
|
Final populated captures for the shared JSON page binding in Repository overview and Campaigns, at desktop and mobile widths.
Three alternating before/after pairs used the same 575,582 canonical records, a fresh Chromium process per variant, blocked service workers, and a frozen evidence clock. Readiness includes every complete page/view result, excludes ingestion and the quiet wait, and ignores partial previews. Complete default and Table payloads, including all rows and metadata, deep-match across all six variants. Page subscriptions fell 5→1 and 4→1 respectively. These are isolated shared-binding measurements of base |
Integrate the reviewed page reduction from #19014 while preserving run-scoped accounting correlation, authored detail bounds and canonical Audit-index execution. Regenerate query catalogs and retarget contracts to health, models, costs, problems and routing runs. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Integrated Model routing overviewThe five-view simplification from #19014 is collected here in These are full-site captures from the integrated build, with experimental pages explicitly enabled and the pinned deployed dataset ingested through the production browser worker. They are not mocked pages or source-branch screenshots. The evidence clock and canonical counts match the previous combined-build snapshot. The snapshot has 381 identified routing-session runs and two weekly cost groups, but no positively routed selections or recorded problems: Health, Models picked and Problems correctly show empty states rather than manufacturing evidence. Positive routing and resolution-failure states are covered separately by the populated production-site browser fixtures on IndexedDB and SQLite. Chart and Table/Cards remain the existing page-level presentation modes; five declared views does not mean five simultaneous panels. The cost chart is observational and retains unknown/gap semantics. Known limitation: the shared presentation vocabulary does not provide a chart's complete-run count and sample-status columns in Table mode. Those fields remain in Desktop chartsMobile chartsDesktop tablesMobile tables |










Summary
Collects all five performance workstreams into one PR covering six slow pages: Repository overview, Campaigns, Campaign repositories, Domain runs, Model routing run detail, and Campaign workflows. Also integrates the reviewed Model routing overview reduction from 24 views to five in #19014.
query-binding: page: one abort-scoped canonical subscription and request-local dependency DAG, not competing worker result caches. Preserve presentation modes, phase/backend-eligible previews, independent pagination/continuation compilation scope, refresh and cleanup.campaign-workflow-declarations. Preserve raw identity and inactive/unknown declarations; keep execution/import quality separate, and remove redundant role filtering.byRunreads, preserving authored semantic limits and cross-run evidence.routing-rundeclaration deep-match the prior consolidated revision; run-key/event accounting correlation, the authored one-row detail bound and Audit-index regression guards are preserved.Both catalogs are regenerated from composed declarations. Overlapping estimator expectations are 74/88, 47/69, 44/63, retaining original ratio thresholds and quality assertions. No page-ID optimizer, persistent query cache, rollout/policy change, screenshot or profiling data is committed.
Source revisions
b88b01ac65ee9386d85e280f71aafbe92d4031a2ab045c73da25980add0a22a039a8f14202226c21812f42c87c8428d97626a6bfd03f177ef30b7c66, including6dbb636f8pagination/backend-preview correction4d7dab4fc5a25775313e6581b073bf07812fae4e644cce537a3e0a3090d3f1be7e8635c18ad131d55bbaf45af43371f48c4ceb1027f48cbd26cf872b; substantive deltabf676aa2f, integrated as245851498The competing Campaigns cache from closed #19006 is excluded. The original five source PRs are superseded by this consolidation; #19014 has been collected here but remains open. No PR has been merged.
Deployed-data evidence
Independently paired source-branch measurements, not an aggregate combined-build benchmark. Each pair used the same pinned, fully ingested 575,582-record snapshot and checked payload/evidence parity. Host contention means values must not be compared or summed across workstreams.
Repository overview/Campaigns final results use three complete alternating pairs (before/after, after/before, before/after), baseline
2de032495versus final runtime6dbb636f8;812f42c87changes tests only. Each variant used a fresh Chromium process, the same origin/profile, blocked service workers, a 1440×1000 viewport, and main/worker evidence clocks frozen at2026-10-19T18:09:55Z. Readiness includes every complete page/view result and completed DOM rendering; excludes ingestion, partial previews, the 400 ms quiet confirmation and subsequent Table interaction. Complete default and Table source objects, including every row and all metadata, deep-match across all variants. Subscriptions fall from 5→1 and 4→1 respectively. No server/browser/query errors. Snapshot manifest SHA-256:cce19a1f7237786b47a363678ea51e6a685e93a2eca21dd1bd80aac82b605808. Final paired evidence and four populated source-build desktop/mobile captures. Earlier interrupted/active-mode runs are superseded, not final evidence.Domain runs returns 25 view rows rather than 384,701 raw rows plus the view; routing reads the selected 99-record Audit partition instead of 138,032 audits.
Combined validation
Latest routing-integrated revision:
245851498186837fa078b34e30f3f54d21e63c51.TestModelResolutionContractUsesPostgrespasses against an isolated database, retaining failed-resolution Problems and run-link parity. No skipped-database result is counted as a pass.327bdb28950672a1a3230abcb3eb6a9f3ceac302bd505dbf97f37f57c2b85c97.The unrelated root documentation-contract failure remains: the landing-page test expects four hero paragraphs while main contains five; the aggregate test job cascades from it. A successful docs build is not a claim that this separate unit contract is green.
Model routing review and UI limitation
Health excludes runs without flagged agent-phase requests from the adherence denominator. Unknown outcomes/costs remain unknown, weekly medians below the sample threshold remain gaps, and cost is observational rather than causal. Problems keeps one row per run and kind, distinct causes, newest timed runs first and untimed runs last. Scope form, navigation, adapters, canonical/storage schemas and run detail remain unchanged by this integration.
Known acceptance gap: current chart/Table presentation does not expose the cost chart's complete-run count and sample-status columns in Table mode. Those fields remain in
routing-weekly-cost; no specialized JavaScript or competing query path was introduced. The five views are declared views using existing page modes, not five simultaneous panels.The integrated full-site review uses the pinned deployed snapshot through the actual browser worker. It contains 381 identified routing-session runs and two weekly cost groups, but no positively routed selections or recorded problems; Health, Models picked and Problems correctly show empty states. Positive routed and resolution-failure cases are covered by the production-site browser fixtures on both backends. Scope refresh, desktop/mobile containment and deployed-run drill-down pass without worker/browser/console errors.
Four integrated Model routing desktop/mobile full-site captures, combined-build Campaigns captures, and the paired source-build captures are published in this PR's conversation, outside the repository.