auditor-lambda 0.2.6 → 0.2.9

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 (125) hide show
  1. package/README.md +29 -7
  2. package/audit-code-wrapper-lib.mjs +1605 -330
  3. package/dist/adapters/eslint.js +9 -5
  4. package/dist/cli.d.ts +42 -1
  5. package/dist/cli.js +192 -80
  6. package/dist/coverage.d.ts +2 -2
  7. package/dist/coverage.js +5 -5
  8. package/dist/extractors/bucketing.d.ts +4 -0
  9. package/dist/extractors/bucketing.js +6 -2
  10. package/dist/extractors/disposition.d.ts +4 -0
  11. package/dist/extractors/disposition.js +15 -2
  12. package/dist/extractors/fileInventory.js +24 -28
  13. package/dist/extractors/flows.d.ts +5 -0
  14. package/dist/extractors/flows.js +25 -39
  15. package/dist/extractors/pathPatterns.d.ts +13 -3
  16. package/dist/extractors/pathPatterns.js +116 -53
  17. package/dist/extractors/risk.js +7 -1
  18. package/dist/extractors/surfaces.d.ts +4 -0
  19. package/dist/extractors/surfaces.js +11 -11
  20. package/dist/index.d.ts +1 -1
  21. package/dist/index.js +2 -1
  22. package/dist/io/artifacts.d.ts +59 -44
  23. package/dist/io/artifacts.js +80 -120
  24. package/dist/io/json.d.ts +2 -0
  25. package/dist/io/json.js +65 -19
  26. package/dist/io/runArtifacts.d.ts +2 -1
  27. package/dist/io/runArtifacts.js +44 -7
  28. package/dist/mcp/server.d.ts +1 -0
  29. package/dist/mcp/server.js +579 -0
  30. package/dist/orchestrator/advance.js +84 -56
  31. package/dist/orchestrator/dependencyMap.js +9 -13
  32. package/dist/orchestrator/executors.js +7 -2
  33. package/dist/orchestrator/flowCoverage.js +11 -5
  34. package/dist/orchestrator/flowPlanning.d.ts +7 -2
  35. package/dist/orchestrator/flowPlanning.js +46 -21
  36. package/dist/orchestrator/flowRequeue.js +29 -9
  37. package/dist/orchestrator/internalExecutors.d.ts +2 -1
  38. package/dist/orchestrator/internalExecutors.js +130 -69
  39. package/dist/orchestrator/planning.js +25 -3
  40. package/dist/orchestrator/requeue.js +20 -5
  41. package/dist/orchestrator/resultIngestion.js +5 -6
  42. package/dist/orchestrator/runtimeValidation.d.ts +7 -2
  43. package/dist/orchestrator/runtimeValidation.js +61 -49
  44. package/dist/orchestrator/runtimeValidationUpdate.js +2 -4
  45. package/dist/orchestrator/state.js +18 -13
  46. package/dist/orchestrator/taskBuilder.d.ts +4 -2
  47. package/dist/orchestrator/taskBuilder.js +153 -52
  48. package/dist/orchestrator/trivialAudit.js +8 -5
  49. package/dist/orchestrator/unitBuilder.d.ts +3 -1
  50. package/dist/orchestrator/unitBuilder.js +24 -16
  51. package/dist/prompts/renderWorkerPrompt.d.ts +1 -1
  52. package/dist/prompts/renderWorkerPrompt.js +19 -10
  53. package/dist/providers/claudeCodeProvider.d.ts +4 -1
  54. package/dist/providers/claudeCodeProvider.js +8 -5
  55. package/dist/providers/localSubprocessProvider.d.ts +4 -0
  56. package/dist/providers/localSubprocessProvider.js +7 -2
  57. package/dist/providers/spawnLoggedCommand.d.ts +9 -1
  58. package/dist/providers/spawnLoggedCommand.js +77 -29
  59. package/dist/reporting/mergeFindings.js +0 -11
  60. package/dist/reporting/synthesis.d.ts +26 -21
  61. package/dist/reporting/synthesis.js +97 -61
  62. package/dist/reporting/workBlocks.d.ts +12 -3
  63. package/dist/reporting/workBlocks.js +124 -70
  64. package/dist/supervisor/operatorHandoff.js +48 -18
  65. package/dist/supervisor/runLedger.d.ts +1 -1
  66. package/dist/supervisor/runLedger.js +112 -5
  67. package/dist/supervisor/sessionConfig.js +10 -10
  68. package/dist/types/externalAnalyzer.d.ts +3 -0
  69. package/dist/types/flowCoverage.d.ts +5 -1
  70. package/dist/types/flowCoverage.js +5 -1
  71. package/dist/types/flows.d.ts +6 -0
  72. package/dist/types/flows.js +1 -1
  73. package/dist/types/runLedger.d.ts +5 -1
  74. package/dist/types/runLedger.js +6 -1
  75. package/dist/types/runtimeValidation.d.ts +13 -3
  76. package/dist/types/runtimeValidation.js +16 -1
  77. package/dist/types/sessionConfig.d.ts +15 -2
  78. package/dist/types/sessionConfig.js +15 -1
  79. package/dist/types/surfaces.d.ts +4 -1
  80. package/dist/types/surfaces.js +1 -1
  81. package/dist/types/workerSession.d.ts +9 -0
  82. package/dist/types/workerSession.js +5 -1
  83. package/dist/types.d.ts +4 -7
  84. package/dist/validation/artifacts.d.ts +1 -1
  85. package/dist/validation/artifacts.js +33 -20
  86. package/dist/validation/auditResults.d.ts +2 -2
  87. package/dist/validation/auditResults.js +71 -114
  88. package/dist/validation/basic.d.ts +9 -1
  89. package/dist/validation/basic.js +40 -3
  90. package/dist/validation/sessionConfig.d.ts +4 -2
  91. package/dist/validation/sessionConfig.js +62 -15
  92. package/docs/agent-integrations.md +67 -38
  93. package/docs/artifacts.md +16 -56
  94. package/docs/bootstrap-install.md +60 -30
  95. package/docs/contract.md +22 -205
  96. package/docs/next-steps.md +76 -44
  97. package/docs/packaging.md +27 -3
  98. package/docs/product-direction.md +22 -0
  99. package/docs/production-launch-bar.md +4 -2
  100. package/docs/production-readiness.md +9 -5
  101. package/docs/releasing.md +98 -0
  102. package/docs/remediation-baseline.md +75 -0
  103. package/docs/run-flow.md +23 -11
  104. package/docs/session-config.md +50 -5
  105. package/docs/supervisor.md +7 -0
  106. package/docs/workflow-refactor-brief.md +177 -0
  107. package/package.json +4 -1
  108. package/schemas/audit_result.schema.json +8 -7
  109. package/schemas/audit_task.schema.json +3 -1
  110. package/schemas/coverage_matrix.schema.json +3 -3
  111. package/schemas/critical_flows.schema.json +6 -2
  112. package/schemas/file_disposition.schema.json +2 -2
  113. package/schemas/finding.schema.json +9 -4
  114. package/schemas/flow_coverage.schema.json +2 -2
  115. package/schemas/repo_manifest.schema.json +4 -4
  116. package/schemas/risk_register.schema.json +2 -2
  117. package/schemas/runtime_validation_report.schema.json +3 -3
  118. package/schemas/runtime_validation_tasks.schema.json +8 -2
  119. package/schemas/surface_manifest.schema.json +6 -3
  120. package/schemas/unit_manifest.schema.json +3 -2
  121. package/skills/audit-code/SKILL.md +16 -2
  122. package/skills/audit-code/audit-code.prompt.md +5 -8
  123. package/schemas/merged_findings.schema.json +0 -19
  124. package/schemas/root_cause_clusters.schema.json +0 -28
  125. package/schemas/synthesis_report.schema.json +0 -61
@@ -14,6 +14,17 @@ Normal product usage should:
14
14
  - avoid manual `--root`, provider flags, and model selection in normal use
15
15
  - let the supervisor advance the audit automatically until it completes or no further automatic progress is possible
16
16
 
17
+ ## Review ownership rule
18
+
19
+ Semantic review should stay with the active conversation agent by default.
20
+
21
+ That means:
22
+
23
+ - use the current host conversation as the normal owner of review work
24
+ - if the host agent can delegate to subagents in parallel, let the host runtime make that decision
25
+ - do not treat `.audit-artifacts/session-config.json` as the normal way to choose a second LLM for review
26
+ - treat backend provider adapters as compatibility bridges for fallback CLI usage only
27
+
17
28
  ## Conversation-first setup
18
29
 
19
30
  The canonical prompt asset is:
@@ -26,8 +37,8 @@ The preferred bootstrap path is:
26
37
  audit-code install
27
38
  ```
28
39
 
29
- That installs repo-local `/audit-code` surfaces for VS Code / Copilot, OpenCode, Claude Code, and compatibility instruction files such as `AGENTS.md` and `CLAUDE.md`.
30
- It also writes `.audit-code/install/GETTING-STARTED.md` with dedicated quick-start sections for VS Code, OpenCode, Claude Code, Claude Desktop, and Antigravity.
40
+ That installs repo-local `/audit-code` surfaces and MCP-oriented support assets for Codex, Claude Desktop, OpenCode, VS Code, and Antigravity.
41
+ It also writes `.audit-code/install/GETTING-STARTED.md` with dedicated quick-start sections for each host plus `.audit-code/install/manifest.json` and a shared repo-local MCP launcher.
31
42
 
32
43
  Use one of these supported ways to obtain the raw prompt asset directly when you need prompt import instead:
33
44
 
@@ -44,58 +55,56 @@ This is the intended product surface.
44
55
 
45
56
  Use `/audit-code` in conversation, treat the active conversation model as the default model, and treat project files plus attached repository context as the default context.
46
57
 
47
- ### GitHub Copilot
58
+ ### Codex
48
59
 
49
- Use `audit-code install` from the target repository root.
60
+ Use `audit-code install --host codex` or the default `audit-code install` from the target repository root.
50
61
 
51
- That writes `.github/prompts/audit-code.prompt.md` and `.github/copilot-instructions.md` so the repository carries the canonical `/audit-code` instructions instead of relying on manual copy-paste.
52
- The generated prompt file explicitly sets `agent: agent` so `/audit-code` lands in the tool-capable Copilot agent flow.
62
+ That writes a repo-local Codex skill bundle, updates `AGENTS.md` through a managed block when needed, and emits Codex-specific MCP setup guidance plus an automation recipe in `.audit-code/install/codex/`.
63
+ The intended operator flow is still conversational first, with the generated skill and AGENTS guidance steering the active Codex session toward `/audit-code` and the MCP-backed workflow.
53
64
 
54
- The narrower `audit-code install-host --host copilot` alias still exists, but it is no longer the preferred setup path.
65
+ The Codex automation recipe should still be treated as optional follow-through after the basic local flow is validated in the real app.
55
66
 
56
- ### OpenCode
67
+ ### Claude Desktop
57
68
 
58
- Use `audit-code install` from the target repository root.
69
+ Use `audit-code install --host claude-desktop` or the default `audit-code install` from the target repository root.
59
70
 
60
- That writes `.opencode/commands/audit-code.md` plus `AGENTS.md` and compatibility skills so `/audit-code` is available in the repository with no extra provider flags.
61
- The generated OpenCode command now sets `agent: build` and keeps the current model selection, which makes the slash command behave more like the intended autonomous editing flow.
62
- The generated `.audit-code/install/GETTING-STARTED.md` file also includes an OpenCode-specific quick start so the repo-local command path is obvious after bootstrap.
71
+ This repository now treats Claude Desktop as an MCP-first host. The installer writes:
63
72
 
64
- ### Claude Code
73
+ - `.audit-code/install/claude-desktop/PROJECT-TEMPLATE.md`
74
+ - `.audit-code/install/claude-desktop/remote-mcp-connector.json`
75
+ - generated local bundle artifacts including `auditor-lambda.dxt` and `auditor-lambda.mcpb`
76
+
77
+ The intended path is to install or reference the generated local MCP bundle, then use the shared prompt and project-template guidance to run `/audit-code` conversationally.
78
+ Manual prompt import remains a fallback, not the primary documented path.
79
+
80
+ ### OpenCode
65
81
 
66
82
  Use `audit-code install` from the target repository root.
67
83
 
68
- That writes `.claude/commands/audit-code.md`, `CLAUDE.md`, and compatibility skills so `/audit-code` is available in the repository with no extra provider flags.
69
- The generated `.audit-code/install/GETTING-STARTED.md` file also includes a Claude Code-specific quick start so the repo-local command path is obvious after bootstrap.
84
+ That writes `.opencode/commands/audit-code.md`, a repo-local OpenCode skill bundle, and `opencode.json` so `/audit-code` is available in the repository with no extra provider flags.
85
+ The generated OpenCode assets also point OpenCode toward the shared auditor MCP server instead of rebuilding backend state ad hoc.
70
86
 
71
87
  ### VS Code
72
88
 
73
89
  Run `audit-code install` from the target repository root, then open `.audit-code/install/GETTING-STARTED.md` if you want the exact repo-local path that bootstrap created for VS Code chat surfaces.
74
90
 
91
+ That writes `.github/prompts/audit-code.prompt.md`, `.github/copilot-instructions.md`, `.github/agents/auditor.agent.md`, and `.vscode/mcp.json`.
75
92
  The expected happy path is still to invoke `/audit-code` from chat, not to start from the backend CLI.
76
93
 
77
- ### Claude Desktop
78
-
79
- Run `audit-code install` from the target repository root, then open `.audit-code/install/GETTING-STARTED.md`.
80
-
81
- There is no verified project-local slash-command install surface for Claude Desktop in this repository today, so the intended path is:
82
-
83
- 1. import `.audit-code/install/audit-code.import.md` into Claude Desktop's prompt or instruction surface
84
- 2. invoke `/audit-code` conversationally inside Claude Desktop
85
-
86
94
  ### Antigravity
87
95
 
88
96
  Run `audit-code install` from the target repository root, then open `.audit-code/install/GETTING-STARTED.md`.
89
97
 
90
- There is no verified repo-local slash-command install surface for Antigravity in this repository today, so the intended path is:
98
+ There is still no documented native repo-local saved-workflow surface for Antigravity in this repository today, so the intended path is:
91
99
 
92
- 1. import `.audit-code/install/audit-code.import.md` into Antigravity's prompt or instruction surface when available
93
- 2. invoke `/audit-code` conversationally inside Antigravity
94
- 3. fall back to `audit-code` from an Antigravity-managed terminal only when you intentionally need the repo-local backend wrapper
100
+ 1. use the generated planning-mode and MCP setup guidance
101
+ 2. invoke `/audit-code` conversationally inside Antigravity when the host surface allows it
102
+ 3. use the shared MCP tools and resources when structured state exchange is needed
103
+ 4. fall back to `audit-code` from an Antigravity-managed terminal only when you intentionally need the repo-local backend wrapper
95
104
 
96
105
  ### Similar manual-import hosts
97
106
 
98
- Use the same installed prompt asset and repo-local guide pattern as Claude Desktop and Antigravity.
107
+ Use the same installed prompt asset and repo-local guide pattern as Antigravity, or the same MCP-first bundle pattern as Claude Desktop, depending on what the host actually supports.
99
108
 
100
109
  The backend CLI remains optional fallback infrastructure.
101
110
 
@@ -138,7 +147,11 @@ Terminal interpretation:
138
147
  - `audit_state.status === "complete"` means the audit finished end to end.
139
148
  - `audit_state.status === "blocked"` means the wrapper exhausted automatic work and the remaining review still needs imported results or a provider-capable continuation path.
140
149
 
141
- When `provider` is configured as `claude-code`, `opencode`, `subprocess-template`, or `vscode-task`, the wrapper can now continue through audit-task review in the same invocation as long as that provider can write structured `AuditResult[]` output and hand control back to the bounded worker command.
150
+ Current implementation note:
151
+
152
+ - the backend fallback still supports explicit provider bridges such as `claude-code`, `opencode`, `subprocess-template`, and `vscode-task`
153
+ - those bridges are compatibility modes, not the intended default review owner
154
+ - the intended long-term workflow is documented in [docs/workflow-refactor-brief.md](/C:/Code/auditor-lambda/docs/workflow-refactor-brief.md)
142
155
 
143
156
  When additional evidence exists, pass it into the same wrapper:
144
157
 
@@ -151,6 +164,7 @@ audit-code --external-analyzer-results /path/to/external_analyzer_results.json
151
164
  Each response also refreshes `.audit-artifacts/operator-handoff.json` and `.audit-artifacts/operator-handoff.md` so operators can see the pending obligations, suggested import paths, and session-config continuation hint without reconstructing the state manually.
152
165
 
153
166
  Everything below is backend fallback guidance, not the primary product path.
167
+ Use it when the current host cannot keep review inside the active conversation, not as the first choice for semantic-review ownership.
154
168
 
155
169
  ## Provider matrix
156
170
 
@@ -168,19 +182,17 @@ This is the safest default backend when the repository is already available loca
168
182
 
169
183
  Use when Claude Code is installed and authenticated on the machine.
170
184
 
171
- The built-in adapter launches a fresh Claude Code print-mode session for each worker run.
172
- When audit-task review is pending, the provider prompt now asks Claude Code to write structured audit results and then hand back to the bounded worker command so the same wrapper invocation can continue.
185
+ The current implementation can launch a fresh Claude Code print-mode session for each worker run.
173
186
 
174
- Recommended when you want the audit supervisor to delegate bounded tasks into Claude Code without manually driving each step.
187
+ Treat this as a compatibility bridge only, not as the intended default review owner.
175
188
 
176
189
  ### opencode
177
190
 
178
191
  Use when OpenCode is installed and authenticated on the machine.
179
192
 
180
- The built-in adapter launches a fresh `opencode run ...` session for each worker run.
181
- When audit-task review is pending, the provider prompt now asks OpenCode to write structured audit results and then hand back to the bounded worker command so the same wrapper invocation can continue.
193
+ The current implementation can launch a fresh `opencode run ...` session for each worker run.
182
194
 
183
- Recommended when OpenCode is the preferred local agent surface.
195
+ Treat this as a compatibility bridge only, not as the intended default review owner.
184
196
 
185
197
  ### subprocess-template
186
198
 
@@ -197,11 +209,15 @@ Treat this as an advanced backend adapter rather than the default path.
197
209
 
198
210
  ### Claude Code
199
211
 
200
- Use the repo-local `audit-code` wrapper from the target repository root, or set `provider` to `claude-code` in `.audit-artifacts/session-config.json` so the supervisor delegates bounded worker runs into Claude Code.
212
+ Use `/audit-code` in the active conversation as the primary path.
213
+
214
+ Only use the repo-local `audit-code` wrapper with `provider: "claude-code"` in `.audit-artifacts/session-config.json` when you intentionally want backend fallback bridging into Claude Code.
201
215
 
202
216
  ### OpenCode
203
217
 
204
- Use the same repo-local `audit-code` wrapper, or set `provider` to `opencode` so the supervisor delegates bounded worker runs into OpenCode.
218
+ Use `/audit-code` in the active conversation as the primary path.
219
+
220
+ Only use the repo-local `audit-code` wrapper with `provider: "opencode"` when you intentionally want backend fallback bridging into OpenCode.
205
221
 
206
222
  ### VS Code
207
223
 
@@ -224,6 +240,17 @@ Current recommended usage is one of these:
224
240
 
225
241
  That keeps the product usable in Antigravity now without pretending that a native adapter already exists.
226
242
 
243
+ ## Remaining steps
244
+
245
+ The current implementation shipped the shared installer and MCP substrate. The remaining work is operational validation and fit-and-finish, not a fresh redesign.
246
+
247
+ Highest-value follow-through:
248
+
249
+ 1. validate the generated Codex, Claude Desktop, OpenCode, and VS Code assets inside the real products they target
250
+ 2. tighten generated quick-start guidance anywhere those host smoke tests expose ambiguity
251
+ 3. document exactly how Antigravity artifacts should map into `import_results` and `import_runtime_updates`
252
+ 4. keep host claims conservative until those end-to-end product checks are complete
253
+
227
254
  ## Model-selection rule
228
255
 
229
256
  The product direction remains skill-first:
@@ -240,3 +267,5 @@ For a polished operator experience today:
240
267
  3. use `audit-code` as the repo-local backend fallback
241
268
  4. prefer `local-subprocess` unless you want interactive review to continue automatically through agent tasks
242
269
  5. use `subprocess-template` only when integrating a non-native editor or launcher surface
270
+
271
+ If you intentionally want the backend fallback to bridge semantic review into another process, re-run with an explicit `--provider` flag after configuring the matching section in `.audit-artifacts/session-config.json`.
package/docs/artifacts.md CHANGED
@@ -1,8 +1,10 @@
1
- # Core artifacts
1
+ # Core Artifacts
2
2
 
3
- These JSON artifacts are the stable contract between deterministic tooling and LLM audit passes.
3
+ This document follows [audit-goals.md](C:/Code/auditor-lambda/spec/audit-goals.md).
4
4
 
5
- ## Core files
5
+ ## Incomplete-run artifacts
6
+
7
+ During an incomplete or blocked audit, `.audit-artifacts/` may contain:
6
8
 
7
9
  - `repo_manifest.json`
8
10
  - `file_disposition.json`
@@ -13,64 +15,22 @@ These JSON artifacts are the stable contract between deterministic tooling and L
13
15
  - `flow_coverage.json`
14
16
  - `risk_register.json`
15
17
  - `coverage_matrix.json`
16
- - `runtime_validation_tasks.json`
17
- - `runtime_validation_report.json`
18
+ - `runtime_validation_tasks.json` when deterministic runtime validation is planned
19
+ - `runtime_validation_report.json` when runtime validation has executed or been updated
18
20
  - `external_analyzer_results.json`
19
21
  - `audit_tasks.json`
20
22
  - `audit_results.jsonl`
21
23
  - `requeue_tasks.json`
22
- - `merged_findings.json`
23
- - `root_cause_clusters.json`
24
- - `synthesis_report.json`
25
-
26
- ## Design rule
27
-
28
- Tool-specific collectors should write into these normalized formats so that the agent layer can remain portable across runtimes.
29
-
30
- ## Coverage rule
31
-
32
- Coverage is not based only on test instrumentation. It is based on explicit audit accounting:
33
-
34
- - file classification
35
- - file disposition
36
- - unit assignment
37
- - required lenses
38
- - reviewed source ranges
39
- - completed passes
40
- - requeue targets for missing review
41
- - critical-flow coverage state
42
-
43
- ## Excluded artifact behavior
44
-
45
- Files marked as generated, vendor, binary, doc-only, or explicitly excluded should remain visible in manifests and disposition tracking, but should not receive normal audit-unit assignment or requeue tasks.
46
-
47
- ## Critical flow role
48
-
49
- `critical_flows.json` is intended to bridge deterministic planning and higher-order semantic review. It gives LLM agents a bounded way to inspect important end-to-end paths without reading the entire repository at once.
50
-
51
- `flow_coverage.json` tracks whether those important paths have received the intended lenses, which allows the planner to treat critical-flow review as a first-class coverage requirement rather than a loose advisory layer.
52
-
53
- ## Runtime validation role
54
-
55
- `runtime_validation_tasks.json` turns unresolved high-risk units and incomplete critical flows into explicit dynamic follow-up work.
56
-
57
- `runtime_validation_report.json` is where evidence from those checks should land so that later synthesis can distinguish confirmed, not-confirmed, and inconclusive concerns.
58
-
59
- ## External analyzer role
60
-
61
- `external_analyzer_results.json` is the normalized landing zone for third-party tools such as SAST analyzers, coverage summaries, lint diagnostics, dependency scanners, and similar sources. Downstream prompts should prefer this normalized form over raw tool-native payloads.
24
+ - dispatch files for the currently active worker task
62
25
 
63
- External analyzer results now also influence:
26
+ ## Scope rule
64
27
 
65
- - risk scoring
66
- - required lenses in coverage
67
- - task priority
68
- - dedicated analyzer follow-up tasks
69
- - requeue priority
70
- - synthesis evidence and summaries
28
+ Excluded files remain visible in deterministic intake/disposition where useful,
29
+ but they must not create audit work. This includes logs, licenses, lockfiles,
30
+ generated artifacts, vendored artifacts, binaries, and trivial non-code files.
71
31
 
72
- ## Key schema notes
32
+ ## Completion rule
73
33
 
74
- - `audit_tasks.json`: each task already contains the resolved `file_paths` it covers. Use `audit-code explain-task <task_id>` when you want that task joined back to current `coverage_matrix.json` state.
75
- - `coverage_matrix.json`: each file records `classification_status`, `audit_status`, `required_lenses`, and `completed_lenses`.
76
- - `synthesis_report.json`: this is the top-level synthesis artifact. It includes `merged_findings`, semantic `root_cause_clusters`, and `work_blocks`; `work_blocks` are the primary remediation grouping.
34
+ These artifacts are transient implementation state only. When the audit
35
+ completes, `.audit-artifacts/` is removed and only repo-root `audit-report.md`
36
+ remains.
@@ -8,65 +8,86 @@ audit-code install
8
8
 
9
9
  That command installs the repo-local `/audit-code` surfaces we can automate today.
10
10
 
11
- ## What it writes
12
-
13
- Installed command surfaces:
11
+ After bootstrap, run:
14
12
 
15
- - `.github/prompts/audit-code.prompt.md` for VS Code chat prompt files, with `agent: agent`
16
- - `.opencode/commands/audit-code.md` for OpenCode custom commands, with `agent: build`
17
- - `.claude/commands/audit-code.md` for Claude Code custom slash commands
13
+ ```bash
14
+ audit-code verify-install
15
+ ```
18
16
 
19
- Installed always-on compatibility surfaces:
17
+ That smoke-tests the generated host assets plus the shared repo-local MCP launcher without waiting for a full editor walkthrough.
20
18
 
21
- - `.github/copilot-instructions.md`
22
- - `AGENTS.md`
23
- - `CLAUDE.md`
19
+ ## What it writes
24
20
 
25
- Installed repo-local canonical assets:
21
+ Installed shared surfaces:
26
22
 
27
23
  - `.audit-code/install/audit-code.import.md`
28
24
  - `.audit-code/install/SKILL.md`
29
25
  - `.audit-code/install/GETTING-STARTED.md`
26
+ - `.audit-code/install/manifest.json`
27
+ - `.audit-code/install/run-mcp-server.mjs`
28
+
29
+ Installed host-specific surfaces:
30
+
31
+ - Codex:
32
+ - `.codex/skills/audit-code/*`
33
+ - `AGENTS.md` managed block when needed
34
+ - `.audit-code/install/codex/MCP-SETUP.md`
35
+ - `.audit-code/install/codex/RE-AUDIT-AUTOMATION.md`
36
+ - Claude Desktop:
37
+ - `.audit-code/install/claude-desktop/PROJECT-TEMPLATE.md`
38
+ - `.audit-code/install/claude-desktop/remote-mcp-connector.json`
39
+ - `.audit-code/install/claude-desktop/auditor-lambda.dxt`
40
+ - `.audit-code/install/claude-desktop/auditor-lambda.mcpb`
41
+ - OpenCode:
42
+ - `.opencode/commands/audit-code.md`
43
+ - `.opencode/skills/audit-code/*`
44
+ - `opencode.json`
45
+ - `AGENTS.md` managed block when needed
46
+ - VS Code:
47
+ - `.github/prompts/audit-code.prompt.md`
48
+ - `.github/copilot-instructions.md`
49
+ - `.github/agents/auditor.agent.md`
50
+ - `.vscode/mcp.json`
51
+ - Antigravity:
52
+ - `.audit-code/install/antigravity/PLANNING-MODE.md`
53
+ - `AGENTS.md` managed block when needed
30
54
 
31
55
  The generated `GETTING-STARTED.md` now includes dedicated quick-start sections for:
32
56
 
33
- - VS Code
34
- - OpenCode
35
- - Claude Code
57
+ - Codex
36
58
  - Claude Desktop
59
+ - OpenCode
60
+ - VS Code
37
61
  - Antigravity
38
62
 
39
- Installed compatibility skill bundles:
40
-
41
- - `.opencode/skills/audit-code/*`
42
- - `.claude/skills/audit-code/*`
43
- - `.agents/skills/audit-code/*`
44
-
45
63
  ## Goal
46
64
 
47
- After bootstrap, the user should be able to open a supported conversation surface in the repository and invoke:
65
+ After bootstrap, the user should be able to open a supported host surface in the repository and invoke:
48
66
 
49
67
  ```text
50
68
  /audit-code
51
69
  ```
52
70
 
53
- without supplying extra root paths, provider flags, or model-selection arguments.
71
+ without supplying extra root paths, provider flags, or model-selection arguments, or connect through the shared MCP server when the host prefers tool-driven integration.
54
72
 
55
73
  ## What is fully automated today
56
74
 
57
- - VS Code and GitHub Copilot repo-local prompt surfaces
58
- - OpenCode project command surfaces
59
- - Claude Code project command surfaces
60
- - tool-agnostic compatibility instruction files for hosts that honor `AGENTS.md` or `CLAUDE.md`
75
+ - shared installer output, manifest generation, and repo-local MCP launcher generation
76
+ - Codex skill-bundle and AGENTS-oriented install output
77
+ - OpenCode command, skill, prompt, and config generation
78
+ - VS Code prompt, custom-agent, instruction, and MCP config generation
79
+ - Claude Desktop project-template, remote-connector, and local bundle generation
80
+ - Antigravity planning-mode guidance generation
61
81
 
62
82
  ## What is not fully automated today
63
83
 
64
- - Claude Desktop does not currently have a verified project-local slash-command install surface in this repository
65
- - Antigravity does not currently have a verified repo-local slash-command install surface in this repository
84
+ - product-level smoke validation for the generated Codex, Claude Desktop, OpenCode, and VS Code assets
85
+ - one-click proof that the generated Claude Desktop bundle installs cleanly in a real Desktop environment
86
+ - documented Antigravity artifact round-tripping back through `import_results` and `import_runtime_updates`
66
87
 
67
- For those hosts, the bootstrap command still installs compatibility assets, but the final `/audit-code` discovery behavior remains host-dependent.
88
+ For those gaps, the bootstrap command now writes the repo-local assets and guidance, but the final operator experience still needs end-to-end host verification.
68
89
 
69
- Use `.audit-code/install/GETTING-STARTED.md` as the low-guess repo-local handoff for those manual prompt-import paths and for the exact VS Code, OpenCode, and Claude Code bootstrap surfaces that were generated.
90
+ Use `.audit-code/install/GETTING-STARTED.md` as the low-guess repo-local handoff, and treat `.audit-code/install/manifest.json` as the machine-readable source of truth for what was generated.
70
91
 
71
92
  ## Narrow compatibility alias
72
93
 
@@ -77,3 +98,12 @@ audit-code install-host --host copilot
77
98
  ```
78
99
 
79
100
  Use it only when you intentionally want the smaller Copilot-only install path instead of the default bootstrap.
101
+
102
+ ## Remaining steps
103
+
104
+ The installer foundation is now in place. The remaining work is:
105
+
106
+ 1. smoke-test each claimed host in the real product, not only via file-generation tests
107
+ 2. tighten `GETTING-STARTED.md` and host-specific setup docs where those smoke tests show friction
108
+ 3. prove the Claude Desktop local bundle install path operationally
109
+ 4. document Antigravity artifact-import workflows more concretely