Skip to content

feat(scoring): Phase 3c attack graph polish#284

Merged
hello-args merged 2 commits into
developfrom
feature/phase-3c-graph-polish
Jun 17, 2026
Merged

feat(scoring): Phase 3c attack graph polish#284
hello-args merged 2 commits into
developfrom
feature/phase-3c-graph-polish

Conversation

@hello-args

@hello-args hello-args commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Closes #286

Summary

  • FixKind registry — expanded fixes/registry.yaml + graph_fixes.py; template recommended_fixes on every matched path
  • Runtime mutatesgraph_mutate.py applies registry mutates, re-matches templates, and reports fix_simulation / effective_fixes on counterfactual payloads
  • Inventory graphgraph_inventory.py attaches inventory layer cross-server edges (W015 read→write, W016 tool shadow) when fleet inventory ≥2
  • Counterfactuals — default-on (--no-attack-graph-counterfactuals to disable); trust-layer-shaped remediation on template findings
  • Compression — default-on (--no-attack-graph-compress-ui); dedupes/caps paths in report export for dashboard readability
  • Dashboard — layer filter toolbar, policy/inferred/runtime edge styling, suggested fixes + counterfactual blocks on path cards
  • Doctormcts doctor --suggest-fixes --report scan.json lists template remediations from a prior scan

Test plan

  • uv run pytest tests/scoring/test_graph_phase_3c.py — 14 passed
  • Full suite — 842 passed
  • uv run ruff check + ruff format --check
  • uv run python scripts/run_regression.py --strict --servers-root tests/fixtures/monorepo-mini — R-01–R-25 pass

Add FixKind registry resolution, optional counterfactual remediation and path
compression, dashboard layer filters with policy/inferred edge styling, and
doctor --suggest-fixes for template remediations from scan reports.
…ults)

Apply FixKind registry mutates at runtime with template re-match simulation,
attach inventory-layer cross-server edges when fleet inventory is present, and
enable counterfactuals plus UI path compression by default with CLI opt-out.
@hello-args hello-args merged commit 4ce92b9 into develop Jun 17, 2026
19 checks passed
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.

[FEATURE] Finish attack graph Phase 3c — FixKind mutates, inventory graph, default counterfactuals

1 participant