@blxzer/cursor-trellis 0.1.0 → 0.1.2

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 (285) hide show
  1. package/README.md +124 -5
  2. package/README.zh-CN.md +170 -0
  3. package/dist/cli/index.d.ts.map +1 -1
  4. package/dist/cli/index.js +1 -33
  5. package/dist/cli/index.js.map +1 -1
  6. package/dist/commands/init.d.ts +0 -13
  7. package/dist/commands/init.d.ts.map +1 -1
  8. package/dist/commands/init.js +7 -14
  9. package/dist/commands/init.js.map +1 -1
  10. package/dist/commands/uninstall.d.ts.map +1 -1
  11. package/dist/commands/uninstall.js +3 -32
  12. package/dist/commands/uninstall.js.map +1 -1
  13. package/dist/commands/update.d.ts.map +1 -1
  14. package/dist/commands/update.js +7 -84
  15. package/dist/commands/update.js.map +1 -1
  16. package/dist/configurators/index.d.ts +7 -8
  17. package/dist/configurators/index.d.ts.map +1 -1
  18. package/dist/configurators/index.js +11 -236
  19. package/dist/configurators/index.js.map +1 -1
  20. package/dist/configurators/workflow.d.ts.map +1 -1
  21. package/dist/configurators/workflow.js +5 -1
  22. package/dist/configurators/workflow.js.map +1 -1
  23. package/dist/migrations/manifests/0.1.1.json +9 -0
  24. package/dist/migrations/manifests/0.1.2.json +9 -0
  25. package/dist/templates/common/bundled-skills/smart-search-cli/SKILL.md +3 -3
  26. package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +4 -2
  27. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +8 -15
  28. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md +7 -7
  29. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-skills-or-commands.md +18 -21
  30. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/overview.md +2 -2
  31. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +10 -7
  32. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md +4 -4
  33. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md +20 -31
  34. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +20 -31
  35. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +24 -40
  36. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +28 -59
  37. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +12 -28
  38. package/dist/templates/common/bundled-skills/trellis-skill-creator/references/trellis-skill-locations.md +2 -2
  39. package/dist/templates/cursor/hooks.json +6 -0
  40. package/dist/templates/cursor/rules/retrieval-routing.mdc +57 -0
  41. package/dist/templates/extract.d.ts +0 -14
  42. package/dist/templates/extract.d.ts.map +1 -1
  43. package/dist/templates/extract.js +0 -34
  44. package/dist/templates/extract.js.map +1 -1
  45. package/dist/templates/markdown/agents.md +2 -6
  46. package/dist/templates/markdown/index.d.ts +1 -0
  47. package/dist/templates/markdown/index.d.ts.map +1 -1
  48. package/dist/templates/markdown/index.js +1 -0
  49. package/dist/templates/markdown/index.js.map +1 -1
  50. package/dist/templates/markdown/prompts/run-semantic-slice-12.md.txt +41 -0
  51. package/dist/templates/markdown/spec/guides/code-reuse-thinking-guide.md.txt +14 -14
  52. package/dist/templates/markdown/spec/guides/cross-layer-thinking-guide.md.txt +8 -20
  53. package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md.txt +15 -14
  54. package/dist/templates/markdown/spec/guides/cursor-context-injection-guide.md.txt +4 -2
  55. package/dist/templates/markdown/spec/guides/cursor-semantic-compliance.md.txt +49 -0
  56. package/dist/templates/markdown/spec/guides/cursor-subagent-policy.md.txt +18 -5
  57. package/dist/templates/markdown/spec/guides/retrieval-daily-guide.md.txt +68 -20
  58. package/dist/templates/shared-hooks/index.d.ts +1 -1
  59. package/dist/templates/shared-hooks/index.d.ts.map +1 -1
  60. package/dist/templates/shared-hooks/index.js +1 -0
  61. package/dist/templates/shared-hooks/index.js.map +1 -1
  62. package/dist/templates/shared-hooks/inject-retrieval-plan.py +163 -0
  63. package/dist/templates/shared-hooks/inject-subagent-context.py +31 -567
  64. package/dist/templates/shared-hooks/research-end-retrieval-pack.py +2 -11
  65. package/dist/templates/trellis/index.d.ts +12 -0
  66. package/dist/templates/trellis/index.d.ts.map +1 -1
  67. package/dist/templates/trellis/index.js +24 -0
  68. package/dist/templates/trellis/index.js.map +1 -1
  69. package/dist/templates/trellis/scripts/aggregate_retrieval_telemetry.py +342 -0
  70. package/dist/templates/trellis/scripts/batch_plan_envelope.py +105 -0
  71. package/dist/templates/trellis/scripts/codegraph_session_smoke.py +76 -0
  72. package/dist/templates/trellis/scripts/common/active_task.py +116 -147
  73. package/dist/templates/trellis/scripts/common/cli_adapter.py +34 -710
  74. package/dist/templates/trellis/scripts/common/codebase_retrieval_router.py +49 -106
  75. package/dist/templates/trellis/scripts/common/git_context.py +17 -2
  76. package/dist/templates/trellis/scripts/common/project_file_stats.py +91 -0
  77. package/dist/templates/trellis/scripts/common/retrieval_adapter_metadata.py +9 -11
  78. package/dist/templates/trellis/scripts/common/retrieval_agent_instructions.py +313 -0
  79. package/dist/templates/trellis/scripts/common/retrieval_pack.py +0 -6
  80. package/dist/templates/trellis/scripts/common/retrieval_pack_context.py +0 -4
  81. package/dist/templates/trellis/scripts/common/retrieval_plan_gate.py +76 -0
  82. package/dist/templates/trellis/scripts/common/retrieval_result_ranking.py +253 -0
  83. package/dist/templates/trellis/scripts/common/retrieval_tool_classification.py +157 -0
  84. package/dist/templates/trellis/scripts/common/semantic_plan_gate.py +52 -0
  85. package/dist/templates/trellis/scripts/common/subagent_dispatch.py +527 -0
  86. package/dist/templates/trellis/scripts/common/task_store.py +32 -0
  87. package/dist/templates/trellis/scripts/common/workflow_phase.py +3 -24
  88. package/dist/templates/trellis/scripts/rank_retrieval_candidates.py +80 -0
  89. package/dist/templates/trellis/scripts/route_codebase_retrieval.py +38 -11
  90. package/dist/templates/trellis/scripts/score_evidence.py +112 -0
  91. package/dist/templates/trellis/scripts/task.py +26 -0
  92. package/dist/templates/trellis/workflow.md +844 -960
  93. package/dist/types/ai-tools.d.ts +13 -16
  94. package/dist/types/ai-tools.d.ts.map +1 -1
  95. package/dist/types/ai-tools.js +5 -238
  96. package/dist/types/ai-tools.js.map +1 -1
  97. package/dist/utils/codebase-retrieval-router.d.ts +1 -8
  98. package/dist/utils/codebase-retrieval-router.d.ts.map +1 -1
  99. package/dist/utils/codebase-retrieval-router.js +39 -180
  100. package/dist/utils/codebase-retrieval-router.js.map +1 -1
  101. package/dist/utils/project-capabilities.d.ts.map +1 -1
  102. package/dist/utils/project-capabilities.js +10 -24
  103. package/dist/utils/project-capabilities.js.map +1 -1
  104. package/dist/utils/retrieval-agent-instructions.d.ts +14 -0
  105. package/dist/utils/retrieval-agent-instructions.d.ts.map +1 -0
  106. package/dist/utils/retrieval-agent-instructions.js +221 -0
  107. package/dist/utils/retrieval-agent-instructions.js.map +1 -0
  108. package/dist/utils/retrieval-execution-telemetry.d.ts +43 -85
  109. package/dist/utils/retrieval-execution-telemetry.d.ts.map +1 -1
  110. package/dist/utils/retrieval-execution-telemetry.js +289 -22
  111. package/dist/utils/retrieval-execution-telemetry.js.map +1 -1
  112. package/dist/utils/retrieval-result-ranking.js +1 -1
  113. package/dist/utils/retrieval-result-ranking.js.map +1 -1
  114. package/dist/utils/retrieval-tool-classification.d.ts +32 -0
  115. package/dist/utils/retrieval-tool-classification.d.ts.map +1 -0
  116. package/dist/utils/retrieval-tool-classification.js +113 -0
  117. package/dist/utils/retrieval-tool-classification.js.map +1 -0
  118. package/dist/utils/uninstall-scrubbers.d.ts +0 -36
  119. package/dist/utils/uninstall-scrubbers.d.ts.map +1 -1
  120. package/dist/utils/uninstall-scrubbers.js +0 -184
  121. package/dist/utils/uninstall-scrubbers.js.map +1 -1
  122. package/package.json +4 -2
  123. package/dist/commands/mem.d.ts +0 -30
  124. package/dist/commands/mem.d.ts.map +0 -1
  125. package/dist/commands/mem.js +0 -424
  126. package/dist/commands/mem.js.map +0 -1
  127. package/dist/configurators/antigravity.d.ts +0 -7
  128. package/dist/configurators/antigravity.d.ts.map +0 -1
  129. package/dist/configurators/antigravity.js +0 -19
  130. package/dist/configurators/antigravity.js.map +0 -1
  131. package/dist/configurators/claude.d.ts +0 -9
  132. package/dist/configurators/claude.d.ts.map +0 -1
  133. package/dist/configurators/claude.js +0 -72
  134. package/dist/configurators/claude.js.map +0 -1
  135. package/dist/configurators/codebuddy.d.ts +0 -10
  136. package/dist/configurators/codebuddy.d.ts.map +0 -1
  137. package/dist/configurators/codebuddy.js +0 -30
  138. package/dist/configurators/codebuddy.js.map +0 -1
  139. package/dist/configurators/codex.d.ts +0 -8
  140. package/dist/configurators/codex.d.ts.map +0 -1
  141. package/dist/configurators/codex.js +0 -87
  142. package/dist/configurators/codex.js.map +0 -1
  143. package/dist/configurators/copilot.d.ts +0 -10
  144. package/dist/configurators/copilot.d.ts.map +0 -1
  145. package/dist/configurators/copilot.js +0 -51
  146. package/dist/configurators/copilot.js.map +0 -1
  147. package/dist/configurators/droid.d.ts +0 -10
  148. package/dist/configurators/droid.d.ts.map +0 -1
  149. package/dist/configurators/droid.js +0 -30
  150. package/dist/configurators/droid.js.map +0 -1
  151. package/dist/configurators/gemini.d.ts +0 -16
  152. package/dist/configurators/gemini.d.ts.map +0 -1
  153. package/dist/configurators/gemini.js +0 -38
  154. package/dist/configurators/gemini.js.map +0 -1
  155. package/dist/configurators/kilo.d.ts +0 -7
  156. package/dist/configurators/kilo.d.ts.map +0 -1
  157. package/dist/configurators/kilo.js +0 -19
  158. package/dist/configurators/kilo.js.map +0 -1
  159. package/dist/configurators/kiro.d.ts +0 -8
  160. package/dist/configurators/kiro.d.ts.map +0 -1
  161. package/dist/configurators/kiro.js +0 -24
  162. package/dist/configurators/kiro.js.map +0 -1
  163. package/dist/configurators/opencode.d.ts +0 -14
  164. package/dist/configurators/opencode.d.ts.map +0 -1
  165. package/dist/configurators/opencode.js +0 -96
  166. package/dist/configurators/opencode.js.map +0 -1
  167. package/dist/configurators/pi.d.ts +0 -3
  168. package/dist/configurators/pi.d.ts.map +0 -1
  169. package/dist/configurators/pi.js +0 -45
  170. package/dist/configurators/pi.js.map +0 -1
  171. package/dist/configurators/qoder.d.ts +0 -11
  172. package/dist/configurators/qoder.d.ts.map +0 -1
  173. package/dist/configurators/qoder.js +0 -31
  174. package/dist/configurators/qoder.js.map +0 -1
  175. package/dist/configurators/windsurf.d.ts +0 -7
  176. package/dist/configurators/windsurf.d.ts.map +0 -1
  177. package/dist/configurators/windsurf.js +0 -19
  178. package/dist/configurators/windsurf.js.map +0 -1
  179. package/dist/templates/claude/agents/trellis-check.md +0 -124
  180. package/dist/templates/claude/agents/trellis-implement.md +0 -110
  181. package/dist/templates/claude/agents/trellis-research.md +0 -137
  182. package/dist/templates/claude/index.d.ts +0 -22
  183. package/dist/templates/claude/index.d.ts.map +0 -1
  184. package/dist/templates/claude/index.js +0 -46
  185. package/dist/templates/claude/index.js.map +0 -1
  186. package/dist/templates/claude/settings.json +0 -84
  187. package/dist/templates/codebuddy/agents/trellis-check.md +0 -115
  188. package/dist/templates/codebuddy/agents/trellis-implement.md +0 -110
  189. package/dist/templates/codebuddy/agents/trellis-research.md +0 -137
  190. package/dist/templates/codebuddy/index.d.ts +0 -15
  191. package/dist/templates/codebuddy/index.d.ts.map +0 -1
  192. package/dist/templates/codebuddy/index.js +0 -15
  193. package/dist/templates/codebuddy/index.js.map +0 -1
  194. package/dist/templates/codebuddy/settings.json +0 -70
  195. package/dist/templates/codex/agents/trellis-check.toml +0 -67
  196. package/dist/templates/codex/agents/trellis-implement.toml +0 -40
  197. package/dist/templates/codex/agents/trellis-research.toml +0 -73
  198. package/dist/templates/codex/config.toml +0 -28
  199. package/dist/templates/codex/hooks/session-start.py +0 -575
  200. package/dist/templates/codex/hooks.json +0 -15
  201. package/dist/templates/codex/index.d.ts +0 -39
  202. package/dist/templates/codex/index.d.ts.map +0 -1
  203. package/dist/templates/codex/index.js +0 -85
  204. package/dist/templates/codex/index.js.map +0 -1
  205. package/dist/templates/codex/skills/before-dev/SKILL.md +0 -40
  206. package/dist/templates/codex/skills/brainstorm/SKILL.md +0 -112
  207. package/dist/templates/codex/skills/break-loop/SKILL.md +0 -130
  208. package/dist/templates/codex/skills/check/SKILL.md +0 -98
  209. package/dist/templates/codex/skills/check-cross-layer/SKILL.md +0 -158
  210. package/dist/templates/codex/skills/create-command/SKILL.md +0 -101
  211. package/dist/templates/codex/skills/finish-work/SKILL.md +0 -90
  212. package/dist/templates/codex/skills/improve-ut/SKILL.md +0 -69
  213. package/dist/templates/codex/skills/integrate-skill/SKILL.md +0 -221
  214. package/dist/templates/codex/skills/onboard/SKILL.md +0 -363
  215. package/dist/templates/codex/skills/record-session/SKILL.md +0 -67
  216. package/dist/templates/codex/skills/start/SKILL.md +0 -66
  217. package/dist/templates/codex/skills/update-spec/SKILL.md +0 -335
  218. package/dist/templates/copilot/hooks/session-start.py +0 -557
  219. package/dist/templates/copilot/hooks.json +0 -19
  220. package/dist/templates/copilot/index.d.ts +0 -23
  221. package/dist/templates/copilot/index.d.ts.map +0 -1
  222. package/dist/templates/copilot/index.js +0 -54
  223. package/dist/templates/copilot/index.js.map +0 -1
  224. package/dist/templates/copilot/prompts/before-dev.prompt.md +0 -39
  225. package/dist/templates/copilot/prompts/brainstorm.prompt.md +0 -111
  226. package/dist/templates/copilot/prompts/break-loop.prompt.md +0 -129
  227. package/dist/templates/copilot/prompts/check-cross-layer.prompt.md +0 -157
  228. package/dist/templates/copilot/prompts/check.prompt.md +0 -97
  229. package/dist/templates/copilot/prompts/create-command.prompt.md +0 -116
  230. package/dist/templates/copilot/prompts/finish-work.prompt.md +0 -99
  231. package/dist/templates/copilot/prompts/integrate-skill.prompt.md +0 -223
  232. package/dist/templates/copilot/prompts/onboard.prompt.md +0 -362
  233. package/dist/templates/copilot/prompts/parallel.prompt.md +0 -204
  234. package/dist/templates/copilot/prompts/record-session.prompt.md +0 -66
  235. package/dist/templates/copilot/prompts/start.prompt.md +0 -63
  236. package/dist/templates/copilot/prompts/update-spec.prompt.md +0 -358
  237. package/dist/templates/droid/droids/trellis-check.md +0 -107
  238. package/dist/templates/droid/droids/trellis-implement.md +0 -102
  239. package/dist/templates/droid/droids/trellis-research.md +0 -137
  240. package/dist/templates/droid/index.d.ts +0 -15
  241. package/dist/templates/droid/index.d.ts.map +0 -1
  242. package/dist/templates/droid/index.js +0 -15
  243. package/dist/templates/droid/index.js.map +0 -1
  244. package/dist/templates/droid/settings.json +0 -70
  245. package/dist/templates/gemini/agents/trellis-check.md +0 -107
  246. package/dist/templates/gemini/agents/trellis-implement.md +0 -102
  247. package/dist/templates/gemini/agents/trellis-research.md +0 -136
  248. package/dist/templates/gemini/index.d.ts +0 -13
  249. package/dist/templates/gemini/index.d.ts.map +0 -1
  250. package/dist/templates/gemini/index.js +0 -13
  251. package/dist/templates/gemini/index.js.map +0 -1
  252. package/dist/templates/gemini/settings.json +0 -28
  253. package/dist/templates/kiro/agents/trellis-check.json +0 -26
  254. package/dist/templates/kiro/agents/trellis-implement.json +0 -26
  255. package/dist/templates/kiro/agents/trellis-research.json +0 -30
  256. package/dist/templates/kiro/index.d.ts +0 -18
  257. package/dist/templates/kiro/index.d.ts.map +0 -1
  258. package/dist/templates/kiro/index.js +0 -18
  259. package/dist/templates/kiro/index.js.map +0 -1
  260. package/dist/templates/opencode/agents/trellis-check.md +0 -122
  261. package/dist/templates/opencode/agents/trellis-implement.md +0 -118
  262. package/dist/templates/opencode/agents/trellis-research.md +0 -145
  263. package/dist/templates/opencode/lib/session-utils.js +0 -667
  264. package/dist/templates/opencode/lib/trellis-context.js +0 -336
  265. package/dist/templates/opencode/package.json +0 -5
  266. package/dist/templates/opencode/plugins/inject-subagent-context.js +0 -495
  267. package/dist/templates/opencode/plugins/inject-workflow-state.js +0 -159
  268. package/dist/templates/opencode/plugins/session-start.js +0 -101
  269. package/dist/templates/pi/agents/trellis-check.md +0 -37
  270. package/dist/templates/pi/agents/trellis-implement.md +0 -42
  271. package/dist/templates/pi/agents/trellis-research.md +0 -25
  272. package/dist/templates/pi/extensions/trellis/index.ts.txt +0 -1600
  273. package/dist/templates/pi/index.d.ts +0 -5
  274. package/dist/templates/pi/index.d.ts.map +0 -1
  275. package/dist/templates/pi/index.js +0 -12
  276. package/dist/templates/pi/index.js.map +0 -1
  277. package/dist/templates/pi/settings.json +0 -12
  278. package/dist/templates/qoder/agents/trellis-check.md +0 -108
  279. package/dist/templates/qoder/agents/trellis-implement.md +0 -103
  280. package/dist/templates/qoder/agents/trellis-research.md +0 -137
  281. package/dist/templates/qoder/index.d.ts +0 -15
  282. package/dist/templates/qoder/index.d.ts.map +0 -1
  283. package/dist/templates/qoder/index.js +0 -15
  284. package/dist/templates/qoder/index.js.map +0 -1
  285. package/dist/templates/qoder/settings.json +0 -47
@@ -95,13 +95,7 @@ def _has_research_signals(task_dir: Path) -> bool:
95
95
  return False
96
96
 
97
97
 
98
- _PLATFORM_ARG_MAP = {
99
- "cursor": "cursor",
100
- "claude": "claude-code",
101
- }
102
-
103
-
104
- def _run_retrieval_pack(repo_root: Path, platform: str | None) -> dict[str, Any] | None:
98
+ def _run_retrieval_pack(repo_root: Path) -> dict[str, Any] | None:
105
99
  script = repo_root / DIR_WORKFLOW / "scripts" / "get_context.py"
106
100
  if not script.is_file():
107
101
  return None
@@ -116,9 +110,6 @@ def _run_retrieval_pack(repo_root: Path, platform: str | None) -> dict[str, Any]
116
110
  "retrieval-pack",
117
111
  "--json",
118
112
  ]
119
- if platform:
120
- router_platform = _PLATFORM_ARG_MAP.get(platform, platform)
121
- cmd.extend(["--platform", router_platform])
122
113
  proc = subprocess.run(
123
114
  cmd,
124
115
  cwd=str(repo_root),
@@ -187,7 +178,7 @@ def main() -> None:
187
178
  if not _has_research_signals(task_dir):
188
179
  return
189
180
 
190
- pack = _run_retrieval_pack(repo_root, _detect_platform(input_data))
181
+ pack = _run_retrieval_pack(repo_root)
191
182
  if not pack:
192
183
  return
193
184
 
@@ -37,12 +37,23 @@ export declare const commonTaskDashboard: string;
37
37
  export declare const commonTaskGates: string;
38
38
  export declare const commonTaskMap: string;
39
39
  export declare const commonParentOrchestration: string;
40
+ export declare const commonSubagentDispatch: string;
40
41
  export declare const commonArtifactSearch: string;
41
42
  export declare const commonSessionMemory: string;
42
43
  export declare const commonSmartSearchEvidence: string;
43
44
  export declare const commonSmartSearchResolve: string;
44
45
  export declare const commonRetrievalEvidence: string;
45
46
  export declare const commonCodebaseRetrievalRouter: string;
47
+ export declare const commonProjectFileStats: string;
48
+ export declare const commonRetrievalToolClassification: string;
49
+ export declare const aggregateRetrievalTelemetryScript: string;
50
+ export declare const commonRetrievalAgentInstructions: string;
51
+ export declare const commonRetrievalPlanGate: string;
52
+ export declare const commonSemanticPlanGate: string;
53
+ export declare const commonRetrievalResultRanking: string;
54
+ export declare const rankRetrievalCandidatesScript: string;
55
+ export declare const batchPlanEnvelopeScript: string;
56
+ export declare const scoreEvidenceScript: string;
46
57
  export declare const commonRetrievalAdapterMetadata: string;
47
58
  export declare const commonContextPack: string;
48
59
  export declare const commonRetrievalPack: string;
@@ -64,6 +75,7 @@ export declare const runSmartSearchScript: string;
64
75
  export declare const buildContextPackScript: string;
65
76
  export declare const buildRetrievalPackScript: string;
66
77
  export declare const routeCodebaseRetrievalScript: string;
78
+ export declare const codegraphSessionSmokeScript: string;
67
79
  export declare const workflowMdTemplate: string;
68
80
  export declare const configYamlTemplate: string;
69
81
  export declare const gitignoreTemplate: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/trellis/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAcH,eAAO,MAAM,WAAW,QAAsC,CAAC;AAG/D,eAAO,MAAM,UAAU,QAA6C,CAAC;AACrE,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,eAAe,QAA8C,CAAC;AAC3E,eAAO,MAAM,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AiB,QAAiD,CAAC;AAChF,eAAO,MAAM,mBAAmB,QAAmD,CAAC;AACpF,eAAO,MAAM,0BAA0B,QAEtC,CAAC;AACF,eAAO,MAAM,8BAA8B,QAE1C,CAAC;AACF,eAAO,MAAM,oBAAoB,QAEhC,CAAC;AACF,eAAO,MAAM,qBAAqB,QAEjC,CAAC;AACF,eAAO,MAAM,mBAAmB,QAE/B,CAAC;AACF,eAAO,MAAM,mBAAmB,QAE/B,CAAC;AACF,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAG9E,eAAO,MAAM,kBAAkB,QAA2C,CAAC;AAC3E,eAAO,MAAM,mBAAmB,QAA4C,CAAC;AAC7E,eAAO,MAAM,UAAU,QAAkC,CAAC;AAC1D,eAAO,MAAM,gBAAgB,QAAyC,CAAC;AACvE,eAAO,MAAM,gBAAgB,QAAyC,CAAC;AACvE,eAAO,MAAM,qBAAqB,QAA8C,CAAC;AACjF,eAAO,MAAM,kBAAkB,QAA2C,CAAC;AAC3E,eAAO,MAAM,oBAAoB,QAA8C,CAAC;AAChF,eAAO,MAAM,sBAAsB,QAAgD,CAAC;AACpF,eAAO,MAAM,wBAAwB,QAAkD,CAAC;AACxF,eAAO,MAAM,4BAA4B,QAExC,CAAC;AACF,eAAO,MAAM,2BAA2B,QAEvC,CAAC;AAGF,eAAO,MAAM,kBAAkB,QAA8B,CAAC;AAC9D,eAAO,MAAM,kBAAkB,QAA8B,CAAC;AAC9D,eAAO,MAAM,iBAAiB,QAAgC,CAAC;AAoB/D;;;;GAIG;AACH,wBAAgB,mBAAmB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAezD;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAgFnD"}
@@ -47,12 +47,23 @@ export const commonTaskDashboard = readTemplate("scripts/common/task_dashboard.p
47
47
  export const commonTaskGates = readTemplate("scripts/common/task_gates.py");
48
48
  export const commonTaskMap = readTemplate("scripts/common/task_map.py");
49
49
  export const commonParentOrchestration = readTemplate("scripts/common/parent_orchestration.py");
50
+ export const commonSubagentDispatch = readTemplate("scripts/common/subagent_dispatch.py");
50
51
  export const commonArtifactSearch = readTemplate("scripts/common/artifact_search.py");
51
52
  export const commonSessionMemory = readTemplate("scripts/common/session_memory.py");
52
53
  export const commonSmartSearchEvidence = readTemplate("scripts/common/smart_search_evidence.py");
53
54
  export const commonSmartSearchResolve = readTemplate("scripts/common/smart_search_resolve.py");
54
55
  export const commonRetrievalEvidence = readTemplate("scripts/common/retrieval_evidence.py");
55
56
  export const commonCodebaseRetrievalRouter = readTemplate("scripts/common/codebase_retrieval_router.py");
57
+ export const commonProjectFileStats = readTemplate("scripts/common/project_file_stats.py");
58
+ export const commonRetrievalToolClassification = readTemplate("scripts/common/retrieval_tool_classification.py");
59
+ export const aggregateRetrievalTelemetryScript = readTemplate("scripts/aggregate_retrieval_telemetry.py");
60
+ export const commonRetrievalAgentInstructions = readTemplate("scripts/common/retrieval_agent_instructions.py");
61
+ export const commonRetrievalPlanGate = readTemplate("scripts/common/retrieval_plan_gate.py");
62
+ export const commonSemanticPlanGate = readTemplate("scripts/common/semantic_plan_gate.py");
63
+ export const commonRetrievalResultRanking = readTemplate("scripts/common/retrieval_result_ranking.py");
64
+ export const rankRetrievalCandidatesScript = readTemplate("scripts/rank_retrieval_candidates.py");
65
+ export const batchPlanEnvelopeScript = readTemplate("scripts/batch_plan_envelope.py");
66
+ export const scoreEvidenceScript = readTemplate("scripts/score_evidence.py");
56
67
  export const commonRetrievalAdapterMetadata = readTemplate("scripts/common/retrieval_adapter_metadata.py");
57
68
  export const commonContextPack = readTemplate("scripts/common/context_pack.py");
58
69
  export const commonRetrievalPack = readTemplate("scripts/common/retrieval_pack.py");
@@ -75,6 +86,7 @@ export const runSmartSearchScript = readTemplate("scripts/run_smart_search.py");
75
86
  export const buildContextPackScript = readTemplate("scripts/build_context_pack.py");
76
87
  export const buildRetrievalPackScript = readTemplate("scripts/build_retrieval_pack.py");
77
88
  export const routeCodebaseRetrievalScript = readTemplate("scripts/route_codebase_retrieval.py");
89
+ export const codegraphSessionSmokeScript = readTemplate("scripts/codegraph_session_smoke.py");
78
90
  // Configuration files
79
91
  export const workflowMdTemplate = readTemplate("workflow.md");
80
92
  export const configYamlTemplate = readTemplate("config.yaml");
@@ -138,12 +150,19 @@ export function getAllScripts() {
138
150
  scripts.set("common/task_gates.py", commonTaskGates);
139
151
  scripts.set("common/task_map.py", commonTaskMap);
140
152
  scripts.set("common/parent_orchestration.py", commonParentOrchestration);
153
+ scripts.set("common/subagent_dispatch.py", commonSubagentDispatch);
141
154
  scripts.set("common/artifact_search.py", commonArtifactSearch);
142
155
  scripts.set("common/session_memory.py", commonSessionMemory);
143
156
  scripts.set("common/smart_search_evidence.py", commonSmartSearchEvidence);
144
157
  scripts.set("common/smart_search_resolve.py", commonSmartSearchResolve);
145
158
  scripts.set("common/retrieval_evidence.py", commonRetrievalEvidence);
146
159
  scripts.set("common/codebase_retrieval_router.py", commonCodebaseRetrievalRouter);
160
+ scripts.set("common/project_file_stats.py", commonProjectFileStats);
161
+ scripts.set("common/retrieval_tool_classification.py", commonRetrievalToolClassification);
162
+ scripts.set("common/retrieval_agent_instructions.py", commonRetrievalAgentInstructions);
163
+ scripts.set("common/retrieval_plan_gate.py", commonRetrievalPlanGate);
164
+ scripts.set("common/semantic_plan_gate.py", commonSemanticPlanGate);
165
+ scripts.set("common/retrieval_result_ranking.py", commonRetrievalResultRanking);
147
166
  scripts.set("common/retrieval_adapter_metadata.py", commonRetrievalAdapterMetadata);
148
167
  scripts.set("common/context_pack.py", commonContextPack);
149
168
  scripts.set("common/retrieval_pack.py", commonRetrievalPack);
@@ -166,6 +185,11 @@ export function getAllScripts() {
166
185
  scripts.set("build_context_pack.py", buildContextPackScript);
167
186
  scripts.set("build_retrieval_pack.py", buildRetrievalPackScript);
168
187
  scripts.set("route_codebase_retrieval.py", routeCodebaseRetrievalScript);
188
+ scripts.set("codegraph_session_smoke.py", codegraphSessionSmokeScript);
189
+ scripts.set("aggregate_retrieval_telemetry.py", aggregateRetrievalTelemetryScript);
190
+ scripts.set("rank_retrieval_candidates.py", rankRetrievalCandidatesScript);
191
+ scripts.set("batch_plan_envelope.py", batchPlanEnvelopeScript);
192
+ scripts.set("score_evidence.py", scoreEvidenceScript);
169
193
  return scripts;
170
194
  }
171
195
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/trellis/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,SAAS,YAAY,CAAC,YAAoB;IACxC,OAAO,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC;AAED,gCAAgC;AAChC,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAC;AAE/D,0BAA0B;AAC1B,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC,4BAA4B,CAAC,CAAC;AACrE,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC,yBAAyB,CAAC,CAAC;AACnE,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC,6BAA6B,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,gBAAgB,GAAG,YAAY,CAAC,+BAA+B,CAAC,CAAC;AAC9E,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC,8BAA8B,CA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C,GAAG,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;IAEtD,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -0,0 +1,342 @@
1
+ #!/usr/bin/env python3
2
+ """Aggregate per-query retrieval telemetry JSONL into summary metrics (schema v2)."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import argparse
7
+ import json
8
+ import sys
9
+ from pathlib import Path
10
+ from typing import Any
11
+
12
+ _SCRIPT_DIR = Path(__file__).resolve().parent
13
+ if str(_SCRIPT_DIR) not in sys.path:
14
+ sys.path.insert(0, str(_SCRIPT_DIR))
15
+
16
+ from common.retrieval_tool_classification import ( # noqa: E402
17
+ classify_tool_calls,
18
+ semantic_routes_in_plan,
19
+ structural_routes_in_plan,
20
+ )
21
+
22
+ SCHEMA_VERSION = 2
23
+
24
+ SEMANTIC_OUTCOMES = (
25
+ "success",
26
+ "partial",
27
+ "resource_exhausted",
28
+ "timeout",
29
+ "not_configured",
30
+ "unavailable",
31
+ "not_run",
32
+ "unknown",
33
+ )
34
+
35
+ SEMANTIC_SKIP_REASONS = (
36
+ "rg_corrob_sufficient",
37
+ "rg_empty_semantic_required",
38
+ "trap_only_semantic_required",
39
+ "not_in_plan",
40
+ "not_applicable",
41
+ "adapter_unavailable",
42
+ "agent_stopped_early",
43
+ "unknown",
44
+ "manual_not_recorded",
45
+ )
46
+
47
+
48
+ def _rate(count: int, total: int) -> float:
49
+ return 0.0 if total == 0 else count / total
50
+
51
+
52
+ def _avg(values: list[float]) -> float:
53
+ return 0.0 if not values else sum(values) / len(values)
54
+
55
+
56
+ def compute_compliance_score(record: dict[str, Any]) -> float:
57
+ earned = 0.0
58
+ possible = 0.0
59
+
60
+ if record.get("structural_in_plan"):
61
+ possible += 1.0
62
+ if record.get("codegraph_executed"):
63
+ earned += 1.0
64
+
65
+ if record.get("semantic_in_plan"):
66
+ possible += 1.0
67
+ if record.get("semantic_executed") or record.get("semantic_skip_reason") == "rg_corrob_sufficient":
68
+ earned += 1.0
69
+
70
+ possible += 1.0
71
+ if record.get("read_verification_done"):
72
+ earned += 1.0
73
+
74
+ if record.get("plan_block_in_prompt"):
75
+ possible += 0.25
76
+ if record.get("router_cli_invoked"):
77
+ earned += 0.25
78
+
79
+ return 1.0 if possible == 0 else earned / possible
80
+
81
+
82
+ def migrate_record(raw: dict[str, Any]) -> dict[str, Any]:
83
+ routes = raw.get("routes") or raw.get("routes_in_plan") or []
84
+ if not isinstance(routes, list):
85
+ routes = []
86
+ tools = raw.get("tools_called") or []
87
+ if not isinstance(tools, list):
88
+ tools = []
89
+ platform = str(raw.get("platform", "cursor"))
90
+ classified = classify_tool_calls([str(t) for t in tools], platform=platform)
91
+
92
+ structural_in = raw.get("structural_in_plan")
93
+ if not isinstance(structural_in, bool):
94
+ structural_in = structural_routes_in_plan([str(r) for r in routes])
95
+
96
+ semantic_in = raw.get("semantic_in_plan")
97
+ if not isinstance(semantic_in, bool):
98
+ semantic_in = semantic_routes_in_plan([str(r) for r in routes])
99
+
100
+ record: dict[str, Any] = {
101
+ "schema_version": SCHEMA_VERSION,
102
+ "query_id": str(raw.get("query_id", "")),
103
+ "dataset": str(raw.get("dataset", "unknown")),
104
+ "query_text": str(raw.get("query_text", "")),
105
+ "run_id": str(raw.get("run_id", "")),
106
+ "platform": platform,
107
+ "semantic_in_plan": bool(semantic_in),
108
+ "semantic_order": raw.get("semantic_order")
109
+ if isinstance(raw.get("semantic_order"), int)
110
+ else None,
111
+ "structural_in_plan": bool(structural_in),
112
+ "codegraph_in_plan": bool(raw.get("codegraph_in_plan", structural_in)),
113
+ "fallback_hint_present": bool(raw.get("fallback_hint_present")),
114
+ "intents": list(raw.get("intents") or []),
115
+ "routes": [str(r) for r in routes],
116
+ "routes_in_plan": [str(r) for r in routes],
117
+ "project_file_count": raw.get("project_file_count")
118
+ if isinstance(raw.get("project_file_count"), int)
119
+ else None,
120
+ "tools_called": classified.tools_called,
121
+ "grep_count": raw.get("grep_count")
122
+ if isinstance(raw.get("grep_count"), int)
123
+ else classified.grep_count,
124
+ "read_count": raw.get("read_count")
125
+ if isinstance(raw.get("read_count"), int)
126
+ else classified.read_count,
127
+ "codegraph_attempted": bool(
128
+ raw.get("codegraph_attempted", classified.codegraph_attempted)
129
+ ),
130
+ "codegraph_executed": bool(
131
+ raw.get("codegraph_executed", classified.codegraph_executed)
132
+ ),
133
+ "router_cli_invoked": bool(
134
+ raw.get("router_cli_invoked", classified.router_cli_invoked)
135
+ ),
136
+ "plan_block_in_prompt": bool(raw.get("plan_block_in_prompt")),
137
+ "read_verification_done": bool(
138
+ raw.get("read_verification_done", classified.read_count > 0)
139
+ ),
140
+ "semantic_attempted": bool(
141
+ raw.get("semantic_attempted", classified.semantic_attempted)
142
+ ),
143
+ "semantic_executed": bool(
144
+ raw.get("semantic_executed", classified.semantic_executed)
145
+ ),
146
+ "semantic_outcome": str(raw.get("semantic_outcome", "unknown")),
147
+ "semantic_success": bool(raw.get("semantic_success")),
148
+ "semantic_skip_reason": raw.get("semantic_skip_reason"),
149
+ "rg_candidate_count": raw.get("rg_candidate_count")
150
+ if isinstance(raw.get("rg_candidate_count"), int)
151
+ else None,
152
+ "rg_corrob_status": str(raw.get("rg_corrob_status", "unknown")),
153
+ "trap_only": bool(raw.get("trap_only")),
154
+ "corroborated_files": list(raw.get("corroborated_files") or []),
155
+ "adapter_errors": list(raw.get("adapter_errors") or []),
156
+ "candidate_pool_recall": raw.get("candidate_pool_recall")
157
+ if isinstance(raw.get("candidate_pool_recall"), (int, float))
158
+ else None,
159
+ "final_top_k_recall": raw.get("final_top_k_recall")
160
+ if isinstance(raw.get("final_top_k_recall"), (int, float))
161
+ else None,
162
+ "answer_score": raw.get("answer_score")
163
+ if isinstance(raw.get("answer_score"), (int, float))
164
+ else None,
165
+ "compliance_score": raw.get("compliance_score")
166
+ if isinstance(raw.get("compliance_score"), (int, float))
167
+ else None,
168
+ "platform_semantic_executed": bool(
169
+ raw.get("platform_semantic_executed", classified.platform_semantic_executed)
170
+ ),
171
+ "fast_context_count": int(raw.get("fast_context_count", classified.fast_context_count)),
172
+ "cursor_fast_context_misuse": bool(
173
+ raw.get("cursor_fast_context_misuse", classified.cursor_fast_context_misuse)
174
+ ),
175
+ }
176
+ if record["compliance_score"] is None:
177
+ record["compliance_score"] = compute_compliance_score(record)
178
+ return record
179
+
180
+
181
+ def derive_metrics(records: list[dict[str, Any]]) -> dict[str, Any]:
182
+ total = len(records)
183
+ outcome_counts = {k: 0 for k in SEMANTIC_OUTCOMES}
184
+ skip_counts = {k: 0 for k in SEMANTIC_SKIP_REASONS}
185
+
186
+ semantic_plan = semantic_exec = semantic_attempt = semantic_success = 0
187
+ platform_sem_exec = fast_context_total = fast_context_misuse = 0
188
+ codegraph_plan = codegraph_exec = router_cli = plan_block = read_verify = 0
189
+ compliance_scores: list[float] = []
190
+ answer_scores: list[float] = []
191
+ pool_recalls: list[float] = []
192
+ topk_recalls: list[float] = []
193
+
194
+ for rec in records:
195
+ if rec.get("semantic_in_plan"):
196
+ semantic_plan += 1
197
+ if rec.get("semantic_executed"):
198
+ semantic_exec += 1
199
+ if rec.get("platform_semantic_executed"):
200
+ platform_sem_exec += 1
201
+ fc = rec.get("fast_context_count")
202
+ if isinstance(fc, int) and fc > 0:
203
+ fast_context_total += fc
204
+ if rec.get("cursor_fast_context_misuse"):
205
+ fast_context_misuse += 1
206
+ if rec.get("semantic_attempted"):
207
+ semantic_attempt += 1
208
+ if rec.get("semantic_success") and rec.get("semantic_outcome") == "success":
209
+ semantic_success += 1
210
+ if rec.get("codegraph_in_plan"):
211
+ codegraph_plan += 1
212
+ if rec.get("codegraph_executed"):
213
+ codegraph_exec += 1
214
+ if rec.get("router_cli_invoked"):
215
+ router_cli += 1
216
+ if rec.get("plan_block_in_prompt"):
217
+ plan_block += 1
218
+ if rec.get("read_verification_done"):
219
+ read_verify += 1
220
+
221
+ outcome = str(rec.get("semantic_outcome", "unknown"))
222
+ if outcome in outcome_counts:
223
+ outcome_counts[outcome] += 1
224
+ skip = rec.get("semantic_skip_reason")
225
+ if skip and skip in skip_counts:
226
+ skip_counts[skip] += 1
227
+
228
+ cs = rec.get("compliance_score")
229
+ if isinstance(cs, (int, float)):
230
+ compliance_scores.append(float(cs))
231
+ ans = rec.get("answer_score")
232
+ if isinstance(ans, (int, float)):
233
+ answer_scores.append(float(ans))
234
+ cpr = rec.get("candidate_pool_recall")
235
+ if isinstance(cpr, (int, float)):
236
+ pool_recalls.append(float(cpr))
237
+ ftr = rec.get("final_top_k_recall")
238
+ if isinstance(ftr, (int, float)):
239
+ topk_recalls.append(float(ftr))
240
+
241
+ avg_pool = _avg(pool_recalls)
242
+ avg_topk = _avg(topk_recalls)
243
+ recall_drop = 0.0 if avg_pool <= 0 else 1.0 - avg_topk / avg_pool
244
+
245
+ return {
246
+ "schema_version": SCHEMA_VERSION,
247
+ "total_queries": total,
248
+ "semantic_plan_count": semantic_plan,
249
+ "semantic_exec_count": semantic_exec,
250
+ "semantic_attempt_count": semantic_attempt,
251
+ "semantic_exec_success_count": semantic_success,
252
+ "semantic_plan_rate": _rate(semantic_plan, total),
253
+ "semantic_exec_rate": _rate(semantic_exec, total),
254
+ "platform_semantic_exec_count": platform_sem_exec,
255
+ "platform_semantic_exec_rate": _rate(platform_sem_exec, total),
256
+ "fast_context_invocation_total": fast_context_total,
257
+ "cursor_fast_context_misuse_count": fast_context_misuse,
258
+ "cursor_fast_context_misuse_rate": _rate(fast_context_misuse, total),
259
+ "semantic_attempt_rate": _rate(semantic_attempt, total),
260
+ "semantic_exec_success_rate": _rate(semantic_success, total),
261
+ "codegraph_plan_count": codegraph_plan,
262
+ "codegraph_exec_count": codegraph_exec,
263
+ "codegraph_plan_rate": _rate(codegraph_plan, total),
264
+ "codegraph_exec_rate": _rate(codegraph_exec, total),
265
+ "router_cli_count": router_cli,
266
+ "router_cli_rate": _rate(router_cli, total),
267
+ "plan_block_count": plan_block,
268
+ "plan_block_rate": _rate(plan_block, total),
269
+ "read_verification_count": read_verify,
270
+ "read_verification_rate": _rate(read_verify, total),
271
+ "avg_compliance_score": _avg(compliance_scores),
272
+ "avg_answer_score": _avg(answer_scores),
273
+ "semantic_outcome_counts": outcome_counts,
274
+ "semantic_skip_reason_counts": skip_counts,
275
+ "avg_candidate_pool_recall": avg_pool,
276
+ "avg_final_top_k_recall": avg_topk,
277
+ "recall_drop_rate": recall_drop,
278
+ }
279
+
280
+
281
+ def load_jsonl(path: Path) -> list[dict[str, Any]]:
282
+ records: list[dict[str, Any]] = []
283
+ for line_no, line in enumerate(path.read_text(encoding="utf-8").splitlines(), start=1):
284
+ stripped = line.strip()
285
+ if not stripped or stripped.startswith("#"):
286
+ continue
287
+ try:
288
+ raw = json.loads(stripped)
289
+ except json.JSONDecodeError as exc:
290
+ raise ValueError(f"{path}:{line_no}: invalid JSON: {exc}") from exc
291
+ if not isinstance(raw, dict):
292
+ raise ValueError(f"{path}:{line_no}: expected JSON object per line")
293
+ records.append(migrate_record(raw))
294
+ return records
295
+
296
+
297
+ def main() -> int:
298
+ parser = argparse.ArgumentParser(description=__doc__)
299
+ parser.add_argument(
300
+ "jsonl",
301
+ type=Path,
302
+ help="Per-query telemetry JSONL (one object per line)",
303
+ )
304
+ parser.add_argument(
305
+ "--markdown",
306
+ action="store_true",
307
+ help="Print a short markdown summary for eval reports",
308
+ )
309
+ args = parser.parse_args()
310
+
311
+ if not args.jsonl.is_file():
312
+ print(f"error: file not found: {args.jsonl}", file=sys.stderr)
313
+ return 1
314
+
315
+ records = load_jsonl(args.jsonl)
316
+ metrics = derive_metrics(records)
317
+ payload = {"metrics": metrics, "record_count": len(records)}
318
+
319
+ if args.markdown:
320
+ m = metrics
321
+ print("## Retrieval telemetry (derived from JSONL)\n")
322
+ print("| Metric | Value |")
323
+ print("| --- | ---: |")
324
+ print(f"| total_queries | {m['total_queries']} |")
325
+ print(f"| semantic_plan_rate | {m['semantic_plan_rate']:.1%} |")
326
+ print(f"| semantic_exec_rate | {m['semantic_exec_rate']:.1%} |")
327
+ print(f"| platform_semantic_exec_rate | {m.get('platform_semantic_exec_rate', 0):.1%} |")
328
+ print(f"| cursor_fast_context_misuse_rate | {m.get('cursor_fast_context_misuse_rate', 0):.1%} |")
329
+ print(f"| codegraph_plan_rate | {m['codegraph_plan_rate']:.1%} |")
330
+ print(f"| codegraph_exec_rate | {m['codegraph_exec_rate']:.1%} |")
331
+ print(f"| router_cli_rate | {m['router_cli_rate']:.1%} |")
332
+ print(f"| avg_compliance_score | {m['avg_compliance_score']:.3f} |")
333
+ print(f"| avg_answer_score | {m['avg_answer_score']:.3f} |")
334
+ print("\nDo not hand-copy plan/exec rates; regenerate from JSONL with this script.")
335
+ else:
336
+ print(json.dumps(payload, indent=2, ensure_ascii=False))
337
+
338
+ return 0
339
+
340
+
341
+ if __name__ == "__main__":
342
+ raise SystemExit(main())
@@ -0,0 +1,105 @@
1
+ #!/usr/bin/env python3
2
+ """Batch route_codebase_retrieval for plan metrics (REC-06: platform-semantic on Cursor)."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import argparse
7
+ import json
8
+ import sys
9
+ from pathlib import Path
10
+
11
+ _SCRIPT_DIR = Path(__file__).resolve().parent
12
+ if str(_SCRIPT_DIR) not in sys.path:
13
+ sys.path.insert(0, str(_SCRIPT_DIR))
14
+
15
+ from common.codebase_retrieval_router import route_codebase_retrieval # noqa: E402
16
+ from common.retrieval_tool_classification import ( # noqa: E402
17
+ platform_semantic_route_order,
18
+ semantic_routes_in_plan,
19
+ )
20
+
21
+
22
+ def load_queries(path: Path) -> list[dict]:
23
+ text = path.read_text(encoding="utf-8-sig")
24
+ rows: list[dict] = []
25
+ for line in text.splitlines():
26
+ stripped = line.strip()
27
+ if not stripped:
28
+ continue
29
+ rows.append(json.loads(stripped))
30
+ return rows
31
+
32
+
33
+ def main(argv: list[str] | None = None) -> int:
34
+ parser = argparse.ArgumentParser(description=__doc__)
35
+ parser.add_argument(
36
+ "--queries",
37
+ type=Path,
38
+ default=None,
39
+ help="JSONL query file (default: ./queries.jsonl under cwd)",
40
+ )
41
+ parser.add_argument("--pretty", action="store_true")
42
+ args = parser.parse_args(argv)
43
+
44
+ root = Path.cwd()
45
+ queries_path = args.queries or (root / "queries.jsonl")
46
+ if not queries_path.is_file():
47
+ print(f"error: queries file not found: {queries_path}", file=sys.stderr)
48
+ return 1
49
+
50
+ rows = load_queries(queries_path)
51
+ out: list[dict] = []
52
+ plan_sem = 0
53
+ platform_sem = 0
54
+ fast_context_sem = 0
55
+
56
+ for row in rows:
57
+ query = str(row.get("query", ""))
58
+ plan = route_codebase_retrieval(query)
59
+ routes = plan.get("routes") or []
60
+ route_ids = [str(r.get("id", "")) for r in routes if isinstance(r, dict)]
61
+ sem_in_plan = semantic_routes_in_plan(route_ids)
62
+ if sem_in_plan:
63
+ plan_sem += 1
64
+ if "platform-semantic" in route_ids:
65
+ platform_sem += 1
66
+ if "semantic-fast-context" in route_ids:
67
+ fast_context_sem += 1
68
+
69
+ out.append(
70
+ {
71
+ "id": row.get("id"),
72
+ "intents": [i["id"] for i in plan.get("intents", []) if isinstance(i, dict)],
73
+ "route_ids": route_ids,
74
+ "semantic_in_plan": sem_in_plan,
75
+ "platform_semantic_order": platform_semantic_route_order(
76
+ [r for r in routes if isinstance(r, dict)]
77
+ ),
78
+ "fallback_rg_empty": any(
79
+ "corroborated" in str(f.get("when", ""))
80
+ for f in (plan.get("fallback") or [])
81
+ if isinstance(f, dict)
82
+ ),
83
+ }
84
+ )
85
+
86
+ n = len(rows)
87
+ summary = {
88
+ "n": n,
89
+ "semantic_plan_rate": plan_sem / n if n else 0.0,
90
+ "platform_semantic_plan_rate": platform_sem / n if n else 0.0,
91
+ "semantic_fast_context_plan_rate": fast_context_sem / n if n else 0.0,
92
+ "fallback_hint_rate": sum(1 for x in out if x["fallback_rg_empty"]) / n if n else 0.0,
93
+ "note": (
94
+ "Plan rates only. semantic_exec_rate must come from session tool logs "
95
+ "and classify_tool_calls(platform=cursor)."
96
+ ),
97
+ }
98
+ payload = {"summary": summary, "queries": out}
99
+ indent = 2 if args.pretty else None
100
+ print(json.dumps(payload, ensure_ascii=False, indent=indent))
101
+ return 0
102
+
103
+
104
+ if __name__ == "__main__":
105
+ raise SystemExit(main())