feat: graph visualization scaling + auto-publish governance - #3
Merged
Merged
Conversation
Add clustered graph layout with interactive filtering (categories, trust threshold, source API, date range, focus mode) and pre-publish governance guardrails (daily caps, required fields, duplicate rejection, snapshots). New files: graph-utils.ts, publish-validation.ts, governance.ts, snapshot.ts, ClusterNode.tsx, FilterPanel.tsx, governance CLI, snapshot CLI. Modified: types.ts, layout.ts, graph-store.ts, audit.ts, batch.ts, GraphCanvas, TrustNode, GraphToolbar, AppShell, CLI index. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…liance publish-validation.ts imports from src/agent/ (audit.ts, dedup.ts) which use Node.js fs/path. The app tsconfig excludes src/agent/ and has no Node types, so placing it in src/domain/ caused tsc -b to fail. Also fix GovernanceConfig cast to use double-cast via unknown. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.mpsi-governance.json; batch import auto-snapshots and aborts on validation errors unless--forceresearch/snapshots/with save/list/show/diff/rollback CLI commandsaiRationale,validationErrors, andcap-exceededoutcomeNew files (8)
src/lib/graph-utils.tssrc/domain/publish-validation.tssrc/agent/governance.ts.mpsi-governance.jsonconfig load/savesrc/agent/snapshot.tssrc/components/graph/ClusterNode.tsxsrc/components/graph/FilterPanel.tsxsrc/cli/commands/governance.tsgovernance config/validate/audit/statsCLIsrc/cli/commands/snapshot.tssnapshot save/list/show/diff/rollbackCLIModified files (13)
types.ts, layout.ts, graph-store.ts, audit.ts, batch.ts, GraphCanvas.tsx, TrustNode.tsx, GraphToolbar.tsx, AppShell.tsx, index.css, CLI index, README.md, CLI.md
Test plan
npx tsc --noEmitpasses (verified)npx eslint src/ --quietpasses (verified)npx vite buildsucceeds (verified)npm run mpsi -- governance config --showdisplays defaultsnpm run mpsi -- snapshot savecreates snapshot inresearch/snapshots/npm run mpsi -- snapshot listlists snapshotsnpm run mpsi -- batch import --input test.jsonruns publish gate, auto-snapshots🤖 Generated with Claude Code