archsutra-ai 0.1.4 → 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.
Files changed (113) hide show
  1. package/CHANGELOG.md +56 -6
  2. package/README.md +84 -12
  3. package/dist/audit.js +125 -44
  4. package/dist/cli.js +184 -96
  5. package/dist/drift.js +29 -15
  6. package/dist/fsutil.js +117 -20
  7. package/dist/history.js +40 -0
  8. package/dist/html.js +10 -8
  9. package/dist/map.js +26 -5
  10. package/dist/mcp.js +70 -55
  11. package/dist/redact.js +24 -11
  12. package/dist/report.js +69 -19
  13. package/dist/rules-extra.js +59 -0
  14. package/dist/secret-patterns.js +69 -0
  15. package/dist/suppress.js +31 -19
  16. package/dist/verify.js +2 -2
  17. package/dist/write.js +71 -0
  18. package/docs/architecture/overview.html +29 -12
  19. package/docs/architecture/overview.md +2 -2
  20. package/docs/architecture/threat-model.html +28 -11
  21. package/docs/assets/charts/coverage-dark.svg +11 -0
  22. package/docs/assets/charts/coverage.svg +11 -0
  23. package/docs/assets/charts/finding-anatomy-dark.svg +20 -0
  24. package/docs/assets/charts/finding-anatomy.svg +20 -0
  25. package/docs/assets/charts/pipeline-dark.svg +13 -0
  26. package/docs/assets/charts/pipeline.svg +13 -0
  27. package/docs/assets/charts/precision-by-batch-dark.svg +12 -0
  28. package/docs/assets/charts/precision-by-batch.svg +12 -0
  29. package/docs/assets/charts/precision-by-rule-dark.svg +12 -0
  30. package/docs/assets/charts/precision-by-rule.svg +12 -0
  31. package/docs/assets/charts/sample-findings-by-severity-dark.svg +11 -0
  32. package/docs/assets/charts/sample-findings-by-severity.svg +11 -0
  33. package/docs/assets/charts/scan-time-dark.svg +11 -0
  34. package/docs/assets/charts/scan-time.svg +11 -0
  35. package/docs/assets/site.css +259 -138
  36. package/docs/assets/site.js +92 -6
  37. package/docs/community/good-first-issues.html +28 -11
  38. package/docs/compatibility/matrix.html +28 -11
  39. package/docs/compatibility/smoke-tests/index.html +28 -11
  40. package/docs/decisions/ADR-0001-deterministic-cli-plus-ide-skills.html +28 -11
  41. package/docs/guides/cheat-sheet.html +100 -0
  42. package/docs/guides/cheat-sheet.md +146 -0
  43. package/docs/guides/ci-recipes.html +170 -0
  44. package/docs/guides/ci-recipes.md +176 -0
  45. package/docs/guides/evidence-at-a-glance.html +93 -0
  46. package/docs/guides/evidence-at-a-glance.md +65 -0
  47. package/docs/guides/getting-started.html +151 -0
  48. package/docs/guides/getting-started.md +160 -0
  49. package/docs/guides/how-it-works.html +161 -0
  50. package/docs/guides/how-it-works.md +148 -0
  51. package/docs/guides/mcp-server.html +99 -0
  52. package/docs/guides/mcp-server.md +81 -0
  53. package/docs/guides/reading-a-report.html +119 -0
  54. package/docs/guides/reading-a-report.md +111 -0
  55. package/docs/guides/real-world-scenarios.html +287 -0
  56. package/docs/guides/real-world-scenarios.md +377 -0
  57. package/docs/handbook/01-executive-summary.html +30 -13
  58. package/docs/handbook/01-executive-summary.md +2 -2
  59. package/docs/handbook/02-functional-specification.html +30 -13
  60. package/docs/handbook/02-functional-specification.md +3 -3
  61. package/docs/handbook/03-technical-specification.html +31 -14
  62. package/docs/handbook/03-technical-specification.md +3 -3
  63. package/docs/handbook/04-architecture.html +29 -12
  64. package/docs/handbook/04-architecture.md +1 -1
  65. package/docs/handbook/05-user-guide.html +33 -15
  66. package/docs/handbook/05-user-guide.md +5 -4
  67. package/docs/handbook/06-cli-reference.html +52 -16
  68. package/docs/handbook/06-cli-reference.md +47 -4
  69. package/docs/handbook/07-security-privacy-legal.html +31 -12
  70. package/docs/handbook/07-security-privacy-legal.md +4 -0
  71. package/docs/handbook/08-testing-and-proof.html +32 -15
  72. package/docs/handbook/08-testing-and-proof.md +4 -4
  73. package/docs/handbook/09-compatibility-and-roadmap.html +29 -12
  74. package/docs/handbook/09-compatibility-and-roadmap.md +3 -2
  75. package/docs/handbook/10-contributor-guide.html +29 -12
  76. package/docs/handbook/10-contributor-guide.md +1 -1
  77. package/docs/handbook/11-glossary-and-faq.html +34 -13
  78. package/docs/handbook/11-glossary-and-faq.md +7 -1
  79. package/docs/handbook/12-rule-catalog.html +59 -19
  80. package/docs/handbook/12-rule-catalog.md +62 -5
  81. package/docs/handbook/13-trust-and-assurance.html +29 -12
  82. package/docs/handbook/13-trust-and-assurance.md +1 -1
  83. package/docs/handbook/14-real-world-evaluation.html +28 -11
  84. package/docs/handbook/15-supply-chain-and-release.html +28 -11
  85. package/docs/handbook/16-performance-and-quality-metrics.html +28 -11
  86. package/docs/handbook/16-performance-and-quality-metrics.md +1 -1
  87. package/docs/handbook/README.md +4 -2
  88. package/docs/handbook/index.html +31 -13
  89. package/docs/index.html +101 -51
  90. package/docs/legal/legal-review-brief.html +28 -11
  91. package/docs/legal/trademark-and-name-clearance.html +28 -11
  92. package/docs/proof/accessibility.html +28 -11
  93. package/docs/proof/benchmarks.json +9 -9
  94. package/docs/proof/benchmarks.md +4 -4
  95. package/docs/proof/test-results.txt +56 -40
  96. package/docs/rfc/0001-archsutra-v0.1.html +28 -11
  97. package/docs/sample-report/architecture-register.json +46 -0
  98. package/docs/sample-report/audit-report.html +123 -0
  99. package/docs/sample-report/audit-report.md +314 -0
  100. package/docs/sample-report/current-state.html +77 -0
  101. package/docs/sample-report/current-state.md +51 -0
  102. package/docs/sample-report/findings.json +478 -0
  103. package/docs/sample-report/findings.sarif +754 -0
  104. package/docs/sample-report/index.html +57 -0
  105. package/docs/sample-report/overview.md +11 -0
  106. package/docs/search-index.json +1 -0
  107. package/docs/sitemap.xml +39 -28
  108. package/llms.txt +11 -2
  109. package/package.json +3 -2
  110. package/schemas/findings.schema.json +4 -3
  111. package/skills/architecture-audit/SKILL.md +2 -2
  112. package/skills/architecture-audit/references/report-template.md +1 -1
  113. package/skills/architecture-verification/references/fitness-functions.md +1 -1
@@ -7,6 +7,7 @@
7
7
  <meta name="description" content="Requirement-level description of every capability, actor, input, output and acceptance test.">
8
8
  <link rel="canonical" href="https://shahvatsalofficial.github.io/archsutra-ai/handbook/02-functional-specification.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="Functional specification | ArchSutra AI">
12
13
  <meta property="og:description" content="Requirement-level description of every capability, actor, input, output and acceptance test.">
@@ -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{var t=localStorage.getItem('as-theme');if(t)document.documentElement.setAttribute('data-theme',t)}catch(e){}</script>
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":"Functional specification","description":"Requirement-level description of every capability, actor, input, output and acceptance test.","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
- <button class="menu-btn" type="button" aria-label="Toggle navigation" aria-expanded="false" aria-controls="sidebar">Menu</button>
29
- <a class="brand" href="../index.html" aria-label="ArchSutra AI home"><svg viewBox="0 0 32 32" width="26" height="26" aria-hidden="true"><rect width="32" height="32" rx="8" fill="currentColor" opacity=".12"/><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="../handbook/index.html">Handbook</a><a href="../handbook/05-user-guide.html">Get started</a><a href="../handbook/08-testing-and-proof.html">Proof</a><a href="https://github.com/shahvatsalofficial/archsutra-ai" rel="noopener">GitHub</a></nav>
31
- <button class="theme-btn" type="button" aria-label="Toggle color theme"><span class="sun" aria-hidden="true">Light</span><span class="moon" aria-hidden="true">Dark</span></button>
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" aria-current="true">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" aria-current="page">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">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" aria-current="page">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">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" aria-current="page">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">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> / Handbook</p><h1 id="functional-specification">Functional specification</h1>
37
- <p class="lede">Requirement-level description of every capability, actor, input, output and acceptance test.</p><p class="meta">Version 0.1.4 &middot; Source: <a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/02-functional-specification.md" rel="noopener">docs/handbook/02-functional-specification.md</a></p>
49
+ <p class="lede">Requirement-level description of every capability, actor, input, output and acceptance test.</p><p class="meta">Version 0.2.0 &middot; Source: <a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/02-functional-specification.md" rel="noopener">docs/handbook/02-functional-specification.md</a></p>
38
50
  <h2 id="1-purpose-and-scope">1. Purpose and scope<a class="anchor" href="#1-purpose-and-scope" aria-label="Link to this section">#</a></h2>
39
51
  <p>ArchSutra AI helps people understand and improve the architecture of a software system. It covers <strong>audit</strong> of existing code, <strong>design</strong> of new systems, <strong>modernization</strong> planning, <strong>threat modeling</strong> and <strong>verification</strong> of architecture documents.</p>
40
52
  <p>In scope for v0.1: deterministic repository analysis, skill and agent content, installation into five AI IDEs, report export. Out of scope: server mode, model-provider runtime, local-model runtime, languages beyond import graphs for JS/TS/Python, runtime profiling. See the <a href="../rfc/0001-archsutra-v0.1.html">RFC</a>.</p>
@@ -45,9 +57,9 @@
45
57
  <h3 id="31-repository-analysis-cli">3.1 Repository analysis (CLI)<a class="anchor" href="#31-repository-analysis-cli" aria-label="Link to this section">#</a></h3>
46
58
  <div class="table-wrap" tabindex="0" role="region" aria-label="Table 2: 3.1 Repository analysis (CLI)"><table><thead><tr><th scope="col">ID</th><th scope="col">Requirement</th><th scope="col">Status</th></tr></thead><tbody><tr><td>F-01</td><td>Walk a repository with limits (5000 files, 512 KB per file, 15 s), skipping ignored directories, binaries and symlinks, and report truncation</td><td>T</td></tr><tr><td>F-02</td><td>Detect ecosystems from manifests and file extensions (TypeScript, JavaScript, Python, Java, Kotlin, C#, Go, Rust, PHP, Ruby, Swift, Dart)</td><td>T</td></tr><tr><td>F-03</td><td>Detect frameworks and datastores from dependency manifests</td><td>T</td></tr><tr><td>F-04</td><td>Detect infrastructure files (Docker, Compose, Terraform, Kubernetes/Helm, GitHub Actions)</td><td>T</td></tr><tr><td>F-05</td><td>Build a module-level dependency graph from relative imports (JS/TS), package imports (Python), and import-suffix matches (Go, Java, Kotlin, C#, Rust)</td><td>T</td></tr><tr><td>F-06</td><td>Detect dependency cycles between modules (Tarjan SCC)</td><td>T</td></tr><tr><td>F-07</td><td>List blind spots explicitly in every output</td><td>T</td></tr></tbody></table></div>
47
59
  <h3 id="32-audit">3.2 Audit<a class="anchor" href="#32-audit" aria-label="Link to this section">#</a></h3>
48
- <div class="table-wrap" tabindex="0" role="region" aria-label="Table 3: 3.2 Audit"><table><thead><tr><th scope="col">ID</th><th scope="col">Requirement</th><th scope="col">Status</th></tr></thead><tbody><tr><td>F-10</td><td>Evaluate 19 rules (see <a href="12-rule-catalog.html">rule catalog</a>) and emit findings</td><td>T</td></tr><tr><td>F-11</td><td>Each finding has stable ID, title, category, severity, confidence, evidence (path, line, kind, redacted excerpt), impact, why it matters, fix, verification, acceptance criteria, effort, owner type, caveats, references</td><td>T</td></tr><tr><td>F-12</td><td>Never include secret values in any output</td><td>T</td></tr><tr><td>F-13</td><td>Produce a scorecard; categories without evidence are <code>not assessed</code></td><td>T</td></tr><tr><td>F-14</td><td><code>--fail-on &lt;severity&gt;</code> returns exit code 1 when a finding meets the threshold</td><td>T</td></tr></tbody></table></div>
60
+ <div class="table-wrap" tabindex="0" role="region" aria-label="Table 3: 3.2 Audit"><table><thead><tr><th scope="col">ID</th><th scope="col">Requirement</th><th scope="col">Status</th></tr></thead><tbody><tr><td>F-10</td><td>Evaluate 30 rules (see <a href="12-rule-catalog.html">rule catalog</a>) and emit findings</td><td>T</td></tr><tr><td>F-11</td><td>Each finding has stable ID, title, category, severity, confidence, evidence (path, line, kind, redacted excerpt), impact, why it matters, fix, verification, acceptance criteria, effort, owner type, caveats, references</td><td>T</td></tr><tr><td>F-12</td><td>Never include secret values in any output</td><td>T</td></tr><tr><td>F-13</td><td>Produce a scorecard; categories without evidence are <code>not assessed</code></td><td>T</td></tr><tr><td>F-14</td><td><code>--fail-on &lt;severity&gt;</code> returns exit code 1 when a finding meets the threshold</td><td>T</td></tr></tbody></table></div>
49
61
  <h3 id="33-reporting-and-export">3.3 Reporting and export<a class="anchor" href="#33-reporting-and-export" aria-label="Link to this section">#</a></h3>
50
- <div class="table-wrap" tabindex="0" role="region" aria-label="Table 4: 3.3 Reporting and export"><table><thead><tr><th scope="col">ID</th><th scope="col">Requirement</th><th scope="col">Status</th></tr></thead><tbody><tr><td>F-20</td><td>Render <code>audit-report.md</code>, <code>current-state.md</code> (with Mermaid context and container diagrams), <code>README.md</code></td><td>T</td></tr><tr><td>F-21</td><td>Render <code>findings.json</code> conforming to schema v1.0.0</td><td>T</td></tr><tr><td>F-22</td><td>Render <code>findings.sarif</code> (SARIF 2.1.0)</td><td>T</td></tr><tr><td>F-23</td><td>Render <code>architecture-register.json</code> with SHA-256 per artifact</td><td>T</td></tr><tr><td>F-24</td><td><code>--dry-run</code> writes nothing; <code>--output</code> cannot escape the project</td><td>T</td></tr><tr><td>F-25</td><td>Every Markdown report also exists as a self-contained HTML page. <code>audit --output</code> and <code>export</code> write <code>index.html</code>, <code>audit-report.md</code>/<code>audit-report.html</code>, <code>current-state.md</code>/<code>current-state.html</code>. <code>map --output</code> writes the current-state pair. <code>html &lt;file.md&gt;</code> renders a narrative Markdown file to a sibling HTML page. <code>audit</code> and <code>map</code> still accept <code>--format html</code> for stdout. HTML escapes repository-derived text and ships a Content-Security-Policy</td><td>T</td></tr></tbody></table></div>
62
+ <div class="table-wrap" tabindex="0" role="region" aria-label="Table 4: 3.3 Reporting and export"><table><thead><tr><th scope="col">ID</th><th scope="col">Requirement</th><th scope="col">Status</th></tr></thead><tbody><tr><td>F-20</td><td>Render <code>audit-report.md</code>, <code>current-state.md</code> (with Mermaid context and container diagrams), <code>overview.md</code></td><td>T</td></tr><tr><td>F-21</td><td>Render <code>findings.json</code> conforming to schema v1.1.0</td><td>T</td></tr><tr><td>F-22</td><td>Render <code>findings.sarif</code> (SARIF 2.1.0)</td><td>T</td></tr><tr><td>F-23</td><td>Render <code>architecture-register.json</code> with SHA-256 per artifact</td><td>T</td></tr><tr><td>F-24</td><td><code>--dry-run</code> writes nothing; <code>--output</code> cannot escape the project</td><td>T</td></tr><tr><td>F-25</td><td>Every Markdown report also exists as a self-contained HTML page. <code>audit --output</code> and <code>export</code> write <code>index.html</code>, <code>audit-report.md</code>/<code>audit-report.html</code>, <code>current-state.md</code>/<code>current-state.html</code>. <code>map --output</code> writes the current-state pair. <code>html &lt;file.md&gt;</code> renders a narrative Markdown file to a sibling HTML page. <code>audit</code> and <code>map</code> still accept <code>--format html</code> for stdout. HTML escapes repository-derived text and ships a Content-Security-Policy</td><td>T</td></tr></tbody></table></div>
51
63
  <h3 id="34-verification">3.4 Verification<a class="anchor" href="#34-verification" aria-label="Link to this section">#</a></h3>
52
64
  <div class="table-wrap" tabindex="0" role="region" aria-label="Table 5: 3.4 Verification"><table><thead><tr><th scope="col">ID</th><th scope="col">Requirement</th><th scope="col">Status</th></tr></thead><tbody><tr><td>F-30</td><td>Validate skills (name equals directory, kebab-case, description 1-1024 chars, body under 500 lines)</td><td>T</td></tr><tr><td>F-31</td><td>Validate agents have the required headings</td><td>T</td></tr><tr><td>F-32</td><td>Check that relative Markdown links resolve</td><td>T</td></tr><tr><td>F-33</td><td>Check Mermaid blocks for known diagram type and balanced brackets (structural only, not rendered)</td><td>T</td></tr><tr><td>F-34</td><td>Validate any <code>findings.json</code> found</td><td>T</td></tr></tbody></table></div>
53
65
  <h3 id="35-installation">3.5 Installation<a class="anchor" href="#35-installation" aria-label="Link to this section">#</a></h3>
@@ -64,13 +76,18 @@
64
76
  <p><strong>S3. Deep review in an IDE.</strong> A user installs the skills, then asks ArchSutra Prime for a full audit. The assistant runs <code>archsutra audit . --json</code>, verifies each finding by reading the cited lines, adds architecture reasoning, diagrams, ADR recommendations and a roadmap.</p>
65
77
  <p><strong>S4. Safe adoption.</strong> A team runs <code>install --dry-run</code>, reviews the plan, installs, later edits a skill, and <code>uninstall</code> leaves their edit in place.</p>
66
78
  <h2 id="6-acceptance-tests">6. Acceptance tests<a class="anchor" href="#6-acceptance-tests" aria-label="Link to this section">#</a></h2>
67
- <p>Each requirement marked <strong>T</strong> maps to an automated test in <code>test/archsutra.test.mjs</code> or <code>test/eval.test.mjs</code>. The mapping is in <a href="08-testing-and-proof.html#requirement-to-test-map">Testing and proof</a>.</p></article></main>
79
+ <p>Each requirement marked <strong>T</strong> maps to an automated test in <code>test/archsutra.test.mjs</code> or <code>test/eval.test.mjs</code>. The mapping is in <a href="08-testing-and-proof.html#requirement-to-test-map">Testing and proof</a>.</p></article><nav class="pn" aria-label="Previous and next page"><a class="prev" href="01-executive-summary.html"><small>Previous</small><span>Executive summary</span></a><a class="next" href="03-technical-specification.html"><small>Next</small><span>Technical specification</span></a></nav><p class="edit"><a href="https://github.com/shahvatsalofficial/archsutra-ai/edit/main/docs/handbook/02-functional-specification.md" rel="noopener">Edit this page on GitHub</a></p></main>
68
80
  <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="#1-purpose-and-scope">1. Purpose and scope</a></li><li class="l2"><a href="#2-actors">2. Actors</a></li><li class="l2"><a href="#3-functional-requirements">3. Functional requirements</a></li><li class="l3"><a href="#31-repository-analysis-cli">3.1 Repository analysis (CLI)</a></li><li class="l3"><a href="#32-audit">3.2 Audit</a></li><li class="l3"><a href="#33-reporting-and-export">3.3 Reporting and export</a></li><li class="l3"><a href="#34-verification">3.4 Verification</a></li><li class="l3"><a href="#35-installation">3.5 Installation</a></li><li class="l3"><a href="#36-ai-assisted-workflows-skills">3.6 AI-assisted workflows (skills)</a></li><li class="l3"><a href="#37-agent-team">3.7 Agent team</a></li><li class="l2"><a href="#4-non-functional-requirements">4. Non-functional requirements</a></li><li class="l2"><a href="#5-primary-scenarios">5. Primary scenarios</a></li><li class="l2"><a href="#6-acceptance-tests">6. Acceptance tests</a></li></ul></nav></aside>
69
81
  </div>
70
82
  <footer class="footer">
71
83
  <div class="footer-inner">
72
- <p><strong>ArchSutra AI</strong> v0.1.4. Design. Audit. Evolve. Created by <a href="https://shahvatsal.com" rel="noopener">Vatsal Shah</a>. Licensed under <a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/LICENSE" rel="noopener">Apache-2.0</a>.</p>
73
- <p class="fine">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>
84
+ <div class="footer-grid">
85
+ <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>
86
+ <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>
87
+ <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>
88
+ <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>
89
+ </div>
90
+ <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>
74
91
  </div>
75
92
  </footer>
76
93
  <script src="../assets/site.js" type="module"></script>
@@ -40,7 +40,7 @@ IDs are stable. "Status" is implemented and tested (**T**), implemented not live
40
40
 
41
41
  | ID | Requirement | Status |
42
42
  |---|---|---|
43
- | F-10 | Evaluate 19 rules (see [rule catalog](12-rule-catalog.md)) and emit findings | T |
43
+ | F-10 | Evaluate 30 rules (see [rule catalog](12-rule-catalog.md)) and emit findings | T |
44
44
  | F-11 | Each finding has stable ID, title, category, severity, confidence, evidence (path, line, kind, redacted excerpt), impact, why it matters, fix, verification, acceptance criteria, effort, owner type, caveats, references | T |
45
45
  | F-12 | Never include secret values in any output | T |
46
46
  | F-13 | Produce a scorecard; categories without evidence are `not assessed` | T |
@@ -50,8 +50,8 @@ IDs are stable. "Status" is implemented and tested (**T**), implemented not live
50
50
 
51
51
  | ID | Requirement | Status |
52
52
  |---|---|---|
53
- | F-20 | Render `audit-report.md`, `current-state.md` (with Mermaid context and container diagrams), `README.md` | T |
54
- | F-21 | Render `findings.json` conforming to schema v1.0.0 | T |
53
+ | F-20 | Render `audit-report.md`, `current-state.md` (with Mermaid context and container diagrams), `overview.md` | T |
54
+ | F-21 | Render `findings.json` conforming to schema v1.1.0 | T |
55
55
  | F-22 | Render `findings.sarif` (SARIF 2.1.0) | T |
56
56
  | F-23 | Render `architecture-register.json` with SHA-256 per artifact | T |
57
57
  | F-24 | `--dry-run` writes nothing; `--output` cannot escape the project | T |
@@ -7,6 +7,7 @@
7
7
  <meta name="description" content="Module-by-module description of the implementation, data structures, algorithms, limits and extension points.">
8
8
  <link rel="canonical" href="https://shahvatsalofficial.github.io/archsutra-ai/handbook/03-technical-specification.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="Technical specification | ArchSutra AI">
12
13
  <meta property="og:description" content="Module-by-module description of the implementation, data structures, algorithms, limits and extension points.">
@@ -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{var t=localStorage.getItem('as-theme');if(t)document.documentElement.setAttribute('data-theme',t)}catch(e){}</script>
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":"Technical specification","description":"Module-by-module description of the implementation, data structures, algorithms, limits and extension points.","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
- <button class="menu-btn" type="button" aria-label="Toggle navigation" aria-expanded="false" aria-controls="sidebar">Menu</button>
29
- <a class="brand" href="../index.html" aria-label="ArchSutra AI home"><svg viewBox="0 0 32 32" width="26" height="26" aria-hidden="true"><rect width="32" height="32" rx="8" fill="currentColor" opacity=".12"/><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="../handbook/index.html">Handbook</a><a href="../handbook/05-user-guide.html">Get started</a><a href="../handbook/08-testing-and-proof.html">Proof</a><a href="https://github.com/shahvatsalofficial/archsutra-ai" rel="noopener">GitHub</a></nav>
31
- <button class="theme-btn" type="button" aria-label="Toggle color theme"><span class="sun" aria-hidden="true">Light</span><span class="moon" aria-hidden="true">Dark</span></button>
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" aria-current="true">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" aria-current="page">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">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" aria-current="page">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">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" aria-current="page">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">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> / Handbook</p><h1 id="technical-specification">Technical specification</h1>
37
- <p class="lede">Module-by-module description of the implementation, data structures, algorithms, limits and extension points.</p><p class="meta">Version 0.1.4 &middot; Source: <a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/03-technical-specification.md" rel="noopener">docs/handbook/03-technical-specification.md</a></p>
49
+ <p class="lede">Module-by-module description of the implementation, data structures, algorithms, limits and extension points.</p><p class="meta">Version 0.2.0 &middot; Source: <a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/03-technical-specification.md" rel="noopener">docs/handbook/03-technical-specification.md</a></p>
38
50
  <h2 id="1-stack">1. Stack<a class="anchor" href="#1-stack" aria-label="Link to this section">#</a></h2>
39
51
  <div class="table-wrap" tabindex="0" role="region" aria-label="Table 1: 1. Stack"><table><thead><tr><th scope="col">Aspect</th><th scope="col">Choice</th></tr></thead><tbody><tr><td>Language</td><td>TypeScript 7.x (native compiler), <code>strict: true</code>, <code>types: [&quot;node&quot;]</code></td></tr><tr><td>Module system</td><td>ESM (<code>&quot;type&quot;: &quot;module&quot;</code>, <code>NodeNext</code>)</td></tr><tr><td>Runtime</td><td>Node.js &gt;= 20</td></tr><tr><td>Runtime dependencies</td><td>none</td></tr><tr><td>Dev dependencies</td><td><code>typescript</code> 7.x, <code>@types/node</code> 26.x (CI also runs Node 20, 22, 24 and the newest Node)</td></tr><tr><td>Test runner</td><td>built-in <code>node --test</code></td></tr><tr><td>Build</td><td><code>tsc</code> to <code>dist/</code>; <code>prepare</code> builds on install from Git</td></tr><tr><td>Entry point</td><td><code>dist/cli.js</code> (bin <code>archsutra</code>)</td></tr></tbody></table></div>
40
52
  <h2 id="2-repository-layout">2. Repository layout<a class="anchor" href="#2-repository-layout" aria-label="Link to this section">#</a></h2>
@@ -65,9 +77,9 @@ install/ thin install.sh / install.ps1 / install.cmd wrappers around npx
65
77
  <h3 id="35-auditts">3.5 <code>audit.ts</code><a class="anchor" href="#35-auditts" aria-label="Link to this section">#</a></h3>
66
78
  <p>Single pass over files for line rules, then structural checks. Rule evaluation order is irrelevant; findings are sorted by severity then rule ID, and IDs are assigned as <code>&lt;RULE&gt;#&lt;NNN&gt;</code> by final position. Full rule list: <a href="12-rule-catalog.html">rule catalog</a>.</p>
67
79
  <p>Design notes:</p>
68
- <ul><li>Test and fixture paths (<code>test/</code>, <code>tests/</code>, <code>__tests__/</code>, <code>fixtures/</code>, <code>*.test.*</code>, <code>*.spec.*</code>, <code>*_test.go|py</code>) are excluded from injection, TLS, IaC and secret rules to reduce false positives.</li><li>Documentation files (<code>.md</code>, <code>.txt</code>) are excluded from line rules.</li><li>A private-key header counts only when base64 key material follows, so documentation strings and regex literals do not trigger it.</li><li>Credential lines containing <code>example</code>, <code>placeholder</code>, <code>changeme</code>, <code>your_</code>, <code>xxxx</code>, <code>process.env</code>, <code>os.environ</code> or <code>getenv</code> are ignored.</li><li>Scorecard: <code>critical</code> if any critical, <code>weak</code> if any high, <code>adequate</code> if any medium, else <code>strong</code>; Reliability, Performance, Scalability, Data integrity and Cost are always <code>not assessed</code>.</li></ul>
80
+ <ul><li>Test and fixture paths (<code>test/</code>, <code>tests/</code>, <code>__tests__/</code>, <code>fixtures/</code>, <code>*.test.*</code>, <code>*.spec.*</code>, <code>*_test.go|py</code>) are excluded from injection, TLS, IaC and secret rules to reduce false positives.</li><li>Documentation files (<code>.md</code>, <code>.txt</code>) are excluded from line rules.</li><li>A private-key header counts only when base64 key material follows, so documentation strings and regex literals do not trigger it.</li><li>Credential lines containing <code>example</code>, <code>placeholder</code>, <code>changeme</code>, <code>your_</code>, <code>xxxx</code>, <code>process.env</code>, <code>os.environ</code> or <code>getenv</code> are ignored.</li><li>Scorecard: <code>critical</code> if any critical, <code>weak</code> if any high, <code>adequate</code> if any medium or three or more low, else <code>no findings</code>; Reliability, Performance, Scalability, Data integrity and Cost are always <code>not assessed</code>.</li></ul>
69
81
  <h3 id="36-reportts">3.6 <code>report.ts</code><a class="anchor" href="#36-reportts" aria-label="Link to this section">#</a></h3>
70
- <p>Pure functions that render Markdown, Mermaid (<code>flowchart</code>), findings JSON (<code>schemaVersion: &quot;1.0.0&quot;</code>), SARIF 2.1.0 (rule list plus one result per evidence location, severity mapped critical/high to <code>error</code>, medium to <code>warning</code>, low/info to <code>note</code>), and the artifact register with SHA-256.</p>
82
+ <p>Pure functions that render Markdown, Mermaid (<code>flowchart</code>), findings JSON (<code>schemaVersion: &quot;1.1.0&quot;</code>), SARIF 2.1.0 (rule list plus one result per evidence location, severity mapped critical/high to <code>error</code>, medium to <code>warning</code>, low/info to <code>note</code>), and the artifact register with SHA-256.</p>
71
83
  <h3 id="36b-htmlts">3.6b <code>html.ts</code><a class="anchor" href="#36b-htmlts" aria-label="Link to this section">#</a></h3>
72
84
  <p>Renders the same data as <code>report.ts</code> into self-contained HTML (inline CSS, light and dark themes, print styles, severity filter, collapsible findings). <code>renderMarkdownHtml</code> turns a narrative Markdown file into the same page chrome (headings, lists, tables, fenced code, Mermaid fences, links). Raw HTML in that Markdown is escaped. Links must be <code>http(s)</code>, <code>mailto</code>, a fragment, or a relative path; <code>javascript:</code> and <code>data:</code> URLs are left as text. Every dynamic value goes through <code>esc()</code> because repository text is untrusted; a Content-Security-Policy meta tag blocks everything except inline styles and scripts and the pinned Mermaid CDN script. Diagrams degrade to readable source when offline.</p>
73
85
  <h3 id="37-verifyts">3.7 <code>verify.ts</code><a class="anchor" href="#37-verifyts" aria-label="Link to this section">#</a></h3>
@@ -104,7 +116,7 @@ install/ thin install.sh / install.ps1 / install.cmd wrappers around npx
104
116
  <h2 id="8-build-test-release">8. Build, test, release<a class="anchor" href="#8-build-test-release" aria-label="Link to this section">#</a></h2>
105
117
  <div class="code"><button class="copy" type="button" aria-label="Copy code">Copy</button><pre tabindex="0"><code class="language-bash">npm ci
106
118
  npm run typecheck
107
- npm test # build + node --test (36 tests)
119
+ npm test # build + node --test (52 tests)
108
120
  npm run coverage # coverage report
109
121
  node scripts/realworld.mjs run &lt;dir&gt; &lt;batch&gt; [tag]
110
122
  node scripts/labeled-recall.mjs &lt;dir&gt;
@@ -113,13 +125,18 @@ node scripts/contrast.mjs
113
125
  npm run verify # archsutra verify .
114
126
  node scripts/eval.mjs
115
127
  node scripts/build-docs.mjs</code></pre></div>
116
- <p>CI runs the same on Ubuntu and Windows x Node 20, 22, 24, plus Ubuntu on the newest Node, then a self-audit with <code>--fail-on high</code> and a check that production dependencies are empty. macOS is not in CI.</p></article></main>
128
+ <p>CI runs the same on Ubuntu and Windows x Node 20, 22, 24, plus Ubuntu on the newest Node, then a self-audit with <code>--fail-on high</code> and a check that production dependencies are empty. macOS is not in CI.</p></article><nav class="pn" aria-label="Previous and next page"><a class="prev" href="02-functional-specification.html"><small>Previous</small><span>Functional specification</span></a><a class="next" href="04-architecture.html"><small>Next</small><span>Architecture</span></a></nav><p class="edit"><a href="https://github.com/shahvatsalofficial/archsutra-ai/edit/main/docs/handbook/03-technical-specification.md" rel="noopener">Edit this page on GitHub</a></p></main>
117
129
  <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="#1-stack">1. Stack</a></li><li class="l2"><a href="#2-repository-layout">2. Repository layout</a></li><li class="l2"><a href="#3-modules">3. Modules</a></li><li class="l3"><a href="#31-typests">3.1 types.ts</a></li><li class="l3"><a href="#32-fsutilts">3.2 fsutil.ts</a></li><li class="l3"><a href="#33-redactts">3.3 redact.ts</a></li><li class="l3"><a href="#33b-heuristicsts">3.3b heuristics.ts</a></li><li class="l3"><a href="#34-mapts">3.4 map.ts</a></li><li class="l3"><a href="#35-auditts">3.5 audit.ts</a></li><li class="l3"><a href="#36-reportts">3.6 report.ts</a></li><li class="l3"><a href="#36b-htmlts">3.6b html.ts</a></li><li class="l3"><a href="#37-verifyts">3.7 verify.ts</a></li><li class="l3"><a href="#38-adaptersts">3.8 adapters.ts</a></li><li class="l3"><a href="#39-clits">3.9 cli.ts</a></li><li class="l2"><a href="#4-data-formats">4. Data formats</a></li><li class="l3"><a href="#41-finding-json">4.1 Finding (JSON)</a></li><li class="l3"><a href="#42-install-manifest">4.2 Install manifest</a></li><li class="l2"><a href="#5-algorithms-and-complexity">5. Algorithms and complexity</a></li><li class="l2"><a href="#6-error-handling">6. Error handling</a></li><li class="l2"><a href="#7-extension-points">7. Extension points</a></li><li class="l2"><a href="#8-build-test-release">8. Build, test, release</a></li></ul></nav></aside>
118
130
  </div>
119
131
  <footer class="footer">
120
132
  <div class="footer-inner">
121
- <p><strong>ArchSutra AI</strong> v0.1.4. Design. Audit. Evolve. Created by <a href="https://shahvatsal.com" rel="noopener">Vatsal Shah</a>. Licensed under <a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/LICENSE" rel="noopener">Apache-2.0</a>.</p>
122
- <p class="fine">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>
133
+ <div class="footer-grid">
134
+ <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>
135
+ <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>
136
+ <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>
137
+ <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>
138
+ </div>
139
+ <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>
123
140
  </div>
124
141
  </footer>
125
142
  <script src="../assets/site.js" type="module"></script>
@@ -65,10 +65,10 @@ Design notes:
65
65
  - Documentation files (`.md`, `.txt`) are excluded from line rules.
66
66
  - A private-key header counts only when base64 key material follows, so documentation strings and regex literals do not trigger it.
67
67
  - Credential lines containing `example`, `placeholder`, `changeme`, `your_`, `xxxx`, `process.env`, `os.environ` or `getenv` are ignored.
68
- - Scorecard: `critical` if any critical, `weak` if any high, `adequate` if any medium, else `strong`; Reliability, Performance, Scalability, Data integrity and Cost are always `not assessed`.
68
+ - Scorecard: `critical` if any critical, `weak` if any high, `adequate` if any medium or three or more low, else `no findings`; Reliability, Performance, Scalability, Data integrity and Cost are always `not assessed`.
69
69
 
70
70
  ### 3.6 `report.ts`
71
- Pure functions that render Markdown, Mermaid (`flowchart`), findings JSON (`schemaVersion: "1.0.0"`), SARIF 2.1.0 (rule list plus one result per evidence location, severity mapped critical/high to `error`, medium to `warning`, low/info to `note`), and the artifact register with SHA-256.
71
+ Pure functions that render Markdown, Mermaid (`flowchart`), findings JSON (`schemaVersion: "1.1.0"`), SARIF 2.1.0 (rule list plus one result per evidence location, severity mapped critical/high to `error`, medium to `warning`, low/info to `note`), and the artifact register with SHA-256.
72
72
 
73
73
  ### 3.6b `html.ts`
74
74
  Renders the same data as `report.ts` into self-contained HTML (inline CSS, light and dark themes, print styles, severity filter, collapsible findings). `renderMarkdownHtml` turns a narrative Markdown file into the same page chrome (headings, lists, tables, fenced code, Mermaid fences, links). Raw HTML in that Markdown is escaped. Links must be `http(s)`, `mailto`, a fragment, or a relative path; `javascript:` and `data:` URLs are left as text. Every dynamic value goes through `esc()` because repository text is untrusted; a Content-Security-Policy meta tag blocks everything except inline styles and scripts and the pinned Mermaid CDN script. Diagrams degrade to readable source when offline.
@@ -149,7 +149,7 @@ Memory: file contents are cached per run (bounded by 5000 x 512 KiB worst case,
149
149
  ```bash
150
150
  npm ci
151
151
  npm run typecheck
152
- npm test # build + node --test (36 tests)
152
+ npm test # build + node --test (52 tests)
153
153
  npm run coverage # coverage report
154
154
  node scripts/realworld.mjs run <dir> <batch> [tag]
155
155
  node scripts/labeled-recall.mjs <dir>
@@ -7,6 +7,7 @@
7
7
  <meta name="description" content="C4 views, runtime flows, trust boundaries, quality attributes and the decisions behind ArchSutra AI.">
8
8
  <link rel="canonical" href="https://shahvatsalofficial.github.io/archsutra-ai/handbook/04-architecture.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="Architecture | ArchSutra AI">
12
13
  <meta property="og:description" content="C4 views, runtime flows, trust boundaries, quality attributes and the decisions behind ArchSutra AI.">
@@ -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{var t=localStorage.getItem('as-theme');if(t)document.documentElement.setAttribute('data-theme',t)}catch(e){}</script>
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":"Architecture","description":"C4 views, runtime flows, trust boundaries, quality attributes and the decisions behind ArchSutra AI.","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
- <button class="menu-btn" type="button" aria-label="Toggle navigation" aria-expanded="false" aria-controls="sidebar">Menu</button>
29
- <a class="brand" href="../index.html" aria-label="ArchSutra AI home"><svg viewBox="0 0 32 32" width="26" height="26" aria-hidden="true"><rect width="32" height="32" rx="8" fill="currentColor" opacity=".12"/><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="../handbook/index.html">Handbook</a><a href="../handbook/05-user-guide.html">Get started</a><a href="../handbook/08-testing-and-proof.html">Proof</a><a href="https://github.com/shahvatsalofficial/archsutra-ai" rel="noopener">GitHub</a></nav>
31
- <button class="theme-btn" type="button" aria-label="Toggle color theme"><span class="sun" aria-hidden="true">Light</span><span class="moon" aria-hidden="true">Dark</span></button>
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" aria-current="true">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" aria-current="page">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">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" aria-current="page">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">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" aria-current="page">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">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> / Handbook</p><h1 id="architecture">Architecture</h1>
37
- <p class="lede">C4 views, runtime flows, trust boundaries, quality attributes and the decisions behind ArchSutra AI.</p><p class="meta">Version 0.1.4 &middot; Source: <a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/04-architecture.md" rel="noopener">docs/handbook/04-architecture.md</a></p>
49
+ <p class="lede">C4 views, runtime flows, trust boundaries, quality attributes and the decisions behind ArchSutra AI.</p><p class="meta">Version 0.2.0 &middot; Source: <a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/04-architecture.md" rel="noopener">docs/handbook/04-architecture.md</a></p>
38
50
  <p>Notation: C4 model (Context, Container, Component), diagrams in Mermaid. Every element corresponds to something in the repository.</p>
39
51
  <h2 id="1-system-context-c4-level-1">1. System context (C4 level 1)<a class="anchor" href="#1-system-context-c4-level-1" aria-label="Link to this section">#</a></h2>
40
52
  <figure class="diagram"><pre class="mermaid">flowchart TB
@@ -142,20 +154,25 @@
142
154
  repo -. &quot;may contain injected text&quot; .-&gt; ide</pre><figcaption>Diagram (Mermaid). If it does not render, the source is shown above.</figcaption></figure>
143
155
  <p>Controls and residual risk are in the <a href="../architecture/threat-model.html">threat model</a>.</p>
144
156
  <h2 id="6-quality-attributes">6. Quality attributes<a class="anchor" href="#6-quality-attributes" aria-label="Link to this section">#</a></h2>
145
- <div class="table-wrap" tabindex="0" role="region" aria-label="Table 2: 6. Quality attributes"><table><thead><tr><th scope="col">Attribute</th><th scope="col">Strategy</th><th scope="col">Verified by</th></tr></thead><tbody><tr><td>Security</td><td>read-only default, redaction, containment, hashed installs</td><td>security tests</td></tr><tr><td>Privacy</td><td>offline, no telemetry</td><td>design + code review</td></tr><tr><td>Reliability</td><td>skip-on-error scanning, bounded work</td><td>limit tests</td></tr><tr><td>Portability</td><td>Node only, no shell dependency in core</td><td>3-OS CI</td></tr><tr><td>Maintainability</td><td>small modules, acyclic, typed</td><td>self-audit, typecheck</td></tr><tr><td>Testability</td><td>pure render functions, runtime-built fixtures</td><td>36 tests</td></tr><tr><td>Extensibility</td><td>declarative host table, rule table, agent contract</td><td>contributor guide</td></tr><tr><td>Honesty</td><td>support levels, <code>not assessed</code>, caveats on every finding</td><td>review</td></tr></tbody></table></div>
157
+ <div class="table-wrap" tabindex="0" role="region" aria-label="Table 2: 6. Quality attributes"><table><thead><tr><th scope="col">Attribute</th><th scope="col">Strategy</th><th scope="col">Verified by</th></tr></thead><tbody><tr><td>Security</td><td>read-only default, redaction, containment, hashed installs</td><td>security tests</td></tr><tr><td>Privacy</td><td>offline, no telemetry</td><td>design + code review</td></tr><tr><td>Reliability</td><td>skip-on-error scanning, bounded work</td><td>limit tests</td></tr><tr><td>Portability</td><td>Node only, no shell dependency in core</td><td>3-OS CI</td></tr><tr><td>Maintainability</td><td>small modules, acyclic, typed</td><td>self-audit, typecheck</td></tr><tr><td>Testability</td><td>pure render functions, runtime-built fixtures</td><td>52 tests</td></tr><tr><td>Extensibility</td><td>declarative host table, rule table, agent contract</td><td>contributor guide</td></tr><tr><td>Honesty</td><td>support levels, <code>not assessed</code>, caveats on every finding</td><td>review</td></tr></tbody></table></div>
146
158
  <h2 id="7-architectural-decisions">7. Architectural decisions<a class="anchor" href="#7-architectural-decisions" aria-label="Link to this section">#</a></h2>
147
159
  <div class="table-wrap" tabindex="0" role="region" aria-label="Table 3: 7. Architectural decisions"><table><thead><tr><th scope="col">ADR</th><th scope="col">Decision</th></tr></thead><tbody><tr><td><a href="../decisions/ADR-0001-deterministic-cli-plus-ide-skills.html">ADR-0001</a></td><td>Deterministic CLI for evidence plus IDE-native skills for reasoning; no server, no API key</td></tr></tbody></table></div>
148
160
  <p>Additional decisions captured in the <a href="../rfc/0001-archsutra-v0.1.html">RFC</a>: single canonical source with generated host layouts; honest capability labels; zero runtime dependencies; module-level (not file-level) dependency graph for stability.</p>
149
161
  <h2 id="8-documentation-site">8. Documentation site<a class="anchor" href="#8-documentation-site" aria-label="Link to this section">#</a></h2>
150
162
  <p>The HTML site is generated by <code>scripts/build-docs.mjs</code> from this handbook's Markdown. It is static, has no framework, supports light and dark themes, keyboard navigation, a skip link, visible focus, reduced-motion, print styles, and loads one optional script (Mermaid, pinned) from a CDN. Markdown remains the source of truth.</p>
151
163
  <h2 id="9-evolution">9. Evolution<a class="anchor" href="#9-evolution" aria-label="Link to this section">#</a></h2>
152
- <p>Planned additions are intentionally outside the keyless path: optional local model runtime and optional bring-your-own-key server. They must not change default behavior. See <a href="09-compatibility-and-roadmap.html">Compatibility and roadmap</a>.</p></article></main>
164
+ <p>Planned additions are intentionally outside the keyless path: optional local model runtime and optional bring-your-own-key server. They must not change default behavior. See <a href="09-compatibility-and-roadmap.html">Compatibility and roadmap</a>.</p></article><nav class="pn" aria-label="Previous and next page"><a class="prev" href="03-technical-specification.html"><small>Previous</small><span>Technical specification</span></a><a class="next" href="05-user-guide.html"><small>Next</small><span>User guide</span></a></nav><p class="edit"><a href="https://github.com/shahvatsalofficial/archsutra-ai/edit/main/docs/handbook/04-architecture.md" rel="noopener">Edit this page on GitHub</a></p></main>
153
165
  <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="#1-system-context-c4-level-1">1. System context (C4 level 1)</a></li><li class="l2"><a href="#2-containers-c4-level-2">2. Containers (C4 level 2)</a></li><li class="l2"><a href="#3-components-c4-level-3-of-the-cli">3. Components (C4 level 3) of the CLI</a></li><li class="l2"><a href="#4-runtime-flows">4. Runtime flows</a></li><li class="l3"><a href="#41-audit">4.1 Audit</a></li><li class="l3"><a href="#42-install">4.2 Install</a></li><li class="l3"><a href="#43-ai-assisted-audit-the-full-loop">4.3 AI-assisted audit (the full loop)</a></li><li class="l2"><a href="#5-trust-boundaries">5. Trust boundaries</a></li><li class="l2"><a href="#6-quality-attributes">6. Quality attributes</a></li><li class="l2"><a href="#7-architectural-decisions">7. Architectural decisions</a></li><li class="l2"><a href="#8-documentation-site">8. Documentation site</a></li><li class="l2"><a href="#9-evolution">9. Evolution</a></li></ul></nav></aside>
154
166
  </div>
155
167
  <footer class="footer">
156
168
  <div class="footer-inner">
157
- <p><strong>ArchSutra AI</strong> v0.1.4. Design. Audit. Evolve. Created by <a href="https://shahvatsal.com" rel="noopener">Vatsal Shah</a>. Licensed under <a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/LICENSE" rel="noopener">Apache-2.0</a>.</p>
158
- <p class="fine">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>
169
+ <div class="footer-grid">
170
+ <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>
171
+ <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>
172
+ <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>
173
+ <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>
174
+ </div>
175
+ <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>
159
176
  </div>
160
177
  </footer>
161
178
  <script src="../assets/site.js" type="module"></script>
@@ -158,7 +158,7 @@ Controls and residual risk are in the [threat model](../architecture/threat-mode
158
158
  | Reliability | skip-on-error scanning, bounded work | limit tests |
159
159
  | Portability | Node only, no shell dependency in core | 3-OS CI |
160
160
  | Maintainability | small modules, acyclic, typed | self-audit, typecheck |
161
- | Testability | pure render functions, runtime-built fixtures | 36 tests |
161
+ | Testability | pure render functions, runtime-built fixtures | 52 tests |
162
162
  | Extensibility | declarative host table, rule table, agent contract | contributor guide |
163
163
  | Honesty | support levels, `not assessed`, caveats on every finding | review |
164
164