Skip to content

refactor(harness): delete unused browser graph topology (SAP-3090) - #908

Open
ynadge wants to merge 1 commit into
yashnadge/sap-3090-remove-legacy-browser-entrypointsfrom
yashnadge/sap-3090-delete-browser-graph-topology
Open

refactor(harness): delete unused browser graph topology (SAP-3090)#908
ynadge wants to merge 1 commit into
yashnadge/sap-3090-remove-legacy-browser-entrypointsfrom
yashnadge/sap-3090-delete-browser-graph-topology

Conversation

@ynadge

@ynadge ynadge commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Primary change type

  • Bug fix
  • Documentation
  • Feature
  • Tests
  • Dependency update
  • Maintenance or refactor

Problem and motivation

After shell entry points were removed, the old project renderer, loaders, topology and mock cache had no supported browser consumers. Keeping them made the retired protocol and ownership boundary ambiguous.

Summary and scope

Delete the unused graph components, parser/layout/navigation/grouping helpers, API methods, mock projection, announcements, graph-only fixtures and tests. Move retained viewport coverage to its neutral owner and give retained styles Agent Map names. Request counters observe actual legacy HTTP paths before boot. Most of this diff is deletion; per-agent Canvas and shared viewport math remain in use.

Related work

Related issue or discussion: SAP-3090. Part of the authorized cleanup stack above #892 and #893, targeting main. Human review follows the complete stack. Implementation and PR creation do not authorize merging or releasing it.

Validation

Verification on the cumulative implementation at cab477b5 (each earlier boundary also passed its affected build/typecheck and focused checks):

pnpm build — passed
pnpm typecheck — passed
pnpm lint — passed (existing warnings)
pnpm test — stops at the unchanged agent-core unreadable-directory test on this VM
pnpm --filter @sapiom/harness exec vitest run --maxWorkers=2 — 3,840 passed, 2 skipped
pnpm --filter @sapiom/harness test:perf — 10 passed
pnpm -r --filter @sapiom/mcp --filter @sapiom/cli --filter @sapiom/harness-desktop test — passed (179 + 73 + 205 cases; 3 MCP skips)
pnpm terminology:check — passed
pnpm provider-copy:check — passed
pnpm examples:check:test — 178 passed
pnpm pr-labeler:check — passed
pnpm pr-ci-security:check — passed

The root test failure reproduces on unchanged prior code; it is not treated as a green root run. The final retirement record includes artifact hashes, request-observation scope and all local limitations.

pnpm --filter @sapiom/harness test:ui --config /home/vercel-sandbox/sapiom/.context/sap-3089/playwright.config.mjs --workers=3 — 625/627 passed; two Chrome target crashes
pnpm --filter @sapiom/harness test:ui --config /home/vercel-sandbox/sapiom/.context/sap-3089/playwright.config.mjs --workers=2 template-harness — full affected file passed 23/23 unchanged
pnpm --filter @sapiom/harness test:canvas --config /home/vercel-sandbox/sapiom/.context/sap-3090-3091/playwright-canvas.config.mjs --workers=2 — 15 passed
node packages/harness-desktop/scripts/pack.mjs --linux — passed with copied dependencies and output redirected to task storage
bash packages/harness-desktop/scripts/smoke.sh — fresh linux-unpacked artifact passed 16 checks, 1 Windows-only skip
AppImage --appimage-extract-and-run --smoke --no-sandbox under Xvfb and the same isolated smoke setup — passed 16 checks, 1 skip on isolated rerun

Browser checks used installed Google Chrome, isolated TMPDIR and E2E_PORT=5497; the override changes only the executable, temporary output/report paths and Vite invocation. The package's 195 Harness runtime/assets match the clean build byte-for-byte. Its saved-map check records legacy read/refresh/navigation requests 0/0/0, direct removed routes 404/404/404, and unchanged map/history.

The first AppImage run failed session-create with a preexisting PROJECT_SESSION_SCOPE_UNAVAILABLE retention race; the identical artifact passed an isolated rerun. The initial failure and unchanged source ancestry are preserved in the record, with a separate follow-up test/fix outline. This cleanup does not fix that race. Signed macOS installer/upgrade evidence remains the SAP-3086 release gate.

Tests and documentation

All 1,124 browser unit cases passed at this boundary. All 48 focused browser cases covering authority, map layout/navigation/packing, project altitude and mobile passed. Retained viewport and analytics redaction tests passed. The retirement record documents the zero-request observation scope.

Compatibility and release impact

  • Breaking or externally visible changes: No additional public behavior change beyond the preceding browser layer. Removed methods were internal browser implementation; durable APIs and the independent per-agent Canvas remain.
  • Changeset: N/A — internal deletion is included in the preceding Harness browser patch changeset.

Security

  • I have not included secrets, credentials, private data, or unsanitized logs.
  • This pull request does not publicly disclose a suspected vulnerability. I will follow the Security Policy for private reporting.

AI assistance

  • I did not use AI assistance for this change.
  • I used AI assistance and have described it below.

Codex implemented the cleanup and test/doc migrations, traced retained callers, and checked the resulting diffs. Automated checks above and independent read-only review provide implementation evidence; maintainer review is still required.

Checklist

  • I read CONTRIBUTING.md, and this contribution follows the direct-PR or issue-first policy.
  • This pull request addresses one focused problem and contains no unrelated cleanup.
  • I added or updated tests, or explained above why tests are not applicable.
  • I ran the relevant build, typecheck, lint, and test commands, or explained any N/A checks above.
  • I updated documentation for user-facing changes, or marked it N/A above.
  • I added a Changeset for a published-package change, or explained why it is not applicable.
  • I can explain and maintain every submitted change, including any AI-assisted work.

@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: cdbce0c9-c76f-4361-ae53-bf195a55b019

📥 Commits

Reviewing files that changed from the base of the PR and between 42fcacc and 4c4b719.

📒 Files selected for processing (29)
  • docs/plans/agent-studio-plan-first-agent-map/authority-retirement.md
  • packages/harness/web/e2e/agent-map-authority.spec.ts
  • packages/harness/web/src/components/AgentMapCanvas.tsx
  • packages/harness/web/src/components/AgentMapInspector.tsx
  • packages/harness/web/src/components/AgentMapPane.tsx
  • packages/harness/web/src/components/SystemGraphCanvas.tsx
  • packages/harness/web/src/components/WorkflowsRail.tsx
  • packages/harness/web/src/components/WorkspaceGraphView.test.ts
  • packages/harness/web/src/components/WorkspaceGraphView.tsx
  • packages/harness/web/src/lib/analytics/redaction-gate.test.ts
  • packages/harness/web/src/lib/api.test.ts
  • packages/harness/web/src/lib/api.ts
  • packages/harness/web/src/lib/graph-viewport.test.ts
  • packages/harness/web/src/lib/system-graph-announcements.ts
  • packages/harness/web/src/lib/system-graph-groups.test.ts
  • packages/harness/web/src/lib/system-graph-groups.ts
  • packages/harness/web/src/lib/system-graph-layout.test.ts
  • packages/harness/web/src/lib/system-graph-layout.ts
  • packages/harness/web/src/lib/system-graph-loader.test.ts
  • packages/harness/web/src/lib/system-graph-loader.ts
  • packages/harness/web/src/lib/system-graph-navigation.test.ts
  • packages/harness/web/src/lib/system-graph-navigation.ts
  • packages/harness/web/src/lib/system-graph-viewport.ts
  • packages/harness/web/src/lib/system-graph.test.ts
  • packages/harness/web/src/lib/system-graph.ts
  • packages/harness/web/src/lib/use-agent-map-layout.ts
  • packages/harness/web/src/lib/use-harness-state.ts
  • packages/harness/web/src/styles.css
  • scripts/agent-studio-terminology-allowlist.json

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ynadge
ynadge added this pull request to stack #894 September 9, 2026 23:15
@ynadge
ynadge marked this pull request as ready for review September 10, 2026 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant