archsutra-ai 0.1.5 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -6
- package/README.md +83 -11
- package/dist/audit.js +125 -44
- package/dist/cli.js +184 -96
- package/dist/drift.js +29 -15
- package/dist/fsutil.js +117 -20
- package/dist/history.js +40 -0
- package/dist/html.js +10 -8
- package/dist/map.js +26 -5
- package/dist/mcp.js +70 -55
- package/dist/redact.js +24 -11
- package/dist/report.js +69 -19
- package/dist/rules-extra.js +59 -0
- package/dist/secret-patterns.js +69 -0
- package/dist/suppress.js +31 -19
- package/dist/verify.js +2 -2
- package/dist/write.js +71 -0
- package/docs/architecture/overview.html +29 -12
- package/docs/architecture/overview.md +2 -2
- package/docs/architecture/threat-model.html +28 -11
- package/docs/assets/charts/coverage-dark.svg +11 -0
- package/docs/assets/charts/coverage.svg +11 -0
- package/docs/assets/charts/finding-anatomy-dark.svg +20 -0
- package/docs/assets/charts/finding-anatomy.svg +20 -0
- package/docs/assets/charts/pipeline-dark.svg +13 -0
- package/docs/assets/charts/pipeline.svg +13 -0
- package/docs/assets/charts/precision-by-batch-dark.svg +12 -0
- package/docs/assets/charts/precision-by-batch.svg +12 -0
- package/docs/assets/charts/precision-by-rule-dark.svg +12 -0
- package/docs/assets/charts/precision-by-rule.svg +12 -0
- package/docs/assets/charts/sample-findings-by-severity-dark.svg +11 -0
- package/docs/assets/charts/sample-findings-by-severity.svg +11 -0
- package/docs/assets/charts/scan-time-dark.svg +11 -0
- package/docs/assets/charts/scan-time.svg +11 -0
- package/docs/assets/site.css +259 -138
- package/docs/assets/site.js +92 -6
- package/docs/community/good-first-issues.html +28 -11
- package/docs/compatibility/matrix.html +28 -11
- package/docs/compatibility/smoke-tests/index.html +28 -11
- package/docs/decisions/ADR-0001-deterministic-cli-plus-ide-skills.html +28 -11
- package/docs/guides/cheat-sheet.html +100 -0
- package/docs/guides/cheat-sheet.md +146 -0
- package/docs/guides/ci-recipes.html +170 -0
- package/docs/guides/ci-recipes.md +176 -0
- package/docs/guides/evidence-at-a-glance.html +93 -0
- package/docs/guides/evidence-at-a-glance.md +65 -0
- package/docs/guides/getting-started.html +151 -0
- package/docs/guides/getting-started.md +160 -0
- package/docs/guides/how-it-works.html +161 -0
- package/docs/guides/how-it-works.md +148 -0
- package/docs/guides/mcp-server.html +99 -0
- package/docs/guides/mcp-server.md +81 -0
- package/docs/guides/reading-a-report.html +119 -0
- package/docs/guides/reading-a-report.md +111 -0
- package/docs/guides/real-world-scenarios.html +287 -0
- package/docs/guides/real-world-scenarios.md +377 -0
- package/docs/handbook/01-executive-summary.html +30 -13
- package/docs/handbook/01-executive-summary.md +2 -2
- package/docs/handbook/02-functional-specification.html +30 -13
- package/docs/handbook/02-functional-specification.md +3 -3
- package/docs/handbook/03-technical-specification.html +31 -14
- package/docs/handbook/03-technical-specification.md +3 -3
- package/docs/handbook/04-architecture.html +29 -12
- package/docs/handbook/04-architecture.md +1 -1
- package/docs/handbook/05-user-guide.html +33 -15
- package/docs/handbook/05-user-guide.md +5 -4
- package/docs/handbook/06-cli-reference.html +52 -16
- package/docs/handbook/06-cli-reference.md +47 -4
- package/docs/handbook/07-security-privacy-legal.html +31 -12
- package/docs/handbook/07-security-privacy-legal.md +4 -0
- package/docs/handbook/08-testing-and-proof.html +32 -15
- package/docs/handbook/08-testing-and-proof.md +4 -4
- package/docs/handbook/09-compatibility-and-roadmap.html +29 -12
- package/docs/handbook/09-compatibility-and-roadmap.md +2 -1
- package/docs/handbook/10-contributor-guide.html +29 -12
- package/docs/handbook/10-contributor-guide.md +1 -1
- package/docs/handbook/11-glossary-and-faq.html +34 -13
- package/docs/handbook/11-glossary-and-faq.md +7 -1
- package/docs/handbook/12-rule-catalog.html +59 -19
- package/docs/handbook/12-rule-catalog.md +62 -5
- package/docs/handbook/13-trust-and-assurance.html +29 -12
- package/docs/handbook/13-trust-and-assurance.md +1 -1
- package/docs/handbook/14-real-world-evaluation.html +28 -11
- package/docs/handbook/15-supply-chain-and-release.html +28 -11
- package/docs/handbook/16-performance-and-quality-metrics.html +28 -11
- package/docs/handbook/16-performance-and-quality-metrics.md +1 -1
- package/docs/handbook/README.md +4 -2
- package/docs/handbook/index.html +31 -13
- package/docs/index.html +101 -51
- package/docs/legal/legal-review-brief.html +28 -11
- package/docs/legal/trademark-and-name-clearance.html +28 -11
- package/docs/proof/accessibility.html +28 -11
- package/docs/proof/benchmarks.json +9 -9
- package/docs/proof/benchmarks.md +4 -4
- package/docs/proof/test-results.txt +56 -40
- package/docs/rfc/0001-archsutra-v0.1.html +28 -11
- package/docs/sample-report/architecture-register.json +46 -0
- package/docs/sample-report/audit-report.html +123 -0
- package/docs/sample-report/audit-report.md +314 -0
- package/docs/sample-report/current-state.html +77 -0
- package/docs/sample-report/current-state.md +51 -0
- package/docs/sample-report/findings.json +478 -0
- package/docs/sample-report/findings.sarif +754 -0
- package/docs/sample-report/index.html +57 -0
- package/docs/sample-report/overview.md +11 -0
- package/docs/search-index.json +1 -0
- package/docs/sitemap.xml +39 -28
- package/llms.txt +11 -2
- package/package.json +3 -2
- package/schemas/findings.schema.json +4 -3
- package/skills/architecture-audit/SKILL.md +2 -2
- package/skills/architecture-audit/references/report-template.md +1 -1
- package/skills/architecture-verification/references/fitness-functions.md +1 -1
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
<meta name="description" content="Threat model (ArchSutra CLI and skills) - ArchSutra AI documentation.">
|
|
8
8
|
<link rel="canonical" href="https://shahvatsalofficial.github.io/archsutra-ai/architecture/threat-model.html">
|
|
9
9
|
<meta name="color-scheme" content="light dark">
|
|
10
|
+
<meta name="theme-color" content="#ffffff">
|
|
10
11
|
<meta property="og:type" content="article">
|
|
11
12
|
<meta property="og:title" content="Threat model (ArchSutra CLI and skills) | ArchSutra AI">
|
|
12
13
|
<meta property="og:description" content="Threat model (ArchSutra CLI and skills) - ArchSutra AI documentation.">
|
|
@@ -18,23 +19,34 @@
|
|
|
18
19
|
<meta name="author" content="Vatsal Shah">
|
|
19
20
|
<link rel="icon" href="../assets/favicon.svg" type="image/svg+xml">
|
|
20
21
|
<link rel="stylesheet" href="../assets/site.css">
|
|
21
|
-
<script>try{
|
|
22
|
+
<script>try{if(localStorage.getItem('as-theme')==='dark')document.documentElement.setAttribute('data-theme','dark')}catch(e){}</script>
|
|
22
23
|
<script type="application/ld+json">{"@context":"https://schema.org","@type":"TechArticle","headline":"Threat model (ArchSutra CLI and skills)","description":"Threat model (ArchSutra CLI and skills) - ArchSutra AI documentation.","author":{"@type":"Person","name":"Vatsal Shah","url":"https://shahvatsal.com"},"inLanguage":"en","isPartOf":{"@type":"WebSite","name":"ArchSutra AI","url":"https://shahvatsalofficial.github.io/archsutra-ai"}}</script>
|
|
23
24
|
</head>
|
|
24
|
-
<body class="doc">
|
|
25
|
+
<body class="doc" data-root="../">
|
|
25
26
|
<a class="skip" href="#main">Skip to content</a>
|
|
26
27
|
<header class="topbar">
|
|
27
28
|
<div class="topbar-inner">
|
|
28
|
-
<
|
|
29
|
-
<
|
|
30
|
-
<
|
|
31
|
-
<
|
|
29
|
+
<a class="brand" href="../index.html" aria-label="ArchSutra AI home"><svg viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="9" fill="currentColor" opacity=".14"/><path d="M6 24 16 7l10 17M10.5 18h11" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg><span>ArchSutra <b>AI</b></span></a>
|
|
30
|
+
<nav class="top-links" aria-label="Primary"><a href="../guides/getting-started.html">Get started</a><a href="../guides/real-world-scenarios.html">Scenarios</a><a href="../handbook/index.html">Handbook</a><a href="../guides/evidence-at-a-glance.html">Proof</a></nav>
|
|
31
|
+
<span class="spacer"></span>
|
|
32
|
+
<div class="search" role="search"><label class="sr-only" for="q">Search the documentation</label><input id="q" type="search" placeholder="Search docs ( / )" autocomplete="off" aria-controls="results" aria-expanded="false"><ul id="results" class="results" role="listbox" hidden></ul></div>
|
|
33
|
+
<a class="gh-btn" href="https://github.com/shahvatsalofficial/archsutra-ai" rel="noopener"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M9 19c-4.3 1.4-4.3-2.5-6-3m12 5v-3.5c0-1 .1-1.4-.5-2 2.8-.3 5.5-1.4 5.5-6a4.6 4.6 0 0 0-1.3-3.2 4.2 4.2 0 0 0-.1-3.2s-1.1-.3-3.5 1.3a12 12 0 0 0-6.2 0C6.5 2.8 5.4 3.1 5.4 3.1a4.2 4.2 0 0 0-.1 3.2A4.6 4.6 0 0 0 4 9.5c0 4.6 2.7 5.7 5.5 6-.6.6-.6 1.2-.5 2V21"/></svg><span>GitHub</span></a>
|
|
34
|
+
<button class="icon-btn theme-btn" type="button" aria-label="Switch between light and dark theme"><span class="sun"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></svg></span><span class="moon"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z"/></svg></span></button>
|
|
35
|
+
<button class="icon-btn menu-btn" type="button" aria-label="Open menu" aria-expanded="false" aria-controls="drawer"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 7h16M4 12h16M4 17h16"/></svg></button>
|
|
32
36
|
</div>
|
|
33
37
|
</header>
|
|
38
|
+
<div id="drawer" class="drawer" aria-hidden="true">
|
|
39
|
+
<div class="drawer-scrim" data-close></div>
|
|
40
|
+
<div class="drawer-panel" role="dialog" aria-label="Menu">
|
|
41
|
+
<div class="drawer-head"><a class="brand" href="../index.html"><svg viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="9" fill="currentColor" opacity=".14"/><path d="M6 24 16 7l10 17M10.5 18h11" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg><span>ArchSutra <b>AI</b></span></a><button class="icon-btn" type="button" data-close aria-label="Close menu"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6 6 18"/></svg></button></div>
|
|
42
|
+
<div class="primary-links"><a href="../index.html">Home</a><a href="../guides/getting-started.html">Get started</a><a href="../guides/real-world-scenarios.html">Scenarios</a><a href="../handbook/index.html">Handbook</a><a href="../guides/evidence-at-a-glance.html">Proof</a><a href="https://github.com/shahvatsalofficial/archsutra-ai" rel="noopener">GitHub</a></div>
|
|
43
|
+
<div class="nav-group"><p class="nav-title">Start here</p><ul><li><a href="../guides/getting-started.html">Get started in 5 minutes</a></li><li><a href="../guides/real-world-scenarios.html">Real-world scenarios</a></li><li><a href="../guides/how-it-works.html">How it works, in pictures</a></li><li><a href="../guides/reading-a-report.html">Reading and triaging a report</a></li><li><a href="../guides/ci-recipes.html">CI recipes</a></li><li><a href="../guides/mcp-server.html">Use ArchSutra as an MCP server</a></li><li><a href="../guides/cheat-sheet.html">Cheat sheet</a></li><li><a href="../guides/evidence-at-a-glance.html">Evidence at a glance</a></li></ul></div><div class="nav-group"><p class="nav-title">Handbook</p><ul><li><a href="../handbook/index.html">Overview</a></li><li><a href="../handbook/01-executive-summary.html">Executive summary</a></li><li><a href="../handbook/02-functional-specification.html">Functional specification</a></li><li><a href="../handbook/03-technical-specification.html">Technical specification</a></li><li><a href="../handbook/04-architecture.html">Architecture</a></li><li><a href="../handbook/05-user-guide.html">User guide</a></li><li><a href="../handbook/06-cli-reference.html">CLI reference</a></li><li><a href="../handbook/07-security-privacy-legal.html">Security, privacy and legal</a></li><li><a href="../handbook/08-testing-and-proof.html">Testing and proof</a></li><li><a href="../handbook/09-compatibility-and-roadmap.html">Compatibility and roadmap</a></li><li><a href="../handbook/10-contributor-guide.html">Contributor guide</a></li><li><a href="../handbook/11-glossary-and-faq.html">Glossary and FAQ</a></li><li><a href="../handbook/12-rule-catalog.html">Audit rule catalog</a></li><li><a href="../handbook/13-trust-and-assurance.html">Trust and assurance</a></li><li><a href="../handbook/14-real-world-evaluation.html">Real-world evaluation</a></li><li><a href="../handbook/15-supply-chain-and-release.html">Supply chain and release</a></li><li><a href="../handbook/16-performance-and-quality-metrics.html">Performance and quality metrics</a></li></ul></div><div class="nav-group"><p class="nav-title">Reference</p><ul><li><a href="../architecture/overview.html">Architecture overview</a></li><li><a href="../architecture/threat-model.html" aria-current="page">Threat model (ArchSutra CLI and skills)</a></li><li><a href="../compatibility/matrix.html">Compatibility matrix</a></li><li><a href="../rfc/0001-archsutra-v0.1.html">RFC 0001: ArchSutra AI v0.1</a></li><li><a href="../decisions/ADR-0001-deterministic-cli-plus-ide-skills.html">ADR-0001: Deterministic CLI plus IDE-native skills</a></li><li><a href="../compatibility/smoke-tests/index.html">Live smoke tests</a></li><li><a href="../community/good-first-issues.html">Good first issues (ready to file)</a></li><li><a href="../legal/trademark-and-name-clearance.html">Name and trademark clearance</a></li><li><a href="../legal/legal-review-brief.html">Legal review brief</a></li><li><a href="../proof/accessibility.html">Accessibility audit of the documentation site</a></li></ul></div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
34
46
|
<div class="layout">
|
|
35
|
-
<aside id="sidebar" class="sidebar" aria-label="Documentation"><div class="nav-group"><p class="nav-title">Handbook</p><ul><li><a href="../handbook/index.html">Overview</a></li><li><a href="../handbook/01-executive-summary.html">Executive summary</a></li><li><a href="../handbook/02-functional-specification.html">Functional specification</a></li><li><a href="../handbook/03-technical-specification.html">Technical specification</a></li><li><a href="../handbook/04-architecture.html">Architecture</a></li><li><a href="../handbook/05-user-guide.html">User guide</a></li><li><a href="../handbook/06-cli-reference.html">CLI reference</a></li><li><a href="../handbook/07-security-privacy-legal.html">Security, privacy and legal</a></li><li><a href="../handbook/08-testing-and-proof.html">Testing and proof</a></li><li><a href="../handbook/09-compatibility-and-roadmap.html">Compatibility and roadmap</a></li><li><a href="../handbook/10-contributor-guide.html">Contributor guide</a></li><li><a href="../handbook/11-glossary-and-faq.html">Glossary and FAQ</a></li><li><a href="../handbook/12-rule-catalog.html">Audit rule catalog</a></li><li><a href="../handbook/13-trust-and-assurance.html">Trust and assurance</a></li><li><a href="../handbook/14-real-world-evaluation.html">Real-world evaluation</a></li><li><a href="../handbook/15-supply-chain-and-release.html">Supply chain and release</a></li><li><a href="../handbook/16-performance-and-quality-metrics.html">Performance and quality metrics</a></li></ul></div><div class="nav-group"><p class="nav-title">Reference</p><ul><li><a href="../architecture/overview.html">Architecture overview</a></li><li><a href="../architecture/threat-model.html" aria-current="page">Threat model (ArchSutra CLI and skills)</a></li><li><a href="../compatibility/matrix.html">Compatibility matrix</a></li><li><a href="../rfc/0001-archsutra-v0.1.html">RFC 0001: ArchSutra AI v0.1</a></li><li><a href="../decisions/ADR-0001-deterministic-cli-plus-ide-skills.html">ADR-0001: Deterministic CLI plus IDE-native skills</a></li><li><a href="../compatibility/smoke-tests/index.html">Live smoke tests</a></li><li><a href="../community/good-first-issues.html">Good first issues (ready to file)</a></li><li><a href="../legal/trademark-and-name-clearance.html">Name and trademark clearance</a></li><li><a href="../legal/legal-review-brief.html">Legal review brief</a></li><li><a href="../proof/accessibility.html">Accessibility audit of the documentation site</a></li></ul></div></aside>
|
|
47
|
+
<aside id="sidebar" class="sidebar" aria-label="Documentation"><div class="nav-group"><p class="nav-title">Start here</p><ul><li><a href="../guides/getting-started.html">Get started in 5 minutes</a></li><li><a href="../guides/real-world-scenarios.html">Real-world scenarios</a></li><li><a href="../guides/how-it-works.html">How it works, in pictures</a></li><li><a href="../guides/reading-a-report.html">Reading and triaging a report</a></li><li><a href="../guides/ci-recipes.html">CI recipes</a></li><li><a href="../guides/mcp-server.html">Use ArchSutra as an MCP server</a></li><li><a href="../guides/cheat-sheet.html">Cheat sheet</a></li><li><a href="../guides/evidence-at-a-glance.html">Evidence at a glance</a></li></ul></div><div class="nav-group"><p class="nav-title">Handbook</p><ul><li><a href="../handbook/index.html">Overview</a></li><li><a href="../handbook/01-executive-summary.html">Executive summary</a></li><li><a href="../handbook/02-functional-specification.html">Functional specification</a></li><li><a href="../handbook/03-technical-specification.html">Technical specification</a></li><li><a href="../handbook/04-architecture.html">Architecture</a></li><li><a href="../handbook/05-user-guide.html">User guide</a></li><li><a href="../handbook/06-cli-reference.html">CLI reference</a></li><li><a href="../handbook/07-security-privacy-legal.html">Security, privacy and legal</a></li><li><a href="../handbook/08-testing-and-proof.html">Testing and proof</a></li><li><a href="../handbook/09-compatibility-and-roadmap.html">Compatibility and roadmap</a></li><li><a href="../handbook/10-contributor-guide.html">Contributor guide</a></li><li><a href="../handbook/11-glossary-and-faq.html">Glossary and FAQ</a></li><li><a href="../handbook/12-rule-catalog.html">Audit rule catalog</a></li><li><a href="../handbook/13-trust-and-assurance.html">Trust and assurance</a></li><li><a href="../handbook/14-real-world-evaluation.html">Real-world evaluation</a></li><li><a href="../handbook/15-supply-chain-and-release.html">Supply chain and release</a></li><li><a href="../handbook/16-performance-and-quality-metrics.html">Performance and quality metrics</a></li></ul></div><div class="nav-group"><p class="nav-title">Reference</p><ul><li><a href="../architecture/overview.html">Architecture overview</a></li><li><a href="../architecture/threat-model.html" aria-current="page">Threat model (ArchSutra CLI and skills)</a></li><li><a href="../compatibility/matrix.html">Compatibility matrix</a></li><li><a href="../rfc/0001-archsutra-v0.1.html">RFC 0001: ArchSutra AI v0.1</a></li><li><a href="../decisions/ADR-0001-deterministic-cli-plus-ide-skills.html">ADR-0001: Deterministic CLI plus IDE-native skills</a></li><li><a href="../compatibility/smoke-tests/index.html">Live smoke tests</a></li><li><a href="../community/good-first-issues.html">Good first issues (ready to file)</a></li><li><a href="../legal/trademark-and-name-clearance.html">Name and trademark clearance</a></li><li><a href="../legal/legal-review-brief.html">Legal review brief</a></li><li><a href="../proof/accessibility.html">Accessibility audit of the documentation site</a></li></ul></div></aside>
|
|
36
48
|
<main id="main" class="content"><article class="prose"><p class="crumbs"><a href="../index.html">ArchSutra AI</a> / Reference</p><h1 id="threat-model-archsutra-cli-and-skills">Threat model (ArchSutra CLI and skills)</h1>
|
|
37
|
-
<p class="meta">Version 0.
|
|
49
|
+
<p class="meta">Version 0.2.0 · Source: <a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/architecture/threat-model.md" rel="noopener">docs/architecture/threat-model.md</a></p>
|
|
38
50
|
<p>Scope: the <code>archsutra</code> CLI run on a developer machine or CI, and the skills loaded by an AI IDE.</p>
|
|
39
51
|
<h2 id="assets">Assets<a class="anchor" href="#assets" aria-label="Link to this section">#</a></h2>
|
|
40
52
|
<ul><li>Source code and any secrets inside it</li><li>The developer's files outside the target project</li><li>Integrity of installed skills (they steer an AI agent)</li></ul>
|
|
@@ -47,13 +59,18 @@
|
|
|
47
59
|
<h2 id="threats-and-mitigations-stride-oriented">Threats and mitigations (STRIDE-oriented)<a class="anchor" href="#threats-and-mitigations-stride-oriented" aria-label="Link to this section">#</a></h2>
|
|
48
60
|
<div class="table-wrap" tabindex="0" role="region" aria-label="Table 1: Threats and mitigations (STRIDE-oriented)"><table><thead><tr><th scope="col">ID</th><th scope="col">Threat</th><th scope="col">Mitigation</th><th scope="col">Test</th></tr></thead><tbody><tr><td>T1</td><td>Path traversal via <code>--output</code> or <code>--target</code> writes outside project</td><td><code>safeJoin</code> containment; <code>export</code> rejects escaping output</td><td><code>safeJoin rejects traversal</code>, <code>export ... blocks escaping --output</code></td></tr><tr><td>T2</td><td>Symlink in scanned repo leads reader outside the tree</td><td>Symlinks never followed</td><td><code>walk does not follow symlinks</code></td></tr><tr><td>T3</td><td>Secrets leak into reports or logs</td><td>Excerpts pass through <code>redact()</code>; <code>.env</code> contents never read into reports</td><td><code>audit finds seeded problems ... redacted</code></td></tr><tr><td>T4</td><td>Resource exhaustion on huge repos</td><td>File-count, size and time budgets; truncation reported</td><td><code>walk skips ... respects file limit</code></td></tr><tr><td>T5</td><td>Installer overwrites user files</td><td>Conflict detection, backups, SHA-256 manifest, <code>uninstall</code> keeps modified files</td><td>install conflict and keep tests</td></tr><tr><td>T6</td><td>Prompt injection from repo content steers the IDE agent</td><td>Skills state that repo content is untrusted data; agents are read-only by default; Claude agents get <code>Read, Grep, Glob</code> only</td><td>documented control; effectiveness depends on the host model (residual risk)</td></tr><tr><td>T7</td><td>Malicious dependency in this project</td><td>Zero runtime dependencies; dev deps pinned by lockfile; CI audit</td><td><code>npm ls --omit=dev</code> is empty</td></tr><tr><td>T9</td><td>Regular-expression denial of service from crafted source lines</td><td>Lines over 2 000 characters skipped; adversarial input test with a time limit</td><td><code>adversarial inputs ...</code></td></tr><tr><td>T10</td><td>Memory or time exhaustion from huge repositories</td><td>Limits on file count, per-file size, total bytes (120 MiB), traversal time; cache cap</td><td><code>total-bytes budget ...</code>, benchmarks</td></tr><tr><td>T11</td><td>Compromised build or release artifacts</td><td>Pinned action SHAs, least-privilege permissions, SBOM, checksums, signed provenance attestation, zero runtime dependencies</td><td><a href="../handbook/15-supply-chain-and-release.html">supply chain</a></td></tr><tr><td>T12</td><td>Misleading findings cause false confidence</td><td>Confidence and caveats on every finding; reports state that absence of findings proves nothing; measured precision published</td><td><a href="../handbook/14-real-world-evaluation.html">real-world evaluation</a></td></tr><tr><td>T8</td><td>Tampered skill files</td><td>Install manifest hashes; <code>doctor</code> reports drift</td><td>doctor drift test</td></tr></tbody></table></div>
|
|
49
61
|
<h2 id="residual-risk">Residual risk<a class="anchor" href="#residual-risk" aria-label="Link to this section">#</a></h2>
|
|
50
|
-
<ul><li>T6 cannot be fully eliminated by documentation; users should keep agent permissions minimal.</li><li>Heuristic rules can miss issues or flag benign code. Treat findings as leads.</li></ul></article></main>
|
|
62
|
+
<ul><li>T6 cannot be fully eliminated by documentation; users should keep agent permissions minimal.</li><li>Heuristic rules can miss issues or flag benign code. Treat findings as leads.</li></ul></article><nav class="pn" aria-label="Previous and next page"><a class="prev" href="overview.html"><small>Previous</small><span>Architecture overview</span></a><a class="next" href="../compatibility/matrix.html"><small>Next</small><span>Compatibility matrix</span></a></nav><p class="edit"><a href="https://github.com/shahvatsalofficial/archsutra-ai/edit/main/docs/architecture/threat-model.md" rel="noopener">Edit this page on GitHub</a></p></main>
|
|
51
63
|
<aside class="rail"><nav class="toc" aria-label="On this page"><p class="nav-title">On this page</p><ul><li class="l2"><a href="#assets">Assets</a></li><li class="l2"><a href="#trust-boundaries">Trust boundaries</a></li><li class="l2"><a href="#threats-and-mitigations-stride-oriented">Threats and mitigations (STRIDE-oriented)</a></li><li class="l2"><a href="#residual-risk">Residual risk</a></li></ul></nav></aside>
|
|
52
64
|
</div>
|
|
53
65
|
<footer class="footer">
|
|
54
66
|
<div class="footer-inner">
|
|
55
|
-
<
|
|
56
|
-
|
|
67
|
+
<div class="footer-grid">
|
|
68
|
+
<div class="about-col"><a class="brand" href="../index.html"><svg viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="9" fill="currentColor" opacity=".14"/><path d="M6 24 16 7l10 17M10.5 18h11" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg><span>ArchSutra <b>AI</b></span></a><p class="about">Design. Audit. Evolve. An open-source, evidence-first software architecture agent. Created by <a href="https://shahvatsal.com" rel="noopener">Vatsal Shah</a>. Apache-2.0.</p></div>
|
|
69
|
+
<div><h4>Learn</h4><ul><li><a href="../guides/getting-started.html">Get started</a></li><li><a href="../guides/real-world-scenarios.html">Real-world scenarios</a></li><li><a href="../guides/how-it-works.html">How it works</a></li><li><a href="../guides/cheat-sheet.html">Cheat sheet</a></li></ul></div>
|
|
70
|
+
<div><h4>Trust</h4><ul><li><a href="../guides/evidence-at-a-glance.html">Evidence at a glance</a></li><li><a href="../handbook/13-trust-and-assurance.html">Honesty register</a></li><li><a href="../handbook/07-security-privacy-legal.html">Security and legal</a></li><li><a href="../handbook/15-supply-chain-and-release.html">Supply chain</a></li></ul></div>
|
|
71
|
+
<div><h4>Project</h4><ul><li><a href="https://github.com/shahvatsalofficial/archsutra-ai" rel="noopener">GitHub</a></li><li><a href="https://www.npmjs.com/package/archsutra-ai" rel="noopener">npm</a></li><li><a href="../handbook/10-contributor-guide.html">Contribute</a></li><li><a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/CHANGELOG.md" rel="noopener">Changelog</a></li></ul></div>
|
|
72
|
+
</div>
|
|
73
|
+
<p class="fine">v0.2.0. Review aid only. Not a certification, compliance attestation, security guarantee or legal advice. Not affiliated with Anthropic, OpenAI, Cursor, GitHub or Google; product names belong to their owners. <a href="../handbook/07-security-privacy-legal.html">Legal details</a>.</p>
|
|
57
74
|
</div>
|
|
58
75
|
</footer>
|
|
59
76
|
<script src="../assets/site.js" type="module"></script>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 250" width="760" height="250" role="img" aria-labelledby="t d">
|
|
2
|
+
<title id="t">Test coverage</title><desc id="d">Lines 92.38 percent, branches 80.69 percent, functions 91.06 percent.</desc>
|
|
3
|
+
<style>
|
|
4
|
+
:root{--bg:#121a33;--ink:#e6eaf5;--mute:#aab4cc;--line:#2c3a60;--a:#a5b4fc;--b:#5eead4;--c:#f0c36a;--bad:#ff9b92;--ok:#5fd39a}
|
|
5
|
+
text{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;fill:var(--ink)}
|
|
6
|
+
.m{fill:var(--mute)}.t{font-size:18px;font-weight:700}.s{font-size:12px}.l{font-size:13px}.n{font-size:13px;font-weight:700}
|
|
7
|
+
.axis{stroke:var(--line);stroke-width:1}.grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
|
|
8
|
+
</style>
|
|
9
|
+
<rect width="760" height="250" rx="14" fill="var(--bg)" stroke="var(--line)"/>
|
|
10
|
+
<text x="24" y="34" class="t">Test coverage of the compiled CLI</text><text x="24" y="54" class="s m">Node's built-in coverage over dist/. Reported in CI; not yet enforced as a threshold.</text><text x="98" y="106" text-anchor="end" class="l">Lines</text><rect x="110" y="88" width="540" height="24" rx="5" fill="var(--line)" opacity=".5"/><rect x="110" y="88" width="498.852" height="24" rx="5" fill="var(--ok)"/><text x="618.852" y="106" class="n">92.4%</text><text x="98" y="150" text-anchor="end" class="l">Branches</text><rect x="110" y="132" width="540" height="24" rx="5" fill="var(--line)" opacity=".5"/><rect x="110" y="132" width="435.726" height="24" rx="5" fill="var(--ok)"/><text x="555.726" y="150" class="n">80.7%</text><text x="98" y="194" text-anchor="end" class="l">Functions</text><rect x="110" y="176" width="540" height="24" rx="5" fill="var(--line)" opacity=".5"/><rect x="110" y="176" width="491.724" height="24" rx="5" fill="var(--ok)"/><text x="611.7239999999999" y="194" class="n">91.1%</text>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 250" width="760" height="250" role="img" aria-labelledby="t d">
|
|
2
|
+
<title id="t">Test coverage</title><desc id="d">Lines 92.38 percent, branches 80.69 percent, functions 91.06 percent.</desc>
|
|
3
|
+
<style>
|
|
4
|
+
:root{--bg:#ffffff;--ink:#0f172a;--mute:#475569;--line:#d9dfea;--a:#4f46e5;--b:#0f766e;--c:#b45309;--bad:#b91c1c;--ok:#15803d}
|
|
5
|
+
text{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;fill:var(--ink)}
|
|
6
|
+
.m{fill:var(--mute)}.t{font-size:18px;font-weight:700}.s{font-size:12px}.l{font-size:13px}.n{font-size:13px;font-weight:700}
|
|
7
|
+
.axis{stroke:var(--line);stroke-width:1}.grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
|
|
8
|
+
</style>
|
|
9
|
+
<rect width="760" height="250" rx="14" fill="var(--bg)" stroke="var(--line)"/>
|
|
10
|
+
<text x="24" y="34" class="t">Test coverage of the compiled CLI</text><text x="24" y="54" class="s m">Node's built-in coverage over dist/. Reported in CI; not yet enforced as a threshold.</text><text x="98" y="106" text-anchor="end" class="l">Lines</text><rect x="110" y="88" width="540" height="24" rx="5" fill="var(--line)" opacity=".5"/><rect x="110" y="88" width="498.852" height="24" rx="5" fill="var(--ok)"/><text x="618.852" y="106" class="n">92.4%</text><text x="98" y="150" text-anchor="end" class="l">Branches</text><rect x="110" y="132" width="540" height="24" rx="5" fill="var(--line)" opacity=".5"/><rect x="110" y="132" width="435.726" height="24" rx="5" fill="var(--ok)"/><text x="555.726" y="150" class="n">80.7%</text><text x="98" y="194" text-anchor="end" class="l">Functions</text><rect x="110" y="176" width="540" height="24" rx="5" fill="var(--line)" opacity=".5"/><rect x="110" y="176" width="491.724" height="24" rx="5" fill="var(--ok)"/><text x="611.7239999999999" y="194" class="n">91.1%</text>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 400" width="900" height="400" role="img" aria-labelledby="t d">
|
|
2
|
+
<title id="t">Anatomy of a finding</title><desc id="d">A finding has a stable ID, severity and confidence, evidence with a file and line, impact, a fix, and a verification and acceptance test.</desc>
|
|
3
|
+
<style>
|
|
4
|
+
:root{--bg:#121a33;--ink:#e6eaf5;--mute:#aab4cc;--line:#2c3a60;--a:#a5b4fc;--b:#5eead4;--c:#f0c36a;--bad:#ff9b92;--ok:#5fd39a}
|
|
5
|
+
text{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;fill:var(--ink)}
|
|
6
|
+
.m{fill:var(--mute)}.t{font-size:18px;font-weight:700}.s{font-size:12px}.l{font-size:13px}.n{font-size:13px;font-weight:700}
|
|
7
|
+
.axis{stroke:var(--line);stroke-width:1}.grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
|
|
8
|
+
</style>
|
|
9
|
+
<rect width="900" height="400" rx="14" fill="var(--bg)" stroke="var(--line)"/>
|
|
10
|
+
<text x="24" y="34" class="t">Anatomy of one finding</text><text x="24" y="54" class="s m">Real finding from the sample audit. Every field exists so you can check it, not just trust it.</text>
|
|
11
|
+
<rect x="60" y="76" width="560" height="300" rx="12" fill="none" stroke="var(--line)" stroke-width="2"/>
|
|
12
|
+
<text x="80" y="106" class="l" style="font-weight:700">AS-SEC-005#002</text><rect x="214" y="90" width="52" height="22" rx="11" fill="none" stroke="var(--bad)"/><text x="240" y="106" text-anchor="middle" class="s" style="fill:var(--bad);font-weight:700">HIGH</text>
|
|
13
|
+
<text x="280" y="106" class="l">SQL built by string interpolation</text>
|
|
14
|
+
<text x="80" y="140" class="s m">confidence: medium category: security effort: M</text>
|
|
15
|
+
<text x="80" y="172" class="s m">EVIDENCE</text><text x="80" y="194" class="l"><tspan style="fill:var(--ok)">[observed]</tspan> src/services/user.ts:2</text>
|
|
16
|
+
<text x="80" y="214" class="s" style="font-family:ui-monospace,Menlo,Consolas,monospace">db.query(`SELECT * FROM users WHERE id = ${id}`)</text>
|
|
17
|
+
<text x="80" y="246" class="s m">IMPACT</text><text x="80" y="266" class="s">Possible SQL injection if id comes from a request.</text>
|
|
18
|
+
<text x="80" y="296" class="s m">FIX</text><text x="80" y="316" class="s">Use a bound parameter: db.query(sql, [id]).</text>
|
|
19
|
+
<text x="80" y="346" class="s m">VERIFY and ACCEPT</text><text x="80" y="366" class="s">Test with 1 OR 1=1 returns nothing; no interpolated SQL left in src/.</text><circle cx="660" cy="100" r="13" fill="var(--a)"/><text x="660" y="105" text-anchor="middle" style="fill:#fff;font-size:13px;font-weight:700">1</text><text x="684" y="104" class="s">Stable ID. Same rule, same ID next run.</text><circle cx="660" cy="140" r="13" fill="var(--a)"/><text x="660" y="145" text-anchor="middle" style="fill:#fff;font-size:13px;font-weight:700">2</text><text x="684" y="144" class="s">Severity = impact if true. Confidence = how sure.</text><circle cx="660" cy="194" r="13" fill="var(--a)"/><text x="660" y="199" text-anchor="middle" style="fill:#fff;font-size:13px;font-weight:700">3</text><text x="684" y="198" class="s">File and line. Label says observed, inferred or unknown.</text><circle cx="660" cy="262" r="13" fill="var(--a)"/><text x="660" y="267" text-anchor="middle" style="fill:#fff;font-size:13px;font-weight:700">4</text><text x="684" y="266" class="s">Impact in one sentence a manager can read.</text><circle cx="660" cy="312" r="13" fill="var(--a)"/><text x="660" y="317" text-anchor="middle" style="fill:#fff;font-size:13px;font-weight:700">5</text><text x="684" y="316" class="s">A concrete fix, not a lecture.</text><circle cx="660" cy="362" r="13" fill="var(--a)"/><text x="660" y="367" text-anchor="middle" style="fill:#fff;font-size:13px;font-weight:700">6</text><text x="684" y="366" class="s">How to prove it is fixed, and when you are done.</text>
|
|
20
|
+
</svg>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 400" width="900" height="400" role="img" aria-labelledby="t d">
|
|
2
|
+
<title id="t">Anatomy of a finding</title><desc id="d">A finding has a stable ID, severity and confidence, evidence with a file and line, impact, a fix, and a verification and acceptance test.</desc>
|
|
3
|
+
<style>
|
|
4
|
+
:root{--bg:#ffffff;--ink:#0f172a;--mute:#475569;--line:#d9dfea;--a:#4f46e5;--b:#0f766e;--c:#b45309;--bad:#b91c1c;--ok:#15803d}
|
|
5
|
+
text{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;fill:var(--ink)}
|
|
6
|
+
.m{fill:var(--mute)}.t{font-size:18px;font-weight:700}.s{font-size:12px}.l{font-size:13px}.n{font-size:13px;font-weight:700}
|
|
7
|
+
.axis{stroke:var(--line);stroke-width:1}.grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
|
|
8
|
+
</style>
|
|
9
|
+
<rect width="900" height="400" rx="14" fill="var(--bg)" stroke="var(--line)"/>
|
|
10
|
+
<text x="24" y="34" class="t">Anatomy of one finding</text><text x="24" y="54" class="s m">Real finding from the sample audit. Every field exists so you can check it, not just trust it.</text>
|
|
11
|
+
<rect x="60" y="76" width="560" height="300" rx="12" fill="none" stroke="var(--line)" stroke-width="2"/>
|
|
12
|
+
<text x="80" y="106" class="l" style="font-weight:700">AS-SEC-005#002</text><rect x="214" y="90" width="52" height="22" rx="11" fill="none" stroke="var(--bad)"/><text x="240" y="106" text-anchor="middle" class="s" style="fill:var(--bad);font-weight:700">HIGH</text>
|
|
13
|
+
<text x="280" y="106" class="l">SQL built by string interpolation</text>
|
|
14
|
+
<text x="80" y="140" class="s m">confidence: medium category: security effort: M</text>
|
|
15
|
+
<text x="80" y="172" class="s m">EVIDENCE</text><text x="80" y="194" class="l"><tspan style="fill:var(--ok)">[observed]</tspan> src/services/user.ts:2</text>
|
|
16
|
+
<text x="80" y="214" class="s" style="font-family:ui-monospace,Menlo,Consolas,monospace">db.query(`SELECT * FROM users WHERE id = ${id}`)</text>
|
|
17
|
+
<text x="80" y="246" class="s m">IMPACT</text><text x="80" y="266" class="s">Possible SQL injection if id comes from a request.</text>
|
|
18
|
+
<text x="80" y="296" class="s m">FIX</text><text x="80" y="316" class="s">Use a bound parameter: db.query(sql, [id]).</text>
|
|
19
|
+
<text x="80" y="346" class="s m">VERIFY and ACCEPT</text><text x="80" y="366" class="s">Test with 1 OR 1=1 returns nothing; no interpolated SQL left in src/.</text><circle cx="660" cy="100" r="13" fill="var(--a)"/><text x="660" y="105" text-anchor="middle" style="fill:#fff;font-size:13px;font-weight:700">1</text><text x="684" y="104" class="s">Stable ID. Same rule, same ID next run.</text><circle cx="660" cy="140" r="13" fill="var(--a)"/><text x="660" y="145" text-anchor="middle" style="fill:#fff;font-size:13px;font-weight:700">2</text><text x="684" y="144" class="s">Severity = impact if true. Confidence = how sure.</text><circle cx="660" cy="194" r="13" fill="var(--a)"/><text x="660" y="199" text-anchor="middle" style="fill:#fff;font-size:13px;font-weight:700">3</text><text x="684" y="198" class="s">File and line. Label says observed, inferred or unknown.</text><circle cx="660" cy="262" r="13" fill="var(--a)"/><text x="660" y="267" text-anchor="middle" style="fill:#fff;font-size:13px;font-weight:700">4</text><text x="684" y="266" class="s">Impact in one sentence a manager can read.</text><circle cx="660" cy="312" r="13" fill="var(--a)"/><text x="660" y="317" text-anchor="middle" style="fill:#fff;font-size:13px;font-weight:700">5</text><text x="684" y="316" class="s">A concrete fix, not a lecture.</text><circle cx="660" cy="362" r="13" fill="var(--a)"/><text x="660" y="367" text-anchor="middle" style="fill:#fff;font-size:13px;font-weight:700">6</text><text x="684" y="366" class="s">How to prove it is fixed, and when you are done.</text>
|
|
20
|
+
</svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 330" width="900" height="330" role="img" aria-labelledby="t d">
|
|
2
|
+
<title id="t">ArchSutra pipeline</title><desc id="d">The repository is scanned read-only by the CLI, which produces evidence. The IDE model, guided by ArchSutra skills, verifies the evidence and writes the report.</desc>
|
|
3
|
+
<style>
|
|
4
|
+
:root{--bg:#121a33;--ink:#e6eaf5;--mute:#aab4cc;--line:#2c3a60;--a:#a5b4fc;--b:#5eead4;--c:#f0c36a;--bad:#ff9b92;--ok:#5fd39a}
|
|
5
|
+
text{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;fill:var(--ink)}
|
|
6
|
+
.m{fill:var(--mute)}.t{font-size:18px;font-weight:700}.s{font-size:12px}.l{font-size:13px}.n{font-size:13px;font-weight:700}
|
|
7
|
+
.axis{stroke:var(--line);stroke-width:1}.grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
|
|
8
|
+
</style>
|
|
9
|
+
<rect width="900" height="330" rx="14" fill="var(--bg)" stroke="var(--line)"/>
|
|
10
|
+
<defs><marker id="ah" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M0 0 10 5 0 10z" fill="var(--mute)"/></marker></defs>
|
|
11
|
+
<text x="24" y="34" class="t">How ArchSutra turns your repository into a trustworthy report</text>
|
|
12
|
+
<text x="24" y="54" class="s m">The CLI measures (offline, read-only). Your IDE's own model reasons. The skills keep the model honest.</text><rect x="24" y="96" width="160" height="82" rx="12" fill="none" stroke="var(--mute)" stroke-width="2"/><text x="104" y="126" text-anchor="middle" class="l" style="font-weight:700">Your repository</text><text x="104" y="148" text-anchor="middle" class="s m">read-only, never executed</text><rect x="236" y="80" width="250" height="114" rx="12" fill="none" stroke="var(--a)" stroke-width="2"/><text x="361" y="110" text-anchor="middle" class="l" style="font-weight:700">archsutra CLI</text><text x="361" y="132" text-anchor="middle" class="s m">walk, map, 30 rules, redact</text><rect x="540" y="80" width="170" height="114" rx="12" fill="none" stroke="var(--b)" stroke-width="2"/><text x="625" y="110" text-anchor="middle" class="l" style="font-weight:700">Evidence</text><text x="625" y="132" text-anchor="middle" class="s m">findings.json, SARIF, maps</text><rect x="540" y="226" width="170" height="82" rx="12" fill="none" stroke="var(--c)" stroke-width="2"/><text x="625" y="256" text-anchor="middle" class="l" style="font-weight:700">Skills + Prime</text><text x="625" y="278" text-anchor="middle" class="s m">5 skills, 12 agents</text><rect x="236" y="226" width="250" height="82" rx="12" fill="none" stroke="var(--c)" stroke-width="2"/><text x="361" y="256" text-anchor="middle" class="l" style="font-weight:700">Your AI IDE model</text><text x="361" y="278" text-anchor="middle" class="s m">reasons, verifies, writes</text><rect x="750" y="130" width="126" height="82" rx="12" fill="none" stroke="var(--ok)" stroke-width="2"/><text x="813" y="160" text-anchor="middle" class="l" style="font-weight:700">Report</text><text x="813" y="182" text-anchor="middle" class="s m">HTML + Markdown</text><line x1="184" y1="137" x2="236" y2="137" stroke="var(--mute)" stroke-width="2" marker-end="url(#ah)"/><line x1="486" y1="137" x2="540" y2="137" stroke="var(--mute)" stroke-width="2" marker-end="url(#ah)"/><line x1="710" y1="137" x2="750" y2="160" stroke="var(--mute)" stroke-width="2" marker-end="url(#ah)"/><line x1="625" y1="194" x2="625" y2="226" stroke="var(--mute)" stroke-width="2" marker-end="url(#ah)"/><line x1="540" y1="267" x2="486" y2="267" stroke="var(--mute)" stroke-width="2" marker-end="url(#ah)"/><line x1="361" y1="226" x2="361" y2="194" stroke="var(--mute)" stroke-width="2" marker-end="url(#ah)"/><text x="298" y="214" class="s m" text-anchor="start" transform="translate(70,0)">checks every finding</text><text x="548" y="214" class="s m">method</text><g class="s m"><text x="24" y="226">CLI never calls a model</text><text x="24" y="246">No API key. No telemetry.</text><text x="24" y="266">Secrets redacted before output.</text></g>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 330" width="900" height="330" role="img" aria-labelledby="t d">
|
|
2
|
+
<title id="t">ArchSutra pipeline</title><desc id="d">The repository is scanned read-only by the CLI, which produces evidence. The IDE model, guided by ArchSutra skills, verifies the evidence and writes the report.</desc>
|
|
3
|
+
<style>
|
|
4
|
+
:root{--bg:#ffffff;--ink:#0f172a;--mute:#475569;--line:#d9dfea;--a:#4f46e5;--b:#0f766e;--c:#b45309;--bad:#b91c1c;--ok:#15803d}
|
|
5
|
+
text{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;fill:var(--ink)}
|
|
6
|
+
.m{fill:var(--mute)}.t{font-size:18px;font-weight:700}.s{font-size:12px}.l{font-size:13px}.n{font-size:13px;font-weight:700}
|
|
7
|
+
.axis{stroke:var(--line);stroke-width:1}.grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
|
|
8
|
+
</style>
|
|
9
|
+
<rect width="900" height="330" rx="14" fill="var(--bg)" stroke="var(--line)"/>
|
|
10
|
+
<defs><marker id="ah" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M0 0 10 5 0 10z" fill="var(--mute)"/></marker></defs>
|
|
11
|
+
<text x="24" y="34" class="t">How ArchSutra turns your repository into a trustworthy report</text>
|
|
12
|
+
<text x="24" y="54" class="s m">The CLI measures (offline, read-only). Your IDE's own model reasons. The skills keep the model honest.</text><rect x="24" y="96" width="160" height="82" rx="12" fill="none" stroke="var(--mute)" stroke-width="2"/><text x="104" y="126" text-anchor="middle" class="l" style="font-weight:700">Your repository</text><text x="104" y="148" text-anchor="middle" class="s m">read-only, never executed</text><rect x="236" y="80" width="250" height="114" rx="12" fill="none" stroke="var(--a)" stroke-width="2"/><text x="361" y="110" text-anchor="middle" class="l" style="font-weight:700">archsutra CLI</text><text x="361" y="132" text-anchor="middle" class="s m">walk, map, 30 rules, redact</text><rect x="540" y="80" width="170" height="114" rx="12" fill="none" stroke="var(--b)" stroke-width="2"/><text x="625" y="110" text-anchor="middle" class="l" style="font-weight:700">Evidence</text><text x="625" y="132" text-anchor="middle" class="s m">findings.json, SARIF, maps</text><rect x="540" y="226" width="170" height="82" rx="12" fill="none" stroke="var(--c)" stroke-width="2"/><text x="625" y="256" text-anchor="middle" class="l" style="font-weight:700">Skills + Prime</text><text x="625" y="278" text-anchor="middle" class="s m">5 skills, 12 agents</text><rect x="236" y="226" width="250" height="82" rx="12" fill="none" stroke="var(--c)" stroke-width="2"/><text x="361" y="256" text-anchor="middle" class="l" style="font-weight:700">Your AI IDE model</text><text x="361" y="278" text-anchor="middle" class="s m">reasons, verifies, writes</text><rect x="750" y="130" width="126" height="82" rx="12" fill="none" stroke="var(--ok)" stroke-width="2"/><text x="813" y="160" text-anchor="middle" class="l" style="font-weight:700">Report</text><text x="813" y="182" text-anchor="middle" class="s m">HTML + Markdown</text><line x1="184" y1="137" x2="236" y2="137" stroke="var(--mute)" stroke-width="2" marker-end="url(#ah)"/><line x1="486" y1="137" x2="540" y2="137" stroke="var(--mute)" stroke-width="2" marker-end="url(#ah)"/><line x1="710" y1="137" x2="750" y2="160" stroke="var(--mute)" stroke-width="2" marker-end="url(#ah)"/><line x1="625" y1="194" x2="625" y2="226" stroke="var(--mute)" stroke-width="2" marker-end="url(#ah)"/><line x1="540" y1="267" x2="486" y2="267" stroke="var(--mute)" stroke-width="2" marker-end="url(#ah)"/><line x1="361" y1="226" x2="361" y2="194" stroke="var(--mute)" stroke-width="2" marker-end="url(#ah)"/><text x="298" y="214" class="s m" text-anchor="start" transform="translate(70,0)">checks every finding</text><text x="548" y="214" class="s m">method</text><g class="s m"><text x="24" y="226">CLI never calls a model</text><text x="24" y="246">No API key. No telemetry.</text><text x="24" y="266">Secrets redacted before output.</text></g>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 420" width="760" height="420" role="img" aria-labelledby="t d">
|
|
2
|
+
<title id="t">Precision and actionable rate by evaluation batch</title><desc id="d">Precision was 50% at baseline, 69% on the first unseen batch and 95% on the second. The actionable rate was 29%, 34% and 52%.</desc>
|
|
3
|
+
<style>
|
|
4
|
+
:root{--bg:#121a33;--ink:#e6eaf5;--mute:#aab4cc;--line:#2c3a60;--a:#a5b4fc;--b:#5eead4;--c:#f0c36a;--bad:#ff9b92;--ok:#5fd39a}
|
|
5
|
+
text{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;fill:var(--ink)}
|
|
6
|
+
.m{fill:var(--mute)}.t{font-size:18px;font-weight:700}.s{font-size:12px}.l{font-size:13px}.n{font-size:13px;font-weight:700}
|
|
7
|
+
.axis{stroke:var(--line);stroke-width:1}.grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
|
|
8
|
+
</style>
|
|
9
|
+
<rect width="760" height="420" rx="14" fill="var(--bg)" stroke="var(--line)"/>
|
|
10
|
+
<text x="70" y="34" class="t">Share of findings that were real, by evaluation batch</text>
|
|
11
|
+
<text x="70" y="54" class="s m">Hand-labeled on 52 public repositories. Whiskers are 95% intervals. Small samples: read the width.</text><line x1="70" x2="730" y1="340" y2="340" class="axis"/><text x="60" y="344" text-anchor="end" class="s m">0%</text><line x1="70" x2="730" y1="272.5" y2="272.5" class="grid"/><text x="60" y="276.5" text-anchor="end" class="s m">25%</text><line x1="70" x2="730" y1="205" y2="205" class="grid"/><text x="60" y="209" text-anchor="end" class="s m">50%</text><line x1="70" x2="730" y1="137.5" y2="137.5" class="grid"/><text x="60" y="141.5" text-anchor="end" class="s m">75%</text><line x1="70" x2="730" y1="70" y2="70" class="grid"/><text x="60" y="74" text-anchor="end" class="s m">100%</text><rect x="142" y="205" width="30" height="135" rx="4" fill="var(--a)"/><line x1="157" x2="157" y1="241.74943288349803" y2="168.250567116502" stroke="var(--ink)" stroke-width="1.6"/><line x1="151" x2="163" y1="241.74943288349803" y2="241.74943288349803" stroke="var(--ink)" stroke-width="1.6"/><line x1="151" x2="163" y1="168.250567116502" y2="168.250567116502" stroke="var(--ink)" stroke-width="1.6"/><text x="157" y="161.250567116502" text-anchor="middle" class="n">50%</text><rect x="192" y="261.25" width="30" height="78.75" rx="4" fill="var(--b)"/><line x1="207" x2="207" y1="290.74817663296886" y2="223.41527511234762" stroke="var(--ink)" stroke-width="1.6"/><line x1="201" x2="213" y1="290.74817663296886" y2="290.74817663296886" stroke="var(--ink)" stroke-width="1.6"/><line x1="201" x2="213" y1="223.41527511234762" y2="223.41527511234762" stroke="var(--ink)" stroke-width="1.6"/><text x="207" y="216.41527511234762" text-anchor="middle" class="n">29%</text><text x="180" y="364" text-anchor="middle" class="l">Baseline (v0.1.0)</text><text x="180" y="382" text-anchor="middle" class="s m">n = 48 labeled</text><rect x="362" y="153.79310344827584" width="30" height="186.20689655172416" rx="4" fill="var(--a)"/><line x1="377" x2="377" y1="202.92227027634004" y2="116.64364612237375" stroke="var(--ink)" stroke-width="1.6"/><line x1="371" x2="383" y1="202.92227027634004" y2="202.92227027634004" stroke="var(--ink)" stroke-width="1.6"/><line x1="371" x2="383" y1="116.64364612237375" y2="116.64364612237375" stroke="var(--ink)" stroke-width="1.6"/><text x="377" y="109.64364612237375" text-anchor="middle" class="n">69%</text><rect x="412" y="246.8965517241379" width="30" height="93.10344827586208" rx="4" fill="var(--b)"/><line x1="427" x2="427" y1="286.1606263771857" y2="197.83089656932117" stroke="var(--ink)" stroke-width="1.6"/><line x1="421" x2="433" y1="286.1606263771857" y2="286.1606263771857" stroke="var(--ink)" stroke-width="1.6"/><line x1="421" x2="433" y1="197.83089656932117" y2="197.83089656932117" stroke="var(--ink)" stroke-width="1.6"/><text x="427" y="190.83089656932117" text-anchor="middle" class="n">34%</text><text x="400" y="364" text-anchor="middle" class="l">Unseen batch 1</text><text x="400" y="382" text-anchor="middle" class="s m">n = 29 labeled</text><rect x="582" y="82.85714285714289" width="30" height="257.1428571428571" rx="4" fill="var(--a)"/><line x1="597" x2="597" y1="131.20850478283583" y2="72.28305775741933" stroke="var(--ink)" stroke-width="1.6"/><line x1="591" x2="603" y1="131.20850478283583" y2="131.20850478283583" stroke="var(--ink)" stroke-width="1.6"/><line x1="591" x2="603" y1="72.28305775741933" y2="72.28305775741933" stroke="var(--ink)" stroke-width="1.6"/><text x="597" y="65.28305775741933" text-anchor="middle" class="n">95%</text><rect x="632" y="198.57142857142856" width="30" height="141.42857142857144" rx="4" fill="var(--b)"/><line x1="647" x2="647" y1="252.60311166927977" y2="146.52802320125994" stroke="var(--ink)" stroke-width="1.6"/><line x1="641" x2="653" y1="252.60311166927977" y2="252.60311166927977" stroke="var(--ink)" stroke-width="1.6"/><line x1="641" x2="653" y1="146.52802320125994" y2="146.52802320125994" stroke="var(--ink)" stroke-width="1.6"/><text x="647" y="139.52802320125994" text-anchor="middle" class="n">52%</text><text x="620" y="364" text-anchor="middle" class="l">Unseen batch 2</text><text x="620" y="382" text-anchor="middle" class="s m">n = 21 labeled</text><rect x="70" y="398" width="12" height="12" rx="3" fill="var(--a)"/><text x="88" y="408" class="s">Precision: the code really is what the rule says</text><rect x="400" y="398" width="12" height="12" rx="3" fill="var(--b)"/><text x="418" y="408" class="s">Actionable: a maintainer would act</text>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 420" width="760" height="420" role="img" aria-labelledby="t d">
|
|
2
|
+
<title id="t">Precision and actionable rate by evaluation batch</title><desc id="d">Precision was 50% at baseline, 69% on the first unseen batch and 95% on the second. The actionable rate was 29%, 34% and 52%.</desc>
|
|
3
|
+
<style>
|
|
4
|
+
:root{--bg:#ffffff;--ink:#0f172a;--mute:#475569;--line:#d9dfea;--a:#4f46e5;--b:#0f766e;--c:#b45309;--bad:#b91c1c;--ok:#15803d}
|
|
5
|
+
text{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;fill:var(--ink)}
|
|
6
|
+
.m{fill:var(--mute)}.t{font-size:18px;font-weight:700}.s{font-size:12px}.l{font-size:13px}.n{font-size:13px;font-weight:700}
|
|
7
|
+
.axis{stroke:var(--line);stroke-width:1}.grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
|
|
8
|
+
</style>
|
|
9
|
+
<rect width="760" height="420" rx="14" fill="var(--bg)" stroke="var(--line)"/>
|
|
10
|
+
<text x="70" y="34" class="t">Share of findings that were real, by evaluation batch</text>
|
|
11
|
+
<text x="70" y="54" class="s m">Hand-labeled on 52 public repositories. Whiskers are 95% intervals. Small samples: read the width.</text><line x1="70" x2="730" y1="340" y2="340" class="axis"/><text x="60" y="344" text-anchor="end" class="s m">0%</text><line x1="70" x2="730" y1="272.5" y2="272.5" class="grid"/><text x="60" y="276.5" text-anchor="end" class="s m">25%</text><line x1="70" x2="730" y1="205" y2="205" class="grid"/><text x="60" y="209" text-anchor="end" class="s m">50%</text><line x1="70" x2="730" y1="137.5" y2="137.5" class="grid"/><text x="60" y="141.5" text-anchor="end" class="s m">75%</text><line x1="70" x2="730" y1="70" y2="70" class="grid"/><text x="60" y="74" text-anchor="end" class="s m">100%</text><rect x="142" y="205" width="30" height="135" rx="4" fill="var(--a)"/><line x1="157" x2="157" y1="241.74943288349803" y2="168.250567116502" stroke="var(--ink)" stroke-width="1.6"/><line x1="151" x2="163" y1="241.74943288349803" y2="241.74943288349803" stroke="var(--ink)" stroke-width="1.6"/><line x1="151" x2="163" y1="168.250567116502" y2="168.250567116502" stroke="var(--ink)" stroke-width="1.6"/><text x="157" y="161.250567116502" text-anchor="middle" class="n">50%</text><rect x="192" y="261.25" width="30" height="78.75" rx="4" fill="var(--b)"/><line x1="207" x2="207" y1="290.74817663296886" y2="223.41527511234762" stroke="var(--ink)" stroke-width="1.6"/><line x1="201" x2="213" y1="290.74817663296886" y2="290.74817663296886" stroke="var(--ink)" stroke-width="1.6"/><line x1="201" x2="213" y1="223.41527511234762" y2="223.41527511234762" stroke="var(--ink)" stroke-width="1.6"/><text x="207" y="216.41527511234762" text-anchor="middle" class="n">29%</text><text x="180" y="364" text-anchor="middle" class="l">Baseline (v0.1.0)</text><text x="180" y="382" text-anchor="middle" class="s m">n = 48 labeled</text><rect x="362" y="153.79310344827584" width="30" height="186.20689655172416" rx="4" fill="var(--a)"/><line x1="377" x2="377" y1="202.92227027634004" y2="116.64364612237375" stroke="var(--ink)" stroke-width="1.6"/><line x1="371" x2="383" y1="202.92227027634004" y2="202.92227027634004" stroke="var(--ink)" stroke-width="1.6"/><line x1="371" x2="383" y1="116.64364612237375" y2="116.64364612237375" stroke="var(--ink)" stroke-width="1.6"/><text x="377" y="109.64364612237375" text-anchor="middle" class="n">69%</text><rect x="412" y="246.8965517241379" width="30" height="93.10344827586208" rx="4" fill="var(--b)"/><line x1="427" x2="427" y1="286.1606263771857" y2="197.83089656932117" stroke="var(--ink)" stroke-width="1.6"/><line x1="421" x2="433" y1="286.1606263771857" y2="286.1606263771857" stroke="var(--ink)" stroke-width="1.6"/><line x1="421" x2="433" y1="197.83089656932117" y2="197.83089656932117" stroke="var(--ink)" stroke-width="1.6"/><text x="427" y="190.83089656932117" text-anchor="middle" class="n">34%</text><text x="400" y="364" text-anchor="middle" class="l">Unseen batch 1</text><text x="400" y="382" text-anchor="middle" class="s m">n = 29 labeled</text><rect x="582" y="82.85714285714289" width="30" height="257.1428571428571" rx="4" fill="var(--a)"/><line x1="597" x2="597" y1="131.20850478283583" y2="72.28305775741933" stroke="var(--ink)" stroke-width="1.6"/><line x1="591" x2="603" y1="131.20850478283583" y2="131.20850478283583" stroke="var(--ink)" stroke-width="1.6"/><line x1="591" x2="603" y1="72.28305775741933" y2="72.28305775741933" stroke="var(--ink)" stroke-width="1.6"/><text x="597" y="65.28305775741933" text-anchor="middle" class="n">95%</text><rect x="632" y="198.57142857142856" width="30" height="141.42857142857144" rx="4" fill="var(--b)"/><line x1="647" x2="647" y1="252.60311166927977" y2="146.52802320125994" stroke="var(--ink)" stroke-width="1.6"/><line x1="641" x2="653" y1="252.60311166927977" y2="252.60311166927977" stroke="var(--ink)" stroke-width="1.6"/><line x1="641" x2="653" y1="146.52802320125994" y2="146.52802320125994" stroke="var(--ink)" stroke-width="1.6"/><text x="647" y="139.52802320125994" text-anchor="middle" class="n">52%</text><text x="620" y="364" text-anchor="middle" class="l">Unseen batch 2</text><text x="620" y="382" text-anchor="middle" class="s m">n = 21 labeled</text><rect x="70" y="398" width="12" height="12" rx="3" fill="var(--a)"/><text x="88" y="408" class="s">Precision: the code really is what the rule says</text><rect x="400" y="398" width="12" height="12" rx="3" fill="var(--b)"/><text x="418" y="408" class="s">Actionable: a maintainer would act</text>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 390" width="760" height="390" role="img" aria-labelledby="t d">
|
|
2
|
+
<title id="t">Baseline precision by audit rule</title><desc id="d">Per-rule precision at baseline: AS-ARC-001 0% (n=5), AS-SEC-001 18% (n=11), AS-ARC-003 50% (n=8), AS-IAC-001 50% (n=2), AS-SEC-004 50% (n=8), AS-SEC-005 86% (n=7), AS-OPS-003 100% (n=4), AS-SEC-002 100% (n=3).</desc>
|
|
3
|
+
<style>
|
|
4
|
+
:root{--bg:#121a33;--ink:#e6eaf5;--mute:#aab4cc;--line:#2c3a60;--a:#a5b4fc;--b:#5eead4;--c:#f0c36a;--bad:#ff9b92;--ok:#5fd39a}
|
|
5
|
+
text{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;fill:var(--ink)}
|
|
6
|
+
.m{fill:var(--mute)}.t{font-size:18px;font-weight:700}.s{font-size:12px}.l{font-size:13px}.n{font-size:13px;font-weight:700}
|
|
7
|
+
.axis{stroke:var(--line);stroke-width:1}.grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
|
|
8
|
+
</style>
|
|
9
|
+
<rect width="760" height="390" rx="14" fill="var(--bg)" stroke="var(--line)"/>
|
|
10
|
+
<text x="24" y="34" class="t">Where the first version was noisy: precision by rule (v0.1.0 baseline)</text>
|
|
11
|
+
<text x="24" y="54" class="s m">Each bar is the share of that rule's sampled findings that were real. Labeled count at the right. These are the rules the fixes targeted.</text><text x="140" y="97" text-anchor="end" class="l">AS-ARC-001</text><rect x="150" y="82" width="530" height="20" rx="4" fill="var(--line)" opacity=".5"/><rect x="150" y="82" width="2" height="20" rx="4" fill="var(--bad)"/><text x="158" y="97" class="n">0%</text><text x="736" y="97" text-anchor="end" class="s m">n=5</text><text x="140" y="131" text-anchor="end" class="l">AS-SEC-001</text><rect x="150" y="116" width="530" height="20" rx="4" fill="var(--line)" opacity=".5"/><rect x="150" y="116" width="96.36363636363636" height="20" rx="4" fill="var(--bad)"/><text x="254.36363636363637" y="131" class="n">18%</text><text x="736" y="131" text-anchor="end" class="s m">n=11</text><text x="140" y="165" text-anchor="end" class="l">AS-ARC-003</text><rect x="150" y="150" width="530" height="20" rx="4" fill="var(--line)" opacity=".5"/><rect x="150" y="150" width="265" height="20" rx="4" fill="var(--c)"/><text x="423" y="165" class="n">50%</text><text x="736" y="165" text-anchor="end" class="s m">n=8</text><text x="140" y="199" text-anchor="end" class="l">AS-IAC-001</text><rect x="150" y="184" width="530" height="20" rx="4" fill="var(--line)" opacity=".5"/><rect x="150" y="184" width="265" height="20" rx="4" fill="var(--c)"/><text x="423" y="199" class="n">50%</text><text x="736" y="199" text-anchor="end" class="s m">n=2</text><text x="140" y="233" text-anchor="end" class="l">AS-SEC-004</text><rect x="150" y="218" width="530" height="20" rx="4" fill="var(--line)" opacity=".5"/><rect x="150" y="218" width="265" height="20" rx="4" fill="var(--c)"/><text x="423" y="233" class="n">50%</text><text x="736" y="233" text-anchor="end" class="s m">n=8</text><text x="140" y="267" text-anchor="end" class="l">AS-SEC-005</text><rect x="150" y="252" width="530" height="20" rx="4" fill="var(--line)" opacity=".5"/><rect x="150" y="252" width="454.2857142857143" height="20" rx="4" fill="var(--ok)"/><text x="612.2857142857142" y="267" class="n">86%</text><text x="736" y="267" text-anchor="end" class="s m">n=7</text><text x="140" y="301" text-anchor="end" class="l">AS-OPS-003</text><rect x="150" y="286" width="530" height="20" rx="4" fill="var(--line)" opacity=".5"/><rect x="150" y="286" width="530" height="20" rx="4" fill="var(--ok)"/><text x="688" y="301" class="n">100%</text><text x="736" y="301" text-anchor="end" class="s m">n=4</text><text x="140" y="335" text-anchor="end" class="l">AS-SEC-002</text><rect x="150" y="320" width="530" height="20" rx="4" fill="var(--line)" opacity=".5"/><rect x="150" y="320" width="530" height="20" rx="4" fill="var(--ok)"/><text x="688" y="335" class="n">100%</text><text x="736" y="335" text-anchor="end" class="s m">n=3</text>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 390" width="760" height="390" role="img" aria-labelledby="t d">
|
|
2
|
+
<title id="t">Baseline precision by audit rule</title><desc id="d">Per-rule precision at baseline: AS-ARC-001 0% (n=5), AS-SEC-001 18% (n=11), AS-ARC-003 50% (n=8), AS-IAC-001 50% (n=2), AS-SEC-004 50% (n=8), AS-SEC-005 86% (n=7), AS-OPS-003 100% (n=4), AS-SEC-002 100% (n=3).</desc>
|
|
3
|
+
<style>
|
|
4
|
+
:root{--bg:#ffffff;--ink:#0f172a;--mute:#475569;--line:#d9dfea;--a:#4f46e5;--b:#0f766e;--c:#b45309;--bad:#b91c1c;--ok:#15803d}
|
|
5
|
+
text{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;fill:var(--ink)}
|
|
6
|
+
.m{fill:var(--mute)}.t{font-size:18px;font-weight:700}.s{font-size:12px}.l{font-size:13px}.n{font-size:13px;font-weight:700}
|
|
7
|
+
.axis{stroke:var(--line);stroke-width:1}.grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
|
|
8
|
+
</style>
|
|
9
|
+
<rect width="760" height="390" rx="14" fill="var(--bg)" stroke="var(--line)"/>
|
|
10
|
+
<text x="24" y="34" class="t">Where the first version was noisy: precision by rule (v0.1.0 baseline)</text>
|
|
11
|
+
<text x="24" y="54" class="s m">Each bar is the share of that rule's sampled findings that were real. Labeled count at the right. These are the rules the fixes targeted.</text><text x="140" y="97" text-anchor="end" class="l">AS-ARC-001</text><rect x="150" y="82" width="530" height="20" rx="4" fill="var(--line)" opacity=".5"/><rect x="150" y="82" width="2" height="20" rx="4" fill="var(--bad)"/><text x="158" y="97" class="n">0%</text><text x="736" y="97" text-anchor="end" class="s m">n=5</text><text x="140" y="131" text-anchor="end" class="l">AS-SEC-001</text><rect x="150" y="116" width="530" height="20" rx="4" fill="var(--line)" opacity=".5"/><rect x="150" y="116" width="96.36363636363636" height="20" rx="4" fill="var(--bad)"/><text x="254.36363636363637" y="131" class="n">18%</text><text x="736" y="131" text-anchor="end" class="s m">n=11</text><text x="140" y="165" text-anchor="end" class="l">AS-ARC-003</text><rect x="150" y="150" width="530" height="20" rx="4" fill="var(--line)" opacity=".5"/><rect x="150" y="150" width="265" height="20" rx="4" fill="var(--c)"/><text x="423" y="165" class="n">50%</text><text x="736" y="165" text-anchor="end" class="s m">n=8</text><text x="140" y="199" text-anchor="end" class="l">AS-IAC-001</text><rect x="150" y="184" width="530" height="20" rx="4" fill="var(--line)" opacity=".5"/><rect x="150" y="184" width="265" height="20" rx="4" fill="var(--c)"/><text x="423" y="199" class="n">50%</text><text x="736" y="199" text-anchor="end" class="s m">n=2</text><text x="140" y="233" text-anchor="end" class="l">AS-SEC-004</text><rect x="150" y="218" width="530" height="20" rx="4" fill="var(--line)" opacity=".5"/><rect x="150" y="218" width="265" height="20" rx="4" fill="var(--c)"/><text x="423" y="233" class="n">50%</text><text x="736" y="233" text-anchor="end" class="s m">n=8</text><text x="140" y="267" text-anchor="end" class="l">AS-SEC-005</text><rect x="150" y="252" width="530" height="20" rx="4" fill="var(--line)" opacity=".5"/><rect x="150" y="252" width="454.2857142857143" height="20" rx="4" fill="var(--ok)"/><text x="612.2857142857142" y="267" class="n">86%</text><text x="736" y="267" text-anchor="end" class="s m">n=7</text><text x="140" y="301" text-anchor="end" class="l">AS-OPS-003</text><rect x="150" y="286" width="530" height="20" rx="4" fill="var(--line)" opacity=".5"/><rect x="150" y="286" width="530" height="20" rx="4" fill="var(--ok)"/><text x="688" y="301" class="n">100%</text><text x="736" y="301" text-anchor="end" class="s m">n=4</text><text x="140" y="335" text-anchor="end" class="l">AS-SEC-002</text><rect x="150" y="320" width="530" height="20" rx="4" fill="var(--line)" opacity=".5"/><rect x="150" y="320" width="530" height="20" rx="4" fill="var(--ok)"/><text x="688" y="335" class="n">100%</text><text x="736" y="335" text-anchor="end" class="s m">n=3</text>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 330" width="760" height="330" role="img" aria-labelledby="t d">
|
|
2
|
+
<title id="t">Findings by severity in the sample audit</title><desc id="d">Counts: critical 0, high 3, medium 7, low 2, info 0.</desc>
|
|
3
|
+
<style>
|
|
4
|
+
:root{--bg:#121a33;--ink:#e6eaf5;--mute:#aab4cc;--line:#2c3a60;--a:#a5b4fc;--b:#5eead4;--c:#f0c36a;--bad:#ff9b92;--ok:#5fd39a}
|
|
5
|
+
text{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;fill:var(--ink)}
|
|
6
|
+
.m{fill:var(--mute)}.t{font-size:18px;font-weight:700}.s{font-size:12px}.l{font-size:13px}.n{font-size:13px;font-weight:700}
|
|
7
|
+
.axis{stroke:var(--line);stroke-width:1}.grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
|
|
8
|
+
</style>
|
|
9
|
+
<rect width="760" height="330" rx="14" fill="var(--bg)" stroke="var(--line)"/>
|
|
10
|
+
<text x="24" y="34" class="t">What one audit of the sample monolith found</text><text x="24" y="54" class="s m">12 findings from the real output in examples/brownfield-monolith (severity, not importance order).</text><text x="108" y="104" text-anchor="end" class="l">critical</text><rect x="120" y="86" width="4" height="26" rx="5" fill="var(--bad)" opacity="0.25"/><text x="134" y="105" class="n">0</text><text x="108" y="148" text-anchor="end" class="l">high</text><rect x="120" y="130" width="227.14285714285714" height="26" rx="5" fill="var(--bad)" opacity="1"/><text x="357.1428571428571" y="149" class="n">3</text><text x="108" y="192" text-anchor="end" class="l">medium</text><rect x="120" y="174" width="530" height="26" rx="5" fill="var(--c)" opacity="1"/><text x="660" y="193" class="n">7</text><text x="108" y="236" text-anchor="end" class="l">low</text><rect x="120" y="218" width="151.42857142857142" height="26" rx="5" fill="var(--a)" opacity="1"/><text x="281.42857142857144" y="237" class="n">2</text><text x="108" y="280" text-anchor="end" class="l">info</text><rect x="120" y="262" width="4" height="26" rx="5" fill="var(--mute)" opacity="0.25"/><text x="134" y="281" class="n">0</text>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 330" width="760" height="330" role="img" aria-labelledby="t d">
|
|
2
|
+
<title id="t">Findings by severity in the sample audit</title><desc id="d">Counts: critical 0, high 3, medium 7, low 2, info 0.</desc>
|
|
3
|
+
<style>
|
|
4
|
+
:root{--bg:#ffffff;--ink:#0f172a;--mute:#475569;--line:#d9dfea;--a:#4f46e5;--b:#0f766e;--c:#b45309;--bad:#b91c1c;--ok:#15803d}
|
|
5
|
+
text{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;fill:var(--ink)}
|
|
6
|
+
.m{fill:var(--mute)}.t{font-size:18px;font-weight:700}.s{font-size:12px}.l{font-size:13px}.n{font-size:13px;font-weight:700}
|
|
7
|
+
.axis{stroke:var(--line);stroke-width:1}.grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
|
|
8
|
+
</style>
|
|
9
|
+
<rect width="760" height="330" rx="14" fill="var(--bg)" stroke="var(--line)"/>
|
|
10
|
+
<text x="24" y="34" class="t">What one audit of the sample monolith found</text><text x="24" y="54" class="s m">12 findings from the real output in examples/brownfield-monolith (severity, not importance order).</text><text x="108" y="104" text-anchor="end" class="l">critical</text><rect x="120" y="86" width="4" height="26" rx="5" fill="var(--bad)" opacity="0.25"/><text x="134" y="105" class="n">0</text><text x="108" y="148" text-anchor="end" class="l">high</text><rect x="120" y="130" width="227.14285714285714" height="26" rx="5" fill="var(--bad)" opacity="1"/><text x="357.1428571428571" y="149" class="n">3</text><text x="108" y="192" text-anchor="end" class="l">medium</text><rect x="120" y="174" width="530" height="26" rx="5" fill="var(--c)" opacity="1"/><text x="660" y="193" class="n">7</text><text x="108" y="236" text-anchor="end" class="l">low</text><rect x="120" y="218" width="151.42857142857142" height="26" rx="5" fill="var(--a)" opacity="1"/><text x="281.42857142857144" y="237" class="n">2</text><text x="108" y="280" text-anchor="end" class="l">info</text><rect x="120" y="262" width="4" height="26" rx="5" fill="var(--mute)" opacity="0.25"/><text x="134" y="281" class="n">0</text>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 380" width="760" height="380" role="img" aria-labelledby="t d">
|
|
2
|
+
<title id="t">Scan time and memory by repository size</title><desc id="d">Synthetic benchmark: small: 0.6 seconds, 70 MB; medium: 2.0 seconds, 98 MB; at default limit: 8.0 seconds, 240 MB; over limit (20k files, truncated): 8.4 seconds, 241 MB.</desc>
|
|
3
|
+
<style>
|
|
4
|
+
:root{--bg:#121a33;--ink:#e6eaf5;--mute:#aab4cc;--line:#2c3a60;--a:#a5b4fc;--b:#5eead4;--c:#f0c36a;--bad:#ff9b92;--ok:#5fd39a}
|
|
5
|
+
text{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;fill:var(--ink)}
|
|
6
|
+
.m{fill:var(--mute)}.t{font-size:18px;font-weight:700}.s{font-size:12px}.l{font-size:13px}.n{font-size:13px;font-weight:700}
|
|
7
|
+
.axis{stroke:var(--line);stroke-width:1}.grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
|
|
8
|
+
</style>
|
|
9
|
+
<rect width="760" height="380" rx="14" fill="var(--bg)" stroke="var(--line)"/>
|
|
10
|
+
<text x="24" y="34" class="t">How long a scan takes (synthetic repositories, one laptop)</text><text x="24" y="54" class="s m">Time in seconds with peak memory. Capped at 5 000 files: bigger repositories are cut off and the report says so.</text><line x1="70" x2="730" y1="290" y2="290" class="axis"/><text x="62" y="294" text-anchor="end" class="s m">0s</text><line x1="70" x2="730" y1="240" y2="240" class="grid"/><text x="62" y="244" text-anchor="end" class="s m">2s</text><line x1="70" x2="730" y1="190" y2="190" class="grid"/><text x="62" y="194" text-anchor="end" class="s m">5s</text><line x1="70" x2="730" y1="140" y2="140" class="grid"/><text x="62" y="144" text-anchor="end" class="s m">7s</text><line x1="70" x2="730" y1="90" y2="90" class="grid"/><text x="62" y="94" text-anchor="end" class="s m">10s</text><rect x="106.3" y="276.73946555715384" width="92.4" height="13.26053444284617" rx="5" fill="var(--a)"/><text x="152.5" y="268.73946555715384" text-anchor="middle" class="n">0.6s</text><text x="152.5" y="312" text-anchor="middle" class="s">small</text><text x="152.5" y="330" text-anchor="middle" class="s m">201 files, 70 MB</text><rect x="271.3" y="248.0529905804835" width="92.4" height="41.9470094195165" rx="5" fill="var(--a)"/><text x="317.5" y="240.0529905804835" text-anchor="middle" class="n">2.0s</text><text x="317.5" y="312" text-anchor="middle" class="s">medium</text><text x="317.5" y="330" text-anchor="middle" class="s m">1001 files, 98 MB</text><rect x="436.3" y="125.84159538871614" width="92.4" height="164.15840461128386" rx="5" fill="var(--c)"/><text x="482.5" y="117.84159538871614" text-anchor="middle" class="n">8.0s</text><text x="482.5" y="312" text-anchor="middle" class="s">at default limit</text><text x="482.5" y="330" text-anchor="middle" class="s m">5000 files, 240 MB, truncated</text><rect x="601.3" y="116.0869565217391" width="92.4" height="173.9130434782609" rx="5" fill="var(--c)"/><text x="647.5" y="108.0869565217391" text-anchor="middle" class="n">8.4s</text><text x="647.5" y="312" text-anchor="middle" class="s">over limit</text><text x="647.5" y="330" text-anchor="middle" class="s m">5000 files, 241 MB, truncated</text>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 380" width="760" height="380" role="img" aria-labelledby="t d">
|
|
2
|
+
<title id="t">Scan time and memory by repository size</title><desc id="d">Synthetic benchmark: small: 0.6 seconds, 70 MB; medium: 2.0 seconds, 98 MB; at default limit: 8.0 seconds, 240 MB; over limit (20k files, truncated): 8.4 seconds, 241 MB.</desc>
|
|
3
|
+
<style>
|
|
4
|
+
:root{--bg:#ffffff;--ink:#0f172a;--mute:#475569;--line:#d9dfea;--a:#4f46e5;--b:#0f766e;--c:#b45309;--bad:#b91c1c;--ok:#15803d}
|
|
5
|
+
text{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;fill:var(--ink)}
|
|
6
|
+
.m{fill:var(--mute)}.t{font-size:18px;font-weight:700}.s{font-size:12px}.l{font-size:13px}.n{font-size:13px;font-weight:700}
|
|
7
|
+
.axis{stroke:var(--line);stroke-width:1}.grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
|
|
8
|
+
</style>
|
|
9
|
+
<rect width="760" height="380" rx="14" fill="var(--bg)" stroke="var(--line)"/>
|
|
10
|
+
<text x="24" y="34" class="t">How long a scan takes (synthetic repositories, one laptop)</text><text x="24" y="54" class="s m">Time in seconds with peak memory. Capped at 5 000 files: bigger repositories are cut off and the report says so.</text><line x1="70" x2="730" y1="290" y2="290" class="axis"/><text x="62" y="294" text-anchor="end" class="s m">0s</text><line x1="70" x2="730" y1="240" y2="240" class="grid"/><text x="62" y="244" text-anchor="end" class="s m">2s</text><line x1="70" x2="730" y1="190" y2="190" class="grid"/><text x="62" y="194" text-anchor="end" class="s m">5s</text><line x1="70" x2="730" y1="140" y2="140" class="grid"/><text x="62" y="144" text-anchor="end" class="s m">7s</text><line x1="70" x2="730" y1="90" y2="90" class="grid"/><text x="62" y="94" text-anchor="end" class="s m">10s</text><rect x="106.3" y="276.73946555715384" width="92.4" height="13.26053444284617" rx="5" fill="var(--a)"/><text x="152.5" y="268.73946555715384" text-anchor="middle" class="n">0.6s</text><text x="152.5" y="312" text-anchor="middle" class="s">small</text><text x="152.5" y="330" text-anchor="middle" class="s m">201 files, 70 MB</text><rect x="271.3" y="248.0529905804835" width="92.4" height="41.9470094195165" rx="5" fill="var(--a)"/><text x="317.5" y="240.0529905804835" text-anchor="middle" class="n">2.0s</text><text x="317.5" y="312" text-anchor="middle" class="s">medium</text><text x="317.5" y="330" text-anchor="middle" class="s m">1001 files, 98 MB</text><rect x="436.3" y="125.84159538871614" width="92.4" height="164.15840461128386" rx="5" fill="var(--c)"/><text x="482.5" y="117.84159538871614" text-anchor="middle" class="n">8.0s</text><text x="482.5" y="312" text-anchor="middle" class="s">at default limit</text><text x="482.5" y="330" text-anchor="middle" class="s m">5000 files, 240 MB, truncated</text><rect x="601.3" y="116.0869565217391" width="92.4" height="173.9130434782609" rx="5" fill="var(--c)"/><text x="647.5" y="108.0869565217391" text-anchor="middle" class="n">8.4s</text><text x="647.5" y="312" text-anchor="middle" class="s">over limit</text><text x="647.5" y="330" text-anchor="middle" class="s m">5000 files, 241 MB, truncated</text>
|
|
11
|
+
</svg>
|