engineering-influence 1.0.0__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 engineering-influence might be problematic. Click here for more details.

Files changed (1633) hide show
  1. engineering_influence-1.0.0/.gitignore +15 -0
  2. engineering_influence-1.0.0/CHANGELOG.md +193 -0
  3. engineering_influence-1.0.0/LICENSE +21 -0
  4. engineering_influence-1.0.0/PKG-INFO +248 -0
  5. engineering_influence-1.0.0/README.md +178 -0
  6. engineering_influence-1.0.0/SECURITY.md +7 -0
  7. engineering_influence-1.0.0/docs/AGENTS_DRIVING.md +165 -0
  8. engineering_influence-1.0.0/docs/ARCHITECTURE.md +154 -0
  9. engineering_influence-1.0.0/docs/BOOKS_AND_KDP.md +228 -0
  10. engineering_influence-1.0.0/docs/COMPATIBILITY.md +92 -0
  11. engineering_influence-1.0.0/docs/CONFIGURATION.md +402 -0
  12. engineering_influence-1.0.0/docs/DOCUMENTATION_SITE.md +74 -0
  13. engineering_influence-1.0.0/docs/EVALUATION.md +109 -0
  14. engineering_influence-1.0.0/docs/GETTING_STARTED.md +212 -0
  15. engineering_influence-1.0.0/docs/INTERACTIONS.md +343 -0
  16. engineering_influence-1.0.0/docs/LIVE_SMOKE_TEST.md +124 -0
  17. engineering_influence-1.0.0/docs/LOCAL_MODEL.md +112 -0
  18. engineering_influence-1.0.0/docs/MODEL_CALLS.md +141 -0
  19. engineering_influence-1.0.0/docs/MODEL_CATALOG.md +117 -0
  20. engineering_influence-1.0.0/docs/MODEL_PROFILES.md +132 -0
  21. engineering_influence-1.0.0/docs/NOVELS.md +110 -0
  22. engineering_influence-1.0.0/docs/PLUGINS.md +258 -0
  23. engineering_influence-1.0.0/docs/PROMPTS.md +177 -0
  24. engineering_influence-1.0.0/docs/RELEASING.md +207 -0
  25. engineering_influence-1.0.0/docs/RESEARCH.md +111 -0
  26. engineering_influence-1.0.0/docs/SKILLS.md +261 -0
  27. engineering_influence-1.0.0/docs/STYLE.md +62 -0
  28. engineering_influence-1.0.0/docs/TESTING.md +211 -0
  29. engineering_influence-1.0.0/docs/THREAT_MODEL.md +217 -0
  30. engineering_influence-1.0.0/docs/TOOL_LOCK.md +319 -0
  31. engineering_influence-1.0.0/docs/TROUBLESHOOTING.md +109 -0
  32. engineering_influence-1.0.0/docs/WORKER_IMAGE.md +84 -0
  33. engineering_influence-1.0.0/docs/adr/0001-vibey-integration-boundary.md +39 -0
  34. engineering_influence-1.0.0/docs/adr/0002-audience-priority-and-sovereign-agent-doctrine.md +43 -0
  35. engineering_influence-1.0.0/docs/adr/0003-definition-of-1-0.md +42 -0
  36. engineering_influence-1.0.0/docs/adr/0004-versioning-compatibility-and-deprecation.md +28 -0
  37. engineering_influence-1.0.0/docs/adr/0005-release-flow-and-changelog-fragments.md +42 -0
  38. engineering_influence-1.0.0/docs/adr/0006-onion-layers-and-interfaces.md +126 -0
  39. engineering_influence-1.0.0/docs/adr/0007-model-transport-plain-httpx.md +33 -0
  40. engineering_influence-1.0.0/docs/adr/0008-tools-for-the-model.md +300 -0
  41. engineering_influence-1.0.0/docs/adr/0009-branch-driven-publishing.md +55 -0
  42. engineering_influence-1.0.0/docs/adr/0010-chapters-are-drafted-in-order-in-one-stage.md +181 -0
  43. engineering_influence-1.0.0/docs/adr/0011-run-inputs.md +51 -0
  44. engineering_influence-1.0.0/pyproject.toml +173 -0
  45. engineering_influence-1.0.0/src/engineering_influence/__init__.py +4 -0
  46. engineering_influence-1.0.0/src/engineering_influence/__main__.py +6 -0
  47. engineering_influence-1.0.0/src/engineering_influence/contracts/__init__.py +8 -0
  48. engineering_influence-1.0.0/src/engineering_influence/contracts/book_config/__init__.py +2 -0
  49. engineering_influence-1.0.0/src/engineering_influence/contracts/book_config/interfaces/__init__.py +2 -0
  50. engineering_influence-1.0.0/src/engineering_influence/contracts/book_config/v1/__init__.py +2 -0
  51. engineering_influence-1.0.0/src/engineering_influence/contracts/book_config/v1/book_config_entry_v1.py +27 -0
  52. engineering_influence-1.0.0/src/engineering_influence/contracts/book_config/v1/book_config_part_v1.py +22 -0
  53. engineering_influence-1.0.0/src/engineering_influence/contracts/book_config/v1/book_config_v1.py +39 -0
  54. engineering_influence-1.0.0/src/engineering_influence/contracts/book_config/v1/interfaces/__init__.py +2 -0
  55. engineering_influence-1.0.0/src/engineering_influence/contracts/book_config/v1/interfaces/book_config_entry_v1_interface.py +10 -0
  56. engineering_influence-1.0.0/src/engineering_influence/contracts/book_config/v1/interfaces/book_config_part_v1_interface.py +10 -0
  57. engineering_influence-1.0.0/src/engineering_influence/contracts/book_config/v1/interfaces/book_config_v1_interface.py +10 -0
  58. engineering_influence-1.0.0/src/engineering_influence/contracts/brief/__init__.py +2 -0
  59. engineering_influence-1.0.0/src/engineering_influence/contracts/brief/interfaces/__init__.py +2 -0
  60. engineering_influence-1.0.0/src/engineering_influence/contracts/brief/v1/__init__.py +2 -0
  61. engineering_influence-1.0.0/src/engineering_influence/contracts/brief/v1/book_brief_v1.py +62 -0
  62. engineering_influence-1.0.0/src/engineering_influence/contracts/brief/v1/interfaces/__init__.py +2 -0
  63. engineering_influence-1.0.0/src/engineering_influence/contracts/brief/v1/interfaces/book_brief_v1_interface.py +20 -0
  64. engineering_influence-1.0.0/src/engineering_influence/contracts/brief/v1/interfaces/run_input_v1_interface.py +10 -0
  65. engineering_influence-1.0.0/src/engineering_influence/contracts/brief/v1/run_input_v1.py +30 -0
  66. engineering_influence-1.0.0/src/engineering_influence/contracts/health_status.py +16 -0
  67. engineering_influence-1.0.0/src/engineering_influence/contracts/interfaces/health_status_interface.py +10 -0
  68. engineering_influence-1.0.0/src/engineering_influence/contracts/interfaces/job_message_interface.py +21 -0
  69. engineering_influence-1.0.0/src/engineering_influence/contracts/interfaces/job_outcome_interface.py +17 -0
  70. engineering_influence-1.0.0/src/engineering_influence/contracts/interfaces/pipeline_request_interface.py +10 -0
  71. engineering_influence-1.0.0/src/engineering_influence/contracts/interfaces/pipeline_response_interface.py +10 -0
  72. engineering_influence-1.0.0/src/engineering_influence/contracts/interfaces/project_request_interface.py +10 -0
  73. engineering_influence-1.0.0/src/engineering_influence/contracts/interfaces/readiness_report_interface.py +10 -0
  74. engineering_influence-1.0.0/src/engineering_influence/contracts/interfaces/security_verdict_interface.py +26 -0
  75. engineering_influence-1.0.0/src/engineering_influence/contracts/job_message.py +28 -0
  76. engineering_influence-1.0.0/src/engineering_influence/contracts/job_outcome.py +20 -0
  77. engineering_influence-1.0.0/src/engineering_influence/contracts/pipeline_request.py +16 -0
  78. engineering_influence-1.0.0/src/engineering_influence/contracts/pipeline_response.py +17 -0
  79. engineering_influence-1.0.0/src/engineering_influence/contracts/project_request.py +30 -0
  80. engineering_influence-1.0.0/src/engineering_influence/contracts/readiness_report.py +18 -0
  81. engineering_influence-1.0.0/src/engineering_influence/contracts/run/__init__.py +2 -0
  82. engineering_influence-1.0.0/src/engineering_influence/contracts/run/interfaces/__init__.py +2 -0
  83. engineering_influence-1.0.0/src/engineering_influence/contracts/run/v1/__init__.py +2 -0
  84. engineering_influence-1.0.0/src/engineering_influence/contracts/run/v1/interfaces/__init__.py +2 -0
  85. engineering_influence-1.0.0/src/engineering_influence/contracts/run/v1/interfaces/run_budget_v1_interface.py +10 -0
  86. engineering_influence-1.0.0/src/engineering_influence/contracts/run/v1/interfaces/run_grant_v1_interface.py +10 -0
  87. engineering_influence-1.0.0/src/engineering_influence/contracts/run/v1/interfaces/run_issue_v1_interface.py +10 -0
  88. engineering_influence-1.0.0/src/engineering_influence/contracts/run/v1/interfaces/run_summary_v1_interface.py +22 -0
  89. engineering_influence-1.0.0/src/engineering_influence/contracts/run/v1/run_budget_v1.py +19 -0
  90. engineering_influence-1.0.0/src/engineering_influence/contracts/run/v1/run_grant_v1.py +19 -0
  91. engineering_influence-1.0.0/src/engineering_influence/contracts/run/v1/run_issue_v1.py +19 -0
  92. engineering_influence-1.0.0/src/engineering_influence/contracts/run/v1/run_summary_v1.py +67 -0
  93. engineering_influence-1.0.0/src/engineering_influence/contracts/security_verdict.py +27 -0
  94. engineering_influence-1.0.0/src/engineering_influence/contracts/webhook/__init__.py +2 -0
  95. engineering_influence-1.0.0/src/engineering_influence/contracts/webhook/v1/__init__.py +2 -0
  96. engineering_influence-1.0.0/src/engineering_influence/contracts/webhook/v1/interfaces/__init__.py +2 -0
  97. engineering_influence-1.0.0/src/engineering_influence/contracts/webhook/v1/interfaces/webhook_event_v1_interface.py +10 -0
  98. engineering_influence-1.0.0/src/engineering_influence/contracts/webhook/v1/webhook_event_v1.py +46 -0
  99. engineering_influence-1.0.0/src/engineering_influence/controllers/__init__.py +6 -0
  100. engineering_influence-1.0.0/src/engineering_influence/controllers/interfaces/__init__.py +8 -0
  101. engineering_influence-1.0.0/src/engineering_influence/controllers/interfaces/project_controller_interface.py +21 -0
  102. engineering_influence-1.0.0/src/engineering_influence/controllers/interfaces/publishing_controller_interface.py +69 -0
  103. engineering_influence-1.0.0/src/engineering_influence/controllers/interfaces/run_controller_interface.py +24 -0
  104. engineering_influence-1.0.0/src/engineering_influence/controllers/project_controller.py +32 -0
  105. engineering_influence-1.0.0/src/engineering_influence/controllers/publishing_controller.py +182 -0
  106. engineering_influence-1.0.0/src/engineering_influence/controllers/run_controller.py +24 -0
  107. engineering_influence-1.0.0/src/engineering_influence/covers/__init__.py +49 -0
  108. engineering_influence-1.0.0/src/engineering_influence/errors/__init__.py +6 -0
  109. engineering_influence-1.0.0/src/engineering_influence/errors/application_error.py +40 -0
  110. engineering_influence-1.0.0/src/engineering_influence/errors/artifact_conflict_error.py +14 -0
  111. engineering_influence-1.0.0/src/engineering_influence/errors/budget_exceeded_error.py +13 -0
  112. engineering_influence-1.0.0/src/engineering_influence/errors/capacity_exhausted_error.py +10 -0
  113. engineering_influence-1.0.0/src/engineering_influence/errors/interfaces/application_error_interface.py +10 -0
  114. engineering_influence-1.0.0/src/engineering_influence/errors/interfaces/artifact_conflict_error_interface.py +10 -0
  115. engineering_influence-1.0.0/src/engineering_influence/errors/interfaces/budget_exceeded_error_interface.py +10 -0
  116. engineering_influence-1.0.0/src/engineering_influence/errors/interfaces/capacity_exhausted_error_interface.py +10 -0
  117. engineering_influence-1.0.0/src/engineering_influence/errors/interfaces/spend_consent_needed_error_interface.py +10 -0
  118. engineering_influence-1.0.0/src/engineering_influence/errors/interfaces/transient_stage_error_interface.py +10 -0
  119. engineering_influence-1.0.0/src/engineering_influence/errors/spend_consent_needed_error.py +21 -0
  120. engineering_influence-1.0.0/src/engineering_influence/errors/transient_stage_error.py +10 -0
  121. engineering_influence-1.0.0/src/engineering_influence/errors/typesetting/__init__.py +2 -0
  122. engineering_influence-1.0.0/src/engineering_influence/errors/typesetting/back_cover_text_too_long_error.py +26 -0
  123. engineering_influence-1.0.0/src/engineering_influence/errors/typesetting/book_build_error.py +10 -0
  124. engineering_influence-1.0.0/src/engineering_influence/errors/typesetting/interfaces/__init__.py +2 -0
  125. engineering_influence-1.0.0/src/engineering_influence/errors/typesetting/interfaces/back_cover_text_too_long_error_interface.py +10 -0
  126. engineering_influence-1.0.0/src/engineering_influence/errors/typesetting/interfaces/book_build_error_interface.py +10 -0
  127. engineering_influence-1.0.0/src/engineering_influence/errors/typesetting/interfaces/manuscript_error_interface.py +10 -0
  128. engineering_influence-1.0.0/src/engineering_influence/errors/typesetting/manuscript_error.py +10 -0
  129. engineering_influence-1.0.0/src/engineering_influence/infrastructure/__init__.py +8 -0
  130. engineering_influence-1.0.0/src/engineering_influence/infrastructure/audit/__init__.py +1 -0
  131. engineering_influence-1.0.0/src/engineering_influence/infrastructure/audit/interfaces/__init__.py +1 -0
  132. engineering_influence-1.0.0/src/engineering_influence/infrastructure/audit/publication_findings.py +34 -0
  133. engineering_influence-1.0.0/src/engineering_influence/infrastructure/audit/temp_project_manuscript_auditor.py +49 -0
  134. engineering_influence-1.0.0/src/engineering_influence/infrastructure/author/__init__.py +1 -0
  135. engineering_influence-1.0.0/src/engineering_influence/infrastructure/author/interfaces/__init__.py +1 -0
  136. engineering_influence-1.0.0/src/engineering_influence/infrastructure/author/toml_author_profile_loader.py +94 -0
  137. engineering_influence-1.0.0/src/engineering_influence/infrastructure/book_build/__init__.py +1 -0
  138. engineering_influence-1.0.0/src/engineering_influence/infrastructure/book_build/interfaces/__init__.py +1 -0
  139. engineering_influence-1.0.0/src/engineering_influence/infrastructure/book_build/temp_project_manuscript_builder.py +93 -0
  140. engineering_influence-1.0.0/src/engineering_influence/infrastructure/cassettes/__init__.py +2 -0
  141. engineering_influence-1.0.0/src/engineering_influence/infrastructure/cassettes/cassette_recording_transport.py +84 -0
  142. engineering_influence-1.0.0/src/engineering_influence/infrastructure/cassettes/cassette_redactor.py +57 -0
  143. engineering_influence-1.0.0/src/engineering_influence/infrastructure/cassettes/cassette_replay_transport.py +76 -0
  144. engineering_influence-1.0.0/src/engineering_influence/infrastructure/cassettes/interfaces/__init__.py +2 -0
  145. engineering_influence-1.0.0/src/engineering_influence/infrastructure/cassettes/json_cassette_store.py +129 -0
  146. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/__init__.py +2 -0
  147. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/back_typesetter.py +150 -0
  148. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/box_blur.py +32 -0
  149. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/compositing.py +40 -0
  150. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/cover_builder.py +177 -0
  151. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/cover_files.py +91 -0
  152. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/cover_plugin_loader.py +58 -0
  153. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/cover_renderer.py +61 -0
  154. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/ebook_border.py +34 -0
  155. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/ebook_cover_verifier.py +82 -0
  156. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/film_grain.py +19 -0
  157. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/font_loader.py +29 -0
  158. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/front_typesetter.py +77 -0
  159. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/gradient_painter.py +37 -0
  160. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/image_verifier.py +32 -0
  161. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/ink.py +56 -0
  162. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/__init__.py +2 -0
  163. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/back_typesetter_interface.py +27 -0
  164. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/box_blur_interface.py +22 -0
  165. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/compositing_interface.py +40 -0
  166. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/cover_files_interface.py +38 -0
  167. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/cover_plugin_loader_interface.py +29 -0
  168. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/cover_renderer_interface.py +25 -0
  169. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/ebook_border_interface.py +24 -0
  170. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/ebook_cover_verifier_interface.py +20 -0
  171. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/film_grain_interface.py +23 -0
  172. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/font_loader_interface.py +20 -0
  173. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/front_typesetter_interface.py +27 -0
  174. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/image_verifier_interface.py +20 -0
  175. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/ink_interface.py +42 -0
  176. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/interior_page_count_interface.py +20 -0
  177. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/painter_registry_interface.py +24 -0
  178. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/print_pdf_verifier_interface.py +20 -0
  179. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/quiet_zone_interface.py +24 -0
  180. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/soft_rect_interface.py +22 -0
  181. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/spine_typesetter_interface.py +27 -0
  182. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/starfield_interface.py +31 -0
  183. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/text_placement_check_interface.py +22 -0
  184. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/typography_interface.py +66 -0
  185. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interfaces/value_noise_interface.py +35 -0
  186. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/interior_page_count.py +21 -0
  187. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/painter_registry.py +27 -0
  188. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/print_pdf_verifier.py +69 -0
  189. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/quiet_zone.py +33 -0
  190. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/soft_rect.py +23 -0
  191. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/spine_typesetter.py +67 -0
  192. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/starfield.py +43 -0
  193. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/text_placement_check.py +40 -0
  194. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/typography.py +99 -0
  195. engineering_influence-1.0.0/src/engineering_influence/infrastructure/covers/value_noise.py +44 -0
  196. engineering_influence-1.0.0/src/engineering_influence/infrastructure/deterministic_runner.py +16 -0
  197. engineering_influence-1.0.0/src/engineering_influence/infrastructure/deterministic_stage_executor.py +43 -0
  198. engineering_influence-1.0.0/src/engineering_influence/infrastructure/epub/__init__.py +2 -0
  199. engineering_influence-1.0.0/src/engineering_influence/infrastructure/epub/cover_image.py +35 -0
  200. engineering_influence-1.0.0/src/engineering_influence/infrastructure/epub/epub_archive.py +47 -0
  201. engineering_influence-1.0.0/src/engineering_influence/infrastructure/epub/epub_cover_inspector.py +42 -0
  202. engineering_influence-1.0.0/src/engineering_influence/infrastructure/epub/epubcheck_runner.py +66 -0
  203. engineering_influence-1.0.0/src/engineering_influence/infrastructure/epub/interfaces/__init__.py +2 -0
  204. engineering_influence-1.0.0/src/engineering_influence/infrastructure/epub/tex4ebook_compiler.py +38 -0
  205. engineering_influence-1.0.0/src/engineering_influence/infrastructure/epub/zip_epub_package.py +31 -0
  206. engineering_influence-1.0.0/src/engineering_influence/infrastructure/evaluation/__init__.py +2 -0
  207. engineering_influence-1.0.0/src/engineering_influence/infrastructure/evaluation/interfaces/__init__.py +2 -0
  208. engineering_influence-1.0.0/src/engineering_influence/infrastructure/evaluation/toml_evaluation_files.py +131 -0
  209. engineering_influence-1.0.0/src/engineering_influence/infrastructure/export/__init__.py +1 -0
  210. engineering_influence-1.0.0/src/engineering_influence/infrastructure/export/directory_project_files_writer.py +58 -0
  211. engineering_influence-1.0.0/src/engineering_influence/infrastructure/export/interfaces/__init__.py +1 -0
  212. engineering_influence-1.0.0/src/engineering_influence/infrastructure/file_artifact_store.py +52 -0
  213. engineering_influence-1.0.0/src/engineering_influence/infrastructure/in_memory_acp_session_store.py +18 -0
  214. engineering_influence-1.0.0/src/engineering_influence/infrastructure/in_memory_artifact_store.py +30 -0
  215. engineering_influence-1.0.0/src/engineering_influence/infrastructure/in_memory_journal.py +28 -0
  216. engineering_influence-1.0.0/src/engineering_influence/infrastructure/in_memory_ledger.py +14 -0
  217. engineering_influence-1.0.0/src/engineering_influence/infrastructure/in_memory_queue.py +15 -0
  218. engineering_influence-1.0.0/src/engineering_influence/infrastructure/in_memory_run_repository.py +29 -0
  219. engineering_influence-1.0.0/src/engineering_influence/infrastructure/interfaces/job_message_handler_interface.py +20 -0
  220. engineering_influence-1.0.0/src/engineering_influence/infrastructure/interfaces/rabbitmq_job_consumer_interface.py +20 -0
  221. engineering_influence-1.0.0/src/engineering_influence/infrastructure/interfaces/rabbitmq_topology_interface.py +20 -0
  222. engineering_influence-1.0.0/src/engineering_influence/infrastructure/job_message_handler.py +77 -0
  223. engineering_influence-1.0.0/src/engineering_influence/infrastructure/migrations/env.py +14 -0
  224. engineering_influence-1.0.0/src/engineering_influence/infrastructure/migrations/versions/0001_baseline.py +100 -0
  225. engineering_influence-1.0.0/src/engineering_influence/infrastructure/migrations/versions/0002_acp_sessions.py +28 -0
  226. engineering_influence-1.0.0/src/engineering_influence/infrastructure/models/__init__.py +2 -0
  227. engineering_influence-1.0.0/src/engineering_influence/infrastructure/models/anthropic_model.py +212 -0
  228. engineering_influence-1.0.0/src/engineering_influence/infrastructure/models/http_model_probe.py +68 -0
  229. engineering_influence-1.0.0/src/engineering_influence/infrastructure/models/http_ollama_server.py +63 -0
  230. engineering_influence-1.0.0/src/engineering_influence/infrastructure/models/interfaces/__init__.py +2 -0
  231. engineering_influence-1.0.0/src/engineering_influence/infrastructure/models/model_reply.py +31 -0
  232. engineering_influence-1.0.0/src/engineering_influence/infrastructure/models/openai_compatible_model.py +220 -0
  233. engineering_influence-1.0.0/src/engineering_influence/infrastructure/models/toml_model_catalog_loader.py +75 -0
  234. engineering_influence-1.0.0/src/engineering_influence/infrastructure/models/toml_model_profile_loader.py +78 -0
  235. engineering_influence-1.0.0/src/engineering_influence/infrastructure/non_empty_artifact_gate.py +17 -0
  236. engineering_influence-1.0.0/src/engineering_influence/infrastructure/observability/__init__.py +2 -0
  237. engineering_influence-1.0.0/src/engineering_influence/infrastructure/observability/bootstrap_alert_dispatcher.py +41 -0
  238. engineering_influence-1.0.0/src/engineering_influence/infrastructure/observability/bootstrap_metrics.py +30 -0
  239. engineering_influence-1.0.0/src/engineering_influence/infrastructure/observability/context_var_correlation.py +20 -0
  240. engineering_influence-1.0.0/src/engineering_influence/infrastructure/observability/correlated_phase_handler.py +21 -0
  241. engineering_influence-1.0.0/src/engineering_influence/infrastructure/observability/correlating_queue.py +25 -0
  242. engineering_influence-1.0.0/src/engineering_influence/infrastructure/observability/interfaces/json_logging_configurator_interface.py +14 -0
  243. engineering_influence-1.0.0/src/engineering_influence/infrastructure/observability/interfaces/process_crash_hooks_interface.py +14 -0
  244. engineering_influence-1.0.0/src/engineering_influence/infrastructure/observability/interfaces/worker_heartbeat_interface.py +26 -0
  245. engineering_influence-1.0.0/src/engineering_influence/infrastructure/observability/json_logging_configurator.py +46 -0
  246. engineering_influence-1.0.0/src/engineering_influence/infrastructure/observability/process_crash_hooks.py +28 -0
  247. engineering_influence-1.0.0/src/engineering_influence/infrastructure/observability/tcp_health_check.py +30 -0
  248. engineering_influence-1.0.0/src/engineering_influence/infrastructure/observability/toolchain_health_check.py +36 -0
  249. engineering_influence-1.0.0/src/engineering_influence/infrastructure/observability/traced_dispatch_outbox.py +20 -0
  250. engineering_influence-1.0.0/src/engineering_influence/infrastructure/observability/traced_run_phase.py +30 -0
  251. engineering_influence-1.0.0/src/engineering_influence/infrastructure/observability/traced_start_pipeline.py +21 -0
  252. engineering_influence-1.0.0/src/engineering_influence/infrastructure/observability/worker_heartbeat.py +103 -0
  253. engineering_influence-1.0.0/src/engineering_influence/infrastructure/plugins/__init__.py +2 -0
  254. engineering_influence-1.0.0/src/engineering_influence/infrastructure/plugins/directory_plugin_folder_reader.py +103 -0
  255. engineering_influence-1.0.0/src/engineering_influence/infrastructure/plugins/http_bundle_fetcher.py +127 -0
  256. engineering_influence-1.0.0/src/engineering_influence/infrastructure/plugins/interfaces/__init__.py +2 -0
  257. engineering_influence-1.0.0/src/engineering_influence/infrastructure/plugins/json_marketplace_parser.py +92 -0
  258. engineering_influence-1.0.0/src/engineering_influence/infrastructure/plugins/lazy_bundle_fetcher.py +35 -0
  259. engineering_influence-1.0.0/src/engineering_influence/infrastructure/plugins/toml_plugin_index_parser.py +77 -0
  260. engineering_influence-1.0.0/src/engineering_influence/infrastructure/plugins/toml_plugin_lock_store.py +104 -0
  261. engineering_influence-1.0.0/src/engineering_influence/infrastructure/plugins/toml_plugin_parser.py +105 -0
  262. engineering_influence-1.0.0/src/engineering_influence/infrastructure/plugins/toml_plugin_writer.py +41 -0
  263. engineering_influence-1.0.0/src/engineering_influence/infrastructure/process/__init__.py +2 -0
  264. engineering_influence-1.0.0/src/engineering_influence/infrastructure/process/interfaces/__init__.py +2 -0
  265. engineering_influence-1.0.0/src/engineering_influence/infrastructure/process/interfaces/process_meter_interface.py +24 -0
  266. engineering_influence-1.0.0/src/engineering_influence/infrastructure/process/interfaces/process_runner_interface.py +35 -0
  267. engineering_influence-1.0.0/src/engineering_influence/infrastructure/process/process_meter.py +80 -0
  268. engineering_influence-1.0.0/src/engineering_influence/infrastructure/process/process_runner.py +154 -0
  269. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/__init__.py +2 -0
  270. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/interfaces/__init__.py +2 -0
  271. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/context_pack.toml +20 -0
  272. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/eval_judge.toml +15 -0
  273. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/novel_beats.toml +20 -0
  274. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/novel_brief.toml +28 -0
  275. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/novel_context_pack.toml +20 -0
  276. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/novel_metadata.toml +18 -0
  277. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/novel_outline.toml +23 -0
  278. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/novel_story_bible.toml +15 -0
  279. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/novel_summary.toml +11 -0
  280. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/skill_guidance.toml +14 -0
  281. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/stage_brief.toml +26 -0
  282. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/stage_copy_edit.toml +13 -0
  283. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/stage_metadata.toml +18 -0
  284. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/stage_outline.toml +21 -0
  285. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/stage_positioning.toml +11 -0
  286. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/stage_research.toml +19 -0
  287. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/stage_revise_lines.toml +18 -0
  288. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/stage_revise_structure.toml +24 -0
  289. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/templates/stage_summary.toml +11 -0
  290. engineering_influence-1.0.0/src/engineering_influence/infrastructure/prompt_library/toml_prompt_library.py +70 -0
  291. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/__init__.py +2 -0
  292. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/assets/fine-book-hardcover.cls +63 -0
  293. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/assets/fine-book.cls +328 -0
  294. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/assets/fine-ebook.cfg +52 -0
  295. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/assets/fine-ebook.css +86 -0
  296. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/assets/fine-ebook.sty +74 -0
  297. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/assets/fonts/DejaVuSerif.ttf +0 -0
  298. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/assets/fonts/EBGaramond-Initials.otf +0 -0
  299. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/assets/fonts/EBGaramond-Italic.otf +0 -0
  300. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/assets/fonts/EBGaramond-Medium.otf +0 -0
  301. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/assets/fonts/EBGaramond-Regular.otf +0 -0
  302. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/assets/fonts/EBGaramond-SemiBold.otf +0 -0
  303. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/assets/fonts/EBGaramond-SemiBoldItalic.otf +0 -0
  304. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/assets/fonts/LICENSE-DejaVu.txt +99 -0
  305. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/assets/fonts/LibertinusSerif-Regular.otf +0 -0
  306. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/assets/fonts/OFL-EBGaramond.txt +93 -0
  307. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/assets/fonts/OFL-Libertinus.txt +94 -0
  308. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/assets/fonts/README.md +21 -0
  309. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/directory_publisher.py +37 -0
  310. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/filesystem_manuscript_source.py +22 -0
  311. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/interfaces/__init__.py +2 -0
  312. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/package_assets.py +28 -0
  313. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/pypdf_pdf_inspector.py +88 -0
  314. engineering_influence-1.0.0/src/engineering_influence/infrastructure/publishing/system_clock.py +14 -0
  315. engineering_influence-1.0.0/src/engineering_influence/infrastructure/qa/__init__.py +2 -0
  316. engineering_influence-1.0.0/src/engineering_influence/infrastructure/qa/blank_page_detector.py +23 -0
  317. engineering_influence-1.0.0/src/engineering_influence/infrastructure/qa/contact_sheet_builder.py +64 -0
  318. engineering_influence-1.0.0/src/engineering_influence/infrastructure/qa/interfaces/__init__.py +2 -0
  319. engineering_influence-1.0.0/src/engineering_influence/infrastructure/qa/interfaces/blank_page_detector_interface.py +20 -0
  320. engineering_influence-1.0.0/src/engineering_influence/infrastructure/qa/interfaces/contact_sheet_builder_interface.py +24 -0
  321. engineering_influence-1.0.0/src/engineering_influence/infrastructure/qa/interfaces/page_rasterizer_interface.py +28 -0
  322. engineering_influence-1.0.0/src/engineering_influence/infrastructure/qa/page_rasterizer.py +90 -0
  323. engineering_influence-1.0.0/src/engineering_influence/infrastructure/qa/render_qa.py +63 -0
  324. engineering_influence-1.0.0/src/engineering_influence/infrastructure/rabbitmq_job_consumer.py +79 -0
  325. engineering_influence-1.0.0/src/engineering_influence/infrastructure/rabbitmq_queue.py +45 -0
  326. engineering_influence-1.0.0/src/engineering_influence/infrastructure/rabbitmq_topology.py +35 -0
  327. engineering_influence-1.0.0/src/engineering_influence/infrastructure/release/__init__.py +2 -0
  328. engineering_influence-1.0.0/src/engineering_influence/infrastructure/release/epub_zip_check.py +29 -0
  329. engineering_influence-1.0.0/src/engineering_influence/infrastructure/release/git_state.py +38 -0
  330. engineering_influence-1.0.0/src/engineering_influence/infrastructure/release/interfaces/__init__.py +2 -0
  331. engineering_influence-1.0.0/src/engineering_influence/infrastructure/release/tool_versions.py +39 -0
  332. engineering_influence-1.0.0/src/engineering_influence/infrastructure/research/__init__.py +2 -0
  333. engineering_influence-1.0.0/src/engineering_influence/infrastructure/research/brave_search_provider.py +86 -0
  334. engineering_influence-1.0.0/src/engineering_influence/infrastructure/research/html_collector.py +101 -0
  335. engineering_influence-1.0.0/src/engineering_influence/infrastructure/research/html_text_extractor.py +47 -0
  336. engineering_influence-1.0.0/src/engineering_influence/infrastructure/research/http_source_fetcher.py +166 -0
  337. engineering_influence-1.0.0/src/engineering_influence/infrastructure/research/interfaces/__init__.py +2 -0
  338. engineering_influence-1.0.0/src/engineering_influence/infrastructure/research/interfaces/html_collector_interface.py +16 -0
  339. engineering_influence-1.0.0/src/engineering_influence/infrastructure/research/search_results.py +48 -0
  340. engineering_influence-1.0.0/src/engineering_influence/infrastructure/research/searxng_search_provider.py +84 -0
  341. engineering_influence-1.0.0/src/engineering_influence/infrastructure/run_inputs/__init__.py +2 -0
  342. engineering_influence-1.0.0/src/engineering_influence/infrastructure/run_inputs/file_run_input_reader.py +51 -0
  343. engineering_influence-1.0.0/src/engineering_influence/infrastructure/run_inputs/interfaces/__init__.py +2 -0
  344. engineering_influence-1.0.0/src/engineering_influence/infrastructure/schema_migrator.py +64 -0
  345. engineering_influence-1.0.0/src/engineering_influence/infrastructure/scratch_project.py +20 -0
  346. engineering_influence-1.0.0/src/engineering_influence/infrastructure/security/__init__.py +2 -0
  347. engineering_influence-1.0.0/src/engineering_influence/infrastructure/security/attachment_upload_inspector.py +55 -0
  348. engineering_influence-1.0.0/src/engineering_influence/infrastructure/security/confined_path_guard.py +33 -0
  349. engineering_influence-1.0.0/src/engineering_influence/infrastructure/security/constant_time_api_key_verifier.py +44 -0
  350. engineering_influence-1.0.0/src/engineering_influence/infrastructure/security/env_secret_provider.py +22 -0
  351. engineering_influence-1.0.0/src/engineering_influence/infrastructure/security/interfaces/__init__.py +2 -0
  352. engineering_influence-1.0.0/src/engineering_influence/infrastructure/security/public_https_url_pinner.py +105 -0
  353. engineering_influence-1.0.0/src/engineering_influence/infrastructure/security/public_https_url_policy.py +56 -0
  354. engineering_influence-1.0.0/src/engineering_influence/infrastructure/security/token_bucket_rate_limiter.py +34 -0
  355. engineering_influence-1.0.0/src/engineering_influence/infrastructure/skills/__init__.py +2 -0
  356. engineering_influence-1.0.0/src/engineering_influence/infrastructure/skills/directory_skill_files.py +74 -0
  357. engineering_influence-1.0.0/src/engineering_influence/infrastructure/skills/file_skill_source.py +34 -0
  358. engineering_influence-1.0.0/src/engineering_influence/infrastructure/skills/interfaces/__init__.py +2 -0
  359. engineering_influence-1.0.0/src/engineering_influence/infrastructure/skills/new_file_skill_sink.py +27 -0
  360. engineering_influence-1.0.0/src/engineering_influence/infrastructure/skills/toml_skill_lock_store.py +101 -0
  361. engineering_influence-1.0.0/src/engineering_influence/infrastructure/skills/toml_skill_parser.py +68 -0
  362. engineering_influence-1.0.0/src/engineering_influence/infrastructure/skills/toml_skill_writer.py +40 -0
  363. engineering_influence-1.0.0/src/engineering_influence/infrastructure/toml_lock_file.py +75 -0
  364. engineering_influence-1.0.0/src/engineering_influence/infrastructure/tools/__init__.py +2 -0
  365. engineering_influence-1.0.0/src/engineering_influence/infrastructure/tools/http_mcp_transport.py +277 -0
  366. engineering_influence-1.0.0/src/engineering_influence/infrastructure/tools/http_mcp_transport_factory.py +83 -0
  367. engineering_influence-1.0.0/src/engineering_influence/infrastructure/tools/interfaces/__init__.py +2 -0
  368. engineering_influence-1.0.0/src/engineering_influence/infrastructure/tools/interfaces/server_environment_interface.py +17 -0
  369. engineering_influence-1.0.0/src/engineering_influence/infrastructure/tools/interfaces/sse_event_reader_interface.py +17 -0
  370. engineering_influence-1.0.0/src/engineering_influence/infrastructure/tools/lazy_remote_transport_factory.py +38 -0
  371. engineering_influence-1.0.0/src/engineering_influence/infrastructure/tools/path_executable_finder.py +21 -0
  372. engineering_influence-1.0.0/src/engineering_influence/infrastructure/tools/server_environment.py +53 -0
  373. engineering_influence-1.0.0/src/engineering_influence/infrastructure/tools/sha256_file_hasher.py +32 -0
  374. engineering_influence-1.0.0/src/engineering_influence/infrastructure/tools/sse_event_reader.py +58 -0
  375. engineering_influence-1.0.0/src/engineering_influence/infrastructure/tools/stdio_mcp_transport.py +245 -0
  376. engineering_influence-1.0.0/src/engineering_influence/infrastructure/tools/stdio_mcp_transport_factory.py +51 -0
  377. engineering_influence-1.0.0/src/engineering_influence/infrastructure/tools/toml_tool_lock_store.py +145 -0
  378. engineering_influence-1.0.0/src/engineering_influence/infrastructure/typesetting/__init__.py +2 -0
  379. engineering_influence-1.0.0/src/engineering_influence/infrastructure/typesetting/filesystem_build_workspace.py +46 -0
  380. engineering_influence-1.0.0/src/engineering_influence/infrastructure/typesetting/interfaces/__init__.py +2 -0
  381. engineering_influence-1.0.0/src/engineering_influence/infrastructure/typesetting/interfaces/tool_environment_interface.py +14 -0
  382. engineering_influence-1.0.0/src/engineering_influence/infrastructure/typesetting/latex_compiler.py +51 -0
  383. engineering_influence-1.0.0/src/engineering_influence/infrastructure/typesetting/tool_environment.py +47 -0
  384. engineering_influence-1.0.0/src/engineering_influence/infrastructure/vibey_dispatcher.py +32 -0
  385. engineering_influence-1.0.0/src/engineering_influence/infrastructure/vibey_phase_handler.py +42 -0
  386. engineering_influence-1.0.0/src/engineering_influence/infrastructure/vibey_workflow.py +45 -0
  387. engineering_influence-1.0.0/src/engineering_influence/infrastructure/webhooks/__init__.py +7 -0
  388. engineering_influence-1.0.0/src/engineering_influence/infrastructure/webhooks/delivery.py +73 -0
  389. engineering_influence-1.0.0/src/engineering_influence/infrastructure/webhooks/interfaces/__init__.py +2 -0
  390. engineering_influence-1.0.0/src/engineering_influence/infrastructure/webhooks/signer.py +34 -0
  391. engineering_influence-1.0.0/src/engineering_influence/interactions/__init__.py +2 -0
  392. engineering_influence-1.0.0/src/engineering_influence/interactions/acp/__init__.py +6 -0
  393. engineering_influence-1.0.0/src/engineering_influence/interactions/acp/application.py +389 -0
  394. engineering_influence-1.0.0/src/engineering_influence/interactions/acp/interfaces/application_interface.py +32 -0
  395. engineering_influence-1.0.0/src/engineering_influence/interactions/api/__init__.py +6 -0
  396. engineering_influence-1.0.0/src/engineering_influence/interactions/api/api_guard.py +50 -0
  397. engineering_influence-1.0.0/src/engineering_influence/interactions/api/api_observability.py +22 -0
  398. engineering_influence-1.0.0/src/engineering_influence/interactions/api/application.py +238 -0
  399. engineering_influence-1.0.0/src/engineering_influence/interactions/api/interfaces/api_guard_interface.py +10 -0
  400. engineering_influence-1.0.0/src/engineering_influence/interactions/api/interfaces/api_observability_interface.py +10 -0
  401. engineering_influence-1.0.0/src/engineering_influence/interactions/api/interfaces/application_interface.py +20 -0
  402. engineering_influence-1.0.0/src/engineering_influence/interactions/api/interfaces/prometheus_renderer_interface.py +25 -0
  403. engineering_influence-1.0.0/src/engineering_influence/interactions/api/interfaces/request_context_middleware_interface.py +10 -0
  404. engineering_influence-1.0.0/src/engineering_influence/interactions/api/prometheus_renderer.py +60 -0
  405. engineering_influence-1.0.0/src/engineering_influence/interactions/api/request_context_middleware.py +75 -0
  406. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/__init__.py +2 -0
  407. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/acp_cli.py +52 -0
  408. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/book_cli.py +416 -0
  409. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/cli_application.py +137 -0
  410. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/db_cli.py +55 -0
  411. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/doctor_cli.py +219 -0
  412. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/evaluate_cli.py +136 -0
  413. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/interfaces/__init__.py +2 -0
  414. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/interfaces/acp_cli_interface.py +19 -0
  415. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/interfaces/book_cli_interface.py +19 -0
  416. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/interfaces/cli_application_interface.py +19 -0
  417. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/interfaces/db_cli_interface.py +19 -0
  418. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/interfaces/doctor_cli_interface.py +19 -0
  419. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/interfaces/evaluate_cli_interface.py +19 -0
  420. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/interfaces/plugins_cli_interface.py +19 -0
  421. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/interfaces/run_cli_interface.py +19 -0
  422. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/interfaces/serve_cli_interface.py +19 -0
  423. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/interfaces/skills_cli_interface.py +19 -0
  424. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/interfaces/tools_cli_interface.py +19 -0
  425. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/plugins_cli.py +363 -0
  426. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/run_cli.py +174 -0
  427. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/serve_cli.py +43 -0
  428. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/skills_cli.py +256 -0
  429. engineering_influence-1.0.0/src/engineering_influence/interactions/cli/tools_cli.py +258 -0
  430. engineering_influence-1.0.0/src/engineering_influence/interactions/mcp/__init__.py +6 -0
  431. engineering_influence-1.0.0/src/engineering_influence/interactions/mcp/application.py +164 -0
  432. engineering_influence-1.0.0/src/engineering_influence/interactions/mcp/interfaces/application_interface.py +24 -0
  433. engineering_influence-1.0.0/src/engineering_influence/interactions/webhooks/__init__.py +8 -0
  434. engineering_influence-1.0.0/src/engineering_influence/interactions/webhooks/interfaces/__init__.py +2 -0
  435. engineering_influence-1.0.0/src/engineering_influence/interactions/webhooks/signed_request_verifier.py +45 -0
  436. engineering_influence-1.0.0/src/engineering_influence/interfaces/__init__.py +24 -0
  437. engineering_influence-1.0.0/src/engineering_influence/interfaces/acp_session_store_interface.py +24 -0
  438. engineering_influence-1.0.0/src/engineering_influence/interfaces/alert_interface.py +16 -0
  439. engineering_influence-1.0.0/src/engineering_influence/interfaces/api_key_verifier_interface.py +14 -0
  440. engineering_influence-1.0.0/src/engineering_influence/interfaces/artifact_inventory_interface.py +21 -0
  441. engineering_influence-1.0.0/src/engineering_influence/interfaces/artifact_store_interface.py +22 -0
  442. engineering_influence-1.0.0/src/engineering_influence/interfaces/author_profile_loader_interface.py +22 -0
  443. engineering_influence-1.0.0/src/engineering_influence/interfaces/book_loader_interface.py +21 -0
  444. engineering_influence-1.0.0/src/engineering_influence/interfaces/book_maker_interface.py +21 -0
  445. engineering_influence-1.0.0/src/engineering_influence/interfaces/book_publisher_interface.py +23 -0
  446. engineering_influence-1.0.0/src/engineering_influence/interfaces/build_workspace_interface.py +35 -0
  447. engineering_influence-1.0.0/src/engineering_influence/interfaces/bundle_fetcher_interface.py +16 -0
  448. engineering_influence-1.0.0/src/engineering_influence/interfaces/cassette_player_interface.py +20 -0
  449. engineering_influence-1.0.0/src/engineering_influence/interfaces/cassette_recorder_interface.py +20 -0
  450. engineering_influence-1.0.0/src/engineering_influence/interfaces/cassette_store_interface.py +24 -0
  451. engineering_influence-1.0.0/src/engineering_influence/interfaces/clock_interface.py +15 -0
  452. engineering_influence-1.0.0/src/engineering_influence/interfaces/correlation_interface.py +19 -0
  453. engineering_influence-1.0.0/src/engineering_influence/interfaces/cover_builder_interface.py +15 -0
  454. engineering_influence-1.0.0/src/engineering_influence/interfaces/cover_builder_provider_interface.py +20 -0
  455. engineering_influence-1.0.0/src/engineering_influence/interfaces/cover_painter_interface.py +27 -0
  456. engineering_influence-1.0.0/src/engineering_influence/interfaces/cover_plugin_interface.py +33 -0
  457. engineering_influence-1.0.0/src/engineering_influence/interfaces/draft_checks_interface.py +23 -0
  458. engineering_influence-1.0.0/src/engineering_influence/interfaces/ebook_cover_interface.py +20 -0
  459. engineering_influence-1.0.0/src/engineering_influence/interfaces/epub_archive_reader_interface.py +21 -0
  460. engineering_influence-1.0.0/src/engineering_influence/interfaces/epub_compiler_interface.py +15 -0
  461. engineering_influence-1.0.0/src/engineering_influence/interfaces/epub_cover_inspector_interface.py +20 -0
  462. engineering_influence-1.0.0/src/engineering_influence/interfaces/epub_package_interface.py +29 -0
  463. engineering_influence-1.0.0/src/engineering_influence/interfaces/epub_verifier_interface.py +21 -0
  464. engineering_influence-1.0.0/src/engineering_influence/interfaces/epub_zip_check_interface.py +15 -0
  465. engineering_influence-1.0.0/src/engineering_influence/interfaces/epubcheck_interface.py +15 -0
  466. engineering_influence-1.0.0/src/engineering_influence/interfaces/evaluation_files_interface.py +31 -0
  467. engineering_influence-1.0.0/src/engineering_influence/interfaces/executable_finder_interface.py +16 -0
  468. engineering_influence-1.0.0/src/engineering_influence/interfaces/file_hasher_interface.py +16 -0
  469. engineering_influence-1.0.0/src/engineering_influence/interfaces/gate_evaluator_interface.py +20 -0
  470. engineering_influence-1.0.0/src/engineering_influence/interfaces/git_state_interface.py +15 -0
  471. engineering_influence-1.0.0/src/engineering_influence/interfaces/handler_registry_interface.py +23 -0
  472. engineering_influence-1.0.0/src/engineering_influence/interfaces/health_check_interface.py +25 -0
  473. engineering_influence-1.0.0/src/engineering_influence/interfaces/journal_interface.py +28 -0
  474. engineering_influence-1.0.0/src/engineering_influence/interfaces/json_report_interface.py +16 -0
  475. engineering_influence-1.0.0/src/engineering_influence/interfaces/latex_compiler_interface.py +15 -0
  476. engineering_influence-1.0.0/src/engineering_influence/interfaces/ledger_interface.py +15 -0
  477. engineering_influence-1.0.0/src/engineering_influence/interfaces/ledger_repository_interface.py +16 -0
  478. engineering_influence-1.0.0/src/engineering_influence/interfaces/local_book_creator_interface.py +42 -0
  479. engineering_influence-1.0.0/src/engineering_influence/interfaces/manuscript_auditor_interface.py +22 -0
  480. engineering_influence-1.0.0/src/engineering_influence/interfaces/manuscript_builder_interface.py +22 -0
  481. engineering_influence-1.0.0/src/engineering_influence/interfaces/manuscript_source_interface.py +23 -0
  482. engineering_influence-1.0.0/src/engineering_influence/interfaces/marketplace_listing_parser_interface.py +20 -0
  483. engineering_influence-1.0.0/src/engineering_influence/interfaces/mcp_remote_transport_factory_interface.py +24 -0
  484. engineering_influence-1.0.0/src/engineering_influence/interfaces/mcp_transport_factory_interface.py +23 -0
  485. engineering_influence-1.0.0/src/engineering_influence/interfaces/mcp_transport_interface.py +30 -0
  486. engineering_influence-1.0.0/src/engineering_influence/interfaces/metrics_interface.py +22 -0
  487. engineering_influence-1.0.0/src/engineering_influence/interfaces/model_catalog_loader_interface.py +22 -0
  488. engineering_influence-1.0.0/src/engineering_influence/interfaces/model_interface.py +40 -0
  489. engineering_influence-1.0.0/src/engineering_influence/interfaces/model_probe_interface.py +21 -0
  490. engineering_influence-1.0.0/src/engineering_influence/interfaces/model_profile_loader_interface.py +22 -0
  491. engineering_influence-1.0.0/src/engineering_influence/interfaces/model_reply_interface.py +28 -0
  492. engineering_influence-1.0.0/src/engineering_influence/interfaces/ollama_server_interface.py +23 -0
  493. engineering_influence-1.0.0/src/engineering_influence/interfaces/outbound_url_pinner_interface.py +24 -0
  494. engineering_influence-1.0.0/src/engineering_influence/interfaces/outbound_url_policy_interface.py +20 -0
  495. engineering_influence-1.0.0/src/engineering_influence/interfaces/outbox_interface.py +36 -0
  496. engineering_influence-1.0.0/src/engineering_influence/interfaces/package_assets_interface.py +16 -0
  497. engineering_influence-1.0.0/src/engineering_influence/interfaces/page_text_extractor_interface.py +24 -0
  498. engineering_influence-1.0.0/src/engineering_influence/interfaces/path_guard_interface.py +19 -0
  499. engineering_influence-1.0.0/src/engineering_influence/interfaces/pdf_inspector_interface.py +25 -0
  500. engineering_influence-1.0.0/src/engineering_influence/interfaces/phase_handler_interface.py +15 -0
  501. engineering_influence-1.0.0/src/engineering_influence/interfaces/plugin_folder_reader_interface.py +22 -0
  502. engineering_influence-1.0.0/src/engineering_influence/interfaces/plugin_index_parser_interface.py +20 -0
  503. engineering_influence-1.0.0/src/engineering_influence/interfaces/plugin_lock_store_interface.py +25 -0
  504. engineering_influence-1.0.0/src/engineering_influence/interfaces/plugin_parser_interface.py +23 -0
  505. engineering_influence-1.0.0/src/engineering_influence/interfaces/plugin_writer_interface.py +20 -0
  506. engineering_influence-1.0.0/src/engineering_influence/interfaces/project_files_writer_interface.py +21 -0
  507. engineering_influence-1.0.0/src/engineering_influence/interfaces/prompt_library_interface.py +24 -0
  508. engineering_influence-1.0.0/src/engineering_influence/interfaces/publication_findings_interface.py +23 -0
  509. engineering_influence-1.0.0/src/engineering_influence/interfaces/publish_pipeline_interface.py +25 -0
  510. engineering_influence-1.0.0/src/engineering_influence/interfaces/publish_pipeline_provider_interface.py +20 -0
  511. engineering_influence-1.0.0/src/engineering_influence/interfaces/publisher_interface.py +20 -0
  512. engineering_influence-1.0.0/src/engineering_influence/interfaces/queue_interface.py +15 -0
  513. engineering_influence-1.0.0/src/engineering_influence/interfaces/rate_limiter_interface.py +14 -0
  514. engineering_influence-1.0.0/src/engineering_influence/interfaces/release_evaluator_interface.py +27 -0
  515. engineering_influence-1.0.0/src/engineering_influence/interfaces/render_qa_interface.py +21 -0
  516. engineering_influence-1.0.0/src/engineering_influence/interfaces/revision_passes_interface.py +24 -0
  517. engineering_influence-1.0.0/src/engineering_influence/interfaces/run_input_reader_interface.py +22 -0
  518. engineering_influence-1.0.0/src/engineering_influence/interfaces/run_repository_interface.py +36 -0
  519. engineering_influence-1.0.0/src/engineering_influence/interfaces/runner_interface.py +14 -0
  520. engineering_influence-1.0.0/src/engineering_influence/interfaces/schema_migrator_interface.py +22 -0
  521. engineering_influence-1.0.0/src/engineering_influence/interfaces/scratch_project_interface.py +22 -0
  522. engineering_influence-1.0.0/src/engineering_influence/interfaces/search_provider_interface.py +24 -0
  523. engineering_influence-1.0.0/src/engineering_influence/interfaces/search_results_interface.py +37 -0
  524. engineering_influence-1.0.0/src/engineering_influence/interfaces/secret_provider_interface.py +14 -0
  525. engineering_influence-1.0.0/src/engineering_influence/interfaces/secret_redactor_interface.py +21 -0
  526. engineering_influence-1.0.0/src/engineering_influence/interfaces/serve_starter_interface.py +14 -0
  527. engineering_influence-1.0.0/src/engineering_influence/interfaces/skill_files_interface.py +29 -0
  528. engineering_influence-1.0.0/src/engineering_influence/interfaces/skill_lock_store_interface.py +25 -0
  529. engineering_influence-1.0.0/src/engineering_influence/interfaces/skill_parser_interface.py +30 -0
  530. engineering_influence-1.0.0/src/engineering_influence/interfaces/skill_sink_interface.py +20 -0
  531. engineering_influence-1.0.0/src/engineering_influence/interfaces/skill_source_interface.py +20 -0
  532. engineering_influence-1.0.0/src/engineering_influence/interfaces/skill_writer_interface.py +20 -0
  533. engineering_influence-1.0.0/src/engineering_influence/interfaces/source_fetcher_interface.py +24 -0
  534. engineering_influence-1.0.0/src/engineering_influence/interfaces/stage_executor_interface.py +27 -0
  535. engineering_influence-1.0.0/src/engineering_influence/interfaces/stage_guidance_interface.py +20 -0
  536. engineering_influence-1.0.0/src/engineering_influence/interfaces/stage_output_check_interface.py +16 -0
  537. engineering_influence-1.0.0/src/engineering_influence/interfaces/stage_recipes_interface.py +25 -0
  538. engineering_influence-1.0.0/src/engineering_influence/interfaces/step_recorder_interface.py +19 -0
  539. engineering_influence-1.0.0/src/engineering_influence/interfaces/toml_lock_file_interface.py +29 -0
  540. engineering_influence-1.0.0/src/engineering_influence/interfaces/tool_grants_interface.py +16 -0
  541. engineering_influence-1.0.0/src/engineering_influence/interfaces/tool_interface.py +62 -0
  542. engineering_influence-1.0.0/src/engineering_influence/interfaces/tool_lock_store_interface.py +25 -0
  543. engineering_influence-1.0.0/src/engineering_influence/interfaces/tool_registry_interface.py +26 -0
  544. engineering_influence-1.0.0/src/engineering_influence/interfaces/tool_versions_interface.py +18 -0
  545. engineering_influence-1.0.0/src/engineering_influence/interfaces/upload_inspector_interface.py +20 -0
  546. engineering_influence-1.0.0/src/engineering_influence/interfaces/webhook_delivery_interface.py +21 -0
  547. engineering_influence-1.0.0/src/engineering_influence/interfaces/webhook_signer_interface.py +26 -0
  548. engineering_influence-1.0.0/src/engineering_influence/interfaces/webhook_verifier_interface.py +20 -0
  549. engineering_influence-1.0.0/src/engineering_influence/interfaces/workflow_interface.py +20 -0
  550. engineering_influence-1.0.0/src/engineering_influence/models/__init__.py +24 -0
  551. engineering_influence-1.0.0/src/engineering_influence/models/acp_session.py +21 -0
  552. engineering_influence-1.0.0/src/engineering_influence/models/advance_outcome.py +17 -0
  553. engineering_influence-1.0.0/src/engineering_influence/models/artifact.py +21 -0
  554. engineering_influence-1.0.0/src/engineering_influence/models/artifact_address.py +32 -0
  555. engineering_influence-1.0.0/src/engineering_influence/models/assembled_context.py +34 -0
  556. engineering_influence-1.0.0/src/engineering_influence/models/author_profile.py +122 -0
  557. engineering_influence-1.0.0/src/engineering_influence/models/book_brief.py +84 -0
  558. engineering_influence-1.0.0/src/engineering_influence/models/book_kind.py +11 -0
  559. engineering_influence-1.0.0/src/engineering_influence/models/book_metadata.py +100 -0
  560. engineering_influence-1.0.0/src/engineering_influence/models/book_pricing.py +57 -0
  561. engineering_influence-1.0.0/src/engineering_influence/models/book_run.py +125 -0
  562. engineering_influence-1.0.0/src/engineering_influence/models/book_score.py +34 -0
  563. engineering_influence-1.0.0/src/engineering_influence/models/budget.py +49 -0
  564. engineering_influence-1.0.0/src/engineering_influence/models/budget_plan.py +46 -0
  565. engineering_influence-1.0.0/src/engineering_influence/models/cassette.py +41 -0
  566. engineering_influence-1.0.0/src/engineering_influence/models/cassette_interaction.py +54 -0
  567. engineering_influence-1.0.0/src/engineering_influence/models/chapter_outline.py +73 -0
  568. engineering_influence-1.0.0/src/engineering_influence/models/context_plan.py +33 -0
  569. engineering_influence-1.0.0/src/engineering_influence/models/continuity_finding.py +43 -0
  570. engineering_influence-1.0.0/src/engineering_influence/models/cost_estimate.py +47 -0
  571. engineering_influence-1.0.0/src/engineering_influence/models/covers/__init__.py +2 -0
  572. engineering_influence-1.0.0/src/engineering_influence/models/covers/box.py +39 -0
  573. engineering_influence-1.0.0/src/engineering_influence/models/covers/builtin_cover_style.py +49 -0
  574. engineering_influence-1.0.0/src/engineering_influence/models/covers/cover_layout.py +48 -0
  575. engineering_influence-1.0.0/src/engineering_influence/models/covers/cover_style.py +37 -0
  576. engineering_influence-1.0.0/src/engineering_influence/models/covers/interfaces/__init__.py +2 -0
  577. engineering_influence-1.0.0/src/engineering_influence/models/covers/interfaces/box_interface.py +36 -0
  578. engineering_influence-1.0.0/src/engineering_influence/models/covers/interfaces/builtin_cover_style_interface.py +22 -0
  579. engineering_influence-1.0.0/src/engineering_influence/models/covers/interfaces/cover_layout_interface.py +29 -0
  580. engineering_influence-1.0.0/src/engineering_influence/models/covers/interfaces/cover_style_interface.py +10 -0
  581. engineering_influence-1.0.0/src/engineering_influence/models/covers/interfaces/kdp_cover_spec_interface.py +10 -0
  582. engineering_influence-1.0.0/src/engineering_influence/models/covers/interfaces/layout_check_interface.py +20 -0
  583. engineering_influence-1.0.0/src/engineering_influence/models/covers/interfaces/layout_factory_interface.py +28 -0
  584. engineering_influence-1.0.0/src/engineering_influence/models/covers/interfaces/text_recorder_interface.py +18 -0
  585. engineering_influence-1.0.0/src/engineering_influence/models/covers/kdp_cover_spec.py +34 -0
  586. engineering_influence-1.0.0/src/engineering_influence/models/covers/layout_check.py +96 -0
  587. engineering_influence-1.0.0/src/engineering_influence/models/covers/layout_factory.py +100 -0
  588. engineering_influence-1.0.0/src/engineering_influence/models/covers/text_recorder.py +21 -0
  589. engineering_influence-1.0.0/src/engineering_influence/models/degrade_ladder.py +38 -0
  590. engineering_influence-1.0.0/src/engineering_influence/models/doctor_finding.py +26 -0
  591. engineering_influence-1.0.0/src/engineering_influence/models/draft_recipe.py +70 -0
  592. engineering_influence-1.0.0/src/engineering_influence/models/epub/__init__.py +2 -0
  593. engineering_influence-1.0.0/src/engineering_influence/models/epub/cover_declaration.py +14 -0
  594. engineering_influence-1.0.0/src/engineering_influence/models/epub/epub_contents.py +26 -0
  595. engineering_influence-1.0.0/src/engineering_influence/models/epub/interfaces/__init__.py +2 -0
  596. engineering_influence-1.0.0/src/engineering_influence/models/epub/interfaces/cover_declaration_interface.py +10 -0
  597. engineering_influence-1.0.0/src/engineering_influence/models/epub/interfaces/epub_contents_interface.py +10 -0
  598. engineering_influence-1.0.0/src/engineering_influence/models/epub/interfaces/xhtml_patterns_interface.py +10 -0
  599. engineering_influence-1.0.0/src/engineering_influence/models/epub/xhtml_patterns.py +23 -0
  600. engineering_influence-1.0.0/src/engineering_influence/models/evaluation_case.py +51 -0
  601. engineering_influence-1.0.0/src/engineering_influence/models/evaluation_report.py +60 -0
  602. engineering_influence-1.0.0/src/engineering_influence/models/evaluation_verdict.py +19 -0
  603. engineering_influence-1.0.0/src/engineering_influence/models/export_summary.py +22 -0
  604. engineering_influence-1.0.0/src/engineering_influence/models/failure_kind.py +12 -0
  605. engineering_influence-1.0.0/src/engineering_influence/models/fetched_page.py +35 -0
  606. engineering_influence-1.0.0/src/engineering_influence/models/gate.py +20 -0
  607. engineering_influence-1.0.0/src/engineering_influence/models/gate_kind.py +11 -0
  608. engineering_influence-1.0.0/src/engineering_influence/models/gate_verdict.py +24 -0
  609. engineering_influence-1.0.0/src/engineering_influence/models/governing_postulates.py +19 -0
  610. engineering_influence-1.0.0/src/engineering_influence/models/guidance.py +48 -0
  611. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/acp_session_interface.py +10 -0
  612. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/advance_outcome_interface.py +17 -0
  613. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/artifact_address_interface.py +14 -0
  614. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/artifact_interface.py +10 -0
  615. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/assembled_context_interface.py +10 -0
  616. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/author_profile_interface.py +15 -0
  617. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/book_brief_interface.py +10 -0
  618. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/book_kind_interface.py +17 -0
  619. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/book_metadata_interface.py +10 -0
  620. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/book_pricing_interface.py +16 -0
  621. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/book_run_interface.py +54 -0
  622. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/book_score_interface.py +10 -0
  623. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/budget_interface.py +28 -0
  624. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/budget_plan_interface.py +14 -0
  625. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/cassette_interaction_interface.py +17 -0
  626. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/cassette_interface.py +20 -0
  627. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/chapter_outline_interface.py +18 -0
  628. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/context_plan_interface.py +10 -0
  629. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/continuity_finding_interface.py +14 -0
  630. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/cost_estimate_interface.py +14 -0
  631. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/degrade_ladder_interface.py +28 -0
  632. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/doctor_finding_interface.py +14 -0
  633. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/draft_recipe_interface.py +25 -0
  634. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/evaluation_case_interface.py +10 -0
  635. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/evaluation_report_interface.py +10 -0
  636. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/evaluation_verdict_interface.py +10 -0
  637. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/export_summary_interface.py +10 -0
  638. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/failure_kind_interface.py +17 -0
  639. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/fetched_page_interface.py +24 -0
  640. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/gate_interface.py +10 -0
  641. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/gate_kind_interface.py +17 -0
  642. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/gate_verdict_interface.py +10 -0
  643. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/governing_postulates_interface.py +10 -0
  644. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/guidance_interface.py +14 -0
  645. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/journal_entry_interface.py +10 -0
  646. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/journal_key_interface.py +14 -0
  647. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/kdp_bundle_file_interface.py +10 -0
  648. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/kdp_listing_interface.py +14 -0
  649. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/limits_on_means_interface.py +10 -0
  650. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/made_book_interface.py +10 -0
  651. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/manuscript_audit_interface.py +10 -0
  652. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/manuscript_build_interface.py +10 -0
  653. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/marketplace_entry_interface.py +10 -0
  654. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/marketplace_listing_interface.py +10 -0
  655. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/mcp_call_result_interface.py +10 -0
  656. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/mcp_command_interface.py +10 -0
  657. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/mcp_endpoint_url_interface.py +14 -0
  658. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/mcp_server_info_interface.py +10 -0
  659. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/mcp_server_inspection_interface.py +10 -0
  660. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/mcp_server_lock_interface.py +34 -0
  661. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/mcp_tool_descriptor_interface.py +32 -0
  662. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/mcp_tool_set_interface.py +32 -0
  663. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/model_answer_interface.py +10 -0
  664. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/model_availability_interface.py +17 -0
  665. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/model_call_result_interface.py +10 -0
  666. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/model_catalog_interface.py +22 -0
  667. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/model_profile_interface.py +18 -0
  668. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/model_request_interface.py +10 -0
  669. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/model_response_interface.py +22 -0
  670. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/model_turn_interface.py +20 -0
  671. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/model_usage_interface.py +10 -0
  672. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/outline_interface.py +24 -0
  673. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/page_text_interface.py +16 -0
  674. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/phase_run_interface.py +21 -0
  675. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/phase_state_interface.py +17 -0
  676. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/pin_decision_interface.py +10 -0
  677. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/pinned_target_interface.py +18 -0
  678. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/pipeline_stage_interface.py +17 -0
  679. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/plugin_addition_interface.py +10 -0
  680. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/plugin_bundle_interface.py +10 -0
  681. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/plugin_conversion_interface.py +10 -0
  682. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/plugin_download_interface.py +10 -0
  683. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/plugin_folder_interface.py +10 -0
  684. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/plugin_import_result_interface.py +10 -0
  685. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/plugin_index_entry_interface.py +14 -0
  686. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/plugin_index_interface.py +24 -0
  687. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/plugin_interface.py +22 -0
  688. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/plugin_lock_entry_interface.py +14 -0
  689. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/plugin_lock_interface.py +33 -0
  690. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/plugin_removal_interface.py +10 -0
  691. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/plugin_server_interface.py +18 -0
  692. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/project_interface.py +10 -0
  693. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/prompt_template_interface.py +28 -0
  694. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/provider_descriptor_interface.py +24 -0
  695. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/quality_issue_interface.py +10 -0
  696. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/revision_pass_interface.py +10 -0
  697. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/rubric_dimension_interface.py +10 -0
  698. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/rubric_interface.py +10 -0
  699. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/run_input_interface.py +18 -0
  700. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/run_status_interface.py +17 -0
  701. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/search_hit_interface.py +16 -0
  702. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/skill_document_interface.py +18 -0
  703. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/skill_import_result_interface.py +10 -0
  704. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/skill_interface.py +30 -0
  705. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/skill_lock_addition_interface.py +10 -0
  706. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/skill_lock_entry_interface.py +32 -0
  707. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/skill_lock_interface.py +37 -0
  708. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/source_record_interface.py +20 -0
  709. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/spend_limits_interface.py +10 -0
  710. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/spend_request_interface.py +10 -0
  711. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/spend_summary_interface.py +14 -0
  712. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/stage_plan_interface.py +18 -0
  713. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/stage_recipe_interface.py +25 -0
  714. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/stage_report_interface.py +10 -0
  715. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/story_bible_interface.py +14 -0
  716. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/story_character_interface.py +14 -0
  717. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/story_event_interface.py +10 -0
  718. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/story_text_interface.py +10 -0
  719. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/tool_call_interface.py +16 -0
  720. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/tool_definition_interface.py +22 -0
  721. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/tool_limits_interface.py +10 -0
  722. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/tool_lock_addition_interface.py +10 -0
  723. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/tool_lock_finding_interface.py +18 -0
  724. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/tool_lock_interface.py +33 -0
  725. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/tool_loop_limits_interface.py +16 -0
  726. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/tool_loop_result_interface.py +16 -0
  727. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/tool_result_interface.py +24 -0
  728. engineering_influence-1.0.0/src/engineering_influence/models/interfaces/trace_context_interface.py +35 -0
  729. engineering_influence-1.0.0/src/engineering_influence/models/journal_entry.py +27 -0
  730. engineering_influence-1.0.0/src/engineering_influence/models/journal_key.py +28 -0
  731. engineering_influence-1.0.0/src/engineering_influence/models/kdp_bundle_file.py +26 -0
  732. engineering_influence-1.0.0/src/engineering_influence/models/kdp_listing.py +39 -0
  733. engineering_influence-1.0.0/src/engineering_influence/models/limits_on_means.py +16 -0
  734. engineering_influence-1.0.0/src/engineering_influence/models/made_book.py +42 -0
  735. engineering_influence-1.0.0/src/engineering_influence/models/manuscript_audit.py +38 -0
  736. engineering_influence-1.0.0/src/engineering_influence/models/manuscript_build.py +44 -0
  737. engineering_influence-1.0.0/src/engineering_influence/models/marketplace_entry.py +54 -0
  738. engineering_influence-1.0.0/src/engineering_influence/models/marketplace_listing.py +46 -0
  739. engineering_influence-1.0.0/src/engineering_influence/models/mcp_call_result.py +24 -0
  740. engineering_influence-1.0.0/src/engineering_influence/models/mcp_command.py +38 -0
  741. engineering_influence-1.0.0/src/engineering_influence/models/mcp_endpoint_url.py +53 -0
  742. engineering_influence-1.0.0/src/engineering_influence/models/mcp_server_info.py +30 -0
  743. engineering_influence-1.0.0/src/engineering_influence/models/mcp_server_inspection.py +18 -0
  744. engineering_influence-1.0.0/src/engineering_influence/models/mcp_server_lock.py +174 -0
  745. engineering_influence-1.0.0/src/engineering_influence/models/mcp_tool_descriptor.py +67 -0
  746. engineering_influence-1.0.0/src/engineering_influence/models/mcp_tool_set.py +48 -0
  747. engineering_influence-1.0.0/src/engineering_influence/models/model_answer.py +40 -0
  748. engineering_influence-1.0.0/src/engineering_influence/models/model_availability.py +13 -0
  749. engineering_influence-1.0.0/src/engineering_influence/models/model_call_result.py +38 -0
  750. engineering_influence-1.0.0/src/engineering_influence/models/model_catalog.py +45 -0
  751. engineering_influence-1.0.0/src/engineering_influence/models/model_profile.py +76 -0
  752. engineering_influence-1.0.0/src/engineering_influence/models/model_request.py +43 -0
  753. engineering_influence-1.0.0/src/engineering_influence/models/model_response.py +48 -0
  754. engineering_influence-1.0.0/src/engineering_influence/models/model_turn.py +40 -0
  755. engineering_influence-1.0.0/src/engineering_influence/models/model_usage.py +32 -0
  756. engineering_influence-1.0.0/src/engineering_influence/models/outline.py +40 -0
  757. engineering_influence-1.0.0/src/engineering_influence/models/page_text.py +18 -0
  758. engineering_influence-1.0.0/src/engineering_influence/models/phase_run.py +38 -0
  759. engineering_influence-1.0.0/src/engineering_influence/models/phase_state.py +18 -0
  760. engineering_influence-1.0.0/src/engineering_influence/models/pin_decision.py +29 -0
  761. engineering_influence-1.0.0/src/engineering_influence/models/pinned_target.py +35 -0
  762. engineering_influence-1.0.0/src/engineering_influence/models/pipeline_stage.py +17 -0
  763. engineering_influence-1.0.0/src/engineering_influence/models/plugin.py +70 -0
  764. engineering_influence-1.0.0/src/engineering_influence/models/plugin_addition.py +20 -0
  765. engineering_influence-1.0.0/src/engineering_influence/models/plugin_bundle.py +15 -0
  766. engineering_influence-1.0.0/src/engineering_influence/models/plugin_conversion.py +36 -0
  767. engineering_influence-1.0.0/src/engineering_influence/models/plugin_download.py +24 -0
  768. engineering_influence-1.0.0/src/engineering_influence/models/plugin_folder.py +49 -0
  769. engineering_influence-1.0.0/src/engineering_influence/models/plugin_import_result.py +21 -0
  770. engineering_influence-1.0.0/src/engineering_influence/models/plugin_index.py +49 -0
  771. engineering_influence-1.0.0/src/engineering_influence/models/plugin_index_entry.py +62 -0
  772. engineering_influence-1.0.0/src/engineering_influence/models/plugin_lock.py +54 -0
  773. engineering_influence-1.0.0/src/engineering_influence/models/plugin_lock_entry.py +69 -0
  774. engineering_influence-1.0.0/src/engineering_influence/models/plugin_removal.py +24 -0
  775. engineering_influence-1.0.0/src/engineering_influence/models/plugin_server.py +81 -0
  776. engineering_influence-1.0.0/src/engineering_influence/models/project.py +26 -0
  777. engineering_influence-1.0.0/src/engineering_influence/models/prompt_template.py +107 -0
  778. engineering_influence-1.0.0/src/engineering_influence/models/provider_descriptor.py +127 -0
  779. engineering_influence-1.0.0/src/engineering_influence/models/publishing/__init__.py +2 -0
  780. engineering_influence-1.0.0/src/engineering_influence/models/publishing/audit_report.py +48 -0
  781. engineering_influence-1.0.0/src/engineering_influence/models/publishing/entry.py +19 -0
  782. engineering_influence-1.0.0/src/engineering_influence/models/publishing/finding.py +16 -0
  783. engineering_influence-1.0.0/src/engineering_influence/models/publishing/interfaces/__init__.py +2 -0
  784. engineering_influence-1.0.0/src/engineering_influence/models/publishing/interfaces/audit_report_interface.py +35 -0
  785. engineering_influence-1.0.0/src/engineering_influence/models/publishing/interfaces/entry_interface.py +10 -0
  786. engineering_influence-1.0.0/src/engineering_influence/models/publishing/interfaces/finding_interface.py +10 -0
  787. engineering_influence-1.0.0/src/engineering_influence/models/publishing/interfaces/issue_interface.py +10 -0
  788. engineering_influence-1.0.0/src/engineering_influence/models/publishing/interfaces/path_relativizer_interface.py +20 -0
  789. engineering_influence-1.0.0/src/engineering_influence/models/publishing/interfaces/pdf_document_interface.py +10 -0
  790. engineering_influence-1.0.0/src/engineering_influence/models/publishing/interfaces/pdf_page_interface.py +10 -0
  791. engineering_influence-1.0.0/src/engineering_influence/models/publishing/interfaces/pdf_word_interface.py +10 -0
  792. engineering_influence-1.0.0/src/engineering_influence/models/publishing/interfaces/project_config_interface.py +36 -0
  793. engineering_influence-1.0.0/src/engineering_influence/models/publishing/interfaces/project_layout_interface.py +31 -0
  794. engineering_influence-1.0.0/src/engineering_influence/models/publishing/interfaces/release_readiness_report_interface.py +34 -0
  795. engineering_influence-1.0.0/src/engineering_influence/models/publishing/issue.py +17 -0
  796. engineering_influence-1.0.0/src/engineering_influence/models/publishing/path_relativizer.py +23 -0
  797. engineering_influence-1.0.0/src/engineering_influence/models/publishing/pdf_document.py +17 -0
  798. engineering_influence-1.0.0/src/engineering_influence/models/publishing/pdf_page.py +28 -0
  799. engineering_influence-1.0.0/src/engineering_influence/models/publishing/pdf_word.py +15 -0
  800. engineering_influence-1.0.0/src/engineering_influence/models/publishing/project_config.py +60 -0
  801. engineering_influence-1.0.0/src/engineering_influence/models/publishing/project_layout.py +38 -0
  802. engineering_influence-1.0.0/src/engineering_influence/models/publishing/release_readiness_report.py +43 -0
  803. engineering_influence-1.0.0/src/engineering_influence/models/qa/__init__.py +2 -0
  804. engineering_influence-1.0.0/src/engineering_influence/models/qa/interfaces/__init__.py +2 -0
  805. engineering_influence-1.0.0/src/engineering_influence/models/qa/interfaces/page_file_number_interface.py +20 -0
  806. engineering_influence-1.0.0/src/engineering_influence/models/qa/interfaces/page_record_interface.py +10 -0
  807. engineering_influence-1.0.0/src/engineering_influence/models/qa/interfaces/render_report_interface.py +30 -0
  808. engineering_influence-1.0.0/src/engineering_influence/models/qa/page_file_number.py +18 -0
  809. engineering_influence-1.0.0/src/engineering_influence/models/qa/page_record.py +18 -0
  810. engineering_influence-1.0.0/src/engineering_influence/models/qa/render_report.py +48 -0
  811. engineering_influence-1.0.0/src/engineering_influence/models/quality_issue.py +20 -0
  812. engineering_influence-1.0.0/src/engineering_influence/models/revision_pass.py +55 -0
  813. engineering_influence-1.0.0/src/engineering_influence/models/rubric.py +52 -0
  814. engineering_influence-1.0.0/src/engineering_influence/models/rubric_dimension.py +46 -0
  815. engineering_influence-1.0.0/src/engineering_influence/models/run_input.py +70 -0
  816. engineering_influence-1.0.0/src/engineering_influence/models/run_status.py +16 -0
  817. engineering_influence-1.0.0/src/engineering_influence/models/search_hit.py +31 -0
  818. engineering_influence-1.0.0/src/engineering_influence/models/skill.py +170 -0
  819. engineering_influence-1.0.0/src/engineering_influence/models/skill_document.py +52 -0
  820. engineering_influence-1.0.0/src/engineering_influence/models/skill_import_result.py +28 -0
  821. engineering_influence-1.0.0/src/engineering_influence/models/skill_lock.py +69 -0
  822. engineering_influence-1.0.0/src/engineering_influence/models/skill_lock_addition.py +18 -0
  823. engineering_influence-1.0.0/src/engineering_influence/models/skill_lock_entry.py +63 -0
  824. engineering_influence-1.0.0/src/engineering_influence/models/source_record.py +26 -0
  825. engineering_influence-1.0.0/src/engineering_influence/models/spend_limits.py +49 -0
  826. engineering_influence-1.0.0/src/engineering_influence/models/spend_request.py +20 -0
  827. engineering_influence-1.0.0/src/engineering_influence/models/spend_summary.py +37 -0
  828. engineering_influence-1.0.0/src/engineering_influence/models/stage_plan.py +32 -0
  829. engineering_influence-1.0.0/src/engineering_influence/models/stage_recipe.py +61 -0
  830. engineering_influence-1.0.0/src/engineering_influence/models/stage_report.py +14 -0
  831. engineering_influence-1.0.0/src/engineering_influence/models/story_bible.py +76 -0
  832. engineering_influence-1.0.0/src/engineering_influence/models/story_character.py +46 -0
  833. engineering_influence-1.0.0/src/engineering_influence/models/story_event.py +28 -0
  834. engineering_influence-1.0.0/src/engineering_influence/models/story_text.py +24 -0
  835. engineering_influence-1.0.0/src/engineering_influence/models/tool_call.py +39 -0
  836. engineering_influence-1.0.0/src/engineering_influence/models/tool_definition.py +76 -0
  837. engineering_influence-1.0.0/src/engineering_influence/models/tool_limits.py +24 -0
  838. engineering_influence-1.0.0/src/engineering_influence/models/tool_lock.py +51 -0
  839. engineering_influence-1.0.0/src/engineering_influence/models/tool_lock_addition.py +20 -0
  840. engineering_influence-1.0.0/src/engineering_influence/models/tool_lock_finding.py +34 -0
  841. engineering_influence-1.0.0/src/engineering_influence/models/tool_loop_limits.py +36 -0
  842. engineering_influence-1.0.0/src/engineering_influence/models/tool_loop_result.py +42 -0
  843. engineering_influence-1.0.0/src/engineering_influence/models/tool_result.py +46 -0
  844. engineering_influence-1.0.0/src/engineering_influence/models/trace_context.py +61 -0
  845. engineering_influence-1.0.0/src/engineering_influence/models/typesetting/__init__.py +2 -0
  846. engineering_influence-1.0.0/src/engineering_influence/models/typesetting/book.py +19 -0
  847. engineering_influence-1.0.0/src/engineering_influence/models/typesetting/book_slug.py +18 -0
  848. engineering_influence-1.0.0/src/engineering_influence/models/typesetting/chapter.py +21 -0
  849. engineering_influence-1.0.0/src/engineering_influence/models/typesetting/interfaces/__init__.py +2 -0
  850. engineering_influence-1.0.0/src/engineering_influence/models/typesetting/interfaces/book_interface.py +10 -0
  851. engineering_influence-1.0.0/src/engineering_influence/models/typesetting/interfaces/book_slug_interface.py +10 -0
  852. engineering_influence-1.0.0/src/engineering_influence/models/typesetting/interfaces/chapter_interface.py +10 -0
  853. engineering_influence-1.0.0/src/engineering_influence/models/typesetting/interfaces/paper_stock_interface.py +26 -0
  854. engineering_influence-1.0.0/src/engineering_influence/models/typesetting/interfaces/running_head_interface.py +14 -0
  855. engineering_influence-1.0.0/src/engineering_influence/models/typesetting/interfaces/text_policy_interface.py +21 -0
  856. engineering_influence-1.0.0/src/engineering_influence/models/typesetting/interfaces/trim_size_interface.py +30 -0
  857. engineering_influence-1.0.0/src/engineering_influence/models/typesetting/paper_stock.py +49 -0
  858. engineering_influence-1.0.0/src/engineering_influence/models/typesetting/running_head.py +51 -0
  859. engineering_influence-1.0.0/src/engineering_influence/models/typesetting/text_policy.py +41 -0
  860. engineering_influence-1.0.0/src/engineering_influence/models/typesetting/trim_size.py +59 -0
  861. engineering_influence-1.0.0/src/engineering_influence/py.typed +0 -0
  862. engineering_influence-1.0.0/src/engineering_influence/repositories/__init__.py +7 -0
  863. engineering_influence-1.0.0/src/engineering_influence/repositories/acp_session_record.py +16 -0
  864. engineering_influence-1.0.0/src/engineering_influence/repositories/artifact_record.py +24 -0
  865. engineering_influence-1.0.0/src/engineering_influence/repositories/book_run_codec.py +49 -0
  866. engineering_influence-1.0.0/src/engineering_influence/repositories/book_run_record.py +21 -0
  867. engineering_influence-1.0.0/src/engineering_influence/repositories/interfaces/__init__.py +2 -0
  868. engineering_influence-1.0.0/src/engineering_influence/repositories/interfaces/acp_session_record_interface.py +10 -0
  869. engineering_influence-1.0.0/src/engineering_influence/repositories/interfaces/artifact_record_interface.py +10 -0
  870. engineering_influence-1.0.0/src/engineering_influence/repositories/interfaces/book_run_codec_interface.py +24 -0
  871. engineering_influence-1.0.0/src/engineering_influence/repositories/interfaces/book_run_record_interface.py +10 -0
  872. engineering_influence-1.0.0/src/engineering_influence/repositories/interfaces/journal_record_interface.py +10 -0
  873. engineering_influence-1.0.0/src/engineering_influence/repositories/interfaces/ledger_event_record_interface.py +10 -0
  874. engineering_influence-1.0.0/src/engineering_influence/repositories/interfaces/outbox_record_interface.py +10 -0
  875. engineering_influence-1.0.0/src/engineering_influence/repositories/journal_record.py +30 -0
  876. engineering_influence-1.0.0/src/engineering_influence/repositories/ledger_event_record.py +19 -0
  877. engineering_influence-1.0.0/src/engineering_influence/repositories/outbox_record.py +24 -0
  878. engineering_influence-1.0.0/src/engineering_influence/repositories/release/__init__.py +2 -0
  879. engineering_influence-1.0.0/src/engineering_influence/repositories/release/artifact_inventory.py +51 -0
  880. engineering_influence-1.0.0/src/engineering_influence/repositories/release/file_digest.py +21 -0
  881. engineering_influence-1.0.0/src/engineering_influence/repositories/release/interfaces/__init__.py +2 -0
  882. engineering_influence-1.0.0/src/engineering_influence/repositories/release/interfaces/file_digest_interface.py +20 -0
  883. engineering_influence-1.0.0/src/engineering_influence/repositories/release/json_report.py +19 -0
  884. engineering_influence-1.0.0/src/engineering_influence/repositories/release/step_recorder.py +40 -0
  885. engineering_influence-1.0.0/src/engineering_influence/repositories/sqlmodel_acp_session_store.py +36 -0
  886. engineering_influence-1.0.0/src/engineering_influence/repositories/sqlmodel_artifact_store.py +81 -0
  887. engineering_influence-1.0.0/src/engineering_influence/repositories/sqlmodel_journal.py +89 -0
  888. engineering_influence-1.0.0/src/engineering_influence/repositories/sqlmodel_ledger.py +38 -0
  889. engineering_influence-1.0.0/src/engineering_influence/repositories/sqlmodel_outbox.py +94 -0
  890. engineering_influence-1.0.0/src/engineering_influence/repositories/sqlmodel_run_repository.py +72 -0
  891. engineering_influence-1.0.0/src/engineering_influence/repositories/typesetting/__init__.py +2 -0
  892. engineering_influence-1.0.0/src/engineering_influence/repositories/typesetting/book_loader.py +71 -0
  893. engineering_influence-1.0.0/src/engineering_influence/repositories/typesetting/chapter_loader.py +68 -0
  894. engineering_influence-1.0.0/src/engineering_influence/repositories/typesetting/interfaces/__init__.py +2 -0
  895. engineering_influence-1.0.0/src/engineering_influence/repositories/typesetting/interfaces/chapter_loader_interface.py +22 -0
  896. engineering_influence-1.0.0/src/engineering_influence/runtime/__init__.py +2 -0
  897. engineering_influence-1.0.0/src/engineering_influence/runtime/api_runtime.py +137 -0
  898. engineering_influence-1.0.0/src/engineering_influence/runtime/app_settings.py +34 -0
  899. engineering_influence-1.0.0/src/engineering_influence/runtime/cli_runtime.py +638 -0
  900. engineering_influence-1.0.0/src/engineering_influence/runtime/controller_book_publisher.py +30 -0
  901. engineering_influence-1.0.0/src/engineering_influence/runtime/controller_publish_pipeline.py +41 -0
  902. engineering_influence-1.0.0/src/engineering_influence/runtime/cover_builder_provider.py +38 -0
  903. engineering_influence-1.0.0/src/engineering_influence/runtime/endpoint_checks.py +25 -0
  904. engineering_influence-1.0.0/src/engineering_influence/runtime/environment_settings_loader.py +76 -0
  905. engineering_influence-1.0.0/src/engineering_influence/runtime/evaluation_runtime.py +147 -0
  906. engineering_influence-1.0.0/src/engineering_influence/runtime/interfaces/__init__.py +2 -0
  907. engineering_influence-1.0.0/src/engineering_influence/runtime/interfaces/api_runtime_interface.py +28 -0
  908. engineering_influence-1.0.0/src/engineering_influence/runtime/interfaces/app_settings_interface.py +10 -0
  909. engineering_influence-1.0.0/src/engineering_influence/runtime/interfaces/cli_runtime_interface.py +18 -0
  910. engineering_influence-1.0.0/src/engineering_influence/runtime/interfaces/endpoint_checks_interface.py +21 -0
  911. engineering_influence-1.0.0/src/engineering_influence/runtime/interfaces/environment_settings_loader_interface.py +20 -0
  912. engineering_influence-1.0.0/src/engineering_influence/runtime/interfaces/mcp_runtime_interface.py +23 -0
  913. engineering_influence-1.0.0/src/engineering_influence/runtime/interfaces/publishing_controller_factory_interface.py +21 -0
  914. engineering_influence-1.0.0/src/engineering_influence/runtime/interfaces/stage_executor_runtime_interface.py +28 -0
  915. engineering_influence-1.0.0/src/engineering_influence/runtime/interfaces/worker_runtime_interface.py +35 -0
  916. engineering_influence-1.0.0/src/engineering_influence/runtime/local_book_maker.py +114 -0
  917. engineering_influence-1.0.0/src/engineering_influence/runtime/local_book_runtime.py +128 -0
  918. engineering_influence-1.0.0/src/engineering_influence/runtime/main.py +9 -0
  919. engineering_influence-1.0.0/src/engineering_influence/runtime/mcp_runtime.py +114 -0
  920. engineering_influence-1.0.0/src/engineering_influence/runtime/publish_pipeline_provider.py +100 -0
  921. engineering_influence-1.0.0/src/engineering_influence/runtime/publishing_controller_factory.py +103 -0
  922. engineering_influence-1.0.0/src/engineering_influence/runtime/serve_starter.py +83 -0
  923. engineering_influence-1.0.0/src/engineering_influence/runtime/stage_executor_runtime.py +633 -0
  924. engineering_influence-1.0.0/src/engineering_influence/runtime/worker_runtime.py +154 -0
  925. engineering_influence-1.0.0/src/engineering_influence/services/__init__.py +6 -0
  926. engineering_influence-1.0.0/src/engineering_influence/services/advance_run.py +191 -0
  927. engineering_influence-1.0.0/src/engineering_influence/services/ask_model.py +133 -0
  928. engineering_influence-1.0.0/src/engineering_influence/services/assemble_stage_executor.py +120 -0
  929. engineering_influence-1.0.0/src/engineering_influence/services/audit_stage_executor.py +68 -0
  930. engineering_influence-1.0.0/src/engineering_influence/services/book_config_writer.py +97 -0
  931. engineering_influence-1.0.0/src/engineering_influence/services/book_judge.py +112 -0
  932. engineering_influence-1.0.0/src/engineering_influence/services/brief_reader.py +37 -0
  933. engineering_influence-1.0.0/src/engineering_influence/services/budget_planner.py +26 -0
  934. engineering_influence-1.0.0/src/engineering_influence/services/build_stage_executor.py +94 -0
  935. engineering_influence-1.0.0/src/engineering_influence/services/call_model.py +150 -0
  936. engineering_influence-1.0.0/src/engineering_influence/services/cancel_run.py +49 -0
  937. engineering_influence-1.0.0/src/engineering_influence/services/chapter_cleaner.py +81 -0
  938. engineering_influence-1.0.0/src/engineering_influence/services/content_policy.py +64 -0
  939. engineering_influence-1.0.0/src/engineering_influence/services/content_policy_stage_executor.py +34 -0
  940. engineering_influence-1.0.0/src/engineering_influence/services/context_assembler.py +155 -0
  941. engineering_influence-1.0.0/src/engineering_influence/services/continuity_checker.py +177 -0
  942. engineering_influence-1.0.0/src/engineering_influence/services/cost_estimator.py +107 -0
  943. engineering_influence-1.0.0/src/engineering_influence/services/create_run.py +72 -0
  944. engineering_influence-1.0.0/src/engineering_influence/services/dash_rewriter.py +32 -0
  945. engineering_influence-1.0.0/src/engineering_influence/services/dispatch_outbox.py +78 -0
  946. engineering_influence-1.0.0/src/engineering_influence/services/draft_stage_executor.py +316 -0
  947. engineering_influence-1.0.0/src/engineering_influence/services/epub/__init__.py +2 -0
  948. engineering_influence-1.0.0/src/engineering_influence/services/epub/contents_links_check.py +43 -0
  949. engineering_influence-1.0.0/src/engineering_influence/services/epub/contents_page.py +66 -0
  950. engineering_influence-1.0.0/src/engineering_influence/services/epub/contents_page_check.py +70 -0
  951. engineering_influence-1.0.0/src/engineering_influence/services/epub/cover_check.py +46 -0
  952. engineering_influence-1.0.0/src/engineering_influence/services/epub/css_cleaner.py +20 -0
  953. engineering_influence-1.0.0/src/engineering_influence/services/epub/epub_builder.py +80 -0
  954. engineering_influence-1.0.0/src/engineering_influence/services/epub/epub_identifier.py +42 -0
  955. engineering_influence-1.0.0/src/engineering_influence/services/epub/epub_repacker.py +93 -0
  956. engineering_influence-1.0.0/src/engineering_influence/services/epub/epub_verifier.py +59 -0
  957. engineering_influence-1.0.0/src/engineering_influence/services/epub/heading_ids.py +24 -0
  958. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/__init__.py +2 -0
  959. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/contents_links_check_interface.py +21 -0
  960. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/contents_page_check_interface.py +21 -0
  961. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/contents_page_interface.py +31 -0
  962. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/cover_check_interface.py +20 -0
  963. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/css_cleaner_interface.py +14 -0
  964. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/epub_builder_interface.py +20 -0
  965. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/epub_identifier_interface.py +24 -0
  966. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/epub_repacker_interface.py +26 -0
  967. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/heading_ids_interface.py +18 -0
  968. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/internal_links_check_interface.py +20 -0
  969. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/nav_document_interface.py +25 -0
  970. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/nav_ncx_check_interface.py +21 -0
  971. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/ncx_document_interface.py +21 -0
  972. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/opf_editor_interface.py +32 -0
  973. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/start_reading_check_interface.py +20 -0
  974. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/stylesheet_check_interface.py +20 -0
  975. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/text_rules_check_interface.py +22 -0
  976. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/toc_labels_interface.py +20 -0
  977. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/toc_trees_interface.py +24 -0
  978. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/xhtml_cleaner_interface.py +14 -0
  979. engineering_influence-1.0.0/src/engineering_influence/services/epub/interfaces/xml_check_interface.py +20 -0
  980. engineering_influence-1.0.0/src/engineering_influence/services/epub/internal_links_check.py +40 -0
  981. engineering_influence-1.0.0/src/engineering_influence/services/epub/nav_document.py +55 -0
  982. engineering_influence-1.0.0/src/engineering_influence/services/epub/nav_ncx_check.py +38 -0
  983. engineering_influence-1.0.0/src/engineering_influence/services/epub/ncx_document.py +44 -0
  984. engineering_influence-1.0.0/src/engineering_influence/services/epub/opf_editor.py +98 -0
  985. engineering_influence-1.0.0/src/engineering_influence/services/epub/start_reading_check.py +20 -0
  986. engineering_influence-1.0.0/src/engineering_influence/services/epub/stylesheet_check.py +26 -0
  987. engineering_influence-1.0.0/src/engineering_influence/services/epub/text_rules_check.py +40 -0
  988. engineering_influence-1.0.0/src/engineering_influence/services/epub/toc_labels.py +57 -0
  989. engineering_influence-1.0.0/src/engineering_influence/services/epub/toc_trees.py +60 -0
  990. engineering_influence-1.0.0/src/engineering_influence/services/epub/xhtml_cleaner.py +47 -0
  991. engineering_influence-1.0.0/src/engineering_influence/services/epub/xml_check.py +29 -0
  992. engineering_influence-1.0.0/src/engineering_influence/services/evaluation_reporter.py +68 -0
  993. engineering_influence-1.0.0/src/engineering_influence/services/evaluation_runner.py +46 -0
  994. engineering_influence-1.0.0/src/engineering_influence/services/export_run.py +54 -0
  995. engineering_influence-1.0.0/src/engineering_influence/services/failure_classifier.py +25 -0
  996. engineering_influence-1.0.0/src/engineering_influence/services/fallback_search_provider.py +38 -0
  997. engineering_influence-1.0.0/src/engineering_influence/services/fetch_url_tool.py +83 -0
  998. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/__init__.py +12 -0
  999. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/advance_run_interface.py +20 -0
  1000. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/ask_model_interface.py +31 -0
  1001. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/book_config_writer_interface.py +28 -0
  1002. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/book_judge_interface.py +21 -0
  1003. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/brief_reader_interface.py +20 -0
  1004. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/budget_planner_interface.py +21 -0
  1005. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/call_model_interface.py +35 -0
  1006. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/cancel_run_interface.py +20 -0
  1007. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/chapter_cleaner_interface.py +14 -0
  1008. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/content_policy_interface.py +25 -0
  1009. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/context_assembler_interface.py +21 -0
  1010. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/continuity_checker_interface.py +21 -0
  1011. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/cost_estimator_interface.py +21 -0
  1012. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/create_run_interface.py +21 -0
  1013. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/dash_rewriter_interface.py +14 -0
  1014. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/dispatch_outbox_interface.py +14 -0
  1015. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/evaluation_reporter_interface.py +22 -0
  1016. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/evaluation_runner_interface.py +28 -0
  1017. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/export_run_interface.py +22 -0
  1018. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/failure_classifier_interface.py +20 -0
  1019. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/list_runs_interface.py +20 -0
  1020. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/local_book_run_interface.py +26 -0
  1021. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/local_default_model_interface.py +25 -0
  1022. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/local_model_doctor_interface.py +20 -0
  1023. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/manuscript_project_interface.py +20 -0
  1024. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/mcp_client_factory_interface.py +21 -0
  1025. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/mcp_client_interface.py +35 -0
  1026. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/mcp_connection_interface.py +34 -0
  1027. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/mcp_server_launcher_interface.py +26 -0
  1028. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/mcp_server_probe_interface.py +29 -0
  1029. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/mcp_tool_factory_interface.py +23 -0
  1030. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/metadata_parser_interface.py +20 -0
  1031. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/model_doctor_interface.py +22 -0
  1032. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/outline_parser_interface.py +20 -0
  1033. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/package_book_interface.py +18 -0
  1034. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/plugin_folder_converter_interface.py +21 -0
  1035. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/plugin_importer_interface.py +24 -0
  1036. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/plugin_installer_interface.py +47 -0
  1037. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/plugin_lock_verifier_interface.py +22 -0
  1038. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/plugin_marketplace_interface.py +31 -0
  1039. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/process_job_interface.py +21 -0
  1040. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/quality_report_interface.py +28 -0
  1041. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/read_run_interface.py +24 -0
  1042. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/readiness_doctor_interface.py +22 -0
  1043. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/readiness_probe_interface.py +20 -0
  1044. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/release_gate_interface.py +25 -0
  1045. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/resolve_spend_consent_interface.py +24 -0
  1046. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/resume_run_interface.py +20 -0
  1047. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/run_management_interface.py +36 -0
  1048. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/run_phase_interface.py +28 -0
  1049. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/run_progress_interface.py +20 -0
  1050. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/run_tool_loop_interface.py +31 -0
  1051. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/score_parser_interface.py +16 -0
  1052. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/search_doctor_interface.py +20 -0
  1053. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/skill_converter_interface.py +33 -0
  1054. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/skill_importer_interface.py +31 -0
  1055. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/skill_lock_editor_interface.py +40 -0
  1056. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/skill_lock_verifier_interface.py +31 -0
  1057. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/skill_markdown_parser_interface.py +20 -0
  1058. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/spend_ceiling_interface.py +34 -0
  1059. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/spend_guard_interface.py +32 -0
  1060. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/start_pipeline_interface.py +21 -0
  1061. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/story_bible_parser_interface.py +20 -0
  1062. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/tool_lock_auditor_interface.py +22 -0
  1063. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/tool_lock_editor_interface.py +42 -0
  1064. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/tool_lock_verifier_interface.py +37 -0
  1065. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/tool_runner_interface.py +40 -0
  1066. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/tool_server_fleet_interface.py +29 -0
  1067. engineering_influence-1.0.0/src/engineering_influence/services/interfaces/verbatim_dashes_interface.py +14 -0
  1068. engineering_influence-1.0.0/src/engineering_influence/services/job_router.py +31 -0
  1069. engineering_influence-1.0.0/src/engineering_influence/services/kind_stage_executor.py +28 -0
  1070. engineering_influence-1.0.0/src/engineering_influence/services/list_runs.py +18 -0
  1071. engineering_influence-1.0.0/src/engineering_influence/services/local_book_run.py +116 -0
  1072. engineering_influence-1.0.0/src/engineering_influence/services/local_default_model.py +74 -0
  1073. engineering_influence-1.0.0/src/engineering_influence/services/local_model_doctor.py +134 -0
  1074. engineering_influence-1.0.0/src/engineering_influence/services/lock_stage_guidance.py +84 -0
  1075. engineering_influence-1.0.0/src/engineering_influence/services/lock_tool_grants.py +20 -0
  1076. engineering_influence-1.0.0/src/engineering_influence/services/manuscript_project.py +48 -0
  1077. engineering_influence-1.0.0/src/engineering_influence/services/mcp_client.py +297 -0
  1078. engineering_influence-1.0.0/src/engineering_influence/services/mcp_client_factory.py +24 -0
  1079. engineering_influence-1.0.0/src/engineering_influence/services/mcp_connection.py +46 -0
  1080. engineering_influence-1.0.0/src/engineering_influence/services/mcp_server_launcher.py +112 -0
  1081. engineering_influence-1.0.0/src/engineering_influence/services/mcp_server_probe.py +80 -0
  1082. engineering_influence-1.0.0/src/engineering_influence/services/mcp_tool.py +48 -0
  1083. engineering_influence-1.0.0/src/engineering_influence/services/mcp_tool_factory.py +25 -0
  1084. engineering_influence-1.0.0/src/engineering_influence/services/metadata_parser.py +108 -0
  1085. engineering_influence-1.0.0/src/engineering_influence/services/model_doctor.py +111 -0
  1086. engineering_influence-1.0.0/src/engineering_influence/services/model_stage_executor.py +192 -0
  1087. engineering_influence-1.0.0/src/engineering_influence/services/no_draft_checks.py +17 -0
  1088. engineering_influence-1.0.0/src/engineering_influence/services/no_output_checks.py +13 -0
  1089. engineering_influence-1.0.0/src/engineering_influence/services/no_stage_guidance.py +13 -0
  1090. engineering_influence-1.0.0/src/engineering_influence/services/nonfiction_output_checks.py +34 -0
  1091. engineering_influence-1.0.0/src/engineering_influence/services/nonfiction_recipes.py +60 -0
  1092. engineering_influence-1.0.0/src/engineering_influence/services/nonfiction_revision_passes.py +51 -0
  1093. engineering_influence-1.0.0/src/engineering_influence/services/novel_draft_checks.py +42 -0
  1094. engineering_influence-1.0.0/src/engineering_influence/services/novel_output_checks.py +46 -0
  1095. engineering_influence-1.0.0/src/engineering_influence/services/novel_recipes.py +63 -0
  1096. engineering_influence-1.0.0/src/engineering_influence/services/outline_parser.py +143 -0
  1097. engineering_influence-1.0.0/src/engineering_influence/services/package_book.py +108 -0
  1098. engineering_influence-1.0.0/src/engineering_influence/services/plugin_folder_converter.py +171 -0
  1099. engineering_influence-1.0.0/src/engineering_influence/services/plugin_importer.py +79 -0
  1100. engineering_influence-1.0.0/src/engineering_influence/services/plugin_installer.py +147 -0
  1101. engineering_influence-1.0.0/src/engineering_influence/services/plugin_lock_verifier.py +71 -0
  1102. engineering_influence-1.0.0/src/engineering_influence/services/plugin_marketplace.py +124 -0
  1103. engineering_influence-1.0.0/src/engineering_influence/services/process_job.py +106 -0
  1104. engineering_influence-1.0.0/src/engineering_influence/services/process_run_job.py +54 -0
  1105. engineering_influence-1.0.0/src/engineering_influence/services/publishing/__init__.py +2 -0
  1106. engineering_influence-1.0.0/src/engineering_influence/services/publishing/audit_defaults.py +42 -0
  1107. engineering_influence-1.0.0/src/engineering_influence/services/publishing/audit_report_text.py +47 -0
  1108. engineering_influence-1.0.0/src/engineering_influence/services/publishing/book_auditor.py +107 -0
  1109. engineering_influence-1.0.0/src/engineering_influence/services/publishing/category_check.py +72 -0
  1110. engineering_influence-1.0.0/src/engineering_influence/services/publishing/chapter_opening_check.py +56 -0
  1111. engineering_influence-1.0.0/src/engineering_influence/services/publishing/config_entries.py +32 -0
  1112. engineering_influence-1.0.0/src/engineering_influence/services/publishing/contents_check.py +93 -0
  1113. engineering_influence-1.0.0/src/engineering_influence/services/publishing/folio_reader.py +33 -0
  1114. engineering_influence-1.0.0/src/engineering_influence/services/publishing/forbidden_content_check.py +42 -0
  1115. engineering_influence-1.0.0/src/engineering_influence/services/publishing/format_check.py +69 -0
  1116. engineering_influence-1.0.0/src/engineering_influence/services/publishing/formula_check.py +46 -0
  1117. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/__init__.py +2 -0
  1118. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/audit_defaults_interface.py +10 -0
  1119. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/audit_report_text_interface.py +27 -0
  1120. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/book_auditor_interface.py +22 -0
  1121. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/category_check_interface.py +24 -0
  1122. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/chapter_opening_check_interface.py +25 -0
  1123. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/config_entries_interface.py +20 -0
  1124. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/contents_check_interface.py +16 -0
  1125. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/folio_reader_interface.py +20 -0
  1126. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/forbidden_content_check_interface.py +20 -0
  1127. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/format_check_interface.py +34 -0
  1128. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/formula_check_interface.py +26 -0
  1129. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/issue_recorder_interface.py +28 -0
  1130. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/kdp_geometry_interface.py +14 -0
  1131. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/latex_log_check_interface.py +14 -0
  1132. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/manuscript_text_interface.py +22 -0
  1133. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/metadata_check_interface.py +31 -0
  1134. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/pdf_layout_check_interface.py +22 -0
  1135. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/pdf_structure_check_interface.py +21 -0
  1136. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/pdf_verifier_interface.py +20 -0
  1137. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/pricing_check_interface.py +41 -0
  1138. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/release_auditor_interface.py +26 -0
  1139. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/research_check_interface.py +33 -0
  1140. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/scaffold_check_interface.py +25 -0
  1141. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/source_inventory_check_interface.py +24 -0
  1142. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/text_normalizer_interface.py +14 -0
  1143. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/text_statistics_interface.py +26 -0
  1144. engineering_influence-1.0.0/src/engineering_influence/services/publishing/interfaces/threshold_check_interface.py +32 -0
  1145. engineering_influence-1.0.0/src/engineering_influence/services/publishing/issue_recorder.py +33 -0
  1146. engineering_influence-1.0.0/src/engineering_influence/services/publishing/kdp_geometry.py +22 -0
  1147. engineering_influence-1.0.0/src/engineering_influence/services/publishing/latex_log_check.py +26 -0
  1148. engineering_influence-1.0.0/src/engineering_influence/services/publishing/manuscript_text.py +46 -0
  1149. engineering_influence-1.0.0/src/engineering_influence/services/publishing/metadata_check.py +81 -0
  1150. engineering_influence-1.0.0/src/engineering_influence/services/publishing/pdf_layout_check.py +58 -0
  1151. engineering_influence-1.0.0/src/engineering_influence/services/publishing/pdf_structure_check.py +39 -0
  1152. engineering_influence-1.0.0/src/engineering_influence/services/publishing/pdf_verifier.py +44 -0
  1153. engineering_influence-1.0.0/src/engineering_influence/services/publishing/pricing_check.py +147 -0
  1154. engineering_influence-1.0.0/src/engineering_influence/services/publishing/release_auditor.py +72 -0
  1155. engineering_influence-1.0.0/src/engineering_influence/services/publishing/research_check.py +58 -0
  1156. engineering_influence-1.0.0/src/engineering_influence/services/publishing/scaffold_check.py +49 -0
  1157. engineering_influence-1.0.0/src/engineering_influence/services/publishing/source_inventory_check.py +42 -0
  1158. engineering_influence-1.0.0/src/engineering_influence/services/publishing/text_normalizer.py +20 -0
  1159. engineering_influence-1.0.0/src/engineering_influence/services/publishing/text_statistics.py +35 -0
  1160. engineering_influence-1.0.0/src/engineering_influence/services/publishing/threshold_check.py +101 -0
  1161. engineering_influence-1.0.0/src/engineering_influence/services/quality_report.py +65 -0
  1162. engineering_influence-1.0.0/src/engineering_influence/services/read_run.py +44 -0
  1163. engineering_influence-1.0.0/src/engineering_influence/services/read_skill_tool.py +90 -0
  1164. engineering_influence-1.0.0/src/engineering_influence/services/readiness_doctor.py +119 -0
  1165. engineering_influence-1.0.0/src/engineering_influence/services/readiness_probe.py +40 -0
  1166. engineering_influence-1.0.0/src/engineering_influence/services/release/__init__.py +2 -0
  1167. engineering_influence-1.0.0/src/engineering_influence/services/release/format_policy.py +33 -0
  1168. engineering_influence-1.0.0/src/engineering_influence/services/release/interfaces/__init__.py +2 -0
  1169. engineering_influence-1.0.0/src/engineering_influence/services/release/interfaces/format_policy_interface.py +20 -0
  1170. engineering_influence-1.0.0/src/engineering_influence/services/release/interfaces/page_limit_check_interface.py +20 -0
  1171. engineering_influence-1.0.0/src/engineering_influence/services/release/interfaces/publish_steps_interface.py +36 -0
  1172. engineering_influence-1.0.0/src/engineering_influence/services/release/interfaces/release_summary_interface.py +24 -0
  1173. engineering_influence-1.0.0/src/engineering_influence/services/release/page_limit_check.py +25 -0
  1174. engineering_influence-1.0.0/src/engineering_influence/services/release/publish_pipeline.py +253 -0
  1175. engineering_influence-1.0.0/src/engineering_influence/services/release/publish_steps.py +104 -0
  1176. engineering_influence-1.0.0/src/engineering_influence/services/release/release_summary.py +24 -0
  1177. engineering_influence-1.0.0/src/engineering_influence/services/release_gate.py +71 -0
  1178. engineering_influence-1.0.0/src/engineering_influence/services/resolve_spend_consent.py +81 -0
  1179. engineering_influence-1.0.0/src/engineering_influence/services/resume_run.py +52 -0
  1180. engineering_influence-1.0.0/src/engineering_influence/services/revision_stage_executor.py +357 -0
  1181. engineering_influence-1.0.0/src/engineering_influence/services/run_management.py +54 -0
  1182. engineering_influence-1.0.0/src/engineering_influence/services/run_phase.py +33 -0
  1183. engineering_influence-1.0.0/src/engineering_influence/services/run_progress.py +19 -0
  1184. engineering_influence-1.0.0/src/engineering_influence/services/run_tool_loop.py +122 -0
  1185. engineering_influence-1.0.0/src/engineering_influence/services/score_parser.py +63 -0
  1186. engineering_influence-1.0.0/src/engineering_influence/services/search_doctor.py +74 -0
  1187. engineering_influence-1.0.0/src/engineering_influence/services/skill_converter.py +135 -0
  1188. engineering_influence-1.0.0/src/engineering_influence/services/skill_importer.py +79 -0
  1189. engineering_influence-1.0.0/src/engineering_influence/services/skill_lock_editor.py +127 -0
  1190. engineering_influence-1.0.0/src/engineering_influence/services/skill_lock_verifier.py +83 -0
  1191. engineering_influence-1.0.0/src/engineering_influence/services/skill_markdown_parser.py +135 -0
  1192. engineering_influence-1.0.0/src/engineering_influence/services/spend_ceiling.py +77 -0
  1193. engineering_influence-1.0.0/src/engineering_influence/services/spend_guard.py +46 -0
  1194. engineering_influence-1.0.0/src/engineering_influence/services/stage_executor_router.py +26 -0
  1195. engineering_influence-1.0.0/src/engineering_influence/services/start_pipeline.py +28 -0
  1196. engineering_influence-1.0.0/src/engineering_influence/services/story_bible_parser.py +120 -0
  1197. engineering_influence-1.0.0/src/engineering_influence/services/tool_lock_auditor.py +37 -0
  1198. engineering_influence-1.0.0/src/engineering_influence/services/tool_lock_editor.py +182 -0
  1199. engineering_influence-1.0.0/src/engineering_influence/services/tool_lock_verifier.py +97 -0
  1200. engineering_influence-1.0.0/src/engineering_influence/services/tool_registry.py +34 -0
  1201. engineering_influence-1.0.0/src/engineering_influence/services/tool_runner.py +143 -0
  1202. engineering_influence-1.0.0/src/engineering_influence/services/tool_server_fleet.py +55 -0
  1203. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/__init__.py +2 -0
  1204. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/block_renderer.py +147 -0
  1205. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/book_builder.py +80 -0
  1206. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/chapter_tex.py +59 -0
  1207. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/ebook_document.py +101 -0
  1208. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/inline_renderer.py +76 -0
  1209. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/interfaces/__init__.py +2 -0
  1210. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/interfaces/block_renderer_interface.py +20 -0
  1211. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/interfaces/book_builder_interface.py +20 -0
  1212. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/interfaces/chapter_tex_interface.py +22 -0
  1213. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/interfaces/ebook_document_interface.py +20 -0
  1214. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/interfaces/inline_renderer_interface.py +24 -0
  1215. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/interfaces/latex_escaper_interface.py +18 -0
  1216. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/interfaces/latex_table_interface.py +14 -0
  1217. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/interfaces/markdown_latex_converter_interface.py +14 -0
  1218. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/interfaces/markdown_parser_interface.py +28 -0
  1219. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/interfaces/opening_formatter_interface.py +14 -0
  1220. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/interfaces/print_document_interface.py +20 -0
  1221. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/interfaces/tex_text_interface.py +30 -0
  1222. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/latex_escaper.py +48 -0
  1223. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/latex_table.py +30 -0
  1224. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/markdown_latex_converter.py +49 -0
  1225. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/markdown_parser.py +32 -0
  1226. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/opening_formatter.py +42 -0
  1227. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/print_document.py +132 -0
  1228. engineering_influence-1.0.0/src/engineering_influence/services/typesetting/tex_text.py +77 -0
  1229. engineering_influence-1.0.0/src/engineering_influence/services/verbatim_dashes.py +18 -0
  1230. engineering_influence-1.0.0/src/engineering_influence/services/web_search_tool.py +60 -0
  1231. engineering_influence-1.0.0/tests/architecture/architecture_metrics.py +260 -0
  1232. engineering_influence-1.0.0/tests/architecture/test_architecture.py +68 -0
  1233. engineering_influence-1.0.0/tests/architecture/test_enum_protocols.py +46 -0
  1234. engineering_influence-1.0.0/tests/architecture/test_move_map.py +115 -0
  1235. engineering_influence-1.0.0/tests/architecture/test_no_patching.py +57 -0
  1236. engineering_influence-1.0.0/tests/architecture/test_rules.py +27 -0
  1237. engineering_influence-1.0.0/tests/architecture/test_sdk_interfaces.py +56 -0
  1238. engineering_influence-1.0.0/tests/cassettes/README.md +6 -0
  1239. engineering_influence-1.0.0/tests/conftest.py +55 -0
  1240. engineering_influence-1.0.0/tests/contracts/command_tree.py +63 -0
  1241. engineering_influence-1.0.0/tests/contracts/snapshot.py +64 -0
  1242. engineering_influence-1.0.0/tests/contracts/snapshots/book_config_v1_schema.json +142 -0
  1243. engineering_influence-1.0.0/tests/contracts/snapshots/brief_v1_schema.json +175 -0
  1244. engineering_influence-1.0.0/tests/contracts/snapshots/cli_command_tree.json +2054 -0
  1245. engineering_influence-1.0.0/tests/contracts/snapshots/error_codes.json +110 -0
  1246. engineering_influence-1.0.0/tests/contracts/snapshots/issue_codes.json +11 -0
  1247. engineering_influence-1.0.0/tests/contracts/snapshots/job_message_v1_schema.json +33 -0
  1248. engineering_influence-1.0.0/tests/contracts/snapshots/mcp_tools.json +150 -0
  1249. engineering_influence-1.0.0/tests/contracts/snapshots/rest_error_shapes.json +32 -0
  1250. engineering_influence-1.0.0/tests/contracts/snapshots/rest_openapi.json +785 -0
  1251. engineering_influence-1.0.0/tests/contracts/snapshots/run_summary_v1_schema.json +151 -0
  1252. engineering_influence-1.0.0/tests/contracts/snapshots/sdk_public_surface.json +308 -0
  1253. engineering_influence-1.0.0/tests/contracts/snapshots/webhook_v1.json +66 -0
  1254. engineering_influence-1.0.0/tests/contracts/test_cli.py +16 -0
  1255. engineering_influence-1.0.0/tests/contracts/test_error_codes.py +101 -0
  1256. engineering_influence-1.0.0/tests/contracts/test_rest.py +61 -0
  1257. engineering_influence-1.0.0/tests/contracts/test_schemas.py +24 -0
  1258. engineering_influence-1.0.0/tests/contracts/test_sdk_and_mcp.py +94 -0
  1259. engineering_influence-1.0.0/tests/contracts/test_webhooks.py +126 -0
  1260. engineering_influence-1.0.0/tests/e2e/test_dev_build_stage.py +162 -0
  1261. engineering_influence-1.0.0/tests/e2e/test_distribution.py +324 -0
  1262. engineering_influence-1.0.0/tests/e2e/test_docs_workflow.py +115 -0
  1263. engineering_influence-1.0.0/tests/e2e/test_examples.py +191 -0
  1264. engineering_influence-1.0.0/tests/e2e/test_install_script.py +567 -0
  1265. engineering_influence-1.0.0/tests/e2e/test_release_creation.py +194 -0
  1266. engineering_influence-1.0.0/tests/e2e/test_release_guard.py +392 -0
  1267. engineering_influence-1.0.0/tests/e2e/test_release_images.py +283 -0
  1268. engineering_influence-1.0.0/tests/fixtures/fixture_book/books/fixture.toml +33 -0
  1269. engineering_influence-1.0.0/tests/fixtures/fixture_book/expected/snapshot.json +117 -0
  1270. engineering_influence-1.0.0/tests/fixtures/fixture_book/src/00-foreword.md +8 -0
  1271. engineering_influence-1.0.0/tests/fixtures/fixture_book/src/01-first.md +21 -0
  1272. engineering_influence-1.0.0/tests/fixtures/fixture_book/src/02-second.md +19 -0
  1273. engineering_influence-1.0.0/tests/fixtures/fixture_book/src/03-third.md +13 -0
  1274. engineering_influence-1.0.0/tests/fixtures/fixture_book/src/90-notes.md +3 -0
  1275. engineering_influence-1.0.0/tests/fixtures/fixture_novel/books/novel.toml +35 -0
  1276. engineering_influence-1.0.0/tests/fixtures/fixture_novel/expected/snapshot.json +113 -0
  1277. engineering_influence-1.0.0/tests/fixtures/fixture_novel/src/00-note.md +8 -0
  1278. engineering_influence-1.0.0/tests/fixtures/fixture_novel/src/01-departure.md +22 -0
  1279. engineering_influence-1.0.0/tests/fixtures/fixture_novel/src/02-the-inn.md +22 -0
  1280. engineering_influence-1.0.0/tests/fixtures/fixture_novel/src/03-arrival.md +14 -0
  1281. engineering_influence-1.0.0/tests/fixtures/fixture_novel/src/90-notes.md +3 -0
  1282. engineering_influence-1.0.0/tests/fixtures/fixture_pocket/books/pocket.toml +27 -0
  1283. engineering_influence-1.0.0/tests/fixtures/fixture_pocket/expected/snapshot.json +86 -0
  1284. engineering_influence-1.0.0/tests/fixtures/fixture_pocket/src/00-foreword.md +8 -0
  1285. engineering_influence-1.0.0/tests/fixtures/fixture_pocket/src/01-first.md +21 -0
  1286. engineering_influence-1.0.0/tests/fixtures/fixture_pocket/src/02-second.md +19 -0
  1287. engineering_influence-1.0.0/tests/fixtures/fixture_pocket/src/03-third.md +13 -0
  1288. engineering_influence-1.0.0/tests/fixtures/fixture_pocket/src/90-notes.md +3 -0
  1289. engineering_influence-1.0.0/tests/fixtures/mcp/stdio_server.py +233 -0
  1290. engineering_influence-1.0.0/tests/fixtures/model_cassettes/anthropic/completion.json +24 -0
  1291. engineering_influence-1.0.0/tests/fixtures/model_cassettes/anthropic/completion_cached.json +24 -0
  1292. engineering_influence-1.0.0/tests/fixtures/model_cassettes/anthropic/count_tokens.json +7 -0
  1293. engineering_influence-1.0.0/tests/fixtures/model_cassettes/anthropic/error_auth.json +11 -0
  1294. engineering_influence-1.0.0/tests/fixtures/model_cassettes/anthropic/error_credit.json +11 -0
  1295. engineering_influence-1.0.0/tests/fixtures/model_cassettes/anthropic/error_invalid.json +11 -0
  1296. engineering_influence-1.0.0/tests/fixtures/model_cassettes/anthropic/error_overloaded.json +11 -0
  1297. engineering_influence-1.0.0/tests/fixtures/model_cassettes/anthropic/error_rate.json +11 -0
  1298. engineering_influence-1.0.0/tests/fixtures/model_cassettes/anthropic/refusal.json +17 -0
  1299. engineering_influence-1.0.0/tests/fixtures/model_cassettes/anthropic/tool_use.json +32 -0
  1300. engineering_influence-1.0.0/tests/fixtures/model_cassettes/anthropic/truncated.json +22 -0
  1301. engineering_influence-1.0.0/tests/fixtures/model_cassettes/openai_compatible/completion.json +25 -0
  1302. engineering_influence-1.0.0/tests/fixtures/model_cassettes/openai_compatible/completion_cached.json +28 -0
  1303. engineering_influence-1.0.0/tests/fixtures/model_cassettes/openai_compatible/content_filter.json +24 -0
  1304. engineering_influence-1.0.0/tests/fixtures/model_cassettes/openai_compatible/error_auth.json +12 -0
  1305. engineering_influence-1.0.0/tests/fixtures/model_cassettes/openai_compatible/error_context.json +12 -0
  1306. engineering_influence-1.0.0/tests/fixtures/model_cassettes/openai_compatible/error_quota.json +12 -0
  1307. engineering_influence-1.0.0/tests/fixtures/model_cassettes/openai_compatible/error_rate.json +12 -0
  1308. engineering_influence-1.0.0/tests/fixtures/model_cassettes/openai_compatible/error_server.json +12 -0
  1309. engineering_influence-1.0.0/tests/fixtures/model_cassettes/openai_compatible/refusal.json +24 -0
  1310. engineering_influence-1.0.0/tests/fixtures/model_cassettes/openai_compatible/tool_use.json +34 -0
  1311. engineering_influence-1.0.0/tests/fixtures/model_cassettes/openai_compatible/truncated.json +24 -0
  1312. engineering_influence-1.0.0/tests/fixtures/prompt_templates.lock.toml +78 -0
  1313. engineering_influence-1.0.0/tests/integration/conftest.py +67 -0
  1314. engineering_influence-1.0.0/tests/integration/rig.py +159 -0
  1315. engineering_influence-1.0.0/tests/integration/stack.sh +73 -0
  1316. engineering_influence-1.0.0/tests/integration/test_postgres_schema.py +133 -0
  1317. engineering_influence-1.0.0/tests/integration/test_postgres_stores.py +138 -0
  1318. engineering_influence-1.0.0/tests/integration/test_rabbitmq_jobs.py +195 -0
  1319. engineering_influence-1.0.0/tests/integration/test_runs_through_the_stack.py +213 -0
  1320. engineering_influence-1.0.0/tests/local_server.py +93 -0
  1321. engineering_influence-1.0.0/tests/paid/test_live_smoke.py +42 -0
  1322. engineering_influence-1.0.0/tests/paid_gate.py +33 -0
  1323. engineering_influence-1.0.0/tests/parity/test_consent_parity.py +221 -0
  1324. engineering_influence-1.0.0/tests/parity/test_run_create_parity.py +145 -0
  1325. engineering_influence-1.0.0/tests/parity/test_run_management_parity.py +240 -0
  1326. engineering_influence-1.0.0/tests/parity/test_run_read_parity.py +204 -0
  1327. engineering_influence-1.0.0/tests/parity/test_surface_parity.py +275 -0
  1328. engineering_influence-1.0.0/tests/smoke_rehearsal.py +232 -0
  1329. engineering_influence-1.0.0/tests/smoke_run.py +238 -0
  1330. engineering_influence-1.0.0/tests/toolchain/fixture_snapshot.py +71 -0
  1331. engineering_influence-1.0.0/tests/toolchain/test_build_limits.py +145 -0
  1332. engineering_influence-1.0.0/tests/toolchain/test_fixture_book.py +150 -0
  1333. engineering_influence-1.0.0/tests/toolchain/test_hostile_book.py +207 -0
  1334. engineering_influence-1.0.0/tests/toolchain/test_run_builds_book.py +175 -0
  1335. engineering_influence-1.0.0/tests/unit/contracts/test_brief_inputs_contract.py +80 -0
  1336. engineering_influence-1.0.0/tests/unit/contracts/test_project_request.py +40 -0
  1337. engineering_influence-1.0.0/tests/unit/contracts/test_run_contract.py +110 -0
  1338. engineering_influence-1.0.0/tests/unit/contracts/test_versioned_contracts.py +235 -0
  1339. engineering_influence-1.0.0/tests/unit/models/test_author_profile.py +137 -0
  1340. engineering_influence-1.0.0/tests/unit/models/test_book_metadata.py +94 -0
  1341. engineering_influence-1.0.0/tests/unit/models/test_book_pricing.py +44 -0
  1342. engineering_influence-1.0.0/tests/unit/models/test_cost_estimate_and_plan.py +99 -0
  1343. engineering_influence-1.0.0/tests/unit/models/test_draft_recipe.py +129 -0
  1344. engineering_influence-1.0.0/tests/unit/models/test_evaluation_models.py +158 -0
  1345. engineering_influence-1.0.0/tests/unit/models/test_export_summary.py +32 -0
  1346. engineering_influence-1.0.0/tests/unit/models/test_journal_and_failure_models.py +99 -0
  1347. engineering_influence-1.0.0/tests/unit/models/test_manuscript_audit.py +64 -0
  1348. engineering_influence-1.0.0/tests/unit/models/test_model_answer.py +40 -0
  1349. engineering_influence-1.0.0/tests/unit/models/test_model_catalog.py +165 -0
  1350. engineering_influence-1.0.0/tests/unit/models/test_model_types.py +196 -0
  1351. engineering_influence-1.0.0/tests/unit/models/test_outline_models.py +142 -0
  1352. engineering_influence-1.0.0/tests/unit/models/test_plugin_index_models.py +145 -0
  1353. engineering_influence-1.0.0/tests/unit/models/test_plugin_models.py +300 -0
  1354. engineering_influence-1.0.0/tests/unit/models/test_prompt_template.py +155 -0
  1355. engineering_influence-1.0.0/tests/unit/models/test_revision_pass.py +71 -0
  1356. engineering_influence-1.0.0/tests/unit/models/test_run_control_models.py +143 -0
  1357. engineering_influence-1.0.0/tests/unit/models/test_run_models.py +232 -0
  1358. engineering_influence-1.0.0/tests/unit/models/test_skill_document.py +79 -0
  1359. engineering_influence-1.0.0/tests/unit/models/test_skill_models.py +328 -0
  1360. engineering_influence-1.0.0/tests/unit/models/test_skill_reference.py +118 -0
  1361. engineering_influence-1.0.0/tests/unit/models/test_spend_limits.py +57 -0
  1362. engineering_influence-1.0.0/tests/unit/models/test_story_bible_models.py +289 -0
  1363. engineering_influence-1.0.0/tests/unit/models/test_tool_limits.py +26 -0
  1364. engineering_influence-1.0.0/tests/unit/observability/test_observability_alerts_and_metrics.py +81 -0
  1365. engineering_influence-1.0.0/tests/unit/observability/test_observability_api.py +340 -0
  1366. engineering_influence-1.0.0/tests/unit/observability/test_observability_health.py +136 -0
  1367. engineering_influence-1.0.0/tests/unit/observability/test_observability_prometheus.py +61 -0
  1368. engineering_influence-1.0.0/tests/unit/observability/test_observability_trace_and_logging.py +232 -0
  1369. engineering_influence-1.0.0/tests/unit/observability/test_observability_tracing_and_liveness.py +306 -0
  1370. engineering_influence-1.0.0/tests/unit/publishing/conftest.py +28 -0
  1371. engineering_influence-1.0.0/tests/unit/publishing/covers/conftest.py +53 -0
  1372. engineering_influence-1.0.0/tests/unit/publishing/covers/test_cover_builder.py +243 -0
  1373. engineering_influence-1.0.0/tests/unit/publishing/covers/test_cover_files_and_verifiers.py +251 -0
  1374. engineering_influence-1.0.0/tests/unit/publishing/covers/test_cover_geometry.py +190 -0
  1375. engineering_influence-1.0.0/tests/unit/publishing/covers/test_cover_toolkit.py +205 -0
  1376. engineering_influence-1.0.0/tests/unit/publishing/covers/test_cover_typesetting.py +368 -0
  1377. engineering_influence-1.0.0/tests/unit/publishing/epub/conftest.py +218 -0
  1378. engineering_influence-1.0.0/tests/unit/publishing/epub/test_epub_pipeline.py +210 -0
  1379. engineering_influence-1.0.0/tests/unit/publishing/epub/test_epub_transforms.py +263 -0
  1380. engineering_influence-1.0.0/tests/unit/publishing/epub/test_epub_verifier.py +329 -0
  1381. engineering_influence-1.0.0/tests/unit/publishing/qa/test_visual_qa.py +231 -0
  1382. engineering_influence-1.0.0/tests/unit/publishing/release/test_publish_pipeline.py +459 -0
  1383. engineering_influence-1.0.0/tests/unit/publishing/release/test_release_evidence.py +285 -0
  1384. engineering_influence-1.0.0/tests/unit/publishing/test_book_auditor.py +210 -0
  1385. engineering_influence-1.0.0/tests/unit/publishing/test_contents_check.py +62 -0
  1386. engineering_influence-1.0.0/tests/unit/publishing/test_filesystem_manuscript_source.py +32 -0
  1387. engineering_influence-1.0.0/tests/unit/publishing/test_package_assets.py +69 -0
  1388. engineering_influence-1.0.0/tests/unit/publishing/test_pdf_checks.py +177 -0
  1389. engineering_influence-1.0.0/tests/unit/publishing/test_pdf_verifier.py +152 -0
  1390. engineering_influence-1.0.0/tests/unit/publishing/test_project_config.py +123 -0
  1391. engineering_influence-1.0.0/tests/unit/publishing/test_release_auditor.py +422 -0
  1392. engineering_influence-1.0.0/tests/unit/publishing/test_text_checks.py +121 -0
  1393. engineering_influence-1.0.0/tests/unit/publishing/test_text_policy.py +36 -0
  1394. engineering_influence-1.0.0/tests/unit/publishing/test_trim_and_paper.py +75 -0
  1395. engineering_influence-1.0.0/tests/unit/publishing/typesetting/test_book_model.py +210 -0
  1396. engineering_influence-1.0.0/tests/unit/publishing/typesetting/test_documents_and_builder.py +288 -0
  1397. engineering_influence-1.0.0/tests/unit/publishing/typesetting/test_latex_injection.py +353 -0
  1398. engineering_influence-1.0.0/tests/unit/publishing/typesetting/test_markdown_rendering.py +225 -0
  1399. engineering_influence-1.0.0/tests/unit/publishing/typesetting/test_tool_environment.py +38 -0
  1400. engineering_influence-1.0.0/tests/unit/repositories/test_artifact_stores.py +212 -0
  1401. engineering_influence-1.0.0/tests/unit/repositories/test_run_and_journal_repositories.py +263 -0
  1402. engineering_influence-1.0.0/tests/unit/repositories/test_run_codec_inputs.py +45 -0
  1403. engineering_influence-1.0.0/tests/unit/runtime/test_evaluation_runtime.py +350 -0
  1404. engineering_influence-1.0.0/tests/unit/runtime/test_local_book_maker.py +185 -0
  1405. engineering_influence-1.0.0/tests/unit/runtime/test_local_book_runtime.py +252 -0
  1406. engineering_influence-1.0.0/tests/unit/runtime/test_mcp_runtime.py +275 -0
  1407. engineering_influence-1.0.0/tests/unit/runtime/test_runtime_broker.py +388 -0
  1408. engineering_influence-1.0.0/tests/unit/runtime/test_runtime_optional_extras.py +130 -0
  1409. engineering_influence-1.0.0/tests/unit/runtime/test_runtime_process_job.py +226 -0
  1410. engineering_influence-1.0.0/tests/unit/runtime/test_runtime_roots.py +435 -0
  1411. engineering_influence-1.0.0/tests/unit/runtime/test_runtime_settings_and_cli.py +423 -0
  1412. engineering_influence-1.0.0/tests/unit/runtime/test_spend_ceiling_wiring.py +182 -0
  1413. engineering_influence-1.0.0/tests/unit/runtime/test_stage_executor_runtime.py +803 -0
  1414. engineering_influence-1.0.0/tests/unit/runtime/test_stage_executor_runtime_locked_servers.py +527 -0
  1415. engineering_influence-1.0.0/tests/unit/runtime/test_stage_executor_runtime_outline.py +164 -0
  1416. engineering_influence-1.0.0/tests/unit/runtime/test_stage_executor_runtime_skills.py +477 -0
  1417. engineering_influence-1.0.0/tests/unit/runtime/test_worker_runs_end_to_end.py +164 -0
  1418. engineering_influence-1.0.0/tests/unit/security/test_security_api_guard.py +180 -0
  1419. engineering_influence-1.0.0/tests/unit/security/test_security_paths_and_uploads.py +126 -0
  1420. engineering_influence-1.0.0/tests/unit/security/test_security_rate_limiter.py +49 -0
  1421. engineering_influence-1.0.0/tests/unit/security/test_security_secrets_and_keys.py +78 -0
  1422. engineering_influence-1.0.0/tests/unit/security/test_security_url_policy.py +84 -0
  1423. engineering_influence-1.0.0/tests/unit/security/test_security_webhooks.py +171 -0
  1424. engineering_influence-1.0.0/tests/unit/services/test_advance_run.py +442 -0
  1425. engineering_influence-1.0.0/tests/unit/services/test_assemble_stage_executor.py +334 -0
  1426. engineering_influence-1.0.0/tests/unit/services/test_audit_stage_executor.py +182 -0
  1427. engineering_influence-1.0.0/tests/unit/services/test_book_config_writer.py +183 -0
  1428. engineering_influence-1.0.0/tests/unit/services/test_build_stage_executor.py +168 -0
  1429. engineering_influence-1.0.0/tests/unit/services/test_call_model_tools.py +241 -0
  1430. engineering_influence-1.0.0/tests/unit/services/test_chapter_cleaner.py +149 -0
  1431. engineering_influence-1.0.0/tests/unit/services/test_continuity_checker.py +423 -0
  1432. engineering_influence-1.0.0/tests/unit/services/test_cost_estimator.py +179 -0
  1433. engineering_influence-1.0.0/tests/unit/services/test_create_and_list_runs.py +154 -0
  1434. engineering_influence-1.0.0/tests/unit/services/test_dash_rewriter.py +46 -0
  1435. engineering_influence-1.0.0/tests/unit/services/test_draft_stage_executor.py +491 -0
  1436. engineering_influence-1.0.0/tests/unit/services/test_evaluation_services.py +491 -0
  1437. engineering_influence-1.0.0/tests/unit/services/test_export_run.py +109 -0
  1438. engineering_influence-1.0.0/tests/unit/services/test_fallback_search_provider.py +91 -0
  1439. engineering_influence-1.0.0/tests/unit/services/test_http_mcp_end_to_end.py +267 -0
  1440. engineering_influence-1.0.0/tests/unit/services/test_job_routing.py +125 -0
  1441. engineering_influence-1.0.0/tests/unit/services/test_local_book_run.py +202 -0
  1442. engineering_influence-1.0.0/tests/unit/services/test_local_model_doctor.py +190 -0
  1443. engineering_influence-1.0.0/tests/unit/services/test_lock_stage_guidance.py +249 -0
  1444. engineering_influence-1.0.0/tests/unit/services/test_manuscript_project.py +56 -0
  1445. engineering_influence-1.0.0/tests/unit/services/test_mcp_client.py +721 -0
  1446. engineering_influence-1.0.0/tests/unit/services/test_mcp_runtime_services.py +522 -0
  1447. engineering_influence-1.0.0/tests/unit/services/test_mcp_server_probe.py +256 -0
  1448. engineering_influence-1.0.0/tests/unit/services/test_metadata_parser.py +172 -0
  1449. engineering_influence-1.0.0/tests/unit/services/test_model_stage_executor.py +398 -0
  1450. engineering_influence-1.0.0/tests/unit/services/test_model_stage_executor_checks.py +136 -0
  1451. engineering_influence-1.0.0/tests/unit/services/test_model_stage_executor_grants.py +179 -0
  1452. engineering_influence-1.0.0/tests/unit/services/test_model_stage_executor_skills.py +195 -0
  1453. engineering_influence-1.0.0/tests/unit/services/test_nonfiction_recipes.py +134 -0
  1454. engineering_influence-1.0.0/tests/unit/services/test_nonfiction_revision_passes.py +54 -0
  1455. engineering_influence-1.0.0/tests/unit/services/test_novel_draft.py +279 -0
  1456. engineering_influence-1.0.0/tests/unit/services/test_novel_stage_parts.py +217 -0
  1457. engineering_influence-1.0.0/tests/unit/services/test_outline_parser.py +257 -0
  1458. engineering_influence-1.0.0/tests/unit/services/test_output_checks.py +100 -0
  1459. engineering_influence-1.0.0/tests/unit/services/test_package_book.py +291 -0
  1460. engineering_influence-1.0.0/tests/unit/services/test_plugin_marketplace.py +294 -0
  1461. engineering_influence-1.0.0/tests/unit/services/test_plugin_services.py +335 -0
  1462. engineering_influence-1.0.0/tests/unit/services/test_quality_report.py +92 -0
  1463. engineering_influence-1.0.0/tests/unit/services/test_read_run.py +88 -0
  1464. engineering_influence-1.0.0/tests/unit/services/test_read_skill_tool.py +120 -0
  1465. engineering_influence-1.0.0/tests/unit/services/test_readiness_doctor.py +260 -0
  1466. engineering_influence-1.0.0/tests/unit/services/test_research_tools.py +215 -0
  1467. engineering_influence-1.0.0/tests/unit/services/test_resume_and_cancel_run.py +260 -0
  1468. engineering_influence-1.0.0/tests/unit/services/test_revision_stage_executor.py +564 -0
  1469. engineering_influence-1.0.0/tests/unit/services/test_run_lifecycle_machine.py +187 -0
  1470. engineering_influence-1.0.0/tests/unit/services/test_run_tool_loop.py +258 -0
  1471. engineering_influence-1.0.0/tests/unit/services/test_search_doctor.py +152 -0
  1472. engineering_influence-1.0.0/tests/unit/services/test_skill_converter.py +224 -0
  1473. engineering_influence-1.0.0/tests/unit/services/test_skill_importer.py +185 -0
  1474. engineering_influence-1.0.0/tests/unit/services/test_skill_lock_editor.py +296 -0
  1475. engineering_influence-1.0.0/tests/unit/services/test_skill_lock_verifier.py +185 -0
  1476. engineering_influence-1.0.0/tests/unit/services/test_skill_markdown_parser.py +208 -0
  1477. engineering_influence-1.0.0/tests/unit/services/test_spend_ceiling.py +308 -0
  1478. engineering_influence-1.0.0/tests/unit/services/test_spend_ceiling_property.py +69 -0
  1479. engineering_influence-1.0.0/tests/unit/services/test_spend_guard_property.py +69 -0
  1480. engineering_influence-1.0.0/tests/unit/services/test_stage_executor_router.py +61 -0
  1481. engineering_influence-1.0.0/tests/unit/services/test_stage_run_end_to_end.py +658 -0
  1482. engineering_influence-1.0.0/tests/unit/services/test_story_bible_parser.py +194 -0
  1483. engineering_influence-1.0.0/tests/unit/services/test_tool_lock_auditor.py +83 -0
  1484. engineering_influence-1.0.0/tests/unit/services/test_tool_lock_editor.py +308 -0
  1485. engineering_influence-1.0.0/tests/unit/services/test_tool_lock_grants_editing.py +152 -0
  1486. engineering_influence-1.0.0/tests/unit/services/test_tool_lock_verifier.py +217 -0
  1487. engineering_influence-1.0.0/tests/unit/services/test_tool_loop_end_to_end.py +261 -0
  1488. engineering_influence-1.0.0/tests/unit/services/test_tool_registry.py +55 -0
  1489. engineering_influence-1.0.0/tests/unit/services/test_tool_runner.py +400 -0
  1490. engineering_influence-1.0.0/tests/unit/services/test_verbatim_dashes.py +22 -0
  1491. engineering_influence-1.0.0/tests/unit/test_acp_application.py +333 -0
  1492. engineering_influence-1.0.0/tests/unit/test_acp_cli.py +95 -0
  1493. engineering_influence-1.0.0/tests/unit/test_acp_consent.py +182 -0
  1494. engineering_influence-1.0.0/tests/unit/test_acp_load.py +185 -0
  1495. engineering_influence-1.0.0/tests/unit/test_acp_progress.py +227 -0
  1496. engineering_influence-1.0.0/tests/unit/test_acp_runtime.py +32 -0
  1497. engineering_influence-1.0.0/tests/unit/test_anthropic_model.py +260 -0
  1498. engineering_influence-1.0.0/tests/unit/test_application_error.py +66 -0
  1499. engineering_influence-1.0.0/tests/unit/test_artifact.py +22 -0
  1500. engineering_influence-1.0.0/tests/unit/test_ask_model.py +253 -0
  1501. engineering_influence-1.0.0/tests/unit/test_book_build_wiring.py +104 -0
  1502. engineering_influence-1.0.0/tests/unit/test_book_create_cli.py +412 -0
  1503. engineering_influence-1.0.0/tests/unit/test_brave_search_provider.py +216 -0
  1504. engineering_influence-1.0.0/tests/unit/test_brief_reader.py +32 -0
  1505. engineering_influence-1.0.0/tests/unit/test_build_docs_site.py +408 -0
  1506. engineering_influence-1.0.0/tests/unit/test_build_tool_limits.py +172 -0
  1507. engineering_influence-1.0.0/tests/unit/test_call_model.py +319 -0
  1508. engineering_influence-1.0.0/tests/unit/test_cassette_models.py +135 -0
  1509. engineering_influence-1.0.0/tests/unit/test_cassette_recording_transport.py +185 -0
  1510. engineering_influence-1.0.0/tests/unit/test_cassette_redactor.py +96 -0
  1511. engineering_influence-1.0.0/tests/unit/test_cassette_replay_transport.py +153 -0
  1512. engineering_influence-1.0.0/tests/unit/test_cassette_round_trip.py +140 -0
  1513. engineering_influence-1.0.0/tests/unit/test_class_inventory.py +72 -0
  1514. engineering_influence-1.0.0/tests/unit/test_cli_and_ports.py +101 -0
  1515. engineering_influence-1.0.0/tests/unit/test_committed_cassettes.py +17 -0
  1516. engineering_influence-1.0.0/tests/unit/test_consent_surfaces.py +173 -0
  1517. engineering_influence-1.0.0/tests/unit/test_content_levels.py +272 -0
  1518. engineering_influence-1.0.0/tests/unit/test_context_assembler.py +410 -0
  1519. engineering_influence-1.0.0/tests/unit/test_controller_and_api.py +65 -0
  1520. engineering_influence-1.0.0/tests/unit/test_covers_facade.py +69 -0
  1521. engineering_influence-1.0.0/tests/unit/test_db_cli.py +99 -0
  1522. engineering_influence-1.0.0/tests/unit/test_deterministic_stage_executor.py +53 -0
  1523. engineering_influence-1.0.0/tests/unit/test_directory_plugin_folder_reader.py +218 -0
  1524. engineering_influence-1.0.0/tests/unit/test_directory_project_files_writer.py +107 -0
  1525. engineering_influence-1.0.0/tests/unit/test_directory_skill_files.py +146 -0
  1526. engineering_influence-1.0.0/tests/unit/test_dispatch_outbox.py +165 -0
  1527. engineering_influence-1.0.0/tests/unit/test_docs_match_code.py +432 -0
  1528. engineering_influence-1.0.0/tests/unit/test_doctor_cli.py +1051 -0
  1529. engineering_influence-1.0.0/tests/unit/test_error_codes_documented.py +139 -0
  1530. engineering_influence-1.0.0/tests/unit/test_evaluate_cli.py +192 -0
  1531. engineering_influence-1.0.0/tests/unit/test_file_run_input_reader.py +91 -0
  1532. engineering_influence-1.0.0/tests/unit/test_fold_changelog.py +83 -0
  1533. engineering_influence-1.0.0/tests/unit/test_html_text_extractor.py +194 -0
  1534. engineering_influence-1.0.0/tests/unit/test_http_bundle_fetcher.py +207 -0
  1535. engineering_influence-1.0.0/tests/unit/test_http_mcp_transport.py +817 -0
  1536. engineering_influence-1.0.0/tests/unit/test_http_mcp_transport_factory.py +188 -0
  1537. engineering_influence-1.0.0/tests/unit/test_http_model_probe.py +142 -0
  1538. engineering_influence-1.0.0/tests/unit/test_http_ollama_server.py +121 -0
  1539. engineering_influence-1.0.0/tests/unit/test_http_source_fetcher.py +467 -0
  1540. engineering_influence-1.0.0/tests/unit/test_inject_docs_meta.py +270 -0
  1541. engineering_influence-1.0.0/tests/unit/test_json_cassette_store.py +204 -0
  1542. engineering_influence-1.0.0/tests/unit/test_json_marketplace_parser.py +161 -0
  1543. engineering_influence-1.0.0/tests/unit/test_lazy_bundle_fetcher.py +63 -0
  1544. engineering_influence-1.0.0/tests/unit/test_lazy_remote_transport_factory.py +102 -0
  1545. engineering_influence-1.0.0/tests/unit/test_local_default_model.py +145 -0
  1546. engineering_influence-1.0.0/tests/unit/test_local_searxng_files.py +52 -0
  1547. engineering_influence-1.0.0/tests/unit/test_manuscript_build.py +77 -0
  1548. engineering_influence-1.0.0/tests/unit/test_marketplace_models.py +92 -0
  1549. engineering_influence-1.0.0/tests/unit/test_mcp.py +103 -0
  1550. engineering_influence-1.0.0/tests/unit/test_mcp_command_and_findings.py +116 -0
  1551. engineering_influence-1.0.0/tests/unit/test_mcp_grants.py +129 -0
  1552. engineering_influence-1.0.0/tests/unit/test_mcp_models.py +314 -0
  1553. engineering_influence-1.0.0/tests/unit/test_mcp_remote_models.py +175 -0
  1554. engineering_influence-1.0.0/tests/unit/test_model_doctor.py +201 -0
  1555. engineering_influence-1.0.0/tests/unit/test_model_interface.py +70 -0
  1556. engineering_influence-1.0.0/tests/unit/test_model_profile.py +85 -0
  1557. engineering_influence-1.0.0/tests/unit/test_model_reply.py +32 -0
  1558. engineering_influence-1.0.0/tests/unit/test_model_tool_use.py +495 -0
  1559. engineering_influence-1.0.0/tests/unit/test_openai_compatible_model.py +256 -0
  1560. engineering_influence-1.0.0/tests/unit/test_paid_gate.py +58 -0
  1561. engineering_influence-1.0.0/tests/unit/test_path_executable_finder.py +64 -0
  1562. engineering_influence-1.0.0/tests/unit/test_phase_run.py +17 -0
  1563. engineering_influence-1.0.0/tests/unit/test_pin_models.py +50 -0
  1564. engineering_influence-1.0.0/tests/unit/test_pinned_tls.py +183 -0
  1565. engineering_influence-1.0.0/tests/unit/test_plugin_folder_converter.py +303 -0
  1566. engineering_influence-1.0.0/tests/unit/test_plugin_import_models.py +97 -0
  1567. engineering_influence-1.0.0/tests/unit/test_plugin_importer.py +151 -0
  1568. engineering_influence-1.0.0/tests/unit/test_plugins_cli.py +711 -0
  1569. engineering_influence-1.0.0/tests/unit/test_plugins_cli_end_to_end.py +192 -0
  1570. engineering_influence-1.0.0/tests/unit/test_plugins_import_end_to_end.py +170 -0
  1571. engineering_influence-1.0.0/tests/unit/test_plugins_marketplace_end_to_end.py +147 -0
  1572. engineering_influence-1.0.0/tests/unit/test_process_meter.py +175 -0
  1573. engineering_influence-1.0.0/tests/unit/test_process_runner.py +337 -0
  1574. engineering_influence-1.0.0/tests/unit/test_project.py +36 -0
  1575. engineering_influence-1.0.0/tests/unit/test_prompt_template_lock.py +99 -0
  1576. engineering_influence-1.0.0/tests/unit/test_public_https_url_pinner.py +231 -0
  1577. engineering_influence-1.0.0/tests/unit/test_publishing_controller_and_cli.py +510 -0
  1578. engineering_influence-1.0.0/tests/unit/test_rabbitmq_queue.py +88 -0
  1579. engineering_influence-1.0.0/tests/unit/test_release_metadata.py +73 -0
  1580. engineering_influence-1.0.0/tests/unit/test_research_models.py +82 -0
  1581. engineering_influence-1.0.0/tests/unit/test_run_cli.py +615 -0
  1582. engineering_influence-1.0.0/tests/unit/test_run_input.py +118 -0
  1583. engineering_influence-1.0.0/tests/unit/test_run_phase.py +58 -0
  1584. engineering_influence-1.0.0/tests/unit/test_run_read_api.py +138 -0
  1585. engineering_influence-1.0.0/tests/unit/test_schema_migrator.py +151 -0
  1586. engineering_influence-1.0.0/tests/unit/test_sdk.py +41 -0
  1587. engineering_influence-1.0.0/tests/unit/test_searxng_search_provider.py +216 -0
  1588. engineering_influence-1.0.0/tests/unit/test_server_environment.py +80 -0
  1589. engineering_influence-1.0.0/tests/unit/test_sha256_file_hasher.py +88 -0
  1590. engineering_influence-1.0.0/tests/unit/test_skill_reference_files.py +94 -0
  1591. engineering_influence-1.0.0/tests/unit/test_skill_source_and_sink.py +104 -0
  1592. engineering_influence-1.0.0/tests/unit/test_skills_cli.py +507 -0
  1593. engineering_influence-1.0.0/tests/unit/test_skills_cli_end_to_end.py +144 -0
  1594. engineering_influence-1.0.0/tests/unit/test_skills_import_end_to_end.py +258 -0
  1595. engineering_influence-1.0.0/tests/unit/test_smoke_run.py +199 -0
  1596. engineering_influence-1.0.0/tests/unit/test_spend_consent.py +223 -0
  1597. engineering_influence-1.0.0/tests/unit/test_spend_guard.py +78 -0
  1598. engineering_influence-1.0.0/tests/unit/test_sqlmodel_ledger.py +15 -0
  1599. engineering_influence-1.0.0/tests/unit/test_sqlmodel_outbox.py +31 -0
  1600. engineering_influence-1.0.0/tests/unit/test_sse_event_reader.py +122 -0
  1601. engineering_influence-1.0.0/tests/unit/test_stage_recipe.py +64 -0
  1602. engineering_influence-1.0.0/tests/unit/test_stamp_dev_version.py +146 -0
  1603. engineering_influence-1.0.0/tests/unit/test_start_pipeline.py +39 -0
  1604. engineering_influence-1.0.0/tests/unit/test_stdio_mcp_transport.py +451 -0
  1605. engineering_influence-1.0.0/tests/unit/test_temp_project_manuscript_auditor.py +166 -0
  1606. engineering_influence-1.0.0/tests/unit/test_temp_project_manuscript_builder.py +197 -0
  1607. engineering_influence-1.0.0/tests/unit/test_toml_author_profile_loader.py +142 -0
  1608. engineering_influence-1.0.0/tests/unit/test_toml_evaluation_files.py +195 -0
  1609. engineering_influence-1.0.0/tests/unit/test_toml_lock_file.py +22 -0
  1610. engineering_influence-1.0.0/tests/unit/test_toml_model_catalog_loader.py +136 -0
  1611. engineering_influence-1.0.0/tests/unit/test_toml_model_profile_loader.py +129 -0
  1612. engineering_influence-1.0.0/tests/unit/test_toml_plugin_index_parser.py +125 -0
  1613. engineering_influence-1.0.0/tests/unit/test_toml_plugin_lock_store.py +179 -0
  1614. engineering_influence-1.0.0/tests/unit/test_toml_plugin_parser.py +169 -0
  1615. engineering_influence-1.0.0/tests/unit/test_toml_plugin_writer.py +96 -0
  1616. engineering_influence-1.0.0/tests/unit/test_toml_prompt_library.py +131 -0
  1617. engineering_influence-1.0.0/tests/unit/test_toml_skill_lock_store.py +166 -0
  1618. engineering_influence-1.0.0/tests/unit/test_toml_skill_parser.py +134 -0
  1619. engineering_influence-1.0.0/tests/unit/test_toml_skill_writer.py +69 -0
  1620. engineering_influence-1.0.0/tests/unit/test_toml_tool_lock_grants.py +122 -0
  1621. engineering_influence-1.0.0/tests/unit/test_toml_tool_lock_store.py +384 -0
  1622. engineering_influence-1.0.0/tests/unit/test_tool_loop_models.py +212 -0
  1623. engineering_influence-1.0.0/tests/unit/test_tool_models.py +223 -0
  1624. engineering_influence-1.0.0/tests/unit/test_tool_result_untrusted.py +34 -0
  1625. engineering_influence-1.0.0/tests/unit/test_tools_cli.py +629 -0
  1626. engineering_influence-1.0.0/tests/unit/test_tools_cli_end_to_end.py +281 -0
  1627. engineering_influence-1.0.0/tests/unit/test_vibey_dispatcher.py +29 -0
  1628. engineering_influence-1.0.0/tests/unit/test_vibey_import_contract.py +53 -0
  1629. engineering_influence-1.0.0/tests/unit/test_vibey_phase_handler.py +60 -0
  1630. engineering_influence-1.0.0/tests/unit/test_vibey_workflow.py +36 -0
  1631. engineering_influence-1.0.0/tests/unit/test_webhook_delivery.py +49 -0
  1632. engineering_influence-1.0.0/tests/unit/test_webhook_signer.py +20 -0
  1633. engineering_influence-1.0.0/tests/unit/test_worker_image_documented.py +70 -0
@@ -0,0 +1,15 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.py[cod]
4
+ .coverage
5
+ .pytest_cache/
6
+ dist/
7
+ build/
8
+ *.egg-info/
9
+ .env
10
+ .import_linter_cache/
11
+ .mypy_cache/
12
+ .ruff_cache/
13
+ htmlcov/
14
+ .site-src/
15
+ site/
@@ -0,0 +1,193 @@
1
+ # Changelog
2
+
3
+ ## Unreleased
4
+
5
+ ## 1.0.0
6
+
7
+ - The local SearXNG in `examples/searxng/` is now pinned by image digest instead of `latest`: the build it was tested with by hand on 2026-11-21 (the container went healthy, the adapter searched against it, and a default instance gave the expected 403 without `json`). It no longer updates itself; the docs say how to move the digest. A test keeps it pinned.
8
+ - A documentation audit against the code (A10) found and fixed claims that had gone stale: the README and `llms.txt` said the writing was still placeholder text and the MCP server was in-memory only, `CONFIGURATION.md` and `ARCHITECTURE.md` said no run could be started through the API, SDK or MCP and that snapshots, budget guards and more MCP tools were not built, `NOVELS.md` said a novel stops after the draft, `RELEASING.md` said no image was published, and `TROUBLESHOOTING.md` described a table race and an import path that no longer exist. `INTERACTIONS.md` now lists `ei serve mcp`, `ei run grant` and `deny`, `ei doctor`, `ei acp` and the `grant_run` and `deny_run` tools, `TESTING.md` lists the toolchain, canary and nightly-evaluation gates, and the README links the docs it had left out, including the threat model.
9
+ - A test now fails when the documents drift from the code: every `EI_*` variable the code reads must have a row in the new index in `docs/CONFIGURATION.md` (and the index may name nothing unused), and every command in the frozen CLI tree and every MCP tool must appear in `docs/INTERACTIONS.md`. It found two commands that were documented only on their own pages, `ei skills import` and `ei plugins import`, which are now in the reference too. Two more tests pin criteria A4 and A5: a book run killed after each of its stages, for both a non-fiction book and a novel, must resume to the same chapters, the same model calls and the same spend as an uninterrupted run, and a property test shows no order of reserving, settling, overrunning and releasing can take a run's spend past its cap. ADR 0003's A8 now says what CI enforces: one global 100% threshold, not one per layer.
10
+ - The front-door documents are rewritten to one pattern, described in the new `docs/STYLE.md`: the bottom line up front, a short scene in which Professor Feynman (a fictional teacher) teaches his student Daniel the one idea the page turns on, then the exact reference. `README.md` now opens with the one install command and the one command that writes a book, and its quickstart is `ei book create`, not the placeholder pipeline. `docs/GETTING_STARTED.md` goes install, check, author profile, first book, then the optional stack. The new `docs/AGENTS_DRIVING.md` gives the exact instructions for an agent with a shell, the Claude Code skill, and the MCP path with its real prerequisites and limits; `llms.txt` is rebuilt to index every document and the new `llms-full.txt` is those instructions in one file for a model. Tests now fail a teaching page that lacks its bottom line or its scene, a relative link or heading anchor that goes nowhere in any tracked Markdown file (this found and fixed two broken links), an install command that differs between pages, and an index that omits a document. The remaining pages are listed in the test as still to be rewritten.
11
+ - Thirteen reference and model pages now follow the documentation pattern (bottom line, a scene, the reference): INTERACTIONS, CONFIGURATION, ARCHITECTURE, COMPATIBILITY, EVALUATION, LOCAL_MODEL, MODEL_CALLS, MODEL_CATALOG, MODEL_PROFILES, LIVE_SMOKE_TEST, NOVELS, PROMPTS and RESEARCH. An independent audit of the new text against the code corrected several statements that were too strong, among them that the research stage's "cite only what you read" rule is an instruction and not a check, that the evaluation bar is on each dimension's mean and the judge is only named separately, and that a model's price is looked up once when the process starts. The reference gained what it lacked: the brief's fields, the REST error codes for runs and budgets, every `ei book` subcommand's flags, the exit codes of `ei run create`, `runs`, `grant` and `serve`, the rubric's dimensions, the author profile's limits, and a table of all nineteen prompt templates (the page said seventeen). Tests now hold the brief table to the contract, every flag of every command to the interfaces page, the template table to the folder, and the rubric's dimensions to the evaluation page. `CONFIGURATION.md` had two headings named "Limits to know"; the first is renamed so each has its own anchor.
12
+ - The "Status: alpha, and honest about it" notice is removed from the top of the README, and the matching alpha and never-run-against-a-live-model sentences are removed from `llms.txt` and `llms-full.txt`. The README's Limitations section and the per-feature status paragraphs on the technical pages are unchanged.
13
+ - The documentation site's navigation is reworked. The top bar had seven groups, and its menus were transparent, so the text of the page showed through their items. It now has five groups (Start, Writing books, Reference, Operating and Project; the separate Quality group is part of Operating). Each menu has a solid background in the colours of the current theme, and a long menu scrolls. The "Edit on GitHub" link is removed: it pointed at `docs/<name>.md`, which is not where the pages come from. Checked in a browser at desktop width in both themes, and pinned by tests.
14
+ - The documentation site's tables are fixed. The Vibey stylesheet keeps every table cell on one line and leaves the text colour of the odd rows unset, and the site's own stylesheet broke code at any character, so a table such as "What you get" showed black text on a dark background in alternate rows and a first column one letter wide. Every row now takes the table's own text colour, cells wrap their prose, and a wide table scrolls inside itself. Checked in a browser on all 44 pages: no dark cell and no horizontal page overflow. A test pins the rules so a stylesheet edit cannot bring it back.
15
+ - The documentation is now also built as a website from the same Markdown, so there is one copy to keep true. `scripts/build_docs_site.py` assembles the pages (a clean address for each, links rewritten so a link to another page works between pages and a link to anything else points at that file on GitHub, a page listing the decision records, `llms.txt` and `llms-full.txt` and a `robots.txt` at the root), ProperDocs builds them with warnings as errors so a link or heading that goes nowhere fails the build, and `scripts/inject_docs_meta.py`, adapted from Vibey's, adds each page's description, canonical address and Open Graph and Twitter tags and the home page's `SoftwareApplication` description. The Vibey stylesheet comes from the locked `vibey-engine` package at build time. A new `docs.yml` workflow builds on every pull request that touches the documents and, on `develop`, publishes to GitHub Pages only when the repository variable `PUBLISH_DOCS` is `true` and Pages is switched to GitHub Actions; there is no analytics. Vibey's own `release-surfaces` workflow was not adopted whole because it also pushes the wheel to GHCR on every release run, which would bypass the gating on image publishing. Nothing has been published and the workflow has not yet run on GitHub: the build and the metadata step were run locally and the pages were looked at in a browser. See [DOCUMENTATION_SITE.md](docs/DOCUMENTATION_SITE.md).
16
+ - The last eight teaching pages now follow the documentation pattern (bottom line, a scene, the reference): TOOL_LOCK, SKILLS, PLUGINS, WORKER_IMAGE, TESTING, RELEASING, TROUBLESHOOTING and CONTRIBUTING. The tool lock, skills and plugins pages each gain an at-a-glance table, as they had no table at all. TROUBLESHOOTING gains the symptoms a first book run meets: an `--out` that is not empty, a failed `build` stage naming a TeX tool, a missing author profile, a run that stopped for budget, and each failure `ei doctor --ready` reports. Every teaching page now follows the pattern, so the list of pages still to be rewritten in the test is empty.
17
+ An audit of these pages against the code corrected several statements before they shipped, and one of them was advice in pages already merged: a run that ends in failure (exit 1) is final, so `ei book create --resume` returns it as it is and does not retry it, which the getting-started page, the agent instructions, the Claude Code skill, `llms-full.txt` and the README had implied it would. The pages now say what a failed run leaves (every chapter, exported to `--out`) and what to do instead. Also corrected: `ei plugins show` prints each skill's text cut to 100 characters and no reference sections, a skill file may be 256 KiB, not 64, the worker image is run with `book build`, a merge to `main` creates the tag and GitHub release before any upload variable applies, and the troubleshooting rows now quote the exact messages the CLI prints.
18
+ - `ei doctor --local` checks the free local model (M6.6): that something answers at `EI_LOCAL_URL`, that the model is pulled (naming `ollama pull` if not), one tiny real completion (free, on this machine; an empty reply fails, because a reasoning model can spend its whole cap before it writes), and that the context length Ollama loaded the model with is at least the 32,768 a prompt is assembled to fit (naming `OLLAMA_CONTEXT_LENGTH` if not). A server that is not Ollama passes on its answer alone. Exit 0, 1 or 2 as for the other checks, and it runs on its own, not with `--models` or `--search`. It was run once against a real Ollama; the rest is tested against local fakes.
19
+ - The process runner's memory meter no longer depends on `PATH` to find `ps`. It looked `ps` up on the `PATH` of the process being run, so a tool started with a restricted `PATH` crashed the runner with `FileNotFoundError: 'ps'` the first time it lasted past the half-second sampling interval, and a `ps` planted on that `PATH` would have been run in its place. It now runs `ps` from `/bin` or `/usr/bin`, and falls back to `PATH` only when neither has it. This surfaced as three intermittent failures in the visual-QA rasterizer tests, which give a fake `pdftoppm` a `PATH` of its own and failed whenever the machine was busy enough for the fake to outlast one interval.
20
+ - Three bugs found by the documentation audit are fixed. An unknown pipeline stage is now refused where every interface validates the request: `POST /v1/pipelines` answers 422 naming the real stages (the audit read it as a 500 before), and `ei pipeline start --stage` rejects it as a usage error instead of printing a traceback; a blank `--slug` or `--title` is likewise one line and exit 2. `ei book create` now checks that `--out` is a new or empty folder before any stage runs, where it used to find out only when writing the book at the very end; when resuming into a folder that already holds an earlier export it says how to continue into a new folder with `--state-dir`. `ei doctor --ready` runs each of its parts on its own, so a part that cannot start (a missing extra, an unusable setting) is one failed line and no longer hides the others, and it skips the local model, saying so, when `EI_STAGE_EXECUTOR` is not `local`.
21
+ - Saving the tool lock no longer writes through whatever is at its temporary name. It used to write to `.NAME.tmp` beside the lock, so a link left or planted there could redirect the write to another file. It now removes a stale file or link first and creates the temporary file new, refusing to follow a link, as the skill and plugin locks already did. The lock is still replaced whole or not at all.
22
+ - The default is now free (M6.6): with `EI_STAGE_EXECUTOR` unset, a run's stages are written by `gpt-oss:20b` (Apache 2.0) on your own machine through Ollama, with a SearXNG at `http://127.0.0.1:8888` for research, no key and no cost. It was chosen by running the installed candidates on one 24 GB laptop over three book-copy tasks, which is a small test; see `docs/LOCAL_MODEL.md`. `EI_LOCAL_MODEL` and `EI_LOCAL_URL` point at another model or server; `EI_STAGE_EXECUTOR=model` still means a model of your own with a profile and a price, and `deterministic` the offline placeholder, which the example compose stack now sets because a container cannot reach the host. A profile may set `reasoning_effort` (`low`, `medium`, `high`) for an openai_compatible server, so a model that reasons does not spend a stage's whole token cap before it writes. Building the executor contacts nothing, and `ei doctor` does not yet check the local server, the model or its context size.
23
+ - One command now installs what a book needs: `install.sh`, run as `curl -fsSL https://raw.githubusercontent.com/adammatthewsteinberger/engineering-influence/main/install.sh | sh`. It installs `uv` if missing and `ei` with the extras a book needs, Ollama and the free local model, the TeX tools the build stage calls, a local SearXNG when Docker is present, and a starter author profile it never writes over, then runs the new `ei doctor --ready`. It supports macOS with Homebrew and Linux with apt-get, takes `--dry-run`, `--skip-model`, `--skip-tex`, `--skip-search`, `--with-claude-skill` and `--version REF`, and has been run for real only as a dry run on macOS; the Linux path is tested against stand-in tools. `ei doctor --ready` answers whether this machine can make a book now: it checks the extras, each build tool, the author profile (`--author-profile`, else `EI_AUTHOR_PROFILE`), the local model and the search, and prints every check in one run. `ei doctor --search` now checks the SearXNG at its default address when nothing is configured and the free local model is in use, because that is the search such a run falls back to. A starter profile (`examples/author-profile.example.toml`) and a Claude Code skill (`examples/claude-code/engineering-influence/SKILL.md`) are included, and `ei serve mcp` with a missing module now names the `mcp` and `runtime` extras.
24
+ - There is now a way to try the whole non-fiction pipeline against a real model, with a spending limit you set in advance. `tests/paid/test_live_smoke.py` is a `paid` test (it never runs by default and refuses to start without `EI_ALLOW_PAID=1`) that drives all eleven stages in one process with in-memory adapters, so it needs no database, queue or worker. It requires `EI_SMOKE_BUDGET_MICRO_USD`, which has no default, uses a made-up author, and writes every artifact and a `smoke-report.json` (per-stage outcome, attempts, cost and time) to a folder even when the run fails. The same driver runs in the normal suite against a scripted local server, as a free rehearsal of the chain, the retry loop and the budget stop. See `docs/LIVE_SMOKE_TEST.md`. Nothing here has yet been run against a live model; that is for you to do with your own key.
25
+ - The worker image now includes `procps`, which provides `ps`. The slim image did not, so the process runner's memory meter failed there with `FileNotFoundError` on the first tool that ran past one sampling interval, and a TeX or EPUB build could stop mid-run. Built and checked in the slim image: the meter now reads a process group's memory. A missing `ps` is now a clear build error that names the package to install, rather than a crash. The troubleshooting page has a table of the error codes a person is likely to meet, each with its message as the code prints it and what to do, and the remaining codes are named as internal in a test that fails when a new code is added without a decision. A test pins the packages the Dockerfile installs to the packages the worker image page describes, and the CI toolchain's package list to the same set.
26
+ - The package is now a strict onion, and the rules are enforced by the build. Layers, from the inside: `errors`, `models`, `contracts`, `interfaces`, `services`, then `controllers`, `repositories` and `infrastructure`, then `interactions`, then `runtime`, the only layer that builds concrete classes (`docs/adr/0006-onion-layers-and-interfaces.md`, `docs/ARCHITECTURE.md`). Every folder has an `interfaces/` folder, there is one class per file, and every class implements an interface; `lint-imports` and nine zero-tolerance architecture tests check it, and tests pass fakes instead of patching production code. This summarises the `m1-r*` entries below, which carry the detail.
27
+
28
+ **Breaking, for code that imports internals:** `domain` is now `models`, `interaction` is `interactions`, every `*Port` is a `*Interface`, and `engineering_influence.publishing` is gone, its classes redistributed across the layers (`scripts/refactor/move_map.toml` maps every old module to its new one). Cover plugins import from `engineering_influence.covers`. The `ei` command, the REST API, the MCP tool, the SDK and the entry-point group `engineering_influence.covers` are unchanged, and the generated OpenAPI document, the MCP tool list, every CLI help page and the fixture book's typeset pages and EPUB members are identical to before the restructure.
29
+ - Added ADR 0006 (onion layers, interfaces and one class per file), the move map for restructuring every class (`scripts/refactor/move_map.toml`), a class inventory script, and architecture ratchets that hold each unmet structural rule at its current violation count so it can only improve. No code moved and no behaviour changed.
30
+ - Renamed the `domain` package to `models`, the `interaction` package to `interactions`, and the 20 `*Port` interfaces to `*Interface` (modules `*_port.py` become `*_interface.py`). Code that imports `engineering_influence.domain`, `engineering_influence.interaction` or a `*Port` class must switch to the new names. The `ei` command, the REST API, the MCP tool, the SDK and the cover-plugin API are unchanged, and no behaviour changed: the OpenAPI document, the MCP tool list, every CLI help page and the wheel contents match the previous build apart from these paths.
31
+ - Gave the remaining classes their interfaces, so every class in the package now has one: 44 new `…Interface` modules for the adapters in `infrastructure/` (33, including the cover painter toolkit), the transports in `interactions/` (6) and the composition code in `runtime/` (5), built under the same rules as before (methods only, `__slots__ = ()`, type-only imports). A class that already implements a port or another class's interface, such as `ConstantTimeApiKeyVerifier`, the `Traced*` services and the RabbitMQ adapter, keeps that one and gets no second interface.
32
+
33
+ The SDK package follows the same rules: `EngineeringInfluenceClient` and `AsyncEngineeringInfluenceClient` inherit `EngineeringInfluenceClientInterface` and `AsyncEngineeringInfluenceClientInterface` (in `engineering_influence_sdk.interfaces`), with identical constructors, methods and signatures, and the same `__all__`. The built SDK wheel ships the new package and still installs and imports on its own. A new architecture test holds the SDK to the interface rules and checks that each client's signatures match its interface.
34
+
35
+ Tidied two things from the previous step. `SqlModelLedger` and `SqlModelOutbox` had been given a redundant second interface on top of the port they already implemented; those two generated modules are gone, and the tables they create are unchanged, statement for statement. `LedgerRepositoryInterface` is a port that extends `LedgerInterface`, so it moved to `engineering_influence.interfaces.ledger_repository_interface`; as with the earlier internal moves there is no alias. The generated REST schema, the MCP tool list and every `ei` help page are byte-identical.
36
+
37
+ The architecture ratchets for classes without an interface, layer crossings, interface-rule breaks, unpaired interfaces, effectful imports and model purity are all at zero.
38
+ - **Breaking:** removed the `engineering_influence.publishing` package. Its sixteen cover modules (`engineering_influence.publishing.covers.{box, box_blur, compositing, cover_builder, cover_layout, cover_painter, cover_plugin, cover_plugin_loader, cover_style, film_grain, ink, painter_registry, quiet_zone, soft_rect, starfield, value_noise}`) and `engineering_influence.publishing.project_layout` were compatibility shims that warned and re-exported the real classes; they are gone, with no deprecation period. Import the same names from `engineering_influence.covers` (`CoverPainter`, `CoverPlugin` and `ProjectLayout` are there too). They are the same classes, so a private cover plugin only needs its import lines changed; one that loaded 16 lines across three files from the old paths loads again, with all its styles, once they point at `engineering_influence.covers`.
39
+
40
+ Every architecture rule in `tests/architecture/` now holds with no exceptions, so the tolerance file that allowed a fixed number of violations (`ratchet.json`) and its update switch are removed. `test_rules.py` asserts that each of the nine rules has zero violations everywhere, and that none has been dropped from the metrics: a class without an interface, an import that crosses layers, a file outside the layers or an interface that breaks the declaration rules fails the build. The generated REST schema, the MCP tool list and every `ei` help page are byte-identical.
41
+ - Tests now pass fakes into the classes that take their collaborators instead of patching production classes, wherever the code already allowed it: the controller and `ei book` tests inject fake LaTeX, EPUB, cover, verifier and renderer collaborators, the publish-step tests inject a fake EPUB verifier, the MCP test overrides `build` in a subclass, and the cover-plugin loader tests pass an entry-point lookup. That took the `monkeypatch.setattr` calls from 33 to 21; what remained were standard-library or test-local patches and nine production targets that the class under test built itself, which the next step injects. A new architecture test fails the build on any new patch of production code.
42
+
43
+ Three small seams make that possible, all optional and defaulting to the previous behaviour: `CliRuntime(publishing=...)` takes the factory that wires the `ei book` commands, `CoverPluginLoader(discover=...)` takes the entry-point lookup (`CoverPluginLoader()` is unchanged for existing callers, including the public cover API), and `PublishPipelineProvider` takes the EPUB verifiers from `PublishingControllerFactory` rather than building them. The generated REST schema, the MCP tool list, every `ei` help page and the wheel's file list are unchanged.
44
+ - Removed the last nine test patches of production code by passing the collaborators in through constructors, so no test patches a production class any more; the only patches left are standard-library calls at the system boundary and one class a test defines itself. `PublishingController` and `PublishSteps` now receive a `BookBuilderInterface` and a `PdfVerifierInterface` instead of building `BookBuilder` and `PdfVerifier` themselves, and the controller no longer takes the LaTeX compiler, build workspace and package assets that only existed to build the book builder. `PublishingControllerFactory` builds each once and gives the same instance to the controller and to `PublishPipelineProvider`. `CoverBuilder` takes optional image, ebook and print-PDF verifiers, and `EbookCoverVerifier`, `PrintPdfVerifier` and `CoverRenderer` take KDP's size and text limits as constructor arguments that default to `KdpCoverSpec`, so a test passes a tiny limit instead of editing the spec. `ApiRuntime` takes an optional queue, and `ServeStarter` takes optional runtime factories for its default runners; its imports stay lazy.
45
+
46
+ Every default is the previous behaviour, and none of these classes is part of the public API. The generated REST schema, the MCP tool list, every `ei` help page and the wheel's file list are unchanged. Not every pure helper is injected yet: the controller still builds the audit classes and `EpubVerifier` still builds its own checks, because no test has to replace them. The architecture test now lists only the system boundary, and its two tests are renamed to match (`test_tests_patch_only_the_system_boundary` and `test_the_boundary_list_has_no_stale_entries`).
47
+ - Moved object composition out of the interactions and into `runtime/`. `ApiApplication(controller, guard, observability)` and `McpApplication(controller)` now take a project controller instead of a ledger and queue, `CliApplication` and `ServeCli` receive their collaborators, and `VibeyPhaseHandler` takes a `RunPhaseInterface`. The `ei` entry point is now `engineering_influence.runtime.main:main`, the CLI application class moved to `interactions.cli.cli_application`, and webhook delivery and signing moved from `interactions.webhooks` to `infrastructure.webhooks` (a new `WebhookSignerInterface` lets the inbound verifier stay in the interactions). `lint-imports` now enforces a strict layers contract. The `ei` command, the REST API, the MCP tool and the SDK are unchanged.
48
+ - Moved the 35 audit, check and report classes at the top of `engineering_influence.publishing` into the layers: models, services and one adapter now live under `models/publishing/`, `services/publishing/` and `infrastructure/publishing/` (for example `ProjectConfig`, `ProjectLayout`, `BookAuditor`, `PdfVerifier`). The publishing `ReadinessReport` is now `ReleaseReadinessReport`, so it no longer shares a name with the health-check `ReadinessReport`. `engineering_influence.publishing.project_layout` is removed; import `ProjectLayout` from `engineering_influence.covers` or `engineering_influence.models.publishing.project_layout`. The `ei` command and its output are unchanged.
49
+ - Seven publishing services no longer read files or PDFs themselves. A new `ManuscriptSourceInterface` (existence, text and Markdown listing) and a new `PdfInspectorInterface` (a `PdfDocument` of plain page facts, and a page count) sit between them and the file system, `pypdf` and `pdfplumber`; `FilesystemManuscriptSource` and `PypdfPdfInspector` are the adapters. `BookAuditor`, `ReleaseAuditor`, `PdfVerifier`, `PublishingController`, `PublishPipeline`, `PublishSteps` and `BookCli` now take those two collaborators as constructor arguments, and the PDF checks work on `PdfDocument` and `PdfPage` instead of library objects. The `ei` commands and their output are unchanged.
50
+ - Moved the 21 typesetting classes out of `engineering_influence.publishing.typesetting` into the layers: `errors/typesetting` (`BookBuildError`, `ManuscriptError`), `models/typesetting`, `services/typesetting` (the Markdown-to-LaTeX converters and `BookBuilder`), `repositories/typesetting` (`BookLoader`, `ChapterLoader`) and `infrastructure/typesetting` (`LatexCompiler`, `ToolEnvironment`). `PathRelativizer` and `RunningHead`, which the loaders share, are now models. `BookBuilder` takes its loader, compiler, workspace and assets as `BookLoaderInterface`, `LatexCompilerInterface`, `BuildWorkspaceInterface` and `PackageAssetsInterface` arguments, and `PublishingController` takes them too; a new `PublishingControllerFactory` in `runtime/` builds them for `ei book`, so no layer below `runtime` imports an adapter. `PackageAssets(override)` can serve a directory of your own. The `ei` commands and their output are unchanged.
51
+ - Moved the 28 EPUB classes out of `engineering_influence.publishing.epub` into the layers: `models/epub` (`EpubContents`, `XhtmlPatterns`, and a new `CoverDeclaration` for the cover's file name, id and size floor), `services/epub` (the document builders, the checks, `EpubBuilder`, `EpubVerifier` and `EpubRepacker`) and `infrastructure/epub` (`EpubArchive`, `CoverImage`, `EpubcheckRunner`, `Tex4ebookCompiler`, plus the new `EpubCoverInspector` and `ZipEpubPackage`). The services no longer open archives or images themselves: they use new `EpubCompilerInterface`, `EpubArchiveReaderInterface`, `EpubcheckInterface`, `EpubCoverInspectorInterface`, `EpubPackageInterface` and `EbookCoverInterface` ports, and `BuildWorkspaceInterface` gained `prepare_ebook` and `ensure_directory`. `EpubBuilder`, `EpubVerifier` and `EpubRepacker` take their collaborators as arguments, `PublishingController` takes a finished `EpubBuilder` and `EpubVerifier` instead of building them, and `PublishingControllerFactory` wires the real ones, so the controller no longer imports an adapter. `CoverImage.NAME`, `ID` and `MIN_PX` are now on `CoverDeclaration`. The EPUBs `ei book epub` and `ei book publish` write, and the `ei` commands and their output, are unchanged.
52
+ - Moved the 35 cover classes out of `engineering_influence.publishing.covers` into the layers: `models/covers` (`Box`, `CoverLayout`, `CoverStyle`, `KdpCoverSpec`, and the layout and style rules `LayoutFactory`, `LayoutCheck`, `BuiltinCoverStyle`, `TextRecorder`), `infrastructure/covers` (the painter toolkit, typesetters, renderer, files, verifiers, `PainterRegistry`, `CoverPluginLoader` and `CoverBuilder`) and `interfaces` (the plugin contracts, now `CoverPainterInterface` and `CoverPluginInterface`). New `BookSlug` and `CoverBuilderInterface` keep the controller and the services from importing the cover adapters. `PublishingController` now asks a `CoverBuilderProvider` (built in `runtime/`) for its builder when covers are first needed, so cover plugins still load lazily.
53
+
54
+ **Removed (breaking):** the sixteen modules a private project imported from, `engineering_influence.publishing.covers.{box, box_blur, compositing, cover_builder, cover_layout, cover_painter, cover_plugin, cover_plugin_loader, cover_style, film_grain, ink, painter_registry, quiet_zone, soft_rect, starfield, value_noise}`, and `engineering_influence.publishing.project_layout` no longer exist, and neither does the `engineering_influence.publishing` package. Import the same names from `engineering_influence.covers` instead (`CoverPainter` and `CoverPlugin` keep their names there, and `ProjectLayout` is there too). They are the same classes, so an existing plugin and its `isinstance` checks work once its imports are changed. The other nineteen modules in that package were internal. The covers `ei book covers` and `ei book publish` write, and the `ei` commands and their output, are unchanged.
55
+ - Moved the last 19 classes of `engineering_influence.publishing` into the layers: page QA into `models/qa` (`PageRecord`, `RenderReport`, `PageFileNumber`) and `infrastructure/qa` (`RenderQa`, `PageRasterizer`, `BlankPageDetector`, `ContactSheetBuilder`), and release evidence into `services/release` (`PublishPipeline`, `PublishSteps`, `FormatPolicy`, `ReleaseSummary`, `PageLimitCheck`), `repositories/release` (`ArtifactInventory`, `FileDigest`, `JsonReport`, `StepRecorder`) and `infrastructure/release` (`GitState`, `ToolVersions`, `EpubZipCheck`). The bundled LaTeX classes, stylesheets and fonts moved to `infrastructure/publishing/assets/` beside `PackageAssets`, which finds them; a wheel still ships all 17 files.
56
+
57
+ `PublishPipeline` and `PublishSteps` no longer read the clock, run git, open archives or build their own helpers: they take `ClockInterface`, `RenderQaInterface`, `ArtifactInventoryInterface`, `JsonReportInterface`, `StepRecorderInterface`, `GitStateInterface`, `ToolVersionsInterface`, `EpubZipCheckInterface` and `EpubVerifierInterface` arguments, and read PDF page counts through `PdfInspectorInterface`. `PublishingController` takes a `RenderQaInterface` and a `PublishPipelineProviderInterface`; a new `PublishPipelineProvider` in `runtime/` builds the pipeline when `publish` starts, so cover plugins still load at that moment, even for `--audit-only`. With that the controller imports nothing from the old `publishing/` package, and the temporary import-linter exceptions for it are gone: all three contracts pass with no ignored imports. `BuildWorkspaceInterface` gained `ensure_tree`.
58
+
59
+ One visible detail: when `ei book` runs without the `publishing` extra, the error still says how to install it and names the first missing library, but which library that is can now differ (for example `markdown_it` instead of `PIL`), because the controller no longer imports Pillow first. The `ei` commands, their output and the reports they write are otherwise unchanged.
60
+ - Gave every class in `errors/`, `models/` and `contracts/` an interface: 45 new `…Interface` modules, each beside its class in the layer's `interfaces/` folder, and each class now inherits its own. The interfaces declare methods only (never fields, so dataclasses, pydantic models and exceptions behave exactly as before), set `__slots__ = ()`, and import models and contracts only for type checking. The four enums (`GateKind`, `JobOutcome`, `PhaseState`, `PipelineStage`) get `runtime_checkable` Protocols instead, because an enum cannot inherit an ABC, and a new architecture test checks every member against its Protocol. The generated REST schema, the MCP tool list and every `ei` help page are byte-identical.
61
+
62
+ The 27 existing interface modules now follow the same rules: each declares `__slots__ = ()`, and the 11 that imported a model or contract at runtime import it for type checking only. That removes the last six layer-crossing imports, so the layer-crossing ratchet and the interface-rule ratchet are both at zero.
63
+
64
+ Renamed the gate-evaluation port `GateInterface` to `GateEvaluatorInterface` (module `engineering_influence.interfaces.gate_evaluator_interface`), so that `GateInterface` can be the interface of the `Gate` model. Code that subclasses or imports the port by its old name must use the new one; like the earlier `*Port` renames, there is no alias.
65
+ - Gave every service, controller and repository an interface and made each inherit it: 70 new `…Interface` modules, each beside its class in the layer's `interfaces/` folder (`services/<group>/interfaces/`, `repositories/interfaces/`, `controllers/interfaces/`). They follow the rules set in the previous step: methods only, `__slots__ = ()`, and models, contracts and type aliases imported for type checking only, with annotations and defaults copied verbatim. The two SQLModel ledger and outbox tables inherit theirs too; the tables `create_all()` builds are unchanged, statement for statement. The generated REST schema, the MCP tool list and every `ei` help page are byte-identical.
66
+
67
+ The interfaces that already existed for `ProjectController`, `DispatchOutbox`, `ProcessJob`, `ReadinessProbe`, `RunPhase` and `StartPipeline` are untouched. Services still construct their own pure helper services (for example `EpubVerifier` builds its checks); passing those in as interfaces is a separate, later change. The 44 classes left without an interface are all in `infrastructure/`, `interactions/` and `runtime/`.
68
+ - Added the first versioned contracts. `contracts/brief/v1` holds `BookBriefV1`, the document that starts a book run: a kind (`nonfiction` or `novel`), an idea and a required spending cap in micro-dollars, with an optional title hint, audience, target length, trim size and language; unknown fields, a second schema version and a missing budget are refused. `contracts/book_config/v1` formalises what `BookLoader` reads from `books/<slug>.toml` (`source`, `front`, `parts`, `back`, `not_in_book`, each entry a bare file name or a table with a style), keeps every other key as metadata, and is tested to order a book exactly as the publisher does. Broker messages now carry `schema_version: 1`; a message without it is read as version 1 so messages already queued when a worker upgrades still parse, and any other version is refused. Planned for a later pre-1.0 release, and not part of this change: the public project request will stop taking `PipelineStage` names once `ei book create` replaces them, which will change the REST schema, the SDK and the MCP tool.
69
+ - Added the first pure models for the 1.0 book pipeline (M2): `BookKind` (nonfiction or novel), `QualityIssue` and `GateVerdict` (what a gate found, with a failed verdict required to say why and a passing one barred from carrying a blocker), `Budget` (a spend cap in integer micro-dollars where a call reserves its worst-case cost first, so spent plus reserved can never pass the cap) and `DegradeLadder` (an ordered list of cheaper fallbacks a run steps down, never back up). They live in `engineering_influence.models`, each with its interface, and nothing uses them yet; the pipeline, the API and the CLI behave as before. A Hypothesis property test checks that no interleaving of reserves, settlements and failed calls can overspend a budget.
70
+ - Added the pure models a book run is built from: `BookBrief` (an idea, a kind of book and a required spending cap, with optional title hint, audience, target length, trim size and language), `StagePlan`, `BookRun` with its `RunStatus` (pending, running, parked for credit, completed, failed, cancelled), `SourceRecord` and `StoryBible`, each with its interface and move-map entry. A run is an immutable value: every change returns a new one, so a repository can store each step and a resumed run picks up where the last stored one stopped. Nothing consumes them yet.
71
+ - Added `AdvanceRun`, the service that moves a book run one stage at a time and is safe under redelivery, retries and crashes. A delivery names a run, a stage and an attempt: the current stage executes through the new `StageExecutorInterface` port, the run is saved, and the next stage is queued as a `run.advance` job. A message for a stage the run has already passed is skipped, a message for the stage just before the current one means a worker saved the advance and died before queueing the next stage, so the current stage is queued again, and a message for a later stage is refused. Failures are sorted by the new `FailureClassifier` into retry (`TransientStageError`, timeouts and dropped connections, up to a limit, then the run fails with a blocking `retries-exhausted` issue), park (`CapacityExhaustedError` parks the run on the same stage until it is resumed) or stop (anything else fails the run and records the error type and message, cut to 200 characters). The budget's `spent` is recomputed from the run journal after every attempt, so a crash cannot lose the cost of a call that happened and a replayed call is never counted twice. `BookRun` gains `start()`, and the new `AdvanceOutcome` and `StageReport` models describe a delivery's result and what a stage reports. Two deliveries of one stage can overlap, so every change to the run goes through a new `swap` on `RunRepositoryInterface`, which stores a replacement only if the stored run is still exactly what the delivery read (the SQL version is a single conditional `UPDATE` on the stored document, so it needs no new column or migration); the delivery that loses reports `SKIPPED` and neither overwrites the winner nor queues anything, so duplicates cannot compound. If the journal ever records more than the cap, the run fails with a blocking `budget-exceeded` issue instead of raising and being redelivered forever, and `Budget` now raises `BudgetExceededError` for that case too. A crash-injection test drops a save or an enqueue at every point and checks that the run still finishes with every artifact and the exact spend. Nothing runs it yet: wiring it into the worker comes with the model-backed stages.
72
+ - The database schema is now owned by Alembic instead of `create_all()`. The migrations ship in the wheel, and a new command, `ei db upgrade`, applies them to `EI_DATABASE_URL` (it needs the `runtime` extra, prints the revision it reached and never prints the connection string). The baseline creates the ledger, outbox, run, journal and artifact tables, and creates only the ones that are missing, so a database made by the earlier `create_all()` is adopted with its rows intact. The API and the worker no longer create tables: they check the revision at start-up and exit with `the database schema is not at the latest revision; run `ei db upgrade``, which removes the race where both created the schema on first start. **Breaking:** the SQL repositories no longer create their tables or default to an in-memory database, so anything that embeds them must run the migrations first, and an existing deployment must run `ei db upgrade` before starting a new release. The compose file gains a one-shot `migrate` service that the API and the worker wait for. A test builds the schema from the migrations and fails if it differs from the SQLModel models, so a model change without a migration fails the build. ADR 0006 exempts `infrastructure/migrations/` from the one-class-per-file rules, because an Alembic script is a module of functions by contract.
73
+ - Added the artifact store. A new port, `ArtifactStoreInterface` (put, get, names), keeps the files a run produces under `run id / name`, and has three implementations: in memory, on a local directory, and in the database for workers that do not share a disk. Artifacts are write-once: storing the same bytes again is accepted and returns the same SHA-256, while different bytes under a used name raise the new `ArtifactConflictError`, so a stage that is not deterministic is caught instead of silently replaced. The directory store writes to a `.part` file and renames it, so a crash never leaves a half-written artifact under its real name, and it resolves symlinks through the path guard so a planted link cannot lead a write outside the store's root. `ArtifactAddress` refuses names that are absolute, climb with `..`, or use backslashes. Nothing uses the store yet.
74
+ - Added the first M3 building blocks, all pure and not yet consumed: `BudgetExceededError`, `FailureKind` (transient, capacity, unrecoverable, which decides between retrying, parking a run for credit and stopping), and the journal's `JournalKey` and `JournalEntry`. A key is the model snapshot, parameter hash, prompt version and context hash of a request, and its SHA-256 digest is stable and separator-safe, so a resumed run can find the answer a repeated request already got instead of paying for it again. `Budget` now raises `BudgetExceededError` when a reservation does not fit or a call cost more than it reserved; it is a `ValueError`, so existing handlers keep working.
75
+ - Added integration tests that run against a real PostgreSQL and RabbitMQ, a new `integration` CI job, and a state-machine property test. `tests/integration/stack.sh up|env|down` starts both services in Docker with random credentials (`eval "$(sh tests/integration/stack.sh up)"`, then `uv run pytest -m integration tests/integration`); the `integration` marker is deselected by default, the tests skip when the stack is not running, and the CI job sets `EI_REQUIRE_INTEGRATION=1` so a missing stack fails instead of passing with nothing tested. They check that the migrations build exactly what the models describe on PostgreSQL, that threads racing to change a run, record a journal entry or store an artifact leave exactly one winner, that large binary artifacts round-trip, that jobs are consumed, dead-lettered and redelivered through the broker, and that a book run finishes through both services with every artifact byte-identical, spend exactly equal to the journal and nothing dead-lettered, whether a worker dies before storing a change, before queueing the next stage or before acknowledging, and that a run parked for credit resumes through the real broker. A Hypothesis state machine drives random deliveries, duplicate deliveries, failures, resumes and cancels in memory and checks after every step that a finished run never changes, a run never moves backwards, spend equals the journal, artifacts are never rewritten and a run that can still move always has a job queued for its stage. **Fixed:** the baseline migration created timezone-naive timestamp columns on PostgreSQL while the models use `TIMESTAMP WITH TIME ZONE`, which stores an aware UTC value shifted into the session's own zone; SQLite ignores the difference, so only the PostgreSQL test could see it. No release contained migrations, so the baseline was corrected in place: a development database created by `ei db upgrade` before this change should be recreated.
76
+ - Added a read API for book runs. `GET /v1/runs/{run_id}` returns a `RunSummaryV1` (status, current stage, the stage plan, the budget as cap, spent, reserved and remaining micro-dollars, the recorded issues and the names of the artifacts stored so far; the brief's idea is left out) and `GET /v1/runs/{run_id}/artifacts/{name}` returns one artifact byte for byte as `application/octet-stream` with `X-Content-Type-Options: nosniff` and `Cache-Control: no-store`. Both sit behind the same API-key guard as the rest of `/v1`, an unknown run is `RUN_NOT_FOUND` and a missing artifact is `ARTIFACT_NOT_FOUND`, and a name that could never be stored (absolute, `..`, a backslash) gets the same answer as one that was never written, so nothing about the store's layout leaks. `ei run status RUN_ID` prints the same summary as one line of JSON and needs only `EI_DATABASE_URL`. The summary and its budget and issue parts are the new versioned contracts `RunSummaryV1`, `RunBudgetV1` and `RunIssueV1`; the routes are read-only, the API opens its run and artifact stores beside the ledger and closes them with it, and the SDK and MCP server have no run methods yet (M8). The documentation also corrects two stale notes: migrations exist now, but the baseline adopts an old outbox table as it is, so a database created before the `dead_at` column must still be recreated.
77
+ - Added `ResumeRun` and `CancelRun`, and an `ei run` command group to call them (`ei run resume RUN_ID`, `ei run cancel RUN_ID`) against the stack's database. Resuming a parked run moves it to running with a compare-and-swap and only then queues its current stage, because a message that arrives while the run is still parked is skipped; resuming a run that is already running just queues the stage again, so a resume that died between the two steps is repaired by running it once more, and a completed, failed or cancelled run is refused with `RUN_FINISHED`. Cancelling is idempotent, refuses a completed or failed run, and reads the run and swaps again a few times if a worker advances it in the meantime (then `RUN_CHANGED`, marked retryable); a stage already executing is not interrupted, but the worker's own swap then loses to the cancel, so the run stays cancelled and nothing further is queued. The commands print one line, exit 0 on success, 1 when the run cannot do what was asked (unknown, finished or changing) and 2 on setup trouble such as a missing setting, an unreachable broker or a database that was never migrated, never print a traceback, and need the `runtime` extra. `CliRuntime` takes an optional queue so the commands can be driven in tests without a broker.
78
+ - Added the run repository and the run journal. Two new ports, `RunRepositoryInterface` (save, get, list ids) and `JournalInterface` (record, find, entries), each have an in-memory implementation for local use and tests and a SQLModel implementation for SQLite and PostgreSQL. A saved run is stored as JSON with its status and stage in their own columns, and loading it rebuilds every model so the models re-check their own rules. The journal keeps the first answer recorded for a run, stage and request and returns it on a repeat, and the database enforces that with a unique constraint, so two workers racing on the same request converge on one answer. Nothing uses them yet; the next slices add the artifact stores, migrations and the `AdvanceRun` service.
79
+ - The worker now handles `run.advance` jobs. A new `JobRouter` sends each job to the service for the prefix of its kind, `pipeline.*` to the existing pipeline service and `run.*` to the new `ProcessRunJob`, which checks the payload (`run_id`, `stage` and an `attempt` of at least 1; extra keys such as a correlation id are ignored) and calls `AdvanceRun`. A kind nobody handles is still refused with `UNKNOWN_JOB_KIND` and dead-lettered. `JobOutcome` gains a `run_*` member for every `AdvanceOutcome` (`run_advanced`, `run_completed`, `run_retrying`, `run_parked`, `run_failed`, `run_skipped`, `run_repaired`), so the worker's `jobs.outcome.*` counters distinguish them, and a test fails if an outcome is added without one. The worker opens the run, journal and artifact stores on the same database as the ledger and closes them with it. Until the model adapters arrive, stages run through `DeterministicStageExecutor`, a placeholder that journals a zero-cost entry and stores `<stage>.md` from the brief's idea, in the same way `DeterministicRunner` stands in for pipelines. Nothing creates a run yet, so no `run.advance` job is queued in the compose stack; an end-to-end test runs one through the real handler, router, run advancer and SQL stores.
80
+ - A book's config can now say `kind = "novel"` (the default is `nonfiction`), and the kind picks the text rules. A novel may use em dashes, in the manuscript and in the checks of the finished PDF and EPUB, where non-fiction still refuses them; en dashes are refused for both. A `---` line inside a novel's chapter prints a scene break instead of nothing: a centred `* * *` in the PDF and the hardcover, a classed paragraph in the EPUB, with the paragraph after it not indented; a rule that opens or ends a passage, sits beside another rule or is inside a quote or list prints nothing, and a rule right after a callout or illustration is kept. The word `Draft` is still refused in a novel's narration but may appear inside curly quotation marks, so a character can say it; a quoted span is capped at 500 characters so an unclosed quote cannot hide a stray `Draft`. An unknown kind stops the build with a message naming `nonfiction` and `novel`. The rules live in a small `TextPolicy` model that the loader, both document builders and both verifiers share, and `BookConfigV1` gains an optional `kind`. Non-fiction output is unchanged except that every EPUB's stylesheet gains two rules for scene breaks. A synthetic novel (`tests/fixtures/fixture_novel/`) joins the non-fiction fixture in the toolchain test, which now builds both with the real toolchain and states what the novel must show.
81
+ - Added the KDP listing checks to the release audit. A description now has a maximum of 4,000 characters (`description-too-long`, lowered per book with `release.maximum_description_characters`), and a new `CategoryCheck` validates `release.categories`: up to three Amazon browse paths such as `Books > Literature & Fiction > Mystery`, unique, with at least two levels, refusing a fourth (`too-many-categories`), anything that is not a path (`category-not-a-path`), a duplicate however it is spaced or cased (`duplicate-category`) and a BISAC subject code, which is a different scheme (`category-is-bisac`); errors in a strict release, warnings otherwise. A book with no categories gets the warning `categories-not-declared`, never an error, so existing books keep passing a strict release. The check cannot know Amazon's browse tree, which has no API, so the names are confirmed at upload, and the limits are KDP's published ones as understood today. The back cover now fails fast and clearly when the description cannot fit above the barcode area: the typesetter raises `BackCoverTextTooLongError`, a `BookBuildError`, carrying the description's length, how many characters fit at this trim size (measured with the same layout code, not guessed) and the overflow in inches, instead of drawing text into the barcode area and failing after rendering with a count of stray pixels. With the default style about 3,000 characters fit at 6x9 and 5.5x8.5 and about 2,200 at 5x8, below KDP's 4,000-character listing limit, so a description can pass the audit and still be too long for the cover. New tests prove that text at the limit never touches the barcode area at any trim size, for the paperback and the hardcover, and that ink placed there is always caught.
82
+ - A book's config can now set `trim_size` (`6x9`, the default, `5.5x8.5` or `5x8`) and `paper` (`white`, the default, or `cream`); a config that sets neither builds exactly the same files as before, which a before-and-after build of the non-fiction fixture confirmed byte for byte. The trim size sets the interior's page size, the cover layouts and the ebook cover's proportions, and the PDF check now expects the book's own page size instead of a fixed 432 x 648 pt; the paper sets the spine width of the paperback and hardcover wraps (0.002252 in a page for white, 0.0025 for cream). They are two small models, `TrimSize` and `PaperStock`, that replace the constants that were hard-coded in the cover spec and the PDF geometry (`KdpCoverSpec.TRIM_W`, `TRIM_H` and `PAPER_WHITE`, and `KdpGeometry.TRIM`, are gone). The TeX class takes its size from `\finetrimwidth` and `\finetrimheight`, which the generated document sets before the class loads and only for a size other than 6x9. KDP does not print a hardcover at 5x8, so a 5x8 book is paperback and ebook only: it gets no hardcover interior, no hardcover wrap and no hardcover artifact in the inventory, a `formats.hardcover` or `release.formats.kdp_hardcover` is refused, and its pricing no longer needs a hardcover price (one that is given is still checked). The hardcover column follows KDP's published sizes as understood today and should be confirmed against KDP's current list. `BookConfigV1` gains the two settings and the brief's `trim_size` is now one of the three sizes instead of free text. The toolchain test builds three books, adding a 5x8 pocket book and moving the novel to 5.5x8.5 on cream paper, and checks the page sizes and the wrap widths from the real outputs.
83
+ - Added `AnthropicModel`, the first model adapter. It calls the Anthropic Messages API over plain `httpx` (ADR 0007), sends the system prompt as a cached block, counts input tokens before a call, and sorts every failure into the three outcomes a run acts on: a rate limit, server error or dropped connection is transient; spent credit or a refused key is a capacity failure that parks the run; anything else stops it. The `runtime` extra now includes `httpx`. Nothing calls the adapter yet.
84
+ - Every external build tool now has a deadline, and a tool that passes it is stopped together with everything it started. `latexmk` and `tex4ebook` get 30 minutes, `epubcheck` and the page renderer 10; the build then fails with a `BookBuildError` that names the tool and shows its last output, instead of holding a worker for ever. The four tools run through a new `ProcessRunner` (an interface and an implementation, injected like any other collaborator), which starts each tool in its own process group and kills the group, because `subprocess.run(timeout=...)` stops only the direct child and `latexmk` and `tex4ebook` run their work in grandchildren that keep the output pipe open. Ctrl-C now stops the tool and reaps it, too. The deadlines are constructor arguments with these defaults, not settings. Stopping a whole tree needs process groups, so it works on Linux and macOS and not on Windows. A new toolchain test hangs real `latexmk` and real `tex4ebook` with a document that loops forever and checks that nothing is left running, and the fixture books build byte-identically through the new runner (final PDFs, EPUBs, covers and reports; only build timestamps in scratch files differ).
85
+ - Model exchanges can now be recorded once and replayed in tests. `CassetteReplayTransport` answers an adapter from a cassette in order and refuses any request whose method, path or body differs from the recorded one, so a prompt that changed fails the test instead of replaying a stale answer. `CassetteRecordingTransport` keeps the real exchanges with no headers and every key masked, and `JsonCassetteStore` refuses to save or load a cassette that still looks like it holds a secret. A `paid` test marker is deselected by default and also needs `EI_ALLOW_PAID=1`. No cassette has been recorded yet.
86
+ - Added `ContextAssembler`, which fits one drafting call's context into an input-token budget. The style and the story bible (or outline) go in the system text, where the adapter can cache them; the beats, the instruction, the newest prior-chapter summaries and the end of the previous chapter go in the prompt. The fixed parts are never cut. Summaries are kept newest first, then the previous chapter's tail takes the room left, cut from its start to a paragraph boundary. It finds the fit by binary search over the model's own `count_tokens`, so a draft needs a few dozen counting calls however long the book is, and it raises `CONTEXT_TOO_LARGE` when the fixed parts alone do not fit. Nothing calls it yet.
87
+ - Add `ei doctor --models` and model profiles: a profile names an adapter, a server and the environment variable holding its key (blank for a local OpenAI-compatible server), and the doctor checks, with nothing sent anywhere by default, that each profile is priced in the catalog today, that its key is set, and that a key would not travel over plain http to another machine. `--probe` is opt-in and adds one model-list request per profile; no check can bill.
88
+ - Added `OpenAICompatibleModel`, a model adapter for OpenAI and for any server that speaks the Chat Completions shape (Ollama, vLLM, llama.cpp, LM Studio), over plain `httpx`. A blank API key sends no `Authorization` header, so a local server needs no key, and `output_cap_field` selects `max_tokens` or OpenAI's `max_completion_tokens`. The shape has no token-counting endpoint, so `count_tokens` returns an upper bound (the UTF-8 byte length plus a per-message allowance) that over-reserves and is corrected from the server's reported usage. Cached prompt tokens are priced at the cache-read rate. Spent quota (`insufficient_quota` or 402) and refused keys park the run; 408, 429 and 5xx are transient. Nothing calls the adapter yet.
89
+ - Added the model catalog: `ModelCatalog` picks the price in force on a date for a provider and model, and `TomlModelCatalogLoader` reads it from a TOML file the deployment owns (`docs/MODEL_CATALOG.md`). Prices are integer micro-dollars per million tokens, each with an effective date, so old calls keep their old price and a price change is a new entry. A model with no price in force is refused (`MODEL_UNPRICED`) rather than guessed, and the package ships no vendor prices. `ProviderDescriptor` now prices a long-context tier (a prompt over a threshold is billed at a higher percentage of the input and output rates), in both the final cost and the pre-call reservation.
90
+ - Added the prompt library. A prompt is now a `PromptTemplate`: named text parts with `{{blanks}}`, a whole-number version, and a list of blanks that take text from outside. Rendering is strict (every blank given, nothing extra, values never re-expanded), and text from outside is always wrapped in an `<untrusted>` block with any copy of that tag inside it defused; a template may not put such a blank in its `system` part, and must have a `system` part that says how to treat it. `TomlPromptLibrary` loads `templates/*.toml` from the package behind a `PromptLibraryInterface` port, and refuses unknown keys. The context assembler now takes its section labels from the shipped `context_pack` template, and records `context_pack@1` as the prompt version (the prompt text itself is unchanged). A lock test pins each template's version to a fingerprint of its text, so a prompt cannot be edited without a version bump (the version is part of the journal key, so an edit under an old version would replay answers written for the old text). The templates ship in the wheel and load in a bare install. See `docs/PROMPTS.md`.
91
+ - Added `AskModel`, the policy a stage uses when a model's answer is not complete, and `ModelAnswer` (the text, whether it is complete, the issues, the cost and the number of calls). An answer cut off at its output cap is asked again with the cap doubled, up to the model's own limit; a refusal is asked again, identical and never reworded, up to a bounded number of times (default one retry); when the attempts run out (default four calls) the best text found comes back with a blocking `TRUNCATED` and/or `REFUSED` quality issue and the stage carries on. Before any live call it replays a complete answer at any output cap it could have reached, so a resumed run does not pay again for the attempts that led to an answer it already has, and every call is journaled under its own attempt number so no cost is lost. Running out of money and provider failures pass through to the run unchanged. `CallModel` gained `replay`, which looks up a complete answer for nothing. See `docs/MODEL_CALLS.md`.
92
+ - Added `CallModel`, the one way a stage reaches a model, and `SpendGuard`, the lock-protected budget it spends against. A request already answered in the run and stage is replayed from the journal for nothing. Otherwise the worst-case cost is reserved before anything is sent, so concurrent calls can never pass the cap, the call is made, and the answer is journaled with its true cost before the reservation is settled. A failed call releases its reservation and journals nothing. A truncated or refused answer is journaled too, so its cost counts toward spend, but under a key that includes the outcome and the attempt, so it is never replayed as a good answer. A call that costs more than it reserved is journaled and then refused with `BudgetExceededError`. Nothing calls it yet.
93
+ - Closed several ways for untrusted text to reach TeX live, and added `docs/THREAT_MODEL.md`. A bare URL or link target containing `\`, `{` or `}` could close `\url{` and leave the rest as TeX; a fenced code block containing `\end{verbatim}` could end its environment early; the title, subtitle, author and edition went raw into the PDF info dictionary; and `website` and `email` went raw into `\url` and `\href`. URLs are now turned into valid URIs (every character outside the ordinary URL set is percent-encoded, so a space, quote or accented letter in a printed URL appears as `%20`, `%22` or `%C3%A9`), a code block with `\end{verbatim}` is refused with a message, a `website` must be an http or https address or a bare host name (any other scheme, and `host:port`, is refused; write a port with its scheme), and the PDF info strings drop the characters TeX or PDF would act on (an ordinary title is unchanged, and the page text and EPUB contents of the fixture books are byte-identical before and after). A new tripwire test fills every field with a payload and fails if a live macro reaches the generated TeX, and a new toolchain test builds a hostile book with the real tools and checks that nothing in it runs.
94
+ - The build tools are now limited in memory and disk as well as time. A `ToolLimits` model holds the three ceilings, and `ProcessRunner` checks them every half second: resident memory summed over the tool and everything it started (8 GiB for `latexmk` and `tex4ebook`, 4 GiB for `epubcheck`, 2 GiB for the page renderer; read with `ps`, so a JVM's reserved address space does not count), and the size of the directory it writes into (4 GiB; `epubcheck` writes nothing, so none is measured). A tool over a limit is killed with its whole process tree and the build fails with a `BookBuildError` naming the tool, the limit and its last output. The limits are constructor arguments, not settings, and they are sampled, so a tool can pass one by what it can allocate or write in half a second. The fixture books build byte-identically through the limiting runner (final PDFs, EPUBs, covers and reports), and peak at about 400 MiB. New toolchain tests make real `lualatex` allocate and write past its limits.
95
+ - A non-fiction run now ends with an `assemble` stage that turns the drafted chapters into a manuscript the publishing pipeline can read: `manuscript/src/chapter_NN.md` and `manuscript/books/<slug>.toml` in the run's artifacts, with a list in `assemble.md`. It calls no model. Each chapter is headed with the outline's title; em and en dashes, which the typesetter refuses in non-fiction, are rewritten (a dash between digits becomes a hyphen, any other a comma), and an unfinished marker such as `[TODO]` or the word `Draft` stops the stage with the chapter and line. The config has the kind, title, trim size when set and the chapters, and not the author, publisher, edition, year or bio, which the author supplies, so the book loads but does not yet build. Recorded in ADR 0010.
96
+ - A non-fiction run now ends with an `audit` stage that runs the publishing pipeline's own audit-only gates (the manuscript audit and the release readiness check) on the assembled book, with no model call and no TeX toolchain. The reports are stored under `audit/` with a summary in `audit.md`. Errors stop the run with `AUDIT_FAILED`, after the reports are stored so a failed book can be read; warnings, such as a missing price, do not. The book is laid out in a private temporary folder that is removed afterwards. An assembled book passes the real audit (with an author profile the only findings are the prices the author has yet to set). The PDF and EPUB build and the cover are not part of it yet. Recorded in ADR 0010.
97
+ - The prompt that drafts a chapter now keeps everything from outside out of the system part. The context assembler (not yet used by any stage) put the style and the grounding in the high-trust `system` part and left the summaries, the tail and the beats unwrapped, which suited a story bible the product wrote but not a non-fiction book whose grounding holds web research and whose summaries are model output. The `context_pack` template (now version 2) holds fixed system text, and the voice, the book and its sources, the earlier chapters' summaries, the tail of the previous chapter and this chapter's beats are each an untrusted blank, rendered as their own `<untrusted>` block in the prompt with any copy of the tag defused. Only the caller's instruction is plain text, and it must hold nothing from a model or the web. Fitting to a token budget is unchanged. See docs/PROMPTS.md.
98
+ - A non-fiction run now has a `draft` stage after `outline`. It writes every chapter in order (`chapter_01.md`, `chapter_02.md`, …), each from the brief, the positioning, the outline and research, the summaries of the chapters before it and the end of the last one, and keeps a short summary of each (`summary_01.md`, …) and an index (`draft.md`). A stage that fails or is delivered twice goes back over the chapters and does only the work that is not done, so a redelivery costs nothing for what was already written. Chapter length comes from the brief's target words (2,500 words a chapter when there is none), within the model's output limit and window; a window that cannot hold a chapter stops the stage before any call. Skills can be enabled for `draft` like any other stage. Recorded in ADR 0010; nothing here has run against a live model yet.
99
+ - Remote MCP servers over HTTP (ADR 0008, slice 4d). `ei tools add --url URL NAME` contacts a server once and locks its address, the name and version it reported and a hash of its tools; a lock entry has either a `command` or a `url`, and `[server.files]` is only for a command. A remote server is reached over Streamable HTTP, https only and only to a public address (the URL policy `fetch_url` uses, asked before every request), with no redirects, no cookies, no compression, replies bounded to 4 MiB, 128 messages and 30 seconds, and a four-hour session. A token is the variable named by `--bearer-env`, sent as a bearer header to the locked address and never written into the lock or an error; a lock refuses a user, query string or fragment in the address. A remote server is a weaker pin than a local one, because its code is not ours to hash: only its address and what it advertises are locked. A server on this machine or network cannot be reached over HTTP; use stdio. The name is resolved twice (the policy, then the connection), the same gap as `fetch_url`. See docs/TOOL_LOCK.md.
100
+ - Marketplace indexes (ADR 0008, slice 6b). A marketplace is only an index: a TOML file listing plugin files, each with an address and the SHA-256 the file must have, with no other key. `ei plugins search INDEX [TEXT]` lists its plugins, and `ei plugins fetch INDEX NAME [--output DIR]` downloads one, **checks its hash against the index's before reading it as anything**, checks that it is the plugin and version listed, and saves it as `NAME.toml` without overwriting anything. **Fetching installs nothing**: it prints the `ei plugins show` and `ei plugins add` commands to run next, so installing stays an offline step on a file a person has read. `INDEX` is a file on disk or an `https://` address. A download goes through the same pinned-address URL policy as `fetch_url` and the remote tool transport (https, a public address checked each time, the connection made to the address that was checked, no redirects, no cookies, no compression, 512 KiB and 30 seconds); an address in an index has no user, password, query string or fragment. A run never contacts a marketplace, and only `search` and `fetch` can use a network. The downloader needs the `runtime` extra and is built on first use, so the core install still runs every other command and a local index file. Indexes and plugin files are not signed: the hash proves only that the bytes are the ones the index described. See docs/PLUGINS.md.
101
+ - A non-fiction run now has a `metadata` stage after `outline`. It writes the store listing (title, subtitle, a description of at least 80 words, seven keywords and one to three Amazon categories) in a fixed format that is read strictly, so an unreadable or out-of-contract listing stops the run where it is written (`METADATA_INVALID`). The assemble stage puts it in the book's config, with the release contract's keywords and categories, and a listing made this way passes the release metadata and category checks. The author's own details (author, publisher, edition, bio, and optionally year, website, email, ISBNs, dedication, copyright notes and earlier titles) come from a TOML file named by `EI_AUTHOR_PROFILE`, are written into the config, and are never sent to a model; see CONFIGURATION.md. With a profile, an assembled book has what the build needs. Recorded in ADR 0010.
102
+ - The outline is now a contract (ADR 0010, the first step of drafting chapters). The `stage_outline` template (now version 3) tells the model to write each chapter as `## Chapter N: Title` with `Purpose:`, `Beats:`, `Claims to source:` and `Leads to:`, and a new `OutlineParser` reads that strictly into an `Outline` of `ChapterOutline`s (at most 50 chapters, numbered 1, 2, 3 with no gaps, one-line bounded texts; a model's preamble and a closing paragraph after a blank line are ignored, and hidden and control characters are removed). A check run when the outline stage finishes refuses an answer it cannot read with `OUTLINE_INVALID`, before it is stored, so a malformed outline stops the run at the outline and not after drafting has been paid for. ADR 0010 records the decision to draft chapters in order inside one `draft` stage, and to drop the plan's parallel fan-out and join counter for 1.0, because a rolling summary needs the chapters in order. The drafting stage itself is not built yet. See docs/PROMPTS.md and docs/adr/0010-chapters-are-drafted-in-order-in-one-stage.md.
103
+ - Plugins (ADR 0008, slice 6a). A plugin is one TOML file that bundles skills and tool server definitions, so a person can review and pin them together. `ei plugins show FILE` says what installing it would do; `ei plugins add FILE` locks its skills (each enabled for no stage), keeps a copy of the bundle in `plugins/` and records its SHA-256 in `ei-plugins.lock.toml`; `list`, `verify` and `remove` check and undo it. **Installing starts nothing, contacts nothing, grants nothing and enables nothing:** the `ei tools add` command for each server is printed, shell-quoted, for a person to review and run, because that command is what starts a server. A bundle has no key for a grant or a stage, and any unknown key is refused; a server it describes is held to the rules the tool lock uses (an absolute command that is not a launcher, an https address with no secret in it); its skills are read by the same strict parser as a skill file. A plugin that is installed, or whose skills are already locked, is refused before anything is written, and a failure part-way undoes the install; `remove` deletes only skills that are still exactly what it installed. A run never reads the plugin lock. Marketplace indexes and fetching are not built (6b). See docs/PLUGINS.md.
104
+ - The research stage and the model's web tools are built (ADR 0008, slice 3). A model-backed non-fiction run is now brief, positioning, research and outline. The research stage is the first stage with tools: `web_search` (titles and links only) and `fetch_url` (public https pages, returned with their address, title and a SHA-256 of the text). Search uses SearXNG first, through `EI_SEARXNG_URL`, with Brave Search as the backup when `BRAVE_SEARCH_API_KEY` is also set; a run with neither stops at start. `examples/searxng/` runs a free local SearXNG on `127.0.0.1` with the JSON format switched on. `fetch_url` only reads an address the model was shown (in the prompt, a link line of an earlier search, or the address header of an earlier fetch; never an error message or page text), so a hostile page cannot steer it to an address that carries the brief out. A search query can still carry text to the search service, and a page can offer a menu of addresses to pick among, which leaks only a few bits. Everything a tool returns, and the text of a tool's error, is now wrapped in an `<untrusted>` block that it cannot close early, before it is stored or shown to the model. The outline prompt is now version 2 and reads the research notes. Nothing has been run against a live model, SearXNG, Brave or the internet, and the SearXNG container has not been started by the project's tests.
105
+ - A non-fiction run now edits the draft in three passes before the book is assembled: `revise_structure`, `revise_lines` and `copy_edit`. Each makes one call with no tools for each chapter, in order, from its own prompt, and each reads what the pass before wrote (`structure_NN.md`, `lines_NN.md`, `copy_NN.md`); the book is now assembled from `copy_NN.md`. Structure sees the outline, a line on every other chapter and the chapter's plan, lines sees the voice, and copy sees only the chapter. An edit that is blank, or more than a fifth (structure), a tenth (lines) or a twentieth (copy) longer or shorter than the chapter, is not kept and the chapter passes through unchanged, reported as a tolerated `revision-unchanged` issue; an answer that did not finish stops the stage. A chapter that would not fit the model's window stops the stage before the call. The editing passes mean about five model calls per chapter in all, each counted against the run's budget. Skills can be enabled for each pass. Recorded in ADR 0010; nothing here has run against a live model.
106
+ - `ei run export RUN_ID DIRECTORY` writes what a run produced to a new or empty folder: the book as a project at the top (`books/<slug>.toml` and `src/chapter_NN.md`, ready for the book commands) and every other artifact, such as the stage outputs and the audit reports, under `run/`. It only reads the run. Nothing is overwritten, a folder that already holds anything is refused, and either every file is written or none is (the tree is built beside the target and moved into place). Until now a run's manuscript could only be read one artifact at a time through the API.
107
+ - Research sources can now be found and read. `BraveSearchProvider` runs a web search and keeps only each result's link and title. `HttpSourceFetcher` reads a page as evidence: the outbound URL policy is asked before the first request and before every redirect, only HTML and plain text are accepted, a body over the size cap is refused (compressed bodies are not accepted, so a small download cannot expand in memory), and no cookies or credentials are sent. `HtmlTextExtractor` keeps what a reader would see and drops scripts, comments, hidden elements and invisible characters, so a page cannot hide instructions from the reader. Nothing uses them yet, and neither the search adapter nor the fetcher has been run against the live internet.
108
+ - Skills (ADR 0008, slice 5). A skill is a TOML file of text, with a part for each stage it speaks to, that a person installs to steer a stage's prompt: it adds no tool, no command and no address, and cannot widen what a stage may call. `ei skills add FILE` checks it strictly, records the SHA-256 of its bytes in `ei-skills.lock.toml` and keeps a copy in `skills/` beside the lock; it enables nothing. `ei skills enable NAME STAGE` (at most four per stage), `disable`, `remove`, `list` and `verify` do the rest. A run reads a skill lock only when `EI_SKILL_LOCK` names it, checks every enabled skill against its hash before any tool server is started or any call is made (`SKILL_LOCK_MISMATCH`, `SKILL_LOCK_MISSING`), and adds each stage's skills to the end of its user prompt inside a fixed frame (the new `skill_guidance` template), never the system part. The skills' identity goes into the prompt version, so a resumed run replays an answer only for the same text; a stage with no skill sends exactly what it always did. Text a reviewer cannot see (zero-width and bidirectional marks, control characters, private-use code points) is refused, a part is capped at 8,000 characters and a file at 64 KiB, and a copy of the block's tags inside a skill is defused. A skill is trusted as installed: one that was hostile when locked is followed, which is why it is read before it is enabled. See docs/SKILLS.md.
109
+ - A run's stages can now be done by a model. `ModelStageExecutor` reads the stage's recipe, puts the brief and every earlier answer into the prompt as untrusted text, asks through `AskModel`, and keeps the answer once. An answer that is refused, cut off or empty stops the run and stores nothing, so no later stage is built on it. Non-fiction runs have three stages so far (brief, positioning, outline). The worker still uses the offline placeholder unless `EI_STAGE_EXECUTOR=model` is set with `EI_STAGE_MODEL_PROFILE`, `EI_MODEL_PROFILES` and `EI_MODEL_CATALOG`; with anything missing it refuses to start. Nothing has been run against a live provider.
110
+ - The tool lock and the MCP client are built (ADR 0008, slice 4a). A lock file (`version = 1`, TOML) records each approved MCP server: its command, the SHA-256 of its executable and of every script in its arguments, the name and version it reported, the names it is given as environment variables, and a hash of every tool it advertised, so a changed file or a reworded tool description is noticed. Package launchers such as `npx`, `uvx` and `docker` are refused because their code cannot be hashed. `McpClient` speaks `initialize`, `tools/list` and `tools/call`, offers a server nothing (it refuses every request a server sends except `ping`), and treats everything a server sends as untrusted and bounded. `ToolLockVerifier` compares a lock with the files on disk and with what a running server reports. Not wired in yet: nothing starts a server, reads a lock in a run, or offers a server's tools to a stage, there is no `ei tools` command, and the client has only been tested against a fake transport. See docs/TOOL_LOCK.md.
111
+ - The tool loop (ADR 0008, slice 2) is built. `RunToolLoop` runs every model-backed stage: it asks, runs the tools the model calls through `ToolRunner`, and asks again, within limits on turns (8), tool calls (16), result size (20,000 characters) and seconds per call (60). A stage gets only the tools its recipe names; a call to any other name, or with arguments that do not fit the tool's schema, runs nothing and is answered with an error the model can read. Every tool call is journaled by tool and arguments, and `CallModel` now journals a tool turn whole (text and calls, keyed by the tools offered and the conversation so far), so a run that stopped in the middle of a conversation replays what it had finished for nothing and goes on from the first unfinished turn. A request with no tools is keyed and stored exactly as before. A model that calls a tool nobody offered is billed, journaled and refused. No tool is registered yet, so the model still has none; `web_search` and `fetch_url` come next. Not run against a live provider.
112
+ - The stdio transport and the `ei tools` commands are built (ADR 0008, slice 4b). `ei tools add NAME -- COMMAND` runs an MCP server once and records it in the tool lock (the SHA-256 of its executable and scripts, the name and version it reported, a hash of every tool it advertised); `ei tools list` shows the lock without starting anything; `ei tools verify` runs each locked server and compares it, and never starts one whose files have changed. A server runs as a child process in its own process group with a bare environment (no API key unless the lock names it), a throwaway home directory, and time, memory and disk limits, and is stopped by killing the whole group. Launchers such as `npx`, `uvx` and `docker`, and scripts given by relative path, are refused before anything runs. This is not a sandbox: a server can still read any file the user can and use the network. The client has been run against a small server written for the tests, not third-party servers, and nothing in a run reads the lock yet. See docs/TOOL_LOCK.md.
113
+ - The model port can now carry tools. A `ModelRequest` can offer tool definitions and a transcript of earlier tool turns, and a `ModelResponse` can return the tool calls the model asked for with the new `tool_use` stop reason. Both adapters speak their provider's format (content blocks for Anthropic, `tool_calls` and `tool` messages for OpenAI-compatible servers, including local servers that report `stop` alongside a tool call). Adapters never run a tool, and `CallModel` refuses a request with tools until the tool loop and journal exist, so nothing offers tools yet. Not run against a live provider.
114
+ - Locked MCP servers are wired into model-backed runs (ADR 0008, slice 4c). A run given `EI_TOOL_LOCK` starts each locked server, refuses to start (`TOOL_LOCK_MISMATCH`) if its files, name, version or tools differ from the lock, and stops every server already started; a changed file's server is never run. Each tool is registered as `<server>__<tool>`, but a stage is offered only the tools the lock grants it, so a registered tool that was not granted is refused even if the model asks. Grants live in a new optional `[server.grants]` table in the lock (no wildcards), edited with `ei tools grant` and `ei tools revoke`; `ei tools list` shows them. A locked tool goes through the same runner as the built-in tools (schema check, size cap, untrusted wrapping, journal), and its journal key includes the hash of the server's tools, so an updated server is asked again instead of replaying old answers. A lock in the working directory is not read unless named. A server is still not sandboxed, nothing has run against a third-party server or a live model, and HTTP servers are not built yet. See docs/TOOL_LOCK.md.
115
+ - `ei plugins search` can now read a Claude Code `marketplace.json` (a path or an `https://` address ending in `.json`) and lists each plugin with its description, version and where its source says it lives. It reads only name, description, version and source from each entry and ignores every other key; a source is classified (`path`, `github`, `url`, `other`) and printed, never followed. For a marketplace on disk, a `path` source also prints the `ei plugins import` command for that folder. Nothing is fetched, cloned or installed, and `plugins fetch` is unchanged. Entries that cannot be read are counted, not hidden.
116
+ - A locked MCP server that declares the `resources` capability now offers two tools the client adds itself, `list_resources` and `read_resource`, with fixed descriptions and schemas (not the server's). They are pinned by the tools hash, granted to a stage only by name (`ei tools grant NAME STAGE list_resources read_resource`) and offered to no stage by default; their results are untrusted tool output. `read_resource` takes a one-line uri of at most 2,000 characters and returns text only (binary content is noted as left out); `list_resources` shows at most 200 entries. Nothing is subscribed to. **A server that declares resources and was locked before this change no longer matches its lock**, because its tool list has two more tools: re-lock it with `ei tools add --replace`. A server with its own tool of either name keeps it and gets neither of ours. Run against a small server written for the tests only, not a third-party server.
117
+ - `ei plugins import FOLDER` turns a Claude Code plugin folder into a plugin bundle to review, then install with `ei plugins show` and `add`. It reads `.claude-plugin/plugin.json`, `.mcp.json` and `skills/*/SKILL.md`: each skill becomes a reference skill (enabled for no stage), and a server is kept only if the tool lock would accept it (an absolute, non-launcher command, or an https address). Placeholders are not expanded; environment values and headers are not copied, only variable names and a `Bearer ${NAME}` token as `bearer_env`. Commands, agents, hooks and the like are named and set aside, never read or run, and every skipped server or skill is printed with its reason. The file is written new, named for the plugin, and parsed again before it is written. Nothing has run against a real Claude Code plugin from the wild beyond the shape of the files.
118
+ - A skill can now carry **reference sections** that the model reads on request instead of having them in every prompt. A skill file may have a `[reference]` table of `"Section title" = "text"`; a stage the skill is enabled for gets an index of the sections (a line each, with its length) and the built-in read-only `read_skill` tool, and the model names a skill and a section to get its text, returned as untrusted tool output. `read_skill` refuses any skill or section the calling stage's own prompt does not list, so a skill enabled for one stage cannot be read from another. A section may be up to 20,000 characters, a skill 64 sections and 200,000 characters; a skill file may now be up to 256 KiB. `ei skills import --reference` keeps the sections of a `SKILL.md` for this (no `--stage`), so a long methodology reference imports whole. The drafting and editing passes are offered the tool too. The skill guidance template is now version 2, so prompt versions of stages with skills change. Nothing here has run against a live model.
119
+ - `ei doctor --search` runs one real search through each configured provider (SearXNG, then Brave when its key is set), one at a time so a down SearXNG is not hidden by Brave behind it, and prints a line each: how many links came back and the host of the first (never a title or address from the web, and a host with a control or unusual character is replaced by a placeholder). It takes `--query` (the default is the harmless sentence `open source book publishing`; the query leaves the machine) and runs on its own, not with `--models`. Exit 0 all answered, 1 one did not or nothing is configured, 2 the setting is unusable. New `docs/RESEARCH.md` covers search setup, installing your own methodology skills for the research stage (`ei skills import --reference`, `ei plugins import`), and what is not built. The live smoke test's setup now points at the check. The check itself has only been run against local servers written for the tests, not a live SearXNG instance or Brave.
120
+ - A book brief can now carry **inputs**: up to eight blocks of plain text (notes, an excerpt, reference material), each named, at most 50,000 characters and 200,000 in all, stored with the run. Brief version 1 gains an optional `inputs` list, so every existing brief reads the same, and a run stored before this loads with none. Text with a control, format, private-use or invisible character is refused, never cleaned. A `FileRunInputReader` reads a `.txt`, `.md` or `.markdown` file of UTF-8 text up to 256 KiB through no link. Inputs are untrusted data and grant nothing (ADR 0011). **Nothing uses them yet**: no command starts a run before `ei book create`, and the stage prompts do not carry inputs until the next change.
121
+ - The `brief`, `research` and `outline` stages now show the author's **inputs** to the model, as one `<untrusted name="inputs">` block listing each input under a heading with its name, origin and short SHA-256, or `not given` when there are none. The templates are `stage_brief@2`, `stage_research@2` and `stage_outline@4`, so a run in progress does not replay answers written for the old prompts. The research prompt says the material is not a source: a fact still needs a page the model read. Inputs change neither a stage's system prompt nor the tools it may call. The context window is not checked before these three stages, so very large inputs can overrun a small model. **Still nothing supplies inputs**: that waits for `ei book create`.
122
+ - `ei skills import SOURCE --stage STAGE [--section TITLE ...]` turns a `SKILL.md` (the Vibey and Claude skill format: a `---` frontmatter block and markdown) into an ordinary skill file to review and lock with `ei skills add`. You choose the sections and the stages; nothing is cut to fit, so when the chosen text is longer than a part holds (8,000 characters) the error lists every section with its length. Frontmatter keys other than `name` and `description` (`allowed-tools`, `domains`, and the like) are read, set aside and named, never used, because a skill grants nothing. It writes a new file and never replaces one, reads only the `SKILL.md`, follows no link, and locks and enables nothing. Tests include a real shaped file imported, locked, enabled and read by the research stage's prompt guidance. This is the first step of M6.5 (the model's reach); serving large references on demand comes next. See docs/SKILLS.md.
123
+ - The novel work is documented as it stands (M7.5): `docs/NOVELS.md` covers the five stages, the content levels, the continuity check and what is not built, and says how to read the prompts without a model. `docs/LIVE_SMOKE_TEST.md` states that the paid smoke test drives only the non-fiction plan, so there is no paid novel check yet, and why. No paid test was added: a novel run stops at the draft, so one would fail for a reason that teaches nothing.
124
+ - A novel's brief may set `violence` (`none`, `mild`, `moderate`, `graphic`) and `heat` (`none`, `sweet`, `steamy`, `explicit`); only a novel may, and a brief that sets neither reads exactly as before (M7.2). A model catalog entry may record `max_violence` and `max_heat`, what you have read that provider allow; the project asserts nothing about any provider. The new `ContentPolicy` service refuses a brief whose levels exceed the recorded ceiling (`CONTENT_LEVEL_NOT_ALLOWED`, naming the setting to change), and holds a model with no ceiling recorded to `mild` and `sweet`. Nothing calls it yet; the novel stages in M7.3 do before their first paid call.
125
+ - `StoryBible` is now a structured story bible (M7.1): characters with aliases and an age, places, dated events and a span in years, each short text one printable line and each list bounded. A new `ContinuityChecker` reads a novel's chapters against it, with no model call, and reports three kinds of finding: a capitalised name or place one letter from a known one (`Katharine` for `Katherine`), an age stated in one of three shapes that falls outside what the bible allows, and a dated event first mentioned after a later one. A finding is a question, not a verdict: a flashback is a good reason for a timeline finding to be wrong, a new character named like an old one for a spelling finding, and names under four letters are never compared. Nothing calls the checker yet; the novel stages that will are the next slices of M7.
126
+ - A novel run now drafts (M7.4): its plan ends with `draft`, the same chapter-by-chapter loop non-fiction uses, driven by a new `DraftRecipe` that says what a kind of book reads (the brief, the story bible, the beats and the outline), how the prompt labels it, and the one instruction, which now also carries the brief's violence and heat levels. Two new prompts, `novel_context_pack` and `novel_summary`; the non-fiction prompts are byte-for-byte what they were. When every chapter is written, `NovelDraftChecks` reads the whole draft against the story bible with the continuity checker and records each finding as a non-blocking quality issue (`CONTINUITY_NAME`, `_PLACE`, `_AGE`, `_TIMELINE`) and in `continuity.md`; the run keeps going, because a finding is a question and not a verdict. The novel draft is also gated by the content-level check before any call. Revision, copy editing, assembly and the audit for a novel are not built, nothing repairs a flagged chapter, and nothing has run against a real model. See `docs/NOVELS.md`.
127
+ - A novel run now has its first four stages (M7.3): `brief`, `story_bible`, `beats` and `outline`, each one versioned prompt with no tools (`novel_brief`, `novel_story_bible`, `novel_beats`, `novel_outline`). The story bible is one JSON object that the new `StoryBibleParser` reads strictly (the first object in the answer; every text collapsed to one line and stripped of control characters; the timeline sorted) and a bad one stops the run where it was written (`STORY_BIBLE_INVALID`); the outline uses the same chapter format non-fiction does, so one parser reads both. The runtime now dispatches by the brief's kind, so non-fiction is unchanged, and every novel stage first asks `ContentPolicy` whether the model is recorded as allowing the brief's violence and heat level, before any call. The levels are also in the prompts. Drafting and everything after it for a novel is not built, so a novel run ends at the outline, and nothing has run against a real model. See `docs/NOVELS.md`.
128
+ - `ei acp` now implements `session/load`: a client that reconnects can load a session it started, and see where its run stands. Sessions are stored in the database, so this works from a new `ei acp` process. This needs migration `0002`; run `ei db upgrade` first. See [INTERACTIONS.md](docs/INTERACTIONS.md#agent-client-protocol).
129
+ - `ei acp` now follows the run of each session and sends a `session/update` notice whenever its status or stage changes, once per change, until the run finishes. The client sees the run move through its stages without polling `ei run status`. Notices are written between replies, never inside one. See [INTERACTIONS.md](docs/INTERACTIONS.md#agent-client-protocol).
130
+ - `ei acp` serves the Agent Client Protocol (stable, version 1) over stdin and stdout, so an editor or agent client can start a book run in a session. `initialize`, `session/new`, `session/prompt` and `session/cancel` are implemented; a prompt is read as the same TOML brief that `ei run create` reads, and it starts the same run. Sessions live in the process, and a run outlives its session. Permission requests, `session/load`, MCP servers and progress streaming are not yet implemented. See [INTERACTIONS.md](docs/INTERACTIONS.md#agent-client-protocol).
131
+ - `ei book create` makes a whole book from an idea, with nobody in the loop: `ei book create --kind nonfiction|novel "<idea>" --budget-usd 5 --out DIR --profile author.toml`. It runs every stage of the plan in one process (no database server, queue or worker), with the models and search the environment names, and writes the book project, the finished PDF, EPUB, covers, listing and manifest, the readiness reports and `quality-report.json` to `DIR`. The run is kept in a SQLite file beside it (`DIR.state/`), so a process that dies loses nothing that was paid for: `--resume` continues it and a model call already made is replayed, not paid for again; a run that asks for more budget stops and writes nothing until `--resume --approve-spend`. The budget has no default, and the author profile is required; both are checked before anything is spent, as is a strict release's need for pricing. The author profile may now carry a `[pricing]` table (`verified_on`, `source_url`, `ebook`, `paperback`, optional `hardcover`) that goes into the book's `[release.pricing]`, so **a run's book passes `--strict-release` with epubcheck required** (`--strict-release` on `ei book create`, or `EI_BUILD_STRICT_RELEASE`); a hardcover price also declares the book a KDP hardcover. That is proven with the real toolchain, for a book and a novel, in `tests/toolchain/test_run_builds_book.py`. A failed run is final, as on a worker, but what it made is still written out. Retries wait 2, 10 then 30 seconds between attempts.
132
+ - A run now plans its money. **The editing passes degrade instead of stopping the run**: when a revision pass would pass the cap, that chapter and the rest of the pass keep the text they had (stored unchanged, so the next pass and the assembly read them as usual), the pass's list says so, and one tolerated issue, `revision-skipped-budget`, goes into the quality report; nothing more is paid for. Where the pass stopped is kept in `<stage>_skipped.md`, so a redelivery reports the same list. The planning stages and the draft are still essential and still stop to ask for more budget. **A first-pass cost estimator** (`CostEstimator`) prices every stage of a plan from the brief (words become chapters, chapters become the tokens each stage reads and writes) with the model's own rates, and a `BudgetPlanner` grades a cap against it: `short`, `tight`, `lean` or `ample`. `ei book create` prints the estimate before it spends anything, refuses a `short` budget with the budget that would do (`--ignore-estimate` starts anyway), and warns on `tight` and `lean`. **`quality-report.json` gains a `spend` block** with the cap, what was spent, the estimate made from the brief and their ratio, which is how the estimator's constants are to be calibrated on real runs: nothing here claims the estimate is within any bound of the truth, and A5's accuracy target is not yet evidenced. A test shrinks a finished draft's cap to what it spent and shows the run still completes with every chapter assembled from the draft.
133
+ - Granting and denying a run's request for budget are on the API (`POST /v1/runs/{run_id}/grant` and `/deny`), in MCP (`grant_run`, `deny_run`) and in the SDK (`grant_run`, `deny_run`, sync and async), as well as on the command line. Each refuses exactly what the service refuses. See [INTERACTIONS.md](docs/INTERACTIONS.md#rest-api).
134
+ - Every public contract is now frozen by a snapshot test. `tests/contracts/` compares the brief, book-config, run-summary and job-message schemas, the REST OpenAPI document the stack really serves (and the shape of its errors), the whole `ei` command tree (every command, option, choice and default, without help text), the SDK's public methods and signatures, the MCP tools and their arguments, the error codes and issue codes found in the source, and the webhook envelope, catalogue, headers and signature with committed copies in `tests/contracts/snapshots/`; a contract that moves fails a test, and `EI_UPDATE_CONTRACTS=1 uv run pytest tests/contracts` rewrites the snapshot when the move is intended. Prose (docstrings, help text, names generated from handler functions) is left out, so rewording is not a change. The new `docs/COMPATIBILITY.md` says what is promised, what counts as compatible and what as breaking, how to change a contract on purpose, and what is not promised (ACP, the experimental pipeline stages, the files a run writes, Python imports). Two contracts changed to make them freezable: **a book config now carries `schema_version`** (version 1; a config without it is read as version 1, so no existing book changes), and **a webhook delivery is now a versioned envelope**, `{"schema_version": 1, "id", "type", "data"}`, with a new `WebhookEventV1` contract whose catalogue (`pipeline.started`, `phase.completed`, `gate.awaiting`, `pipeline.completed`, each with its payload keys) is tested against what the services really record. Nothing delivers webhooks yet; the envelope is frozen so a receiver written now keeps working. `CliApplication` gains a `parser()` method so the tree can be read.
135
+ - `ei evaluate` is the A5 and A6 evaluation harness. It makes every book of a fixed set (`evaluation/set.toml`: three non-fiction ideas and two novels) with the stack's own pipeline, has a separately configured judge model score each finished book on a reviewed rubric (`evaluation/rubric.toml`), and checks the release against the bar: every book finished, every dimension's mean at least 3.5, none fallen by more than 0.2 from the previous report, and the cost estimate within 30% of what was spent. It writes a stable `evaluation.json` that is the next release's baseline, and exits 0, 1 or 2. It spends real money, so it refuses to start without `EI_ALLOW_PAID=1`, takes a budget for each book and one for the judge, and the judge reserves every call from its own budget before it is made. Tested only against scripted models: no real model has been run against the bar. A nightly workflow exists and is off until `RUN_NIGHTLY_EVAL` is `true`. See [EVALUATION.md](docs/EVALUATION.md).
136
+ - A novel run now ends in a built book too. Its plan is brief, story bible, beats, outline, **metadata**, draft, **assemble**, **audit** and **build**. The new `metadata` stage (prompt `novel_metadata`, checked with `MetadataParser`) writes the store listing right after the outline. Assemble builds the manuscript project from the draft's own chapters with `kind = "novel"` and the brief's trim size, and keeps the em and en dashes a novel's prose has (a new `VerbatimDashes`; only non-fiction refuses them). Audit and build are the same stages non-fiction uses. **There are no editing passes for a novel yet**, so the book is built from the draft as written. A scripted novel run, built with the real toolchain, is `tests/toolchain/test_run_builds_book.py`. That test found a real defect: the cover text check refused a back-cover blurb whose first letter overhung the safe area by 0.04 in, so a legitimate book could fail its build over a few pixels; the tolerance is now 0.06 in, still far inside KDP's margin. The rehearsal driver (`tests/smoke_run.py`) now runs the plan of the brief's kind.
137
+ - `ei book package SLUG` writes the KDP release bundle to `build/SLUG/release/kdp` (M8.2): `listing.md` (the listing to paste, with the file table and hashes), `MANIFEST.json`, and a copy of each finished file the release requires. It refuses, writing nothing, when the release check fails, when a required file is missing, or when the listing is outside the release limits. The packaging is a service behind a publisher port, so the controller only coordinates it, and the directory adapter refuses symbolic links and names that are not plain filenames. Nothing is uploaded; KDP has no publishing API.
138
+ - A release now publishes the two container images (A9). After the GitHub release, an `images` job in `release.yml` builds the `runtime` and `worker-tex` targets of the `Dockerfile` from the released commit, checks that each reports the released version, pushes them to `ghcr.io/<owner>/<repo>` as `<version>` and `<version>-tex` (a stable release also moves `latest` and `tex`), and attests the build provenance of each by digest. It never writes over a tag that was built from another commit, and it stops on any registry answer other than a clear "no such manifest". It runs from its own `ghcr` environment and stays off until the repository variable `PUBLISH_IMAGES` is `true`. Never run: the workflow is tested against a stand-in `docker`, not a registry. See [RELEASING.md](docs/RELEASING.md).
139
+ - A non-fiction run now ends in a built book. A new final stage, `build`, takes the run's own manuscript through the same publish pipeline as `ei book publish` (audit, interior PDF, covers, EPUB with epubcheck, release-readiness) in a scratch folder, packages the KDP bundle, and stores the result in the run: `book/<slug>.pdf`, `.epub`, the covers, `listing.md` and `MANIFEST.json`; `build/` with the readiness reports and tool logs; a deterministic `quality-report.json` (status, errors, warnings, steps, and a size and sha256 for every file); and `build.md`. A failed build stores what it produced before it fails the run (`BUILD_FAILED`). The stage needs the TeX worker image; `examples/docker-compose.tex.yml` switches the compose stack's worker to it, and `docs/WORKER_IMAGE.md` says how. A strict release needs the author's pricing inputs, which a run cannot invent, so it is off by default: set `EI_BUILD_STRICT_RELEASE=1` to fail a run on any readiness warning. Proven with the real toolchain: `tests/toolchain/test_run_builds_book.py` runs the scripted rehearsal of the whole plan and checks the PDF, the EPUB, the report and its checksums. Building the book from a run also exposed a bug in KDP packaging: it expected a hardcover file for every book, whether or not the book had a hardcover, and refused with "missing artifact"; it now reads the book's own format settings.
140
+ - `ei run create BRIEF.TOML` starts a book run from a brief file, and `ei run runs` lists the saved runs (M8.1). The brief is read as TOML and checked against the brief contract, so a file that is not a brief is refused on one line with nothing saved; a kind this build cannot start is refused the same way. The run is saved pending with the brief's cap as its budget, and its first stage is queued on the broker, exactly as `resume` queues one, so the worker does the stages. Nothing here runs a stage in-process, and no API, MCP or SDK method starts a run yet.
141
+ - Book runs can be listed, resumed and cancelled over the API, MCP and the SDK (M8.4): `GET /v1/runs`, `POST /v1/runs/{run_id}/resume` and `POST /v1/runs/{run_id}/cancel`, the `list_runs`, `resume_run` and `cancel_run` MCP tools, and the matching SDK methods (sync and async). They go through one `RunManagement` service that composes the list, resume and cancel services the command line uses, so every surface refuses what the command line refuses: an unknown run is `404`, a finished run cannot be resumed (`409`). A parity test checks each surface against the services, including the refusals and the missing-key case.
142
+ - A run's status and its files can now be read from the SDK and over MCP, not only from the REST API and the command line. The SDK (sync and async) gains `get_run(run_id)`, a run's summary with the names of its artifacts, and `get_artifact(run_id, name)`, the bytes of one stored file such as `book/my-book.pdf`. The MCP server, when built with a run reader, gains `get_run` and `read_artifact`: a file is returned as text when it is UTF-8 and as base64 when it is not, and one over 1 MiB is refused with `ARTIFACT_TOO_LARGE` and the address that downloads any size. Every surface agrees with the service: `tests/parity/test_run_read_parity.py` checks the REST API, MCP and both SDK clients against it, including binary files and nested names, and a run or file that is not there.
143
+ - Book runs can be started from a brief over the API, MCP and the SDK (M8.3): `POST /v1/runs` takes the brief contract v1 and answers `201` with the new run, `create_run` is the MCP tool and the SDK method (sync and async). All of them use the same `CreateRun` service as `ei run create`, and a parity test checks each returns the same run for the same brief. Creating a run now has its plan mapping in one place (`CreateRun` builds it by default), not one per wiring. The command line prints a line of text rather than the run, so it is not in the JSON parity comparison. Nothing here lists, resumes or cancels a run over the API, MCP or SDK yet.
144
+ - `ei serve mcp` runs the stack's MCP server over stdio, so an MCP host (Claude Desktop, an agent runtime) can start it as a child process and drive runs: `start_pipeline`, `create_run`, `list_runs`, `get_run`, `read_artifact`, `resume_run` and `cancel_run`, over the same database and queue as the API. It needs `EI_DATABASE_URL` and `EI_RABBITMQ_URL` and a migrated database, takes no API key (the host that starts it already holds the stack's credentials), and keeps standard output for the protocol, with JSON logs on standard error. **It does not offer `grant_run` or `deny_run` unless the operator sets `EI_MCP_ALLOW_SPEND=1`**: an agent can start, watch and read a run, but cannot raise its own run's cap, and a run it starts is held to `EI_MCP_MAX_RUN_BUDGET_MICRO_USD` (default five dollars), so it cannot open one with a cap of its own choosing (a limit on how many runs it starts is not built yet); a run that needs more budget shows as `awaiting_consent` and the person answers it with `ei run grant`. `McpApplication` takes the same switch as `allow_spend`, which now defaults to off, and `max_run_budget_micro_usd`. A test starts `ei serve mcp` as a real subprocess and talks to it over stdio (initialize, list the tools, call `get_run` on a seeded run).
145
+ - The operator can now put ceilings on spend that hold however a run is started or topped up. `EI_MAX_RUN_BUDGET_MICRO_USD` is the most any one run may be given, at its start and after every grant; `EI_MAX_OUTSTANDING_BUDGET_MICRO_USD` is the most unspent budget all runs may hold together (each unfinished run's cap less what it has spent), so a client that starts many runs, or is granted more again and again, runs out of room instead of out of money. Neither is set by default. A brief or a grant that would break one is refused before anything is saved or queued, with `BUDGET_ABOVE_LIMIT` or `OUTSTANDING_BUDGET_EXCEEDED` (HTTP 422), the same way over the REST API, `ei run create` and `ei run grant`, MCP and ACP; a denial is never held back. The check lives in a new `SpendCeiling` service used by `CreateRun` and `ResolveSpendConsent`. A property test (`tests/unit/services/test_spend_ceiling_property.py`) runs random sequences of starts, requests for more, grants, spending and finishing and shows that no ceiling is ever exceeded. A check and the save that follows it are one locked step, so many requests at once to one API or MCP process cannot each pass against the same total; across separate processes (the API and a command line) each holds its own lock, so there it is a check with a window of a few milliseconds. `ei book create` (your own machine, one run) is not held to it.
146
+ - A run that would spend past its cap now waits for a decision instead of failing. Its next model call is refused before it spends, and the run stops as `awaiting_consent` with the amount the call needs. An open `ei acp` session is asked with a permission request to grant that exact amount or deny it; from the command line, `ei run grant RUN_ID` and `ei run deny RUN_ID` decide any waiting run. A denied run parks and can be continued later with `ei run grant RUN_ID --micro-usd N`. See [INTERACTIONS.md](docs/INTERACTIONS.md#agent-client-protocol).
147
+ - The run summary (`ei run status`, the run API) now says how much a run waiting for consent asks for, in `consent_requested_micro_usd`; it is null at any other time. The field is additive: existing readers are unaffected.
148
+ - The `Dockerfile` has a `worker-tex` target (M8.5): a worker image with the TeX toolchain a book build calls (LuaLaTeX, latexmk, tex4ebook, pdftoppm, epubcheck, a Java runtime, zip and tidy). The default target is still the slim image the compose stack runs; it now also installs the publishing extra, so it is about 170 MB larger. In the TeX image, a book builds to PDF and EPUB and the EPUB passes epubcheck, with the container's filesystem read-only and every capability dropped. The TeX cache has to point at `/tmp`, which the image sets; `docs/WORKER_IMAGE.md` records what was verified and what was not, including a full book and the CI job for this target.
149
+ - Outbound connections for `fetch_url` and remote MCP servers are pinned to the address that was checked, closing the DNS-rebinding gap. The new `PublicHttpsUrlPinner` resolves a name once, has the URL policy judge every address it returned, and hands the caller the vetted address together with the name for the `Host` header and for TLS, so the certificate is still checked against the name and not the address. A name that resolves public and then inward is sent to the public address only. Only one address is tried, a request to a name that fails to resolve or fails IDNA encoding is refused, and `fetch_url` sends `Connection: close` so a connection verified for one name is never reused for another that shares its address. Proven over real TLS with a self-signed certificate. Signed webhook delivery still asks the policy and lets the client resolve again, and is unchanged.
150
+ - Publishing now follows the branch. A merge to `develop` uploads a development build (`<version>.dev<run number>`) to TestPyPI, and a merge to `main` is a release: the guard checks the version and changelog, a GitHub release and the tag `v<version>` are created, and the packages are uploaded to PyPI. The core and the SDK are uploaded by separate jobs from separate environments (`testpypi` and `testpypi-sdk`, `pypi` and `pypi-sdk`), because PyPI tells pending trusted publishers apart by their environment. Each index is off until its repository variable (`PUBLISH_TO_TESTPYPI`, `PUBLISH_TO_PYPI`) is `true`, and each environment's reviewers approve every upload. A tag push no longer starts a release. None of the four upload jobs has run. See ADR 0009.
151
+ - The structure and lines editing passes now tell the model how long the chapter is and what range to stay in, and a rejected answer is asked for once more. On the first real book, `gpt-oss:20b` shrank every chapter to 21-46% of its length in the structure pass and 57-80% in the lines pass, so all but one answer fell outside the bounds and the book was kept as drafted. Asking for "about as long, no fewer than N words and no more than M, keeping every section, table, checklist and example" brought six of the seven chapters to 90-100% of their length, with every heading and table kept and no new quotations; the seventh, at 62%, is the case the retry below is for. If an answer is still outside the bounds, the executor asks once more with the rejected answer's length and the range in the prompt, which makes it a different request and so not a replay from the journal; if that one does not finish, the first answer's rejection stands, and if it runs out of budget the chapter is skipped like any other. The three editing templates are now version 2 (each has a new `retry` part; the structure and lines prompts have the three length blanks), so an old run's calls are not replayed. A rejected chapter now costs a second call, which the cost estimator does not count.
152
+ - An edit that a revision pass rejects is now reported as a tolerated `revision-rejected` issue, with the answer's word count and the length bounds it missed, and the chapter it was asked about is listed as kept as it was. Before, a rejected edit was reported as `revision-unchanged`, which read as the model having changed nothing. The rejection is recorded per chapter in `<stage>_rejected_NN.md`, so a redelivery reports the same. Nothing is kept or paid for differently; the run's status is unaffected.
153
+
154
+ ## 0.1.0a2
155
+
156
+ - Release flow and CI: ADR 0005 records how releases really work (the version is set by hand in the release commit) and replaces direct edits of this file with `changelog.d/` fragments, folded by `scripts/fold_changelog.py` and enforced by the release guard. CI now runs every gate on Python 3.12, 3.13 and 3.14, the SDK and core declare 3.14, and a daily `Canary` workflow installs the declared bounds from the package index without the lock file and runs the suite. `CONTRIBUTING.md` states what may live in the public repository (where model prompts, fixtures and cassettes go).
157
+ - The `toolchain` CI job caches the downloaded TeX packages and downloads them in short, retried attempts, because the runner's mirror sometimes throttled a connection until the job hit its time limit.
158
+ - Added a `toolchain` CI job that builds a synthetic fixture book with real LuaLaTeX, tex4ebook and epubcheck under a strict release contract and compares it with a checked-in structural snapshot. Before this, no test built a real PDF or EPUB. See `docs/TESTING.md`.
159
+ - Hardened the TeX toolchain before any model-written text reaches it: `latexmk` runs with `-no-shell-escape`, and both `latexmk` and `tex4ebook` get an allow-listed environment (`PATH`, `HOME`, locale, `TEXMF*` and similar) instead of a copy of the parent's, so API keys and tokens never reach a build tool.
160
+ - A strict release (`--strict-release`, or `release.required = true` in the book config) now fails when `epubcheck` is not installed. Before, a missing validator read as a pass.
161
+ - CI works again. `vibey-engine` 4.5.0 was removed from PyPI (the index lists 0.3.0 and 0.4.0), which failed the provenance job, the distribution build and `uv lock`. The runtime extra now asks for `vibey-engine>=0.4,<0.5`; the provenance job installs from `uv.lock` instead of the index; `tests/unit/test_vibey_import_contract.py` names every vibey symbol the package uses.
162
+ - CI now also runs `ruff format --check` and installs with `uv sync --locked`, which fails when `uv.lock` and `pyproject.toml` disagree.
163
+ - Replaced the unused `cli` extra (`typer`) with `webhooks` (`httpx`, which webhook delivery imports).
164
+ - The commit-msg and pre-push hooks are regenerated by the pinned `vibey-gh`; the new template reads `self_source` from local git config instead of a tracked file.
165
+ - `uv` resolves only Python 3.12 to 3.14, so a lock no longer tries to resolve Python 3.15.
166
+ - Added ADR 0003 (the definition of 1.0: an idea becomes a KDP-ready EPUB and print PDF with nobody in the loop) and ADR 0004 (versioning, compatibility and deprecation).
167
+ - Corrected documentation that claimed more than the code does: categories are not checked, jobs are not retried, no `pdf_safety` module exists, no clock port exists, delivery is at least once, and the API readiness probe does not include the toolchain check. The MCP server no longer says it can inspect pipelines.
168
+ - Provenance headers now cover the SDK package, and `CONTRIBUTING.md` lists every gate command.
169
+ - Documentation now states the purpose everywhere: fully autonomous writing of fiction and non-fiction books, packaged ready to self-publish on Amazon KDP. Added `docs/BOOKS_AND_KDP.md` (what a KDP-ready package contains, what is built, what is not); package descriptions updated.
170
+ - Restored a green `develop` after the Dependabot major bumps: the MCP server uses `mcp.server.mcpserver.MCPServer` (`mcp` 2.x renamed `FastMCP`) and the bounds now require `mcp>=2,<3`; the compose file mounts `/var/lib/postgresql` for PostgreSQL 18; coverage measures child processes itself (`patch = ["subprocess"]`) now that pytest-cov 7 does not.
171
+ - Pull requests opened by Dependabot are exempt from the `Made-With:` provenance check (it cannot add the trailer); Conventional Commit checking still applies.
172
+ - Rewrote the examples to behave like real use: `requests` and `curl` against a running API, a real MCP stdio client and server, and a stdlib webhook receiver with a sender, plus `examples/up.sh` and `down.sh` to run the stack. The example tests run them against real sockets.
173
+ - Documentation overhaul: README, getting started, interfaces reference, architecture, troubleshooting, testing, contributing, agent guidance and `llms.txt`.
174
+ - The release workflow can be started by hand for an existing tag (`workflow_dispatch`), and the guard now verifies the commit of the tag being released instead of the commit that started the run.
175
+ - CI can be started by hand.
176
+
177
+ ## 0.1.0a1
178
+
179
+ - Established the orphan FOSS package and initial domain boundaries.
180
+ - Recorded the vibey integration boundary and fallback adapter decision.
181
+ - Added fail-closed security adapters: API key authentication, per-address and per-key rate limiting, timestamped webhook signatures with replay defence, an outbound URL policy that blocks SSRF, path confinement, and upload inspection. The REST API now requires a guard.
182
+ - `ApplicationError` stays immutable but no longer blocks `__traceback__`, which crashed it when raised on a worker thread.
183
+ - Added observability: JSON logs with secret masking, a correlation id carried from request to queue to worker to webhook, request counters, `/health/live`, `/health/ready` and an authenticated Prometheus `/metrics`, service latency tracing, crash alert hooks and a worker heartbeat with a silence watchdog.
184
+ - Webhook dispatch now isolates failures per event, counts attempts, and dead-letters with an alert after repeated failure. Previously one rejected or unreachable destination blocked every event behind it. The outbox table gained `dead_at`.
185
+ - Added `ei serve api` and `ei serve worker`, a Dockerfile, and `examples/docker-compose.yml` (Postgres, RabbitMQ, API, worker) with a smoke test. All settings fail closed and the compose file has no default credentials.
186
+ - Added a worker that consumes jobs from RabbitMQ, runs each stage, records it in the ledger and enqueues the next, with malformed and failing jobs dead-lettered. `StartPipeline` now tells a job which stages follow it.
187
+ - Fixed the RabbitMQ publisher silently dropping messages when the queue had not been declared yet.
188
+ - Added release automation: a tag-triggered workflow that guards the tag, builds and installs the real artifacts, attests build provenance, creates the GitHub release with checksums and an SBOM, and publishes to PyPI behind an approval gate. See `docs/RELEASING.md`.
189
+ - The version is now defined once, in `__version__`, and read by `pyproject.toml`, `ei --version` and the API. Builds are reproducible.
190
+ - The wheel now ships `py.typed`, and the source distribution no longer includes local tool caches, git hooks or agent configuration. Added project URLs, classifiers and an SDK README.
191
+ - `ei serve` without the `api` and `runtime` extras now says which extras to install instead of failing with a traceback.
192
+ - Pinned every GitHub Action to a commit SHA, restricted job permissions, and added `actionlint` and `zizmor` checks.
193
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Adam Matthew Steinberger
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and sell copies
9
+ of the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.