bonfire-ai 0.1.0a1__tar.gz

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.

Potentially problematic release.


This version of bonfire-ai might be problematic. Click here for more details.

Files changed (381) hide show
  1. bonfire_ai-0.1.0a1/.env.example +27 -0
  2. bonfire_ai-0.1.0a1/.git +1 -0
  3. bonfire_ai-0.1.0a1/.github/workflows/ci.yml +35 -0
  4. bonfire_ai-0.1.0a1/.github/workflows/smoke.yml +85 -0
  5. bonfire_ai-0.1.0a1/.gitignore +213 -0
  6. bonfire_ai-0.1.0a1/CHANGELOG.md +114 -0
  7. bonfire_ai-0.1.0a1/CLAUDE.md +393 -0
  8. bonfire_ai-0.1.0a1/CONTRIBUTING.md +158 -0
  9. bonfire_ai-0.1.0a1/LICENSE +201 -0
  10. bonfire_ai-0.1.0a1/PKG-INFO +310 -0
  11. bonfire_ai-0.1.0a1/README.md +273 -0
  12. bonfire_ai-0.1.0a1/code-synth-bon351.md +87 -0
  13. bonfire_ai-0.1.0a1/docs/_lore/passelewe.md +75 -0
  14. bonfire_ai-0.1.0a1/docs/adr/ADR-001-naming-vocabulary.md +69 -0
  15. bonfire_ai-0.1.0a1/docs/architecture.md +276 -0
  16. bonfire_ai-0.1.0a1/docs/audit/knight-memos/cluster-348-knight-a-20260430T194436Z.md +66 -0
  17. bonfire_ai-0.1.0a1/docs/audit/knight-memos/cluster-348-knight-b-20260430T193739Z.md +223 -0
  18. bonfire_ai-0.1.0a1/docs/audit/knight-memos/cluster-350-docs-knight-a-20260430T193646Z.md +126 -0
  19. bonfire_ai-0.1.0a1/docs/audit/knight-memos/cluster-350-docs-knight-b-20260430T193317Z.md +275 -0
  20. bonfire_ai-0.1.0a1/docs/audit/knight-memos/cluster-351-knight-a-20260430T210000Z.md +112 -0
  21. bonfire_ai-0.1.0a1/docs/audit/knight-memos/cluster-351-knight-b-20260430T210000Z.md +262 -0
  22. bonfire_ai-0.1.0a1/docs/audit/retrospective/code-reviewer-2026-04-18T20-30-50Z.json +106 -0
  23. bonfire_ai-0.1.0a1/docs/audit/retrospective/code-reviewer-2026-04-18T20-30-50Z.md +91 -0
  24. bonfire_ai-0.1.0a1/docs/audit/retrospective/code-reviewer-20260417T233626Z.json +98 -0
  25. bonfire_ai-0.1.0a1/docs/audit/retrospective/code-reviewer-20260417T233626Z.md +88 -0
  26. bonfire_ai-0.1.0a1/docs/audit/retrospective/code-reviewer-20260418T024351Z.json +84 -0
  27. bonfire_ai-0.1.0a1/docs/audit/retrospective/code-reviewer-20260418T024351Z.md +99 -0
  28. bonfire_ai-0.1.0a1/docs/audit/retrospective/code-reviewer-20260418T025952Z.json +94 -0
  29. bonfire_ai-0.1.0a1/docs/audit/retrospective/code-reviewer-20260418T025952Z.md +66 -0
  30. bonfire_ai-0.1.0a1/docs/audit/retrospective/code-reviewer-20260418T172251Z.json +85 -0
  31. bonfire_ai-0.1.0a1/docs/audit/retrospective/code-reviewer-20260418T172251Z.md +65 -0
  32. bonfire_ai-0.1.0a1/docs/audit/retrospective/code-reviewer-20260418T172339Z.json +138 -0
  33. bonfire_ai-0.1.0a1/docs/audit/retrospective/code-reviewer-20260418T172339Z.md +117 -0
  34. bonfire_ai-0.1.0a1/docs/audit/retrospective/prospective-bon-331-knight-code-reviewer-20260417T230543Z.json +99 -0
  35. bonfire_ai-0.1.0a1/docs/audit/retrospective/prospective-bon-331-knight-code-reviewer-20260417T230543Z.md +149 -0
  36. bonfire_ai-0.1.0a1/docs/audit/retrospective/wizard-2026-04-18T20-38-47Z.json +33 -0
  37. bonfire_ai-0.1.0a1/docs/audit/retrospective/wizard-2026-04-18T20-38-47Z.md +125 -0
  38. bonfire_ai-0.1.0a1/docs/audit/retrospective/wizard-20260417T233600Z.json +78 -0
  39. bonfire_ai-0.1.0a1/docs/audit/retrospective/wizard-20260417T233600Z.md +90 -0
  40. bonfire_ai-0.1.0a1/docs/audit/retrospective/wizard-20260418T024318Z.json +52 -0
  41. bonfire_ai-0.1.0a1/docs/audit/retrospective/wizard-20260418T024318Z.md +63 -0
  42. bonfire_ai-0.1.0a1/docs/audit/retrospective/wizard-20260418T024502Z.json +59 -0
  43. bonfire_ai-0.1.0a1/docs/audit/retrospective/wizard-20260418T024502Z.md +166 -0
  44. bonfire_ai-0.1.0a1/docs/audit/retrospective/wizard-20260418T172248Z.json +77 -0
  45. bonfire_ai-0.1.0a1/docs/audit/retrospective/wizard-20260418T172248Z.md +76 -0
  46. bonfire_ai-0.1.0a1/docs/audit/retrospective/wizard-20260418T172340Z.json +22 -0
  47. bonfire_ai-0.1.0a1/docs/audit/retrospective/wizard-20260418T172340Z.md +55 -0
  48. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/_template-sage-memo.md +228 -0
  49. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-332-sage-20260418T004817Z.md +227 -0
  50. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-333-sage-20260418T004958Z.md +269 -0
  51. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-334-sage-2026-04-18T19-14-42Z.md +554 -0
  52. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-335-sage-2026-04-18T03-42-14Z.md +251 -0
  53. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-336-sage-20260418T034115Z.md +168 -0
  54. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-337-unified-sage-2026-04-18.md +724 -0
  55. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-338-unified-sage-2026-04-18.md +1398 -0
  56. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-340-sage.md +229 -0
  57. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-341-sage-20260422T235032Z.md +944 -0
  58. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-341-sage-code-synth-20260424T014625Z.md +343 -0
  59. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-341-sage-contract-lock-20260423T013725Z.md +442 -0
  60. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-342-sage.md +276 -0
  61. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-343-sage.md +505 -0
  62. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-344-code-synth-20260425T204958Z.md +164 -0
  63. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-344-contract-lock-20260425T192700Z.md +272 -0
  64. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-344-sage-20260424T022424Z.md +701 -0
  65. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-345-sage.md +342 -0
  66. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-346-sage.md +305 -0
  67. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-347-code-synth-20260426T010000Z.md +173 -0
  68. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-347-contract-lock-20260426T000357Z.md +148 -0
  69. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-347-sage-20260425T230115Z.md +1087 -0
  70. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-348-code-synth-20260426T185936Z.md +228 -0
  71. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-348-contract-lock-20260426T024229Z.md +266 -0
  72. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-348-sage-20260426T013845Z.md +703 -0
  73. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-349-code-synth-20260426T011022Z.md +176 -0
  74. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-349-contract-lock-20260426T003455Z.md +266 -0
  75. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-349-sage-20260425T230159Z.md +1543 -0
  76. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-350-code-synth-20260427T195427Z.md +228 -0
  77. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-350-contract-lock-20260427T193204Z.md +345 -0
  78. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-350-sage-20260427T182947Z.md +697 -0
  79. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-513-sage-20260428T210000Z.md +1887 -0
  80. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-513-sage-A-20260428T210000Z.md +407 -0
  81. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-513-sage-CL-20260428T210000Z.md +479 -0
  82. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-513-sage-D-20260428T210000Z.md +1011 -0
  83. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-519-sage-20260428T033101Z.md +1126 -0
  84. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/bon-520-cross-wave-reconciliation.md +372 -0
  85. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/cluster-348-sage-20260430T200000Z.md +348 -0
  86. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/cluster-350-sage-20260430T200500Z.md +360 -0
  87. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/cluster-350-sage-codesynth-20260430T205102Z.md +299 -0
  88. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/cluster-351-sage-20260430T200000Z.md +793 -0
  89. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/cluster-351-sage-codesynth-20260430T230000Z.md +272 -0
  90. bonfire_ai-0.1.0a1/docs/audit/sage-decisions/sage-memo-template.md +38 -0
  91. bonfire_ai-0.1.0a1/docs/audit/scout-reports/bon-341-archivist-20260422.md +225 -0
  92. bonfire_ai-0.1.0a1/docs/audit/scout-reports/bon-341-artisan-20260422.md +252 -0
  93. bonfire_ai-0.1.0a1/docs/audit/scout-reports/bon-341-machinist-20260422.md +302 -0
  94. bonfire_ai-0.1.0a1/docs/audit/scout-reports/bon-351-scout-20260427T183204Z.md +249 -0
  95. bonfire_ai-0.1.0a1/docs/audit/scout-reports/bon-353-audit-20260427T164458Z.md +143 -0
  96. bonfire_ai-0.1.0a1/docs/audit/scout-reports/bon-354-smoke-plan-20260428T203036Z.md +459 -0
  97. bonfire_ai-0.1.0a1/docs/audit/scout-reports/bon-355-audit-20260428T203027Z.md +1159 -0
  98. bonfire_ai-0.1.0a1/docs/audit/scouts/bon-337-scout-1-sdk-security.md +218 -0
  99. bonfire_ai-0.1.0a1/docs/audit/scouts/bon-337-scout-2-polp.md +102 -0
  100. bonfire_ai-0.1.0a1/docs/audit/scouts/bon-337-scout-3-bonfire-shape.md +271 -0
  101. bonfire_ai-0.1.0a1/docs/audit/scouts/bon-338-scout-1-sdk-hooks.md +251 -0
  102. bonfire_ai-0.1.0a1/docs/audit/scouts/bon-338-scout-2-dangerous-commands.md +292 -0
  103. bonfire_ai-0.1.0a1/docs/audit/scouts/bon-338-scout-3-bonfire-integration.md +252 -0
  104. bonfire_ai-0.1.0a1/docs/box-operator.md +143 -0
  105. bonfire_ai-0.1.0a1/docs/contributor-guide/wizard-pre-stage.md +199 -0
  106. bonfire_ai-0.1.0a1/docs/pipeline-stages.md +153 -0
  107. bonfire_ai-0.1.0a1/docs/product/discipline.md +89 -0
  108. bonfire_ai-0.1.0a1/docs/release-gate-tickets.md +35 -0
  109. bonfire_ai-0.1.0a1/docs/release-gates.md +149 -0
  110. bonfire_ai-0.1.0a1/docs/release-policy.md +88 -0
  111. bonfire_ai-0.1.0a1/docs/style.md +225 -0
  112. bonfire_ai-0.1.0a1/docs/wizard-playbook.md +64 -0
  113. bonfire_ai-0.1.0a1/pyproject.toml +72 -0
  114. bonfire_ai-0.1.0a1/src/bonfire/__init__.py +42 -0
  115. bonfire_ai-0.1.0a1/src/bonfire/agent/__init__.py +20 -0
  116. bonfire_ai-0.1.0a1/src/bonfire/agent/roles.py +44 -0
  117. bonfire_ai-0.1.0a1/src/bonfire/agent/tiers.py +115 -0
  118. bonfire_ai-0.1.0a1/src/bonfire/analysis/__init__.py +28 -0
  119. bonfire_ai-0.1.0a1/src/bonfire/analysis/fingerprint.py +54 -0
  120. bonfire_ai-0.1.0a1/src/bonfire/analysis/models.py +248 -0
  121. bonfire_ai-0.1.0a1/src/bonfire/cli/__init__.py +18 -0
  122. bonfire_ai-0.1.0a1/src/bonfire/cli/app.py +66 -0
  123. bonfire_ai-0.1.0a1/src/bonfire/cli/commands/__init__.py +13 -0
  124. bonfire_ai-0.1.0a1/src/bonfire/cli/commands/cost.py +98 -0
  125. bonfire_ai-0.1.0a1/src/bonfire/cli/commands/handoff.py +14 -0
  126. bonfire_ai-0.1.0a1/src/bonfire/cli/commands/init.py +28 -0
  127. bonfire_ai-0.1.0a1/src/bonfire/cli/commands/persona.py +118 -0
  128. bonfire_ai-0.1.0a1/src/bonfire/cli/commands/resume.py +14 -0
  129. bonfire_ai-0.1.0a1/src/bonfire/cli/commands/scan.py +58 -0
  130. bonfire_ai-0.1.0a1/src/bonfire/cli/commands/status.py +14 -0
  131. bonfire_ai-0.1.0a1/src/bonfire/cost/__init__.py +18 -0
  132. bonfire_ai-0.1.0a1/src/bonfire/cost/analyzer.py +234 -0
  133. bonfire_ai-0.1.0a1/src/bonfire/cost/consumer.py +56 -0
  134. bonfire_ai-0.1.0a1/src/bonfire/cost/models.py +71 -0
  135. bonfire_ai-0.1.0a1/src/bonfire/dispatch/__init__.py +31 -0
  136. bonfire_ai-0.1.0a1/src/bonfire/dispatch/pydantic_ai_backend.py +81 -0
  137. bonfire_ai-0.1.0a1/src/bonfire/dispatch/result.py +28 -0
  138. bonfire_ai-0.1.0a1/src/bonfire/dispatch/runner.py +247 -0
  139. bonfire_ai-0.1.0a1/src/bonfire/dispatch/sdk_backend.py +207 -0
  140. bonfire_ai-0.1.0a1/src/bonfire/dispatch/security_hooks.py +742 -0
  141. bonfire_ai-0.1.0a1/src/bonfire/dispatch/security_patterns.py +475 -0
  142. bonfire_ai-0.1.0a1/src/bonfire/dispatch/tier.py +26 -0
  143. bonfire_ai-0.1.0a1/src/bonfire/dispatch/tool_policy.py +59 -0
  144. bonfire_ai-0.1.0a1/src/bonfire/engine/__init__.py +65 -0
  145. bonfire_ai-0.1.0a1/src/bonfire/engine/advisor.py +84 -0
  146. bonfire_ai-0.1.0a1/src/bonfire/engine/checkpoint.py +179 -0
  147. bonfire_ai-0.1.0a1/src/bonfire/engine/context.py +96 -0
  148. bonfire_ai-0.1.0a1/src/bonfire/engine/executor.py +308 -0
  149. bonfire_ai-0.1.0a1/src/bonfire/engine/factory.py +65 -0
  150. bonfire_ai-0.1.0a1/src/bonfire/engine/gates.py +297 -0
  151. bonfire_ai-0.1.0a1/src/bonfire/engine/model_resolver.py +69 -0
  152. bonfire_ai-0.1.0a1/src/bonfire/engine/pipeline.py +808 -0
  153. bonfire_ai-0.1.0a1/src/bonfire/events/__init__.py +23 -0
  154. bonfire_ai-0.1.0a1/src/bonfire/events/bus.py +132 -0
  155. bonfire_ai-0.1.0a1/src/bonfire/events/consumers/__init__.py +56 -0
  156. bonfire_ai-0.1.0a1/src/bonfire/events/consumers/cost.py +73 -0
  157. bonfire_ai-0.1.0a1/src/bonfire/events/consumers/display.py +92 -0
  158. bonfire_ai-0.1.0a1/src/bonfire/events/consumers/knowledge_ingest.py +10 -0
  159. bonfire_ai-0.1.0a1/src/bonfire/events/consumers/logger.py +33 -0
  160. bonfire_ai-0.1.0a1/src/bonfire/git/__init__.py +26 -0
  161. bonfire_ai-0.1.0a1/src/bonfire/git/path_guard.py +153 -0
  162. bonfire_ai-0.1.0a1/src/bonfire/git/scratch.py +244 -0
  163. bonfire_ai-0.1.0a1/src/bonfire/git/workflow.py +207 -0
  164. bonfire_ai-0.1.0a1/src/bonfire/git/worktree.py +147 -0
  165. bonfire_ai-0.1.0a1/src/bonfire/github/__init__.py +15 -0
  166. bonfire_ai-0.1.0a1/src/bonfire/github/client.py +326 -0
  167. bonfire_ai-0.1.0a1/src/bonfire/github/mock.py +196 -0
  168. bonfire_ai-0.1.0a1/src/bonfire/handlers/__init__.py +54 -0
  169. bonfire_ai-0.1.0a1/src/bonfire/handlers/architect.py +221 -0
  170. bonfire_ai-0.1.0a1/src/bonfire/handlers/bard.py +276 -0
  171. bonfire_ai-0.1.0a1/src/bonfire/handlers/herald.py +169 -0
  172. bonfire_ai-0.1.0a1/src/bonfire/handlers/merge_preflight.py +1035 -0
  173. bonfire_ai-0.1.0a1/src/bonfire/handlers/sage_correction_bounce.py +857 -0
  174. bonfire_ai-0.1.0a1/src/bonfire/handlers/wizard.py +434 -0
  175. bonfire_ai-0.1.0a1/src/bonfire/knowledge/__init__.py +55 -0
  176. bonfire_ai-0.1.0a1/src/bonfire/knowledge/backend.py +235 -0
  177. bonfire_ai-0.1.0a1/src/bonfire/knowledge/backfill.py +98 -0
  178. bonfire_ai-0.1.0a1/src/bonfire/knowledge/chunker.py +193 -0
  179. bonfire_ai-0.1.0a1/src/bonfire/knowledge/consumer.py +128 -0
  180. bonfire_ai-0.1.0a1/src/bonfire/knowledge/embeddings.py +44 -0
  181. bonfire_ai-0.1.0a1/src/bonfire/knowledge/hasher.py +34 -0
  182. bonfire_ai-0.1.0a1/src/bonfire/knowledge/ingest.py +193 -0
  183. bonfire_ai-0.1.0a1/src/bonfire/knowledge/memory.py +53 -0
  184. bonfire_ai-0.1.0a1/src/bonfire/knowledge/mock_embedder.py +38 -0
  185. bonfire_ai-0.1.0a1/src/bonfire/knowledge/ollama_embedder.py +89 -0
  186. bonfire_ai-0.1.0a1/src/bonfire/knowledge/scanner.py +240 -0
  187. bonfire_ai-0.1.0a1/src/bonfire/models/__init__.py +24 -0
  188. bonfire_ai-0.1.0a1/src/bonfire/models/config.py +208 -0
  189. bonfire_ai-0.1.0a1/src/bonfire/models/envelope.py +188 -0
  190. bonfire_ai-0.1.0a1/src/bonfire/models/events.py +393 -0
  191. bonfire_ai-0.1.0a1/src/bonfire/models/plan.py +203 -0
  192. bonfire_ai-0.1.0a1/src/bonfire/naming.py +107 -0
  193. bonfire_ai-0.1.0a1/src/bonfire/onboard/__init__.py +34 -0
  194. bonfire_ai-0.1.0a1/src/bonfire/onboard/config_generator.py +329 -0
  195. bonfire_ai-0.1.0a1/src/bonfire/onboard/conversation.py +464 -0
  196. bonfire_ai-0.1.0a1/src/bonfire/onboard/flow.py +115 -0
  197. bonfire_ai-0.1.0a1/src/bonfire/onboard/narration.py +296 -0
  198. bonfire_ai-0.1.0a1/src/bonfire/onboard/orchestrator.py +111 -0
  199. bonfire_ai-0.1.0a1/src/bonfire/onboard/protocol.py +162 -0
  200. bonfire_ai-0.1.0a1/src/bonfire/onboard/scanners/__init__.py +4 -0
  201. bonfire_ai-0.1.0a1/src/bonfire/onboard/scanners/claude_memory.py +226 -0
  202. bonfire_ai-0.1.0a1/src/bonfire/onboard/scanners/cli_toolchain.py +145 -0
  203. bonfire_ai-0.1.0a1/src/bonfire/onboard/scanners/git_state.py +170 -0
  204. bonfire_ai-0.1.0a1/src/bonfire/onboard/scanners/mcp_servers.py +235 -0
  205. bonfire_ai-0.1.0a1/src/bonfire/onboard/scanners/project_structure.py +76 -0
  206. bonfire_ai-0.1.0a1/src/bonfire/onboard/scanners/vault_seed.py +243 -0
  207. bonfire_ai-0.1.0a1/src/bonfire/onboard/server.py +187 -0
  208. bonfire_ai-0.1.0a1/src/bonfire/onboard/ui.html +450 -0
  209. bonfire_ai-0.1.0a1/src/bonfire/persona/__init__.py +38 -0
  210. bonfire_ai-0.1.0a1/src/bonfire/persona/base.py +87 -0
  211. bonfire_ai-0.1.0a1/src/bonfire/persona/builtins/default/persona.toml +16 -0
  212. bonfire_ai-0.1.0a1/src/bonfire/persona/builtins/default/phrases.toml +79 -0
  213. bonfire_ai-0.1.0a1/src/bonfire/persona/builtins/minimal/persona.toml +16 -0
  214. bonfire_ai-0.1.0a1/src/bonfire/persona/builtins/minimal/phrases.toml +67 -0
  215. bonfire_ai-0.1.0a1/src/bonfire/persona/builtins/passelewe/persona.toml +16 -0
  216. bonfire_ai-0.1.0a1/src/bonfire/persona/builtins/passelewe/phrases.toml +98 -0
  217. bonfire_ai-0.1.0a1/src/bonfire/persona/loader.py +307 -0
  218. bonfire_ai-0.1.0a1/src/bonfire/persona/phrase_bank.py +79 -0
  219. bonfire_ai-0.1.0a1/src/bonfire/persona/protocol.py +37 -0
  220. bonfire_ai-0.1.0a1/src/bonfire/prompt/__init__.py +32 -0
  221. bonfire_ai-0.1.0a1/src/bonfire/prompt/compiler.py +520 -0
  222. bonfire_ai-0.1.0a1/src/bonfire/prompt/identity_block.py +57 -0
  223. bonfire_ai-0.1.0a1/src/bonfire/prompt/templates/.gitkeep +0 -0
  224. bonfire_ai-0.1.0a1/src/bonfire/prompt/truncation.py +164 -0
  225. bonfire_ai-0.1.0a1/src/bonfire/protocols.py +205 -0
  226. bonfire_ai-0.1.0a1/src/bonfire/py.typed +0 -0
  227. bonfire_ai-0.1.0a1/src/bonfire/scan/__init__.py +11 -0
  228. bonfire_ai-0.1.0a1/src/bonfire/scan/decision_recorder.py +323 -0
  229. bonfire_ai-0.1.0a1/src/bonfire/scan/tech_scanner.py +312 -0
  230. bonfire_ai-0.1.0a1/src/bonfire/session/__init__.py +9 -0
  231. bonfire_ai-0.1.0a1/src/bonfire/session/persistence.py +48 -0
  232. bonfire_ai-0.1.0a1/src/bonfire/session/state.py +95 -0
  233. bonfire_ai-0.1.0a1/src/bonfire/verify/__init__.py +46 -0
  234. bonfire_ai-0.1.0a1/src/bonfire/verify/classifier.py +358 -0
  235. bonfire_ai-0.1.0a1/src/bonfire/workflow/__init__.py +30 -0
  236. bonfire_ai-0.1.0a1/src/bonfire/workflow/registry.py +81 -0
  237. bonfire_ai-0.1.0a1/src/bonfire/workflow/research.py +100 -0
  238. bonfire_ai-0.1.0a1/src/bonfire/workflow/standard.py +127 -0
  239. bonfire_ai-0.1.0a1/src/bonfire/xp/__init__.py +20 -0
  240. bonfire_ai-0.1.0a1/src/bonfire/xp/calculator.py +82 -0
  241. bonfire_ai-0.1.0a1/src/bonfire/xp/consumer.py +140 -0
  242. bonfire_ai-0.1.0a1/src/bonfire/xp/display.py +101 -0
  243. bonfire_ai-0.1.0a1/src/bonfire/xp/session.py +42 -0
  244. bonfire_ai-0.1.0a1/src/bonfire/xp/tracker.py +117 -0
  245. bonfire_ai-0.1.0a1/tests/__init__.py +0 -0
  246. bonfire_ai-0.1.0a1/tests/conftest.py +106 -0
  247. bonfire_ai-0.1.0a1/tests/e2e/Dockerfile +55 -0
  248. bonfire_ai-0.1.0a1/tests/e2e/prompts/runner-prompt.md +53 -0
  249. bonfire_ai-0.1.0a1/tests/e2e/schemas/verdict.schema.json +131 -0
  250. bonfire_ai-0.1.0a1/tests/e2e/scripts/e2e-box.sh +98 -0
  251. bonfire_ai-0.1.0a1/tests/e2e/scripts/e2e-runner.sh +215 -0
  252. bonfire_ai-0.1.0a1/tests/integration/__init__.py +0 -0
  253. bonfire_ai-0.1.0a1/tests/integration/test_budget_enforcement.py +497 -0
  254. bonfire_ai-0.1.0a1/tests/integration/test_constitution_canon_pointer.py +135 -0
  255. bonfire_ai-0.1.0a1/tests/integration/test_constitution_module_names.py +108 -0
  256. bonfire_ai-0.1.0a1/tests/integration/test_constitution_present.py +112 -0
  257. bonfire_ai-0.1.0a1/tests/integration/test_e2e_runner_contract.py +262 -0
  258. bonfire_ai-0.1.0a1/tests/integration/test_merge_preflight_pipeline.py +398 -0
  259. bonfire_ai-0.1.0a1/tests/smoke/__init__.py +0 -0
  260. bonfire_ai-0.1.0a1/tests/smoke/smoke_test.py +279 -0
  261. bonfire_ai-0.1.0a1/tests/smoke/test_350_dft_doc_invariants_innovation.py +498 -0
  262. bonfire_ai-0.1.0a1/tests/smoke/test_no_plural_workflows.py +36 -0
  263. bonfire_ai-0.1.0a1/tests/unit/__init__.py +0 -0
  264. bonfire_ai-0.1.0a1/tests/unit/test_analysis_models.py +291 -0
  265. bonfire_ai-0.1.0a1/tests/unit/test_analysis_schema.py +168 -0
  266. bonfire_ai-0.1.0a1/tests/unit/test_architect_handler.py +631 -0
  267. bonfire_ai-0.1.0a1/tests/unit/test_architecture_doc_exists.py +123 -0
  268. bonfire_ai-0.1.0a1/tests/unit/test_bard_handler.py +1251 -0
  269. bonfire_ai-0.1.0a1/tests/unit/test_classifier.py +587 -0
  270. bonfire_ai-0.1.0a1/tests/unit/test_classifier_module_surface.py +300 -0
  271. bonfire_ai-0.1.0a1/tests/unit/test_cli_app_no_dispatch_command.py +178 -0
  272. bonfire_ai-0.1.0a1/tests/unit/test_cli_conservative.py +324 -0
  273. bonfire_ai-0.1.0a1/tests/unit/test_config.py +492 -0
  274. bonfire_ai-0.1.0a1/tests/unit/test_cost_analyzer.py +896 -0
  275. bonfire_ai-0.1.0a1/tests/unit/test_cost_cli.py +231 -0
  276. bonfire_ai-0.1.0a1/tests/unit/test_cost_consumer.py +396 -0
  277. bonfire_ai-0.1.0a1/tests/unit/test_cost_models.py +421 -0
  278. bonfire_ai-0.1.0a1/tests/unit/test_dispatch_options_role.py +335 -0
  279. bonfire_ai-0.1.0a1/tests/unit/test_dispatch_options_security_hooks.py +116 -0
  280. bonfire_ai-0.1.0a1/tests/unit/test_dispatch_pydantic_ai_backend.py +314 -0
  281. bonfire_ai-0.1.0a1/tests/unit/test_dispatch_result.py +348 -0
  282. bonfire_ai-0.1.0a1/tests/unit/test_dispatch_runner.py +1129 -0
  283. bonfire_ai-0.1.0a1/tests/unit/test_dispatch_sdk_backend.py +470 -0
  284. bonfire_ai-0.1.0a1/tests/unit/test_dispatch_tier.py +183 -0
  285. bonfire_ai-0.1.0a1/tests/unit/test_engine_advisor.py +442 -0
  286. bonfire_ai-0.1.0a1/tests/unit/test_engine_checkpoint.py +800 -0
  287. bonfire_ai-0.1.0a1/tests/unit/test_engine_context.py +459 -0
  288. bonfire_ai-0.1.0a1/tests/unit/test_engine_executor.py +1541 -0
  289. bonfire_ai-0.1.0a1/tests/unit/test_engine_executor_tool_policy.py +715 -0
  290. bonfire_ai-0.1.0a1/tests/unit/test_engine_factory.py +223 -0
  291. bonfire_ai-0.1.0a1/tests/unit/test_engine_gates.py +621 -0
  292. bonfire_ai-0.1.0a1/tests/unit/test_engine_init.py +218 -0
  293. bonfire_ai-0.1.0a1/tests/unit/test_engine_model_resolver.py +269 -0
  294. bonfire_ai-0.1.0a1/tests/unit/test_engine_pipeline.py +1535 -0
  295. bonfire_ai-0.1.0a1/tests/unit/test_engine_pipeline_tool_policy.py +662 -0
  296. bonfire_ai-0.1.0a1/tests/unit/test_envelope.py +591 -0
  297. bonfire_ai-0.1.0a1/tests/unit/test_event_bus.py +1081 -0
  298. bonfire_ai-0.1.0a1/tests/unit/test_event_consumers.py +940 -0
  299. bonfire_ai-0.1.0a1/tests/unit/test_events.py +674 -0
  300. bonfire_ai-0.1.0a1/tests/unit/test_git.py +754 -0
  301. bonfire_ai-0.1.0a1/tests/unit/test_github.py +858 -0
  302. bonfire_ai-0.1.0a1/tests/unit/test_github_client_list_open_prs.py +341 -0
  303. bonfire_ai-0.1.0a1/tests/unit/test_handlers_package.py +295 -0
  304. bonfire_ai-0.1.0a1/tests/unit/test_handlers_role_binding.py +155 -0
  305. bonfire_ai-0.1.0a1/tests/unit/test_herald_handler.py +571 -0
  306. bonfire_ai-0.1.0a1/tests/unit/test_init_docstring_quality.py +99 -0
  307. bonfire_ai-0.1.0a1/tests/unit/test_knowledge_backfill.py +105 -0
  308. bonfire_ai-0.1.0a1/tests/unit/test_knowledge_chunker.py +242 -0
  309. bonfire_ai-0.1.0a1/tests/unit/test_knowledge_consumer.py +297 -0
  310. bonfire_ai-0.1.0a1/tests/unit/test_knowledge_embeddings.py +124 -0
  311. bonfire_ai-0.1.0a1/tests/unit/test_knowledge_factory.py +142 -0
  312. bonfire_ai-0.1.0a1/tests/unit/test_knowledge_hasher.py +126 -0
  313. bonfire_ai-0.1.0a1/tests/unit/test_knowledge_ingest.py +173 -0
  314. bonfire_ai-0.1.0a1/tests/unit/test_knowledge_memory.py +218 -0
  315. bonfire_ai-0.1.0a1/tests/unit/test_knowledge_package.py +36 -0
  316. bonfire_ai-0.1.0a1/tests/unit/test_knowledge_scanner.py +269 -0
  317. bonfire_ai-0.1.0a1/tests/unit/test_license_headers.py +98 -0
  318. bonfire_ai-0.1.0a1/tests/unit/test_merge_preflight_gate.py +210 -0
  319. bonfire_ai-0.1.0a1/tests/unit/test_merge_preflight_handler.py +1138 -0
  320. bonfire_ai-0.1.0a1/tests/unit/test_model_tiers.py +234 -0
  321. bonfire_ai-0.1.0a1/tests/unit/test_no_bon_ref_in_src_sweep.py +186 -0
  322. bonfire_ai-0.1.0a1/tests/unit/test_onboard_protocol.py +285 -0
  323. bonfire_ai-0.1.0a1/tests/unit/test_onboard_scanner_claude_memory.py +534 -0
  324. bonfire_ai-0.1.0a1/tests/unit/test_onboard_scanner_cli_toolchain.py +504 -0
  325. bonfire_ai-0.1.0a1/tests/unit/test_onboard_scanner_git_state.py +432 -0
  326. bonfire_ai-0.1.0a1/tests/unit/test_onboard_scanner_mcp_servers.py +863 -0
  327. bonfire_ai-0.1.0a1/tests/unit/test_onboard_scanner_project_structure.py +219 -0
  328. bonfire_ai-0.1.0a1/tests/unit/test_onboard_scanner_vault_seed.py +532 -0
  329. bonfire_ai-0.1.0a1/tests/unit/test_onboard_server.py +362 -0
  330. bonfire_ai-0.1.0a1/tests/unit/test_package_dunder.py +47 -0
  331. bonfire_ai-0.1.0a1/tests/unit/test_persona_builtin.py +270 -0
  332. bonfire_ai-0.1.0a1/tests/unit/test_persona_builtins_dynamic_role_coverage.py +136 -0
  333. bonfire_ai-0.1.0a1/tests/unit/test_persona_cli.py +300 -0
  334. bonfire_ai-0.1.0a1/tests/unit/test_persona_core.py +451 -0
  335. bonfire_ai-0.1.0a1/tests/unit/test_persona_defaults.py +288 -0
  336. bonfire_ai-0.1.0a1/tests/unit/test_persona_discovery.py +260 -0
  337. bonfire_ai-0.1.0a1/tests/unit/test_persona_loader.py +539 -0
  338. bonfire_ai-0.1.0a1/tests/unit/test_persona_rename_sweep.py +373 -0
  339. bonfire_ai-0.1.0a1/tests/unit/test_persona_toml_schema.py +480 -0
  340. bonfire_ai-0.1.0a1/tests/unit/test_plan.py +655 -0
  341. bonfire_ai-0.1.0a1/tests/unit/test_prompt_compiler.py +1256 -0
  342. bonfire_ai-0.1.0a1/tests/unit/test_protocols.py +886 -0
  343. bonfire_ai-0.1.0a1/tests/unit/test_resolver.py +361 -0
  344. bonfire_ai-0.1.0a1/tests/unit/test_role_tier_map.py +282 -0
  345. bonfire_ai-0.1.0a1/tests/unit/test_roles.py +81 -0
  346. bonfire_ai-0.1.0a1/tests/unit/test_sage_correction_handler.py +1294 -0
  347. bonfire_ai-0.1.0a1/tests/unit/test_sage_correction_resolved_gate.py +550 -0
  348. bonfire_ai-0.1.0a1/tests/unit/test_scan_cli.py +166 -0
  349. bonfire_ai-0.1.0a1/tests/unit/test_scan_decision_recorder.py +135 -0
  350. bonfire_ai-0.1.0a1/tests/unit/test_scan_package.py +35 -0
  351. bonfire_ai-0.1.0a1/tests/unit/test_scan_tech_scanner.py +210 -0
  352. bonfire_ai-0.1.0a1/tests/unit/test_scratch_worktree.py +268 -0
  353. bonfire_ai-0.1.0a1/tests/unit/test_sdk_backend_hooks_wiring.py +310 -0
  354. bonfire_ai-0.1.0a1/tests/unit/test_sdk_backend_tool_presence.py +480 -0
  355. bonfire_ai-0.1.0a1/tests/unit/test_security_denied_event.py +293 -0
  356. bonfire_ai-0.1.0a1/tests/unit/test_security_hooks_blindspots.py +324 -0
  357. bonfire_ai-0.1.0a1/tests/unit/test_security_hooks_config.py +283 -0
  358. bonfire_ai-0.1.0a1/tests/unit/test_security_hooks_event.py +360 -0
  359. bonfire_ai-0.1.0a1/tests/unit/test_security_hooks_factory.py +345 -0
  360. bonfire_ai-0.1.0a1/tests/unit/test_security_hooks_failsafe.py +521 -0
  361. bonfire_ai-0.1.0a1/tests/unit/test_security_hooks_matcher.py +247 -0
  362. bonfire_ai-0.1.0a1/tests/unit/test_security_hooks_normalize.py +224 -0
  363. bonfire_ai-0.1.0a1/tests/unit/test_security_hooks_runtime.py +355 -0
  364. bonfire_ai-0.1.0a1/tests/unit/test_security_hooks_unwrap.py +422 -0
  365. bonfire_ai-0.1.0a1/tests/unit/test_security_patterns_C1.py +316 -0
  366. bonfire_ai-0.1.0a1/tests/unit/test_security_patterns_C2.py +282 -0
  367. bonfire_ai-0.1.0a1/tests/unit/test_security_patterns_C3.py +180 -0
  368. bonfire_ai-0.1.0a1/tests/unit/test_security_patterns_C4.py +200 -0
  369. bonfire_ai-0.1.0a1/tests/unit/test_security_patterns_C5.py +198 -0
  370. bonfire_ai-0.1.0a1/tests/unit/test_security_patterns_C6.py +223 -0
  371. bonfire_ai-0.1.0a1/tests/unit/test_security_patterns_C7.py +216 -0
  372. bonfire_ai-0.1.0a1/tests/unit/test_security_patterns_module.py +356 -0
  373. bonfire_ai-0.1.0a1/tests/unit/test_session.py +480 -0
  374. bonfire_ai-0.1.0a1/tests/unit/test_tool_policy.py +661 -0
  375. bonfire_ai-0.1.0a1/tests/unit/test_wizard_handler.py +1287 -0
  376. bonfire_ai-0.1.0a1/tests/unit/test_workflow.py +897 -0
  377. bonfire_ai-0.1.0a1/tests/unit/test_xp_calculator.py +240 -0
  378. bonfire_ai-0.1.0a1/tests/unit/test_xp_consumer.py +589 -0
  379. bonfire_ai-0.1.0a1/tests/unit/test_xp_display.py +390 -0
  380. bonfire_ai-0.1.0a1/tests/unit/test_xp_session.py +214 -0
  381. bonfire_ai-0.1.0a1/tests/unit/test_xp_tracker.py +319 -0
@@ -0,0 +1,27 @@
1
+ # Bonfire E2E release-gate box — operator environment
2
+ #
3
+ # This file is OPTIONAL. The host driver (tests/e2e/scripts/e2e-box.sh)
4
+ # auto-detects the operator's auth mode at startup:
5
+ #
6
+ # 1. Claude Max OAuth (preferred when available) — if you have Claude Code
7
+ # logged in (~/.claude/.credentials.json exists), the driver bind-mounts
8
+ # your credentials into the container. No .env staging required. Cost is
9
+ # counted against your Claude Max plan, not your Anthropic console
10
+ # billing.
11
+ #
12
+ # 2. Anthropic console API key — if you do not have Claude Max, copy this
13
+ # file to .env, paste an active key on the line below, and re-run. Cost
14
+ # lands on your Anthropic console billing (~$0.10–$1 per fire); set a
15
+ # daily-spend cap.
16
+ #
17
+ # .env is gitignored.
18
+ #
19
+ # IMPORTANT: this file ships with ALL lines commented out. To opt into the
20
+ # API-key path, copy this file to .env, uncomment the line below, and replace
21
+ # the REPLACE_ME placeholder with a real sk-ant-… key. If you leave the line
22
+ # commented, the driver auto-detects Claude Max OAuth instead — the .env is
23
+ # treated as if absent.
24
+ #
25
+ # ANTHROPIC_API_KEY=sk-ant-api03-REPLACE_ME
26
+ # Optional model pin
27
+ # ANTHROPIC_MODEL=claude-sonnet-4-7-20260101
@@ -0,0 +1 @@
1
+ gitdir: /home/ishtar/Projects/bonfire-public/.git/worktrees/bonfire-publish
@@ -0,0 +1,35 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ python-version: ["3.12"]
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Set up Python ${{ matrix.python-version }}
20
+ uses: actions/setup-python@v5
21
+ with:
22
+ python-version: ${{ matrix.python-version }}
23
+
24
+ - name: Install dependencies
25
+ run: |
26
+ python -m pip install --upgrade pip
27
+ pip install -e ".[dev]"
28
+
29
+ - name: Lint
30
+ run: |
31
+ ruff check src/ tests/
32
+ ruff format --check src/ tests/
33
+
34
+ - name: Test
35
+ run: pytest tests/ -x --tb=short
@@ -0,0 +1,85 @@
1
+ name: Smoke
2
+
3
+ # BON-354 — release-artifact smoke gate.
4
+ #
5
+ # Builds the v0.1.0 wheel + sdist, twine-checks both, then installs each
6
+ # into a fresh venv and runs `tests/smoke/smoke_test.py` (stdlib only, no
7
+ # pytest). Catches packaging drift, missing data files, and console-script
8
+ # wiring regressions before they reach PyPI.
9
+ #
10
+ # Mocked-only: this workflow does NOT use any LLM API key. The real-key
11
+ # leg lives in the local `tests/e2e/scripts/e2e-box.sh` per
12
+ # `docs/release-gates.md` §"E2E box · Local execution only · Never runs
13
+ # in CI." The `bonfire dispatch` CLI verb is deferred to v0.1.1 (BON-633)
14
+ # per BON-354 comment 9503cd7f.
15
+
16
+ on:
17
+ push:
18
+ branches: [main, v0.1]
19
+ pull_request:
20
+ branches: [main, v0.1]
21
+
22
+ permissions:
23
+ contents: read
24
+
25
+ jobs:
26
+ smoke:
27
+ runs-on: ubuntu-latest
28
+ strategy:
29
+ fail-fast: false
30
+ matrix:
31
+ # Today only 3.12 is declared in `pyproject.toml` classifiers.
32
+ # Add 3.13 here once the classifier lands (scout report §5
33
+ # out-of-scope row 3, D-FT BON-354-FT-7).
34
+ python-version: ["3.12"]
35
+ steps:
36
+ - name: Checkout
37
+ uses: actions/checkout@v4
38
+
39
+ - name: Set up Python ${{ matrix.python-version }}
40
+ uses: actions/setup-python@v5
41
+ with:
42
+ python-version: ${{ matrix.python-version }}
43
+
44
+ - name: Install build frontend
45
+ run: |
46
+ python -m pip install --upgrade pip
47
+ python -m pip install build twine
48
+
49
+ - name: Build wheel + sdist
50
+ run: python -m build
51
+
52
+ - name: Inspect built artifacts (twine check)
53
+ run: twine check dist/*
54
+
55
+ # ----- Wheel install in clean venv ----------------------------------
56
+ - name: Create wheel-smoke venv
57
+ run: python -m venv .smoke-wheel
58
+
59
+ - name: Install wheel into smoke venv
60
+ run: |
61
+ .smoke-wheel/bin/pip install --upgrade pip
62
+ .smoke-wheel/bin/pip install dist/*.whl
63
+
64
+ - name: Smoke test (wheel)
65
+ run: .smoke-wheel/bin/python tests/smoke/smoke_test.py
66
+
67
+ # ----- Sdist install in clean venv ----------------------------------
68
+ - name: Create sdist-smoke venv
69
+ run: python -m venv .smoke-sdist
70
+
71
+ - name: Install sdist into smoke venv
72
+ run: |
73
+ .smoke-sdist/bin/pip install --upgrade pip
74
+ .smoke-sdist/bin/pip install dist/*.tar.gz
75
+
76
+ - name: Smoke test (sdist)
77
+ run: .smoke-sdist/bin/python tests/smoke/smoke_test.py
78
+
79
+ # ----- Publish dist/ as a downloadable artifact ---------------------
80
+ - name: Upload built artifacts
81
+ uses: actions/upload-artifact@v4
82
+ with:
83
+ name: dist-${{ matrix.python-version }}
84
+ path: dist/*
85
+ if-no-files-found: error
@@ -0,0 +1,213 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+ #poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ #pdm.lock
116
+ #pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ #pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # SageMath parsed files
135
+ *.sage.py
136
+
137
+ # Environments
138
+ .env
139
+ .env*
140
+ !.env.example
141
+ .envrc
142
+ .venv
143
+ env/
144
+ venv/
145
+ ENV/
146
+ env.bak/
147
+ venv.bak/
148
+
149
+ # Spyder project settings
150
+ .spyderproject
151
+ .spyproject
152
+
153
+ # Rope project settings
154
+ .ropeproject
155
+
156
+ # mkdocs documentation
157
+ /site
158
+
159
+ # mypy
160
+ .mypy_cache/
161
+ .dmypy.json
162
+ dmypy.json
163
+
164
+ # Pyre type checker
165
+ .pyre/
166
+
167
+ # pytype static type analyzer
168
+ .pytype/
169
+
170
+ # Cython debug symbols
171
+ cython_debug/
172
+
173
+ # PyCharm
174
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
175
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
176
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
177
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
178
+ #.idea/
179
+
180
+ # Abstra
181
+ # Abstra is an AI-powered process automation framework.
182
+ # Ignore directories containing user credentials, local state, and settings.
183
+ # Learn more at https://abstra.io/docs
184
+ .abstra/
185
+
186
+ # Visual Studio Code
187
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
188
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
189
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
190
+ # you could uncomment the following to ignore the entire vscode folder
191
+ # .vscode/
192
+
193
+ # Ruff stuff:
194
+ .ruff_cache/
195
+
196
+ # PyPI configuration file
197
+ .pypirc
198
+
199
+ # Cursor
200
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
201
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
202
+ # refer to https://docs.cursor.com/context/ignore-files
203
+ .cursorignore
204
+ .cursorindexingignore
205
+
206
+ # Marimo
207
+ marimo/_static/
208
+ marimo/_lsp/
209
+ __marimo__/
210
+
211
+ # Claude Code per-machine settings + ephemeral worktrees
212
+ .claude/settings.local.json
213
+ .claude/worktrees/
@@ -0,0 +1,114 @@
1
+ # Changelog
2
+
3
+ All notable changes to `bonfire-ai` are documented here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project
5
+ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [0.1.0a1] — 2026-05-03
8
+
9
+ > Renamed from `[0.1.0]` to `[0.1.0a1]` 2026-05-03. The original `0.1.0`
10
+ > tag shipped on 2026-04-28; the alpha label is restored to honestly
11
+ > reflect that release-gate items in [`docs/release-gates.md`](docs/release-gates.md)
12
+ > remain open. Stable `v0.1.0` is the future tag once they all clear.
13
+
14
+ Frame shipped, operations deferred. Bonfire ships the pipeline engine,
15
+ the nine-role cadre, the four extension protocols, the persona system
16
+ (default + minimal + an optional example), the browser-based `bonfire
17
+ scan` onboarding, the cost ledger, and a deterministic merge-preflight
18
+ stage. Knowledge-graph storage ("the vault") and the `bonfire run`
19
+ end-to-end CLI verb are still in progress and ship in subsequent
20
+ 0.1.x alpha releases.
21
+
22
+ ### Added
23
+
24
+ - Pipeline engine with role-specialised stages: researcher, tester,
25
+ implementer, verifier, publisher, reviewer, closer, synthesizer,
26
+ analyst.
27
+ - Quality gates between stages with TDD enforcement at the role
28
+ boundary (RED tests from the tester, GREEN code from the implementer,
29
+ independent verification before publish).
30
+ - Per-role model routing through `resolve_model_for_role` with three
31
+ capability tiers (`reasoning`, `fast`, `balanced`). Pure synchronous
32
+ resolution; never raises on a string input.
33
+ - BYOK configuration via `bonfire.toml` with environment variable
34
+ overlay (`BONFIRE_` prefix, `__` nested delimiter).
35
+ - CLI subcommands: `init`, `scan`, `status`, `resume`, `handoff`,
36
+ `persona`, `cost`. The installed console script is `bonfire`.
37
+ - Browser-based onboarding scan (`bonfire scan`) over WebSocket.
38
+ - Persona system for display-only CLI output styling. Personas affect
39
+ CLI presentation only — never agent prompts, never quality
40
+ standards.
41
+ - Four `@runtime_checkable` extension protocols: `AgentBackend`,
42
+ `VaultBackend`, `QualityGate`, `StageHandler`. Composition root
43
+ verifies conformance at registration time.
44
+ - Priority-based prompt truncation with `PromptBlock` and U-shape
45
+ ordering for long-context model use.
46
+ - `MergePreflightHandler` — a deterministic merge-preflight pipeline
47
+ stage that runs the full pytest suite against the simulated merged
48
+ tip before merge, detecting cross-wave interactions between sibling
49
+ PRs targeting the same base. Six-verdict classifier with
50
+ first-match-wins ordering: `green`, `pre_existing_debt` (allow with
51
+ annotation), `cross_wave_interaction`, `pure_warrior_bug`,
52
+ `pytest_collection_error`, `merge_conflict`. Wired into
53
+ `standard_build()` between `wizard` and `herald` via
54
+ `MergePreflightGate`. Backed by the new
55
+ `bonfire.git.scratch.ScratchWorktreeFactory` primitive. See
56
+ `docs/pipeline-stages.md` and `docs/product/discipline.md`.
57
+ - `GitHubClient.list_open_prs(base, *, exclude=None)` and the frozen
58
+ `PRSummary` Pydantic model, used by the merge-preflight stage for
59
+ sibling-batch detection. `MockGitHubClient` carries matching
60
+ parity (`set_open_prs` configures canned data; `list_open_prs`
61
+ returns it).
62
+ - `META_PREFLIGHT_CLASSIFICATION` and
63
+ `META_PREFLIGHT_TEST_DEBT_NOTED` metadata-key constants on
64
+ `bonfire.models.envelope`.
65
+ - Per-role model tier resolution wired through the dispatch engine
66
+ (envelope-level `model` precedence preserved; falls back to the
67
+ configured tier on absence).
68
+ - `py.typed` marker file shipped in the wheel, satisfying PEP 561 for
69
+ the `Typing :: Typed` classifier.
70
+
71
+ ### Changed
72
+
73
+ - Default `base_branch` value updated from `"master"` to `"main"`
74
+ across the git layer and pipeline configuration.
75
+ - `Development Status` PyPI classifier advanced from `3 - Alpha` to
76
+ `4 - Beta` per `docs/release-policy.md`.
77
+ - `__version__` is now resolved at import time via
78
+ `importlib.metadata.version("bonfire-ai")`, with a hard-coded
79
+ fallback for editable / unbuilt checkouts. Single source of truth
80
+ for the installed version.
81
+
82
+ ### Fixed
83
+
84
+ - Re-exported `ModelCost` from `bonfire.cost.__init__` so external
85
+ consumers can `from bonfire.cost import ModelCost` without reaching
86
+ into the submodule.
87
+
88
+ ### Removed
89
+
90
+ - `rich` runtime dependency. The package was declared but never
91
+ imported; removing it shrinks the install footprint and removes
92
+ unused transitive deps (markdown-it-py, mdurl, Pygments, etc.). May
93
+ return as an optional dependency in a future release if rich-rendered
94
+ CLI output is wired.
95
+
96
+ ### Known Limitations
97
+
98
+ - The default `VaultBackend` implementation lands in a later 0.1.x
99
+ release. The protocol is stable; the storage backend is not.
100
+ - The end-to-end `bonfire run` workflow is incomplete; pipeline
101
+ stages exist but the orchestrator is wired progressively across
102
+ 0.1.x.
103
+ - CI matrix runs only Python 3.12 today. The `Programming Language ::
104
+ Python :: 3.13` classifier will be claimed once 3.13 is added to
105
+ CI and stays green.
106
+
107
+ ### Notes
108
+
109
+ - Pre-v0.1.0a1 commit history on the `v0.1` branch contains internal-tracker
110
+ references (e.g., `BON-NNN`) in commit subjects. This is accepted as
111
+ historical for the v0.1.0a1 alpha release. New commits comply with
112
+ [CONTRIBUTING.md](CONTRIBUTING.md) per repo policy.
113
+
114
+ [0.1.0a1]: https://github.com/BonfireAI/bonfire/releases/tag/v0.1.0a1