@praneeth_54/agentdoctor 2.0.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/CHANGELOG.md +123 -1
  2. package/README.md +510 -260
  3. package/dist/agent/approvals.d.ts +24 -0
  4. package/dist/agent/approvals.js +64 -0
  5. package/dist/agent/chat/deterministic.d.ts +6 -0
  6. package/dist/agent/chat/deterministic.js +180 -0
  7. package/dist/agent/chat/index.d.ts +7 -0
  8. package/dist/agent/chat/index.js +5 -0
  9. package/dist/agent/chat/memory.d.ts +44 -0
  10. package/dist/agent/chat/memory.js +103 -0
  11. package/dist/agent/chat/project-summary.d.ts +16 -0
  12. package/dist/agent/chat/project-summary.js +70 -0
  13. package/dist/agent/chat/prompts.d.ts +6 -0
  14. package/dist/agent/chat/prompts.js +39 -0
  15. package/dist/agent/chat/response.d.ts +19 -0
  16. package/dist/agent/chat/response.js +109 -0
  17. package/dist/agent/chat/service.d.ts +42 -0
  18. package/dist/agent/chat/service.js +246 -0
  19. package/dist/agent/chat/types.d.ts +48 -0
  20. package/dist/agent/chat/types.js +1 -0
  21. package/dist/agent/context/retrieve.d.ts +21 -0
  22. package/dist/agent/context/retrieve.js +117 -0
  23. package/dist/agent/context/truth.d.ts +6 -0
  24. package/dist/agent/context/truth.js +19 -0
  25. package/dist/agent/context/types.d.ts +23 -0
  26. package/dist/agent/context/types.js +4 -0
  27. package/dist/agent/index.d.ts +28 -0
  28. package/dist/agent/index.js +15 -0
  29. package/dist/agent/loop.d.ts +53 -0
  30. package/dist/agent/loop.js +253 -0
  31. package/dist/agent/modes.d.ts +18 -0
  32. package/dist/agent/modes.js +102 -0
  33. package/dist/agent/plan.d.ts +30 -0
  34. package/dist/agent/plan.js +121 -0
  35. package/dist/agent/roles.d.ts +12 -0
  36. package/dist/agent/roles.js +138 -0
  37. package/dist/agent/runtime.d.ts +83 -0
  38. package/dist/agent/runtime.js +293 -0
  39. package/dist/agent/state.d.ts +30 -0
  40. package/dist/agent/state.js +95 -0
  41. package/dist/agent/student.d.ts +56 -0
  42. package/dist/agent/student.js +230 -0
  43. package/dist/agent/tools/execute.d.ts +20 -0
  44. package/dist/agent/tools/execute.js +365 -0
  45. package/dist/agent/tools/index.d.ts +6 -0
  46. package/dist/agent/tools/index.js +5 -0
  47. package/dist/agent/tools/registry.d.ts +7 -0
  48. package/dist/agent/tools/registry.js +212 -0
  49. package/dist/agent/tools/run.d.ts +24 -0
  50. package/dist/agent/tools/run.js +44 -0
  51. package/dist/agent/tools/types.d.ts +32 -0
  52. package/dist/agent/tools/types.js +10 -0
  53. package/dist/agent/tools/write.d.ts +24 -0
  54. package/dist/agent/tools/write.js +121 -0
  55. package/dist/agent/verify.d.ts +29 -0
  56. package/dist/agent/verify.js +210 -0
  57. package/dist/ai/config.d.ts +22 -0
  58. package/dist/ai/config.js +69 -0
  59. package/dist/ai/index.d.ts +17 -0
  60. package/dist/ai/index.js +52 -0
  61. package/dist/ai/providers/mock.d.ts +20 -0
  62. package/dist/ai/providers/mock.js +84 -0
  63. package/dist/ai/providers/none.d.ts +6 -0
  64. package/dist/ai/providers/none.js +23 -0
  65. package/dist/ai/providers/openai-compatible.d.ts +21 -0
  66. package/dist/ai/providers/openai-compatible.js +151 -0
  67. package/dist/ai/redact.d.ts +9 -0
  68. package/dist/ai/redact.js +61 -0
  69. package/dist/ai/types.d.ts +71 -0
  70. package/dist/ai/types.js +6 -0
  71. package/dist/cli/commands/agent.d.ts +29 -0
  72. package/dist/cli/commands/agent.js +164 -0
  73. package/dist/cli/commands/chat.d.ts +14 -0
  74. package/dist/cli/commands/chat.js +153 -0
  75. package/dist/cli/commands/learn.d.ts +12 -0
  76. package/dist/cli/commands/learn.js +107 -0
  77. package/dist/cli/commands/product.d.ts +19 -0
  78. package/dist/cli/commands/product.js +147 -0
  79. package/dist/cli/commands/start.d.ts +15 -0
  80. package/dist/cli/commands/start.js +80 -0
  81. package/dist/cli/program.js +233 -0
  82. package/dist/constants.d.ts +1 -1
  83. package/dist/constants.js +1 -1
  84. package/dist/dashboard/server.d.ts +6 -0
  85. package/dist/dashboard/server.js +333 -43
  86. package/dist/enforcement/runner.d.ts +5 -0
  87. package/dist/enforcement/runner.js +51 -4
  88. package/dist/index.d.ts +17 -0
  89. package/dist/index.js +10 -0
  90. package/dist/intelligence/graph/build.js +36 -8
  91. package/dist/intelligence/resolve/imports.js +1 -1
  92. package/dist/languages/dart.d.ts +10 -0
  93. package/dist/languages/dart.js +99 -0
  94. package/dist/languages/go.d.ts +13 -7
  95. package/dist/languages/go.js +91 -26
  96. package/dist/languages/index.d.ts +5 -1
  97. package/dist/languages/index.js +13 -36
  98. package/dist/languages/java.d.ts +10 -0
  99. package/dist/languages/java.js +80 -0
  100. package/dist/languages/kotlin.d.ts +10 -0
  101. package/dist/languages/kotlin.js +85 -0
  102. package/dist/languages/php.d.ts +1 -0
  103. package/dist/languages/php.js +11 -2
  104. package/dist/languages/python.d.ts +6 -2
  105. package/dist/languages/python.js +39 -9
  106. package/dist/languages/rust.d.ts +10 -0
  107. package/dist/languages/rust.js +93 -0
  108. package/dist/languages/types.d.ts +4 -3
  109. package/dist/mcp/agent/registry.d.ts +13 -0
  110. package/dist/mcp/agent/registry.js +320 -0
  111. package/dist/mcp/agentdoctor/server.js +8 -1
  112. package/dist/mcp/intelligence/handlers.d.ts +3 -0
  113. package/dist/mcp/intelligence/handlers.js +28 -0
  114. package/dist/mcp/intelligence/registry.d.ts +1 -1
  115. package/dist/mcp/intelligence/registry.js +30 -1
  116. package/dist/product/api/doctor.d.ts +14 -0
  117. package/dist/product/api/doctor.js +185 -0
  118. package/dist/product/api/openapi.d.ts +7 -0
  119. package/dist/product/api/openapi.js +122 -0
  120. package/dist/product/approval/model.d.ts +30 -0
  121. package/dist/product/approval/model.js +64 -0
  122. package/dist/product/approval/session.d.ts +49 -0
  123. package/dist/product/approval/session.js +134 -0
  124. package/dist/product/database/doctor.d.ts +30 -0
  125. package/dist/product/database/doctor.js +184 -0
  126. package/dist/product/decisions/ledger.d.ts +24 -0
  127. package/dist/product/decisions/ledger.js +110 -0
  128. package/dist/product/deps/analyze.d.ts +46 -0
  129. package/dist/product/deps/analyze.js +137 -0
  130. package/dist/product/deps/lockfiles.d.ts +25 -0
  131. package/dist/product/deps/lockfiles.js +200 -0
  132. package/dist/product/discovery/roots.d.ts +42 -0
  133. package/dist/product/discovery/roots.js +215 -0
  134. package/dist/product/dna/build.d.ts +50 -0
  135. package/dist/product/dna/build.js +255 -0
  136. package/dist/product/eval/lab.d.ts +17 -0
  137. package/dist/product/eval/lab.js +218 -0
  138. package/dist/product/events/doctor.d.ts +21 -0
  139. package/dist/product/events/doctor.js +147 -0
  140. package/dist/product/evidence-scan.d.ts +12 -0
  141. package/dist/product/evidence-scan.js +46 -0
  142. package/dist/product/evolution/timeline.d.ts +29 -0
  143. package/dist/product/evolution/timeline.js +123 -0
  144. package/dist/product/features/intelligence.d.ts +23 -0
  145. package/dist/product/features/intelligence.js +158 -0
  146. package/dist/product/forensic/mode.d.ts +25 -0
  147. package/dist/product/forensic/mode.js +70 -0
  148. package/dist/product/graph/enrich-languages.d.ts +20 -0
  149. package/dist/product/graph/enrich-languages.js +193 -0
  150. package/dist/product/health/code-health.d.ts +20 -0
  151. package/dist/product/health/code-health.js +149 -0
  152. package/dist/product/index.d.ts +69 -0
  153. package/dist/product/index.js +35 -0
  154. package/dist/product/ledger/change-ledger.d.ts +23 -0
  155. package/dist/product/ledger/change-ledger.js +64 -0
  156. package/dist/product/map/software-map.d.ts +17 -0
  157. package/dist/product/map/software-map.js +95 -0
  158. package/dist/product/memory/institutional.d.ts +16 -0
  159. package/dist/product/memory/institutional.js +87 -0
  160. package/dist/product/ops/incident.d.ts +20 -0
  161. package/dist/product/ops/incident.js +61 -0
  162. package/dist/product/ops/infra.d.ts +15 -0
  163. package/dist/product/ops/infra.js +112 -0
  164. package/dist/product/org/model.d.ts +34 -0
  165. package/dist/product/org/model.js +195 -0
  166. package/dist/product/privacy/doctor.d.ts +13 -0
  167. package/dist/product/privacy/doctor.js +90 -0
  168. package/dist/product/requirements/trace.d.ts +21 -0
  169. package/dist/product/requirements/trace.js +166 -0
  170. package/dist/product/search/index.d.ts +29 -0
  171. package/dist/product/search/index.js +116 -0
  172. package/dist/product/search/software-search.d.ts +19 -0
  173. package/dist/product/search/software-search.js +100 -0
  174. package/dist/product/security/doctor.d.ts +23 -0
  175. package/dist/product/security/doctor.js +124 -0
  176. package/dist/product/self/diagnose.d.ts +15 -0
  177. package/dist/product/self/diagnose.js +82 -0
  178. package/dist/product/techdebt/roadmap.d.ts +20 -0
  179. package/dist/product/techdebt/roadmap.js +118 -0
  180. package/dist/product/testbrain/analyze.d.ts +29 -0
  181. package/dist/product/testbrain/analyze.js +129 -0
  182. package/dist/product/truth.d.ts +12 -0
  183. package/dist/product/truth.js +30 -0
  184. package/dist/product/twin/digital-twin.d.ts +23 -0
  185. package/dist/product/twin/digital-twin.js +52 -0
  186. package/dist/product/twin/store.d.ts +21 -0
  187. package/dist/product/twin/store.js +70 -0
  188. package/dist/product/whatif/engine.d.ts +28 -0
  189. package/dist/product/whatif/engine.js +70 -0
  190. package/dist/security/paths.js +43 -15
  191. package/dist/utils/fs.js +10 -2
  192. package/package.json +1 -1
package/README.md CHANGED
@@ -1,214 +1,278 @@
1
1
  # AgentDoctor
2
2
 
3
- ## Engineering assurance for AI coding agents.
3
+ ### The intelligence and assurance layer for software projects.
4
4
 
5
- Understand your codebase, assess the impact of changes, govern engineering knowledge, enforce safety policies, and attach inspectable evidence to AI-driven changes.
5
+ **Understand your codebase. Build safely. Verify the result.**
6
+
7
+ Ask questions about a real repository. Plan a change. Require approval. Edit under path-safe controls. Map tests and risk. Attach evidence. Prove integrity — without pretending the change is “correct.”
6
8
 
7
9
  [![npm](https://img.shields.io/npm/v/@praneeth_54/agentdoctor?label=npm)](https://www.npmjs.com/package/@praneeth_54/agentdoctor)
8
10
  [![CI](https://img.shields.io/github/actions/workflow/status/pranee54/AgentDoctor/ci.yml?branch=main&label=CI)](https://github.com/pranee54/AgentDoctor/actions/workflows/ci.yml)
9
11
  [![Node](https://img.shields.io/node/v/@praneeth_54/agentdoctor)](https://nodejs.org)
10
- [![License](https://img.shields.io/github/license/pranee54/AgentDoctor)](LICENSE)
12
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
11
13
 
12
- **In-repo cut:** `2.0.1` (publish pending human authorization). Last published: [`@praneeth_54/agentdoctor@2.0.0`](https://www.npmjs.com/package/@praneeth_54/agentdoctor)
14
+ **Published package:** [`@praneeth_54/agentdoctor`](https://www.npmjs.com/package/@praneeth_54/agentdoctor)
15
+ **Current product:** **3.0** — project intelligence & assurance core (see [Verification](#verification))
13
16
 
14
- [Install](#install) · [Quickstart](#quickstart) · [Change assurance](#change-assurance) · [Documentation](docs/2.0.1/README.md) · [MCP](#mcp) · [GitHub Action](#github-action) · [Architecture](#architecture)
17
+ [Install](#install) · [5-minute quickstart](#five-minute-quickstart) · [What it can do](#what-can-it-do) · [Students](#for-students) · [MCP](#mcp) · [Security](#security-model) · [Limitations](#limitations) · [Docs](#documentation)
15
18
 
16
19
  ---
17
20
 
18
- ## What AgentDoctor is
21
+ ## What is AgentDoctor?
22
+
23
+ AgentDoctor is a **project-aware intelligence and assurance platform**. It helps people understand, learn, plan, safely change, test, secure, verify, and remember software projects — whether the code was written by hand, with AI, or by a coding agent.
24
+
25
+ Most tools answer one slice of the problem:
26
+
27
+ | Tool type | Typical job |
28
+ | ----------------- | --------------------- |
29
+ | Linters | Style / static issues |
30
+ | Test runners | Execute tests |
31
+ | Code search | Find text / symbols |
32
+ | Security scanners | Find vulnerabilities |
33
+ | AI coding agents | Propose / apply edits |
19
34
 
20
- AgentDoctor sits between developers / AI coding agents and the repository’s engineering reality.
35
+ AgentDoctor connects those concerns around **the project itself**. It builds local understanding of structure, relationships, dependencies, Git, tests, security signals, requirements, and evidence — then uses that understanding across:
21
36
 
22
- AI agents can write code quickly. The harder engineering problem is knowing whether a change is **correct, safe, compatible, explainable, and consistent** with the rest of the repository.
37
+ ```text
38
+ UNDERSTAND → ASK → PLAN → APPROVE → CHANGE → TEST → SECURE → VERIFY → PROVE
39
+ ```
23
40
 
24
- AgentDoctor collects repository signals — source structure, graphs, Git history, policies, knowledge, and verification evidence — so humans and agents can reason about changes with fewer unsupported assumptions.
41
+ It is **not** “another chatbot,” a Cursor clone, a generic coding agent, or a claim of full autonomy.
25
42
 
26
- It is **not** an autonomous coding agent, chatbot, or IDE interceptor. It does **not** guarantee correctness. It produces **evidence and controls** you can inspect.
43
+ **Invariant**
27
44
 
28
- **Short description:** Engineering assurance for AI coding agents — repository intelligence, change evidence, safety controls, and MCP tools.
45
+ ```text
46
+ THE MODEL REASONS.
47
+ AGENTDOCTOR PROVIDES PROJECT CONTEXT.
48
+ AGENTDOCTOR CONTROLS TOOLS.
49
+ AGENTDOCTOR VERIFIES RESULTS.
50
+ ```
51
+
52
+ The model is **not** the source of truth. Repository evidence is.
29
53
 
30
54
  ---
31
55
 
32
- ## Why AgentDoctor?
56
+ ## Why it exists
33
57
 
34
- Modern AI coding agents can:
58
+ AI tools can write code quickly. Engineering still needs answers to:
35
59
 
36
- - read individual files
37
- - generate and edit code
38
- - run tests when asked
60
+ - What is this project?
61
+ - What depends on this module?
62
+ - What breaks if I change it?
63
+ - Which tests matter?
64
+ - Is this change within policy / workspace bounds?
65
+ - Did the requested change actually happen?
66
+ - What evidence supports the result?
67
+ - What remains UNKNOWN?
39
68
 
40
- Repository-level context is usually fragmented across:
69
+ AgentDoctor exists for that loop — locally, inspectably, with explicit truth labels.
41
70
 
42
- | Signal | Typical location |
43
- | ------------------ | ------------------------------ |
44
- | Source structure | AST / imports / modules |
45
- | Dependencies | manifests / lockfiles |
46
- | History | Git |
47
- | Architecture | docs / conventions / inference |
48
- | Tests | test trees / naming heuristics |
49
- | Policy | CI rules / allowlists |
50
- | Decisions | ADRs / RFCs / tribal knowledge |
51
- | Secrets / exposure | config files / ignore rules |
71
+ ---
52
72
 
53
- AgentDoctor brings those signals into one local toolchain around an AI-driven engineering change:
73
+ ## How it works
54
74
 
55
75
  ```text
56
- Developer / AI Agent
57
- │
58
- ▼
59
- AgentDoctor
60
- │
61
- ┌───────────────────────────────┐
62
- │ Repository Intelligence │
63
- │ AST / Graph / Git / Impact │
64
- ├───────────────────────────────┤
65
- │ Engineering Knowledge │
66
- │ Brain / Decisions / Provenance│
67
- ├───────────────────────────────┤
68
- │ Safety & Policy │
69
- │ Scan / Fix / Enforce / Secrets│
70
- ├───────────────────────────────┤
71
- │ Verification │
72
- │ Tests / Reports / Evidence │
73
- └───────────────────────────────┘
74
- │
75
- ▼
76
- Safer, explainable engineering decisions
76
+ User / Student / Developer / AI agent
77
+ │
78
+ ▼
79
+ AgentDoctor
80
+ (CLI · MCP · Dashboard)
81
+ │
82
+ ▼
83
+ Project Understanding
84
+ ┌─────────────┬─────────────┬──────────────┐
85
+ │ Project Brain │ Code Graph │ Project DNA │
86
+ │ Architecture │ Deps/Git │ Tests/Sec │
87
+ │ Requirements │ Search │ Evidence │
88
+ └─────────────┴─────────────┴──────────────┘
89
+ │
90
+ ▼
91
+ Reasoning (optional LLM / deterministic)
92
+ │
93
+ ▼
94
+ Controlled tools (path-safe)
95
+ │
96
+ ▼
97
+ Verification · Evidence · Proof
77
98
  ```
78
99
 
79
100
  ---
80
101
 
81
- ## Capability map
102
+ ## Who is it for?
82
103
 
83
- Status labels: **SUPPORTED** · **PARTIAL** · **EXPERIMENTAL** · **NOT YET SUPPORTED**
104
+ ### Students
84
105
 
85
- Details and evidence: [docs/2.0/overview/capabilities.md](docs/2.0/overview/capabilities.md) · [readiness matrix](docs/2.0/overview/readiness-matrix.md)
106
+ College / B.Tech / final-year projects, inherited repos, viva prep, documentation.
86
107
 
87
- ### Repository intelligence
88
-
89
- | Capability | Status |
90
- | ---------------------------------------------------- | ------------ |
91
- | TypeScript / JavaScript AST graph (+ regex fallback) | PARTIAL |
92
- | Import / inferred call relationships | PARTIAL |
93
- | Git hotspot / engineering intelligence | PARTIAL |
94
- | Change / test / refactor impact | PARTIAL |
95
- | C4-style architecture views | EXPERIMENTAL |
108
+ ```bash
109
+ agentdoctor start
110
+ agentdoctor learn .
111
+ agentdoctor learn . --viva
112
+ agentdoctor learn . --docs
113
+ agentdoctor ask "Explain authentication like a beginner." .
114
+ ```
96
115
 
97
- ### Engineering knowledge
116
+ Use **Build With Me** only with explicit approval (`--approve`) before writes.
98
117
 
99
- | Capability | Status |
100
- | ------------------------------------------------------------- | --------- |
101
- | Project Brain store + evidence-backed claims | SUPPORTED |
102
- | Repository Brain init / proposal review (never auto-approved) | PARTIAL |
103
- | Governed knowledge + abstention on retrieve | PARTIAL |
104
- | Provenance envelopes on Brain MCP tools | SUPPORTED |
118
+ ### Developers
105
119
 
106
- ### Agent interfaces
120
+ Inherited codebases, impact analysis, deps, architecture, change assurance.
107
121
 
108
- | Capability | Status |
109
- | --------------------------------------------------------------------------------- | --------- |
110
- | Brain MCP (`brain_*` tools, STDIO) | SUPPORTED |
111
- | Combined MCP (Brain + intelligence tools) | PARTIAL |
112
- | Agent adapters (Cursor, Claude Code, Codex, Copilot, Windsurf, Gemini CLI, Aider) | SUPPORTED |
113
- | Local dashboard + `/api/v2/*` | PARTIAL |
114
- | Programmatic API (`scan`, Fix, Brain helpers) | SUPPORTED |
122
+ ```bash
123
+ agentdoctor dna .
124
+ agentdoctor graph .
125
+ agentdoctor map .
126
+ agentdoctor deps .
127
+ agentdoctor search "login" .
128
+ agentdoctor what-if src/auth.js .
129
+ agentdoctor change analyze .
130
+ ```
115
131
 
116
- ### Safety & governance
132
+ ### AI-assisted developers
117
133
 
118
- | Capability | Status |
119
- | -------------------------------------------------------- | --------------------- |
120
- | Scan → Safe Fix → Verify | SUPPORTED |
121
- | Policy gates (`--min-score`, severity, rule, verify-new) | SUPPORTED |
122
- | Evaluate-only policy / controlled enforcement runner | PARTIAL |
123
- | Secret scan (redacted findings) + export redaction | PARTIAL |
124
- | Path-safety for MCP / dashboard | PARTIAL |
125
- | Local-dev team auth (scrypt) | PARTIAL — **not SSO** |
134
+ Works alongside Cursor, Claude Code, Codex, Copilot, Windsurf, Gemini CLI, Aider, and similar workflows as an **assurance / intelligence layer** (scan adapters + MCP) — not as a replacement IDE.
126
135
 
127
- ### Verification
136
+ ```bash
137
+ agentdoctor mcp --root /absolute/path/to/project
138
+ agentdoctor plan "Add password reset" .
139
+ agentdoctor agent --goal "…" --approve --apply --apply-ops '[...]' .
140
+ ```
128
141
 
129
- | Capability | Status |
130
- | ------------------------------------------------------- | -------------------------- |
131
- | Change assurance assessment + evidence bundles | PARTIAL |
132
- | Evidence hash verify (`verified` = integrity only) | SUPPORTED |
133
- | Unit / integration / MCP STDIO tests (`npm run verify`) | SUPPORTED |
134
- | Packed CLI clean-install smoke | SUPPORTED |
135
- | Reproducible AST perf harness | PARTIAL (synthetic sample) |
142
+ ### Security / reviewers
136
143
 
137
- ---
144
+ Secrets (redacted), technical security heuristics, forensic read-only mode, path/approval controls, evidence.
138
145
 
139
- ## How AgentDoctor is different
146
+ ```bash
147
+ agentdoctor secrets .
148
+ agentdoctor security-doctor .
149
+ AGENTDOCTOR_FORENSIC_MODE=1 agentdoctor forensic .
150
+ agentdoctor evidence verify <changeId> .
151
+ ```
140
152
 
141
- Most engineering tools optimize one layer: static analysis, search, docs generation, dashboards, security scanners, or AI chat.
153
+ ### Teams / owners
142
154
 
143
- AgentDoctor is designed around the **lifecycle of an AI-driven change**:
155
+ Local project DNA, twin snapshots, decisions/ADRs, org catalog (local JSON — not enterprise SSO).
144
156
 
145
- ```text
146
- Repository
147
- → Understand
148
- → Impact
149
- → Knowledge
150
- → Policy
151
- → Change
152
- → Verification
153
- → Evidence
157
+ ```bash
158
+ agentdoctor twin .
159
+ agentdoctor decisions .
160
+ agentdoctor org .
161
+ agentdoctor dashboard .
154
162
  ```
155
163
 
156
- That combination is the product direction. It does not mean every layer is equally mature — see the capability map and limitations.
164
+ ---
165
+
166
+ ## What can it do?
167
+
168
+ Status below = **complete at defined local scope** (see [docs/LIMITATIONS.md](docs/LIMITATIONS.md)). **EXTERNAL** means outside systems are required for that upgrade path.
169
+
170
+ ### Understand
171
+
172
+ | Capability | CLI / surface | Notes |
173
+ | -------------------------------- | -------------------- | ------------------------------ |
174
+ | Safe project discovery | `start` | Refuses home/Desktop dumps |
175
+ | Project DNA | `dna`, `start` | Manifest / marker evidence |
176
+ | Code graph + AST | `graph` | Strong TS/JS; host/line others |
177
+ | Architecture / C4 | `architecture`, `c4` | Advisory unless you gate it |
178
+ | Dependencies + lockfiles | `deps` | VERIFIED when lock parsed |
179
+ | Software map / code health | `map`, `health-code` | Layout + indicators |
180
+ | Project Brain | `brain`, MCP | Local, deterministic |
181
+ | Requirements / API / DB / events | `requirements`, … | File evidence; live = EXTERNAL |
182
+
183
+ ### Ask
184
+
185
+ | Capability | CLI / surface | Notes |
186
+ | ------------ | ------------- | ---------------------------------------- |
187
+ | Project Chat | `ask`, `chat` | Deterministic without LLM; LLM optional |
188
+ | Truth labels | responses | VERIFIED / INFERRED / UNKNOWN / EXTERNAL |
189
+ | Search | `search`, MCP | Lexical / TF-IDF; embeddings = EXTERNAL |
190
+
191
+ ### Build
192
+
193
+ | Capability | CLI / surface | Notes |
194
+ | ----------------- | --------------------- | -------------------------------------------- |
195
+ | Plan | `plan` | No writes |
196
+ | Coding agent | `agent`, `role-agent` | Writes need `--approve` |
197
+ | MCP agent tools | `mcp` | Token + planHash; bare `approved:true` fails |
198
+ | Controlled runner | `run`, `policy` | Shell off by default |
199
+
200
+ ### Test
201
+
202
+ | Capability | CLI / surface | Notes |
203
+ | -------------- | ------------- | --------------------------------------- |
204
+ | Test Brain | `test-brain` | Mapping / impact — not mutation testing |
205
+ | Impact | `impact` | Heuristic; coverage optional |
206
+ | Evaluation lab | `eval-lab` | Fixture checks |
207
+
208
+ ### Secure
209
+
210
+ | Capability | CLI / surface | Notes |
211
+ | ------------------ | ------------------ | ---------------------------------------- |
212
+ | Secrets (redacted) | `secrets` | Values never printed |
213
+ | Security Doctor | `security-doctor` | Technical heuristics ≠ commercial SAST |
214
+ | Forensic mode | `forensic` + env | Read-only; blocks writes/exec |
215
+ | Path / workspace | all write surfaces | Traversal / symlink escape blocked |
216
+ | Privacy Doctor | `privacy-doctor` | Technical PII-ish — not legal compliance |
217
+
218
+ ### Verify
219
+
220
+ | Capability | CLI / surface | Notes |
221
+ | ------------------- | ------------------------------------ | ----------------------------------- |
222
+ | Change analyze | `change analyze` | |
223
+ | Evidence / proof | `change verify`, `evidence`, `proof` | Integrity ≠ engineering correctness |
224
+ | Scan → Fix → Verify | `scan`, `fix`, `verify` | Agent-config safety |
225
+ | Self-check | `self-check` | Installation diagnosis |
226
+
227
+ ### Learn
228
+
229
+ | Capability | CLI |
230
+ | ------------------- | -------------------------------------------------- |
231
+ | Learn / viva / docs | `learn`, `--viva`, `--docs` |
232
+ | Build With Me | `learn --mode BUILD_WITH_ME --build "…" --approve` |
233
+
234
+ ### Remember / operate (local)
235
+
236
+ | Capability | CLI / surface | Boundary |
237
+ | --------------------- | ------------------------ | ------------------------------------------------ |
238
+ | Decisions / evolution | `decisions`, `evolution` | Local ledgers / git |
239
+ | Digital Twin | `twin` | Local snapshot — not live runtime twin |
240
+ | What-if | `what-if` | Graph impact — not certainty |
241
+ | Infra markers | `infra` | Compose/K8s/TF **files** — live cluster EXTERNAL |
242
+ | Incident hypotheses | `incident` | Not auto-verified root cause; APM EXTERNAL |
243
+ | Org catalog | `org` | Local JSON — IdP EXTERNAL |
157
244
 
158
245
  ---
159
246
 
160
- ## Architecture
247
+ ## Not just a coding agent
248
+
249
+ A coding agent can modify files. AgentDoctor is built for the full loop:
161
250
 
162
251
  ```text
163
- AgentDoctor
164
- │
165
- ├── Repository Intelligence
166
- │ ├── AST (TS/JS)
167
- │ ├── Graph
168
- │ ├── Git
169
- │ └── Impact
170
- │
171
- ├── Engineering Knowledge
172
- │ ├── Brain
173
- │ ├── Governance
174
- │ └── Provenance
175
- │
176
- ├── Safety
177
- │ ├── Scanner
178
- │ ├── Safe Fix
179
- │ ├── Secrets
180
- │ └── Policies
181
- │
182
- ├── Agent Interface
183
- │ ├── MCP (brain-mcp / mcp)
184
- │ ├── CLI
185
- │ ├── API / dashboard
186
- │ └── Adapters
187
- │
188
- └── Verification
189
- ├── Tests
190
- ├── Reports
191
- └── Release validation
252
+ UNDERSTAND → PLAN → APPROVE → CHANGE → TEST → SECURE → VERIFY → PROVE
192
253
  ```
193
254
 
194
- Code layout: `src/{intelligence,knowledge,core,mcp,platform,enforcement,cli}/`
255
+ **Don't just generate a change. Understand the project and verify the change.**
256
+
257
+ Proof means **hash integrity over evidence**, with:
195
258
 
196
- Canonical docs: [docs/2.0/overview/architecture.md](docs/2.0/overview/architecture.md)
259
+ `ENGINEERING_CORRECTNESS_NOT_CLAIMED`
197
260
 
198
261
  ---
199
262
 
200
- ## Engineering principles
263
+ ## Workflow: “Add password reset”
201
264
 
202
- 1. Evidence over assumptions
203
- 2. Explicit limitations over inflated claims
204
- 3. Safety before automation
205
- 4. Repository context over isolated files
206
- 5. Human approval for governed decisions
207
- 6. Backwards compatibility where documented
208
- 7. Reproducible verification
209
- 8. Explainable agent actions
210
- 9. Least privilege
211
- 10. Secure defaults
265
+ 1. `agentdoctor start` — discover project, DNA, Brain
266
+ 2. `agentdoctor ask "How does authentication work?"` — evidence-backed / deterministic paths
267
+ 3. `agentdoctor search login` / `what-if src/auth.js` — related files & tests
268
+ 4. `agentdoctor plan "Add password reset"` — plan only; **no writes**
269
+ 5. Review risk; approve explicitly
270
+ 6. `agentdoctor agent --goal "Add password reset" --approve --apply --apply-ops '[…]'` — path-safe tools
271
+ 7. `agentdoctor change analyze` / `change verify` — assessment + evidence
272
+ 8. `agentdoctor proof` — integrity check
273
+ 9. Read **Verified / Not verified / UNKNOWN** — never treat integrity as product correctness
274
+
275
+ Student path: `learn` → ask → viva → docs → Build With Me (with `--approve`).
212
276
 
213
277
  ---
214
278
 
@@ -217,178 +281,364 @@ Canonical docs: [docs/2.0/overview/architecture.md](docs/2.0/overview/architectu
217
281
  Requires **Node.js 20+**.
218
282
 
219
283
  ```bash
220
- # Local/RC version is 2.0.1; npm registry may still show 2.0.0 until published.
221
- npm install -g @praneeth_54/agentdoctor@2.0.1 # after publish
222
- # or from a packed tarball / this repo:
223
- # npm install /path/to/praneeth_54-agentdoctor-2.0.1.tgz
224
- npx @praneeth_54/agentdoctor@2.0.1 --help # after publish
284
+ npm install -g @praneeth_54/agentdoctor@3.0.0
285
+ agentdoctor --version # 3.0.0
286
+ agentdoctor --help
225
287
  ```
226
288
 
227
- From source:
289
+ Or without global install:
228
290
 
229
291
  ```bash
230
- git clone https://github.com/pranee54/AgentDoctor.git
231
- cd AgentDoctor
232
- npm install
233
- npm run verify
292
+ npx @praneeth_54/agentdoctor@3.0.0 --help
234
293
  ```
235
294
 
236
295
  ---
237
296
 
238
- ## Quickstart
297
+ ## Five-minute quickstart
298
+
299
+ ```bash
300
+ # 1. Install
301
+ npm install -g @praneeth_54/agentdoctor@3.0.0
302
+
303
+ # 2. Enter YOUR project (not your home folder)
304
+ cd /path/to/my-project
305
+
306
+ # 3. Discover
307
+ agentdoctor start
308
+
309
+ # 4. Understand
310
+ agentdoctor dna .
311
+ agentdoctor graph .
312
+ agentdoctor map .
313
+
314
+ # 5. Ask (works without an LLM — deterministic analyzers)
315
+ agentdoctor ask "Explain my project." .
316
+ agentdoctor ask "How does authentication work?" .
317
+
318
+ # 6. Inspect
319
+ agentdoctor search "TODO" .
320
+ agentdoctor deps .
321
+ agentdoctor security-doctor .
322
+
323
+ # 7. Plan a change (no writes)
324
+ agentdoctor plan "Add a health check endpoint" .
325
+
326
+ # 8. Apply only with explicit approval (example ops JSON; --goal required)
327
+ agentdoctor agent --goal "Add a health check note" --approve --apply \
328
+ --apply-ops '[{"name":"create_file","arguments":{"path":"HEALTH.md","content":"# Health\n"}}]' .
329
+
330
+ # 9. Verify change signals
331
+ agentdoctor change analyze .
332
+ agentdoctor changes .
333
+ ```
334
+
335
+ Optional UI (loopback):
239
336
 
240
337
  ```bash
241
- agentdoctor --version # 2.0.1
242
- agentdoctor scan .
243
- agentdoctor scan . --json
244
- agentdoctor fix --dry-run
245
- agentdoctor verify --baseline agentdoctor-report.json
246
-
247
- # Repository Brain proposals (not auto-approved)
248
- agentdoctor init --name "My App" --domain "payments"
249
- agentdoctor brain proposals
250
-
251
- # Intelligence
252
- agentdoctor graph --mode auto --json
253
- agentdoctor impact --json
254
- agentdoctor c4 --json
255
-
256
- # Change assurance
257
- agentdoctor change analyze
258
- agentdoctor change verify
259
- agentdoctor change explain|diff|status
260
- agentdoctor evidence inspect <id>
261
- agentdoctor evidence verify <id>
262
- agentdoctor proof build|inspect|verify|export <id>
263
-
264
- # Architecture / policy / controlled run
265
- agentdoctor architecture init|check|explain
266
- agentdoctor policy check|explain --command "npm test"
267
- agentdoctor run explain --command "npm test"
268
- agentdoctor workspace create|add|list|status|remove
269
-
270
- # MCP (absolute --root required)
271
- agentdoctor brain-mcp --root /ABS/PATH/TO/REPO
272
- agentdoctor mcp --root /ABS/PATH/TO/REPO
338
+ agentdoctor dashboard .
339
+ # → http://127.0.0.1:<port>/
273
340
  ```
274
341
 
275
- CLI reference: [docs/2.0/guides/cli.md](docs/2.0/guides/cli.md) · Change assurance: [docs/2.0.1/change-assurance.md](docs/2.0.1/change-assurance.md)
342
+ ---
343
+
344
+ ## Command reference
345
+
346
+ All commands below exist in the current CLI (`agentdoctor --help`). Prefer `--json` for scripts.
347
+
348
+ <details>
349
+ <summary><strong>Project & intelligence</strong></summary>
350
+
351
+ | Command | Purpose |
352
+ | ----------------------------------------------------------- | ------------------------------- |
353
+ | `start [path]` | Safe discovery, DNA, Brain init |
354
+ | `dna [path]` | Project DNA fingerprint |
355
+ | `graph [path]` | Intelligence graph |
356
+ | `map [path]` | Software map |
357
+ | `deps` / `dependency` | Dependencies + lockfiles |
358
+ | `search <query>` | Symbol / concept search |
359
+ | `health` / `health-code` | Git / code health |
360
+ | `requirements` / `api` / `database` / `events` / `features` | Lifecycle intelligence |
361
+ | `twin` / `what-if` / `forensic` / `evolution` / `memory` | Twin, impact, forensic, memory |
362
+ | `infra` / `incident` / `org` | Local ops / org catalog |
363
+
364
+ </details>
365
+
366
+ <details>
367
+ <summary><strong>Chat, agent, learning</strong></summary>
368
+
369
+ | Command | Purpose | Safety |
370
+ | ----------------------- | ------------------------------------------- | ------------------------------ |
371
+ | `ask <question> [path]` | One-shot Project Chat | Deterministic if no provider |
372
+ | `chat [path]` | Interactive chat | Needs provider for LLM mode |
373
+ | `plan <goal>` | Plan only | No file edits |
374
+ | `agent` | Tools / apply | `--apply` requires `--approve` |
375
+ | `role-agent` | Role allowlists | Same approval gates |
376
+ | `learn` | Student explain / viva / docs / build modes | Writes need approval |
377
+
378
+ </details>
379
+
380
+ <details>
381
+ <summary><strong>Security, change, evidence</strong></summary>
382
+
383
+ | Command | Purpose |
384
+ | ------------------------------------------------ | -------------------------------- |
385
+ | `scan` / `fix` / `verify` | Agent-config Scan → Fix → Verify |
386
+ | `secrets` / `security-doctor` / `privacy-doctor` | Secrets & technical doctors |
387
+ | `change analyze` / `change verify` | Change assessment & evidence |
388
+ | `evidence` / `proof` | Inspect / integrity |
389
+ | `policy` / `run` / `enforce` | Controlled execution |
390
+ | `self-check` / `eval-lab` / `doctor` | Self / eval / install health |
391
+
392
+ </details>
393
+
394
+ <details>
395
+ <summary><strong>Brain, MCP, dashboard, workspace</strong></summary>
396
+
397
+ | Command | Purpose |
398
+ | ------------------------- | ----------------------------------------------------------- |
399
+ | `brain` | Project Brain CLI |
400
+ | `mcp --root <abs-or-rel>` | Combined Brain + intelligence + agent MCP (STDIO) |
401
+ | `brain-mcp` | Brain-only MCP |
402
+ | `dashboard [path]` | Local read-only SPA (loopback) |
403
+ | `workspace` | Multi-repo local isolation under `.agentdoctor/workspaces/` |
404
+
405
+ </details>
276
406
 
277
407
  ---
278
408
 
279
- ## Change assurance
409
+ ## AI providers
280
410
 
281
- Structured assessment, evidence bundles, and Change Proof **integrity** (not engineering correctness). Optional `--coverage` for coverage-backed / hybrid test impact. See [docs/2.0.1/FINAL_COMPLETION_AUDIT.md](docs/2.0.1/FINAL_COMPLETION_AUDIT.md).
411
+ **AI is optional.** Core discovery, DNA, graph, scan/fix/verify, deps, search, security heuristics, evidence, and deterministic `ask` work **without** an API key.
412
+
413
+ Implemented providers ([docs/MODEL_PROVIDERS.md](docs/MODEL_PROVIDERS.md)):
414
+
415
+ | Provider | Role |
416
+ | --------------------------------- | -------------------------------- |
417
+ | `none` | Default fail-closed for LLM chat |
418
+ | `deterministic` / local analyzers | Project Chat without LLM |
419
+ | `mock` | Tests / demos |
420
+ | `openai-compatible` | OpenAI-compatible HTTP API |
421
+ | `ollama` | Local Ollama-compatible HTTP |
422
+
423
+ Configure with `AGENTDOCTOR_AI_PROVIDER`, `AGENTDOCTOR_AI_API_KEY`, `AGENTDOCTOR_AI_BASE_URL`, `AGENTDOCTOR_AI_MODEL`.
424
+
425
+ **Not implemented:** native Anthropic / Gemini clients (do not claim).
426
+
427
+ ---
428
+
429
+ ## MCP
430
+
431
+ Connect AgentDoctor to AI coding workflows over STDIO:
282
432
 
283
433
  ```bash
284
- agentdoctor change analyze # ChangeAssessment (verificationStatus: not-run)
285
- agentdoctor change verify # write .agentdoctor/evidence/<id>/ (evidence-produced)
286
- agentdoctor change explain|diff|status
287
- agentdoctor evidence inspect <id> # list artifacts + manifest
288
- agentdoctor evidence verify <id> # SHA-256 check; verified only if all hashes match
289
- agentdoctor proof inspect|verify <id> # integrity; correctnessStatus always NOT_CLAIMED
434
+ agentdoctor mcp --root /absolute/path/to/project
290
435
  ```
291
436
 
292
- `verified` means artifact integrity against the manifest — not that the change is correct or safe. Details: [docs/2.0.1/change-assurance.md](docs/2.0.1/change-assurance.md) · [docs/2.0.1/evidence.md](docs/2.0.1/evidence.md)
437
+ Audited combined server exposes **38 tools** (Brain + intelligence + agent), including project DNA/context/ask, search, file read, planning, change analysis, and controlled writes.
438
+
439
+ **Safety (verified):**
440
+
441
+ - Path / workspace bounds; traversal rejected
442
+ - Writes need trusted `approvalToken` + `planHash` + resource binding
443
+ - Bare `approved: true` is **rejected**
444
+ - `approval_issue` requires `AGENTDOCTOR_MCP_TRUSTED_APPROVE=1`
445
+ - Secret redaction; no unrestricted shell tool
446
+ - Forensic mode blocks write/execute
447
+
448
+ Details: [docs/MCP.md](docs/MCP.md) · [docs/AGENT_APPROVALS.md](docs/AGENT_APPROVALS.md)
293
449
 
294
450
  ---
295
451
 
296
- ## MCP
452
+ ## Security model
297
453
 
298
- AgentDoctor exposes local **STDIO** MCP servers (no API key).
454
+ Repository content is **untrusted data** — never system policy.
299
455
 
300
- | Server | Command | Tools |
301
- | ------------ | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
302
- | Brain MCP | `agentdoctor brain-mcp --root <abs>` | `brain_overview`, `brain_query`, `brain_explain`, `brain_trace`, `brain_claims`, `brain_evidence`, `brain_ownership`, `brain_risk`, `brain_delta`, `brain_snapshot` |
303
- | Combined MCP | `agentdoctor mcp --root <abs>` | All `brain_*` tools **plus** intelligence tools below |
456
+ Controls include:
304
457
 
305
- Intelligence tools (combined MCP):
306
- `repo_overview`, `codebase_search`, `symbol_lookup`, `dependency_lookup`, `call_graph_lookup`, `test_impact`, `refactor_impact`, `code_health`, `architecture_info`, `architecture_check`, `knowledge_retrieve`, `policy_evaluate`, `change_analyze`, `proof_inspect`, `evidence_inspect`, `graph_query`
458
+ - Central path safety (traversal, symlinks, workspace escape)
459
+ - Approval-bound mutations (CLI `--approve` / MCP grants)
460
+ - Controlled runner (`shell=false` by default)
461
+ - Secret scanning with **redaction**
462
+ - Forensic read-only mode (`AGENTDOCTOR_FORENSIC_MODE=1`)
463
+ - Prompt-injection treated as data (eval fixture + chat framing)
464
+ - Evidence / audit trails
307
465
 
308
- Guide: [docs/2.0/guides/mcp.md](docs/2.0/guides/mcp.md) · Deep Brain MCP: [docs/mcp/brain-mcp.md](docs/mcp/brain-mcp.md)
466
+ AgentDoctor does **not** claim to be “completely safe,” a legal compliance product, or a commercial SAST replacement.
467
+
468
+ Policy: [SECURITY.md](SECURITY.md) · Model: [docs/SECURITY_MODEL.md](docs/SECURITY_MODEL.md)
309
469
 
310
470
  ---
311
471
 
312
- ## GitHub Action
472
+ ## Truth model
473
+
474
+ | Label | Meaning |
475
+ | ------------ | ----------------------------------------- |
476
+ | **VERIFIED** | Directly supported by repository evidence |
477
+ | **INFERRED** | Derived from available signals |
478
+ | **UNKNOWN** | Insufficient evidence |
479
+ | **EXTERNAL** | Needs systems outside the local repo |
313
480
 
314
- Use AgentDoctor Safety in CI for scan / verify gates. Default npm version input is **`2.0.1`**.
481
+ Honesty is a feature: the system should not invent files, line numbers, or root causes.
482
+
483
+ ---
315
484
 
316
- ```yaml
317
- - uses: pranee54/AgentDoctor@v2.0.1
318
- with:
319
- path: .
320
- version: "2.0.1"
321
- fail-on-severity: critical
485
+ ## Evidence and proof
486
+
487
+ AgentDoctor answers: what changed, what was affected, what evidence exists, what was integrity-checked, and what remains uncertain.
488
+
489
+ ```bash
490
+ agentdoctor change analyze .
491
+ agentdoctor change verify .
492
+ agentdoctor evidence inspect <changeId> .
493
+ agentdoctor proof verify <changeId> .
322
494
  ```
323
495
 
324
- For repository CI against the checked-out build: `version: workspace` (requires `dist/` from `npm run build`).
496
+ **Proof = hash integrity over an evidence bundle.** It is **not** a formal proof of correctness.
325
497
 
326
- Guide: [docs/2.0/guides/github-action.md](docs/2.0/guides/github-action.md) · Action metadata: [`action.yml`](action.yml)
498
+ ---
499
+
500
+ ## Architecture (modules)
501
+
502
+ ```text
503
+ CLI / MCP / Dashboard
504
+ │
505
+ ▼
506
+ Agent runtime · Project Chat · Student / roles
507
+ │
508
+ ▼
509
+ Context retrieval · Truth labels
510
+ │
511
+ ▼
512
+ Project Brain · Graph/AST · DNA · Git · Deps · Tests · Security · Twin
513
+ │
514
+ ▼
515
+ Path-safe tools · Approvals · Controlled runner
516
+ │
517
+ ▼
518
+ Change assessment · Evidence · Proof
519
+ ```
327
520
 
328
- Marketplace listing: confirm in the GitHub UI if you need Marketplace discovery beyond the Action in this repository.
521
+ Primary code: `src/cli`, `src/agent`, `src/product`, `src/intelligence`, `src/mcp`, `src/dashboard`, `src/core`, `src/assurance`, `src/security`.
329
522
 
330
523
  ---
331
524
 
332
- ## Security model
525
+ ## Technology stack
333
526
 
334
- | Control | Behavior |
335
- | ----------- | -------------------------------------------------------------------------- |
336
- | Path safety | MCP / dashboard reject traversal, encoded escapes, hostile URLs |
337
- | Safe Fix | Preflight targets; refuse symlink write-through / non-allowlisted paths |
338
- | Secrets | Opt-in scan; findings and exports redact sensitive patterns |
339
- | Policy | Evaluate-only by default (`executionResult: "not-executed"`) |
340
- | Enforcement | Controlled runner blocks; does **not** claim IDE interception |
341
- | Dashboard | Loopback by default; non-loopback requires explicit opt-in |
342
- | Team auth | Local-dev scrypt + optional OIDC JWT validation — **not** full browser SSO |
527
+ Derived from `package.json` and source:
343
528
 
344
- Threat model: [docs/2.0/overview/security-threat-model.md](docs/2.0/overview/security-threat-model.md) · Trust boundaries: [docs/2.0/overview/trust-boundaries.md](docs/2.0/overview/trust-boundaries.md)
529
+ | Area | Technology |
530
+ | ----------- | ------------------------------------------------- |
531
+ | Language | TypeScript (ESM) |
532
+ | Runtime | Node.js ≥ 20 |
533
+ | CLI | Commander |
534
+ | Tests | Vitest |
535
+ | Build | `tsc` |
536
+ | MCP | `@modelcontextprotocol/sdk` |
537
+ | Dashboard | Local Node HTTP + embedded SPA |
538
+ | AST (TS/JS) | TypeScript compiler API |
539
+ | Packaging | npm (`files`: `dist`, README, LICENSE, CHANGELOG) |
540
+ | License | MIT |
345
541
 
346
542
  ---
347
543
 
348
- ## What AgentDoctor does not do
544
+ ## Verification
545
+
546
+ **AgentDoctor 3.0** — local acceptance evidence:
547
+
548
+ | Gate | Result |
549
+ | --------------------------------------- | -------------------------------------------------------- |
550
+ | Formal / release / product acceptance | **PASS** (maintainers: [docs/internal/](docs/internal/)) |
551
+ | `npm run verify` | **627/627** tests, typecheck, lint, format, build |
552
+ | Clean `npm pack` install | PASS |
553
+ | MCP | **38** tools; approval + path checks |
554
+ | Dashboard / API | Real project JSON (not fake cards) |
555
+ | Security / forensic / eval / self-check | PASS |
556
+ | P0 / P1 blockers | **0** |
349
557
 
350
- - Full browser OAuth / production IdP login UX (JWT validation library path exists; redirect flow is experimental)
351
- - Complete multi-language AST (Java / Kotlin / Rust / Dart / Go extractors external or unsupported)
352
- - Coverage as universal ground truth without a coverage file / test map
353
- - IDE / agent process interception (external host APIs)
354
- - Production multi-tenant cloud / managed hosting in this package
355
- - Guaranteed autonomous command execution of “allowed” policies
356
- - Treating inferred C4 / heuristic impact as approved architecture truth
357
- - Shipping full `docs/2.0.1/` inside the npm tarball (Option B: README + GitHub docs)
558
+ Reproduce:
358
559
 
359
- Full list: [docs/2.0.1/limitations.md](docs/2.0.1/limitations.md) · [docs/2.0/overview/known-limitations.md](docs/2.0/overview/known-limitations.md)
560
+ ```bash
561
+ npm run verify
562
+ ```
360
563
 
361
564
  ---
362
565
 
363
- ## Roadmap note: Change Proof
566
+ ## Limitations
364
567
 
365
- Change assessment, evidence, and proof **integrity** shipped in 2.0.1. `correctnessStatus` is always `ENGINEERING_CORRECTNESS_NOT_CLAIMED`. Broader compliance / team-scale proof UX remains planned.
568
+ Honesty is part of the product. Read **[docs/LIMITATIONS.md](docs/LIMITATIONS.md)**.
366
569
 
367
- See [ROADMAP.md](ROADMAP.md) · [docs/2.0.1/limitations.md](docs/2.0.1/limitations.md) · [docs/2.0.1/FINAL_COMPLETION_AUDIT.md](docs/2.0.1/FINAL_COMPLETION_AUDIT.md).
570
+ Notable boundaries:
571
+
572
+ - Live Kubernetes / APM / enterprise IdP → **EXTERNAL**
573
+ - Neural embeddings / commercial SAST → **EXTERNAL**
574
+ - Full compiler-grade semantics for all languages → **EXTERNAL** where adapters are line scanners
575
+ - Optional LLM providers → configure explicitly; core stays useful without them
576
+ - Proof ≠ engineering correctness
577
+
578
+ Post-acceptance ideas for later releases: maintainers see [docs/internal/POST_3_0_BACKLOG.md](docs/internal/POST_3_0_BACKLOG.md).
368
579
 
369
580
  ---
370
581
 
371
- ## Documentation map
582
+ ## Roadmap
372
583
 
373
- | Audience | Start here |
374
- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
375
- | Product / 2.0.1 | [docs/2.0.1/README.md](docs/2.0.1/README.md) |
376
- | Product / 2.0 | [docs/2.0/README.md](docs/2.0/README.md) |
377
- | Capabilities / readiness | [capabilities](docs/2.0/overview/capabilities.md) · [readiness](docs/2.0/overview/readiness-matrix.md) |
378
- | Guides | [docs/2.0/guides/](docs/2.0/guides/) |
379
- | Reference (rules, scoring, exit codes) | [docs/reference/](docs/reference/) |
380
- | Contributing | [CONTRIBUTING.md](CONTRIBUTING.md) · [docs/development/development.md](docs/development/development.md) |
381
- | Changelog | [CHANGELOG.md](CHANGELOG.md) |
382
- | Release evidence | [FINAL_RELEASE_AUDIT](docs/2.0.1/FINAL_RELEASE_AUDIT.md) · [FINAL_COMPLETION_AUDIT](docs/2.0.1/FINAL_COMPLETION_AUDIT.md) |
584
+ | Track | Meaning |
585
+ | -------------------- | --------------------------------------------------------------------------------- |
586
+ | **3.0.0 (released)** | Project intelligence, doctors, twin, what-if, forensic, eval, student/agent loops |
587
+ | **Coming soon** | Maturity, language depth, runtime adapters, DX — not promised ship dates |
588
+
589
+ ---
590
+
591
+ ## Documentation
592
+
593
+ Full index: **[docs/README.md](docs/README.md)**
594
+
595
+ | Topic | Link |
596
+ | ---------------- | --------------------------------------------------------------------- |
597
+ | Product | [docs/PRODUCT.md](docs/PRODUCT.md) |
598
+ | Project Chat | [docs/PROJECT_CHAT.md](docs/PROJECT_CHAT.md) |
599
+ | AI Agent | [docs/AI_AGENT.md](docs/AI_AGENT.md) |
600
+ | Student mode | [docs/STUDENT_MODE.md](docs/STUDENT_MODE.md) |
601
+ | MCP | [docs/MCP.md](docs/MCP.md) |
602
+ | Approvals | [docs/AGENT_APPROVALS.md](docs/AGENT_APPROVALS.md) |
603
+ | Security model | [docs/SECURITY_MODEL.md](docs/SECURITY_MODEL.md) |
604
+ | Evidence / Proof | [docs/EVIDENCE.md](docs/EVIDENCE.md) · [docs/PROOF.md](docs/PROOF.md) |
605
+ | Project Brain | [docs/PROJECT_BRAIN.md](docs/PROJECT_BRAIN.md) |
606
+ | Limitations | [docs/LIMITATIONS.md](docs/LIMITATIONS.md) |
607
+ | Feature guides | [docs/guides/features/](docs/guides/features/) |
608
+ | Contributing | [CONTRIBUTING.md](CONTRIBUTING.md) |
609
+ | Security policy | [SECURITY.md](SECURITY.md) |
610
+ | Code of conduct | [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) |
611
+ | Changelog | [CHANGELOG.md](CHANGELOG.md) |
383
612
 
384
613
  ---
385
614
 
386
615
  ## Contributing
387
616
 
388
- See [CONTRIBUTING.md](CONTRIBUTING.md). Prefer evidence-backed PRs, honest status labels, and no inflated capability claims.
617
+ ```bash
618
+ git clone https://github.com/pranee54/AgentDoctor.git
619
+ cd AgentDoctor
620
+ npm install
621
+ npm run verify
622
+ ```
623
+
624
+ See [CONTRIBUTING.md](CONTRIBUTING.md). Issues and PRs welcome via GitHub templates.
389
625
 
390
626
  ---
391
627
 
392
628
  ## License
393
629
 
394
- MIT — see [LICENSE](LICENSE).
630
+ [MIT](LICENSE) © AgentDoctor Contributors
631
+
632
+ ---
633
+
634
+ ## GitHub discoverability (maintainers)
635
+
636
+ Suggested repository description:
637
+
638
+ > Project intelligence and assurance for software — understand, ask, plan, approve, change, test, secure, verify, and prove. Local-first. MCP-ready.
639
+
640
+ Suggested topics: `software-engineering`, `developer-tools`, `code-intelligence`, `ai-agents`, `mcp`, `static-analysis`, `developer-experience`, `security`, `testing`, `typescript`
641
+
642
+ ---
643
+
644
+ **Try it on a real project in five minutes.** If something is UNKNOWN, that is intentional — AgentDoctor should show the boundary, not invent certainty.