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.
- package/CHANGELOG.md +56 -6
- package/README.md +84 -12
- package/dist/audit.js +125 -44
- package/dist/cli.js +184 -96
- package/dist/drift.js +29 -15
- package/dist/fsutil.js +117 -20
- package/dist/history.js +40 -0
- package/dist/html.js +10 -8
- package/dist/map.js +26 -5
- package/dist/mcp.js +70 -55
- package/dist/redact.js +24 -11
- package/dist/report.js +69 -19
- package/dist/rules-extra.js +59 -0
- package/dist/secret-patterns.js +69 -0
- package/dist/suppress.js +31 -19
- package/dist/verify.js +2 -2
- package/dist/write.js +71 -0
- package/docs/architecture/overview.html +29 -12
- package/docs/architecture/overview.md +2 -2
- package/docs/architecture/threat-model.html +28 -11
- package/docs/assets/charts/coverage-dark.svg +11 -0
- package/docs/assets/charts/coverage.svg +11 -0
- package/docs/assets/charts/finding-anatomy-dark.svg +20 -0
- package/docs/assets/charts/finding-anatomy.svg +20 -0
- package/docs/assets/charts/pipeline-dark.svg +13 -0
- package/docs/assets/charts/pipeline.svg +13 -0
- package/docs/assets/charts/precision-by-batch-dark.svg +12 -0
- package/docs/assets/charts/precision-by-batch.svg +12 -0
- package/docs/assets/charts/precision-by-rule-dark.svg +12 -0
- package/docs/assets/charts/precision-by-rule.svg +12 -0
- package/docs/assets/charts/sample-findings-by-severity-dark.svg +11 -0
- package/docs/assets/charts/sample-findings-by-severity.svg +11 -0
- package/docs/assets/charts/scan-time-dark.svg +11 -0
- package/docs/assets/charts/scan-time.svg +11 -0
- package/docs/assets/site.css +259 -138
- package/docs/assets/site.js +92 -6
- package/docs/community/good-first-issues.html +28 -11
- package/docs/compatibility/matrix.html +28 -11
- package/docs/compatibility/smoke-tests/index.html +28 -11
- package/docs/decisions/ADR-0001-deterministic-cli-plus-ide-skills.html +28 -11
- package/docs/guides/cheat-sheet.html +100 -0
- package/docs/guides/cheat-sheet.md +146 -0
- package/docs/guides/ci-recipes.html +170 -0
- package/docs/guides/ci-recipes.md +176 -0
- package/docs/guides/evidence-at-a-glance.html +93 -0
- package/docs/guides/evidence-at-a-glance.md +65 -0
- package/docs/guides/getting-started.html +151 -0
- package/docs/guides/getting-started.md +160 -0
- package/docs/guides/how-it-works.html +161 -0
- package/docs/guides/how-it-works.md +148 -0
- package/docs/guides/mcp-server.html +99 -0
- package/docs/guides/mcp-server.md +81 -0
- package/docs/guides/reading-a-report.html +119 -0
- package/docs/guides/reading-a-report.md +111 -0
- package/docs/guides/real-world-scenarios.html +287 -0
- package/docs/guides/real-world-scenarios.md +377 -0
- package/docs/handbook/01-executive-summary.html +30 -13
- package/docs/handbook/01-executive-summary.md +2 -2
- package/docs/handbook/02-functional-specification.html +30 -13
- package/docs/handbook/02-functional-specification.md +3 -3
- package/docs/handbook/03-technical-specification.html +31 -14
- package/docs/handbook/03-technical-specification.md +3 -3
- package/docs/handbook/04-architecture.html +29 -12
- package/docs/handbook/04-architecture.md +1 -1
- package/docs/handbook/05-user-guide.html +33 -15
- package/docs/handbook/05-user-guide.md +5 -4
- package/docs/handbook/06-cli-reference.html +52 -16
- package/docs/handbook/06-cli-reference.md +47 -4
- package/docs/handbook/07-security-privacy-legal.html +31 -12
- package/docs/handbook/07-security-privacy-legal.md +4 -0
- package/docs/handbook/08-testing-and-proof.html +32 -15
- package/docs/handbook/08-testing-and-proof.md +4 -4
- package/docs/handbook/09-compatibility-and-roadmap.html +29 -12
- package/docs/handbook/09-compatibility-and-roadmap.md +3 -2
- package/docs/handbook/10-contributor-guide.html +29 -12
- package/docs/handbook/10-contributor-guide.md +1 -1
- package/docs/handbook/11-glossary-and-faq.html +34 -13
- package/docs/handbook/11-glossary-and-faq.md +7 -1
- package/docs/handbook/12-rule-catalog.html +59 -19
- package/docs/handbook/12-rule-catalog.md +62 -5
- package/docs/handbook/13-trust-and-assurance.html +29 -12
- package/docs/handbook/13-trust-and-assurance.md +1 -1
- package/docs/handbook/14-real-world-evaluation.html +28 -11
- package/docs/handbook/15-supply-chain-and-release.html +28 -11
- package/docs/handbook/16-performance-and-quality-metrics.html +28 -11
- package/docs/handbook/16-performance-and-quality-metrics.md +1 -1
- package/docs/handbook/README.md +4 -2
- package/docs/handbook/index.html +31 -13
- package/docs/index.html +101 -51
- package/docs/legal/legal-review-brief.html +28 -11
- package/docs/legal/trademark-and-name-clearance.html +28 -11
- package/docs/proof/accessibility.html +28 -11
- package/docs/proof/benchmarks.json +9 -9
- package/docs/proof/benchmarks.md +4 -4
- package/docs/proof/test-results.txt +56 -40
- package/docs/rfc/0001-archsutra-v0.1.html +28 -11
- package/docs/sample-report/architecture-register.json +46 -0
- package/docs/sample-report/audit-report.html +123 -0
- package/docs/sample-report/audit-report.md +314 -0
- package/docs/sample-report/current-state.html +77 -0
- package/docs/sample-report/current-state.md +51 -0
- package/docs/sample-report/findings.json +478 -0
- package/docs/sample-report/findings.sarif +754 -0
- package/docs/sample-report/index.html +57 -0
- package/docs/sample-report/overview.md +11 -0
- package/docs/search-index.json +1 -0
- package/docs/sitemap.xml +39 -28
- package/llms.txt +11 -2
- package/package.json +3 -2
- package/schemas/findings.schema.json +4 -3
- package/skills/architecture-audit/SKILL.md +2 -2
- package/skills/architecture-audit/references/report-template.md +1 -1
- package/skills/architecture-verification/references/fitness-functions.md +1 -1
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
<meta name="description" content="RFC 0001: ArchSutra AI v0.1 - ArchSutra AI documentation.">
|
|
8
8
|
<link rel="canonical" href="https://shahvatsalofficial.github.io/archsutra-ai/rfc/0001-archsutra-v0.1.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="RFC 0001: ArchSutra AI v0.1 | ArchSutra AI">
|
|
12
13
|
<meta property="og:description" content="RFC 0001: ArchSutra AI v0.1 - ArchSutra AI documentation.">
|
|
@@ -18,23 +19,34 @@
|
|
|
18
19
|
<meta name="author" content="Vatsal Shah">
|
|
19
20
|
<link rel="icon" href="../assets/favicon.svg" type="image/svg+xml">
|
|
20
21
|
<link rel="stylesheet" href="../assets/site.css">
|
|
21
|
-
<script>try{
|
|
22
|
+
<script>try{if(localStorage.getItem('as-theme')==='dark')document.documentElement.setAttribute('data-theme','dark')}catch(e){}</script>
|
|
22
23
|
<script type="application/ld+json">{"@context":"https://schema.org","@type":"TechArticle","headline":"RFC 0001: ArchSutra AI v0.1","description":"RFC 0001: ArchSutra AI v0.1 - ArchSutra AI documentation.","author":{"@type":"Person","name":"Vatsal Shah","url":"https://shahvatsal.com"},"inLanguage":"en","isPartOf":{"@type":"WebSite","name":"ArchSutra AI","url":"https://shahvatsalofficial.github.io/archsutra-ai"}}</script>
|
|
23
24
|
</head>
|
|
24
|
-
<body class="doc">
|
|
25
|
+
<body class="doc" data-root="../">
|
|
25
26
|
<a class="skip" href="#main">Skip to content</a>
|
|
26
27
|
<header class="topbar">
|
|
27
28
|
<div class="topbar-inner">
|
|
28
|
-
<
|
|
29
|
-
<
|
|
30
|
-
<
|
|
31
|
-
<
|
|
29
|
+
<a class="brand" href="../index.html" aria-label="ArchSutra AI home"><svg viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="9" fill="currentColor" opacity=".14"/><path d="M6 24 16 7l10 17M10.5 18h11" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg><span>ArchSutra <b>AI</b></span></a>
|
|
30
|
+
<nav class="top-links" aria-label="Primary"><a href="../guides/getting-started.html">Get started</a><a href="../guides/real-world-scenarios.html">Scenarios</a><a href="../handbook/index.html">Handbook</a><a href="../guides/evidence-at-a-glance.html">Proof</a></nav>
|
|
31
|
+
<span class="spacer"></span>
|
|
32
|
+
<div class="search" role="search"><label class="sr-only" for="q">Search the documentation</label><input id="q" type="search" placeholder="Search docs ( / )" autocomplete="off" aria-controls="results" aria-expanded="false"><ul id="results" class="results" role="listbox" hidden></ul></div>
|
|
33
|
+
<a class="gh-btn" href="https://github.com/shahvatsalofficial/archsutra-ai" rel="noopener"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M9 19c-4.3 1.4-4.3-2.5-6-3m12 5v-3.5c0-1 .1-1.4-.5-2 2.8-.3 5.5-1.4 5.5-6a4.6 4.6 0 0 0-1.3-3.2 4.2 4.2 0 0 0-.1-3.2s-1.1-.3-3.5 1.3a12 12 0 0 0-6.2 0C6.5 2.8 5.4 3.1 5.4 3.1a4.2 4.2 0 0 0-.1 3.2A4.6 4.6 0 0 0 4 9.5c0 4.6 2.7 5.7 5.5 6-.6.6-.6 1.2-.5 2V21"/></svg><span>GitHub</span></a>
|
|
34
|
+
<button class="icon-btn theme-btn" type="button" aria-label="Switch between light and dark theme"><span class="sun"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></svg></span><span class="moon"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z"/></svg></span></button>
|
|
35
|
+
<button class="icon-btn menu-btn" type="button" aria-label="Open menu" aria-expanded="false" aria-controls="drawer"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 7h16M4 12h16M4 17h16"/></svg></button>
|
|
32
36
|
</div>
|
|
33
37
|
</header>
|
|
38
|
+
<div id="drawer" class="drawer" aria-hidden="true">
|
|
39
|
+
<div class="drawer-scrim" data-close></div>
|
|
40
|
+
<div class="drawer-panel" role="dialog" aria-label="Menu">
|
|
41
|
+
<div class="drawer-head"><a class="brand" href="../index.html"><svg viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="9" fill="currentColor" opacity=".14"/><path d="M6 24 16 7l10 17M10.5 18h11" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg><span>ArchSutra <b>AI</b></span></a><button class="icon-btn" type="button" data-close aria-label="Close menu"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6 6 18"/></svg></button></div>
|
|
42
|
+
<div class="primary-links"><a href="../index.html">Home</a><a href="../guides/getting-started.html">Get started</a><a href="../guides/real-world-scenarios.html">Scenarios</a><a href="../handbook/index.html">Handbook</a><a href="../guides/evidence-at-a-glance.html">Proof</a><a href="https://github.com/shahvatsalofficial/archsutra-ai" rel="noopener">GitHub</a></div>
|
|
43
|
+
<div class="nav-group"><p class="nav-title">Start here</p><ul><li><a href="../guides/getting-started.html">Get started in 5 minutes</a></li><li><a href="../guides/real-world-scenarios.html">Real-world scenarios</a></li><li><a href="../guides/how-it-works.html">How it works, in pictures</a></li><li><a href="../guides/reading-a-report.html">Reading and triaging a report</a></li><li><a href="../guides/ci-recipes.html">CI recipes</a></li><li><a href="../guides/mcp-server.html">Use ArchSutra as an MCP server</a></li><li><a href="../guides/cheat-sheet.html">Cheat sheet</a></li><li><a href="../guides/evidence-at-a-glance.html">Evidence at a glance</a></li></ul></div><div class="nav-group"><p class="nav-title">Handbook</p><ul><li><a href="../handbook/index.html">Overview</a></li><li><a href="../handbook/01-executive-summary.html">Executive summary</a></li><li><a href="../handbook/02-functional-specification.html">Functional specification</a></li><li><a href="../handbook/03-technical-specification.html">Technical specification</a></li><li><a href="../handbook/04-architecture.html">Architecture</a></li><li><a href="../handbook/05-user-guide.html">User guide</a></li><li><a href="../handbook/06-cli-reference.html">CLI reference</a></li><li><a href="../handbook/07-security-privacy-legal.html">Security, privacy and legal</a></li><li><a href="../handbook/08-testing-and-proof.html">Testing and proof</a></li><li><a href="../handbook/09-compatibility-and-roadmap.html">Compatibility and roadmap</a></li><li><a href="../handbook/10-contributor-guide.html">Contributor guide</a></li><li><a href="../handbook/11-glossary-and-faq.html">Glossary and FAQ</a></li><li><a href="../handbook/12-rule-catalog.html">Audit rule catalog</a></li><li><a href="../handbook/13-trust-and-assurance.html">Trust and assurance</a></li><li><a href="../handbook/14-real-world-evaluation.html">Real-world evaluation</a></li><li><a href="../handbook/15-supply-chain-and-release.html">Supply chain and release</a></li><li><a href="../handbook/16-performance-and-quality-metrics.html">Performance and quality metrics</a></li></ul></div><div class="nav-group"><p class="nav-title">Reference</p><ul><li><a href="../architecture/overview.html">Architecture overview</a></li><li><a href="../architecture/threat-model.html">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" aria-current="page">RFC 0001: ArchSutra AI v0.1</a></li><li><a href="../decisions/ADR-0001-deterministic-cli-plus-ide-skills.html">ADR-0001: Deterministic CLI plus IDE-native skills</a></li><li><a href="../compatibility/smoke-tests/index.html">Live smoke tests</a></li><li><a href="../community/good-first-issues.html">Good first issues (ready to file)</a></li><li><a href="../legal/trademark-and-name-clearance.html">Name and trademark clearance</a></li><li><a href="../legal/legal-review-brief.html">Legal review brief</a></li><li><a href="../proof/accessibility.html">Accessibility audit of the documentation site</a></li></ul></div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
34
46
|
<div class="layout">
|
|
35
|
-
<aside id="sidebar" class="sidebar" aria-label="Documentation"><div class="nav-group"><p class="nav-title">Handbook</p><ul><li><a href="../handbook/index.html">Overview</a></li><li><a href="../handbook/01-executive-summary.html">Executive summary</a></li><li><a href="../handbook/02-functional-specification.html">Functional specification</a></li><li><a href="../handbook/03-technical-specification.html">Technical specification</a></li><li><a href="../handbook/04-architecture.html">Architecture</a></li><li><a href="../handbook/05-user-guide.html">User guide</a></li><li><a href="../handbook/06-cli-reference.html">CLI reference</a></li><li><a href="../handbook/07-security-privacy-legal.html">Security, privacy and legal</a></li><li><a href="../handbook/08-testing-and-proof.html">Testing and proof</a></li><li><a href="../handbook/09-compatibility-and-roadmap.html">Compatibility and roadmap</a></li><li><a href="../handbook/10-contributor-guide.html">Contributor guide</a></li><li><a href="../handbook/11-glossary-and-faq.html">Glossary and FAQ</a></li><li><a href="../handbook/12-rule-catalog.html">Audit rule catalog</a></li><li><a href="../handbook/13-trust-and-assurance.html">Trust and assurance</a></li><li><a href="../handbook/14-real-world-evaluation.html">Real-world evaluation</a></li><li><a href="../handbook/15-supply-chain-and-release.html">Supply chain and release</a></li><li><a href="../handbook/16-performance-and-quality-metrics.html">Performance and quality metrics</a></li></ul></div><div class="nav-group"><p class="nav-title">Reference</p><ul><li><a href="../architecture/overview.html">Architecture overview</a></li><li><a href="../architecture/threat-model.html">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" aria-current="page">RFC 0001: ArchSutra AI v0.1</a></li><li><a href="../decisions/ADR-0001-deterministic-cli-plus-ide-skills.html">ADR-0001: Deterministic CLI plus IDE-native skills</a></li><li><a href="../compatibility/smoke-tests/index.html">Live smoke tests</a></li><li><a href="../community/good-first-issues.html">Good first issues (ready to file)</a></li><li><a href="../legal/trademark-and-name-clearance.html">Name and trademark clearance</a></li><li><a href="../legal/legal-review-brief.html">Legal review brief</a></li><li><a href="../proof/accessibility.html">Accessibility audit of the documentation site</a></li></ul></div></aside>
|
|
47
|
+
<aside id="sidebar" class="sidebar" aria-label="Documentation"><div class="nav-group"><p class="nav-title">Start here</p><ul><li><a href="../guides/getting-started.html">Get started in 5 minutes</a></li><li><a href="../guides/real-world-scenarios.html">Real-world scenarios</a></li><li><a href="../guides/how-it-works.html">How it works, in pictures</a></li><li><a href="../guides/reading-a-report.html">Reading and triaging a report</a></li><li><a href="../guides/ci-recipes.html">CI recipes</a></li><li><a href="../guides/mcp-server.html">Use ArchSutra as an MCP server</a></li><li><a href="../guides/cheat-sheet.html">Cheat sheet</a></li><li><a href="../guides/evidence-at-a-glance.html">Evidence at a glance</a></li></ul></div><div class="nav-group"><p class="nav-title">Handbook</p><ul><li><a href="../handbook/index.html">Overview</a></li><li><a href="../handbook/01-executive-summary.html">Executive summary</a></li><li><a href="../handbook/02-functional-specification.html">Functional specification</a></li><li><a href="../handbook/03-technical-specification.html">Technical specification</a></li><li><a href="../handbook/04-architecture.html">Architecture</a></li><li><a href="../handbook/05-user-guide.html">User guide</a></li><li><a href="../handbook/06-cli-reference.html">CLI reference</a></li><li><a href="../handbook/07-security-privacy-legal.html">Security, privacy and legal</a></li><li><a href="../handbook/08-testing-and-proof.html">Testing and proof</a></li><li><a href="../handbook/09-compatibility-and-roadmap.html">Compatibility and roadmap</a></li><li><a href="../handbook/10-contributor-guide.html">Contributor guide</a></li><li><a href="../handbook/11-glossary-and-faq.html">Glossary and FAQ</a></li><li><a href="../handbook/12-rule-catalog.html">Audit rule catalog</a></li><li><a href="../handbook/13-trust-and-assurance.html">Trust and assurance</a></li><li><a href="../handbook/14-real-world-evaluation.html">Real-world evaluation</a></li><li><a href="../handbook/15-supply-chain-and-release.html">Supply chain and release</a></li><li><a href="../handbook/16-performance-and-quality-metrics.html">Performance and quality metrics</a></li></ul></div><div class="nav-group"><p class="nav-title">Reference</p><ul><li><a href="../architecture/overview.html">Architecture overview</a></li><li><a href="../architecture/threat-model.html">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" aria-current="page">RFC 0001: ArchSutra AI v0.1</a></li><li><a href="../decisions/ADR-0001-deterministic-cli-plus-ide-skills.html">ADR-0001: Deterministic CLI plus IDE-native skills</a></li><li><a href="../compatibility/smoke-tests/index.html">Live smoke tests</a></li><li><a href="../community/good-first-issues.html">Good first issues (ready to file)</a></li><li><a href="../legal/trademark-and-name-clearance.html">Name and trademark clearance</a></li><li><a href="../legal/legal-review-brief.html">Legal review brief</a></li><li><a href="../proof/accessibility.html">Accessibility audit of the documentation site</a></li></ul></div></aside>
|
|
36
48
|
<main id="main" class="content"><article class="prose"><p class="crumbs"><a href="../index.html">ArchSutra AI</a> / Reference</p><h1 id="rfc-0001-archsutra-ai-v01">RFC 0001: ArchSutra AI v0.1</h1>
|
|
37
|
-
<p class="meta">Version 0.
|
|
49
|
+
<p class="meta">Version 0.2.0 · Source: <a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/rfc/0001-archsutra-v0.1.md" rel="noopener">docs/rfc/0001-archsutra-v0.1.md</a></p>
|
|
38
50
|
<p>Author: Vatsal Shah. Status: accepted for v0.1.</p>
|
|
39
51
|
<h2 id="goal">Goal<a class="anchor" href="#goal" aria-label="Link to this section">#</a></h2>
|
|
40
52
|
<p>Give any developer an evidence-first architecture reviewer that runs on the AI IDE they already use, with no extra API key, plus deterministic tooling that works offline.</p>
|
|
@@ -47,13 +59,18 @@
|
|
|
47
59
|
<h2 id="milestones">Milestones<a class="anchor" href="#milestones" aria-label="Link to this section">#</a></h2>
|
|
48
60
|
<div class="table-wrap" tabindex="0" role="region" aria-label="Table 1: Milestones"><table><thead><tr><th scope="col">Milestone</th><th scope="col">Acceptance test</th></tr></thead><tbody><tr><td>v0.1</td><td><code>npm test</code> green; audit of fixture repos matches expected rule IDs. Written at the time as 3 OS. macOS is not in CI as of 0.1.3</td></tr><tr><td>v0.2</td><td>Live smoke test report per host; compatibility matrix upgrades</td></tr><tr><td>v0.3</td><td>More language analyzers; fitness-function generator</td></tr><tr><td>v0.4</td><td>Optional local-model and BYOK server, off by default</td></tr></tbody></table></div>
|
|
49
61
|
<h2 id="open-questions">Open questions<a class="anchor" href="#open-questions" aria-label="Link to this section">#</a></h2>
|
|
50
|
-
<ul><li>Final npm package name is <code>archsutra-ai</code> (published). <code>archsutra</code> without <code>-ai</code> was still unclaimed on 2026-11-06. Provenance-from-Actions is still open.</li><li>Trademark check for "ArchSutra" before any commercial use (release-blocking business check; not performed).</li></ul></article></main>
|
|
62
|
+
<ul><li>Final npm package name is <code>archsutra-ai</code> (published). <code>archsutra</code> without <code>-ai</code> was still unclaimed on 2026-11-06. Provenance-from-Actions is still open.</li><li>Trademark check for "ArchSutra" before any commercial use (release-blocking business check; not performed).</li></ul></article><nav class="pn" aria-label="Previous and next page"><a class="prev" href="../compatibility/matrix.html"><small>Previous</small><span>Compatibility matrix</span></a><a class="next" href="../decisions/ADR-0001-deterministic-cli-plus-ide-skills.html"><small>Next</small><span>ADR-0001: Deterministic CLI plus IDE-native skills</span></a></nav><p class="edit"><a href="https://github.com/shahvatsalofficial/archsutra-ai/edit/main/docs/rfc/0001-archsutra-v0.1.md" rel="noopener">Edit this page on GitHub</a></p></main>
|
|
51
63
|
<aside class="rail"><nav class="toc" aria-label="On this page"><p class="nav-title">On this page</p><ul><li class="l2"><a href="#goal">Goal</a></li><li class="l2"><a href="#scope-v01">Scope (v0.1)</a></li><li class="l2"><a href="#non-goals-v01">Non-goals (v0.1)</a></li><li class="l2"><a href="#design">Design</a></li><li class="l2"><a href="#milestones">Milestones</a></li><li class="l2"><a href="#open-questions">Open questions</a></li></ul></nav></aside>
|
|
52
64
|
</div>
|
|
53
65
|
<footer class="footer">
|
|
54
66
|
<div class="footer-inner">
|
|
55
|
-
<
|
|
56
|
-
|
|
67
|
+
<div class="footer-grid">
|
|
68
|
+
<div class="about-col"><a class="brand" href="../index.html"><svg viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="9" fill="currentColor" opacity=".14"/><path d="M6 24 16 7l10 17M10.5 18h11" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg><span>ArchSutra <b>AI</b></span></a><p class="about">Design. Audit. Evolve. An open-source, evidence-first software architecture agent. Created by <a href="https://shahvatsal.com" rel="noopener">Vatsal Shah</a>. Apache-2.0.</p></div>
|
|
69
|
+
<div><h4>Learn</h4><ul><li><a href="../guides/getting-started.html">Get started</a></li><li><a href="../guides/real-world-scenarios.html">Real-world scenarios</a></li><li><a href="../guides/how-it-works.html">How it works</a></li><li><a href="../guides/cheat-sheet.html">Cheat sheet</a></li></ul></div>
|
|
70
|
+
<div><h4>Trust</h4><ul><li><a href="../guides/evidence-at-a-glance.html">Evidence at a glance</a></li><li><a href="../handbook/13-trust-and-assurance.html">Honesty register</a></li><li><a href="../handbook/07-security-privacy-legal.html">Security and legal</a></li><li><a href="../handbook/15-supply-chain-and-release.html">Supply chain</a></li></ul></div>
|
|
71
|
+
<div><h4>Project</h4><ul><li><a href="https://github.com/shahvatsalofficial/archsutra-ai" rel="noopener">GitHub</a></li><li><a href="https://www.npmjs.com/package/archsutra-ai" rel="noopener">npm</a></li><li><a href="../handbook/10-contributor-guide.html">Contribute</a></li><li><a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/CHANGELOG.md" rel="noopener">Changelog</a></li></ul></div>
|
|
72
|
+
</div>
|
|
73
|
+
<p class="fine">v0.2.0. Review aid only. Not a certification, compliance attestation, security guarantee or legal advice. Not affiliated with Anthropic, OpenAI, Cursor, GitHub or Google; product names belong to their owners. <a href="../handbook/07-security-privacy-legal.html">Legal details</a>.</p>
|
|
57
74
|
</div>
|
|
58
75
|
</footer>
|
|
59
76
|
<script src="../assets/site.js" type="module"></script>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"generatedAt": "2026-11-30T19:59:55.580Z",
|
|
4
|
+
"artifacts": [
|
|
5
|
+
{
|
|
6
|
+
"path": "overview.md",
|
|
7
|
+
"sha256": "153e7afdb15daaaf3b695ea432ac195bac0223a2a0a9e31a3e65d185b07cee98",
|
|
8
|
+
"supersedes": null
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"path": "index.html",
|
|
12
|
+
"sha256": "1d267c9d3edaf4afd16ef158493c1127555a394e319a25f086b359ddbbbbe6d7",
|
|
13
|
+
"supersedes": null
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"path": "current-state.md",
|
|
17
|
+
"sha256": "ca79ba2601d31c4bfa89f7ebc5112f5fd96fe3109b8e359da2a81ba42a82e064",
|
|
18
|
+
"supersedes": null
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"path": "current-state.html",
|
|
22
|
+
"sha256": "ec7553491d4b93a719b78ad3dcd3f1893a53208829da04aab958913bd26411e9",
|
|
23
|
+
"supersedes": null
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"path": "audit-report.md",
|
|
27
|
+
"sha256": "6ab27ab3f62a9a426e396dfc377be0b1aa0f772e029bd68ad49a6977ff667c0d",
|
|
28
|
+
"supersedes": null
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"path": "audit-report.html",
|
|
32
|
+
"sha256": "77323a86967e8a62ebd537d69219affb2f6d2f13ae6648163732a92db20571a8",
|
|
33
|
+
"supersedes": null
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "findings.json",
|
|
37
|
+
"sha256": "0936be3a46eccd388418f9a5f543249a36d8bce1f3ffccaf8a7fbff054015423",
|
|
38
|
+
"supersedes": null
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"path": "findings.sarif",
|
|
42
|
+
"sha256": "c3927616792cf93c115fab218f9a5e72a7af1bbd9c20f125c6f9576b7fede1f9",
|
|
43
|
+
"supersedes": null
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; script-src 'unsafe-inline' https://cdn.jsdelivr.net; connect-src https://cdn.jsdelivr.net; img-src data:; base-uri 'none'; form-action 'none'">
|
|
7
|
+
<meta name="color-scheme" content="light dark">
|
|
8
|
+
<script>try{if(localStorage.getItem("as-theme")==="dark")document.documentElement.dataset.theme="dark"}catch(e){}</script>
|
|
9
|
+
<meta name="generator" content="ArchSutra AI">
|
|
10
|
+
<title>Architecture Audit Report</title>
|
|
11
|
+
<style>
|
|
12
|
+
:root{--bg:#fbfbfd;--card:#fff;--soft:#f2f3f8;--text:#15181e;--muted:#565e6e;--line:#e1e4ec;--accent:#4338ca;--crit:#b42318;--high:#c2410c;--med:#8a5a00;--low:#1d4ed8;--info:#565e6e;--ok:#17794a;color-scheme:light}
|
|
13
|
+
html[data-theme=dark]{--bg:#0c0f14;--card:#131820;--soft:#1a202a;--text:#e8ebf2;--muted:#a2abbb;--line:#262e3b;--accent:#a5a8ff;--crit:#ff8a80;--high:#ffab70;--med:#f0c36a;--low:#8fb4ff;--info:#a2abbb;--ok:#5fd39a;color-scheme:dark}
|
|
14
|
+
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.6 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
|
|
15
|
+
a{color:var(--accent)}code,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em}
|
|
16
|
+
:not(pre)>code{background:var(--soft);border:1px solid var(--line);padding:.1em .35em;border-radius:6px;overflow-wrap:anywhere}
|
|
17
|
+
.wrap{max-width:1000px;margin:0 auto;padding:24px 20px 56px}
|
|
18
|
+
header.top{border-bottom:1px solid var(--line);background:var(--card)}header.top .wrap{padding-block:18px}
|
|
19
|
+
h1{font-size:clamp(1.6rem,3vw,2.2rem);letter-spacing:-.02em;margin:.1em 0}h2{font-size:1.35rem;margin:2em 0 .6em;padding-top:1em;border-top:1px solid var(--line)}h3{margin:0;font-size:1.02rem}
|
|
20
|
+
.muted{color:var(--muted)}.nav a{margin-right:14px}.lede{color:var(--muted);margin:.2em 0 0}
|
|
21
|
+
.notice{margin:16px 0;padding:12px 16px;border:1px solid var(--line);background:var(--soft);border-radius:10px}
|
|
22
|
+
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin:16px 0}
|
|
23
|
+
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px 16px}.card b{display:block;font-size:1.8rem;line-height:1.1}.card span{color:var(--muted);font-size:.85rem}
|
|
24
|
+
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:var(--card);margin:12px 0}table{border-collapse:collapse;width:100%;font-size:.93rem}
|
|
25
|
+
th,td{text-align:left;vertical-align:top;padding:9px 13px;border-bottom:1px solid var(--line)}th{background:var(--soft)}tr:last-child td{border-bottom:0}
|
|
26
|
+
.badge{display:inline-block;padding:1px 9px;border-radius:999px;border:1px solid currentColor;font-size:.78rem;font-weight:650;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}
|
|
27
|
+
.sev-critical{color:var(--crit)}.sev-high{color:var(--high)}.sev-medium{color:var(--med)}.sev-low{color:var(--low)}.sev-info{color:var(--info)}
|
|
28
|
+
.r-strong{color:var(--ok)}.r-adequate{color:var(--med)}.r-weak{color:var(--high)}.r-critical{color:var(--crit)}.r-no,.r-not{color:var(--muted)}
|
|
29
|
+
.filters{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.filters button{font:inherit;font-size:.88rem;padding:5px 12px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--text);cursor:pointer}
|
|
30
|
+
.filters button[aria-pressed=true]{background:var(--accent);color:var(--bg);border-color:var(--accent)}
|
|
31
|
+
details.finding{background:var(--card);border:1px solid var(--line);border-radius:12px;margin:10px 0;padding:4px 16px}
|
|
32
|
+
details.finding summary{cursor:pointer;padding:10px 0;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.fid{font-family:ui-monospace,monospace;font-size:.82rem;color:var(--muted)}
|
|
33
|
+
.fbody{padding:4px 0 14px}.fbody dt{font-weight:650;margin-top:.8em}.fbody dd{margin:.15em 0 0}.ev{list-style:none;padding:0;margin:.2em 0}.ev li{margin:.2em 0}
|
|
34
|
+
pre{background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:12px 14px;overflow:auto}
|
|
35
|
+
figure.diagram{margin:12px 0;padding:14px;background:var(--card);border:1px solid var(--line);border-radius:12px;overflow-x:auto}pre.mermaid{background:transparent;border:0;padding:0;text-align:center}
|
|
36
|
+
footer{margin-top:40px;padding-top:16px;border-top:1px solid var(--line);color:var(--muted);font-size:.85rem}
|
|
37
|
+
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:4px}
|
|
38
|
+
.tt{float:right;font:inherit;font-size:.85rem;padding:4px 12px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--text);cursor:pointer}
|
|
39
|
+
@media print{.tt{display:none}.filters,.nav{display:none}details.finding{break-inside:avoid}details.finding:not([open])>*{display:block}}
|
|
40
|
+
</style>
|
|
41
|
+
</head>
|
|
42
|
+
<body>
|
|
43
|
+
<header class="top"><div class="wrap"><button class="tt" type="button" aria-label="Toggle light and dark theme" onclick="var d=document.documentElement,n=d.dataset.theme==='dark'?'light':'dark';if(n==='dark')d.dataset.theme='dark';else delete d.dataset.theme;try{localStorage.setItem('as-theme',n)}catch(e){}if(document.querySelector('pre.mermaid'))location.reload()">Theme</button><nav class="nav" aria-label="Report pages"><a href="index.html">Overview</a><a href="audit-report.html">Audit report</a><a href="current-state.html">Current state</a></nav><h1>Architecture Audit Report</h1><p class="lede">Generated by ArchSutra AI. Deterministic static scan, read-only.</p></div></header>
|
|
44
|
+
<main class="wrap">
|
|
45
|
+
|
|
46
|
+
<h2 style="border-top:0;margin-top:0">Summary</h2>
|
|
47
|
+
<div class="cards"><div class="card"><b class="">12</b><span>Findings</span></div><div class="card"><b class="sev-critical">0</b><span>Critical</span></div><div class="card"><b class="sev-high">3</b><span>High</span></div><div class="card"><b class="sev-medium">7</b><span>Medium</span></div><div class="card"><b class="sev-low">2</b><span>Low</span></div><div class="card"><b class="sev-info">0</b><span>Info</span></div></div>
|
|
48
|
+
<p>Files scanned: <b>7</b>. Stack observed: TypeScript, Node.js.</p>
|
|
49
|
+
<h2>Scorecard</h2>
|
|
50
|
+
<div class="table-wrap"><table><thead><tr><th scope="col">Category</th><th scope="col">Rating</th><th scope="col">Confidence</th><th scope="col">Basis</th></tr></thead><tbody><tr><td>Security</td><td><span class="badge r-weak">weak</span></td><td>low</td><td>4 finding(s): 0 critical, 3 high, 1 medium, 0 low. 19 rule(s), 100% of listed files scanned. Absence of findings is not proof of quality.</td></tr><tr><td>Maintainability</td><td><span class="badge r-adequate">adequate</span></td><td>low</td><td>3 finding(s): 0 critical, 0 high, 3 medium, 0 low. 5 rule(s), 100% of listed files scanned. Absence of findings is not proof of quality.</td></tr><tr><td>Operability</td><td><span class="badge r-adequate">adequate</span></td><td>low</td><td>1 finding(s): 0 critical, 0 high, 1 medium, 0 low. 2 rule(s), 100% of listed files scanned. Absence of findings is not proof of quality.</td></tr><tr><td>Supply chain</td><td><span class="badge r-adequate">adequate</span></td><td>low</td><td>3 finding(s): 0 critical, 0 high, 2 medium, 1 low. 3 rule(s), 100% of listed files scanned. Absence of findings is not proof of quality.</td></tr><tr><td>Developer experience</td><td><span class="badge r-no">no findings</span></td><td>low</td><td>1 finding(s): 0 critical, 0 high, 0 medium, 1 low. 2 rule(s), 100% of listed files scanned. Absence of findings is not proof of quality.</td></tr><tr><td>Reliability</td><td><span class="badge r-not">not assessed</span></td><td>none</td><td>Needs runtime, load, data or billing evidence the static scan cannot observe. Use the architecture-audit skill; see the roadmap in docs/handbook/09-compatibility-and-roadmap.md.</td></tr><tr><td>Performance</td><td><span class="badge r-not">not assessed</span></td><td>none</td><td>Needs runtime, load, data or billing evidence the static scan cannot observe. Use the architecture-audit skill; see the roadmap in docs/handbook/09-compatibility-and-roadmap.md.</td></tr><tr><td>Scalability</td><td><span class="badge r-not">not assessed</span></td><td>none</td><td>Needs runtime, load, data or billing evidence the static scan cannot observe. Use the architecture-audit skill; see the roadmap in docs/handbook/09-compatibility-and-roadmap.md.</td></tr><tr><td>Data integrity</td><td><span class="badge r-not">not assessed</span></td><td>none</td><td>Needs runtime, load, data or billing evidence the static scan cannot observe. Use the architecture-audit skill; see the roadmap in docs/handbook/09-compatibility-and-roadmap.md.</td></tr><tr><td>Cost</td><td><span class="badge r-not">not assessed</span></td><td>none</td><td>Needs runtime, load, data or billing evidence the static scan cannot observe. Use the architecture-audit skill; see the roadmap in docs/handbook/09-compatibility-and-roadmap.md.</td></tr></tbody></table></div>
|
|
51
|
+
<h2>Findings</h2>
|
|
52
|
+
<div class="filters" role="group" aria-label="Filter by severity"><button type="button" data-sev="all" aria-pressed="true">All (12)</button><button type="button" data-sev="high" aria-pressed="false">high (3)</button><button type="button" data-sev="medium" aria-pressed="false">medium (7)</button><button type="button" data-sev="low" aria-pressed="false">low (2)</button></div><details class="finding sev-high" data-sev="high" open>
|
|
53
|
+
<summary><span class="badge sev-high">high</span><h3>Dynamic code or shell execution</h3><span class="fid">AS-SEC-004#001</span><span class="muted">confidence: medium</span></summary>
|
|
54
|
+
<div class="fbody"><p class="muted">Category: security</p><p><b>Evidence</b></p><ul class="ev"><li><span class="badge" style="color:var(--muted)">observed</span> <code>src/services/user.ts:3</code> <code>const score = eval(expr);</code></li></ul>
|
|
55
|
+
<dl><dt>Impact</dt><dd>If any input reaches these calls, an attacker can execute arbitrary code or commands.</dd><dt>Why it matters</dt><dd>Injection (OWASP A03) frequently starts at eval/exec style sinks.</dd><dt>Fix</dt><dd>Replace with a safe API (argument arrays, parsers, allowlists). Never build commands or code from strings that include external input.</dd><dt>How to verify</dt><dd>Trace data flow into each call; add a unit test with hostile input.</dd><dt>Acceptance criteria</dt><dd>No eval/Function/shell-string execution remains, or each remaining use is documented with a proven constant input.</dd><dt>Effort / owner</dt><dd>M / application developer</dd><dt>Caveats and false-positive notes</dt><dd>Pattern match only. The call may only receive constants; confirm by data-flow review.</dd><dt>References</dt><dd><a href="https://owasp.org/Top10/" rel="noopener noreferrer">https://owasp.org/Top10/</a></dd></dl></div>
|
|
56
|
+
</details>
|
|
57
|
+
<details class="finding sev-high" data-sev="high" open>
|
|
58
|
+
<summary><span class="badge sev-high">high</span><h3>SQL built by string concatenation or interpolation</h3><span class="fid">AS-SEC-005#001</span><span class="muted">confidence: medium</span></summary>
|
|
59
|
+
<div class="fbody"><p class="muted">Category: security</p><p><b>Evidence</b></p><ul class="ev"><li><span class="badge" style="color:var(--muted)">observed</span> <code>src/services/user.ts:2</code> <code>const rows = await db.query(`SELECT * FROM users WHERE id = ${id}`);</code></li></ul>
|
|
60
|
+
<dl><dt>Impact</dt><dd>Possible SQL injection and unpredictable query plans.</dd><dt>Why it matters</dt><dd>Parameterized queries are the primary defence against injection (OWASP A03).</dd><dt>Fix</dt><dd>Use parameterized queries or the ORM query builder. Allowlist any dynamic identifiers.</dd><dt>How to verify</dt><dd>Search for the pattern again; add an injection test (e.g. a quote character in input).</dd><dt>Acceptance criteria</dt><dd>All queries with external input use bind parameters.</dd><dt>Effort / owner</dt><dd>M / application developer</dd><dt>Caveats and false-positive notes</dt><dd>Heuristic. Interpolated values may be constants or already validated.</dd><dt>References</dt><dd><a href="https://owasp.org/Top10/" rel="noopener noreferrer">https://owasp.org/Top10/</a>, <a href="https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html" rel="noopener noreferrer">https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html</a></dd></dl></div>
|
|
61
|
+
</details>
|
|
62
|
+
<details class="finding sev-high" data-sev="high" open>
|
|
63
|
+
<summary><span class="badge sev-high">high</span><h3>TLS certificate verification disabled</h3><span class="fid">AS-SEC-006#001</span><span class="muted">confidence: high</span></summary>
|
|
64
|
+
<div class="fbody"><p class="muted">Category: security</p><p><b>Evidence</b></p><ul class="ev"><li><span class="badge" style="color:var(--muted)">observed</span> <code>src/services/http.ts:2</code> <code>export const agent = new https.Agent({ rejectUnauthorized: false });</code></li></ul>
|
|
65
|
+
<dl><dt>Impact</dt><dd>Connections can be intercepted by a man-in-the-middle.</dd><dt>Why it matters</dt><dd>Disabled verification removes the authenticity guarantee of TLS.</dd><dt>Fix</dt><dd>Enable verification. For private CAs, trust the CA bundle explicitly instead of disabling checks.</dd><dt>How to verify</dt><dd>Connect to a host with an invalid cert and confirm the call fails.</dd><dt>Acceptance criteria</dt><dd>No production code path disables certificate verification.</dd><dt>Effort / owner</dt><dd>S / application developer</dd><dt>Caveats and false-positive notes</dt><dd>May be limited to a local dev profile; confirm it cannot reach production.</dd><dt>References</dt><dd><a href="https://owasp.org/Top10/A02_2021-Cryptographic_Failures/" rel="noopener noreferrer">https://owasp.org/Top10/A02_2021-Cryptographic_Failures/</a></dd></dl></div>
|
|
66
|
+
</details>
|
|
67
|
+
<details class="finding sev-medium" data-sev="medium">
|
|
68
|
+
<summary><span class="badge sev-medium">medium</span><h3>Circular dependency between modules (src/api <-> src/db)</h3><span class="fid">AS-ARC-001#001</span><span class="muted">confidence: high</span></summary>
|
|
69
|
+
<div class="fbody"><p class="muted">Category: architecture</p><p><b>Evidence</b></p><ul class="ev"><li><span class="badge" style="color:var(--muted)">observed</span> <code>src/api/routes.ts:1</code> <code>import { findUser } from '../db/repo.js';</code></li><li><span class="badge" style="color:var(--muted)">observed</span> <code>src/db/repo.ts:1</code> <code>import { getUser } from '../api/routes.js';</code></li></ul>
|
|
70
|
+
<dl><dt>Impact</dt><dd>Cyclic modules cannot be understood, tested, versioned or deployed independently.</dd><dt>Why it matters</dt><dd>Acyclic dependencies keep change local and make extraction (e.g. to a service) feasible.</dd><dt>Fix</dt><dd>Extract the shared concept into a lower-level module or invert one dependency behind an interface.</dd><dt>How to verify</dt><dd>Re-run `archsutra map`; cycles list must be empty. Add the check to CI.</dd><dt>Acceptance criteria</dt><dd>archsutra map reports zero module cycles.</dd><dt>Effort / owner</dt><dd>M / tech lead</dd><dt>Caveats and false-positive notes</dt><dd>Module = top-level directory heuristic; a cycle between sub-folders of one deliberate unit may be acceptable.</dd><dt>References</dt><dd><a href="https://en.wikipedia.org/wiki/Acyclic_dependencies_principle" rel="noopener noreferrer">https://en.wikipedia.org/wiki/Acyclic_dependencies_principle</a></dd></dl></div>
|
|
71
|
+
</details>
|
|
72
|
+
<details class="finding sev-medium" data-sev="medium">
|
|
73
|
+
<summary><span class="badge sev-medium">medium</span><h3>Lower layer depends on a higher layer</h3><span class="fid">AS-ARC-002#001</span><span class="muted">confidence: medium</span></summary>
|
|
74
|
+
<div class="fbody"><p class="muted">Category: architecture</p><p><b>Evidence</b></p><ul class="ev"><li><span class="badge" style="color:var(--muted)">observed</span> <code>src/db/repo.ts:1</code> <code>import { getUser } from '../api/routes.js';</code></li></ul>
|
|
75
|
+
<dl><dt>Impact</dt><dd>Data or service code that imports presentation code inverts the intended dependency direction and blocks reuse.</dd><dt>Why it matters</dt><dd>Layer direction is what keeps business and data logic independent of delivery mechanisms.</dd><dt>Fix</dt><dd>Move shared types down, or introduce an interface owned by the lower layer and implemented above.</dd><dt>How to verify</dt><dd>Add a dependency-direction fitness test (e.g. dependency-cruiser, ArchUnit) and run it in CI.</dd><dt>Acceptance criteria</dt><dd>No import from data/service layers into presentation layers.</dd><dt>Effort / owner</dt><dd>M / tech lead</dd><dt>Caveats and false-positive notes</dt><dd>Layers are inferred from folder names (controllers, services, repositories...). Verify your real layering.</dd><dt>References</dt><dd><a href="https://c4model.com/" rel="noopener noreferrer">https://c4model.com/</a></dd></dl></div>
|
|
76
|
+
</details>
|
|
77
|
+
<details class="finding sev-medium" data-sev="medium">
|
|
78
|
+
<summary><span class="badge sev-medium">medium</span><h3>No CI pipeline configuration found</h3><span class="fid">AS-OPS-001#001</span><span class="muted">confidence: medium</span></summary>
|
|
79
|
+
<div class="fbody"><p class="muted">Category: operability</p><p><b>Evidence</b></p><ul class="ev"><li><span class="badge" style="color:var(--muted)">unknown</span> <code>.</code> <code>No GitHub Actions, GitLab CI, Azure Pipelines, Jenkins or CircleCI files found</code></li></ul>
|
|
80
|
+
<dl><dt>Impact</dt><dd>Regressions and architecture drift are not caught automatically.</dd><dt>Why it matters</dt><dd>Automated gates are the cheapest enforcement of architectural rules.</dd><dt>Fix</dt><dd>Add CI that builds, tests, lints and runs dependency/secret scans on every pull request.</dd><dt>How to verify</dt><dd>Open a PR and confirm the pipeline runs.</dd><dt>Acceptance criteria</dt><dd>A required status check runs build + tests on every PR.</dd><dt>Effort / owner</dt><dd>S / DevOps</dd><dt>Caveats and false-positive notes</dt><dd>CI may live outside this repository.</dd></dl></div>
|
|
81
|
+
</details>
|
|
82
|
+
<details class="finding sev-medium" data-sev="medium">
|
|
83
|
+
<summary><span class="badge sev-medium">medium</span><h3>No test files found</h3><span class="fid">AS-OPS-002#001</span><span class="muted">confidence: medium</span></summary>
|
|
84
|
+
<div class="fbody"><p class="muted">Category: maintainability</p><p><b>Evidence</b></p><ul class="ev"><li><span class="badge" style="color:var(--muted)">unknown</span> <code>.</code> <code>No test/, tests/, __tests__, *.test.*, *.spec.* or *_test.* files found</code></li></ul>
|
|
85
|
+
<dl><dt>Impact</dt><dd>Refactoring and modernization are high-risk without a safety net.</dd><dt>Why it matters</dt><dd>Tests are the precondition for safe evolution.</dd><dt>Fix</dt><dd>Add characterization tests around critical paths before changing them.</dd><dt>How to verify</dt><dd>Run the suite in CI and track coverage trend.</dd><dt>Acceptance criteria</dt><dd>Critical user journeys have automated tests that run in CI.</dd><dt>Effort / owner</dt><dd>L / application developer</dd><dt>Caveats and false-positive notes</dt><dd>Tests may live in another repository.</dd></dl></div>
|
|
86
|
+
</details>
|
|
87
|
+
<details class="finding sev-medium" data-sev="medium">
|
|
88
|
+
<summary><span class="badge sev-medium">medium</span><h3>Container runs as root</h3><span class="fid">AS-OPS-003#001</span><span class="muted">confidence: high</span></summary>
|
|
89
|
+
<div class="fbody"><p class="muted">Category: security</p><p><b>Evidence</b></p><ul class="ev"><li><span class="badge" style="color:var(--muted)">observed</span> <code>Dockerfile:1-4</code> <code>no USER instruction</code></li></ul>
|
|
90
|
+
<dl><dt>Impact</dt><dd>A compromised process has root inside the container, easing escape and file tampering.</dd><dt>Why it matters</dt><dd>Non-root containers are baseline hardening.</dd><dt>Fix</dt><dd>Create an unprivileged user and add `USER <name>` before the entrypoint.</dd><dt>How to verify</dt><dd>`docker run --rm image id` shows a non-zero uid.</dd><dt>Acceptance criteria</dt><dd>Final image stage runs as a non-root user.</dd><dt>Effort / owner</dt><dd>S / DevOps</dd><dt>Caveats and false-positive notes</dt><dd>Some build-only stages legitimately use root; only the final stage matters.</dd><dt>References</dt><dd><a href="https://docs.docker.com/build/building/best-practices/#user" rel="noopener noreferrer">https://docs.docker.com/build/building/best-practices/#user</a></dd></dl></div>
|
|
91
|
+
</details>
|
|
92
|
+
<details class="finding sev-medium" data-sev="medium">
|
|
93
|
+
<summary><span class="badge sev-medium">medium</span><h3>Dependency manifest without lockfile</h3><span class="fid">AS-SUP-001#001</span><span class="muted">confidence: high</span></summary>
|
|
94
|
+
<div class="fbody"><p class="muted">Category: supply-chain</p><p><b>Evidence</b></p><ul class="ev"><li><span class="badge" style="color:var(--muted)">observed</span> <code>package.json</code> <code>no lockfile next to or above this package.json</code></li></ul>
|
|
95
|
+
<dl><dt>Impact</dt><dd>Installs are not reproducible; a compromised new release can enter automatically.</dd><dt>Why it matters</dt><dd>Lockfiles pin the exact dependency tree that was tested.</dd><dt>Fix</dt><dd>Commit the lockfile and install with `npm ci` (or equivalent) in CI.</dd><dt>How to verify</dt><dd>CI uses a frozen/locked install.</dd><dt>Acceptance criteria</dt><dd>Every manifest has a committed lockfile.</dd><dt>Effort / owner</dt><dd>S / application developer</dd><dt>Caveats and false-positive notes</dt><dd>Workspaces may keep a single lockfile at the repo root (checked).</dd></dl></div>
|
|
96
|
+
</details>
|
|
97
|
+
<details class="finding sev-medium" data-sev="medium">
|
|
98
|
+
<summary><span class="badge sev-medium">medium</span><h3>Unpinned dependency ranges ("latest" or "*")</h3><span class="fid">AS-SUP-002#001</span><span class="muted">confidence: high</span></summary>
|
|
99
|
+
<div class="fbody"><p class="muted">Category: supply-chain</p><p><b>Evidence</b></p><ul class="ev"><li><span class="badge" style="color:var(--muted)">observed</span> <code>package.json</code> <code>express: latest</code></li></ul>
|
|
100
|
+
<dl><dt>Impact</dt><dd>Any future release, including a malicious one, is accepted.</dd><dt>Why it matters</dt><dd>Unbounded ranges defeat review and reproducibility.</dd><dt>Fix</dt><dd>Use a bounded semver range and rely on the lockfile plus automated update PRs.</dd><dt>How to verify</dt><dd>Manifest scan shows no "latest" or "*".</dd><dt>Acceptance criteria</dt><dd>No dependency uses latest or *.</dd><dt>Effort / owner</dt><dd>S / application developer</dd><dt>Caveats and false-positive notes</dt><dd>None known.</dd></dl></div>
|
|
101
|
+
</details>
|
|
102
|
+
<details class="finding sev-low" data-sev="low">
|
|
103
|
+
<summary><span class="badge sev-low">low</span><h3>No README at repository root</h3><span class="fid">AS-DOC-001#001</span><span class="muted">confidence: high</span></summary>
|
|
104
|
+
<div class="fbody"><p class="muted">Category: developer-experience</p><p><b>Evidence</b></p><ul class="ev"><li><span class="badge" style="color:var(--muted)">observed</span> <code>.</code> <code>README* not found</code></li></ul>
|
|
105
|
+
<dl><dt>Impact</dt><dd>New contributors cannot find purpose, setup, or architecture overview.</dd><dt>Why it matters</dt><dd>Docs drift starts when the entry point is missing.</dd><dt>Fix</dt><dd>Add a README with purpose, setup, run, test, and an architecture section.</dd><dt>How to verify</dt><dd>A new developer runs the project from the README alone.</dd><dt>Acceptance criteria</dt><dd>README exists and setup steps were validated on a clean machine.</dd><dt>Effort / owner</dt><dd>S / tech lead</dd><dt>Caveats and false-positive notes</dt><dd>None known.</dd></dl></div>
|
|
106
|
+
</details>
|
|
107
|
+
<details class="finding sev-low" data-sev="low">
|
|
108
|
+
<summary><span class="badge sev-low">low</span><h3>Container base image not pinned</h3><span class="fid">AS-SUP-003#001</span><span class="muted">confidence: medium</span></summary>
|
|
109
|
+
<div class="fbody"><p class="muted">Category: supply-chain</p><p><b>Evidence</b></p><ul class="ev"><li><span class="badge" style="color:var(--muted)">observed</span> <code>Dockerfile</code> <code>base image not pinned to a version or digest</code></li></ul>
|
|
110
|
+
<dl><dt>Impact</dt><dd>Builds are not reproducible and can silently pick up a compromised or breaking image.</dd><dt>Why it matters</dt><dd>Pinning is a core supply-chain control.</dd><dt>Fix</dt><dd>Pin to a specific version tag, ideally with a digest, and update via automated PRs.</dd><dt>How to verify</dt><dd>Rebuild twice and compare image digests.</dd><dt>Acceptance criteria</dt><dd>All FROM lines specify an explicit version or digest.</dd><dt>Effort / owner</dt><dd>S / DevOps</dd><dt>Caveats and false-positive notes</dt><dd>Multi-stage references to earlier stages are not images.</dd></dl></div>
|
|
111
|
+
</details>
|
|
112
|
+
<h2>Scope and blind spots</h2>
|
|
113
|
+
<ul><li>Runtime behaviour, deployed topology, and data volumes are not observable from source alone.</li><li>Dependency edges are module-level. JS/TS uses relative imports. Python uses the top package name. Go, Java, Kotlin, C#, and Rust match an import suffix to a module path. Dynamic imports, path aliases, and DI wiring may be missed. PHP, Ruby, Swift, and Dart are detected and not graphed.</li></ul>
|
|
114
|
+
|
|
115
|
+
<p class="muted">Skipped: <code>{"ignoredDirs":0,"tooLarge":0,"binary":0,"symlinks":0,"overBudget":0,"excluded":0}</code></p>
|
|
116
|
+
<footer>Review aid only. Not a certification, compliance attestation, security guarantee or legal advice. Findings marked <code>inferred</code> or <code>unknown</code> are hypotheses; absence of findings does not prove absence of problems. Secrets are redacted.</footer>
|
|
117
|
+
</main>
|
|
118
|
+
<script type="module">
|
|
119
|
+
const btns=[...document.querySelectorAll('.filters button')];
|
|
120
|
+
btns.forEach(b=>b.addEventListener('click',()=>{const s=b.dataset.sev;btns.forEach(x=>x.setAttribute('aria-pressed',String(x===b)));
|
|
121
|
+
document.querySelectorAll('details.finding').forEach(d=>{d.hidden=!(s==='all'||d.dataset.sev===s)})}));</script>
|
|
122
|
+
</body>
|
|
123
|
+
</html>
|