incidentsutra 0.2.0 → 0.2.2
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/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +11 -0
- package/CITATION.cff +2 -2
- package/README.md +3 -3
- package/ROADMAP.md +1 -1
- package/docs/EVIDENCE_MODEL.md +1 -1
- package/docs/STATUS.md +1 -1
- package/docs/THREAT_MODEL.md +1 -1
- package/documents/IncidentSutra-AI/01-executive-summary.html +13 -12
- package/documents/IncidentSutra-AI/01-executive-summary.md +4 -0
- package/documents/IncidentSutra-AI/02-functional-spec.html +15 -14
- package/documents/IncidentSutra-AI/02-functional-spec.md +4 -0
- package/documents/IncidentSutra-AI/03-technical-spec.html +15 -16
- package/documents/IncidentSutra-AI/04-architecture.html +19 -17
- package/documents/IncidentSutra-AI/04-architecture.md +6 -0
- package/documents/IncidentSutra-AI/05-user-guide.html +28 -27
- package/documents/IncidentSutra-AI/05-user-guide.md +4 -0
- package/documents/IncidentSutra-AI/06-security-privacy-legal.html +14 -13
- package/documents/IncidentSutra-AI/06-security-privacy-legal.md +4 -0
- package/documents/IncidentSutra-AI/07-independent-audit.html +17 -15
- package/documents/IncidentSutra-AI/07-independent-audit.md +6 -0
- package/documents/IncidentSutra-AI/08-agent-catalog.html +9 -10
- package/documents/IncidentSutra-AI/09-faq.html +7 -8
- package/documents/IncidentSutra-AI/10-real-world-scenarios.html +31 -0
- package/documents/IncidentSutra-AI/10-real-world-scenarios.md +63 -0
- package/documents/IncidentSutra-AI/11-visual-guide.html +28 -0
- package/documents/IncidentSutra-AI/11-visual-guide.md +60 -0
- package/documents/IncidentSutra-AI/12-glossary.html +3 -0
- package/documents/IncidentSutra-AI/12-glossary.md +28 -0
- package/documents/IncidentSutra-AI/404.html +1 -0
- package/documents/IncidentSutra-AI/README.html +7 -8
- package/documents/IncidentSutra-AI/README.md +4 -2
- package/documents/IncidentSutra-AI/assets/site.css +263 -0
- package/documents/IncidentSutra-AI/assets/site.js +135 -0
- package/documents/IncidentSutra-AI/evidence/audit/audit-report.html +6 -4
- package/documents/IncidentSutra-AI/evidence/audit/audit-report.json +3 -3
- package/documents/IncidentSutra-AI/evidence/audit/audit-report.md +3 -3
- package/documents/IncidentSutra-AI/evidence/benchmark.json +13 -13
- package/documents/IncidentSutra-AI/evidence/samples/incident-report.html +5 -3
- package/documents/IncidentSutra-AI/evidence/samples/incident-report.json +2 -2
- package/documents/IncidentSutra-AI/evidence/samples/incident-report.md +2 -2
- package/documents/IncidentSutra-AI/evidence/samples/postmortem-draft.md +1 -1
- package/documents/IncidentSutra-AI/evidence/scenarios/database-pool.html +47 -0
- package/documents/IncidentSutra-AI/evidence/scenarios/deploy-blamed.html +47 -0
- package/documents/IncidentSutra-AI/evidence/scenarios/night-alert-storm.html +47 -0
- package/documents/IncidentSutra-AI/evidence/scenarios/payment-provider.html +47 -0
- package/documents/IncidentSutra-AI/evidence/scenarios/thin-evidence.html +47 -0
- package/documents/IncidentSutra-AI/evidence/scenarios/timezone-mixup.html +47 -0
- package/documents/IncidentSutra-AI/evidence/test-results.json +36 -4
- package/documents/IncidentSutra-AI/index.html +15 -0
- package/documents/IncidentSutra-AI/robots.txt +3 -0
- package/documents/IncidentSutra-AI/sitemap.xml +26 -0
- package/documents/IncidentSutra-AI/test-results.html +5 -6
- package/documents/IncidentSutra-AI/test-results.md +10 -2
- package/examples/reports/demo/hypothesis-register.md +1 -1
- package/examples/reports/demo/incident-report.html +5 -3
- package/examples/reports/demo/incident-report.json +2 -2
- package/examples/reports/demo/incident-report.md +2 -2
- package/examples/reports/demo/postmortem-draft.md +1 -1
- package/examples/reports/demo/provenance.json +8 -8
- package/fixtures/scenarios/database-pool/events.jsonl +6 -0
- package/fixtures/scenarios/deploy-blamed/events.jsonl +6 -0
- package/fixtures/scenarios/night-alert-storm/events.jsonl +10 -0
- package/fixtures/scenarios/payment-provider/events.jsonl +6 -0
- package/fixtures/scenarios/thin-evidence/events.jsonl +3 -0
- package/fixtures/scenarios/timezone-mixup/events.jsonl +4 -0
- package/llms.txt +3 -0
- package/package.json +2 -2
- package/packages/reporter/index.mjs +1 -1
- package/packages/reporter/theme.mjs +4 -2
- package/scripts/build-docs.mjs +205 -51
- package/scripts/build-site.mjs +27 -0
- package/scripts/install.cmd +2 -2
- package/site/diagrams.mjs +68 -0
- package/site/extra.css +62 -0
- package/site/incident.css +31 -0
- package/site/site.css +168 -0
- package/site/site.js +135 -0
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
<!
|
|
2
|
-
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="color-scheme" content="light dark"><title>Independent-style audit and evidence · IncidentSutra AI</title><meta name="description" content="IncidentSutra AI documentation: evidence-first, offline, read-only incident investigation."><style>:root{--bg:#f6f8fb;--fg:#0f172a;--mut:#475569;--card:#fff;--bd:#d9e1ec;--ac:#3538cd;--code:#eef2f7}@media(prefers-color-scheme:dark){:root{--bg:#0b1220;--fg:#e6edf7;--mut:#9fb0c7;--card:#121b2e;--bd:#25324a;--ac:#a4bcfd;--code:#1a2540}}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--fg);font:16px/1.7 system-ui,-apple-system,Segoe UI,sans-serif}a{color:var(--ac)}.layout{display:grid;grid-template-columns:260px minmax(0,1fr);max-width:1240px;margin:0 auto}nav{position:sticky;top:0;align-self:start;height:100vh;overflow:auto;padding:24px 16px;border-right:1px solid var(--bd)}nav b{display:block;margin-bottom:8px}nav a{display:block;padding:4px 8px;border-radius:6px;text-decoration:none;color:var(--mut);font-size:.92rem}nav a[aria-current]{background:var(--card);color:var(--fg);font-weight:600}nav .sub a{padding-left:20px;font-size:.84rem}main{padding:32px 28px 80px;min-width:0}h1{font-size:2rem;line-height:1.2}h2{margin-top:2.2em;border-bottom:1px solid var(--bd);padding-bottom:.25em}h3{margin-top:1.6em}code{background:var(--code);padding:.1em .35em;border-radius:5px;font:.88em ui-monospace,Consolas,monospace}pre{background:var(--code);padding:14px;border-radius:10px;overflow:auto}pre code{background:none;padding:0}.tw{overflow-x:auto}table{border-collapse:collapse;width:100%;background:var(--card);font-size:.92rem}th,td{border:1px solid var(--bd);padding:8px 10px;text-align:left;vertical-align:top}th{background:var(--code)}blockquote{margin:1em 0;padding:8px 16px;border-left:4px solid var(--ac);background:var(--card);border-radius:0 8px 8px 0}footer{color:var(--mut);font-size:.85rem;margin-top:48px}:focus-visible{outline:3px solid var(--ac);outline-offset:2px}.skip{position:absolute;left:-999px}.skip:focus{left:8px;top:8px;background:var(--card);padding:6px}@media(max-width:820px){.layout{display:block}nav{position:static;height:auto;border-right:0;border-bottom:1px solid var(--bd)}main{padding:20px 16px 60px}}@media print{nav{display:none}.layout{display:block}}</style></head><body><a class="skip" href="#content">Skip to content</a><div class="layout"><nav aria-label="Documentation"><b>IncidentSutra AI</b><a href="README.html">IncidentSutra AI documentation</a><a href="01-executive-summary.html">Executive summary</a><a href="02-functional-spec.html">Functional specification</a><a href="03-technical-spec.html">Technical specification</a><a href="04-architecture.html">Architecture</a><a href="05-user-guide.html">User guide</a><a href="06-security-privacy-legal.html">Security, privacy and legal</a><a href="07-independent-audit.html" aria-current="page">Independent-style audit and evidence</a><div class="sub"><a href="#1-method">1. Method</a><a href="#2-defects-found-in-the-starter-and-their-resolution">2. Defects found in the starter and their resolution</a><a href="#3-automated-audit-20-checks">3. Automated audit (20 checks)</a><a href="#4-benchmark">4. Benchmark</a><a href="#5-tests">5. Tests</a><a href="#6-sample-proof">6. Sample proof</a><a href="#7-what-was-not-tested-read-this">7. What was not tested (read this)</a><a href="#8-residual-risks">8. Residual risks</a><a href="#9-verdict">9. Verdict</a></div><a href="08-agent-catalog.html">Agent catalogue</a><a href="09-faq.html">FAQ</a><a href="test-results.html">Test results (observed)</a><p><a href="https://github.com/shahvatsalofficial/IncidentSutra-AI">GitHub</a> · <a href="https://www.npmjs.com/package/incidentsutra">npm</a></p></nav><main id="content"><h1 id="independent-style-audit-and-evidence">Independent-style audit and evidence</h1>
|
|
1
|
+
<!DOCTYPE html><html lang="en" data-theme="light"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Independent-style audit and evidence · IncidentSutra AI</title><meta name="description" content="Independent-style audit and evidence for IncidentSutra AI, the offline incident evidence CLI."><meta name="keywords" content="incident response, SRE, on-call, postmortem, root cause analysis, incident timeline, OpenTelemetry, agent skills, Claude Code, Cursor, Codex, Gemini CLI, Copilot"><meta name="color-scheme" content="light dark"><meta name="theme-color" content="#4338ca"><meta name="author" content="Vatsal Shah"><link rel="canonical" href="https://shahvatsalofficial.github.io/IncidentSutra-AI/07-independent-audit.html"><meta property="og:title" content="Independent-style audit and evidence · IncidentSutra AI"><meta property="og:description" content="Independent-style audit and evidence for IncidentSutra AI, the offline incident evidence CLI."><meta property="og:type" content="website"><meta property="og:site_name" content="IncidentSutra AI"><meta property="og:url" content="https://shahvatsalofficial.github.io/IncidentSutra-AI/07-independent-audit.html"><meta name="twitter:card" content="summary"><link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='8' fill='%234338ca'/%3E%3Cpath d='M5 17h5l3-8 5 15 3-7h6' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"><script>try{var t=localStorage.getItem('incidentsutra-theme');document.documentElement.setAttribute('data-theme',t==='dark'?'dark':'light')}catch(e){document.documentElement.setAttribute('data-theme','light')}</script><link rel="stylesheet" href="assets/site.css"></head><body><a class="skip" href="#content">Skip to content</a><svg width="0" height="0" style="position:absolute" aria-hidden="true"><defs><symbol id="i-search" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></symbol><symbol id="i-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.2 4.2l1.4 1.4M18.4 18.4l1.4 1.4M1 12h2M21 12h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4"/></symbol><symbol id="i-moon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z"/></symbol><symbol id="i-menu" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18M3 12h18M3 18h18"/></symbol><symbol id="i-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></symbol><symbol id="i-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M12 5l7 7-7 7"/></symbol><symbol id="i-code" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 18l6-6-6-6M8 6l-6 6 6 6"/></symbol><symbol id="i-shield" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></symbol><symbol id="i-lock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></symbol><symbol id="i-file" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6"/></symbol><symbol id="i-eye" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></symbol><symbol id="i-layers" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2l10 5-10 5L2 7z"/><path d="M2 17l10 5 10-5M2 12l10 5 10-5"/></symbol><symbol id="i-clock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></symbol><symbol id="i-check" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></symbol></defs></svg><header class="topbar"><div class="topbar-in"><button class="icon-btn menu-btn" type="button" aria-label="Open navigation menu" aria-expanded="false" aria-controls="sidebar"><svg class="ic" width="20" height="20" aria-hidden="true"><use href="#i-menu"/></svg></button><a class="brand" href="index.html"><span class="logo" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 32 32"><path d="M4 17h6l3-9 6 16 3-7h6" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg></span><span class="brand-name">Incident<b>Sutra</b> AI</span><span class="ver">v0.2.2</span></a><nav class="topnav" aria-label="Primary"><a href="05-user-guide.html">Guide</a><a href="10-real-world-scenarios.html">Scenarios</a><a href="11-visual-guide.html">Visuals</a><a href="04-architecture.html">Architecture</a><a href="07-independent-audit.html" aria-current="page">Proof</a></nav><div class="search" role="search"><svg class="ic" width="18" height="18" aria-hidden="true"><use href="#i-search"/></svg><label class="sr" for="q">Search the documentation</label><input id="q" type="search" placeholder="Search docs" autocomplete="off" role="combobox" aria-expanded="false" aria-controls="results"><kbd aria-hidden="true">/</kbd><ul id="results" role="listbox" hidden></ul></div><a class="icon-btn gh" href="https://github.com/shahvatsalofficial/IncidentSutra-AI" rel="noopener" aria-label="IncidentSutra AI on GitHub"><svg class="ic" width="20" height="20" aria-hidden="true"><use href="#i-code"/></svg></a><button class="icon-btn theme-btn" type="button" aria-pressed="false" aria-label="Switch to dark theme"><svg class="ic i-sun" width="20" height="20" aria-hidden="true"><use href="#i-sun"/></svg><svg class="ic i-moon" width="20" height="20" aria-hidden="true"><use href="#i-moon"/></svg></button></div></header><div class="layout"><aside class="sidebar" id="sidebar" aria-label="Documentation"><a class="nav-home" href="index.html">Home</a><div class="nav-group"><p class="nav-title">Start here</p><ol><li><a href="01-executive-summary.html">Executive summary</a></li><li><a href="11-visual-guide.html">Visual guide</a></li><li><a href="05-user-guide.html">User guide</a></li><li><a href="10-real-world-scenarios.html">Real-world scenarios</a></li></ol></div><div class="nav-group"><p class="nav-title">Reference</p><ol><li><a href="02-functional-spec.html">Functional specification</a></li><li><a href="03-technical-spec.html">Technical specification</a></li><li><a href="08-agent-catalog.html">Agent catalogue</a></li><li><a href="12-glossary.html">Glossary</a></li></ol></div><div class="nav-group"><p class="nav-title">Design and trust</p><ol><li><a href="04-architecture.html">Architecture</a></li><li><a href="06-security-privacy-legal.html">Security, privacy and legal</a></li><li><a href="07-independent-audit.html" aria-current="page">Independent-style audit and evidence</a></li><li><a href="test-results.html">Test results (observed)</a></li></ol></div><div class="nav-group"><p class="nav-title">Help</p><ol><li><a href="09-faq.html">FAQ</a></li><li><a href="README.html">Documentation map</a></li></ol></div></aside><div class="scrim" hidden></div><main class="content" id="content" tabindex="-1"><article class="prose"><p class="eyebrow">Design and trust</p><h1>Independent-style audit and evidence</h1>
|
|
3
2
|
<p><strong>Reviewer stance.</strong> This is a skeptical review of the v0.1.0 starter and the v0.2.0 result, written from the evidence in the repository. It was prepared by the project's own tooling and author session, so it is <strong>not independent in the third-party sense</strong> and is not a certification. Where it says "verified", a command in this repository reproduces the result.</p>
|
|
4
|
-
<h2 id="1-method">1. Method
|
|
3
|
+
<h2 id="1-method">1. Method<a class="anchor" href="#1-method" aria-label="Link to this section">#</a></h2>
|
|
5
4
|
<ol><li>Baseline the inherited starter: run its tests and demo, read all source.</li><li>Compare behaviour with the written specification (master prompt, tool catalogue, skill file).</li><li>Probe edge cases directly (timestamps, secrets, hostile text, tampering, local API).</li><li>Fix defects, add regression tests, add an automated audit that re-checks them on every run.</li><li>Publish what is not covered.</li></ol>
|
|
6
|
-
<h2 id="2-defects-found-in-the-starter-and-their-resolution">2. Defects found in the starter and their resolution
|
|
7
|
-
<div class="
|
|
8
|
-
<h2 id="3-automated-audit-20-checks">3. Automated audit (20 checks)
|
|
5
|
+
<h2 id="2-defects-found-in-the-starter-and-their-resolution">2. Defects found in the starter and their resolution<a class="anchor" href="#2-defects-found-in-the-starter-and-their-resolution" aria-label="Link to this section">#</a></h2>
|
|
6
|
+
<div class="table-wrap"><table><thead><tr><th scope="col">#</th><th scope="col">Finding</th><th scope="col">Evidence</th><th scope="col">Severity</th><th scope="col">Resolution</th></tr></thead><tbody><tr><td>F1</td><td><code>Date.parse</code> accepted impossible dates: <code>2026-02-30T00:00:00Z</code> parsed as 2026-03-02; <code>T24:00:00Z</code> rolled to next day</td><td>direct Node probe</td><td>High (timeline integrity)</td><td>Explicit calendar validation; 13 rejection tests</td></tr><tr><td>F2</td><td>Millisecond-only time; no precision field; nanosecond order lost; OTLP <code>timeUnixNano</code> of <code>0</code> treated as a real time</td><td>code review</td><td>Medium</td><td><code>timestampNs</code> BigInt string, <code>timePrecision</code>, observed-time fallback with warning</td></tr><tr><td>F3</td><td>CI ran <code>node --test tests/*.test.mjs</code>; Windows shells do not expand the glob on Node 20</td><td>CI failure report</td><td>High (broken CI)</td><td><code>node --test</code></td></tr><tr><td>F4</td><td>Symlink tests threw <code>EPERM</code> on hosts that forbid symlinks</td><td>local run</td><td>Medium</td><td>helper returns early when creation is denied</td></tr><tr><td>F5</td><td>All 20 skills were one template with a changed sentence</td><td>file comparison</td><td>Medium (misleading)</td><td>Role-specific skills; uniqueness test; necessity catalogue</td></tr><tr><td>F6</td><td>Redaction covered only bearer, a few <code>key=value</code>, email, AWS key</td><td>code review</td><td>High (privacy)</td><td>12 rules, 14-class corpus, counts, known gaps published</td></tr><tr><td>F7</td><td><code>Authorization: Bearer x</code> left a dangling <code>Bearer</code> after masking</td><td>probe</td><td>Low</td><td>single combined rule; test</td></tr><tr><td>F8</td><td>One unparseable file aborted the whole run</td><td>code review</td><td>Medium</td><td>reported as ingestion error; others continue</td></tr><tr><td>F9</td><td>Nested symlinks skipped silently</td><td>code review</td><td>Low (hidden gap)</td><td>listed in <code>skippedInputs</code> and a gap</td></tr><tr><td>F10</td><td>Hypotheses ignored errors preceding a change and unaffected services</td><td>fixture review</td><td>High (causal safety)</td><td>contradictions recorded per hypothesis</td></tr><tr><td>F11</td><td>Only temporal and generic hypotheses; no dependency, saturation, datastore, latent families</td><td>spec comparison</td><td>Medium</td><td>families added with counter-evidence</td></tr><tr><td>F12</td><td>Reports: HTML plus a Markdown file mislabelled <code>postmortem-draft.md</code>; no MD/HTML audit report</td><td>feedback</td><td>Medium</td><td><code>incident-report.md</code>, real postmortem template, <code>audit</code> writes MD, HTML and JSON</td></tr><tr><td>F13</td><td>Local API accepted any Host header</td><td>code review</td><td>Medium (DNS rebinding)</td><td>Host allowlist, timeouts</td></tr><tr><td>F14</td><td>Package marked <code>private</code>, no <code>files</code>, no repository metadata</td><td>package.json</td><td>Medium (not publishable)</td><td>publish-ready metadata, provenance</td></tr><tr><td>F15</td><td>Equal timestamps ordered by random-looking ID</td><td>code review</td><td>Low</td><td>sort by ns, file, record</td></tr></tbody></table></div>
|
|
7
|
+
<h2 id="3-automated-audit-20-checks">3. Automated audit (20 checks)<a class="anchor" href="#3-automated-audit-20-checks" aria-label="Link to this section">#</a></h2>
|
|
9
8
|
<p>Run <code>npx incidentsutra audit --out audit</code>. The committed run is in <a href="evidence/audit/audit-report.html"><code>evidence/audit/audit-report.html</code></a> (also <code>.md</code>, <code>.json</code>). Latest committed verdict: <strong>PASS_WITH_NOTES</strong> (19 pass, 1 skipped, 0 fail). The skipped check (A13, symlinks) is skipped on Windows hosts that forbid symlink creation; Linux and macOS CI exercise it.</p>
|
|
10
|
-
<div class="
|
|
11
|
-
<
|
|
9
|
+
<div class="table-wrap"><table><thead><tr><th scope="col">Area</th><th scope="col">Checks</th></tr></thead><tbody><tr><td>agents</td><td>A01 manifest, skills and role files agree; A02 guardrail wording in all 20</td></tr><tr><td>contracts</td><td>A03 report, events and agent contract validate against schemas</td></tr><tr><td>determinism</td><td>A04 identical bytes for identical input</td></tr><tr><td>acceptance</td><td>A05 time zones, correlation-only, unknown metrics, claims cite sources</td></tr><tr><td>privacy</td><td>A06 14 secret classes never reach any output</td></tr><tr><td>security</td><td>A07 hostile markup, A08 injection corpus, A09 static scan, A11 local API</td></tr><tr><td>integrity</td><td>A10 six tamper mutations detected</td></tr><tr><td>ingest</td><td>A12 limits and strict timestamps, A13 symlinks</td></tr><tr><td>algorithm</td><td>A14 26-case benchmark</td></tr><tr><td>legal</td><td>A15 licence and notices, A16 overclaim scan</td></tr><tr><td>secrets</td><td>A17 repository secret scan</td></tr><tr><td>supply chain</td><td>A18 zero dependencies</td></tr><tr><td>safety</td><td>A19 read-only policy, A20 redaction helper</td></tr></tbody></table></div>
|
|
10
|
+
<figure class="chart"><h4>Self-audit: 19 of 20 checks pass, 1 skipped, 0 failed</h4><div class="bars"><div class="bar"><span class="lab">agents</span><div class="trk"><div class="fill ok" style="width:67%"></div></div><span class="val">2/2</span></div><div class="bar"><span class="lab">contracts</span><div class="trk"><div class="fill ok" style="width:33%"></div></div><span class="val">1/1</span></div><div class="bar"><span class="lab">determinism</span><div class="trk"><div class="fill ok" style="width:33%"></div></div><span class="val">1/1</span></div><div class="bar"><span class="lab">acceptance</span><div class="trk"><div class="fill ok" style="width:33%"></div></div><span class="val">1/1</span></div><div class="bar"><span class="lab">privacy</span><div class="trk"><div class="fill ok" style="width:33%"></div></div><span class="val">1/1</span></div><div class="bar"><span class="lab">security</span><div class="trk"><div class="fill ok" style="width:100%"></div></div><span class="val">3/3</span></div><div class="bar"><span class="lab">integrity</span><div class="trk"><div class="fill ok" style="width:33%"></div></div><span class="val">1/1</span></div><div class="bar"><span class="lab">server</span><div class="trk"><div class="fill ok" style="width:33%"></div></div><span class="val">1/1</span></div><div class="bar"><span class="lab">ingest</span><div class="trk"><div class="fill warn" style="width:67%"></div></div><span class="val">1/2</span></div><div class="bar"><span class="lab">algorithm</span><div class="trk"><div class="fill ok" style="width:33%"></div></div><span class="val">1/1</span></div><div class="bar"><span class="lab">legal</span><div class="trk"><div class="fill ok" style="width:67%"></div></div><span class="val">2/2</span></div><div class="bar"><span class="lab">secrets</span><div class="trk"><div class="fill ok" style="width:33%"></div></div><span class="val">1/1</span></div><div class="bar"><span class="lab">supply-chain</span><div class="trk"><div class="fill ok" style="width:33%"></div></div><span class="val">1/1</span></div><div class="bar"><span class="lab">safety</span><div class="trk"><div class="fill ok" style="width:67%"></div></div><span class="val">2/2</span></div></div><p class="note">automated self-audit by the project; not a third-party certification. Verdict PASS_WITH_NOTES. Bar length is the number of checks in the area.</p></figure>
|
|
11
|
+
<h2 id="4-benchmark">4. Benchmark<a class="anchor" href="#4-benchmark" aria-label="Link to this section">#</a></h2>
|
|
12
12
|
<p>26 synthetic incident families, 36 expectations, all pass on the committed run (<a href="evidence/benchmark.json"><code>evidence/benchmark.json</code></a>). <strong>Caveat:</strong> labels are written by the author and not independently validated. The result shows internal consistency, not accuracy on real incidents. No precision or recall figure is claimed.</p>
|
|
13
|
-
<
|
|
13
|
+
<figure class="chart"><h4>Synthetic benchmark: 26 of 26 cases, 36 of 36 expectations</h4><div class="chips"><span title="Errors begin after a deployment">✓ deploy-then-errors</span><span title="Errors precede the deployment">✓ errors-before-deploy</span><span title="Only an unrelated service deployed">✓ unrelated-deploy</span><span title="+05:30 and Z events sort by instant">✓ mixed-timezones</span><span title="Offset crosses the UTC date line">✓ midnight-rollover</span><span title="No metrics supplied">✓ no-metrics</span><span title="No trace IDs supplied">✓ no-traces</span><span title="Only informational events">✓ no-errors</span><span title="Upstream timeout message">✓ dependency-timeout</span><span title="CPU and memory pressure">✓ saturation</span><span title="Database pool exhaustion">✓ datastore</span><span title="Ten alerts in two minutes">✓ alert-storm</span><span title="Identical timestamps keep a stable order">✓ identical-timestamps</span><span title="Deployment 60 minutes before errors">✓ deploy-outside-window</span><span title="Deployment only after errors">✓ deploy-after-errors</span><span title="Two services fail">✓ multi-service</span><span title="Nanosecond OTel timestamps keep sub-ms order">✓ otel-nanoseconds</span><span title="Rollback counts as a change">✓ rollback-event</span><span title="Log tells the assistant to run commands">✓ prompt-injection</span><span title="Unicode and emoji service names">✓ unicode-service</span><span title="Metrics without incident signals">✓ metric-only</span><span title="Critical severity without error type">✓ severity-only</span><span title="2000 events analyse within budget">✓ volume</span><span title="Narrow window excludes a 10 minute gap">✓ window-parameter</span><span title="Errors with no change records">✓ latent-defect</span><span title="Deployment and first error share a timestamp">✓ simultaneous</span></div><p class="note">self-authored synthetic labels; not independently validated; measures internal consistency, not real-world accuracy</p></figure>
|
|
14
|
+
<h2 id="5-tests">5. Tests<a class="anchor" href="#5-tests" aria-label="Link to this section">#</a></h2>
|
|
14
15
|
<p>See <a href="test-results.html">test-results.md</a>: machine-written results from <code>npm run test:report</code>, including Node version, platform and commit. CI additionally runs the suite on Ubuntu and Windows (Node 20, 22, 24) and macOS (Node 24).</p>
|
|
15
|
-
<
|
|
16
|
+
<figure class="chart"><h4>Automated tests: 200 of 200 pass</h4><div class="stack" role="img" aria-label="200 passed, 0 skipped, 0 failed"><i style="width:100%;background:var(--ok)"></i><i style="width:0%;background:var(--warn)"></i><i style="width:0%;background:var(--bad)"></i></div><p class="legend"><span><b style="background:var(--ok)"></b>200 passed</span><span><b style="background:var(--warn)"></b>0 skipped</span><span><b style="background:var(--bad)"></b>0 failed</span></p><p class="note">Recorded with Node v24.15.0 on win32. Two symlink tests return early when the host forbids symlink creation (Windows without Developer Mode); they run on Linux and macOS CI.</p></figure>
|
|
17
|
+
<h2 id="6-sample-proof">6. Sample proof<a class="anchor" href="#6-sample-proof" aria-label="Link to this section">#</a></h2>
|
|
16
18
|
<p><a href="evidence/samples/incident-report.html"><code>evidence/samples/incident-report.html</code></a> is a full report from the synthetic fixture. It shows a deployment 2.7.0, an error before deployment 2.7.1, an alert, a dependency warning that appears <strong>after</strong> onset, and a metric rising from 0.1% to 8% errors. Hypotheses remain unconfirmed; contradictions are listed.</p>
|
|
17
|
-
<h2 id="7-what-was-not-tested-read-this">7. What was not tested (read this)
|
|
19
|
+
<h2 id="7-what-was-not-tested-read-this">7. What was not tested (read this)<a class="anchor" href="#7-what-was-not-tested-read-this" aria-label="Link to this section">#</a></h2>
|
|
18
20
|
<ul><li>Real production telemetry of any kind.</li><li>Live connectors (none exist).</li><li>Native skill discovery and activation in Claude Code, Cursor, Codex, Gemini CLI and Copilot.</li><li>Redaction false-negative rate on real data. Only a synthetic corpus was used.</li><li>Hypothesis usefulness to responders (no user study).</li><li>Performance beyond the 5,000-event cap.</li><li>Third-party penetration test or code audit.</li></ul>
|
|
19
|
-
<h2 id="8-residual-risks">8. Residual risks
|
|
20
|
-
<div class="
|
|
21
|
-
<h2 id="9-verdict">9. Verdict
|
|
22
|
-
<p>For its stated scope (offline, read-only evidence assistant), the implementation meets its own acceptance criteria and has no known open defect after the fixes above. Suitability for production incident work depends on your data hygiene and process. A third-party review is recommended before any networked or multi-user extension.</p><footer>Apache-2.0 · Created by Vatsal Shah · Generated from <code>07-independent-audit.md</code>. Advisory only; this documentation makes no root-cause or production-safety claim.</footer></main></div></body></html>
|
|
21
|
+
<h2 id="8-residual-risks">8. Residual risks<a class="anchor" href="#8-residual-risks" aria-label="Link to this section">#</a></h2>
|
|
22
|
+
<div class="table-wrap"><table><thead><tr><th scope="col">Risk</th><th scope="col">Effect</th><th scope="col">Mitigation</th></tr></thead><tbody><tr><td>Redaction misses a secret</td><td>Leak in a shared report</td><td>sanitize upstream; review before sharing</td></tr><tr><td>Keyword classification misses unusual wording</td><td>Missing hypothesis family</td><td>the unknown family is always present; read the gaps</td></tr><tr><td>Over-reading hypotheses</td><td>Wrong fix</td><td>wording ("may be related"), legend, human review status</td></tr><tr><td>Digest forged</td><td>Undetected edit</td><td>do not treat as a signature; compare source hashes</td></tr><tr><td>Local token disclosure</td><td>Local read of report</td><td>loopback only, short-lived token</td></tr></tbody></table></div>
|
|
23
|
+
<h2 id="9-verdict">9. Verdict<a class="anchor" href="#9-verdict" aria-label="Link to this section">#</a></h2>
|
|
24
|
+
<p>For its stated scope (offline, read-only evidence assistant), the implementation meets its own acceptance criteria and has no known open defect after the fixes above. Suitability for production incident work depends on your data hygiene and process. A third-party review is recommended before any networked or multi-user extension.</p><p class="edit"><a href="https://github.com/shahvatsalofficial/IncidentSutra-AI/blob/main/documents/IncidentSutra-AI/07-independent-audit.md" rel="noopener">View this page source on GitHub</a></p><nav class="pager" aria-label="Pagination"><a class="prev" href="06-security-privacy-legal.html"><span>Previous</span><b>Security, privacy and legal</b></a><a class="next" href="test-results.html"><span>Next</span><b>Test results (observed)</b></a></nav></article></main><nav class="toc" aria-label="On this page"><h2>On this page</h2><ul><li class="l2"><a href="#1-method">1. Method</a></li><li class="l2"><a href="#2-defects-found-in-the-starter-and-their-resolution">2. Defects found in the starter and their resolution</a></li><li class="l2"><a href="#3-automated-audit-20-checks">3. Automated audit (20 checks)</a></li><li class="l2"><a href="#4-benchmark">4. Benchmark</a></li><li class="l2"><a href="#5-tests">5. Tests</a></li><li class="l2"><a href="#6-sample-proof">6. Sample proof</a></li><li class="l2"><a href="#7-what-was-not-tested-read-this">7. What was not tested (read this)</a></li><li class="l2"><a href="#8-residual-risks">8. Residual risks</a></li><li class="l2"><a href="#9-verdict">9. Verdict</a></li></ul></nav></div><footer class="site-foot"><div class="foot-in"><div class="foot-brand"><a class="brand" href="index.html"><span class="logo" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 32 32"><path d="M4 17h6l3-9 6 16 3-7h6" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg></span><span class="brand-name">Incident<b>Sutra</b> AI</span></a><p>Observe precisely. Reason cautiously. Recover responsibly.</p><p class="fine">Created by Vatsal Shah. Apache-2.0.</p></div><div><p class="foot-title">Start</p><ul><li><a href="01-executive-summary.html">Overview</a></li><li><a href="05-user-guide.html">User guide</a></li><li><a href="10-real-world-scenarios.html">Scenarios</a></li></ul></div><div><p class="foot-title">Reference</p><ul><li><a href="02-functional-spec.html">Functional spec</a></li><li><a href="03-technical-spec.html">Technical spec</a></li><li><a href="12-glossary.html">Glossary</a></li></ul></div><div><p class="foot-title">Trust</p><ul><li><a href="06-security-privacy-legal.html">Security and legal</a></li><li><a href="07-independent-audit.html">Audit</a></li><li><a href="test-results.html">Test results</a></li></ul></div><div><p class="foot-title">Project</p><ul><li><a href="https://github.com/shahvatsalofficial/IncidentSutra-AI" rel="noopener">GitHub</a></li><li><a href="https://www.npmjs.com/package/incidentsutra" rel="noopener">npm</a></li><li><a href="https://github.com/shahvatsalofficial/IncidentSutra-AI/blob/main/CHANGELOG.md" rel="noopener">Changelog</a></li></ul></div></div><p class="legal">IncidentSutra AI 0.2.2. Advisory output for people: it does not determine root cause and is not legal, compliance or security certification. The audit is a self-audit. Product names belong to their owners; no endorsement is implied.</p></footer><script>window.__DOCS_INDEX__=[{"t":"Executive summary","u":"01-executive-summary.html","x":"Executive summary The problem During an outage, teams build a story fast: \"the 14:02 deploy broke it\". Common failure modes are over-trusting deploy timing, mixing time zones, reading missing data as \"all clear\", and writing postmortems from memory. The cost is longer incidents, misdirected fixes and blame. What IncidentSutra AI does IncidentSutra AI is a command-line tool and a set of 20 agent skills. You give it exported, sanitized logs, metrics, alerts and deployment records. It returns: 1. an auditable UTC timeline where every line points to a source file, record and SHA-256; 2. several competing hypotheses , each with what must be true, what supports it, what contradicts it and what would disprove it; 3. an explicit list of unknowns missing metrics, traces, change records and checks that were not run ; 4. a blameless postmortem draft with human-only sections left open; 5. reports as HTML, Markdown and JSON , and an automated audit report of the tool itself. What makes it different Typical tooling IncidentSutra AI --- --- Names one probable cause Keeps several unconfirmed causes and refuses to confirm any Hides gaps Reports gaps as unknown Needs cloud and keys Offline, zero dependencies, no API key Can act on production Cannot: no network or process execution in product code Claims accuracy Publishes limits; benchmark labelled synthetic and self-authored Business value - Faster, safer triage : a defensible timeline in seconds from exports you already have. - Lower risk : nothing leaves the machine; no production credentials are involved. - Better learning : postmortems start from evidence, not recollection, and stay blameless. - Auditability : report integrity digest, source re-hash verify --input , provenance manifest. - Cost : free, Apache-2.0, no vendor lock-in. Trust summary Question Answer Where to verify --- --- --- Does it run? Yes: automated tests on Windows, Linux, macOS in CI test results test-results.md Does it leak secrets? 14 synthetic secret classes masked; known gaps published 06 06-security-privacy-legal.md , audit A06 Can hostile logs steer it? 6 injection payloads change nothing audit A08 Can it touch production? No code path exists audit A09 Is it independently certified? No. Self-audit only 07 07-independent-audit.md Status and limits Shipped: file-based analysis, reports, verification, audit, benchmark, loopback API, skill installer. Planned: live connectors Prometheus, Loki, Grafana, Sentry, OTel , calibrated scoring, team server,"},{"t":"Visual guide","u":"11-visual-guide.html","x":"Visual guide The whole product in pictures. If you read one page, read this one. From files to a decision You export a small window of data. Everything else happens on your machine. A night on call Four kinds of statement Every sentence in a report belongs to exactly one of these. Kind Meaning Example --- --- --- Observed In an imported record, with an evidence ID \"checkout logged a timeout at 19:49 UTC\" Inferred A hypothesis built from observations \"The release may be related to the errors\" Unknown Data that was not supplied \"No metrics: impact cannot be measured\" Not run A check nobody executed \"Compare error rate before and after the release\" Why time zones matter How hypotheses are built What happens to your files How the parts fit Where trust ends The agent roles The numbers behind it"},{"t":"User guide","u":"05-user-guide.html","x":"User guide 1. Install Nothing to install for a one-off run: Or clone: git clone https://github.com/shahvatsalofficial/IncidentSutra-AI , then npm run doctor . Node.js 20 or newer is required. No API key, no network. 2. Prepare your data 1. Export a small, relevant window of logs, alerts, metrics and deployment records JSON, JSONL or CSV . 2. Sanitize upstream. Remove credentials and personal data at the source. Built-in redaction is a safety net only. 3. Make sure every record has an RFC3339 timestamp with an offset, for example 2026-11-10T19:52:00Z or 2026-11-11T01:22:00+05:30 . 4. Put the files in one folder. Do not include symlinks. Example JSONL: 3. Analyze Add --window-minutes 30 to widen the change-to-error window 1 to 120, default 15 . Add --synthetic for demos so the HTML shows a banner. Open report/incident-report.html . Read in this order: Summary, Timeline, Hypotheses, Evidence gaps , Ingestion quality. 4. How to read the report Chip Meaning --- --- observed Present in an imported record; has an evidence ID inferred A hypothesis from observed records; never confirmed unknown Data not supplied; absence is not evidence of health not run A check deliberately not executed For each hypothesis ask: What would have to be true? What contradicts it? Which read-only check separates it from the others? Click an evidence ID to jump to the timeline row. 5. Verify before sharing Exit code 2 means a changed report or changed source files. The digest catches accidents, not a determined forger. 6. Check what was masked Counts only. Then read the HTML yourself for names, addresses, IPv6 and unprefixed secrets, which are not masked. 7. Write the postmortem Open postmortem-draft.md . Fill every TODO human : impact, what responders did, lessons, action items with owners. Keep it blameless. 8. Compare two runs 9. Use the skills in your AI coding tool Hosts: claude , cursor , codex , gemini , copilot , agents . Existing files are never overwritten. Ask the assistant to start with incidentsutra-prime . Whether the host auto-discovers the skills depends on its version and is not verified here. 10. Read the report over HTTP optional, local Loopback only, GET only. Do not expose it. Troubleshooting Symptom Cause and fix --- --- Timestamp must be RFC3339 with explicit Z or +/-HH:MM timezone Add an offset to the record. The tool never guesses a zone Invalid calendar date The date does not exist for example Feb 30 . Fix the source Input too large Split the file under 2 MB Ev"},{"t":"Real-world scenarios","u":"10-real-world-scenarios.html","x":"Real-world scenarios Six situations on-call engineers recognise. Each one is a runnable sample in fixtures/scenarios/ : the timeline, hypotheses and gaps shown on the website are produced by running the tool on that file when the site is built. The stories are fictional; the outputs are real. Run any of them yourself: Scenario 1: \"It was the deploy!\" 02:10, war room. Orders are failing. Release 4.2.0 shipped a few minutes ago. Someone is already typing the rollback command. What changes the conversation: the same error appears at 10:02, four minutes before the 10:06 release. The report lists it as counter-evidence and offers a pre-existing defect as a competing explanation. A rollback may still be reasonable, but nobody should expect it to be the whole answer. Usually without it: the rollback runs, errors continue, and the real defect is found an hour later. Scenario 2: The time zone trap The CI system logs in India time. The application logs in UTC. Read side by side, the deployment seems to come five hours after the errors started. What changes the conversation: both are converted to UTC. The deployment at 01:15 +05:30 is 19:45 UTC, four minutes before the first error. The report flags mixed offsets and says clock skew was not measured. Scenario 3: The provider is slow, but search just shipped 14:03, checkout times out. The only deployment nearby belongs to the search team, and they are being asked to roll back. What changes the conversation: a payment-provider latency warning appears three minutes before the first checkout error, so a dependency hypothesis is raised with that event as support. Search is not an erroring service, so no change hypothesis is built against its release. Scenario 4: The connection pool Monday 08:14, logins fail. A release went out 44 minutes earlier. What changes the conversation: the release falls outside the 15-minute correlation window, so it is not linked automatically. A datastore hypothesis cites the pool-exhaustion and lock messages, and the metric series shows connections moving from 40 to 200. Widen the window with --window-minutes 60 if your releases take longer to show effects. Scenario 5: The 3 a.m. alert storm Pages every few seconds. Logs contain a customer email address and an authorization header. What changes the conversation: the burst is grouped as one storm, the first signal out of memory is easy to find, a saturation hypothesis is raised, and the email address and token are masked before anything is writte"},{"t":"Functional specification","u":"02-functional-spec.html","x":"Functional specification Users On-call SREs, incident commanders, release engineers, support escalation, students of observability, open-source maintainers. Commands Command Purpose Output Exit codes --- --- --- --- analyze --input \u003cfile or dir --out \u003cdir --window-minutes N --synthetic Build the evidence report 8 files, see below 0 / 1 verify --report \u003cjson --input \u003ctelemetry Check integrity, references, guard fields, optionally re-hash sources JSON verdict 0 / 2 compare --baseline \u003ca --candidate \u003cb Diff two verified reports JSON diff 0 / 1 redact --input \u003cfile or dir Show counts of masked values, never the values JSON counts 0 / 1 audit --out \u003cdir Run 20 automated checks audit-report.html , .md , .json 0 / 2 benchmark --out \u003cdir Run 26 synthetic case families benchmark.json 0 / 2 skills list , skills install --host H --project D Project-local Agent Skills file copies 0 / 1 serve --report \u003cjson --port N Loopback read-only API; needs INCIDENTSUTRA TOKEN of 24 or more characters HTTP JSON 0 / 1 doctor , --version , help Environment, version, usage text/JSON 0 Inputs JSON array, {events} , {records} or OTLP resourceLogs , JSONL/NDJSON and CSV. Required: timestamp or time , timeISO , OTLP timeUnixNano . Recognised fields: type / eventType / eventName , service / serviceName , severity / severityText , message / body , traceId , spanId , deploymentId / releaseId , environment , value / metricValue , attributes . Unknown scalar columns become dimensions . Limits: 2 MB per file, 5,000 events, 100 files, nesting depth 8, 80 keys per object. Symlinks are never followed. Unsupported file types are skipped and reported. Time rules: RFC3339 with Z or ±HH:MM only. Invalid calendar dates, hour 24, second 60 and offsets beyond 23:59 are rejected per record. Event time wins over collector observed time; observed-only events carry a warning. OTLP timeUnixNano of 0 means unset. Sub-millisecond precision is kept in timestampNs . Outputs of analyze File Content --- --- incident-report.html Single-file report: summary, SVG and table timeline, hypotheses, gaps, quality, sources, limits. No scripts, strict CSP, light/dark, print styles incident-report.md Same content as Markdown incident-report.json Machine contract schema incidentsutra.report.v2 postmortem-draft.md Blameless template; facts from evidence, TODO human elsewhere hypothesis-register.md One block per hypothesis with reviewer decision placeholder normalized-events.jsonl One normalised event per line schema v2 inciden"},{"t":"Technical specification","u":"03-technical-spec.html","x":"Technical specification Platform Node.js 20, 22 or 24. ES modules .mjs . Zero runtime and dev dependencies; only node: built-ins fs , path , crypto , http , url , os , child process in tests and scripts only . Repository layout Path Responsibility --- --- packages/core/ingest.mjs format parsing, strict time, normalisation, redaction, limits, dedup, ordering packages/core/analyze.mjs classification, hypotheses, report build, verifyReport , verifySources , compareReports packages/core/benchmark.mjs 26 synthetic cases and runner packages/core/audit.mjs 20 automated checks, corpora packages/core/schema.mjs minimal JSON Schema validator for project contracts packages/core/meta.mjs tool name, version, rule version, schema ids packages/reporter/ Markdown, HTML, postmortem, register and audit renderers packages/server/ loopback read-only API packages/cli/index.mjs command dispatch skills/ , agents/ generated by scripts/build-skills.mjs schemas/ incident-event , incident-report , agent-output JSON Schema 2020-12 policies/default.json read-only policy tests/ node:test suites Event schema v2 summary id evt + 20 hex , schema , timestamp UTC ms ISO , timestampNs integer string , timePrecision s / ms / us / ns , timeBasis event / observed , originalTimestamp , originalOffset , observedTimestamp? , type , service , environment , severity , message , traceId , spanId , deployment , releaseId , metricValue? , attributes , dimensions , confidenceClass: observed , sensitivityClass , ingestionWarnings , source{file, record, sha256} . ID: sha256 sourceSha256:file:record:isoTime first 20 hex. Stable across runs and machines. Ordering timestamp string, then timestampNs as BigInt, then source file name, then record number, then ID. Deterministic for identical input. Time parsing Regex for RFC3339, then explicit validation: month 1-12, day within month including leap years, hour 0-23, minute 0-59, second 0-59, offset hours 0-23 and minutes 0-59. Epoch milliseconds via Date.UTC minus offset; fractional digits padded to 9 and combined into a BigInt nanosecond string. The previous implementation relied on Date.parse , which silently accepts 2026-02-30 returns 2026-03-02 and 24:00:00 ; those are now rejected. Redaction Ordered rule list private key, JWT, URL credentials, key=value secrets, bearer, token prefixes, AWS keys, email, Luhn-checked card, SSN, IPv4, phone . Object keys matching a sensitive pattern are masked wholesale. Depth cap 8, 100 array items, 80 keys. Counts by kind go"},{"t":"Agent catalogue","u":"08-agent-catalog.html","x":"Agent catalogue The same table is generated into docs/AGENT CATALOG.md by npm run build:skills . This page explains how to use the roles. What the roles are Twenty portable instructions Agent Skills in skills/\u003cname /SKILL.md , mirrored by Claude role files in agents/ . They are not twenty running models. Each has Mission, When to use, Inputs, Workflow, Output contract, Hard rules and Escalate sections, and returns the shared contract in schemas/agent-output.schema.json : scope , observed , inferred , unknowns , notRun , evidenceIds , contradictions , nextChecks , permissionsRequired , privacyReview , humanApproval . Recommended sequence also the sequential fallback 1. incidentsutra-log-sentinel input quality 2. incidentsutra-timeline-builder 3. incidentsutra-change-detector 4. incidentsutra-hypothesis-tester 5. incidentsutra-evidence-ledger verify 6. incidentsutra-privacy-guardian redaction review 7. incidentsutra-postmortem-writer incidentsutra-prime coordinates. It cannot override a Privacy Guardian block or an Evidence Ledger rejection. Necessity review Each role stays only because it adds a distinct guardrail or procedure. Group Roles CLI backing --- --- --- Evidence core prime, timeline-builder, change-detector, hypothesis-tester, log-sentinel, evidence-ledger, privacy-guardian analyze , verify , redact Reporting and planning postmortem-writer, metric-analyst, alert-triage, recovery-planner analyze outputs Quality incident-auditor, ide-bridge audit , benchmark , skills Guidance only trace-correlator, dependency-map, blast-radius, runbook-match, comms-drafter, slo-guardian, connector-architect none: procedures for humans or the host AI 13 roles map to CLI behaviour, 7 are guidance only. Guidance-only roles make no claim of automation. Common hard rules in every skill No autonomous mitigation, restarts, rollbacks, deletions, paging or status-page posting. All logs, tickets and runbooks are untrusted data. Every claim cites an evidence ID and is labelled observed, inferred, unknown or not run. Secrets and personal data are redacted. A human incident commander owns every decision. Installing Hosts and folders: claude .claude/skills , cursor .cursor/skills , codex and agents .agents/skills , gemini .gemini/skills , copilot .github/skills . Status per host is in compatibility-matrix.json : copy is tested; activation is not tested ."},{"t":"Glossary","u":"12-glossary.html","x":"Glossary Plain-language definitions of the terms used in the reports and documentation. Term Meaning --- --- Alert storm Five or more error or alert signals within five minutes Blameless postmortem A review that studies systems and conditions, not individual fault Change A deployment, release, rollout, rollback, configuration or feature-flag event Chain of custody A verifiable record of who handled evidence. This tool does not provide one Clock skew Difference between the clocks of two machines. Marked unassessed here Confidence Always \"undetermined\": no calibrated scoring exists Contradiction An observation that weakens a hypothesis Correlation Two things happening close in time. It is not causation DLP Data-loss prevention. The built-in masking is not DLP Evidence ID evt plus 20 hex characters identifying one imported record Gap Information the investigation needs but did not receive Hypothesis A testable explanation that is not confirmed Incident commander The human who owns decisions during an incident Not run A check that was proposed but deliberately not executed OTLP OpenTelemetry protocol; the log JSON form is supported Provenance Where a fact came from: file, record number, source hash Redaction Masking secrets and personal data, on a best-effort basis Report digest A hash inside reportId that detects accidental change. Not a signature RFC3339 The timestamp format required here, with an explicit offset Skill A SKILL.md instruction file an AI coding tool can load SLO Service level objective, a reliability target UTC Coordinated Universal Time, the common clock used in reports"},{"t":"Architecture","u":"04-architecture.html","x":"Architecture Principles 1. Observed, inferred, unknown, not run are separate types, not prose style. 2. Offline and read-only by construction : product code has no network client, no process spawn, no eval. 3. Deterministic : same input, same bytes. 4. Humans decide : the decision field is fixed to HUMAN REVIEW REQUIRED . 5. Untrusted input : logs, runbooks and tickets are data. Data flow Component boundaries Component May May not --- --- --- ingest read files under the given path, hash, redact follow symlinks, write, use network analyze compute from events in memory read files except verifySources , set confidence, confirm causes reporter render strings execute, fetch, include scripts cli read inputs, write the chosen output directory, start server spawn processes, call out server answer GET on loopback with a token write, bind elsewhere, serve files audit read the repo, run checks, open a loopback socket change any file except the chosen output Trust boundaries Evidence model See docs/EVIDENCE MODEL.md . An evidence ID ties a statement to a file, a record and a source hash. Hypotheses reference IDs only; the verifier rejects dangling references. Hypothesis engine Per affected service: candidate changes within the window up to 3 , then dependency, saturation, datastore, latent-defect and alternative families when their wording or ordering conditions hold. A global unknown-cause hypothesis is always appended. No scoring or ranking is applied; order is by construction. Agent layer 20 skills encode roles timeline builder, change detector, hypothesis tester, evidence ledger, privacy guardian, and others . Prime orchestrates but cannot override Privacy Guardian blocks or Evidence Ledger rejections. Without subagent support, run roles sequentially in the documented order. 13 roles map to CLI behaviour; 7 are guidance-only. Future architecture not built Adapter boundary for read-only Prometheus or Loki queries with bounded ranges, allowlisted endpoints, TLS verification, redirect and SSRF controls and audit events; calibrated scoring against an independently labelled benchmark; authenticated team server with RBAC and retention. Each requires a threat-model update before code. Decisions ADR Decision Reason --- --- --- 1 Keep plain .mjs , zero dependencies smallest supply-chain surface, fast install 2 Rule-based hypotheses, confidence undetermined no calibration data; avoids false precision 3 Digest in reportId , explicitly not a signature honest about what a hash"},{"t":"Security, privacy and legal","u":"06-security-privacy-legal.html","x":"Security, privacy and legal This page describes how the software behaves. It is not legal advice and not a compliance certification. Have your own counsel and security team review any use with regulated data. 1. Security posture Area Behaviour Verification --- --- --- Network Product code opens no outbound connection audit A09 static scan Process execution None audit A09 Dynamic code No eval or new Function audit A09 Dependencies 0 runtime and dev audit A18 Input handling size, count, depth caps; symlinks never followed audit A12, A13, ingest tests Output safety HTML escaped; no scripts; CSP; Markdown cells sanitised audit A07 Prompt injection Log text is data; decision fixed; verifier blocks \"confirmed\" audit A08 Local API loopback, token, GET only, Host check audit A11 Supply chain npm provenance through OIDC trusted publishing; no stored npm token release.yml Full list of threats and residual risks: docs/THREAT MODEL.md . 2. Privacy - Data flow : input files are read locally; outputs are written only to the directory you choose. No telemetry, analytics or remote calls. - Redaction best effort masks: private keys, JWTs, URL credentials, key=value secrets, bearer tokens, common API-key prefixes, AWS keys, emails, IPv4, Luhn-valid card numbers, US SSNs, US-style and + phone numbers. - Not masked : IPv6, personal names, street addresses, secrets without a recognisable prefix or key name, non-US phone and national IDs, secrets split across fields. These are listed in every audit report. - Retention : the tool keeps nothing between runs. Reports contain redacted text and source file hashes, not raw files. - Personal data : you remain the controller or processor of anything you feed in. Sanitize at the source. If you suspect a real credential reached a report, rotate it. - GDPR, HIPAA, PCI : the software makes no compliance claim. Local-only processing can simplify data-transfer analysis, but that conclusion is yours to reach. 3. Licence Apache License 2.0 LICENSE , verified by audit A15 . You may use, modify and distribute it commercially, keep the licence and NOTICE, and mark changes. It includes a patent grant. Sections 7 and 8 disclaim warranty and limit liability: the software is provided as is . 4. Third-party content and trademarks No third-party code is bundled THIRD PARTY NOTICES.md . OpenTelemetry, Prometheus, Grafana, Loki, Sentry, Claude, Cursor, Codex, Gemini, GitHub Copilot and other names are trademarks of their owners and appear only as referen"},{"t":"Independent-style audit and evidence","u":"07-independent-audit.html","x":"Independent-style audit and evidence Reviewer stance. This is a skeptical review of the v0.1.0 starter and the v0.2.0 result, written from the evidence in the repository. It was prepared by the project's own tooling and author session, so it is not independent in the third-party sense and is not a certification. Where it says \"verified\", a command in this repository reproduces the result. 1. Method 1. Baseline the inherited starter: run its tests and demo, read all source. 2. Compare behaviour with the written specification master prompt, tool catalogue, skill file . 3. Probe edge cases directly timestamps, secrets, hostile text, tampering, local API . 4. Fix defects, add regression tests, add an automated audit that re-checks them on every run. 5. Publish what is not covered. 2. Defects found in the starter and their resolution Finding Evidence Severity Resolution --- --- --- --- --- F1 Date.parse accepted impossible dates: 2026-02-30T00:00:00Z parsed as 2026-03-02; T24:00:00Z rolled to next day direct Node probe High timeline integrity Explicit calendar validation; 13 rejection tests F2 Millisecond-only time; no precision field; nanosecond order lost; OTLP timeUnixNano of 0 treated as a real time code review Medium timestampNs BigInt string, timePrecision , observed-time fallback with warning F3 CI ran node --test tests/ .test.mjs ; Windows shells do not expand the glob on Node 20 CI failure report High broken CI node --test F4 Symlink tests threw EPERM on hosts that forbid symlinks local run Medium helper returns early when creation is denied F5 All 20 skills were one template with a changed sentence file comparison Medium misleading Role-specific skills; uniqueness test; necessity catalogue F6 Redaction covered only bearer, a few key=value , email, AWS key code review High privacy 12 rules, 14-class corpus, counts, known gaps published F7 Authorization: Bearer x left a dangling Bearer after masking probe Low single combined rule; test F8 One unparseable file aborted the whole run code review Medium reported as ingestion error; others continue F9 Nested symlinks skipped silently code review Low hidden gap listed in skippedInputs and a gap F10 Hypotheses ignored errors preceding a change and unaffected services fixture review High causal safety contradictions recorded per hypothesis F11 Only temporal and generic hypotheses; no dependency, saturation, datastore, latent families spec comparison Medium families added with counter-evidence F12 Reports: HTML "},{"t":"Test results (observed)","u":"test-results.html","x":"Test results observed Command: node --test Total Pass Fail Skipped Exit code --- --- --- --- --- 200 200 0 0 0 Environment: Node v24.15.0, win32/x64, commit c717a87 . Skips: Two symlink tests return early when the host forbids symlink creation Windows without Developer Mode ; they run on Linux and macOS CI. Regenerate with npm run test:report . This file is machine-written from the real run; it is not edited by hand. Cases - PASS — creates a timestamp-sorted observed timeline - PASS — never claims causality: all hypotheses unconfirmed, confidence undetermined, review pending - PASS — a deployment near the alert stays correlation only - PASS — pre-existing error before the later deployment is recorded as counter-evidence - PASS — fixture offers at least two competing explanation families - PASS — dependency signal after onset is flagged as possible effect - PASS — each hypothesis has falsifiable content and unexecuted read-only checks - PASS — absent metrics are unknown, not fabricated - PASS — missing traces and changes are flagged - PASS — mixed offsets produce an explicit clock-skew gap - PASS — numeric metric series are summarised from observed values only - PASS — no production operation is represented as run - PASS — reusable agent contract is complete and validates - PASS — claims separate observed, inferred, unknown and not-run - PASS — every hypothesis reference exists in the event evidence - PASS — report validates against the v2 schema - PASS — stable report IDs for identical input - PASS — report ID changes when the window changes - PASS — verification fails on summary tamper - PASS — verification fails on unknown evidence reference - PASS — verification fails on forced confirmed root cause - PASS — verification fails on approved decision - PASS — verification fails on claimed production mutation - PASS — verification fails on forged event text - PASS — verification fails on timeline pointing nowhere - PASS — verification rejects non-reports - PASS — legacy v1 schema id is still recognised - PASS — source re-hash passes for untouched input and fails for changed input - PASS — markdown report has evidence IDs, human approval and legend - PASS — postmortem draft is blameless and leaves human sections open - PASS — hypothesis register lists reviewer decision placeholders - PASS — HTML report escapes untrusted text and carries a CSP with no script - PASS — HTML report is accessible: lang, viewport, landmarks, svg title, skip of colour-only meaning -"},{"t":"FAQ","u":"09-faq.html","x":"FAQ Basics What is IncidentSutra AI? An offline CLI plus 20 agent skills that turn exported incident data into an evidence-backed timeline, competing hypotheses and a postmortem draft. Does it find the root cause? No. It lists plausible, falsifiable explanations with counter-evidence. Every status stays unconfirmed and confidence undetermined . Does it need an API key, account or internet? No. Why is confidence never a percentage? No calibrated scoring exists. Inventing a number would be false precision. What file formats? JSON, JSONL, NDJSON, CSV and OTLP log JSON. Trust Is it audited? It has an automated self-audit 20 checks and a reviewer-style write-up. It has not had a third-party audit. Where is the proof? 07 audit 07-independent-audit.md , test results test-results.md , evidence/ . Can I reproduce your numbers? Yes: npm test , npx incidentsutra audit , npx incidentsutra benchmark . How accurate is it? Unknown on real incidents. The benchmark is synthetic and self-authored, so no accuracy figure is published. Safety and privacy Can it change production? No. Product code has no network client or process execution audit A09 . Does it send my data anywhere? No. Is redaction reliable? It is a best-effort safety net with published gaps. Sanitize upstream. What if a log tells the AI to run commands? Log text is data. Tests with hostile payloads show decisions and statuses do not change. A separate LLM reading the report could still be swayed; the skills instruct it not to follow embedded instructions. Is the report digest a signature? No. Anyone can recompute it. It catches accidents. Usage Why was my record rejected? Open ingestion-errors.json . The usual cause is a timestamp without an offset. Why no hypothesis for my dependency outage? Classification is keyword based. Check the gaps and the unknown-cause hypothesis; open an issue with a sanitized sample. What does --synthetic do? Adds a banner so demo reports are never mistaken for a real incident. Which Node versions? 20, 22 and 24. Will it work in Cursor, Codex, Gemini CLI or Copilot? Skills are copied to each tool's project folder tested . Whether the tool discovers them depends on its version and is untested here. Project Licence? Apache-2.0. Who maintains it? Vatsal Shah. How do I report a vulnerability? GitHub private advisory; see SECURITY.md . What is planned? Read-only Prometheus or Loki adapter, OTel ingest, calibrated scoring, accessible console, team server. See ROADMAP.md . None is built."},{"t":"IncidentSutra AI documentation","u":"README.html","x":"IncidentSutra AI documentation Observe precisely. Reason cautiously. Recover responsibly. Created by Vatsal Shah. Apache-2.0. This folder is the complete reference for IncidentSutra AI v0.2.2. Every page exists as Markdown source and HTML generated, styled, light and dark, print-ready . Rebuild HTML with npm run build:docs ; CI fails if it is stale. Read in this order Audience Start here --- --- Executives, managers, procurement 01 Executive summary 01-executive-summary.md Product and incident commanders 02 Functional specification 02-functional-spec.md Engineers and contributors 03 Technical specification 03-technical-spec.md , 04 Architecture 04-architecture.md On-call users 05 User guide 05-user-guide.md Security, privacy, legal, compliance reviewers 06 Security, privacy and legal 06-security-privacy-legal.md Anyone deciding whether to trust it 07 Independent audit and evidence 07-independent-audit.md , Test results test-results.md People using AI coding tools 08 Agent catalogue 08-agent-catalog.md Quick answers 09 FAQ 09-faq.md , Glossary 12-glossary.md Anyone who prefers pictures Visual guide 11-visual-guide.md Learning by example Real-world scenarios 10-real-world-scenarios.md Evidence folder evidence/ holds machine-written artifacts: test-results.json , benchmark.json , audit/audit-report.{html,md,json} , and samples/ a full synthetic incident report in HTML, Markdown and JSON . None of it is edited by hand. Regenerate with npm run test:report , npx incidentsutra audit --out ... , npx incidentsutra benchmark --out ... and npm run demo . Ground rules this documentation follows - Claims are limited to what the code does and a test or audit check demonstrates. - Anything not built is labelled planned, never implied. - The project is advisory tooling. It does not replace a human incident commander, and nothing here is legal, compliance or security certification."}]</script><script src="assets/site.js" defer></script></body></html>
|
|
@@ -50,14 +50,20 @@ Run `npx incidentsutra audit --out audit`. The committed run is in [`evidence/au
|
|
|
50
50
|
| supply chain | A18 zero dependencies |
|
|
51
51
|
| safety | A19 read-only policy, A20 redaction helper |
|
|
52
52
|
|
|
53
|
+
<!-- chart:audit -->
|
|
54
|
+
|
|
53
55
|
## 4. Benchmark
|
|
54
56
|
|
|
55
57
|
26 synthetic incident families, 36 expectations, all pass on the committed run ([`evidence/benchmark.json`](evidence/benchmark.json)). **Caveat:** labels are written by the author and not independently validated. The result shows internal consistency, not accuracy on real incidents. No precision or recall figure is claimed.
|
|
56
58
|
|
|
59
|
+
<!-- chart:benchmark -->
|
|
60
|
+
|
|
57
61
|
## 5. Tests
|
|
58
62
|
|
|
59
63
|
See [test-results.md](test-results.md): machine-written results from `npm run test:report`, including Node version, platform and commit. CI additionally runs the suite on Ubuntu and Windows (Node 20, 22, 24) and macOS (Node 24).
|
|
60
64
|
|
|
65
|
+
<!-- chart:tests -->
|
|
66
|
+
|
|
61
67
|
## 6. Sample proof
|
|
62
68
|
|
|
63
69
|
[`evidence/samples/incident-report.html`](evidence/samples/incident-report.html) is a full report from the synthetic fixture. It shows a deployment 2.7.0, an error before deployment 2.7.1, an alert, a dependency warning that appears **after** onset, and a metric rising from 0.1% to 8% errors. Hypotheses remain unconfirmed; contradictions are listed.
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
<!
|
|
2
|
-
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="color-scheme" content="light dark"><title>Agent catalogue · IncidentSutra AI</title><meta name="description" content="IncidentSutra AI documentation: evidence-first, offline, read-only incident investigation."><style>:root{--bg:#f6f8fb;--fg:#0f172a;--mut:#475569;--card:#fff;--bd:#d9e1ec;--ac:#3538cd;--code:#eef2f7}@media(prefers-color-scheme:dark){:root{--bg:#0b1220;--fg:#e6edf7;--mut:#9fb0c7;--card:#121b2e;--bd:#25324a;--ac:#a4bcfd;--code:#1a2540}}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--fg);font:16px/1.7 system-ui,-apple-system,Segoe UI,sans-serif}a{color:var(--ac)}.layout{display:grid;grid-template-columns:260px minmax(0,1fr);max-width:1240px;margin:0 auto}nav{position:sticky;top:0;align-self:start;height:100vh;overflow:auto;padding:24px 16px;border-right:1px solid var(--bd)}nav b{display:block;margin-bottom:8px}nav a{display:block;padding:4px 8px;border-radius:6px;text-decoration:none;color:var(--mut);font-size:.92rem}nav a[aria-current]{background:var(--card);color:var(--fg);font-weight:600}nav .sub a{padding-left:20px;font-size:.84rem}main{padding:32px 28px 80px;min-width:0}h1{font-size:2rem;line-height:1.2}h2{margin-top:2.2em;border-bottom:1px solid var(--bd);padding-bottom:.25em}h3{margin-top:1.6em}code{background:var(--code);padding:.1em .35em;border-radius:5px;font:.88em ui-monospace,Consolas,monospace}pre{background:var(--code);padding:14px;border-radius:10px;overflow:auto}pre code{background:none;padding:0}.tw{overflow-x:auto}table{border-collapse:collapse;width:100%;background:var(--card);font-size:.92rem}th,td{border:1px solid var(--bd);padding:8px 10px;text-align:left;vertical-align:top}th{background:var(--code)}blockquote{margin:1em 0;padding:8px 16px;border-left:4px solid var(--ac);background:var(--card);border-radius:0 8px 8px 0}footer{color:var(--mut);font-size:.85rem;margin-top:48px}:focus-visible{outline:3px solid var(--ac);outline-offset:2px}.skip{position:absolute;left:-999px}.skip:focus{left:8px;top:8px;background:var(--card);padding:6px}@media(max-width:820px){.layout{display:block}nav{position:static;height:auto;border-right:0;border-bottom:1px solid var(--bd)}main{padding:20px 16px 60px}}@media print{nav{display:none}.layout{display:block}}</style></head><body><a class="skip" href="#content">Skip to content</a><div class="layout"><nav aria-label="Documentation"><b>IncidentSutra AI</b><a href="README.html">IncidentSutra AI documentation</a><a href="01-executive-summary.html">Executive summary</a><a href="02-functional-spec.html">Functional specification</a><a href="03-technical-spec.html">Technical specification</a><a href="04-architecture.html">Architecture</a><a href="05-user-guide.html">User guide</a><a href="06-security-privacy-legal.html">Security, privacy and legal</a><a href="07-independent-audit.html">Independent-style audit and evidence</a><a href="08-agent-catalog.html" aria-current="page">Agent catalogue</a><div class="sub"><a href="#what-the-roles-are">What the roles are</a><a href="#recommended-sequence-also-the-sequential-fallback">Recommended sequence (also the sequential fallback)</a><a href="#necessity-review">Necessity review</a><a href="#common-hard-rules-in-every-skill">Common hard rules in every skill</a><a href="#installing">Installing</a></div><a href="09-faq.html">FAQ</a><a href="test-results.html">Test results (observed)</a><p><a href="https://github.com/shahvatsalofficial/IncidentSutra-AI">GitHub</a> · <a href="https://www.npmjs.com/package/incidentsutra">npm</a></p></nav><main id="content"><h1 id="agent-catalogue">Agent catalogue</h1>
|
|
1
|
+
<!DOCTYPE html><html lang="en" data-theme="light"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Agent catalogue · IncidentSutra AI</title><meta name="description" content="Agent catalogue for IncidentSutra AI, the offline incident evidence CLI."><meta name="keywords" content="incident response, SRE, on-call, postmortem, root cause analysis, incident timeline, OpenTelemetry, agent skills, Claude Code, Cursor, Codex, Gemini CLI, Copilot"><meta name="color-scheme" content="light dark"><meta name="theme-color" content="#4338ca"><meta name="author" content="Vatsal Shah"><link rel="canonical" href="https://shahvatsalofficial.github.io/IncidentSutra-AI/08-agent-catalog.html"><meta property="og:title" content="Agent catalogue · IncidentSutra AI"><meta property="og:description" content="Agent catalogue for IncidentSutra AI, the offline incident evidence CLI."><meta property="og:type" content="website"><meta property="og:site_name" content="IncidentSutra AI"><meta property="og:url" content="https://shahvatsalofficial.github.io/IncidentSutra-AI/08-agent-catalog.html"><meta name="twitter:card" content="summary"><link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='8' fill='%234338ca'/%3E%3Cpath d='M5 17h5l3-8 5 15 3-7h6' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"><script>try{var t=localStorage.getItem('incidentsutra-theme');document.documentElement.setAttribute('data-theme',t==='dark'?'dark':'light')}catch(e){document.documentElement.setAttribute('data-theme','light')}</script><link rel="stylesheet" href="assets/site.css"></head><body><a class="skip" href="#content">Skip to content</a><svg width="0" height="0" style="position:absolute" aria-hidden="true"><defs><symbol id="i-search" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></symbol><symbol id="i-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.2 4.2l1.4 1.4M18.4 18.4l1.4 1.4M1 12h2M21 12h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4"/></symbol><symbol id="i-moon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z"/></symbol><symbol id="i-menu" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18M3 12h18M3 18h18"/></symbol><symbol id="i-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></symbol><symbol id="i-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M12 5l7 7-7 7"/></symbol><symbol id="i-code" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 18l6-6-6-6M8 6l-6 6 6 6"/></symbol><symbol id="i-shield" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></symbol><symbol id="i-lock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></symbol><symbol id="i-file" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6"/></symbol><symbol id="i-eye" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></symbol><symbol id="i-layers" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2l10 5-10 5L2 7z"/><path d="M2 17l10 5 10-5M2 12l10 5 10-5"/></symbol><symbol id="i-clock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></symbol><symbol id="i-check" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></symbol></defs></svg><header class="topbar"><div class="topbar-in"><button class="icon-btn menu-btn" type="button" aria-label="Open navigation menu" aria-expanded="false" aria-controls="sidebar"><svg class="ic" width="20" height="20" aria-hidden="true"><use href="#i-menu"/></svg></button><a class="brand" href="index.html"><span class="logo" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 32 32"><path d="M4 17h6l3-9 6 16 3-7h6" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg></span><span class="brand-name">Incident<b>Sutra</b> AI</span><span class="ver">v0.2.2</span></a><nav class="topnav" aria-label="Primary"><a href="05-user-guide.html">Guide</a><a href="10-real-world-scenarios.html">Scenarios</a><a href="11-visual-guide.html">Visuals</a><a href="04-architecture.html">Architecture</a><a href="07-independent-audit.html">Proof</a></nav><div class="search" role="search"><svg class="ic" width="18" height="18" aria-hidden="true"><use href="#i-search"/></svg><label class="sr" for="q">Search the documentation</label><input id="q" type="search" placeholder="Search docs" autocomplete="off" role="combobox" aria-expanded="false" aria-controls="results"><kbd aria-hidden="true">/</kbd><ul id="results" role="listbox" hidden></ul></div><a class="icon-btn gh" href="https://github.com/shahvatsalofficial/IncidentSutra-AI" rel="noopener" aria-label="IncidentSutra AI on GitHub"><svg class="ic" width="20" height="20" aria-hidden="true"><use href="#i-code"/></svg></a><button class="icon-btn theme-btn" type="button" aria-pressed="false" aria-label="Switch to dark theme"><svg class="ic i-sun" width="20" height="20" aria-hidden="true"><use href="#i-sun"/></svg><svg class="ic i-moon" width="20" height="20" aria-hidden="true"><use href="#i-moon"/></svg></button></div></header><div class="layout"><aside class="sidebar" id="sidebar" aria-label="Documentation"><a class="nav-home" href="index.html">Home</a><div class="nav-group"><p class="nav-title">Start here</p><ol><li><a href="01-executive-summary.html">Executive summary</a></li><li><a href="11-visual-guide.html">Visual guide</a></li><li><a href="05-user-guide.html">User guide</a></li><li><a href="10-real-world-scenarios.html">Real-world scenarios</a></li></ol></div><div class="nav-group"><p class="nav-title">Reference</p><ol><li><a href="02-functional-spec.html">Functional specification</a></li><li><a href="03-technical-spec.html">Technical specification</a></li><li><a href="08-agent-catalog.html" aria-current="page">Agent catalogue</a></li><li><a href="12-glossary.html">Glossary</a></li></ol></div><div class="nav-group"><p class="nav-title">Design and trust</p><ol><li><a href="04-architecture.html">Architecture</a></li><li><a href="06-security-privacy-legal.html">Security, privacy and legal</a></li><li><a href="07-independent-audit.html">Independent-style audit and evidence</a></li><li><a href="test-results.html">Test results (observed)</a></li></ol></div><div class="nav-group"><p class="nav-title">Help</p><ol><li><a href="09-faq.html">FAQ</a></li><li><a href="README.html">Documentation map</a></li></ol></div></aside><div class="scrim" hidden></div><main class="content" id="content" tabindex="-1"><article class="prose"><p class="eyebrow">Reference</p><h1>Agent catalogue</h1>
|
|
3
2
|
<p>The same table is generated into <code>docs/AGENT_CATALOG.md</code> by <code>npm run build:skills</code>. This page explains how to use the roles.</p>
|
|
4
|
-
<h2 id="what-the-roles-are">What the roles are
|
|
3
|
+
<h2 id="what-the-roles-are">What the roles are<a class="anchor" href="#what-the-roles-are" aria-label="Link to this section">#</a></h2>
|
|
5
4
|
<p>Twenty portable instructions (Agent Skills) in <code>skills/<name>/SKILL.md</code>, mirrored by Claude role files in <code>agents/</code>. They are <strong>not</strong> twenty running models. Each has Mission, When to use, Inputs, Workflow, Output contract, Hard rules and Escalate sections, and returns the shared contract in <code>schemas/agent-output.schema.json</code>: <code>scope</code>, <code>observed</code>, <code>inferred</code>, <code>unknowns</code>, <code>notRun</code>, <code>evidenceIds</code>, <code>contradictions</code>, <code>nextChecks</code>, <code>permissionsRequired</code>, <code>privacyReview</code>, <code>humanApproval</code>.</p>
|
|
6
|
-
<h2 id="recommended-sequence-also-the-sequential-fallback">Recommended sequence (also the sequential fallback)
|
|
5
|
+
<h2 id="recommended-sequence-also-the-sequential-fallback">Recommended sequence (also the sequential fallback)<a class="anchor" href="#recommended-sequence-also-the-sequential-fallback" aria-label="Link to this section">#</a></h2>
|
|
7
6
|
<ol><li><code>incidentsutra-log-sentinel</code> (input quality)</li><li><code>incidentsutra-timeline-builder</code></li><li><code>incidentsutra-change-detector</code></li><li><code>incidentsutra-hypothesis-tester</code></li><li><code>incidentsutra-evidence-ledger</code> (verify)</li><li><code>incidentsutra-privacy-guardian</code> (redaction review)</li><li><code>incidentsutra-postmortem-writer</code></li></ol>
|
|
8
7
|
<p><code>incidentsutra-prime</code> coordinates. It cannot override a Privacy Guardian block or an Evidence Ledger rejection.</p>
|
|
9
|
-
<h2 id="necessity-review">Necessity review
|
|
8
|
+
<h2 id="necessity-review">Necessity review<a class="anchor" href="#necessity-review" aria-label="Link to this section">#</a></h2>
|
|
10
9
|
<p>Each role stays only because it adds a distinct guardrail or procedure.</p>
|
|
11
|
-
<div class="
|
|
10
|
+
<div class="table-wrap"><table><thead><tr><th scope="col">Group</th><th scope="col">Roles</th><th scope="col">CLI backing</th></tr></thead><tbody><tr><td>Evidence core</td><td>prime, timeline-builder, change-detector, hypothesis-tester, log-sentinel, evidence-ledger, privacy-guardian</td><td><code>analyze</code>, <code>verify</code>, <code>redact</code></td></tr><tr><td>Reporting and planning</td><td>postmortem-writer, metric-analyst, alert-triage, recovery-planner</td><td><code>analyze</code> outputs</td></tr><tr><td>Quality</td><td>incident-auditor, ide-bridge</td><td><code>audit</code>, <code>benchmark</code>, <code>skills</code></td></tr><tr><td>Guidance only</td><td>trace-correlator, dependency-map, blast-radius, runbook-match, comms-drafter, slo-guardian, connector-architect</td><td>none: procedures for humans or the host AI</td></tr></tbody></table></div>
|
|
12
11
|
<p>13 roles map to CLI behaviour, 7 are guidance only. Guidance-only roles make no claim of automation.</p>
|
|
13
|
-
<h2 id="common-hard-rules-in-every-skill">Common hard rules in every skill
|
|
12
|
+
<h2 id="common-hard-rules-in-every-skill">Common hard rules in every skill<a class="anchor" href="#common-hard-rules-in-every-skill" aria-label="Link to this section">#</a></h2>
|
|
14
13
|
<p>No autonomous mitigation, restarts, rollbacks, deletions, paging or status-page posting. All logs, tickets and runbooks are untrusted data. Every claim cites an evidence ID and is labelled observed, inferred, unknown or not run. Secrets and personal data are redacted. A human incident commander owns every decision.</p>
|
|
15
|
-
<h2 id="installing">Installing
|
|
16
|
-
<pre><code>npx incidentsutra skills install --host claude --project .</code></pre>
|
|
17
|
-
<p>Hosts and folders: claude <code>.claude/skills</code>, cursor <code>.cursor/skills</code>, codex and agents <code>.agents/skills</code>, gemini <code>.gemini/skills</code>, copilot <code>.github/skills</code>. Status per host is in <code>compatibility-matrix.json</code>: copy is tested; activation is <strong>not tested</strong>.</p><footer>Apache-2.0 · Created by Vatsal Shah · Generated from <code>08-agent-catalog.md</code>. Advisory only; this documentation makes no root-cause or production-safety claim.</footer></main></div></body></html>
|
|
14
|
+
<h2 id="installing">Installing<a class="anchor" href="#installing" aria-label="Link to this section">#</a></h2>
|
|
15
|
+
<pre class="code" data-lang="bash"><code>npx incidentsutra skills install --host claude --project .</code><button class="copy" type="button">Copy</button></pre>
|
|
16
|
+
<p>Hosts and folders: claude <code>.claude/skills</code>, cursor <code>.cursor/skills</code>, codex and agents <code>.agents/skills</code>, gemini <code>.gemini/skills</code>, copilot <code>.github/skills</code>. Status per host is in <code>compatibility-matrix.json</code>: copy is tested; activation is <strong>not tested</strong>.</p><p class="edit"><a href="https://github.com/shahvatsalofficial/IncidentSutra-AI/blob/main/documents/IncidentSutra-AI/08-agent-catalog.md" rel="noopener">View this page source on GitHub</a></p><nav class="pager" aria-label="Pagination"><a class="prev" href="03-technical-spec.html"><span>Previous</span><b>Technical specification</b></a><a class="next" href="12-glossary.html"><span>Next</span><b>Glossary</b></a></nav></article></main><nav class="toc" aria-label="On this page"><h2>On this page</h2><ul><li class="l2"><a href="#what-the-roles-are">What the roles are</a></li><li class="l2"><a href="#recommended-sequence-also-the-sequential-fallback">Recommended sequence (also the sequential fallback)</a></li><li class="l2"><a href="#necessity-review">Necessity review</a></li><li class="l2"><a href="#common-hard-rules-in-every-skill">Common hard rules in every skill</a></li><li class="l2"><a href="#installing">Installing</a></li></ul></nav></div><footer class="site-foot"><div class="foot-in"><div class="foot-brand"><a class="brand" href="index.html"><span class="logo" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 32 32"><path d="M4 17h6l3-9 6 16 3-7h6" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg></span><span class="brand-name">Incident<b>Sutra</b> AI</span></a><p>Observe precisely. Reason cautiously. Recover responsibly.</p><p class="fine">Created by Vatsal Shah. Apache-2.0.</p></div><div><p class="foot-title">Start</p><ul><li><a href="01-executive-summary.html">Overview</a></li><li><a href="05-user-guide.html">User guide</a></li><li><a href="10-real-world-scenarios.html">Scenarios</a></li></ul></div><div><p class="foot-title">Reference</p><ul><li><a href="02-functional-spec.html">Functional spec</a></li><li><a href="03-technical-spec.html">Technical spec</a></li><li><a href="12-glossary.html">Glossary</a></li></ul></div><div><p class="foot-title">Trust</p><ul><li><a href="06-security-privacy-legal.html">Security and legal</a></li><li><a href="07-independent-audit.html">Audit</a></li><li><a href="test-results.html">Test results</a></li></ul></div><div><p class="foot-title">Project</p><ul><li><a href="https://github.com/shahvatsalofficial/IncidentSutra-AI" rel="noopener">GitHub</a></li><li><a href="https://www.npmjs.com/package/incidentsutra" rel="noopener">npm</a></li><li><a href="https://github.com/shahvatsalofficial/IncidentSutra-AI/blob/main/CHANGELOG.md" rel="noopener">Changelog</a></li></ul></div></div><p class="legal">IncidentSutra AI 0.2.2. Advisory output for people: it does not determine root cause and is not legal, compliance or security certification. The audit is a self-audit. Product names belong to their owners; no endorsement is implied.</p></footer><script>window.__DOCS_INDEX__=[{"t":"Executive summary","u":"01-executive-summary.html","x":"Executive summary The problem During an outage, teams build a story fast: \"the 14:02 deploy broke it\". Common failure modes are over-trusting deploy timing, mixing time zones, reading missing data as \"all clear\", and writing postmortems from memory. The cost is longer incidents, misdirected fixes and blame. What IncidentSutra AI does IncidentSutra AI is a command-line tool and a set of 20 agent skills. You give it exported, sanitized logs, metrics, alerts and deployment records. It returns: 1. an auditable UTC timeline where every line points to a source file, record and SHA-256; 2. several competing hypotheses , each with what must be true, what supports it, what contradicts it and what would disprove it; 3. an explicit list of unknowns missing metrics, traces, change records and checks that were not run ; 4. a blameless postmortem draft with human-only sections left open; 5. reports as HTML, Markdown and JSON , and an automated audit report of the tool itself. What makes it different Typical tooling IncidentSutra AI --- --- Names one probable cause Keeps several unconfirmed causes and refuses to confirm any Hides gaps Reports gaps as unknown Needs cloud and keys Offline, zero dependencies, no API key Can act on production Cannot: no network or process execution in product code Claims accuracy Publishes limits; benchmark labelled synthetic and self-authored Business value - Faster, safer triage : a defensible timeline in seconds from exports you already have. - Lower risk : nothing leaves the machine; no production credentials are involved. - Better learning : postmortems start from evidence, not recollection, and stay blameless. - Auditability : report integrity digest, source re-hash verify --input , provenance manifest. - Cost : free, Apache-2.0, no vendor lock-in. Trust summary Question Answer Where to verify --- --- --- Does it run? Yes: automated tests on Windows, Linux, macOS in CI test results test-results.md Does it leak secrets? 14 synthetic secret classes masked; known gaps published 06 06-security-privacy-legal.md , audit A06 Can hostile logs steer it? 6 injection payloads change nothing audit A08 Can it touch production? No code path exists audit A09 Is it independently certified? No. Self-audit only 07 07-independent-audit.md Status and limits Shipped: file-based analysis, reports, verification, audit, benchmark, loopback API, skill installer. Planned: live connectors Prometheus, Loki, Grafana, Sentry, OTel , calibrated scoring, team server,"},{"t":"Visual guide","u":"11-visual-guide.html","x":"Visual guide The whole product in pictures. If you read one page, read this one. From files to a decision You export a small window of data. Everything else happens on your machine. A night on call Four kinds of statement Every sentence in a report belongs to exactly one of these. Kind Meaning Example --- --- --- Observed In an imported record, with an evidence ID \"checkout logged a timeout at 19:49 UTC\" Inferred A hypothesis built from observations \"The release may be related to the errors\" Unknown Data that was not supplied \"No metrics: impact cannot be measured\" Not run A check nobody executed \"Compare error rate before and after the release\" Why time zones matter How hypotheses are built What happens to your files How the parts fit Where trust ends The agent roles The numbers behind it"},{"t":"User guide","u":"05-user-guide.html","x":"User guide 1. Install Nothing to install for a one-off run: Or clone: git clone https://github.com/shahvatsalofficial/IncidentSutra-AI , then npm run doctor . Node.js 20 or newer is required. No API key, no network. 2. Prepare your data 1. Export a small, relevant window of logs, alerts, metrics and deployment records JSON, JSONL or CSV . 2. Sanitize upstream. Remove credentials and personal data at the source. Built-in redaction is a safety net only. 3. Make sure every record has an RFC3339 timestamp with an offset, for example 2026-11-10T19:52:00Z or 2026-11-11T01:22:00+05:30 . 4. Put the files in one folder. Do not include symlinks. Example JSONL: 3. Analyze Add --window-minutes 30 to widen the change-to-error window 1 to 120, default 15 . Add --synthetic for demos so the HTML shows a banner. Open report/incident-report.html . Read in this order: Summary, Timeline, Hypotheses, Evidence gaps , Ingestion quality. 4. How to read the report Chip Meaning --- --- observed Present in an imported record; has an evidence ID inferred A hypothesis from observed records; never confirmed unknown Data not supplied; absence is not evidence of health not run A check deliberately not executed For each hypothesis ask: What would have to be true? What contradicts it? Which read-only check separates it from the others? Click an evidence ID to jump to the timeline row. 5. Verify before sharing Exit code 2 means a changed report or changed source files. The digest catches accidents, not a determined forger. 6. Check what was masked Counts only. Then read the HTML yourself for names, addresses, IPv6 and unprefixed secrets, which are not masked. 7. Write the postmortem Open postmortem-draft.md . Fill every TODO human : impact, what responders did, lessons, action items with owners. Keep it blameless. 8. Compare two runs 9. Use the skills in your AI coding tool Hosts: claude , cursor , codex , gemini , copilot , agents . Existing files are never overwritten. Ask the assistant to start with incidentsutra-prime . Whether the host auto-discovers the skills depends on its version and is not verified here. 10. Read the report over HTTP optional, local Loopback only, GET only. Do not expose it. Troubleshooting Symptom Cause and fix --- --- Timestamp must be RFC3339 with explicit Z or +/-HH:MM timezone Add an offset to the record. The tool never guesses a zone Invalid calendar date The date does not exist for example Feb 30 . Fix the source Input too large Split the file under 2 MB Ev"},{"t":"Real-world scenarios","u":"10-real-world-scenarios.html","x":"Real-world scenarios Six situations on-call engineers recognise. Each one is a runnable sample in fixtures/scenarios/ : the timeline, hypotheses and gaps shown on the website are produced by running the tool on that file when the site is built. The stories are fictional; the outputs are real. Run any of them yourself: Scenario 1: \"It was the deploy!\" 02:10, war room. Orders are failing. Release 4.2.0 shipped a few minutes ago. Someone is already typing the rollback command. What changes the conversation: the same error appears at 10:02, four minutes before the 10:06 release. The report lists it as counter-evidence and offers a pre-existing defect as a competing explanation. A rollback may still be reasonable, but nobody should expect it to be the whole answer. Usually without it: the rollback runs, errors continue, and the real defect is found an hour later. Scenario 2: The time zone trap The CI system logs in India time. The application logs in UTC. Read side by side, the deployment seems to come five hours after the errors started. What changes the conversation: both are converted to UTC. The deployment at 01:15 +05:30 is 19:45 UTC, four minutes before the first error. The report flags mixed offsets and says clock skew was not measured. Scenario 3: The provider is slow, but search just shipped 14:03, checkout times out. The only deployment nearby belongs to the search team, and they are being asked to roll back. What changes the conversation: a payment-provider latency warning appears three minutes before the first checkout error, so a dependency hypothesis is raised with that event as support. Search is not an erroring service, so no change hypothesis is built against its release. Scenario 4: The connection pool Monday 08:14, logins fail. A release went out 44 minutes earlier. What changes the conversation: the release falls outside the 15-minute correlation window, so it is not linked automatically. A datastore hypothesis cites the pool-exhaustion and lock messages, and the metric series shows connections moving from 40 to 200. Widen the window with --window-minutes 60 if your releases take longer to show effects. Scenario 5: The 3 a.m. alert storm Pages every few seconds. Logs contain a customer email address and an authorization header. What changes the conversation: the burst is grouped as one storm, the first signal out of memory is easy to find, a saturation hypothesis is raised, and the email address and token are masked before anything is writte"},{"t":"Functional specification","u":"02-functional-spec.html","x":"Functional specification Users On-call SREs, incident commanders, release engineers, support escalation, students of observability, open-source maintainers. Commands Command Purpose Output Exit codes --- --- --- --- analyze --input \u003cfile or dir --out \u003cdir --window-minutes N --synthetic Build the evidence report 8 files, see below 0 / 1 verify --report \u003cjson --input \u003ctelemetry Check integrity, references, guard fields, optionally re-hash sources JSON verdict 0 / 2 compare --baseline \u003ca --candidate \u003cb Diff two verified reports JSON diff 0 / 1 redact --input \u003cfile or dir Show counts of masked values, never the values JSON counts 0 / 1 audit --out \u003cdir Run 20 automated checks audit-report.html , .md , .json 0 / 2 benchmark --out \u003cdir Run 26 synthetic case families benchmark.json 0 / 2 skills list , skills install --host H --project D Project-local Agent Skills file copies 0 / 1 serve --report \u003cjson --port N Loopback read-only API; needs INCIDENTSUTRA TOKEN of 24 or more characters HTTP JSON 0 / 1 doctor , --version , help Environment, version, usage text/JSON 0 Inputs JSON array, {events} , {records} or OTLP resourceLogs , JSONL/NDJSON and CSV. Required: timestamp or time , timeISO , OTLP timeUnixNano . Recognised fields: type / eventType / eventName , service / serviceName , severity / severityText , message / body , traceId , spanId , deploymentId / releaseId , environment , value / metricValue , attributes . Unknown scalar columns become dimensions . Limits: 2 MB per file, 5,000 events, 100 files, nesting depth 8, 80 keys per object. Symlinks are never followed. Unsupported file types are skipped and reported. Time rules: RFC3339 with Z or ±HH:MM only. Invalid calendar dates, hour 24, second 60 and offsets beyond 23:59 are rejected per record. Event time wins over collector observed time; observed-only events carry a warning. OTLP timeUnixNano of 0 means unset. Sub-millisecond precision is kept in timestampNs . Outputs of analyze File Content --- --- incident-report.html Single-file report: summary, SVG and table timeline, hypotheses, gaps, quality, sources, limits. No scripts, strict CSP, light/dark, print styles incident-report.md Same content as Markdown incident-report.json Machine contract schema incidentsutra.report.v2 postmortem-draft.md Blameless template; facts from evidence, TODO human elsewhere hypothesis-register.md One block per hypothesis with reviewer decision placeholder normalized-events.jsonl One normalised event per line schema v2 inciden"},{"t":"Technical specification","u":"03-technical-spec.html","x":"Technical specification Platform Node.js 20, 22 or 24. ES modules .mjs . Zero runtime and dev dependencies; only node: built-ins fs , path , crypto , http , url , os , child process in tests and scripts only . Repository layout Path Responsibility --- --- packages/core/ingest.mjs format parsing, strict time, normalisation, redaction, limits, dedup, ordering packages/core/analyze.mjs classification, hypotheses, report build, verifyReport , verifySources , compareReports packages/core/benchmark.mjs 26 synthetic cases and runner packages/core/audit.mjs 20 automated checks, corpora packages/core/schema.mjs minimal JSON Schema validator for project contracts packages/core/meta.mjs tool name, version, rule version, schema ids packages/reporter/ Markdown, HTML, postmortem, register and audit renderers packages/server/ loopback read-only API packages/cli/index.mjs command dispatch skills/ , agents/ generated by scripts/build-skills.mjs schemas/ incident-event , incident-report , agent-output JSON Schema 2020-12 policies/default.json read-only policy tests/ node:test suites Event schema v2 summary id evt + 20 hex , schema , timestamp UTC ms ISO , timestampNs integer string , timePrecision s / ms / us / ns , timeBasis event / observed , originalTimestamp , originalOffset , observedTimestamp? , type , service , environment , severity , message , traceId , spanId , deployment , releaseId , metricValue? , attributes , dimensions , confidenceClass: observed , sensitivityClass , ingestionWarnings , source{file, record, sha256} . ID: sha256 sourceSha256:file:record:isoTime first 20 hex. Stable across runs and machines. Ordering timestamp string, then timestampNs as BigInt, then source file name, then record number, then ID. Deterministic for identical input. Time parsing Regex for RFC3339, then explicit validation: month 1-12, day within month including leap years, hour 0-23, minute 0-59, second 0-59, offset hours 0-23 and minutes 0-59. Epoch milliseconds via Date.UTC minus offset; fractional digits padded to 9 and combined into a BigInt nanosecond string. The previous implementation relied on Date.parse , which silently accepts 2026-02-30 returns 2026-03-02 and 24:00:00 ; those are now rejected. Redaction Ordered rule list private key, JWT, URL credentials, key=value secrets, bearer, token prefixes, AWS keys, email, Luhn-checked card, SSN, IPv4, phone . Object keys matching a sensitive pattern are masked wholesale. Depth cap 8, 100 array items, 80 keys. Counts by kind go"},{"t":"Agent catalogue","u":"08-agent-catalog.html","x":"Agent catalogue The same table is generated into docs/AGENT CATALOG.md by npm run build:skills . This page explains how to use the roles. What the roles are Twenty portable instructions Agent Skills in skills/\u003cname /SKILL.md , mirrored by Claude role files in agents/ . They are not twenty running models. Each has Mission, When to use, Inputs, Workflow, Output contract, Hard rules and Escalate sections, and returns the shared contract in schemas/agent-output.schema.json : scope , observed , inferred , unknowns , notRun , evidenceIds , contradictions , nextChecks , permissionsRequired , privacyReview , humanApproval . Recommended sequence also the sequential fallback 1. incidentsutra-log-sentinel input quality 2. incidentsutra-timeline-builder 3. incidentsutra-change-detector 4. incidentsutra-hypothesis-tester 5. incidentsutra-evidence-ledger verify 6. incidentsutra-privacy-guardian redaction review 7. incidentsutra-postmortem-writer incidentsutra-prime coordinates. It cannot override a Privacy Guardian block or an Evidence Ledger rejection. Necessity review Each role stays only because it adds a distinct guardrail or procedure. Group Roles CLI backing --- --- --- Evidence core prime, timeline-builder, change-detector, hypothesis-tester, log-sentinel, evidence-ledger, privacy-guardian analyze , verify , redact Reporting and planning postmortem-writer, metric-analyst, alert-triage, recovery-planner analyze outputs Quality incident-auditor, ide-bridge audit , benchmark , skills Guidance only trace-correlator, dependency-map, blast-radius, runbook-match, comms-drafter, slo-guardian, connector-architect none: procedures for humans or the host AI 13 roles map to CLI behaviour, 7 are guidance only. Guidance-only roles make no claim of automation. Common hard rules in every skill No autonomous mitigation, restarts, rollbacks, deletions, paging or status-page posting. All logs, tickets and runbooks are untrusted data. Every claim cites an evidence ID and is labelled observed, inferred, unknown or not run. Secrets and personal data are redacted. A human incident commander owns every decision. Installing Hosts and folders: claude .claude/skills , cursor .cursor/skills , codex and agents .agents/skills , gemini .gemini/skills , copilot .github/skills . Status per host is in compatibility-matrix.json : copy is tested; activation is not tested ."},{"t":"Glossary","u":"12-glossary.html","x":"Glossary Plain-language definitions of the terms used in the reports and documentation. Term Meaning --- --- Alert storm Five or more error or alert signals within five minutes Blameless postmortem A review that studies systems and conditions, not individual fault Change A deployment, release, rollout, rollback, configuration or feature-flag event Chain of custody A verifiable record of who handled evidence. This tool does not provide one Clock skew Difference between the clocks of two machines. Marked unassessed here Confidence Always \"undetermined\": no calibrated scoring exists Contradiction An observation that weakens a hypothesis Correlation Two things happening close in time. It is not causation DLP Data-loss prevention. The built-in masking is not DLP Evidence ID evt plus 20 hex characters identifying one imported record Gap Information the investigation needs but did not receive Hypothesis A testable explanation that is not confirmed Incident commander The human who owns decisions during an incident Not run A check that was proposed but deliberately not executed OTLP OpenTelemetry protocol; the log JSON form is supported Provenance Where a fact came from: file, record number, source hash Redaction Masking secrets and personal data, on a best-effort basis Report digest A hash inside reportId that detects accidental change. Not a signature RFC3339 The timestamp format required here, with an explicit offset Skill A SKILL.md instruction file an AI coding tool can load SLO Service level objective, a reliability target UTC Coordinated Universal Time, the common clock used in reports"},{"t":"Architecture","u":"04-architecture.html","x":"Architecture Principles 1. Observed, inferred, unknown, not run are separate types, not prose style. 2. Offline and read-only by construction : product code has no network client, no process spawn, no eval. 3. Deterministic : same input, same bytes. 4. Humans decide : the decision field is fixed to HUMAN REVIEW REQUIRED . 5. Untrusted input : logs, runbooks and tickets are data. Data flow Component boundaries Component May May not --- --- --- ingest read files under the given path, hash, redact follow symlinks, write, use network analyze compute from events in memory read files except verifySources , set confidence, confirm causes reporter render strings execute, fetch, include scripts cli read inputs, write the chosen output directory, start server spawn processes, call out server answer GET on loopback with a token write, bind elsewhere, serve files audit read the repo, run checks, open a loopback socket change any file except the chosen output Trust boundaries Evidence model See docs/EVIDENCE MODEL.md . An evidence ID ties a statement to a file, a record and a source hash. Hypotheses reference IDs only; the verifier rejects dangling references. Hypothesis engine Per affected service: candidate changes within the window up to 3 , then dependency, saturation, datastore, latent-defect and alternative families when their wording or ordering conditions hold. A global unknown-cause hypothesis is always appended. No scoring or ranking is applied; order is by construction. Agent layer 20 skills encode roles timeline builder, change detector, hypothesis tester, evidence ledger, privacy guardian, and others . Prime orchestrates but cannot override Privacy Guardian blocks or Evidence Ledger rejections. Without subagent support, run roles sequentially in the documented order. 13 roles map to CLI behaviour; 7 are guidance-only. Future architecture not built Adapter boundary for read-only Prometheus or Loki queries with bounded ranges, allowlisted endpoints, TLS verification, redirect and SSRF controls and audit events; calibrated scoring against an independently labelled benchmark; authenticated team server with RBAC and retention. Each requires a threat-model update before code. Decisions ADR Decision Reason --- --- --- 1 Keep plain .mjs , zero dependencies smallest supply-chain surface, fast install 2 Rule-based hypotheses, confidence undetermined no calibration data; avoids false precision 3 Digest in reportId , explicitly not a signature honest about what a hash"},{"t":"Security, privacy and legal","u":"06-security-privacy-legal.html","x":"Security, privacy and legal This page describes how the software behaves. It is not legal advice and not a compliance certification. Have your own counsel and security team review any use with regulated data. 1. Security posture Area Behaviour Verification --- --- --- Network Product code opens no outbound connection audit A09 static scan Process execution None audit A09 Dynamic code No eval or new Function audit A09 Dependencies 0 runtime and dev audit A18 Input handling size, count, depth caps; symlinks never followed audit A12, A13, ingest tests Output safety HTML escaped; no scripts; CSP; Markdown cells sanitised audit A07 Prompt injection Log text is data; decision fixed; verifier blocks \"confirmed\" audit A08 Local API loopback, token, GET only, Host check audit A11 Supply chain npm provenance through OIDC trusted publishing; no stored npm token release.yml Full list of threats and residual risks: docs/THREAT MODEL.md . 2. Privacy - Data flow : input files are read locally; outputs are written only to the directory you choose. No telemetry, analytics or remote calls. - Redaction best effort masks: private keys, JWTs, URL credentials, key=value secrets, bearer tokens, common API-key prefixes, AWS keys, emails, IPv4, Luhn-valid card numbers, US SSNs, US-style and + phone numbers. - Not masked : IPv6, personal names, street addresses, secrets without a recognisable prefix or key name, non-US phone and national IDs, secrets split across fields. These are listed in every audit report. - Retention : the tool keeps nothing between runs. Reports contain redacted text and source file hashes, not raw files. - Personal data : you remain the controller or processor of anything you feed in. Sanitize at the source. If you suspect a real credential reached a report, rotate it. - GDPR, HIPAA, PCI : the software makes no compliance claim. Local-only processing can simplify data-transfer analysis, but that conclusion is yours to reach. 3. Licence Apache License 2.0 LICENSE , verified by audit A15 . You may use, modify and distribute it commercially, keep the licence and NOTICE, and mark changes. It includes a patent grant. Sections 7 and 8 disclaim warranty and limit liability: the software is provided as is . 4. Third-party content and trademarks No third-party code is bundled THIRD PARTY NOTICES.md . OpenTelemetry, Prometheus, Grafana, Loki, Sentry, Claude, Cursor, Codex, Gemini, GitHub Copilot and other names are trademarks of their owners and appear only as referen"},{"t":"Independent-style audit and evidence","u":"07-independent-audit.html","x":"Independent-style audit and evidence Reviewer stance. This is a skeptical review of the v0.1.0 starter and the v0.2.0 result, written from the evidence in the repository. It was prepared by the project's own tooling and author session, so it is not independent in the third-party sense and is not a certification. Where it says \"verified\", a command in this repository reproduces the result. 1. Method 1. Baseline the inherited starter: run its tests and demo, read all source. 2. Compare behaviour with the written specification master prompt, tool catalogue, skill file . 3. Probe edge cases directly timestamps, secrets, hostile text, tampering, local API . 4. Fix defects, add regression tests, add an automated audit that re-checks them on every run. 5. Publish what is not covered. 2. Defects found in the starter and their resolution Finding Evidence Severity Resolution --- --- --- --- --- F1 Date.parse accepted impossible dates: 2026-02-30T00:00:00Z parsed as 2026-03-02; T24:00:00Z rolled to next day direct Node probe High timeline integrity Explicit calendar validation; 13 rejection tests F2 Millisecond-only time; no precision field; nanosecond order lost; OTLP timeUnixNano of 0 treated as a real time code review Medium timestampNs BigInt string, timePrecision , observed-time fallback with warning F3 CI ran node --test tests/ .test.mjs ; Windows shells do not expand the glob on Node 20 CI failure report High broken CI node --test F4 Symlink tests threw EPERM on hosts that forbid symlinks local run Medium helper returns early when creation is denied F5 All 20 skills were one template with a changed sentence file comparison Medium misleading Role-specific skills; uniqueness test; necessity catalogue F6 Redaction covered only bearer, a few key=value , email, AWS key code review High privacy 12 rules, 14-class corpus, counts, known gaps published F7 Authorization: Bearer x left a dangling Bearer after masking probe Low single combined rule; test F8 One unparseable file aborted the whole run code review Medium reported as ingestion error; others continue F9 Nested symlinks skipped silently code review Low hidden gap listed in skippedInputs and a gap F10 Hypotheses ignored errors preceding a change and unaffected services fixture review High causal safety contradictions recorded per hypothesis F11 Only temporal and generic hypotheses; no dependency, saturation, datastore, latent families spec comparison Medium families added with counter-evidence F12 Reports: HTML "},{"t":"Test results (observed)","u":"test-results.html","x":"Test results observed Command: node --test Total Pass Fail Skipped Exit code --- --- --- --- --- 200 200 0 0 0 Environment: Node v24.15.0, win32/x64, commit c717a87 . Skips: Two symlink tests return early when the host forbids symlink creation Windows without Developer Mode ; they run on Linux and macOS CI. Regenerate with npm run test:report . This file is machine-written from the real run; it is not edited by hand. Cases - PASS — creates a timestamp-sorted observed timeline - PASS — never claims causality: all hypotheses unconfirmed, confidence undetermined, review pending - PASS — a deployment near the alert stays correlation only - PASS — pre-existing error before the later deployment is recorded as counter-evidence - PASS — fixture offers at least two competing explanation families - PASS — dependency signal after onset is flagged as possible effect - PASS — each hypothesis has falsifiable content and unexecuted read-only checks - PASS — absent metrics are unknown, not fabricated - PASS — missing traces and changes are flagged - PASS — mixed offsets produce an explicit clock-skew gap - PASS — numeric metric series are summarised from observed values only - PASS — no production operation is represented as run - PASS — reusable agent contract is complete and validates - PASS — claims separate observed, inferred, unknown and not-run - PASS — every hypothesis reference exists in the event evidence - PASS — report validates against the v2 schema - PASS — stable report IDs for identical input - PASS — report ID changes when the window changes - PASS — verification fails on summary tamper - PASS — verification fails on unknown evidence reference - PASS — verification fails on forced confirmed root cause - PASS — verification fails on approved decision - PASS — verification fails on claimed production mutation - PASS — verification fails on forged event text - PASS — verification fails on timeline pointing nowhere - PASS — verification rejects non-reports - PASS — legacy v1 schema id is still recognised - PASS — source re-hash passes for untouched input and fails for changed input - PASS — markdown report has evidence IDs, human approval and legend - PASS — postmortem draft is blameless and leaves human sections open - PASS — hypothesis register lists reviewer decision placeholders - PASS — HTML report escapes untrusted text and carries a CSP with no script - PASS — HTML report is accessible: lang, viewport, landmarks, svg title, skip of colour-only meaning -"},{"t":"FAQ","u":"09-faq.html","x":"FAQ Basics What is IncidentSutra AI? An offline CLI plus 20 agent skills that turn exported incident data into an evidence-backed timeline, competing hypotheses and a postmortem draft. Does it find the root cause? No. It lists plausible, falsifiable explanations with counter-evidence. Every status stays unconfirmed and confidence undetermined . Does it need an API key, account or internet? No. Why is confidence never a percentage? No calibrated scoring exists. Inventing a number would be false precision. What file formats? JSON, JSONL, NDJSON, CSV and OTLP log JSON. Trust Is it audited? It has an automated self-audit 20 checks and a reviewer-style write-up. It has not had a third-party audit. Where is the proof? 07 audit 07-independent-audit.md , test results test-results.md , evidence/ . Can I reproduce your numbers? Yes: npm test , npx incidentsutra audit , npx incidentsutra benchmark . How accurate is it? Unknown on real incidents. The benchmark is synthetic and self-authored, so no accuracy figure is published. Safety and privacy Can it change production? No. Product code has no network client or process execution audit A09 . Does it send my data anywhere? No. Is redaction reliable? It is a best-effort safety net with published gaps. Sanitize upstream. What if a log tells the AI to run commands? Log text is data. Tests with hostile payloads show decisions and statuses do not change. A separate LLM reading the report could still be swayed; the skills instruct it not to follow embedded instructions. Is the report digest a signature? No. Anyone can recompute it. It catches accidents. Usage Why was my record rejected? Open ingestion-errors.json . The usual cause is a timestamp without an offset. Why no hypothesis for my dependency outage? Classification is keyword based. Check the gaps and the unknown-cause hypothesis; open an issue with a sanitized sample. What does --synthetic do? Adds a banner so demo reports are never mistaken for a real incident. Which Node versions? 20, 22 and 24. Will it work in Cursor, Codex, Gemini CLI or Copilot? Skills are copied to each tool's project folder tested . Whether the tool discovers them depends on its version and is untested here. Project Licence? Apache-2.0. Who maintains it? Vatsal Shah. How do I report a vulnerability? GitHub private advisory; see SECURITY.md . What is planned? Read-only Prometheus or Loki adapter, OTel ingest, calibrated scoring, accessible console, team server. See ROADMAP.md . None is built."},{"t":"IncidentSutra AI documentation","u":"README.html","x":"IncidentSutra AI documentation Observe precisely. Reason cautiously. Recover responsibly. Created by Vatsal Shah. Apache-2.0. This folder is the complete reference for IncidentSutra AI v0.2.2. Every page exists as Markdown source and HTML generated, styled, light and dark, print-ready . Rebuild HTML with npm run build:docs ; CI fails if it is stale. Read in this order Audience Start here --- --- Executives, managers, procurement 01 Executive summary 01-executive-summary.md Product and incident commanders 02 Functional specification 02-functional-spec.md Engineers and contributors 03 Technical specification 03-technical-spec.md , 04 Architecture 04-architecture.md On-call users 05 User guide 05-user-guide.md Security, privacy, legal, compliance reviewers 06 Security, privacy and legal 06-security-privacy-legal.md Anyone deciding whether to trust it 07 Independent audit and evidence 07-independent-audit.md , Test results test-results.md People using AI coding tools 08 Agent catalogue 08-agent-catalog.md Quick answers 09 FAQ 09-faq.md , Glossary 12-glossary.md Anyone who prefers pictures Visual guide 11-visual-guide.md Learning by example Real-world scenarios 10-real-world-scenarios.md Evidence folder evidence/ holds machine-written artifacts: test-results.json , benchmark.json , audit/audit-report.{html,md,json} , and samples/ a full synthetic incident report in HTML, Markdown and JSON . None of it is edited by hand. Regenerate with npm run test:report , npx incidentsutra audit --out ... , npx incidentsutra benchmark --out ... and npm run demo . Ground rules this documentation follows - Claims are limited to what the code does and a test or audit check demonstrates. - Anything not built is labelled planned, never implied. - The project is advisory tooling. It does not replace a human incident commander, and nothing here is legal, compliance or security certification."}]</script><script src="assets/site.js" defer></script></body></html>
|