refactor(ai-judge): group src modules into domain directories

- move evidence.ts and conversation.ts into evidence/ as bash.ts and conversation.ts
- move prompt.ts and model.ts into judge/
- move highrisk.ts and judge.ts into authority/, renaming judge.ts to enforce.ts to avoid clashing with the judge/ directory
- move review.ts and audit.ts into telemetry/
- move config.ts and catalog.ts into config/ as judge.ts and catalog.ts
- rewrite static and dynamic imports across src, tools, and tests to the new paths
- fix the models-catalog.json relative URL broken by the move (caught by fallow unresolved-import)
- update the PIEXTENSIO-12 module map in the ADR to the new paths
- add editorconfig for 4-space ts indentation
This commit is contained in:
2026-08-22 01:34:29 +08:00
parent c479f51469
commit 99e953664d
26 changed files with 48 additions and 44 deletions
+6 -6
View File
@@ -21,12 +21,12 @@ owning decision.
| Module | File | Deterministic tests | Status |
|---|---|---|---|
| index | `src/index.ts` | `test/lifecycle.test.ts` | present |
| config | `src/config.ts` | `test/config.test.ts` | present |
| evidence | `src/evidence.ts`, `src/conversation.ts` | `test/evidence.test.ts`, `test/conversation.test.ts` | present |
| prompt | `src/prompt.ts` | `test/prompt.test.ts` | present |
| model | `src/model.ts` | `test/model.test.ts` | present |
| review | `src/review.ts` | `test/review.test.ts` | present |
| judge | `src/judge.ts` | `test/judge.test.ts` | present |
| config | `src/config/judge.ts` | `test/config.test.ts` | present |
| evidence | `src/evidence/bash.ts`, `src/evidence/conversation.ts` | `test/evidence.test.ts`, `test/conversation.test.ts` | present |
| prompt | `src/judge/prompt.ts` | `test/prompt.test.ts` | present |
| model | `src/judge/model.ts` | `test/model.test.ts` | present |
| review | `src/telemetry/review.ts` | `test/review.test.ts` | present |
| judge | `src/authority/enforce.ts` | `test/judge.test.ts` | present |
| analyzer (separate governance consumer) | `src/analyzer/` | `test/analyzer/analyze.test.ts` | present |
No eighth live module was invented.