Guard graph rendering at scale #158

Merged
lost-rob0t merged 1 commit from agent/guard-graph-scale into main 2026-08-08 15:46:09 +00:00
lost-rob0t commented 2026-08-08 15:44:24 +00:00 (Migrated from github.com)

What changed

  • benchmarked Cytoscape insertion and layout behavior across graph sizes
  • block graph construction above measured document, node, and element limits
  • switch oversized force layouts to grid
  • apply dataset scope before graph construction
  • fix dataset and document graph navigation
  • create focused graphs from filtered corpus searches
  • add the repeatable graph benchmark and audit report

Root cause

The graph route built the complete active corpus before applying dataset filters, then replaced every Cytoscape element and ran an expensive force layout. Dataset links also inherited the currently active custom graph, which could make valid datasets appear empty.

Validation

  • 335 unit and integration tests
  • formatting, ESLint, TypeScript, package boundaries, and static checks
  • production Vite build
  • repeatable graph benchmark

Browser E2E was attempted locally but Playwright Chromium is not installed in the execution environment, so those tests did not reach application code.

## What changed - benchmarked Cytoscape insertion and layout behavior across graph sizes - block graph construction above measured document, node, and element limits - switch oversized force layouts to grid - apply dataset scope before graph construction - fix dataset and document graph navigation - create focused graphs from filtered corpus searches - add the repeatable graph benchmark and audit report ## Root cause The graph route built the complete active corpus before applying dataset filters, then replaced every Cytoscape element and ran an expensive force layout. Dataset links also inherited the currently active custom graph, which could make valid datasets appear empty. ## Validation - 335 unit and integration tests - formatting, ESLint, TypeScript, package boundaries, and static checks - production Vite build - repeatable graph benchmark Browser E2E was attempted locally but Playwright Chromium is not installed in the execution environment, so those tests did not reach application code.
Sign in to join this conversation.
No description provided.