llm-mock-server 1.0.4 → 1.0.6

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 (113) hide show
  1. package/.desloppify/query.json +1162 -62
  2. package/.desloppify/review_packet_blind.json +18 -18
  3. package/.desloppify/review_packets/holistic_packet_20260315_185401.json +1407 -0
  4. package/.desloppify/review_packets/holistic_packet_20260315_185613.json +1407 -0
  5. package/.desloppify/state-typescript.json +2530 -645
  6. package/.desloppify/state-typescript.json.bak +2494 -582
  7. package/.desloppify/subagents/runs/20260315_185401/logs/batch-1.log +384 -0
  8. package/.desloppify/subagents/runs/20260315_185401/logs/batch-10.log +484 -0
  9. package/.desloppify/subagents/runs/20260315_185401/logs/batch-2.log +408 -0
  10. package/.desloppify/subagents/runs/20260315_185401/logs/batch-3.log +416 -0
  11. package/.desloppify/subagents/runs/20260315_185401/logs/batch-4.log +360 -0
  12. package/.desloppify/subagents/runs/20260315_185401/logs/batch-5.log +360 -0
  13. package/.desloppify/subagents/runs/20260315_185401/logs/batch-6.log +364 -0
  14. package/.desloppify/subagents/runs/20260315_185401/logs/batch-7.log +428 -0
  15. package/.desloppify/subagents/runs/20260315_185401/logs/batch-8.log +388 -0
  16. package/.desloppify/subagents/runs/20260315_185401/logs/batch-9.log +500 -0
  17. package/.desloppify/subagents/runs/20260315_185401/prompts/batch-1.md +83 -0
  18. package/.desloppify/subagents/runs/20260315_185401/prompts/batch-10.md +108 -0
  19. package/.desloppify/subagents/runs/20260315_185401/prompts/batch-2.md +89 -0
  20. package/.desloppify/subagents/runs/20260315_185401/prompts/batch-3.md +91 -0
  21. package/.desloppify/subagents/runs/20260315_185401/prompts/batch-4.md +77 -0
  22. package/.desloppify/subagents/runs/20260315_185401/prompts/batch-5.md +77 -0
  23. package/.desloppify/subagents/runs/20260315_185401/prompts/batch-6.md +78 -0
  24. package/.desloppify/subagents/runs/20260315_185401/prompts/batch-7.md +94 -0
  25. package/.desloppify/subagents/runs/20260315_185401/prompts/batch-8.md +84 -0
  26. package/.desloppify/subagents/runs/20260315_185401/prompts/batch-9.md +112 -0
  27. package/.desloppify/subagents/runs/20260315_185401/results/batch-1.raw.txt +0 -0
  28. package/.desloppify/subagents/runs/20260315_185401/results/batch-10.raw.txt +0 -0
  29. package/.desloppify/subagents/runs/20260315_185401/results/batch-2.raw.txt +0 -0
  30. package/.desloppify/subagents/runs/20260315_185401/results/batch-3.raw.txt +0 -0
  31. package/.desloppify/subagents/runs/20260315_185401/results/batch-4.raw.txt +0 -0
  32. package/.desloppify/subagents/runs/20260315_185401/results/batch-5.raw.txt +0 -0
  33. package/.desloppify/subagents/runs/20260315_185401/results/batch-6.raw.txt +0 -0
  34. package/.desloppify/subagents/runs/20260315_185401/results/batch-7.raw.txt +0 -0
  35. package/.desloppify/subagents/runs/20260315_185401/results/batch-8.raw.txt +0 -0
  36. package/.desloppify/subagents/runs/20260315_185401/results/batch-9.raw.txt +0 -0
  37. package/.desloppify/subagents/runs/20260315_185401/run.log +36 -0
  38. package/.desloppify/subagents/runs/20260315_185401/run_summary.json +156 -0
  39. package/.desloppify/subagents/runs/20260315_185613/holistic_findings_merged.json +741 -0
  40. package/.desloppify/subagents/runs/20260315_185613/logs/batch-1.log +579 -0
  41. package/.desloppify/subagents/runs/20260315_185613/logs/batch-10.log +1537 -0
  42. package/.desloppify/subagents/runs/20260315_185613/logs/batch-2.log +829 -0
  43. package/.desloppify/subagents/runs/20260315_185613/logs/batch-3.log +927 -0
  44. package/.desloppify/subagents/runs/20260315_185613/logs/batch-4.log +429 -0
  45. package/.desloppify/subagents/runs/20260315_185613/logs/batch-5.log +276 -0
  46. package/.desloppify/subagents/runs/20260315_185613/logs/batch-6.log +450 -0
  47. package/.desloppify/subagents/runs/20260315_185613/logs/batch-7.log +730 -0
  48. package/.desloppify/subagents/runs/20260315_185613/logs/batch-8.log +698 -0
  49. package/.desloppify/subagents/runs/20260315_185613/logs/batch-9.log +938 -0
  50. package/.desloppify/subagents/runs/20260315_185613/prompts/batch-1.md +83 -0
  51. package/.desloppify/subagents/runs/20260315_185613/prompts/batch-10.md +108 -0
  52. package/.desloppify/subagents/runs/20260315_185613/prompts/batch-2.md +89 -0
  53. package/.desloppify/subagents/runs/20260315_185613/prompts/batch-3.md +91 -0
  54. package/.desloppify/subagents/runs/20260315_185613/prompts/batch-4.md +77 -0
  55. package/.desloppify/subagents/runs/20260315_185613/prompts/batch-5.md +77 -0
  56. package/.desloppify/subagents/runs/20260315_185613/prompts/batch-6.md +78 -0
  57. package/.desloppify/subagents/runs/20260315_185613/prompts/batch-7.md +94 -0
  58. package/.desloppify/subagents/runs/20260315_185613/prompts/batch-8.md +84 -0
  59. package/.desloppify/subagents/runs/20260315_185613/prompts/batch-9.md +112 -0
  60. package/.desloppify/subagents/runs/20260315_185613/results/batch-1.raw.txt +78 -0
  61. package/.desloppify/subagents/runs/20260315_185613/results/batch-10.raw.txt +242 -0
  62. package/.desloppify/subagents/runs/20260315_185613/results/batch-2.raw.txt +102 -0
  63. package/.desloppify/subagents/runs/20260315_185613/results/batch-3.raw.txt +94 -0
  64. package/.desloppify/subagents/runs/20260315_185613/results/batch-4.raw.txt +86 -0
  65. package/.desloppify/subagents/runs/20260315_185613/results/batch-5.raw.txt +1 -0
  66. package/.desloppify/subagents/runs/20260315_185613/results/batch-6.raw.txt +87 -0
  67. package/.desloppify/subagents/runs/20260315_185613/results/batch-7.raw.txt +1 -0
  68. package/.desloppify/subagents/runs/20260315_185613/results/batch-8.raw.txt +107 -0
  69. package/.desloppify/subagents/runs/20260315_185613/results/batch-9.raw.txt +67 -0
  70. package/.desloppify/subagents/runs/20260315_185613/run.log +96 -0
  71. package/.desloppify/subagents/runs/20260315_185613/run_summary.json +156 -0
  72. package/.github/workflows/docs.yml +46 -0
  73. package/.github/workflows/test.yml +3 -0
  74. package/README.md +8 -4
  75. package/docs/ARCHITECTURE.md +11 -11
  76. package/package.json +18 -11
  77. package/scorecard.png +0 -0
  78. package/src/{cli.ts → cli/cli.ts} +6 -11
  79. package/src/{cli-validators.ts → cli/validators.ts} +10 -9
  80. package/src/formats/anthropic/index.ts +2 -2
  81. package/src/formats/anthropic/parse.ts +5 -2
  82. package/src/formats/anthropic/serialize.ts +3 -3
  83. package/src/formats/openai/{index.ts → chat-completions/index.ts} +3 -3
  84. package/src/formats/openai/{parse.ts → chat-completions/parse.ts} +5 -2
  85. package/src/formats/openai/{serialize.ts → chat-completions/serialize.ts} +3 -3
  86. package/src/formats/{responses → openai/responses}/index.ts +2 -2
  87. package/src/formats/{responses → openai/responses}/parse.ts +5 -2
  88. package/src/formats/{responses → openai/responses}/serialize.ts +3 -3
  89. package/src/formats/request-helpers.ts +6 -1
  90. package/src/formats/serialize-helpers.ts +9 -4
  91. package/src/formats/types.ts +2 -6
  92. package/src/history.ts +6 -2
  93. package/src/loader.ts +2 -1
  94. package/src/mock-server.ts +55 -106
  95. package/src/route-handler.ts +7 -11
  96. package/src/rule-builder.ts +73 -0
  97. package/src/rule-engine.ts +3 -10
  98. package/src/sse-writer.ts +1 -1
  99. package/src/types/reply.ts +51 -8
  100. package/src/types/request.ts +21 -6
  101. package/src/types/rule.ts +65 -7
  102. package/test/cli-validators.test.ts +13 -5
  103. package/test/formats/openai.test.ts +40 -28
  104. package/test/formats/responses.test.ts +2 -2
  105. package/test/history.test.ts +1 -1
  106. package/test/loader.test.ts +3 -3
  107. package/test/logger.test.ts +2 -2
  108. package/test/mock-server.test.ts +1 -1
  109. package/test/rule-engine.test.ts +1 -1
  110. package/tsconfig.json +2 -4
  111. package/typedoc.json +9 -0
  112. /package/src/formats/openai/{schema.ts → chat-completions/schema.ts} +0 -0
  113. /package/src/formats/{responses → openai/responses}/schema.ts +0 -0
@@ -0,0 +1,83 @@
1
+ You are a focused subagent reviewer for a single holistic investigation batch.
2
+
3
+ Repository root: /Users/suyash.x.srijan/Documents/Personal_Projects/llm-mock-server
4
+ Blind packet: /Users/suyash.x.srijan/Documents/Personal_Projects/llm-mock-server/.desloppify/review_packet_blind.json
5
+ Batch index: 1
6
+ Batch name: Architecture & Coupling
7
+ Batch dimensions: cross_module_architecture, high_level_elegance
8
+ Batch rationale: god modules, import-time side effects
9
+
10
+ Files assigned:
11
+ - src/types.ts
12
+ - src/formats/types.ts
13
+ - src/formats/request-helpers.ts
14
+ - src/logger.ts
15
+ - src/rule-engine.ts
16
+ - src/history.ts
17
+ - test/history.test.ts
18
+
19
+ Task requirements:
20
+ 1. Read the blind packet and follow `system_prompt` constraints exactly.
21
+ 1a. If previously flagged issues are listed above, use them as context for your review.
22
+ Verify whether each still applies to the current code. Do not re-report fixed or
23
+ wontfix issues. Use them as starting points to look deeper — inspect adjacent code
24
+ and related modules for defects the prior review may have missed.
25
+ 1c. Think structurally: when you spot multiple individual issues that share a common
26
+ root cause (missing abstraction, duplicated pattern, inconsistent convention),
27
+ explain the deeper structural issue in the finding, not just the surface symptom.
28
+ If the pattern is significant enough, report the structural issue as its own finding
29
+ with appropriate fix_scope ('multi_file_refactor' or 'architectural_change') and
30
+ use `root_cause_cluster` to connect related symptom findings together.
31
+ 2. Evaluate ONLY listed files and ONLY listed dimensions for this batch.
32
+ 3. Return 0-10 high-quality findings for this batch (empty array allowed).
33
+ 3a. Do not suppress real defects to keep scores high; report every material issue you can support with evidence.
34
+ 3b. Do not default to 100. Reserve 100 for genuinely exemplary evidence in this batch.
35
+ 4. Score/finding consistency is required: broader or more severe findings MUST lower dimension scores.
36
+ 4a. Any dimension scored below 85.0 MUST include explicit feedback: add at least one finding with the same `dimension` and a non-empty actionable `suggestion`.
37
+ 5. Every finding must include `related_files` with at least 2 files when possible.
38
+ 6. Every finding must include `dimension`, `identifier`, `summary`, `evidence`, `suggestion`, and `confidence`.
39
+ 7. Every finding must include `impact_scope` and `fix_scope`.
40
+ 8. Every scored dimension MUST include dimension_notes with concrete evidence.
41
+ 9. If a dimension score is >85.0, include `issues_preventing_higher_score` in dimension_notes.
42
+ 10. Use exactly one decimal place for every assessment and abstraction sub-axis score.
43
+ 11. Ignore prior chat context and any target-threshold assumptions.
44
+ 12. Do not edit repository files.
45
+ 13. Return ONLY valid JSON, no markdown fences.
46
+
47
+ Scope enums:
48
+ - impact_scope: "local" | "module" | "subsystem" | "codebase"
49
+ - fix_scope: "single_edit" | "multi_file_refactor" | "architectural_change"
50
+
51
+ Output schema:
52
+ {
53
+ "batch": "Architecture & Coupling",
54
+ "batch_index": 1,
55
+ "assessments": {"<dimension>": <0-100 with one decimal place>},
56
+ "dimension_notes": {
57
+ "<dimension>": {
58
+ "evidence": ["specific code observations"],
59
+ "impact_scope": "local|module|subsystem|codebase",
60
+ "fix_scope": "single_edit|multi_file_refactor|architectural_change",
61
+ "confidence": "high|medium|low",
62
+ "issues_preventing_higher_score": "required when score >85.0",
63
+ "sub_axes": {"abstraction_leverage": 0-100 with one decimal place, "indirection_cost": 0-100 with one decimal place, "interface_honesty": 0-100 with one decimal place} // required for abstraction_fitness when evidence supports it
64
+ }
65
+ },
66
+ "findings": [{
67
+ "dimension": "<dimension>",
68
+ "identifier": "short_id",
69
+ "summary": "one-line defect summary",
70
+ "related_files": ["relative/path.py"],
71
+ "evidence": ["specific code observation"],
72
+ "suggestion": "concrete fix recommendation",
73
+ "confidence": "high|medium|low",
74
+ "impact_scope": "local|module|subsystem|codebase",
75
+ "fix_scope": "single_edit|multi_file_refactor|architectural_change",
76
+ "root_cause_cluster": "optional_cluster_name_when_supported_by_history"
77
+ }],
78
+ "retrospective": {
79
+ "root_causes": ["optional: concise root-cause hypotheses"],
80
+ "likely_symptoms": ["optional: identifiers that look symptom-level"],
81
+ "possible_false_positives": ["optional: prior concept keys likely mis-scoped"]
82
+ }
83
+ }
@@ -0,0 +1,108 @@
1
+ You are a focused subagent reviewer for a single holistic investigation batch.
2
+
3
+ Repository root: /Users/suyash.x.srijan/Documents/Personal_Projects/llm-mock-server
4
+ Blind packet: /Users/suyash.x.srijan/Documents/Personal_Projects/llm-mock-server/.desloppify/review_packet_blind.json
5
+ Batch index: 10
6
+ Batch name: Full Codebase Sweep
7
+ Batch dimensions: cross_module_architecture, convention_outlier, error_consistency, abstraction_fitness, api_surface_coherence, authorization_consistency, ai_generated_debt, incomplete_migration, package_organization, high_level_elegance, mid_level_elegance, low_level_elegance, design_coherence
8
+ Batch rationale: thorough default: evaluate cross-cutting quality across all production files
9
+
10
+ Files assigned:
11
+ - src/cli-validators.ts
12
+ - src/cli.ts
13
+ - src/formats/anthropic/index.ts
14
+ - src/formats/anthropic/parse.ts
15
+ - src/formats/anthropic/schema.ts
16
+ - src/formats/anthropic/serialize.ts
17
+ - src/formats/openai/index.ts
18
+ - src/formats/openai/parse.ts
19
+ - src/formats/openai/schema.ts
20
+ - src/formats/openai/serialize.ts
21
+ - src/formats/request-helpers.ts
22
+ - src/formats/responses/index.ts
23
+ - src/formats/responses/parse.ts
24
+ - src/formats/responses/schema.ts
25
+ - src/formats/responses/serialize.ts
26
+ - src/formats/serialize-helpers.ts
27
+ - src/formats/types.ts
28
+ - src/history.ts
29
+ - src/index.ts
30
+ - src/loader.ts
31
+ - src/logger.ts
32
+ - src/mock-server.ts
33
+ - src/route-handler.ts
34
+ - src/rule-engine.ts
35
+ - src/sse-writer.ts
36
+ - src/types.ts
37
+ - src/types/reply.ts
38
+ - src/types/request.ts
39
+ - src/types/rule.ts
40
+ - vitest.config.ts
41
+
42
+ Task requirements:
43
+ 1. Read the blind packet and follow `system_prompt` constraints exactly.
44
+ 1a. If previously flagged issues are listed above, use them as context for your review.
45
+ Verify whether each still applies to the current code. Do not re-report fixed or
46
+ wontfix issues. Use them as starting points to look deeper — inspect adjacent code
47
+ and related modules for defects the prior review may have missed.
48
+ 1c. Think structurally: when you spot multiple individual issues that share a common
49
+ root cause (missing abstraction, duplicated pattern, inconsistent convention),
50
+ explain the deeper structural issue in the finding, not just the surface symptom.
51
+ If the pattern is significant enough, report the structural issue as its own finding
52
+ with appropriate fix_scope ('multi_file_refactor' or 'architectural_change') and
53
+ use `root_cause_cluster` to connect related symptom findings together.
54
+ 2. Evaluate ONLY listed files and ONLY listed dimensions for this batch.
55
+ 3. Return 0-13 high-quality findings for this batch (empty array allowed).
56
+ 3a. Do not suppress real defects to keep scores high; report every material issue you can support with evidence.
57
+ 3b. Do not default to 100. Reserve 100 for genuinely exemplary evidence in this batch.
58
+ 4. Score/finding consistency is required: broader or more severe findings MUST lower dimension scores.
59
+ 4a. Any dimension scored below 85.0 MUST include explicit feedback: add at least one finding with the same `dimension` and a non-empty actionable `suggestion`.
60
+ 5. Every finding must include `related_files` with at least 2 files when possible.
61
+ 6. Every finding must include `dimension`, `identifier`, `summary`, `evidence`, `suggestion`, and `confidence`.
62
+ 7. Every finding must include `impact_scope` and `fix_scope`.
63
+ 8. Every scored dimension MUST include dimension_notes with concrete evidence.
64
+ 9. If a dimension score is >85.0, include `issues_preventing_higher_score` in dimension_notes.
65
+ 10. Use exactly one decimal place for every assessment and abstraction sub-axis score.
66
+ 9a. For package_organization, ground scoring in objective structure signals from `holistic_context.structure` (root_files fan_in/fan_out roles, directory_profiles, coupling_matrix). Prefer thresholded evidence (for example: fan_in < 5 for root stragglers, import-affinity > 60%, directories > 10 files with mixed concerns).
67
+ 9b. Suggestions must include a staged reorg plan (target folders, move order, and import-update/validation commands).
68
+ 11. Ignore prior chat context and any target-threshold assumptions.
69
+ 12. Do not edit repository files.
70
+ 13. Return ONLY valid JSON, no markdown fences.
71
+
72
+ Scope enums:
73
+ - impact_scope: "local" | "module" | "subsystem" | "codebase"
74
+ - fix_scope: "single_edit" | "multi_file_refactor" | "architectural_change"
75
+
76
+ Output schema:
77
+ {
78
+ "batch": "Full Codebase Sweep",
79
+ "batch_index": 10,
80
+ "assessments": {"<dimension>": <0-100 with one decimal place>},
81
+ "dimension_notes": {
82
+ "<dimension>": {
83
+ "evidence": ["specific code observations"],
84
+ "impact_scope": "local|module|subsystem|codebase",
85
+ "fix_scope": "single_edit|multi_file_refactor|architectural_change",
86
+ "confidence": "high|medium|low",
87
+ "issues_preventing_higher_score": "required when score >85.0",
88
+ "sub_axes": {"abstraction_leverage": 0-100 with one decimal place, "indirection_cost": 0-100 with one decimal place, "interface_honesty": 0-100 with one decimal place} // required for abstraction_fitness when evidence supports it
89
+ }
90
+ },
91
+ "findings": [{
92
+ "dimension": "<dimension>",
93
+ "identifier": "short_id",
94
+ "summary": "one-line defect summary",
95
+ "related_files": ["relative/path.py"],
96
+ "evidence": ["specific code observation"],
97
+ "suggestion": "concrete fix recommendation",
98
+ "confidence": "high|medium|low",
99
+ "impact_scope": "local|module|subsystem|codebase",
100
+ "fix_scope": "single_edit|multi_file_refactor|architectural_change",
101
+ "root_cause_cluster": "optional_cluster_name_when_supported_by_history"
102
+ }],
103
+ "retrospective": {
104
+ "root_causes": ["optional: concise root-cause hypotheses"],
105
+ "likely_symptoms": ["optional: identifiers that look symptom-level"],
106
+ "possible_false_positives": ["optional: prior concept keys likely mis-scoped"]
107
+ }
108
+ }
@@ -0,0 +1,89 @@
1
+ You are a focused subagent reviewer for a single holistic investigation batch.
2
+
3
+ Repository root: /Users/suyash.x.srijan/Documents/Personal_Projects/llm-mock-server
4
+ Blind packet: /Users/suyash.x.srijan/Documents/Personal_Projects/llm-mock-server/.desloppify/review_packet_blind.json
5
+ Batch index: 2
6
+ Batch name: Conventions & Errors
7
+ Batch dimensions: convention_outlier, error_consistency, mid_level_elegance
8
+ Batch rationale: naming drift, behavioral outliers, mixed error strategies
9
+
10
+ Files assigned:
11
+ - src/cli.ts
12
+ - src/formats/anthropic/schema.ts
13
+ - src/formats/openai/schema.ts
14
+ - src/formats/responses/schema.ts
15
+ - src/logger.ts
16
+ - src/types.ts
17
+ - src/types/request.ts
18
+ - test/helpers/make-req.ts
19
+ - test/cli-validators.test.ts
20
+ - test/mock-server.test.ts
21
+ - test/rule-engine.test.ts
22
+ - src/cli-validators.ts
23
+ - src/history.ts
24
+
25
+ Task requirements:
26
+ 1. Read the blind packet and follow `system_prompt` constraints exactly.
27
+ 1a. If previously flagged issues are listed above, use them as context for your review.
28
+ Verify whether each still applies to the current code. Do not re-report fixed or
29
+ wontfix issues. Use them as starting points to look deeper — inspect adjacent code
30
+ and related modules for defects the prior review may have missed.
31
+ 1c. Think structurally: when you spot multiple individual issues that share a common
32
+ root cause (missing abstraction, duplicated pattern, inconsistent convention),
33
+ explain the deeper structural issue in the finding, not just the surface symptom.
34
+ If the pattern is significant enough, report the structural issue as its own finding
35
+ with appropriate fix_scope ('multi_file_refactor' or 'architectural_change') and
36
+ use `root_cause_cluster` to connect related symptom findings together.
37
+ 2. Evaluate ONLY listed files and ONLY listed dimensions for this batch.
38
+ 3. Return 0-10 high-quality findings for this batch (empty array allowed).
39
+ 3a. Do not suppress real defects to keep scores high; report every material issue you can support with evidence.
40
+ 3b. Do not default to 100. Reserve 100 for genuinely exemplary evidence in this batch.
41
+ 4. Score/finding consistency is required: broader or more severe findings MUST lower dimension scores.
42
+ 4a. Any dimension scored below 85.0 MUST include explicit feedback: add at least one finding with the same `dimension` and a non-empty actionable `suggestion`.
43
+ 5. Every finding must include `related_files` with at least 2 files when possible.
44
+ 6. Every finding must include `dimension`, `identifier`, `summary`, `evidence`, `suggestion`, and `confidence`.
45
+ 7. Every finding must include `impact_scope` and `fix_scope`.
46
+ 8. Every scored dimension MUST include dimension_notes with concrete evidence.
47
+ 9. If a dimension score is >85.0, include `issues_preventing_higher_score` in dimension_notes.
48
+ 10. Use exactly one decimal place for every assessment and abstraction sub-axis score.
49
+ 11. Ignore prior chat context and any target-threshold assumptions.
50
+ 12. Do not edit repository files.
51
+ 13. Return ONLY valid JSON, no markdown fences.
52
+
53
+ Scope enums:
54
+ - impact_scope: "local" | "module" | "subsystem" | "codebase"
55
+ - fix_scope: "single_edit" | "multi_file_refactor" | "architectural_change"
56
+
57
+ Output schema:
58
+ {
59
+ "batch": "Conventions & Errors",
60
+ "batch_index": 2,
61
+ "assessments": {"<dimension>": <0-100 with one decimal place>},
62
+ "dimension_notes": {
63
+ "<dimension>": {
64
+ "evidence": ["specific code observations"],
65
+ "impact_scope": "local|module|subsystem|codebase",
66
+ "fix_scope": "single_edit|multi_file_refactor|architectural_change",
67
+ "confidence": "high|medium|low",
68
+ "issues_preventing_higher_score": "required when score >85.0",
69
+ "sub_axes": {"abstraction_leverage": 0-100 with one decimal place, "indirection_cost": 0-100 with one decimal place, "interface_honesty": 0-100 with one decimal place} // required for abstraction_fitness when evidence supports it
70
+ }
71
+ },
72
+ "findings": [{
73
+ "dimension": "<dimension>",
74
+ "identifier": "short_id",
75
+ "summary": "one-line defect summary",
76
+ "related_files": ["relative/path.py"],
77
+ "evidence": ["specific code observation"],
78
+ "suggestion": "concrete fix recommendation",
79
+ "confidence": "high|medium|low",
80
+ "impact_scope": "local|module|subsystem|codebase",
81
+ "fix_scope": "single_edit|multi_file_refactor|architectural_change",
82
+ "root_cause_cluster": "optional_cluster_name_when_supported_by_history"
83
+ }],
84
+ "retrospective": {
85
+ "root_causes": ["optional: concise root-cause hypotheses"],
86
+ "likely_symptoms": ["optional: identifiers that look symptom-level"],
87
+ "possible_false_positives": ["optional: prior concept keys likely mis-scoped"]
88
+ }
89
+ }
@@ -0,0 +1,91 @@
1
+ You are a focused subagent reviewer for a single holistic investigation batch.
2
+
3
+ Repository root: /Users/suyash.x.srijan/Documents/Personal_Projects/llm-mock-server
4
+ Blind packet: /Users/suyash.x.srijan/Documents/Personal_Projects/llm-mock-server/.desloppify/review_packet_blind.json
5
+ Batch index: 3
6
+ Batch name: Abstractions & Dependencies
7
+ Batch dimensions: abstraction_fitness, mid_level_elegance, low_level_elegance
8
+ Batch rationale: abstraction hotspots (wrappers/interfaces/param bags), dep cycles
9
+
10
+ Files assigned:
11
+ - test/cli-validators.test.ts
12
+ - src/mock-server.ts
13
+ - test/formats/anthropic.test.ts
14
+ - src/cli.ts
15
+ - test/mock-server.test.ts
16
+ - src/formats/responses/serialize.ts
17
+ - test/formats/responses.test.ts
18
+ - test/history.test.ts
19
+ - src/rule-engine.ts
20
+ - src/history.ts
21
+ - src/loader.ts
22
+ - test/formats/openai.test.ts
23
+ - test/loader.test.ts
24
+ - test/logger.test.ts
25
+ - src/formats/openai/serialize.ts
26
+
27
+ Task requirements:
28
+ 1. Read the blind packet and follow `system_prompt` constraints exactly.
29
+ 1a. If previously flagged issues are listed above, use them as context for your review.
30
+ Verify whether each still applies to the current code. Do not re-report fixed or
31
+ wontfix issues. Use them as starting points to look deeper — inspect adjacent code
32
+ and related modules for defects the prior review may have missed.
33
+ 1c. Think structurally: when you spot multiple individual issues that share a common
34
+ root cause (missing abstraction, duplicated pattern, inconsistent convention),
35
+ explain the deeper structural issue in the finding, not just the surface symptom.
36
+ If the pattern is significant enough, report the structural issue as its own finding
37
+ with appropriate fix_scope ('multi_file_refactor' or 'architectural_change') and
38
+ use `root_cause_cluster` to connect related symptom findings together.
39
+ 2. Evaluate ONLY listed files and ONLY listed dimensions for this batch.
40
+ 3. Return 0-10 high-quality findings for this batch (empty array allowed).
41
+ 3a. Do not suppress real defects to keep scores high; report every material issue you can support with evidence.
42
+ 3b. Do not default to 100. Reserve 100 for genuinely exemplary evidence in this batch.
43
+ 4. Score/finding consistency is required: broader or more severe findings MUST lower dimension scores.
44
+ 4a. Any dimension scored below 85.0 MUST include explicit feedback: add at least one finding with the same `dimension` and a non-empty actionable `suggestion`.
45
+ 5. Every finding must include `related_files` with at least 2 files when possible.
46
+ 6. Every finding must include `dimension`, `identifier`, `summary`, `evidence`, `suggestion`, and `confidence`.
47
+ 7. Every finding must include `impact_scope` and `fix_scope`.
48
+ 8. Every scored dimension MUST include dimension_notes with concrete evidence.
49
+ 9. If a dimension score is >85.0, include `issues_preventing_higher_score` in dimension_notes.
50
+ 10. Use exactly one decimal place for every assessment and abstraction sub-axis score.
51
+ 11. Ignore prior chat context and any target-threshold assumptions.
52
+ 12. Do not edit repository files.
53
+ 13. Return ONLY valid JSON, no markdown fences.
54
+
55
+ Scope enums:
56
+ - impact_scope: "local" | "module" | "subsystem" | "codebase"
57
+ - fix_scope: "single_edit" | "multi_file_refactor" | "architectural_change"
58
+
59
+ Output schema:
60
+ {
61
+ "batch": "Abstractions & Dependencies",
62
+ "batch_index": 3,
63
+ "assessments": {"<dimension>": <0-100 with one decimal place>},
64
+ "dimension_notes": {
65
+ "<dimension>": {
66
+ "evidence": ["specific code observations"],
67
+ "impact_scope": "local|module|subsystem|codebase",
68
+ "fix_scope": "single_edit|multi_file_refactor|architectural_change",
69
+ "confidence": "high|medium|low",
70
+ "issues_preventing_higher_score": "required when score >85.0",
71
+ "sub_axes": {"abstraction_leverage": 0-100 with one decimal place, "indirection_cost": 0-100 with one decimal place, "interface_honesty": 0-100 with one decimal place} // required for abstraction_fitness when evidence supports it
72
+ }
73
+ },
74
+ "findings": [{
75
+ "dimension": "<dimension>",
76
+ "identifier": "short_id",
77
+ "summary": "one-line defect summary",
78
+ "related_files": ["relative/path.py"],
79
+ "evidence": ["specific code observation"],
80
+ "suggestion": "concrete fix recommendation",
81
+ "confidence": "high|medium|low",
82
+ "impact_scope": "local|module|subsystem|codebase",
83
+ "fix_scope": "single_edit|multi_file_refactor|architectural_change",
84
+ "root_cause_cluster": "optional_cluster_name_when_supported_by_history"
85
+ }],
86
+ "retrospective": {
87
+ "root_causes": ["optional: concise root-cause hypotheses"],
88
+ "likely_symptoms": ["optional: identifiers that look symptom-level"],
89
+ "possible_false_positives": ["optional: prior concept keys likely mis-scoped"]
90
+ }
91
+ }
@@ -0,0 +1,77 @@
1
+ You are a focused subagent reviewer for a single holistic investigation batch.
2
+
3
+ Repository root: /Users/suyash.x.srijan/Documents/Personal_Projects/llm-mock-server
4
+ Blind packet: /Users/suyash.x.srijan/Documents/Personal_Projects/llm-mock-server/.desloppify/review_packet_blind.json
5
+ Batch index: 4
6
+ Batch name: Testing & API
7
+ Batch dimensions: api_surface_coherence, mid_level_elegance
8
+ Batch rationale: critical untested paths, API inconsistency
9
+
10
+ Files assigned:
11
+ - src/cli-validators.ts
12
+
13
+ Task requirements:
14
+ 1. Read the blind packet and follow `system_prompt` constraints exactly.
15
+ 1a. If previously flagged issues are listed above, use them as context for your review.
16
+ Verify whether each still applies to the current code. Do not re-report fixed or
17
+ wontfix issues. Use them as starting points to look deeper — inspect adjacent code
18
+ and related modules for defects the prior review may have missed.
19
+ 1c. Think structurally: when you spot multiple individual issues that share a common
20
+ root cause (missing abstraction, duplicated pattern, inconsistent convention),
21
+ explain the deeper structural issue in the finding, not just the surface symptom.
22
+ If the pattern is significant enough, report the structural issue as its own finding
23
+ with appropriate fix_scope ('multi_file_refactor' or 'architectural_change') and
24
+ use `root_cause_cluster` to connect related symptom findings together.
25
+ 2. Evaluate ONLY listed files and ONLY listed dimensions for this batch.
26
+ 3. Return 0-10 high-quality findings for this batch (empty array allowed).
27
+ 3a. Do not suppress real defects to keep scores high; report every material issue you can support with evidence.
28
+ 3b. Do not default to 100. Reserve 100 for genuinely exemplary evidence in this batch.
29
+ 4. Score/finding consistency is required: broader or more severe findings MUST lower dimension scores.
30
+ 4a. Any dimension scored below 85.0 MUST include explicit feedback: add at least one finding with the same `dimension` and a non-empty actionable `suggestion`.
31
+ 5. Every finding must include `related_files` with at least 2 files when possible.
32
+ 6. Every finding must include `dimension`, `identifier`, `summary`, `evidence`, `suggestion`, and `confidence`.
33
+ 7. Every finding must include `impact_scope` and `fix_scope`.
34
+ 8. Every scored dimension MUST include dimension_notes with concrete evidence.
35
+ 9. If a dimension score is >85.0, include `issues_preventing_higher_score` in dimension_notes.
36
+ 10. Use exactly one decimal place for every assessment and abstraction sub-axis score.
37
+ 11. Ignore prior chat context and any target-threshold assumptions.
38
+ 12. Do not edit repository files.
39
+ 13. Return ONLY valid JSON, no markdown fences.
40
+
41
+ Scope enums:
42
+ - impact_scope: "local" | "module" | "subsystem" | "codebase"
43
+ - fix_scope: "single_edit" | "multi_file_refactor" | "architectural_change"
44
+
45
+ Output schema:
46
+ {
47
+ "batch": "Testing & API",
48
+ "batch_index": 4,
49
+ "assessments": {"<dimension>": <0-100 with one decimal place>},
50
+ "dimension_notes": {
51
+ "<dimension>": {
52
+ "evidence": ["specific code observations"],
53
+ "impact_scope": "local|module|subsystem|codebase",
54
+ "fix_scope": "single_edit|multi_file_refactor|architectural_change",
55
+ "confidence": "high|medium|low",
56
+ "issues_preventing_higher_score": "required when score >85.0",
57
+ "sub_axes": {"abstraction_leverage": 0-100 with one decimal place, "indirection_cost": 0-100 with one decimal place, "interface_honesty": 0-100 with one decimal place} // required for abstraction_fitness when evidence supports it
58
+ }
59
+ },
60
+ "findings": [{
61
+ "dimension": "<dimension>",
62
+ "identifier": "short_id",
63
+ "summary": "one-line defect summary",
64
+ "related_files": ["relative/path.py"],
65
+ "evidence": ["specific code observation"],
66
+ "suggestion": "concrete fix recommendation",
67
+ "confidence": "high|medium|low",
68
+ "impact_scope": "local|module|subsystem|codebase",
69
+ "fix_scope": "single_edit|multi_file_refactor|architectural_change",
70
+ "root_cause_cluster": "optional_cluster_name_when_supported_by_history"
71
+ }],
72
+ "retrospective": {
73
+ "root_causes": ["optional: concise root-cause hypotheses"],
74
+ "likely_symptoms": ["optional: identifiers that look symptom-level"],
75
+ "possible_false_positives": ["optional: prior concept keys likely mis-scoped"]
76
+ }
77
+ }
@@ -0,0 +1,77 @@
1
+ You are a focused subagent reviewer for a single holistic investigation batch.
2
+
3
+ Repository root: /Users/suyash.x.srijan/Documents/Personal_Projects/llm-mock-server
4
+ Blind packet: /Users/suyash.x.srijan/Documents/Personal_Projects/llm-mock-server/.desloppify/review_packet_blind.json
5
+ Batch index: 5
6
+ Batch name: Authorization
7
+ Batch dimensions: authorization_consistency, mid_level_elegance
8
+ Batch rationale: auth gaps, service role usage, RLS coverage
9
+
10
+ Files assigned:
11
+ - src/mock-server.ts
12
+
13
+ Task requirements:
14
+ 1. Read the blind packet and follow `system_prompt` constraints exactly.
15
+ 1a. If previously flagged issues are listed above, use them as context for your review.
16
+ Verify whether each still applies to the current code. Do not re-report fixed or
17
+ wontfix issues. Use them as starting points to look deeper — inspect adjacent code
18
+ and related modules for defects the prior review may have missed.
19
+ 1c. Think structurally: when you spot multiple individual issues that share a common
20
+ root cause (missing abstraction, duplicated pattern, inconsistent convention),
21
+ explain the deeper structural issue in the finding, not just the surface symptom.
22
+ If the pattern is significant enough, report the structural issue as its own finding
23
+ with appropriate fix_scope ('multi_file_refactor' or 'architectural_change') and
24
+ use `root_cause_cluster` to connect related symptom findings together.
25
+ 2. Evaluate ONLY listed files and ONLY listed dimensions for this batch.
26
+ 3. Return 0-10 high-quality findings for this batch (empty array allowed).
27
+ 3a. Do not suppress real defects to keep scores high; report every material issue you can support with evidence.
28
+ 3b. Do not default to 100. Reserve 100 for genuinely exemplary evidence in this batch.
29
+ 4. Score/finding consistency is required: broader or more severe findings MUST lower dimension scores.
30
+ 4a. Any dimension scored below 85.0 MUST include explicit feedback: add at least one finding with the same `dimension` and a non-empty actionable `suggestion`.
31
+ 5. Every finding must include `related_files` with at least 2 files when possible.
32
+ 6. Every finding must include `dimension`, `identifier`, `summary`, `evidence`, `suggestion`, and `confidence`.
33
+ 7. Every finding must include `impact_scope` and `fix_scope`.
34
+ 8. Every scored dimension MUST include dimension_notes with concrete evidence.
35
+ 9. If a dimension score is >85.0, include `issues_preventing_higher_score` in dimension_notes.
36
+ 10. Use exactly one decimal place for every assessment and abstraction sub-axis score.
37
+ 11. Ignore prior chat context and any target-threshold assumptions.
38
+ 12. Do not edit repository files.
39
+ 13. Return ONLY valid JSON, no markdown fences.
40
+
41
+ Scope enums:
42
+ - impact_scope: "local" | "module" | "subsystem" | "codebase"
43
+ - fix_scope: "single_edit" | "multi_file_refactor" | "architectural_change"
44
+
45
+ Output schema:
46
+ {
47
+ "batch": "Authorization",
48
+ "batch_index": 5,
49
+ "assessments": {"<dimension>": <0-100 with one decimal place>},
50
+ "dimension_notes": {
51
+ "<dimension>": {
52
+ "evidence": ["specific code observations"],
53
+ "impact_scope": "local|module|subsystem|codebase",
54
+ "fix_scope": "single_edit|multi_file_refactor|architectural_change",
55
+ "confidence": "high|medium|low",
56
+ "issues_preventing_higher_score": "required when score >85.0",
57
+ "sub_axes": {"abstraction_leverage": 0-100 with one decimal place, "indirection_cost": 0-100 with one decimal place, "interface_honesty": 0-100 with one decimal place} // required for abstraction_fitness when evidence supports it
58
+ }
59
+ },
60
+ "findings": [{
61
+ "dimension": "<dimension>",
62
+ "identifier": "short_id",
63
+ "summary": "one-line defect summary",
64
+ "related_files": ["relative/path.py"],
65
+ "evidence": ["specific code observation"],
66
+ "suggestion": "concrete fix recommendation",
67
+ "confidence": "high|medium|low",
68
+ "impact_scope": "local|module|subsystem|codebase",
69
+ "fix_scope": "single_edit|multi_file_refactor|architectural_change",
70
+ "root_cause_cluster": "optional_cluster_name_when_supported_by_history"
71
+ }],
72
+ "retrospective": {
73
+ "root_causes": ["optional: concise root-cause hypotheses"],
74
+ "likely_symptoms": ["optional: identifiers that look symptom-level"],
75
+ "possible_false_positives": ["optional: prior concept keys likely mis-scoped"]
76
+ }
77
+ }
@@ -0,0 +1,78 @@
1
+ You are a focused subagent reviewer for a single holistic investigation batch.
2
+
3
+ Repository root: /Users/suyash.x.srijan/Documents/Personal_Projects/llm-mock-server
4
+ Blind packet: /Users/suyash.x.srijan/Documents/Personal_Projects/llm-mock-server/.desloppify/review_packet_blind.json
5
+ Batch index: 6
6
+ Batch name: AI Debt & Migrations
7
+ Batch dimensions: ai_generated_debt, incomplete_migration, low_level_elegance
8
+ Batch rationale: AI-generated patterns, deprecated markers, migration TODOs
9
+
10
+ Files assigned:
11
+ - src/types/request.ts
12
+ - src/types/rule.ts
13
+
14
+ Task requirements:
15
+ 1. Read the blind packet and follow `system_prompt` constraints exactly.
16
+ 1a. If previously flagged issues are listed above, use them as context for your review.
17
+ Verify whether each still applies to the current code. Do not re-report fixed or
18
+ wontfix issues. Use them as starting points to look deeper — inspect adjacent code
19
+ and related modules for defects the prior review may have missed.
20
+ 1c. Think structurally: when you spot multiple individual issues that share a common
21
+ root cause (missing abstraction, duplicated pattern, inconsistent convention),
22
+ explain the deeper structural issue in the finding, not just the surface symptom.
23
+ If the pattern is significant enough, report the structural issue as its own finding
24
+ with appropriate fix_scope ('multi_file_refactor' or 'architectural_change') and
25
+ use `root_cause_cluster` to connect related symptom findings together.
26
+ 2. Evaluate ONLY listed files and ONLY listed dimensions for this batch.
27
+ 3. Return 0-10 high-quality findings for this batch (empty array allowed).
28
+ 3a. Do not suppress real defects to keep scores high; report every material issue you can support with evidence.
29
+ 3b. Do not default to 100. Reserve 100 for genuinely exemplary evidence in this batch.
30
+ 4. Score/finding consistency is required: broader or more severe findings MUST lower dimension scores.
31
+ 4a. Any dimension scored below 85.0 MUST include explicit feedback: add at least one finding with the same `dimension` and a non-empty actionable `suggestion`.
32
+ 5. Every finding must include `related_files` with at least 2 files when possible.
33
+ 6. Every finding must include `dimension`, `identifier`, `summary`, `evidence`, `suggestion`, and `confidence`.
34
+ 7. Every finding must include `impact_scope` and `fix_scope`.
35
+ 8. Every scored dimension MUST include dimension_notes with concrete evidence.
36
+ 9. If a dimension score is >85.0, include `issues_preventing_higher_score` in dimension_notes.
37
+ 10. Use exactly one decimal place for every assessment and abstraction sub-axis score.
38
+ 11. Ignore prior chat context and any target-threshold assumptions.
39
+ 12. Do not edit repository files.
40
+ 13. Return ONLY valid JSON, no markdown fences.
41
+
42
+ Scope enums:
43
+ - impact_scope: "local" | "module" | "subsystem" | "codebase"
44
+ - fix_scope: "single_edit" | "multi_file_refactor" | "architectural_change"
45
+
46
+ Output schema:
47
+ {
48
+ "batch": "AI Debt & Migrations",
49
+ "batch_index": 6,
50
+ "assessments": {"<dimension>": <0-100 with one decimal place>},
51
+ "dimension_notes": {
52
+ "<dimension>": {
53
+ "evidence": ["specific code observations"],
54
+ "impact_scope": "local|module|subsystem|codebase",
55
+ "fix_scope": "single_edit|multi_file_refactor|architectural_change",
56
+ "confidence": "high|medium|low",
57
+ "issues_preventing_higher_score": "required when score >85.0",
58
+ "sub_axes": {"abstraction_leverage": 0-100 with one decimal place, "indirection_cost": 0-100 with one decimal place, "interface_honesty": 0-100 with one decimal place} // required for abstraction_fitness when evidence supports it
59
+ }
60
+ },
61
+ "findings": [{
62
+ "dimension": "<dimension>",
63
+ "identifier": "short_id",
64
+ "summary": "one-line defect summary",
65
+ "related_files": ["relative/path.py"],
66
+ "evidence": ["specific code observation"],
67
+ "suggestion": "concrete fix recommendation",
68
+ "confidence": "high|medium|low",
69
+ "impact_scope": "local|module|subsystem|codebase",
70
+ "fix_scope": "single_edit|multi_file_refactor|architectural_change",
71
+ "root_cause_cluster": "optional_cluster_name_when_supported_by_history"
72
+ }],
73
+ "retrospective": {
74
+ "root_causes": ["optional: concise root-cause hypotheses"],
75
+ "likely_symptoms": ["optional: identifiers that look symptom-level"],
76
+ "possible_false_positives": ["optional: prior concept keys likely mis-scoped"]
77
+ }
78
+ }