freeharness 0.4.1

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 (375) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE +108 -0
  3. package/README.md +134 -0
  4. package/canonical/HARVEST.yaml +858 -0
  5. package/canonical/PROVENANCE.yaml +740 -0
  6. package/canonical/agents/README.md +95 -0
  7. package/canonical/agents/agentic-architect.md +18 -0
  8. package/canonical/agents/database-reviewer.md +41 -0
  9. package/canonical/agents/explorer-ai-engineer-analyst.md +65 -0
  10. package/canonical/agents/pr-reviewer.md +96 -0
  11. package/canonical/agents/python-reviewer.md +55 -0
  12. package/canonical/agents/report-formatter.md +19 -0
  13. package/canonical/agents/security-reviewer.md +53 -0
  14. package/canonical/agents/test-writer.md +34 -0
  15. package/canonical/commands/fh-context.md +37 -0
  16. package/canonical/evals/promptfoo.redteam.yaml +108 -0
  17. package/canonical/hooks/cost-prices.json +14 -0
  18. package/canonical/hooks/freeharness-auto-memory.mjs +158 -0
  19. package/canonical/hooks/freeharness-config-guard.mjs +162 -0
  20. package/canonical/hooks/freeharness-context-monitor.mjs +198 -0
  21. package/canonical/hooks/freeharness-converge.mjs +227 -0
  22. package/canonical/hooks/freeharness-cost-tracker.mjs +1027 -0
  23. package/canonical/hooks/freeharness-memory-guard.mjs +57 -0
  24. package/canonical/hooks/freeharness-output-pruner.mjs +333 -0
  25. package/canonical/hooks/freeharness-precompact.mjs +323 -0
  26. package/canonical/hooks/freeharness-repeat-tool.mjs +208 -0
  27. package/canonical/hooks/freeharness-security-guidance.mjs +164 -0
  28. package/canonical/hooks/freeharness-session-start +583 -0
  29. package/canonical/hooks/hooks.auto-memory.claude-code.json +16 -0
  30. package/canonical/hooks/hooks.claude-code.json +17 -0
  31. package/canonical/hooks/hooks.config-guard.claude-code.json +16 -0
  32. package/canonical/hooks/hooks.context-monitor.claude-code.json +15 -0
  33. package/canonical/hooks/hooks.converge.claude-code.json +15 -0
  34. package/canonical/hooks/hooks.cost-tracker.claude-code.json +37 -0
  35. package/canonical/hooks/hooks.memory-guard.claude-code.json +16 -0
  36. package/canonical/hooks/hooks.output-pruner.claude-code.json +16 -0
  37. package/canonical/hooks/hooks.precompact.claude-code.json +15 -0
  38. package/canonical/hooks/hooks.repeat-tool.claude-code.json +25 -0
  39. package/canonical/hooks/hooks.security-guidance.claude-code.json +16 -0
  40. package/canonical/mcp/servers.json +20 -0
  41. package/canonical/openspec/config.base.yaml +89 -0
  42. package/canonical/openspec/schema.spec-driven.yaml +277 -0
  43. package/canonical/openspec/templates/data-contract.md +36 -0
  44. package/canonical/openspec/templates/design.md +84 -0
  45. package/canonical/openspec/templates/eval-plan.md +33 -0
  46. package/canonical/openspec/templates/follow-ups.md +2 -0
  47. package/canonical/openspec/templates/proposal.md +45 -0
  48. package/canonical/openspec/templates/spec.md +42 -0
  49. package/canonical/openspec/templates/tasks.md +38 -0
  50. package/canonical/profiles/local-llamacpp.LOCAL-MODELS.md +47 -0
  51. package/canonical/profiles/local-llamacpp.json +27 -0
  52. package/canonical/profiles/local-ollama.json +20 -0
  53. package/canonical/profiles/mcp.json +91 -0
  54. package/canonical/rules/CLAUDE.md +78 -0
  55. package/canonical/rules/project-CLAUDE.template.md +62 -0
  56. package/canonical/rules/routing.md +20 -0
  57. package/canonical/rules/safety.md +41 -0
  58. package/canonical/settings/settings.cache-hygiene.claude-code.json +5 -0
  59. package/canonical/skills/agent-evaluation/SKILL.md +102 -0
  60. package/canonical/skills/agent-evaluation/assets/evaluation_report_template.md +206 -0
  61. package/canonical/skills/agent-evaluation/evals/cases.yaml +106 -0
  62. package/canonical/skills/agent-evaluation/references/dataset-preparation.md +351 -0
  63. package/canonical/skills/agent-evaluation/references/scorers-constraints.md +165 -0
  64. package/canonical/skills/agent-evaluation/references/scorers.md +431 -0
  65. package/canonical/skills/agent-evaluation/references/setup-guide.md +252 -0
  66. package/canonical/skills/agent-evaluation/references/tracing-integration.md +164 -0
  67. package/canonical/skills/agent-evaluation/references/troubleshooting.md +514 -0
  68. package/canonical/skills/agent-evaluation/scripts/analyze_results.py +462 -0
  69. package/canonical/skills/agent-evaluation/scripts/create_dataset_template.py +382 -0
  70. package/canonical/skills/agent-evaluation/scripts/list_datasets.py +273 -0
  71. package/canonical/skills/agent-evaluation/scripts/run_evaluation_template.py +309 -0
  72. package/canonical/skills/agent-evaluation/scripts/setup_mlflow.py +353 -0
  73. package/canonical/skills/agent-evaluation/scripts/utils/__init__.py +27 -0
  74. package/canonical/skills/agent-evaluation/scripts/utils/env_validation.py +123 -0
  75. package/canonical/skills/agent-evaluation/scripts/utils/tracing_utils.py +108 -0
  76. package/canonical/skills/agent-evaluation/scripts/validate_agent_tracing.py +148 -0
  77. package/canonical/skills/agent-evaluation/scripts/validate_auth.py +240 -0
  78. package/canonical/skills/agent-evaluation/scripts/validate_environment.py +185 -0
  79. package/canonical/skills/agent-evaluation/scripts/validate_tracing_runtime.py +318 -0
  80. package/canonical/skills/agentic-architecture/SKILL.md +41 -0
  81. package/canonical/skills/agentic-architecture/evals/cases.yaml +94 -0
  82. package/canonical/skills/agentic-architecture/reference/context-engineering.md +75 -0
  83. package/canonical/skills/agentic-architecture/reference/patterns.md +76 -0
  84. package/canonical/skills/agentic-architecture/reference/reliability-observability.md +94 -0
  85. package/canonical/skills/agentic-architecture/reference/review-framework.md +59 -0
  86. package/canonical/skills/code-review/SKILL.md +52 -0
  87. package/canonical/skills/code-review/evals/cases.yaml +197 -0
  88. package/canonical/skills/git-workflow/SKILL.md +41 -0
  89. package/canonical/skills/git-workflow/evals/cases.yaml +92 -0
  90. package/canonical/skills/local-code/SKILL.md +24 -0
  91. package/canonical/skills/local-code/evals/cases.yaml +85 -0
  92. package/canonical/skills/local-code/scripts/query_llama.py +68 -0
  93. package/canonical/skills/report-formatting/SKILL.md +62 -0
  94. package/canonical/skills/report-formatting/evals/cases.yaml +83 -0
  95. package/canonical/skills/report-formatting/reference/ARCHITECTURE.md +135 -0
  96. package/canonical/skills/report-formatting/reference/HELPERS.md +120 -0
  97. package/canonical/skills/report-formatting/reference/PPTX.md +136 -0
  98. package/canonical/skills/report-formatting/reference/RELEASE.md +99 -0
  99. package/canonical/skills/report-formatting/reference/TEMPLATES.md +48 -0
  100. package/canonical/skills/report-formatting/reference/authoring.md +66 -0
  101. package/canonical/skills/report-formatting/scripts/architecture-template.md +271 -0
  102. package/canonical/skills/report-formatting/scripts/assets/claro-logo.png +0 -0
  103. package/canonical/skills/report-formatting/scripts/assets/claro-wordmark.svg +1 -0
  104. package/canonical/skills/report-formatting/scripts/build-architecture.js +57 -0
  105. package/canonical/skills/report-formatting/scripts/build-md-claro.js +224 -0
  106. package/canonical/skills/report-formatting/scripts/build-release.js +51 -0
  107. package/canonical/skills/report-formatting/scripts/check-env.js +58 -0
  108. package/canonical/skills/report-formatting/scripts/docmodel.js +283 -0
  109. package/canonical/skills/report-formatting/scripts/example-build.js +119 -0
  110. package/canonical/skills/report-formatting/scripts/example_build_ArchitectureReview_docx.js +195 -0
  111. package/canonical/skills/report-formatting/scripts/example_build_ExecutiveReport_docx.js +114 -0
  112. package/canonical/skills/report-formatting/scripts/package.json +17 -0
  113. package/canonical/skills/report-formatting/scripts/pptx/example_build_StatusReport_pptx.py +223 -0
  114. package/canonical/skills/report-formatting/scripts/pptx/example_build_WeeklyStatus_pptx.py +245 -0
  115. package/canonical/skills/report-formatting/scripts/pptx/pptx_office.py +144 -0
  116. package/canonical/skills/report-formatting/scripts/pptx/requirements.txt +7 -0
  117. package/canonical/skills/report-formatting/scripts/pptx/status_report_blocks.py +193 -0
  118. package/canonical/skills/report-formatting/scripts/pptx/theme_claro_pptx.py +473 -0
  119. package/canonical/skills/report-formatting/scripts/release-template.md +80 -0
  120. package/canonical/skills/report-formatting/scripts/render-mermaid.js +105 -0
  121. package/canonical/skills/report-formatting/scripts/theme-claro.js +403 -0
  122. package/canonical/skills/subagent-driven-development/SKILL.md +60 -0
  123. package/canonical/skills/subagent-driven-development/evals/cases.yaml +208 -0
  124. package/canonical/skills/subagent-driven-development/reference/brief.md +91 -0
  125. package/canonical/skills/subagent-driven-development/reference/handoff.md +118 -0
  126. package/canonical/skills/subagent-driven-development/scripts/validate-handoff.mjs +850 -0
  127. package/canonical/skills/systematic-debugging/SKILL.md +44 -0
  128. package/canonical/skills/systematic-debugging/evals/cases.yaml +90 -0
  129. package/canonical/skills/test-driven-development/SKILL.md +42 -0
  130. package/canonical/skills/test-driven-development/evals/cases.yaml +86 -0
  131. package/canonical/skills/test-driven-development/reference/writing-good-tests.md +52 -0
  132. package/canonical/skills/verification-before-completion/SKILL.md +53 -0
  133. package/canonical/skills/verification-before-completion/evals/cases.yaml +107 -0
  134. package/dist/adapters/content/language-lint.d.ts +46 -0
  135. package/dist/adapters/content/language-lint.js +191 -0
  136. package/dist/adapters/harness/claude-code.d.ts +57 -0
  137. package/dist/adapters/harness/claude-code.js +385 -0
  138. package/dist/adapters/harness/index.d.ts +3 -0
  139. package/dist/adapters/harness/index.js +17 -0
  140. package/dist/adapters/harness/opencode.d.ts +7 -0
  141. package/dist/adapters/harness/opencode.js +166 -0
  142. package/dist/adapters/harness/plugin.d.ts +22 -0
  143. package/dist/adapters/harness/plugin.js +257 -0
  144. package/dist/adapters/memory/doctor.d.ts +480 -0
  145. package/dist/adapters/memory/doctor.js +1217 -0
  146. package/dist/adapters/memory/vendored.d.ts +150 -0
  147. package/dist/adapters/memory/vendored.js +487 -0
  148. package/dist/adapters/package/node.d.ts +9 -0
  149. package/dist/adapters/package/node.js +20 -0
  150. package/dist/adapters/prompt/readline.d.ts +19 -0
  151. package/dist/adapters/prompt/readline.js +53 -0
  152. package/dist/adapters/sync/diff.d.ts +43 -0
  153. package/dist/adapters/sync/diff.js +380 -0
  154. package/dist/cli/cleanup.d.ts +86 -0
  155. package/dist/cli/cleanup.js +382 -0
  156. package/dist/cli/cost.d.ts +304 -0
  157. package/dist/cli/cost.js +501 -0
  158. package/dist/cli/doctor.d.ts +205 -0
  159. package/dist/cli/doctor.js +654 -0
  160. package/dist/cli/executor.d.ts +5 -0
  161. package/dist/cli/executor.js +48 -0
  162. package/dist/cli/plugin-validate.d.ts +37 -0
  163. package/dist/cli/plugin-validate.js +256 -0
  164. package/dist/cli/prefix.d.ts +68 -0
  165. package/dist/cli/prefix.js +218 -0
  166. package/dist/cli/profile.d.ts +170 -0
  167. package/dist/cli/profile.js +285 -0
  168. package/dist/cli/runner.d.ts +10 -0
  169. package/dist/cli/runner.js +27 -0
  170. package/dist/cli/uninstall.d.ts +65 -0
  171. package/dist/cli/uninstall.js +147 -0
  172. package/dist/index.d.ts +8 -0
  173. package/dist/index.js +989 -0
  174. package/dist/infra/dogfood.d.ts +31 -0
  175. package/dist/infra/dogfood.js +51 -0
  176. package/dist/infra/fsutil.d.ts +40 -0
  177. package/dist/infra/fsutil.js +143 -0
  178. package/dist/infra/manifest.d.ts +76 -0
  179. package/dist/infra/manifest.js +92 -0
  180. package/dist/infra/paths.d.ts +19 -0
  181. package/dist/infra/paths.js +74 -0
  182. package/dist/infra/routing.d.ts +4 -0
  183. package/dist/infra/routing.js +7 -0
  184. package/node_modules/@freeharness/core/dist/context.d.ts +30 -0
  185. package/node_modules/@freeharness/core/dist/context.js +1 -0
  186. package/node_modules/@freeharness/core/dist/index.d.ts +5 -0
  187. package/node_modules/@freeharness/core/dist/index.js +6 -0
  188. package/node_modules/@freeharness/core/dist/planner.d.ts +13 -0
  189. package/node_modules/@freeharness/core/dist/planner.js +18 -0
  190. package/node_modules/@freeharness/core/dist/ports.d.ts +90 -0
  191. package/node_modules/@freeharness/core/dist/ports.js +1 -0
  192. package/node_modules/@freeharness/core/dist/registry.d.ts +41 -0
  193. package/node_modules/@freeharness/core/dist/registry.js +124 -0
  194. package/node_modules/@freeharness/core/dist/tiers.d.ts +30 -0
  195. package/node_modules/@freeharness/core/dist/tiers.js +99 -0
  196. package/node_modules/@freeharness/core/package.json +34 -0
  197. package/node_modules/@freeharness/sdd/PROVENANCE.yaml +175 -0
  198. package/node_modules/@freeharness/sdd/dist/src/bin/openspec.d.ts +2 -0
  199. package/node_modules/@freeharness/sdd/dist/src/bin/openspec.js +166 -0
  200. package/node_modules/@freeharness/sdd/dist/src/index.d.ts +14 -0
  201. package/node_modules/@freeharness/sdd/dist/src/index.js +11 -0
  202. package/node_modules/@freeharness/sdd/dist/src/init.d.ts +39 -0
  203. package/node_modules/@freeharness/sdd/dist/src/init.js +190 -0
  204. package/node_modules/@freeharness/sdd/dist/src/root-resolver.d.ts +8 -0
  205. package/node_modules/@freeharness/sdd/dist/src/root-resolver.js +32 -0
  206. package/node_modules/@freeharness/sdd/dist/src/shim/archive.d.ts +81 -0
  207. package/node_modules/@freeharness/sdd/dist/src/shim/archive.js +483 -0
  208. package/node_modules/@freeharness/sdd/dist/src/shim/context.d.ts +4 -0
  209. package/node_modules/@freeharness/sdd/dist/src/shim/context.js +48 -0
  210. package/node_modules/@freeharness/sdd/dist/src/shim/follow-up.d.ts +57 -0
  211. package/node_modules/@freeharness/sdd/dist/src/shim/follow-up.js +279 -0
  212. package/node_modules/@freeharness/sdd/dist/src/shim/instructions.d.ts +67 -0
  213. package/node_modules/@freeharness/sdd/dist/src/shim/instructions.js +460 -0
  214. package/node_modules/@freeharness/sdd/dist/src/shim/list.d.ts +5 -0
  215. package/node_modules/@freeharness/sdd/dist/src/shim/list.js +95 -0
  216. package/node_modules/@freeharness/sdd/dist/src/shim/new-change.d.ts +6 -0
  217. package/node_modules/@freeharness/sdd/dist/src/shim/new-change.js +150 -0
  218. package/node_modules/@freeharness/sdd/dist/src/shim/schemas.d.ts +4 -0
  219. package/node_modules/@freeharness/sdd/dist/src/shim/schemas.js +23 -0
  220. package/node_modules/@freeharness/sdd/dist/src/shim/shared.d.ts +56 -0
  221. package/node_modules/@freeharness/sdd/dist/src/shim/shared.js +140 -0
  222. package/node_modules/@freeharness/sdd/dist/src/shim/status.d.ts +8 -0
  223. package/node_modules/@freeharness/sdd/dist/src/shim/status.js +85 -0
  224. package/node_modules/@freeharness/sdd/dist/src/shim/validate.d.ts +6 -0
  225. package/node_modules/@freeharness/sdd/dist/src/shim/validate.js +229 -0
  226. package/node_modules/@freeharness/sdd/dist/src/validate-change.d.ts +40 -0
  227. package/node_modules/@freeharness/sdd/dist/src/validate-change.js +114 -0
  228. package/node_modules/@freeharness/sdd/dist/src/validate.d.ts +24 -0
  229. package/node_modules/@freeharness/sdd/dist/src/validate.js +72 -0
  230. package/node_modules/@freeharness/sdd/dist/vendor/openspec/apply/specs-apply.d.ts +130 -0
  231. package/node_modules/@freeharness/sdd/dist/vendor/openspec/apply/specs-apply.js +981 -0
  232. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/change-metadata.d.ts +46 -0
  233. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/change-metadata.js +128 -0
  234. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/change-status-policy.d.ts +26 -0
  235. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/change-status-policy.js +32 -0
  236. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/file-system.d.ts +50 -0
  237. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/file-system.js +394 -0
  238. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/global-config.d.ts +15 -0
  239. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/global-config.js +49 -0
  240. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/graph.d.ts +71 -0
  241. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/graph.js +164 -0
  242. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/index.d.ts +11 -0
  243. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/index.js +21 -0
  244. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/instruction-loader.d.ts +102 -0
  245. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/instruction-loader.js +230 -0
  246. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/outputs.d.ts +18 -0
  247. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/outputs.js +138 -0
  248. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/resolver.d.ts +82 -0
  249. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/resolver.js +333 -0
  250. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/schema.d.ts +12 -0
  251. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/schema.js +110 -0
  252. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/state.d.ts +11 -0
  253. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/state.js +32 -0
  254. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/task-progress.d.ts +33 -0
  255. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/task-progress.js +149 -0
  256. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/types.d.ts +39 -0
  257. package/node_modules/@freeharness/sdd/dist/vendor/openspec/engine/types.js +49 -0
  258. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-generation/adapters/claude.d.ts +12 -0
  259. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-generation/adapters/claude.js +31 -0
  260. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-generation/adapters/index.d.ts +10 -0
  261. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-generation/adapters/index.js +10 -0
  262. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-generation/adapters/opencode.d.ts +12 -0
  263. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-generation/adapters/opencode.js +26 -0
  264. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-generation/generator.d.ts +28 -0
  265. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-generation/generator.js +41 -0
  266. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-generation/index.d.ts +23 -0
  267. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-generation/index.js +25 -0
  268. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-generation/invocation.d.ts +72 -0
  269. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-generation/invocation.js +76 -0
  270. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-generation/registry.d.ts +39 -0
  271. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-generation/registry.js +53 -0
  272. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-generation/types.d.ts +62 -0
  273. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-generation/types.js +7 -0
  274. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-generation/yaml.d.ts +35 -0
  275. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-generation/yaml.js +47 -0
  276. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-references.d.ts +33 -0
  277. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/command-references.js +55 -0
  278. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/shared/allowed-tools.d.ts +11 -0
  279. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/shared/allowed-tools.js +11 -0
  280. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/shared/skill-generation.d.ts +48 -0
  281. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/shared/skill-generation.js +99 -0
  282. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/skill-templates.d.ts +19 -0
  283. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/skill-templates.js +18 -0
  284. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/types.d.ts +18 -0
  285. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/types.js +4 -0
  286. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/apply-change.d.ts +19 -0
  287. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/apply-change.js +207 -0
  288. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/archive-change.d.ts +12 -0
  289. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/archive-change.js +409 -0
  290. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/bulk-archive-change.d.ts +9 -0
  291. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/bulk-archive-change.js +673 -0
  292. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/continue-change.d.ts +9 -0
  293. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/continue-change.js +230 -0
  294. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/explore.d.ts +12 -0
  295. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/explore.js +550 -0
  296. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/feedback.d.ts +8 -0
  297. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/feedback.js +107 -0
  298. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/ff-change.d.ts +12 -0
  299. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/ff-change.js +228 -0
  300. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/new-change.d.ts +9 -0
  301. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/new-change.js +147 -0
  302. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/onboard.d.ts +9 -0
  303. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/onboard.js +571 -0
  304. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/propose.d.ts +12 -0
  305. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/propose.js +322 -0
  306. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/store-selection.d.ts +7 -0
  307. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/store-selection.js +7 -0
  308. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/sync-specs.d.ts +9 -0
  309. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/sync-specs.js +518 -0
  310. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/update-change.d.ts +9 -0
  311. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/update-change.js +176 -0
  312. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/verify-change.d.ts +9 -0
  313. package/node_modules/@freeharness/sdd/dist/vendor/openspec/generation/templates/workflows/verify-change.js +344 -0
  314. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/constants.d.ts +39 -0
  315. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/constants.js +54 -0
  316. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/delta-resolution.d.ts +35 -0
  317. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/delta-resolution.js +171 -0
  318. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/parsers/change-parser.d.ts +27 -0
  319. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/parsers/change-parser.js +210 -0
  320. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/parsers/code-fence.d.ts +14 -0
  321. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/parsers/code-fence.js +48 -0
  322. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/parsers/markdown-parser.d.ts +22 -0
  323. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/parsers/markdown-parser.js +186 -0
  324. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/parsers/requirement-blocks.d.ts +65 -0
  325. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/parsers/requirement-blocks.js +409 -0
  326. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/parsers/requirement-text.d.ts +55 -0
  327. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/parsers/requirement-text.js +98 -0
  328. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/parsers/spec-structure.d.ts +8 -0
  329. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/parsers/spec-structure.js +77 -0
  330. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/purpose-placeholder.d.ts +44 -0
  331. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/purpose-placeholder.js +116 -0
  332. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/schemas/base.schema.d.ts +12 -0
  333. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/schemas/base.schema.js +17 -0
  334. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/schemas/change.schema.d.ts +72 -0
  335. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/schemas/change.schema.js +30 -0
  336. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/schemas/index.d.ts +3 -0
  337. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/schemas/index.js +3 -0
  338. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/schemas/spec.schema.d.ts +17 -0
  339. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/schemas/spec.schema.js +14 -0
  340. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/spec-discovery.d.ts +39 -0
  341. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/spec-discovery.js +114 -0
  342. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/task-lines.d.ts +45 -0
  343. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/task-lines.js +105 -0
  344. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/task-numbering.d.ts +15 -0
  345. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/task-numbering.js +56 -0
  346. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/types.d.ts +17 -0
  347. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/types.js +1 -0
  348. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/validator.d.ts +94 -0
  349. package/node_modules/@freeharness/sdd/dist/vendor/openspec/validation/validator.js +756 -0
  350. package/node_modules/@freeharness/sdd/package.json +57 -0
  351. package/node_modules/@freeharness/sdd/vendor/openspec/LICENSE.upstream +22 -0
  352. package/node_modules/@freeharness/sdd/vendor/openspec/assets/schema.upstream.yaml +232 -0
  353. package/node_modules/@freeharness/sdd/vendor/openspec/assets/skills/README.md +19 -0
  354. package/node_modules/@freeharness/sdd/vendor/openspec/assets/skills/openspec-apply-change/SKILL.md +187 -0
  355. package/node_modules/@freeharness/sdd/vendor/openspec/assets/skills/openspec-archive-change/SKILL.md +181 -0
  356. package/node_modules/@freeharness/sdd/vendor/openspec/assets/skills/openspec-bulk-archive-change/SKILL.md +338 -0
  357. package/node_modules/@freeharness/sdd/vendor/openspec/assets/skills/openspec-continue-change/SKILL.md +117 -0
  358. package/node_modules/@freeharness/sdd/vendor/openspec/assets/skills/openspec-explore/SKILL.md +342 -0
  359. package/node_modules/@freeharness/sdd/vendor/openspec/assets/skills/openspec-ff-change/SKILL.md +116 -0
  360. package/node_modules/@freeharness/sdd/vendor/openspec/assets/skills/openspec-new-change/SKILL.md +76 -0
  361. package/node_modules/@freeharness/sdd/vendor/openspec/assets/skills/openspec-onboard/SKILL.md +560 -0
  362. package/node_modules/@freeharness/sdd/vendor/openspec/assets/skills/openspec-propose/SKILL.md +162 -0
  363. package/node_modules/@freeharness/sdd/vendor/openspec/assets/skills/openspec-sync-specs/SKILL.md +261 -0
  364. package/node_modules/@freeharness/sdd/vendor/openspec/assets/skills/openspec-update-change/SKILL.md +90 -0
  365. package/node_modules/@freeharness/sdd/vendor/openspec/assets/skills/openspec-verify-change/SKILL.md +174 -0
  366. package/package.json +70 -0
  367. package/provenance/canonical.PROVENANCE.yaml +740 -0
  368. package/provenance/claude-mem.LICENSE.upstream +202 -0
  369. package/provenance/memory.PROVENANCE.yaml +399 -0
  370. package/provenance/sdd.PROVENANCE.yaml +175 -0
  371. package/vendor-licenses/caveman.LICENSE +27 -0
  372. package/vendor-licenses/deepseek-harness.LICENSE +21 -0
  373. package/vendor-licenses/ecc.LICENSE +21 -0
  374. package/vendor-licenses/pi.LICENSE +21 -0
  375. package/vendor-licenses/superpowers.LICENSE +21 -0
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,399 @@
1
+ # Provenance for the vendored claude-mem daemon. `freeharness sync check memory`
2
+ # diffs upstream against this baseline (P5), limited to the vendored paths.
3
+ upstream:
4
+ name: "claude-mem"
5
+ repo: https://github.com/thedotmack/claude-mem
6
+ fork: https://github.com/anegrelli/claude-mem
7
+ baseline_version: "13.25.1"
8
+ baseline_commit: "dcfc4422"
9
+
10
+ runtime_prerequisites:
11
+ - "Bun >= 1.0 (plugin bundles are `bun build` CJS; hooks run worker-service.cjs through bun-runner.js)"
12
+ - "uv / Python (Chroma vector store)"
13
+ - "Claude Agent SDK (worker generation)"
14
+
15
+ status: "V3-P0 memory-runtime DONE + recall verified on the dev machine (2026-08-15). V3-P0b memory-slim DONE (2026-09-04): engine trimmed to the single capture->store->recall path (216 -> 141 .ts, deps 8 -> 4, plugin dir 70 MB -> 3.1 MB), hooks.json/.mcp.json rewritten to deterministic ${CLAUDE_PLUGIN_ROOT} commands, skill dir aligned to upstream layout. Audit: vendor/claude-mem/SLIM-AUDIT.md; trim record: FIXUP.md section 7. Recall re-verified on the dev machine after the trim (2026-09-04); FreeHarness viewer added (FIXUP §8). V4-P3 memory-quality (2026-09-06): engine hunks ported from claude-mem 13.24.0 (be44b6c8) — bounded observer generations (#3800), field-optimizer, quota guard (#3838), observer-health + quota-cooldown ledgers, uvx-env, kill-process-tree + process-identity, silent observer role + FreeHarness verbatim/English rule, skip_summary noise, single-read transcript parser; port list, ignored set and settings in FIXUP.md section 9; plugin version 13.24.0. Recall re-verify after the port = task 3.6 [machine]. v4.1 memory-local-provider (2026-09-17): FreeHarness-authored opt-in local provider (CLAUDE_MEM_PROVIDER=local) serving the simple tier over a local OpenAI-compatible endpoint, with Claude as the per-batch fallback on local failure; provider interface, session runner, batch routing and health reporting; per-file record in FIXUP.md section 12 and freeharness_local_provider below."
16
+
17
+ vendored:
18
+ control_plane:
19
+ - path: vendor/claude-mem/plugin/hooks/hooks.json
20
+ note: "lifecycle hooks (Setup/SessionStart/UserPromptSubmit/PostToolUse/PreToolUse:Read/Stop). DIVERGENT since memory-slim: same events/matchers/timeouts/async as upstream, commands rewritten to `node ${CLAUDE_PLUGIN_ROOT}/scripts/bun-runner.js ... <cmd>` with a static PATH prefix (no login shell, no plugin-cache enumeration). On upstream changes compare the event set and command verbs by hand; never copy the upstream blobs back."
21
+ - path: vendor/claude-mem/plugin/.mcp.json
22
+ note: "recall MCP registration (stdio). DIVERGENT: spawns ${CLAUDE_PLUGIN_ROOT}/scripts/mcp-server.cjs directly"
23
+ - path: vendor/claude-mem/plugin/.claude-plugin/plugin.json
24
+ note: "plugin manifest shape"
25
+ - path: vendor/claude-mem/plugin/skills/mem-search
26
+ note: "the mem-search skill (the recall entry point FreeHarness calls); the only kept plugin skill; upstream layout"
27
+ - path: vendor/claude-mem/plugin/modes
28
+ note: "code.json (+ pt-br, chill variants) — the worker's ModeManager fails init without code.json"
29
+ - path: vendor/claude-mem/.claude-plugin/marketplace.json
30
+ note: "marketplace manifest (owner thedotmack, plugin ./plugin) copied to <cfg>/plugins/marketplaces/thedotmack/"
31
+ - path: vendor/claude-mem/engine/scripts/plain
32
+ note: "bun-runner.js, version-check.js, worker-wrapper.cjs — verbatim upstream plugin/scripts launchers (NOT bundled); copied to plugin/scripts by build:plugin. bun-runner must stay pre-ES2020-parsable and keep fixBrokenScriptPath"
33
+ - path: vendor/claude-mem/shared
34
+ note: "config/paths conventions: paths.ts, path-utils.ts, SettingsDefaultsManager.ts, EnvManager.ts, hook-io.ts, hook-constants.ts, hook-settings.ts, atomic-json.ts (small, stable, high-value to own)"
35
+
36
+ increment_2:
37
+ engine_vendored:
38
+ - path: vendor/claude-mem/engine
39
+ note: "141 .ts after memory-slim (+8 with the 13.24 port, FIXUP.md section 9): services (worker [ClaudeProvider only] + context/transcripts/infrastructure/sqlite/sync[Chroma]/server[worker-local HTTP]) + cli (claude-code hook runtime only) + supervisor + utils + types + sdk + servers/mcp-server. Removed set recorded in FIXUP.md section 7 (providers, cloud sync, corpus, smart-file-read, SaaS /v1, other-IDE adapters, viewer/SSE, CLAUDE.md writer, npx-cli). Type gate: `tsc -p engine/tsconfig.check.json` (bun build does not type-check)."
40
+ - path: vendor/claude-mem/SLIM-AUDIT.md
41
+ note: "memory-slim audit: baseline metrics, keep set, trim set with reachability evidence"
42
+ plugin_build:
43
+ script: vendor/claude-mem/engine/scripts/build-plugin.ts
44
+ command: "cd vendor/claude-mem/engine && bun install && bun run build:plugin"
45
+ mirrors: "upstream scripts/build-hooks.js (esbuild) minus server-service (SaaS), viewer, npx-cli/openclaw/opencode bundles, hooks.json regeneration"
46
+ modules:
47
+ - { name: worker-service, source: services/worker-service.ts, out: plugin/scripts/worker-service.cjs, target: bun }
48
+ - { name: sqlite/SessionStore, source: services/sqlite/SessionStore.ts, out: plugin/sqlite/SessionStore.js, target: bun }
49
+ - { name: sqlite/observations/files, source: services/sqlite/observations/files.ts, out: plugin/sqlite/observations/files.js, target: bun }
50
+ - { name: mcp-server, source: servers/mcp-server.ts, out: plugin/scripts/mcp-server.cjs, target: node }
51
+ - { name: context-generator, source: services/context-generator.ts, out: plugin/scripts/context-generator.cjs, target: bun }
52
+ - { name: transcript-watcher, source: services/transcripts/transcript-watcher-entry.ts, out: plugin/scripts/transcript-watcher.cjs, target: bun }
53
+ generated: "plugin/package.json (type: module; dep zod only)"
54
+ install_mechanism:
55
+ adapter: packages/cli/src/adapters/memory/vendored.ts (VendoredMemory implements MemoryPort)
56
+ identity: "thedotmack/claude-mem, key claude-mem@thedotmack (kept so hooks.json/.mcp.json resolvers work unmodified)"
57
+ config_dir: "$CLAUDE_CONFIG_DIR or ~/.claude"
58
+ steps:
59
+ - "ensurePrerequisites: probe bun (blocks) + uv (warns)"
60
+ - "migrateExisting: keep ~/.claude-mem (or CLAUDE_MEM_DATA_DIR); report only"
61
+ - "install: bun run build:plugin; rm+cp plugin/ -> <cfg>/plugins/cache/thedotmack/claude-mem/<version>/; cp plugin/ + .claude-plugin/marketplace.json -> <cfg>/plugins/marketplaces/thedotmack/; bun install --ignore-scripts in cache; .install-version markers {version,bun,uv,installedAt}"
62
+ - "registerHooks (additive merges): known_marketplaces.json[thedotmack]={source:{source:github,repo:thedotmack/claude-mem},installLocation,lastUpdated,autoUpdate:false}; installed_plugins.json{version:2,plugins['claude-mem@thedotmack']:[{scope:user,installPath,version,installedAt,lastUpdated}]}; settings.json enabledPlugins['claude-mem@thedotmack']=true"
63
+ divergence: "autoUpdate:false (upstream true) so Claude Code never overwrites our build with upstream"
64
+ dry_run: "writes nothing; previews every path"
65
+ bridge: "`npx claude-mem install` only when packages/memory/vendor/claude-mem/engine is absent"
66
+ machine_steps_done:
67
+ - "Import trim: ~17 kept files still import dropped modules (telemetry/integrations/postgres/server-SaaS) — see vendor/claude-mem/FIXUP.md; Bun/tsc flags each."
68
+ - "Build config: add a trimmed package.json (keep the bun build script + runtime deps: express, chroma client, @anthropic-ai/claude-agent-sdk, tree-sitter, zod); bunfig.toml + tsconfig.json copied for reference."
69
+ - "Bun build (bun install && bun run build) -> worker + mcp artifacts that plugin/hooks/hooks.json + plugin/.mcp.json invoke."
70
+ - "MemoryPort concrete adapter (cli): ensurePrerequisites (bun/uv) / install (plugin + build) / registerHooks (additive) / migrateExisting (~/.claude-mem). Until then the memory capability bridges via `npx claude-mem install`."
71
+
72
+ freeharness_own:
73
+ # FreeHarness-authored files inside the vendor tree (NOT upstream; excluded from
74
+ # `sync check memory` diffs). Record: vendor/claude-mem/FIXUP.md section 8.
75
+ - path: vendor/claude-mem/plugin/ui/viewer.html
76
+ note: "FreeHarness memory viewer page — single self-contained HTML (inline CSS/JS, no CDN, dark neutral theme). Served by the worker on GET /. Version-controlled source, not a build output; build:plugin only asserts it exists."
77
+ - path: vendor/claude-mem/engine/services/worker/http/routes/ViewerRoutes.ts
78
+ note: "Own ViewerRoutes: GET / (page) + read-only, localhost-only /api/viewer/{projects,feed,item,search,stats}. SQL over SessionStore.db + SearchManager.search delegation. No SSE, no writes. Replaces the upstream React viewer removed in memory-slim."
79
+
80
+ skipped:
81
+ - "src/server + src/storage/postgres + better-auth + bullmq/ioredis/pg (hosted SaaS)"
82
+ - "docker/ + docker-compose + Dockerfile.test-installer"
83
+ - "src/ui (React viewer); cursor-hooks/ + openclaw/ + src/integrations (other-IDE)"
84
+ - "telemetry (src/services/telemetry, PostHog, cmem-pro costs/pro prompts)"
85
+ - "marketplace/release scripts; docs i18n translations"
86
+ - "plugin skills except mem-search (babysit, wowerpoint, standup, weekly-digests, etc.)"
87
+ - "memory-slim (engine): Gemini/OpenRouter/OpenAI providers, cloud sync, knowledge corpus, smart-file-read (tree-sitter), SaaS /v1 + server runtime, other-IDE hook adapters, viewer/SSE routes, CLAUDE.md/AGENTS.md auto-writer, npx-cli/install, codex-hooks.json, statusline-counts.js"
88
+ - "OpenCode memory wiring (the `npx claude-mem install --ide opencode` bridge) — seam"
89
+ - "13.24 port (V4-P3, FIXUP §9 ignored set): installer/OAuth sign-in + PRO/trial settings keys, PostHog telemetry (usage_limit_hit, observed_model/observed_billing + schema v50), cmem-gateway provider-dispatch, Cursor/Grok Bot marketplace plugins, Telegram notifier, viewer/restart page, WorkerRef SSE broadcasts, codex bounded startup"
90
+
91
+ # vendor-sync-2026-09 ports from upstream dcfc4422 (13.25.1, Apache-2.0). Each entry names
92
+ # the upstream commit/PR, the vendored target, and status: port (verbatim), adapted (scoped
93
+ # subset), or ignored (with reason). `sync adopt memory` never touches this list.
94
+ ports_13_25:
95
+ - commit: "cd8258f6 (#3629)"
96
+ upstream: services/worker/ClaudeProvider.ts
97
+ target: engine/services/worker/ClaudeProvider.ts
98
+ status: port
99
+ - commit: "7d3f0047 (#4027)"
100
+ upstream: services/sqlite/SessionStore.ts
101
+ target: engine/services/sqlite/SessionStore.ts
102
+ status: port
103
+ note: "this commit's only hunk in this file; a second, unrelated port to this same file (streamRows() Bun-version fallback) lands under commit c340932c below"
104
+ - commit: "7d3f0047 (#4027)"
105
+ upstream: services/worker/ClaudeProvider.ts
106
+ target: engine/services/worker/ClaudeProvider.ts
107
+ status: port
108
+ - commit: "7d3f0047 (#4027)"
109
+ upstream: services/worker/agents/ResponseProcessor.ts
110
+ target: engine/services/worker/agents/ResponseProcessor.ts
111
+ status: port
112
+ - commit: "65eb1943 (#3998)"
113
+ upstream: sdk/output-classifier.ts
114
+ target: engine/sdk/output-classifier.ts
115
+ status: port
116
+ note: "isTransportFailureObserverOutput and its supporting regexes/helpers"
117
+ - commit: "65eb1943 (#3998)"
118
+ upstream: services/worker/agents/ResponseProcessor.ts
119
+ target: engine/services/worker/agents/ResponseProcessor.ts
120
+ status: port
121
+ note: "isTransportFailureObserverOutput import, isRejectionProse OR, transport-preserve branch mirroring quota/auth"
122
+ - commit: "65eb1943 (#3998)"
123
+ upstream: services/worker/session/GeneratorExitHandler.ts
124
+ target: engine/services/worker/session/GeneratorExitHandler.ts
125
+ status: adapted
126
+ note: "appended only abortCategory === 'transport' to the existing guard; skipped the PRESERVES_CLAIMED_WORK array refactor and provider_switch (not vendored)"
127
+ - commit: "65eb1943 (#3998)"
128
+ upstream: services/worker/http/routes/SessionRoutes.ts
129
+ target: engine/services/worker/http/routes/SessionRoutes.ts
130
+ status: adapted
131
+ note: "normalizeAbortReason gained case 'transport'; the .finally() handler calls recordObserverFailure(provider, {message, kind:'transport'}) mirroring the existing quota-prose block one line above it (the quota mirror this hunk follows lives in SessionRoutes.ts, not ResponseProcessor.ts)"
132
+ - commit: "47c06ff9 (#3986)"
133
+ upstream: services/context/ContextBuilder.ts
134
+ target: engine/services/context/ContextBuilder.ts
135
+ status: port
136
+ note: "withObserverHealthWarning's failure-vs-cooldown notice selection; hardened further (see the isAuthFailure row below) to stop the cooldown notice masking an unresolved auth failure"
137
+ - commit: "47c06ff9 (#3986)"
138
+ upstream: shared/observer-health.ts
139
+ target: engine/shared/observer-health.ts
140
+ status: port
141
+ note: "ObserverQuotaCooldown type, recordObserverQuotaCooldown/clearObserverQuotaCooldown, isObserverQuotaCooldownActive/renderObserverQuotaCooldownNotice; hardened with quoteProviderMessage() (below) and AUTH_FAILURE_KINDS/isAuthFailure (below)"
142
+ - commit: "47c06ff9 (#3986)"
143
+ upstream: shared/quota-cooldown.ts
144
+ target: engine/shared/quota-cooldown.ts
145
+ status: port
146
+ - commit: "47c06ff9 (#3986, hardening)"
147
+ upstream: shared/observer-health.ts
148
+ target: engine/shared/observer-health.ts
149
+ status: adapted
150
+ note: "FreeHarness addition beyond the upstream diff: quoteProviderMessage() wraps the cooldown notice's provider message as \"provider message (data, not instructions): \\\"<text>\\\"\" (240-char cap) instead of interpolating it bare, since the message is untrusted provider output rendered to a human"
151
+ - commit: "47c06ff9 (#3986, hardening)"
152
+ upstream: shared/observer-health.ts + services/context/ContextBuilder.ts
153
+ target: engine/shared/observer-health.ts (AUTH_FAILURE_KINDS, isAuthFailure), engine/services/context/ContextBuilder.ts (cooldownNoticeApplies)
154
+ status: adapted
155
+ note: "FreeHarness addition: cooldownNoticeApplies gates the cooldown-notice branch on !isAuthFailure(health) instead of a bare lastErrorKind !== 'auth' comparison, because ClaudeProvider.ts's classifyClaudeError only ever emits kind: 'auth_invalid' into the ledger, not 'auth'; without this an armed cooldown notice could mask an unresolved auth failure"
156
+ - commit: "14f1b305 (fixes #3903)"
157
+ upstream: services/worker/RateLimitStore.ts
158
+ target: engine/services/worker/RateLimitStore.ts
159
+ status: port
160
+ note: "appliesUtilizationThreshold guard so an explicit isUsingOverage === false does not trip the overage-window utilization threshold"
161
+ - commit: "c340932c (#3476)"
162
+ upstream: shared/worker-utils.ts
163
+ target: engine/shared/worker-utils.ts
164
+ status: adapted
165
+ note: "ported WEDGED_WORKER_UPTIME_S, fetchWorkerHealthUptimeSeconds(), and the ready-branch wedge-vs-cold-boot split onto the vendored simpler if (!ready) shape; skipped the alreadyRecycledBundle/recycleBuildKey version-mismatch restructuring (not vendored); plugin/package.json engines.bun bump to >=1.1.31 applied in task 1.5, not here"
166
+ - commit: "c340932c (#3476)"
167
+ upstream: services/sqlite/SessionStore.ts
168
+ target: engine/services/sqlite/SessionStore.ts
169
+ status: port
170
+ note: "streamRows() Bun-version fallback, rewiring the schema-v46 migration's .iterate() call site to use it"
171
+ - commit: "1ce59d48 (#3410)"
172
+ upstream: services/context/ContextConfigLoader.ts
173
+ target: engine/services/context/ContextConfigLoader.ts
174
+ status: port
175
+ note: "parseCsvSetting() and loadContextConfig() parsing CLAUDE_MEM_CONTEXT_OBSERVATION_TYPES/_CONCEPTS before falling back to the mode's full lists"
176
+ - commit: "1ce59d48 (#3410, hardening)"
177
+ upstream: services/context/ContextConfigLoader.ts
178
+ target: engine/services/context/ContextConfigLoader.ts
179
+ status: adapted
180
+ note: "FreeHarness addition beyond the upstream diff: resolveIdSet() helper — when the configured CSV ids intersect nothing in the active mode's list, logs a CONFIG warning naming the configured/mode ids and falls back to the full mode list instead of silently returning an empty set; a partial match is kept as-is"
181
+ - commit: "1ce59d48 (#3410)"
182
+ upstream: shared/SettingsDefaultsManager.ts
183
+ target: engine/shared/SettingsDefaultsManager.ts
184
+ status: port
185
+ note: "engine copy only; the top-level control-plane packages/memory/vendor/claude-mem/shared/SettingsDefaultsManager.ts is out of this port's write scope and now diverges on these two keys"
186
+ - commit: "e88258e5 (#3996)"
187
+ upstream: sdk/prompts.ts
188
+ target: engine/sdk/prompts.ts
189
+ status: port
190
+ note: "stripImagePayloads()/isDataUrl/elideImageSource wired into buildObservationPrompt's toolInput/toolOutput before truncateObservationField"
191
+ - commit: "d6e4e845 (#3985)"
192
+ target: "(none)"
193
+ status: ignored
194
+ note: "every hunk audited to ignored — smart-file-read and SettingsRoutes.ts are both removed in memory-slim; no credential-leak path exists in the kept files"
195
+ - commit: "57d86561 (#4018)"
196
+ upstream: engine/package.json (dependencies)
197
+ target: engine/package.json
198
+ status: ignored
199
+ note: "shell-quote confirmed absent from dependencies/devDependencies; nothing to pin"
200
+ - commit: "4e966e15 (#3999)"
201
+ upstream: services/worker/OpenAICompatibleProvider.ts
202
+ target: "(none)"
203
+ status: ignored
204
+ note: "alt-provider file removed in memory-slim (single-provider Claude engine); touches only the dropped alt-provider path"
205
+ - commit: "65eb1943 (#3998, hardening)"
206
+ upstream: sdk/output-classifier.ts, sdk/prompts.ts
207
+ target: engine/sdk/output-classifier.ts, engine/sdk/prompts.ts
208
+ status: adapted
209
+ note: "restored the dropped upstream issue references confirmed byte-for-byte against the sibling checkout: \"permanent data loss.\" -> \"permanent data loss (#3752).\"; \"Two things compound:\" -> \"Two things compound (#3730):\""
210
+
211
+ # memory-observer-economy: FreeHarness-authored economy + health-honesty
212
+ # changes (no upstream commit). Same row shape as ports_13_25; status is
213
+ # always freeharness. Restated for the vendor tree in FIXUP.md section 11.
214
+ freeharness_13_25:
215
+ - commit: "memory-observer-economy 1.1"
216
+ upstream: "(none — FreeHarness authored)"
217
+ target: engine/shared/SettingsDefaultsManager.ts
218
+ status: freeharness
219
+ note: "CLAUDE_MEM_SKIP_TOOLS extended with Read, Glob, Grep, ListAgents, SendMessage, Monitor, TaskOutput, ToolSearch, TaskStop on top of the upstream five; an owner list in settings.json still replaces the default outright"
220
+ - commit: "memory-observer-economy 1.1"
221
+ upstream: "(none — FreeHarness authored)"
222
+ target: shared/SettingsDefaultsManager.ts
223
+ status: freeharness
224
+ note: "top-level control-plane copy carries the same extended default so the two copies agree (memory-quality 3.1 pattern)"
225
+ - commit: "memory-observer-economy 1.1"
226
+ upstream: "(none — FreeHarness authored)"
227
+ target: plugin/modes/code.json
228
+ status: freeharness
229
+ note: "discovery removed from observation_types and from the type_guidance prompt's enumerated list and count (9 -> 8); ResponseProcessor.ts is the storage-side safety net if a model still emits it"
230
+ - commit: "memory-observer-economy 1.1"
231
+ upstream: "(none — FreeHarness authored)"
232
+ target: engine/services/worker/agents/ResponseProcessor.ts
233
+ status: freeharness
234
+ note: "drops a stored observation whose type is outside the active mode's observation_types before it reaches storeObservations, logging the dropped type(s) once per batch"
235
+ - commit: "memory-observer-economy 1.1"
236
+ upstream: "(none — FreeHarness authored)"
237
+ target: engine/services/worker/agents/ObservationModeFilter.ts
238
+ status: freeharness
239
+ note: "new pure filterObservationsByMode() helper, extracted so the drop logic is testable under plain Node without the worker's bun:sqlite import chain"
240
+ - commit: "memory-observer-economy 1.2"
241
+ upstream: "(none — FreeHarness authored)"
242
+ target: engine/shared/observer-health.ts
243
+ status: freeharness
244
+ note: "OBSERVER_STALE_AFTER_MS (12h) bounds isObserverUnhealthy's verdict age; ObserverFailureKind gains quota_guard; renderObserverHealthWarning renders a guard copy naming the window, the utilization percentage and the cooldown ledger's until time, with no allowance-is-used-up sentence"
245
+ - commit: "memory-observer-economy 1.2"
246
+ upstream: "(none — FreeHarness authored)"
247
+ target: engine/services/worker/http/routes/SessionRoutes.ts
248
+ status: freeharness
249
+ note: "the local quota guard's own abort path (RateLimitStore.shouldAbortForQuota, aborted before any request is sent) now records kind quota_guard with the window and utilization folded into the message, distinct from the unchanged provider-refusal-as-prose path (quota_exhausted)"
250
+ - commit: "memory-observer-economy 1.2"
251
+ upstream: "(none — FreeHarness authored)"
252
+ target: engine/services/context/ContextBuilder.ts
253
+ status: freeharness
254
+ note: "passes Date.now() explicitly to isObserverUnhealthy so the stale bound is evaluated against the call site's own clock"
255
+ - commit: "memory-observer-economy 4.1"
256
+ upstream: "(none — FreeHarness authored)"
257
+ target: plugin/.claude-plugin/plugin.json
258
+ status: freeharness
259
+ note: "name free-mem; description names the FreeHarness build of claude-mem; repository and homepage stay the upstream thedotmack/claude-mem URLs"
260
+ - commit: "memory-observer-economy 4.1"
261
+ upstream: "(none — FreeHarness authored)"
262
+ target: .claude-plugin/marketplace.json
263
+ status: freeharness
264
+ note: "marketplace name freeharness; plugin entry name free-mem"
265
+ - commit: "memory-observer-economy 4.1"
266
+ upstream: "(none — FreeHarness authored)"
267
+ target: engine/shared/plugin-state.ts
268
+ status: freeharness
269
+ note: "PLUGIN_SETTINGS_KEY = 'free-mem@freeharness'"
270
+ - commit: "memory-observer-economy 4.1"
271
+ upstream: "(none — FreeHarness authored)"
272
+ target: engine/shared/paths.ts
273
+ status: freeharness
274
+ note: "MARKETPLACE_ROOT under plugins/marketplaces/freeharness"
275
+ - commit: "memory-observer-economy 4.1"
276
+ upstream: "(none — FreeHarness authored)"
277
+ target: engine/shared/worker-utils.ts
278
+ status: freeharness
279
+ note: "cacheWorkerScriptCandidates default cache root cache/freeharness/free-mem"
280
+ - commit: "memory-observer-economy 4.1"
281
+ upstream: "(none — FreeHarness authored)"
282
+ target: engine/servers/mcp-server.ts
283
+ status: freeharness
284
+ note: "marketplace and cache candidate paths under freeharness/free-mem; missing-marketplace warning text and self-heal command follow the new id"
285
+ - commit: "memory-observer-economy 4.1"
286
+ upstream: "(none — FreeHarness authored)"
287
+ target: plugin/scripts/bun-runner.js (and engine/scripts/plain/bun-runner.js, its build source)
288
+ status: freeharness
289
+ note: "disabled-plugin check reads enabledPlugins['free-mem@freeharness']"
290
+ - commit: "memory-observer-economy 4.1"
291
+ upstream: "(none — FreeHarness authored)"
292
+ target: plugin/scripts/version-check.js (and engine/scripts/plain/version-check.js, its build source)
293
+ status: freeharness
294
+ note: "upgrade-hint text runs freeharness init --only memory or freeharness memory activate instead of npx claude-mem@latest install"
295
+ - commit: "memory-observer-economy 4.1"
296
+ upstream: "(none — FreeHarness authored)"
297
+ target: engine/services/context/ContextBuilder.ts
298
+ status: freeharness
299
+ note: "VERSION_MARKER_PATH derives from MARKETPLACE_ROOT (paths.ts) instead of a hard-coded marketplaces/thedotmack literal, so the ERR_DLOPEN_FAILED self-heal unlinkSync targets the real install-version marker under the freeharness marketplace root"
300
+
301
+ # memory-local-provider: FreeHarness-authored local model fallback and routing.
302
+ # One-turn provider interface, local implementation over HTTP, session runner, batch
303
+ # telemetry. Same row shape as freeharness_13_25; status is always freeharness.
304
+ # Restated for the vendor tree in FIXUP.md section 12.
305
+ freeharness_local_provider:
306
+ - commit: "memory-local-provider 1.1"
307
+ upstream: "(none — FreeHarness authored)"
308
+ target: engine/services/worker/Provider.ts
309
+ status: freeharness
310
+ note: "Provider interface, providerFactory, runOneTurn contract and one-turn loop seam for provider-agnostic session routing"
311
+ - commit: "memory-local-provider 1.1"
312
+ upstream: "(none — FreeHarness authored)"
313
+ target: engine/services/worker/LocalProvider.ts
314
+ status: freeharness
315
+ note: "LocalProvider implements Provider with startSession, ingest, stop, complete methods; ingest() batches a session's pending messages against the local endpoint; complete() refuses one-shot completions (handed to the Claude fallback instead)"
316
+ - commit: "memory-local-provider 1.1"
317
+ upstream: "(none — FreeHarness authored)"
318
+ target: engine/services/worker/ClaudeProvider.ts
319
+ status: freeharness
320
+ note: "implements Provider, readonly name = 'claude', getModelId() public, complete(system, user, model) one-turn method for fallback and standalone use"
321
+ - commit: "memory-local-provider 1.1"
322
+ upstream: "(none — FreeHarness authored)"
323
+ target: engine/services/worker-service.ts
324
+ status: freeharness
325
+ note: "sdkAgent typed as Provider and built by providerFactory; local provider built with claude as fallback; settings load hoisted into factory call; getAiStatus() reports this.sdkAgent.name so GET /api/health names the provider actually serving the worker"
326
+ - commit: "memory-local-provider 1.1"
327
+ upstream: "(none — FreeHarness authored)"
328
+ target: engine/services/worker-types.ts
329
+ status: freeharness
330
+ note: "ActiveSession.currentProvider widened to ProviderName (imported from worker/Provider.ts); ActiveSession.localSwitchedToClaude flag"
331
+ - commit: "memory-local-provider 1.1"
332
+ upstream: "(none — FreeHarness authored)"
333
+ target: engine/shared/quota-cooldown.ts
334
+ status: freeharness
335
+ note: "QuotaProvider = 'claude' | 'local' type, quota cooldown logic accepts both names"
336
+ - commit: "memory-local-provider 1.2"
337
+ upstream: "(none — FreeHarness authored)"
338
+ target: engine/shared/SettingsDefaultsManager.ts
339
+ status: freeharness
340
+ note: "nine CLAUDE_MEM_LOCAL_* keys (model, timeout, prompt budget, max lag, max prompt tokens); CLAUDE_MEM_PROVIDER typed to 'claude' | 'local'; removed alt-provider Gemini/OpenRouter keys"
341
+ - commit: "memory-local-provider 1.2"
342
+ upstream: "(none — FreeHarness authored)"
343
+ target: shared/SettingsDefaultsManager.ts
344
+ status: freeharness
345
+ note: "top-level control-plane copy carries the same nine local keys and provider type; removed alt-provider Gemini/OpenRouter keys; the two copies stay in sync"
346
+ - commit: "memory-local-provider 1.2"
347
+ upstream: "(none — FreeHarness authored)"
348
+ target: engine/shared/EnvManager.ts
349
+ status: freeharness
350
+ note: "removed GEMINI_API_KEY and OPENROUTER_API_KEY from ClaudeMemEnv and CREDENTIAL_KEYS; memory-slim single-provider consolidation"
351
+ - commit: "memory-local-provider 1.2"
352
+ upstream: "(none — FreeHarness authored)"
353
+ target: shared/EnvManager.ts
354
+ status: freeharness
355
+ note: "top-level control-plane copy same removal (Gemini/OpenRouter keys); the two copies stay byte-identical"
356
+ - commit: "memory-local-provider 1.3"
357
+ upstream: "(none — FreeHarness authored)"
358
+ target: engine/services/worker/LocalProvider.ts
359
+ status: freeharness
360
+ note: "full implementation replacing the 1.1 stub; Semaphore and per-session promise chain; trimToBudget, LocalBatch, failure kinds (local_unreachable, local_timeout, local_unparseable, local_over_budget, local_stopped)"
361
+ - commit: "memory-local-provider 1.4"
362
+ upstream: "(none — FreeHarness authored)"
363
+ target: engine/services/worker/LocalSessionRunner.ts
364
+ status: freeharness
365
+ note: "runLocalSession(session, deps) routes pending messages to local or fallback based on tier and budget; records local failures; switches provider on breaker (three timeouts) or lag (oldest-pending age limit)"
366
+ - commit: "memory-local-provider 1.4"
367
+ upstream: "(none — FreeHarness authored)"
368
+ target: engine/shared/local-provider-log.ts
369
+ status: freeharness
370
+ note: "LocalProviderLogLine type and appendLocalProviderLine to log each batch to <data-dir>/local-provider.jsonl with routing decision and outcome"
371
+ - commit: "memory-local-provider 1.4"
372
+ upstream: "(none — FreeHarness authored)"
373
+ target: engine/services/worker/http/routes/SessionRoutes.ts
374
+ status: freeharness
375
+ note: "startGeneratorWithProvider routes local provider through runLocalGenerator (probe + session start + runner); records local_unreachable and runs fallback on failed start"
376
+ - commit: "memory-local-provider 1.4"
377
+ upstream: "(none — FreeHarness authored)"
378
+ target: engine/services/worker/agents/ResponseProcessor.ts
379
+ status: freeharness
380
+ note: "processAgentResponse gains provider?: ProviderName option; skips quota-prose and auth-prose classifiers for local replies (text, not refusals)"
381
+ - commit: "memory-local-provider 1.5"
382
+ upstream: "(none — FreeHarness authored)"
383
+ target: engine/shared/observer-health.ts
384
+ status: freeharness
385
+ note: "five local_* failure kinds (local_unreachable, local_timeout, local_unparseable, local_breaker, local_lag); isLocalFailureKind() type guard; renderLocalObserverNotice() for local provider health messages"
386
+ - commit: "memory-local-provider 1.5"
387
+ upstream: "(none — FreeHarness authored)"
388
+ target: engine/services/context/ContextBuilder.ts
389
+ status: freeharness
390
+ note: "localNoticeApplies() helper; withObserverHealthWarning branch for renderLocalObserverNotice to report local provider state"
391
+ - commit: "memory-local-provider 4.2"
392
+ upstream: "(none — FreeHarness authored)"
393
+ target: engine/supervisor/process-registry.ts
394
+ status: freeharness
395
+ note: "spawnSdkProcess and createSdkSpawnFactory take an optional label (default session-<id>) used in the SDK_SPAWN log lines, so a completion's negative spawn id renders as [completion-<n>] instead of the unlabeled [session--1]; the registry key and duplicate scan keep the numeric id"
396
+
397
+ roadmap:
398
+ - "P4 inc.2 / V3-P0: DONE (engine + plugin build + MemoryPort install/register). Machine-only: observation generation + Chroma recall (Agent-SDK creds, uvx network)."
399
+ - "vendor-sync-2026-09: DONE — 13.25.1 port (ports_13_25 above); FIXUP.md section 10 (the same port list, restated for the vendor tree) blocked by the memory-guard hook's path exception (task 1.1); plugin manifests + engine/package.json at 13.25.1 (task 1.5); sync adopt memory bumped baseline_commit/baseline_version above."