auditor-lambda 0.1.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 (199) hide show
  1. package/README.md +173 -0
  2. package/audit-code-wrapper-lib.mjs +905 -0
  3. package/audit-code.mjs +13 -0
  4. package/dist/adapters/coverageSummary.d.ts +8 -0
  5. package/dist/adapters/coverageSummary.js +13 -0
  6. package/dist/adapters/eslint.d.ts +13 -0
  7. package/dist/adapters/eslint.js +21 -0
  8. package/dist/adapters/normalizeExternal.d.ts +12 -0
  9. package/dist/adapters/normalizeExternal.js +19 -0
  10. package/dist/adapters/npmAudit.d.ts +15 -0
  11. package/dist/adapters/npmAudit.js +12 -0
  12. package/dist/adapters/semgrep.d.ts +22 -0
  13. package/dist/adapters/semgrep.js +14 -0
  14. package/dist/cli.d.ts +1 -0
  15. package/dist/cli.js +724 -0
  16. package/dist/coverage.d.ts +11 -0
  17. package/dist/coverage.js +102 -0
  18. package/dist/extractors/bucketing.d.ts +7 -0
  19. package/dist/extractors/bucketing.js +72 -0
  20. package/dist/extractors/disposition.d.ts +4 -0
  21. package/dist/extractors/disposition.js +41 -0
  22. package/dist/extractors/fileInventory.d.ts +7 -0
  23. package/dist/extractors/fileInventory.js +44 -0
  24. package/dist/extractors/flows.d.ts +5 -0
  25. package/dist/extractors/flows.js +125 -0
  26. package/dist/extractors/fsIntake.d.ts +8 -0
  27. package/dist/extractors/fsIntake.js +66 -0
  28. package/dist/extractors/graph.d.ts +4 -0
  29. package/dist/extractors/graph.js +46 -0
  30. package/dist/extractors/ignore.d.ts +1 -0
  31. package/dist/extractors/ignore.js +17 -0
  32. package/dist/extractors/risk.d.ts +5 -0
  33. package/dist/extractors/risk.js +45 -0
  34. package/dist/extractors/surfaces.d.ts +4 -0
  35. package/dist/extractors/surfaces.js +40 -0
  36. package/dist/index.d.ts +1 -0
  37. package/dist/index.js +1 -0
  38. package/dist/io/artifacts.d.ts +38 -0
  39. package/dist/io/artifacts.js +100 -0
  40. package/dist/io/json.d.ts +8 -0
  41. package/dist/io/json.js +96 -0
  42. package/dist/io/runArtifacts.d.ts +14 -0
  43. package/dist/io/runArtifacts.js +37 -0
  44. package/dist/orchestrator/advance.d.ts +24 -0
  45. package/dist/orchestrator/advance.js +104 -0
  46. package/dist/orchestrator/artifactMetadata.d.ts +4 -0
  47. package/dist/orchestrator/artifactMetadata.js +111 -0
  48. package/dist/orchestrator/autoFixExecutor.d.ts +3 -0
  49. package/dist/orchestrator/autoFixExecutor.js +63 -0
  50. package/dist/orchestrator/chunking.d.ts +5 -0
  51. package/dist/orchestrator/chunking.js +13 -0
  52. package/dist/orchestrator/dependencyMap.d.ts +1 -0
  53. package/dist/orchestrator/dependencyMap.js +82 -0
  54. package/dist/orchestrator/executors.d.ts +6 -0
  55. package/dist/orchestrator/executors.js +52 -0
  56. package/dist/orchestrator/flowCoverage.d.ts +4 -0
  57. package/dist/orchestrator/flowCoverage.js +44 -0
  58. package/dist/orchestrator/flowPlanning.d.ts +3 -0
  59. package/dist/orchestrator/flowPlanning.js +42 -0
  60. package/dist/orchestrator/flowRequeue.d.ts +5 -0
  61. package/dist/orchestrator/flowRequeue.js +58 -0
  62. package/dist/orchestrator/internalExecutors.d.ts +16 -0
  63. package/dist/orchestrator/internalExecutors.js +212 -0
  64. package/dist/orchestrator/nextStep.d.ts +9 -0
  65. package/dist/orchestrator/nextStep.js +44 -0
  66. package/dist/orchestrator/planning.d.ts +4 -0
  67. package/dist/orchestrator/planning.js +62 -0
  68. package/dist/orchestrator/requeue.d.ts +3 -0
  69. package/dist/orchestrator/requeue.js +25 -0
  70. package/dist/orchestrator/requeueCommand.d.ts +10 -0
  71. package/dist/orchestrator/requeueCommand.js +27 -0
  72. package/dist/orchestrator/resultIngestion.d.ts +2 -0
  73. package/dist/orchestrator/resultIngestion.js +13 -0
  74. package/dist/orchestrator/runtimeValidation.d.ts +7 -0
  75. package/dist/orchestrator/runtimeValidation.js +103 -0
  76. package/dist/orchestrator/runtimeValidationUpdate.d.ts +2 -0
  77. package/dist/orchestrator/runtimeValidationUpdate.js +52 -0
  78. package/dist/orchestrator/staleness.d.ts +2 -0
  79. package/dist/orchestrator/staleness.js +83 -0
  80. package/dist/orchestrator/state.d.ts +3 -0
  81. package/dist/orchestrator/state.js +85 -0
  82. package/dist/orchestrator/syntaxResolutionExecutor.d.ts +3 -0
  83. package/dist/orchestrator/syntaxResolutionExecutor.js +99 -0
  84. package/dist/orchestrator/taskBuilder.d.ts +12 -0
  85. package/dist/orchestrator/taskBuilder.js +154 -0
  86. package/dist/orchestrator/unitBuilder.d.ts +3 -0
  87. package/dist/orchestrator/unitBuilder.js +145 -0
  88. package/dist/orchestrator.d.ts +6 -0
  89. package/dist/orchestrator.js +33 -0
  90. package/dist/prompts/renderWorkerPrompt.d.ts +2 -0
  91. package/dist/prompts/renderWorkerPrompt.js +19 -0
  92. package/dist/providers/claudeCodeProvider.d.ts +8 -0
  93. package/dist/providers/claudeCodeProvider.js +20 -0
  94. package/dist/providers/index.d.ts +7 -0
  95. package/dist/providers/index.js +77 -0
  96. package/dist/providers/localSubprocessProvider.d.ts +5 -0
  97. package/dist/providers/localSubprocessProvider.js +13 -0
  98. package/dist/providers/opencodeProvider.d.ts +8 -0
  99. package/dist/providers/opencodeProvider.js +15 -0
  100. package/dist/providers/spawnLoggedCommand.d.ts +2 -0
  101. package/dist/providers/spawnLoggedCommand.js +48 -0
  102. package/dist/providers/subprocessTemplateProvider.d.ts +8 -0
  103. package/dist/providers/subprocessTemplateProvider.js +41 -0
  104. package/dist/providers/types.d.ts +22 -0
  105. package/dist/providers/types.js +1 -0
  106. package/dist/providers/vscodeTaskProvider.d.ts +8 -0
  107. package/dist/providers/vscodeTaskProvider.js +14 -0
  108. package/dist/reporting/mergeFindings.d.ts +4 -0
  109. package/dist/reporting/mergeFindings.js +136 -0
  110. package/dist/reporting/rootCause.d.ts +11 -0
  111. package/dist/reporting/rootCause.js +69 -0
  112. package/dist/reporting/synthesis.d.ts +21 -0
  113. package/dist/reporting/synthesis.js +55 -0
  114. package/dist/supervisor/operatorHandoff.d.ts +37 -0
  115. package/dist/supervisor/operatorHandoff.js +144 -0
  116. package/dist/supervisor/runLedger.d.ts +3 -0
  117. package/dist/supervisor/runLedger.js +17 -0
  118. package/dist/supervisor/sessionConfig.d.ts +4 -0
  119. package/dist/supervisor/sessionConfig.js +26 -0
  120. package/dist/types/artifactMetadata.d.ts +8 -0
  121. package/dist/types/artifactMetadata.js +1 -0
  122. package/dist/types/auditState.d.ts +14 -0
  123. package/dist/types/auditState.js +1 -0
  124. package/dist/types/disposition.d.ts +9 -0
  125. package/dist/types/disposition.js +1 -0
  126. package/dist/types/externalAnalyzer.d.ts +16 -0
  127. package/dist/types/externalAnalyzer.js +1 -0
  128. package/dist/types/flowCoverage.d.ts +11 -0
  129. package/dist/types/flowCoverage.js +1 -0
  130. package/dist/types/flows.d.ts +11 -0
  131. package/dist/types/flows.js +1 -0
  132. package/dist/types/graph.d.ts +18 -0
  133. package/dist/types/graph.js +1 -0
  134. package/dist/types/risk.d.ts +9 -0
  135. package/dist/types/risk.js +1 -0
  136. package/dist/types/runLedger.d.ts +13 -0
  137. package/dist/types/runLedger.js +1 -0
  138. package/dist/types/runtimeValidation.d.ts +22 -0
  139. package/dist/types/runtimeValidation.js +1 -0
  140. package/dist/types/sessionConfig.d.ts +27 -0
  141. package/dist/types/sessionConfig.js +1 -0
  142. package/dist/types/surfaces.d.ts +11 -0
  143. package/dist/types/surfaces.js +1 -0
  144. package/dist/types/workerResult.d.ts +13 -0
  145. package/dist/types/workerResult.js +1 -0
  146. package/dist/types/workerSession.d.ts +13 -0
  147. package/dist/types/workerSession.js +1 -0
  148. package/dist/types.d.ts +104 -0
  149. package/dist/types.js +1 -0
  150. package/dist/validation/artifacts.d.ts +3 -0
  151. package/dist/validation/artifacts.js +191 -0
  152. package/dist/validation/basic.d.ts +5 -0
  153. package/dist/validation/basic.js +9 -0
  154. package/dist/validation/sessionConfig.d.ts +6 -0
  155. package/dist/validation/sessionConfig.js +139 -0
  156. package/docs/agent-integrations.md +237 -0
  157. package/docs/agent-roles.md +69 -0
  158. package/docs/architecture.md +90 -0
  159. package/docs/artifacts.md +69 -0
  160. package/docs/bootstrap-install.md +79 -0
  161. package/docs/contract.md +140 -0
  162. package/docs/github-copilot.md +50 -0
  163. package/docs/model-selection.md +86 -0
  164. package/docs/next-steps.md +161 -0
  165. package/docs/packaging.md +88 -0
  166. package/docs/pipeline.md +152 -0
  167. package/docs/product-direction.md +111 -0
  168. package/docs/production-launch-bar.md +83 -0
  169. package/docs/production-readiness.md +52 -0
  170. package/docs/repo-layout.md +30 -0
  171. package/docs/run-flow.md +49 -0
  172. package/docs/session-config.md +232 -0
  173. package/docs/supervisor.md +83 -0
  174. package/docs/usage.md +172 -0
  175. package/docs/windows-setup.md +146 -0
  176. package/package.json +56 -0
  177. package/schemas/audit-code-v1alpha1.schema.json +191 -0
  178. package/schemas/audit_result.schema.json +48 -0
  179. package/schemas/audit_state.schema.json +36 -0
  180. package/schemas/audit_task.schema.json +49 -0
  181. package/schemas/blind_spot_register.schema.json +40 -0
  182. package/schemas/coverage_matrix.schema.json +50 -0
  183. package/schemas/critical_flows.schema.json +38 -0
  184. package/schemas/external_analyzer_results.schema.json +31 -0
  185. package/schemas/file_disposition.schema.json +33 -0
  186. package/schemas/finding.schema.json +62 -0
  187. package/schemas/flow_coverage.schema.json +44 -0
  188. package/schemas/graph_bundle.schema.json +55 -0
  189. package/schemas/merged_findings.schema.json +14 -0
  190. package/schemas/repo_manifest.schema.json +37 -0
  191. package/schemas/risk_register.schema.json +30 -0
  192. package/schemas/root_cause_clusters.schema.json +31 -0
  193. package/schemas/runtime_validation_report.schema.json +34 -0
  194. package/schemas/runtime_validation_tasks.schema.json +36 -0
  195. package/schemas/surface_manifest.schema.json +32 -0
  196. package/schemas/synthesis_report.schema.json +61 -0
  197. package/schemas/unit_manifest.schema.json +36 -0
  198. package/skills/audit-code/SKILL.md +54 -0
  199. package/skills/audit-code/audit-code.prompt.md +66 -0
@@ -0,0 +1,146 @@
1
+ # Windows setup
2
+
3
+ This document covers Windows setup for the backend fallback `audit-code` wrapper.
4
+
5
+ The canonical product route is still `/audit-code` in conversation.
6
+
7
+ ## Simplest path
8
+
9
+ From the target repository root in PowerShell:
10
+
11
+ ```powershell
12
+ audit-code
13
+ ```
14
+
15
+ This is the lowest-friction path.
16
+
17
+ Use it with the default backend:
18
+
19
+ ```json
20
+ {
21
+ "provider": "local-subprocess",
22
+ "ui_mode": "visible"
23
+ }
24
+ ```
25
+
26
+ ## Claude Code on Windows
27
+
28
+ If `claude` is on `PATH`, use:
29
+
30
+ ```json
31
+ {
32
+ "provider": "claude-code",
33
+ "ui_mode": "visible",
34
+ "claude_code": {
35
+ "command": "claude",
36
+ "extra_args": []
37
+ }
38
+ }
39
+ ```
40
+
41
+ If you want to force a model:
42
+
43
+ ```json
44
+ {
45
+ "provider": "claude-code",
46
+ "ui_mode": "visible",
47
+ "claude_code": {
48
+ "command": "claude",
49
+ "extra_args": ["--model", "sonnet"]
50
+ }
51
+ }
52
+ ```
53
+
54
+ ## OpenCode on Windows
55
+
56
+ If `opencode` is on `PATH`, use:
57
+
58
+ ```json
59
+ {
60
+ "provider": "opencode",
61
+ "ui_mode": "visible",
62
+ "opencode": {
63
+ "command": "opencode",
64
+ "extra_args": []
65
+ }
66
+ }
67
+ ```
68
+
69
+ If you want to force a provider/model pair:
70
+
71
+ ```json
72
+ {
73
+ "provider": "opencode",
74
+ "ui_mode": "visible",
75
+ "opencode": {
76
+ "command": "opencode",
77
+ "extra_args": ["--model", "anthropic/claude-sonnet-4.5"]
78
+ }
79
+ }
80
+ ```
81
+
82
+ ## Generic PowerShell bridge
83
+
84
+ When you need a provider-neutral launcher from Windows, use a PowerShell template bridge.
85
+
86
+ Example:
87
+
88
+ ```json
89
+ {
90
+ "provider": "subprocess-template",
91
+ "ui_mode": "visible",
92
+ "subprocess_template": {
93
+ "command_template": [
94
+ "pwsh",
95
+ "-NoProfile",
96
+ "-ExecutionPolicy",
97
+ "Bypass",
98
+ "-Command",
99
+ "& { {workerCommandShell} }"
100
+ ]
101
+ }
102
+ }
103
+ ```
104
+
105
+ If `pwsh` is not installed, replace it with `powershell`.
106
+
107
+ ## VS Code on Windows
108
+
109
+ The simplest VS Code path is still the integrated terminal.
110
+
111
+ Open the target repository in VS Code and run:
112
+
113
+ ```powershell
114
+ audit-code
115
+ ```
116
+
117
+ Use a `vscode-task` template only if you specifically need a task-oriented launcher boundary.
118
+
119
+ Example:
120
+
121
+ ```json
122
+ {
123
+ "provider": "vscode-task",
124
+ "ui_mode": "visible",
125
+ "vscode_task": {
126
+ "command_template": [
127
+ "pwsh",
128
+ "-NoProfile",
129
+ "-ExecutionPolicy",
130
+ "Bypass",
131
+ "-Command",
132
+ "& { {workerCommandShell} }"
133
+ ]
134
+ }
135
+ }
136
+ ```
137
+
138
+ ## Antigravity on Windows
139
+
140
+ There is no dedicated Antigravity provider adapter in this repository today.
141
+
142
+ The recommended practical path is:
143
+
144
+ - run `audit-code` from an Antigravity terminal
145
+ - use `local-subprocess` first
146
+ - move to `subprocess-template` only if a launcher bridge is actually needed
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "auditor-lambda",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "description": "Portable hybrid code-auditing framework for arbitrary repositories.",
6
+ "type": "module",
7
+ "bin": {
8
+ "audit-code": "audit-code.mjs"
9
+ },
10
+ "files": [
11
+ "dist/**",
12
+ "audit-code.mjs",
13
+ "audit-code-wrapper-lib.mjs",
14
+ "schemas/**",
15
+ "skills/audit-code/**",
16
+ "README.md",
17
+ "docs/**"
18
+ ],
19
+ "scripts": {
20
+ "build": "tsc -p tsconfig.json",
21
+ "check": "tsc -p tsconfig.json --noEmit",
22
+ "test": "npm run build && node --test tests/*.test.mjs",
23
+ "verify:release": "npm run check && npm test && npm run smoke:linked-audit-code && npm run smoke:packaged-audit-code",
24
+ "smoke:linked-audit-code": "node scripts/smoke-linked-audit-code.mjs",
25
+ "smoke:packaged-audit-code": "node scripts/smoke-packaged-audit-code.mjs",
26
+ "prepack": "npm run build",
27
+ "prepare": "npm run build",
28
+ "prepublishOnly": "npm run verify:release",
29
+ "start": "node dist/index.js",
30
+ "audit-code": "node audit-code.mjs",
31
+ "sample-run": "node dist/index.js sample-run"
32
+ },
33
+ "engines": {
34
+ "node": ">=20"
35
+ },
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "git+https://github.com/EthanBerlant/auditor-lambda.git"
39
+ },
40
+ "homepage": "https://github.com/EthanBerlant/auditor-lambda#readme",
41
+ "bugs": {
42
+ "url": "https://github.com/EthanBerlant/auditor-lambda/issues"
43
+ },
44
+ "keywords": [
45
+ "audit",
46
+ "cli",
47
+ "code-audit",
48
+ "static-analysis",
49
+ "orchestration",
50
+ "agents"
51
+ ],
52
+ "devDependencies": {
53
+ "@types/node": "^24.3.0",
54
+ "typescript": "^5.9.2"
55
+ }
56
+ }
@@ -0,0 +1,191 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://example.invalid/schemas/audit-code-v1alpha1.schema.json",
4
+ "title": "audit-code wrapper output v1alpha1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "contract_version",
9
+ "audit_state",
10
+ "selected_obligation",
11
+ "selected_executor",
12
+ "progress_made",
13
+ "artifacts_written",
14
+ "progress_summary",
15
+ "next_likely_step"
16
+ ],
17
+ "properties": {
18
+ "contract_version": {
19
+ "const": "audit-code/v1alpha1"
20
+ },
21
+ "audit_state": {
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "required": ["status", "obligations"],
25
+ "properties": {
26
+ "status": {
27
+ "enum": ["not_started", "active", "blocked", "complete"]
28
+ },
29
+ "last_executor": {
30
+ "type": "string"
31
+ },
32
+ "last_obligation": {
33
+ "type": "string"
34
+ },
35
+ "blockers": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "string"
39
+ }
40
+ },
41
+ "obligations": {
42
+ "type": "array",
43
+ "items": {
44
+ "type": "object",
45
+ "additionalProperties": false,
46
+ "required": ["id", "state"],
47
+ "properties": {
48
+ "id": {
49
+ "type": "string"
50
+ },
51
+ "state": {
52
+ "enum": ["missing", "present", "stale", "blocked", "satisfied"]
53
+ },
54
+ "reason": {
55
+ "type": "string"
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ },
62
+ "selected_obligation": {
63
+ "type": ["string", "null"]
64
+ },
65
+ "selected_executor": {
66
+ "type": ["string", "null"]
67
+ },
68
+ "progress_made": {
69
+ "type": "boolean"
70
+ },
71
+ "artifacts_written": {
72
+ "type": "array",
73
+ "items": {
74
+ "type": "string"
75
+ }
76
+ },
77
+ "progress_summary": {
78
+ "type": "string"
79
+ },
80
+ "next_likely_step": {
81
+ "type": ["string", "null"]
82
+ },
83
+ "handoff": {
84
+ "type": "object",
85
+ "additionalProperties": false,
86
+ "required": [
87
+ "status",
88
+ "repo_root",
89
+ "artifacts_dir",
90
+ "provider",
91
+ "summary",
92
+ "pending_obligations",
93
+ "suggested_inputs",
94
+ "suggested_commands",
95
+ "interactive_provider_hint",
96
+ "artifact_paths"
97
+ ],
98
+ "properties": {
99
+ "status": {
100
+ "enum": ["not_started", "active", "blocked", "complete"]
101
+ },
102
+ "repo_root": {
103
+ "type": "string"
104
+ },
105
+ "artifacts_dir": {
106
+ "type": "string"
107
+ },
108
+ "provider": {
109
+ "type": ["string", "null"]
110
+ },
111
+ "summary": {
112
+ "type": "string"
113
+ },
114
+ "pending_obligations": {
115
+ "type": "array",
116
+ "items": {
117
+ "type": "string"
118
+ }
119
+ },
120
+ "suggested_inputs": {
121
+ "type": "array",
122
+ "items": {
123
+ "type": "object",
124
+ "additionalProperties": false,
125
+ "required": ["flag", "suggested_path", "description"],
126
+ "properties": {
127
+ "flag": {
128
+ "enum": [
129
+ "--results",
130
+ "--updates",
131
+ "--external-analyzer-results"
132
+ ]
133
+ },
134
+ "suggested_path": {
135
+ "type": "string"
136
+ },
137
+ "description": {
138
+ "type": "string"
139
+ }
140
+ }
141
+ }
142
+ },
143
+ "suggested_commands": {
144
+ "type": "array",
145
+ "items": {
146
+ "type": "string"
147
+ }
148
+ },
149
+ "interactive_provider_hint": {
150
+ "type": ["string", "null"]
151
+ },
152
+ "artifact_paths": {
153
+ "type": "object",
154
+ "additionalProperties": false,
155
+ "required": [
156
+ "incoming_dir",
157
+ "operator_handoff_json",
158
+ "operator_handoff_markdown",
159
+ "session_config",
160
+ "run_ledger",
161
+ "audit_tasks",
162
+ "runtime_validation_tasks"
163
+ ],
164
+ "properties": {
165
+ "incoming_dir": {
166
+ "type": "string"
167
+ },
168
+ "operator_handoff_json": {
169
+ "type": "string"
170
+ },
171
+ "operator_handoff_markdown": {
172
+ "type": "string"
173
+ },
174
+ "session_config": {
175
+ "type": "string"
176
+ },
177
+ "run_ledger": {
178
+ "type": "string"
179
+ },
180
+ "audit_tasks": {
181
+ "type": ["string", "null"]
182
+ },
183
+ "runtime_validation_tasks": {
184
+ "type": ["string", "null"]
185
+ }
186
+ }
187
+ }
188
+ }
189
+ }
190
+ }
191
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "audit_result.schema.json",
4
+ "title": "Audit Result",
5
+ "type": "object",
6
+ "required": [
7
+ "task_id",
8
+ "unit_id",
9
+ "pass_id",
10
+ "lens",
11
+ "reviewed_ranges",
12
+ "findings"
13
+ ],
14
+ "properties": {
15
+ "task_id": { "type": "string" },
16
+ "unit_id": { "type": "string" },
17
+ "pass_id": { "type": "string" },
18
+ "lens": { "type": "string" },
19
+ "agent_role": { "type": "string" },
20
+ "reviewed_ranges": {
21
+ "type": "array",
22
+ "items": {
23
+ "type": "object",
24
+ "required": ["path", "start", "end"],
25
+ "properties": {
26
+ "path": { "type": "string" },
27
+ "start": { "type": "integer" },
28
+ "end": { "type": "integer" }
29
+ },
30
+ "additionalProperties": false
31
+ }
32
+ },
33
+ "findings": {
34
+ "type": "array",
35
+ "items": { "$ref": "finding.schema.json" }
36
+ },
37
+ "notes": {
38
+ "type": "array",
39
+ "items": { "type": "string" }
40
+ },
41
+ "requires_followup": { "type": "boolean" },
42
+ "followup_tasks": {
43
+ "type": "array",
44
+ "items": { "type": "string" }
45
+ }
46
+ },
47
+ "additionalProperties": true
48
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "audit_state.schema.json",
4
+ "title": "Audit State",
5
+ "type": "object",
6
+ "required": ["status", "obligations"],
7
+ "properties": {
8
+ "status": {
9
+ "type": "string",
10
+ "enum": ["not_started", "active", "blocked", "complete"]
11
+ },
12
+ "last_executor": { "type": "string" },
13
+ "last_obligation": { "type": "string" },
14
+ "blockers": {
15
+ "type": "array",
16
+ "items": { "type": "string" }
17
+ },
18
+ "obligations": {
19
+ "type": "array",
20
+ "items": {
21
+ "type": "object",
22
+ "required": ["id", "state"],
23
+ "properties": {
24
+ "id": { "type": "string" },
25
+ "state": {
26
+ "type": "string",
27
+ "enum": ["missing", "present", "stale", "blocked", "satisfied"]
28
+ },
29
+ "reason": { "type": "string" }
30
+ },
31
+ "additionalProperties": true
32
+ }
33
+ }
34
+ },
35
+ "additionalProperties": true
36
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "audit_task.schema.json",
4
+ "title": "Audit Task",
5
+ "type": "object",
6
+ "required": [
7
+ "task_id",
8
+ "unit_id",
9
+ "pass_id",
10
+ "lens",
11
+ "file_paths",
12
+ "rationale"
13
+ ],
14
+ "properties": {
15
+ "task_id": { "type": "string" },
16
+ "unit_id": { "type": "string" },
17
+ "pass_id": { "type": "string" },
18
+ "lens": { "type": "string" },
19
+ "file_paths": {
20
+ "type": "array",
21
+ "items": { "type": "string" }
22
+ },
23
+ "line_ranges": {
24
+ "type": "array",
25
+ "items": {
26
+ "type": "object",
27
+ "required": ["path", "start", "end"],
28
+ "properties": {
29
+ "path": { "type": "string" },
30
+ "start": { "type": "integer" },
31
+ "end": { "type": "integer" }
32
+ },
33
+ "additionalProperties": false
34
+ }
35
+ },
36
+ "inputs": {
37
+ "type": "object",
38
+ "properties": {
39
+ "unit_manifest_ref": { "type": "string" },
40
+ "graph_bundle_ref": { "type": "string" },
41
+ "mechanical_results_ref": { "type": "string" },
42
+ "risk_register_ref": { "type": "string" }
43
+ },
44
+ "additionalProperties": true
45
+ },
46
+ "rationale": { "type": "string" }
47
+ },
48
+ "additionalProperties": true
49
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "blind_spot_register.schema.json",
4
+ "title": "Blind Spot Register",
5
+ "type": "object",
6
+ "required": ["items"],
7
+ "properties": {
8
+ "items": {
9
+ "type": "array",
10
+ "items": {
11
+ "type": "object",
12
+ "required": ["id", "title", "kind", "summary", "evidence"],
13
+ "properties": {
14
+ "id": { "type": "string" },
15
+ "title": { "type": "string" },
16
+ "kind": { "type": "string" },
17
+ "summary": { "type": "string" },
18
+ "affected_paths": {
19
+ "type": "array",
20
+ "items": { "type": "string" }
21
+ },
22
+ "evidence": {
23
+ "type": "array",
24
+ "items": { "type": "string" }
25
+ },
26
+ "suggested_lenses": {
27
+ "type": "array",
28
+ "items": { "type": "string" }
29
+ },
30
+ "suggested_runtime_checks": {
31
+ "type": "array",
32
+ "items": { "type": "string" }
33
+ }
34
+ },
35
+ "additionalProperties": true
36
+ }
37
+ }
38
+ },
39
+ "additionalProperties": true
40
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "coverage_matrix.schema.json",
4
+ "title": "Coverage Matrix",
5
+ "type": "object",
6
+ "required": ["files"],
7
+ "properties": {
8
+ "files": {
9
+ "type": "array",
10
+ "items": {
11
+ "type": "object",
12
+ "required": ["path", "classification_status", "audit_status"],
13
+ "properties": {
14
+ "path": { "type": "string" },
15
+ "unit_ids": {
16
+ "type": "array",
17
+ "items": { "type": "string" }
18
+ },
19
+ "classification_status": { "type": "string" },
20
+ "audit_status": { "type": "string" },
21
+ "required_lenses": {
22
+ "type": "array",
23
+ "items": { "type": "string" }
24
+ },
25
+ "completed_lenses": {
26
+ "type": "array",
27
+ "items": { "type": "string" }
28
+ },
29
+ "reviewed_line_ranges": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "object",
33
+ "required": ["start", "end", "pass_id"],
34
+ "properties": {
35
+ "start": { "type": "integer" },
36
+ "end": { "type": "integer" },
37
+ "pass_id": { "type": "string" },
38
+ "lens": { "type": "string" },
39
+ "agent_role": { "type": "string" }
40
+ },
41
+ "additionalProperties": true
42
+ }
43
+ }
44
+ },
45
+ "additionalProperties": true
46
+ }
47
+ }
48
+ },
49
+ "additionalProperties": true
50
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "critical_flows.schema.json",
4
+ "title": "Critical Flows",
5
+ "type": "object",
6
+ "required": ["flows"],
7
+ "properties": {
8
+ "flows": {
9
+ "type": "array",
10
+ "items": {
11
+ "type": "object",
12
+ "required": ["id", "name", "entrypoints", "paths", "concerns"],
13
+ "properties": {
14
+ "id": { "type": "string" },
15
+ "name": { "type": "string" },
16
+ "entrypoints": {
17
+ "type": "array",
18
+ "items": { "type": "string" }
19
+ },
20
+ "paths": {
21
+ "type": "array",
22
+ "items": { "type": "string" }
23
+ },
24
+ "concerns": {
25
+ "type": "array",
26
+ "items": { "type": "string" }
27
+ },
28
+ "notes": {
29
+ "type": "array",
30
+ "items": { "type": "string" }
31
+ }
32
+ },
33
+ "additionalProperties": true
34
+ }
35
+ }
36
+ },
37
+ "additionalProperties": true
38
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "external_analyzer_results.schema.json",
4
+ "title": "External Analyzer Results",
5
+ "type": "object",
6
+ "required": ["tool", "results"],
7
+ "properties": {
8
+ "tool": { "type": "string" },
9
+ "generated_at": { "type": "string" },
10
+ "results": {
11
+ "type": "array",
12
+ "items": {
13
+ "type": "object",
14
+ "required": ["id", "category", "severity", "path", "summary"],
15
+ "properties": {
16
+ "id": { "type": "string" },
17
+ "category": { "type": "string" },
18
+ "severity": { "type": "string" },
19
+ "path": { "type": "string" },
20
+ "line_start": { "type": "integer" },
21
+ "line_end": { "type": "integer" },
22
+ "summary": { "type": "string" },
23
+ "rule": { "type": "string" },
24
+ "raw": {}
25
+ },
26
+ "additionalProperties": true
27
+ }
28
+ }
29
+ },
30
+ "additionalProperties": true
31
+ }