stead 0.5.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.
Files changed (262) hide show
  1. stead-0.5.0/LICENSE +201 -0
  2. stead-0.5.0/PKG-INFO +204 -0
  3. stead-0.5.0/README.md +165 -0
  4. stead-0.5.0/ctx/__init__.py +7 -0
  5. stead-0.5.0/ctx/__main__.py +9 -0
  6. stead-0.5.0/ctx/accounts.py +350 -0
  7. stead-0.5.0/ctx/acp_server.py +976 -0
  8. stead-0.5.0/ctx/actors.py +64 -0
  9. stead-0.5.0/ctx/agent.py +2344 -0
  10. stead-0.5.0/ctx/agent_address.py +781 -0
  11. stead-0.5.0/ctx/agent_exports.py +724 -0
  12. stead-0.5.0/ctx/agent_git.py +704 -0
  13. stead-0.5.0/ctx/agent_prompts.py +298 -0
  14. stead-0.5.0/ctx/agent_tools.py +256 -0
  15. stead-0.5.0/ctx/audit.py +97 -0
  16. stead-0.5.0/ctx/autonomy.py +344 -0
  17. stead-0.5.0/ctx/backup.py +387 -0
  18. stead-0.5.0/ctx/bench.py +473 -0
  19. stead-0.5.0/ctx/bundle.py +442 -0
  20. stead-0.5.0/ctx/chatops.py +370 -0
  21. stead-0.5.0/ctx/ci_hooks.py +128 -0
  22. stead-0.5.0/ctx/cli.py +2018 -0
  23. stead-0.5.0/ctx/cli_handlers.py +2248 -0
  24. stead-0.5.0/ctx/cockpit/events_forms.js +835 -0
  25. stead-0.5.0/ctx/cockpit/events_pipeline.js +1353 -0
  26. stead-0.5.0/ctx/cockpit/events_ui.js +1302 -0
  27. stead-0.5.0/ctx/cockpit/palette.js +146 -0
  28. stead-0.5.0/ctx/cockpit/state.js +666 -0
  29. stead-0.5.0/ctx/cockpit/styles.css +834 -0
  30. stead-0.5.0/ctx/cockpit/views_core.js +661 -0
  31. stead-0.5.0/ctx/cockpit/views_pipeline.js +1183 -0
  32. stead-0.5.0/ctx/cockpit/views_spaces.js +1468 -0
  33. stead-0.5.0/ctx/cockpit.html +61 -0
  34. stead-0.5.0/ctx/commands.py +499 -0
  35. stead-0.5.0/ctx/comment.py +233 -0
  36. stead-0.5.0/ctx/config.py +563 -0
  37. stead-0.5.0/ctx/context_bench.py +220 -0
  38. stead-0.5.0/ctx/context_sync.py +235 -0
  39. stead-0.5.0/ctx/db.py +519 -0
  40. stead-0.5.0/ctx/deliver.py +105 -0
  41. stead-0.5.0/ctx/demo.py +338 -0
  42. stead-0.5.0/ctx/devcontainer.py +850 -0
  43. stead-0.5.0/ctx/doctor.py +376 -0
  44. stead-0.5.0/ctx/drift.py +565 -0
  45. stead-0.5.0/ctx/events.py +142 -0
  46. stead-0.5.0/ctx/executor.py +713 -0
  47. stead-0.5.0/ctx/factory.py +1384 -0
  48. stead-0.5.0/ctx/federation.py +397 -0
  49. stead-0.5.0/ctx/forge.py +358 -0
  50. stead-0.5.0/ctx/frontmatter.py +157 -0
  51. stead-0.5.0/ctx/gc.py +275 -0
  52. stead-0.5.0/ctx/graph.py +434 -0
  53. stead-0.5.0/ctx/inbox_import.py +341 -0
  54. stead-0.5.0/ctx/integrations.py +214 -0
  55. stead-0.5.0/ctx/isolation.py +665 -0
  56. stead-0.5.0/ctx/issue_file.py +228 -0
  57. stead-0.5.0/ctx/local_review.py +205 -0
  58. stead-0.5.0/ctx/lsp.py +493 -0
  59. stead-0.5.0/ctx/mcp_server.py +1806 -0
  60. stead-0.5.0/ctx/merge.py +286 -0
  61. stead-0.5.0/ctx/metrics.py +232 -0
  62. stead-0.5.0/ctx/model_evals.py +431 -0
  63. stead-0.5.0/ctx/models.py +953 -0
  64. stead-0.5.0/ctx/notify.py +304 -0
  65. stead-0.5.0/ctx/objects.py +111 -0
  66. stead-0.5.0/ctx/onboard.py +419 -0
  67. stead-0.5.0/ctx/otel.py +397 -0
  68. stead-0.5.0/ctx/output_compress.py +180 -0
  69. stead-0.5.0/ctx/patch.py +407 -0
  70. stead-0.5.0/ctx/pipeline_eval.py +586 -0
  71. stead-0.5.0/ctx/plan_paths.py +200 -0
  72. stead-0.5.0/ctx/pr_triage.py +625 -0
  73. stead-0.5.0/ctx/proof.py +90 -0
  74. stead-0.5.0/ctx/publish.py +270 -0
  75. stead-0.5.0/ctx/repair.py +250 -0
  76. stead-0.5.0/ctx/repo_map.py +1320 -0
  77. stead-0.5.0/ctx/review.py +672 -0
  78. stead-0.5.0/ctx/safety.py +667 -0
  79. stead-0.5.0/ctx/sarif.py +175 -0
  80. stead-0.5.0/ctx/scaffold.py +199 -0
  81. stead-0.5.0/ctx/schedule.py +590 -0
  82. stead-0.5.0/ctx/schema.sql +180 -0
  83. stead-0.5.0/ctx/search.py +249 -0
  84. stead-0.5.0/ctx/semantic.py +1007 -0
  85. stead-0.5.0/ctx/sessions.py +265 -0
  86. stead-0.5.0/ctx/slop.py +725 -0
  87. stead-0.5.0/ctx/spec.py +1528 -0
  88. stead-0.5.0/ctx/spec_split.py +588 -0
  89. stead-0.5.0/ctx/spend.py +200 -0
  90. stead-0.5.0/ctx/stack.py +719 -0
  91. stead-0.5.0/ctx/stead_publish.py +578 -0
  92. stead-0.5.0/ctx/steer.py +151 -0
  93. stead-0.5.0/ctx/sync.py +628 -0
  94. stead-0.5.0/ctx/task_query.py +36 -0
  95. stead-0.5.0/ctx/tasks.py +449 -0
  96. stead-0.5.0/ctx/test_quality.py +1007 -0
  97. stead-0.5.0/ctx/tracker.py +1063 -0
  98. stead-0.5.0/ctx/ui.py +1761 -0
  99. stead-0.5.0/ctx/ui_routes.py +2427 -0
  100. stead-0.5.0/ctx/ui_server.py +1333 -0
  101. stead-0.5.0/ctx/ui_snapshot.py +1238 -0
  102. stead-0.5.0/ctx/util.py +132 -0
  103. stead-0.5.0/ctx/wiki.py +492 -0
  104. stead-0.5.0/ctx/wiki_store.py +169 -0
  105. stead-0.5.0/ctx/writeback.py +1403 -0
  106. stead-0.5.0/factories/context-maintenance/FACTORY.md +37 -0
  107. stead-0.5.0/factories/context-maintenance/evals/eval-maintenance-broken-relation.json +7 -0
  108. stead-0.5.0/factories/context-maintenance/evals/eval-maintenance-clean.json +7 -0
  109. stead-0.5.0/factories/context-maintenance/evals/eval-maintenance-duplicates.json +7 -0
  110. stead-0.5.0/factories/context-maintenance/evals/eval-maintenance-inbox.json +7 -0
  111. stead-0.5.0/factories/context-maintenance/evals/eval-maintenance-stale.json +7 -0
  112. stead-0.5.0/factories/context-maintenance/prompts/v1.md +19 -0
  113. stead-0.5.0/factories/feature-builder/FACTORY.md +160 -0
  114. stead-0.5.0/factories/feature-builder/evals/eval-feature-builtin-method.json +1 -0
  115. stead-0.5.0/factories/feature-builder/evals/eval-feature-clear-spec.json +1 -0
  116. stead-0.5.0/factories/feature-builder/evals/eval-feature-duplicate-work.json +1 -0
  117. stead-0.5.0/factories/feature-builder/evals/eval-feature-spec-kit-method.json +1 -0
  118. stead-0.5.0/factories/feature-builder/evals/eval-feature-spec-kit-vague.json +1 -0
  119. stead-0.5.0/factories/feature-builder/evals/eval-feature-vague-spec.json +1 -0
  120. stead-0.5.0/factories/feature-builder/evals/pipeline/pipeline-add-greeting-flag.json +16 -0
  121. stead-0.5.0/factories/feature-builder/evals/pipeline/pipeline-broken-check-detected.json +15 -0
  122. stead-0.5.0/factories/feature-builder/evals/pipeline/pipeline-js-slug-helper.json +16 -0
  123. stead-0.5.0/factories/feature-builder/prompts/v1.md +101 -0
  124. stead-0.5.0/factories/feature-builder/prompts/v2.md +177 -0
  125. stead-0.5.0/factories/weekly-contribution-digest/FACTORY.md +88 -0
  126. stead-0.5.0/factories/weekly-contribution-digest/evals/eval-digest-ci-failure.json +1 -0
  127. stead-0.5.0/factories/weekly-contribution-digest/evals/eval-digest-empty-cache.json +1 -0
  128. stead-0.5.0/factories/weekly-contribution-digest/evals/eval-digest-multi-repo.json +1 -0
  129. stead-0.5.0/factories/weekly-contribution-digest/prompts/v1.md +48 -0
  130. stead-0.5.0/factories/weekly-project-status/FACTORY.md +71 -0
  131. stead-0.5.0/factories/weekly-project-status/evals/eval-status-blocked-project.json +1 -0
  132. stead-0.5.0/factories/weekly-project-status/evals/eval-status-happy-path.json +1 -0
  133. stead-0.5.0/factories/weekly-project-status/evals/eval-status-thin-context.json +1 -0
  134. stead-0.5.0/factories/weekly-project-status/prompts/v1.md +32 -0
  135. stead-0.5.0/pyproject.toml +67 -0
  136. stead-0.5.0/setup.cfg +4 -0
  137. stead-0.5.0/stead/__init__.py +5 -0
  138. stead-0.5.0/stead/__main__.py +6 -0
  139. stead-0.5.0/stead.egg-info/PKG-INFO +204 -0
  140. stead-0.5.0/stead.egg-info/SOURCES.txt +260 -0
  141. stead-0.5.0/stead.egg-info/dependency_links.txt +1 -0
  142. stead-0.5.0/stead.egg-info/entry_points.txt +2 -0
  143. stead-0.5.0/stead.egg-info/requires.txt +18 -0
  144. stead-0.5.0/stead.egg-info/top_level.txt +2 -0
  145. stead-0.5.0/tests/test_accounts.py +125 -0
  146. stead-0.5.0/tests/test_actors.py +77 -0
  147. stead-0.5.0/tests/test_agent.py +2155 -0
  148. stead-0.5.0/tests/test_audit_fixes.py +486 -0
  149. stead-0.5.0/tests/test_autonomy.py +152 -0
  150. stead-0.5.0/tests/test_autonomy_spec_rung.py +97 -0
  151. stead-0.5.0/tests/test_build_diff.py +218 -0
  152. stead-0.5.0/tests/test_cli_gui_parity.py +248 -0
  153. stead-0.5.0/tests/test_comment.py +160 -0
  154. stead-0.5.0/tests/test_config.py +49 -0
  155. stead-0.5.0/tests/test_context_search.py +190 -0
  156. stead-0.5.0/tests/test_context_sync.py +355 -0
  157. stead-0.5.0/tests/test_contribution_count.py +97 -0
  158. stead-0.5.0/tests/test_contribution_json.py +68 -0
  159. stead-0.5.0/tests/test_contributions.py +490 -0
  160. stead-0.5.0/tests/test_cross_phase_integration_seams.py +189 -0
  161. stead-0.5.0/tests/test_ctx.py +241 -0
  162. stead-0.5.0/tests/test_deliver.py +89 -0
  163. stead-0.5.0/tests/test_docs.py +56 -0
  164. stead-0.5.0/tests/test_doctor.py +112 -0
  165. stead-0.5.0/tests/test_doctor_fix.py +335 -0
  166. stead-0.5.0/tests/test_doctor_repo_relation.py +54 -0
  167. stead-0.5.0/tests/test_draft_read_ranges.py +86 -0
  168. stead-0.5.0/tests/test_feature_builder.py +420 -0
  169. stead-0.5.0/tests/test_forge_and_parallel_watch.py +93 -0
  170. stead-0.5.0/tests/test_fts5_bundle_events.py +139 -0
  171. stead-0.5.0/tests/test_gc_and_schedule_health.py +156 -0
  172. stead-0.5.0/tests/test_human_edits.py +234 -0
  173. stead-0.5.0/tests/test_improvements.py +120 -0
  174. stead-0.5.0/tests/test_inbox_list.py +138 -0
  175. stead-0.5.0/tests/test_issue_file.py +92 -0
  176. stead-0.5.0/tests/test_merge.py +359 -0
  177. stead-0.5.0/tests/test_metrics.py +306 -0
  178. stead-0.5.0/tests/test_metrics_json_fields.py +88 -0
  179. stead-0.5.0/tests/test_metrics_since.py +63 -0
  180. stead-0.5.0/tests/test_model_bench.py +301 -0
  181. stead-0.5.0/tests/test_models.py +615 -0
  182. stead-0.5.0/tests/test_onboard.py +88 -0
  183. stead-0.5.0/tests/test_packaging.py +78 -0
  184. stead-0.5.0/tests/test_phase0_hardening.py +207 -0
  185. stead-0.5.0/tests/test_phase10_bench_live_eval_improve_jit.py +103 -0
  186. stead-0.5.0/tests/test_phase11a_recovery.py +231 -0
  187. stead-0.5.0/tests/test_phase11b_nonpython_locks_cli.py +163 -0
  188. stead-0.5.0/tests/test_phase11c_cockpit_parity.py +121 -0
  189. stead-0.5.0/tests/test_phase12_storage_backup.py +234 -0
  190. stead-0.5.0/tests/test_phase13a_multiforge_webhooks.py +269 -0
  191. stead-0.5.0/tests/test_phase13b_isolation_dlp_ssrf.py +233 -0
  192. stead-0.5.0/tests/test_phase14a_prompt_evals_bench.py +315 -0
  193. stead-0.5.0/tests/test_phase14b_context_intel_transport.py +345 -0
  194. stead-0.5.0/tests/test_phase14c_cli_gui_parity.py +259 -0
  195. stead-0.5.0/tests/test_phase15a_sessions_auth_csp.py +363 -0
  196. stead-0.5.0/tests/test_phase15b_rbac_acls_audit_concurrency.py +267 -0
  197. stead-0.5.0/tests/test_phase16a_distribution_upgrade.py +126 -0
  198. stead-0.5.0/tests/test_phase16b_mcp_graph_theme.py +212 -0
  199. stead-0.5.0/tests/test_phase17a_worktree_bootstrap_ports.py +415 -0
  200. stead-0.5.0/tests/test_phase17b_patch_compress_flaky.py +547 -0
  201. stead-0.5.0/tests/test_phase18a_mcp_resources_config_writes.py +365 -0
  202. stead-0.5.0/tests/test_phase18b_drift_rejection_memory.py +524 -0
  203. stead-0.5.0/tests/test_phase19a_local_diff_review_address.py +390 -0
  204. stead-0.5.0/tests/test_phase19b_walkthrough_and_proof.py +546 -0
  205. stead-0.5.0/tests/test_phase1c_repair_resilience.py +160 -0
  206. stead-0.5.0/tests/test_phase20a_diff_slop_dynamic_rules.py +494 -0
  207. stead-0.5.0/tests/test_phase20b_hollow_test_gate.py +435 -0
  208. stead-0.5.0/tests/test_phase21a_micro_spec_and_steer.py +396 -0
  209. stead-0.5.0/tests/test_phase21b_spec_split_dag_overlap.py +568 -0
  210. stead-0.5.0/tests/test_phase22a_inbound_pr_triage.py +414 -0
  211. stead-0.5.0/tests/test_phase22b_trackers_mounts_docs.py +417 -0
  212. stead-0.5.0/tests/test_phase23_onboarding.py +340 -0
  213. stead-0.5.0/tests/test_phase24_ecosystem.py +112 -0
  214. stead-0.5.0/tests/test_phase26_tier3.py +186 -0
  215. stead-0.5.0/tests/test_phase27_ux.py +110 -0
  216. stead-0.5.0/tests/test_phase28a_engine.py +479 -0
  217. stead-0.5.0/tests/test_phase28b_executor.py +663 -0
  218. stead-0.5.0/tests/test_phase28c_graphrag.py +505 -0
  219. stead-0.5.0/tests/test_phase28d_polish.py +401 -0
  220. stead-0.5.0/tests/test_phase29a_code_intel.py +645 -0
  221. stead-0.5.0/tests/test_phase29b_stack_devcontainer.py +851 -0
  222. stead-0.5.0/tests/test_phase30a_mcp_v2.py +584 -0
  223. stead-0.5.0/tests/test_phase30b_acp_exports.py +605 -0
  224. stead-0.5.0/tests/test_phase31a_sarif_otel_backup.py +734 -0
  225. stead-0.5.0/tests/test_phase31b_trackers_chatops.py +732 -0
  226. stead-0.5.0/tests/test_phase32_integration.py +517 -0
  227. stead-0.5.0/tests/test_phase33_cli_gui_parity.py +741 -0
  228. stead-0.5.0/tests/test_phase34_onboarding.py +559 -0
  229. stead-0.5.0/tests/test_phase3_ui_mode.py +54 -0
  230. stead-0.5.0/tests/test_phase5_shared_server.py +162 -0
  231. stead-0.5.0/tests/test_phase7a_spend_executor_parity.py +103 -0
  232. stead-0.5.0/tests/test_phase7b_fts5_bundle_events.py +148 -0
  233. stead-0.5.0/tests/test_phase8a_jobs_sse_wiki.py +55 -0
  234. stead-0.5.0/tests/test_phase9_forge_worktree_preflight.py +88 -0
  235. stead-0.5.0/tests/test_pipeline_eval.py +72 -0
  236. stead-0.5.0/tests/test_plan_features.py +438 -0
  237. stead-0.5.0/tests/test_pluggable_executor.py +129 -0
  238. stead-0.5.0/tests/test_publish.py +169 -0
  239. stead-0.5.0/tests/test_repo_list_json.py +82 -0
  240. stead-0.5.0/tests/test_server_hardening.py +84 -0
  241. stead-0.5.0/tests/test_slop.py +61 -0
  242. stead-0.5.0/tests/test_spec.py +523 -0
  243. stead-0.5.0/tests/test_spec_acceptance.py +105 -0
  244. stead-0.5.0/tests/test_spec_flag_gate.py +108 -0
  245. stead-0.5.0/tests/test_spec_kit.py +212 -0
  246. stead-0.5.0/tests/test_spend_cap.py +82 -0
  247. stead-0.5.0/tests/test_status_build_record.py +102 -0
  248. stead-0.5.0/tests/test_stead_publish_timeline.py +116 -0
  249. stead-0.5.0/tests/test_stronger_reviewer.py +209 -0
  250. stead-0.5.0/tests/test_task_list_json.py +154 -0
  251. stead-0.5.0/tests/test_task_streaming.py +160 -0
  252. stead-0.5.0/tests/test_tasks.py +71 -0
  253. stead-0.5.0/tests/test_tasks_sort.py +54 -0
  254. stead-0.5.0/tests/test_ui.py +298 -0
  255. stead-0.5.0/tests/test_ui_actions.py +768 -0
  256. stead-0.5.0/tests/test_unified_diff.py +208 -0
  257. stead-0.5.0/tests/test_ux_address_summary.py +316 -0
  258. stead-0.5.0/tests/test_ux_readiness_approve.py +291 -0
  259. stead-0.5.0/tests/test_ux_recovery_hints.py +156 -0
  260. stead-0.5.0/tests/test_wiki.py +135 -0
  261. stead-0.5.0/tests/test_workspace.py +131 -0
  262. stead-0.5.0/tests/test_writeback.py +89 -0
stead-0.5.0/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Tyler Rathbone
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
stead-0.5.0/PKG-INFO ADDED
@@ -0,0 +1,204 @@
1
+ Metadata-Version: 2.4
2
+ Name: stead
3
+ Version: 0.5.0
4
+ Summary: Local-first context system and autonomous factories over plain Markdown + YAML frontmatter.
5
+ License: Apache-2.0
6
+ Project-URL: Homepage, https://github.com/TheShinySylveon/stead
7
+ Project-URL: Repository, https://github.com/TheShinySylveon/stead
8
+ Project-URL: Issues, https://github.com/TheShinySylveon/stead/issues
9
+ Keywords: context,markdown,agents,factories,local-first,cli
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Environment :: Console
12
+ Classifier: Environment :: Web Environment
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Classifier: Topic :: Software Development
22
+ Requires-Python: >=3.11
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ Provides-Extra: rag
26
+ Requires-Dist: sqlite-vec>=0.1.6; extra == "rag"
27
+ Requires-Dist: fastembed>=0.5; extra == "rag"
28
+ Provides-Extra: code
29
+ Requires-Dist: tree-sitter>=0.23; extra == "code"
30
+ Requires-Dist: tree-sitter-language-pack>=0.6; extra == "code"
31
+ Provides-Extra: security
32
+ Requires-Dist: cryptography>=44; extra == "security"
33
+ Provides-Extra: live
34
+ Requires-Dist: websockets>=14; extra == "live"
35
+ Requires-Dist: watchfiles>=1.0; extra == "live"
36
+ Provides-Extra: all
37
+ Requires-Dist: stead[code,live,rag,security]; extra == "all"
38
+ Dynamic: license-file
39
+
40
+ # Stead
41
+
42
+ **Rent the model. Own the context.**
43
+
44
+ [![CI](https://github.com/TheShinySylveon/stead/actions/workflows/ci.yml/badge.svg)](https://github.com/TheShinySylveon/stead/actions/workflows/ci.yml)
45
+ [![License](https://img.shields.io/github/license/TheShinySylveon/stead)](LICENSE)
46
+ [![Python](https://img.shields.io/badge/python-3.11%2B-blue)](docs/getting-started.md)
47
+
48
+ Stead is a local workspace for projects, tasks, notes, and GitHub work. It stores
49
+ context in plain Markdown you can read and version with Git. Browse those files
50
+ in the cockpit or use the CLI; neither requires a model or an account.
51
+
52
+ With a model configured, a **factory** can draft a spec from an issue, build the
53
+ approved change on a separate branch, and run the repo's checks. Each repo has
54
+ its own limit: for example, draft a plan only, open a PR, or merge after the
55
+ configured checks pass. Build records go back into the same Markdown store.
56
+
57
+ See [MVP status and roadmap](docs/mvp.md) for what's shipped and
58
+ [the issue-to-merge walkthrough](docs/walkthrough.md) for a real run, including
59
+ where a person had to step in.
60
+
61
+ ## Quick start
62
+
63
+ Requires Python 3.11+ (tested on 3.11–3.14). Base `stead` has **zero third-party runtime dependencies** (Python standard library only). Optional modular capability extras unlock accelerated local features while degrading gracefully to stdlib fallbacks when absent:
64
+
65
+ - `stead[rag]` — local ONNX embeddings and vector search (`sqlite-vec` + `fastembed`)
66
+ - `stead[code]` — multi-language Repo Map and symbol drift (`tree-sitter` + `tree-sitter-language-pack`)
67
+ - `stead[security]` — AES-256-GCM encrypted backups and Discord Ed25519 verification (`cryptography`)
68
+ - `stead[live]` — instant filesystem watching and Socket Mode (`watchfiles` + `websockets`)
69
+ - `stead[all]` — all optional packs above
70
+
71
+ Install from a GitHub Release wheel or PyPI (`pipx` / `uv tool` / `pip` — shipped factories are bundled in the wheel), via the macOS/Linux Homebrew formula (`deploy/homebrew/stead.rb`), or by cloning the repo directly. Follow [Getting started](docs/getting-started.md#install) for macOS, Linux, or Windows. Keep the app and your workspace in separate folders so replacing the app never touches your notes, set a saved default workspace with `stead workspace use` (or `STEAD_ROOT`) to avoid repeating `--root`, and use `stead upgrade` to pull newly shipped factory prompts and evals into an existing workspace. Open **http://127.0.0.1:8765/** and walk through the 3-step Welcome setup — or launch an offline sandbox immediately with `stead ui --demo` (`stead demo`) — with no model or login required.
72
+
73
+ ![Stead cockpit in Advanced mode, showing a fictional project's task board with four status columns](docs/images/cockpit.png)
74
+
75
+ ![Welcome to Stead: create a local workspace with a project title and optional GitHub URL](docs/images/welcome.png)
76
+
77
+ ## What you get
78
+
79
+ - **Connected Markdown graph & Hybrid GraphRAG.** Projects, tasks, documents, meetings, and repos linked by flat-YAML frontmatter relations and inline Obsidian `[[wikilinks]]`. Traverse links across repos (`stead context graph` + Cockpit reader interactive inline SVG **Knowledge Graph**), mount external peer `.stead/` directories (`stead context mount` + `--global` search/timeline), publish/hydrate `.stead/` packs, and query via RRF hybrid BM25 + heading-chunked `float32` semantic + 1-hop graph-boosted retrieval (`stead embeddings`, `stead context bundle`, `stead context bench`). People get a Confluence-style wiki with `#wiki/<repo>/<page>` URLs — no second store to drift. Git is the audit trail.
80
+ - **Equal-priority external agents, MCP 2.0 & ACP.** External CLI harnesses (`claude-code`, `codex`, `gemini-cli`, `opencode`, `aider`) get live NDJSON streaming, exact token/cost telemetry, auto-injected `.stead-executor-mcp.json`, and mid-run `stead steer` parity alongside `builtin`. Built-in stdlib **MCP 2.0 (`2026-07-28`)** serves stdio and stateless Streamable HTTP (`POST /mcp` with `Mcp-Method`/`Mcp-Name`, deterministic verification gate tools `slop_check`/`test_quality_check`/`spec_validate`/`metrics_summary`, URI templates, argument completions, spec elicitation, workflow prompts, and interactive MCP Apps `stead://ui/spec/<id>`). A zero-dep **ACP** stdio server (`stead acp serve` / `stead acp check`) connects Zed, JetBrains, and Neovim, and `stead mcp export --target agents|skill|claude|gemini|cursor|copilot|windsurf|all` keeps multi-harness instruction files in sync with SHA-256 drift checks.
81
+ - **Per-repo autonomy, multi-forge, live trackers & HTTPS ChatOps.** Set `observe / spec / build / deliver` per repo (legacy `ghost` and `draft-pr` retain their distinct limits; Deliver requires an explicit per-repo setting and never bypasses branch protection). Forge adapters support GitHub (`gh`), GitLab (`glab`, including `stead sync gitlab`), Forgejo (`tea`), and air-gapped `local` Git checkouts, plus deterministic offline `stead pr-triage`. Linear and Jira sync (`stead sync tracker`, Jira `/rest/api/3/search/jql`) is read-only by default, with signed `Linear-Signature` / Jira webhook ingestion on `POST /hook` and explicit per-repo opt-ins for comments and status transitions (`allow_tracker_comment`, `allow_tracker_transition`, `stead tracker comment`). Strictly HTTPS and cryptographically verified Slack/Discord/Telegram **ChatOps** (`POST /api/chatops` + outbound `wss://` Socket Mode) unconditionally refuses plaintext HTTP.
82
+ - **Factories, stacked PRs, multi-language code intel & hardened isolation.** Four shipped pipelines plus starter scaffolds (`stead factory new --template`), AST/Tree-Sitter multi-language Repo Map, non-Python `dead-symbol` drift (`stead doctor --drift`), multi-language AST `test-quality`, stdio LSP diagnostics, `worktree_setup`, `--profile micro`, fan-out `spec split --dag --stack`, stacked branch management (`stead stack status` / `restack`), AI review-bot suggestion/severity parsing (`CodeRabbit`/`Copilot`/`Greptile` in `stead address`), flaky-aware `stead repair`, parallel worktree builds (`factory watch --workers N`), and host / Docker / rootless Podman / gVisor `vm` / hardened `.devcontainer` check isolation with a loopback egress allowlist proxy.
83
+ - **Write-back, SARIF/OTel, backups & cross-OS scheduling.** Builds that reach a model write a versioned `build-record`. Lifecycle events append to `history/events.jsonl` (compacted quarterly via `stead context compact`); decisions and glossary terms are only *proposed* to `inbox/` (alongside `.vtt`/`.srt` meeting transcripts and desktop Raycast / Web Clipper `stead integrations`), never quietly written. Deterministic gates (`slop`, `test-quality`, `doctor`) emit OASIS **SARIF 2.1.0** (`--format sarif`), optional stdlib **OpenTelemetry** (`gen_ai.*`) OTLP/HTTP spans trace model calls, checksum-verified backups support optional Scrypt + AES-256-GCM encryption (`stead backup --encrypt`), `stead schedule install` / `uninstall` works natively on Windows, macOS (`launchd`), and Linux (`systemd`/cron), and `stead gc` prunes old runs and orphaned sidecars.
84
+ - **Cockpit UX, offline PWA & daily workflows.** Strict CLI ↔ GUI parity in an offline local cockpit and installable offline PWA (`/manifest.webmanifest` dynamically linked on boot): 3-step Welcome wizard (1-click **Explore demo workspace**, `stead probe` tool/Ollama/LM Studio detection, dismissible Getting Started checklist), **System / Dark / Light** themes, **Simplified** / **Advanced** modes, `Ctrl+K` command palette, `g` keyboard chords (`?` cheat sheet), global Quick Capture (`n` hotkey, `+ Capture`, `stead capture`), unified & side-by-side diff explorer with full parity (offline syntax highlighting in both modes, intra-line `<mark>` word diffs, inline `+` pre-PR review notes in both modes, per-file Viewed checkboxes, and `VS Code` / `Cursor` / `Zed` `zed://` deep-links), topological cubic-Bézier SVG Pipeline DAGs, Split-pane Markdown editor, Reader Copy/Download/Print-PDF, clickable `#tag` filters, CI/pre-push hook generator (`stead hooks`), resilient SSE live progress with persisted Background Jobs and desktop/Slack/Discord/webhook alerts (`stead notify`), plus an optional hardened shared Docker server ([deploy](docs/deploy.md)) with persistent SQLite sessions, RBAC, per-repo ACLs, CSP nonces, audit log, `/healthz`, and native TLS.
85
+ - **Per-role model profiles, multi-turn prompt caching, readiness bench & global spend caps.** Bind separate connections for `build`, `draft`, `review`, `address`, and `judge` across `openai`, `anthropic`, `gemini`, `grok`, `openrouter`, `ollama`, `lmstudio`, and `custom` presets (with multi-turn `messages`, Anthropic ephemeral prompt-caching breakpoints, and automatic HTTP 429/5xx retry), verify any model with `stead model bench` (`--suite core|role|all` + persisted comparison history), enforce daily/monthly USD spend caps across *all* model roles, gate prompt promotion with recorded judge evals, and run live pipeline replay (`stead eval replay --live`).
86
+
87
+ ## Build checks
88
+
89
+ Stead checks the spec before building and runs the repo's tests before delivery.
90
+ These checks complement human review:
91
+
92
+ - **Planning before code, always.** A build refuses to start without a spec and
93
+ an approved plan; autonomy changes what the agent may produce, never whether
94
+ it plans. Rejected approaches are recorded as private dead-end memory
95
+ (`stead spec reject`) so later drafts do not repeat them.
96
+ - **Spec validation, multi-language symbol & citation checks.** A spec is refused if it's too vague,
97
+ too large, has no acceptance criteria, or asks for a value a hardcoded number
98
+ could satisfy — a "score" or "non-zero float" gets flagged `fabricated-value`
99
+ before any code is written. Multi-language AST/Tree-Sitter symbol maps verify
100
+ referenced symbols and `(file:line)` citations against the checkout, and optional
101
+ per-spec `acceptance:` commands bind to the approval hash and run during build or
102
+ via `stead spec acceptance`.
103
+ - **Fail-before, pass-after & multi-language hollow-test gates.** The build maps
104
+ acceptance criteria to tests. When enabled, Stead checks that new tests contain
105
+ real assertions (`stead test-quality`, using AST checks across Python, JS/TS, Go,
106
+ and Rust to reject smoke-only or tautological tests) and fail without the change
107
+ before passing with it.
108
+ - **Anti-slop gate, SARIF & CI/pre-push hooks.** Deterministic, language-agnostic
109
+ built-in and custom rules (`stead slop`, `context/slop-rules.json`) check build
110
+ diffs, git ranges (`--diff` / `--staged`), or files, refusing hard findings
111
+ (bare `except:`, `gets(`, `%`-format, commented-out code, dead branches) and
112
+ nudging on advisory ones (debug `print`, `console.log`, `any` types). Gates emit
113
+ OASIS **SARIF 2.1.0** (`--format sarif`) and wire directly into GitHub Actions or
114
+ local pre-push git hooks via `stead hooks`. The repo's own linter via `checks:`
115
+ stays the authoritative gate — Stead layers on top, it doesn't replace it.
116
+ - **Honest CI.** The build runs the repo's checks and reports them truthfully.
117
+ Nothing is claimed green that wasn't checked.
118
+
119
+ ## Build records and metrics
120
+
121
+ The context outlives the model, and the system gets stricter over time. Every
122
+ build that reaches the model — success or failure — writes a versioned
123
+ `build-record` into the same graph. A human marks each one against the correctness
124
+ rubric. When a build is wrong, that verdict feeds back two ways:
125
+
126
+ - **Mistake → rule.** Mark a build incorrect with
127
+ `stead metrics mark ID --correct false --rule "…"`, and the described check
128
+ is proposed to the inbox as a candidate anti-slop rule. A failure becomes a
129
+ future automated check instead of a repeat.
130
+ - **The ledger.** `stead metrics` reports what actually happened — builds,
131
+ failure rate, share merged after review, hand-checked correct vs. committed —
132
+ so the number you ship is real, never invented.
133
+
134
+ ## Safety
135
+
136
+ Stead can run code and merge it. Hardened containment includes container check
137
+ isolation (Docker, rootless Podman, gVisor `vm`, and `.devcontainer` with no
138
+ network and loopback egress allowlist proxy), strictly HTTPS and cryptographically
139
+ verified ChatOps (`POST /api/chatops`), and optional Scrypt + AES-256-GCM
140
+ encrypted backups (`stead backup --encrypt`). The threat model, merge gates, and
141
+ exactly what leaves the machine live in **[docs/trust.md](docs/trust.md)** —
142
+ alongside current limits (no per-object shared-server permissions, opt-in check
143
+ sandboxing, reviewer strength).
144
+
145
+ ## Documentation
146
+
147
+ | | |
148
+ |---|---|
149
+ | [Getting started](docs/getting-started.md) | Requirements, macOS/Linux/Windows & Homebrew install, first command |
150
+ | [MVP](docs/mvp.md) | What shipped, what remains for the external pilot, and what’s deferred |
151
+ | [First run](docs/first-run.md) | Welcome, and what it refuses to do |
152
+ | [Walkthrough](docs/walkthrough.md) | A real issue-to-merge run and where a person stepped in |
153
+ | [Concepts](docs/concepts.md) | Files, the index, public and private, the glossary |
154
+ | [Trust](docs/trust.md) | Threat model, merge gates, isolation, and what leaves the machine |
155
+ | [Cockpit](docs/cockpit.md) | The browser UI and offline PWA |
156
+ | [CLI](docs/cli.md) | Every command |
157
+ | [MCP Server](docs/mcp.md) | Built-in stdlib MCP 2.0 stdio/HTTP server (`stead mcp`), ACP (`stead acp`), and multi-harness exports |
158
+ | [Factories](docs/factories.md) | The four workflows and custom factory scaffolds |
159
+ | [Models](docs/models.md) | Model profiles, role bindings, prompt caching, bench, and evals |
160
+ | [Spec Kit](docs/spec-kit-workflow.md) | Spec-Driven Development flow and `stead onboard` |
161
+ | [Review guide](docs/review.md) | What to verify before merging a PR |
162
+ | [Dogfood](docs/dogfood.md) | Stead manages Stead: the contract and the ledger |
163
+ | [Deploy](docs/deploy.md) | Hardened shared Docker server, RBAC, ACLs, HTTPS ChatOps, and TLS |
164
+ | [Several writers](docs/multi-actor.md) | Actors, git, and why SQLite stays |
165
+ | [Vision](docs/vision.md) | The autonomy slider and long-range design |
166
+ | [Roadmap](PLAN.md) | Design history and the §7 roadmap |
167
+ | [CONVENTIONS.md](CONVENTIONS.md) | Frontmatter schema. Read before writing objects. |
168
+ | [AGENTS.md](AGENTS.md) | Entry point for coding agents |
169
+
170
+ ## Repository layout
171
+
172
+ | Path | What belongs there |
173
+ |---|---|
174
+ | [`stead/`](stead/) and [`ctx/`](ctx/) | Command entry point and standard-library implementation |
175
+ | [`tests/`](tests/) | Regression tests |
176
+ | [`factories/`](factories/) | Workflow definitions, prompts, and eval cases |
177
+ | [`context/`](context/), [`inbox/`](inbox/), and [`examples/`](examples/) | Store structure, capture entry point, and sample data. Keep your working data in a separate context repo. |
178
+ | [`docs/`](docs/) | User and contributor guides |
179
+ | [`deploy/`](deploy/) | Container startup script; `Dockerfile` and `docker-compose.yml` stay at the root |
180
+
181
+ Local worktrees, caches, generated runs, and credentials are not part of the
182
+ source tree. See [local artifact rules](docs/README.md#keep-local-artifacts-out-of-commits).
183
+
184
+ ## Develop
185
+
186
+ ```bash
187
+ python -m unittest discover -s tests -b
188
+ node --test tests/test_cockpit_js.mjs
189
+ ```
190
+
191
+ CI runs the full suite on Python 3.11, 3.12, 3.13, and 3.14 (Linux and Windows),
192
+ plus `ruff` (config in `ruff.toml`), Node JS cockpit syntax/unit/offline checks,
193
+ structural & pipeline replay eval gates (`stead eval run` / `stead eval replay`),
194
+ an isolated wheel/sdist install smoke test, Docker non-root upgrade verification,
195
+ and CodeQL. Merging to `main` publishes `ghcr.io/theshinysylveon/stead`; pushing
196
+ a `v*` tag verifies version sync, builds and publishes a GitHub Release (wheel,
197
+ sdist, `SHA256SUMS.txt`), publishes to PyPI via OIDC Trusted Publishing, and
198
+ pushes multi-arch (`linux/amd64`, `linux/arm64`) semver-tagged GHCR images. The
199
+ [review guide](docs/review.md) applies whether feedback comes from a person or a
200
+ review bot.
201
+
202
+ ## License
203
+
204
+ Apache License, Version 2.0. Copyright 2026 Tyler Rathbone. See [LICENSE](LICENSE).
stead-0.5.0/README.md ADDED
@@ -0,0 +1,165 @@
1
+ # Stead
2
+
3
+ **Rent the model. Own the context.**
4
+
5
+ [![CI](https://github.com/TheShinySylveon/stead/actions/workflows/ci.yml/badge.svg)](https://github.com/TheShinySylveon/stead/actions/workflows/ci.yml)
6
+ [![License](https://img.shields.io/github/license/TheShinySylveon/stead)](LICENSE)
7
+ [![Python](https://img.shields.io/badge/python-3.11%2B-blue)](docs/getting-started.md)
8
+
9
+ Stead is a local workspace for projects, tasks, notes, and GitHub work. It stores
10
+ context in plain Markdown you can read and version with Git. Browse those files
11
+ in the cockpit or use the CLI; neither requires a model or an account.
12
+
13
+ With a model configured, a **factory** can draft a spec from an issue, build the
14
+ approved change on a separate branch, and run the repo's checks. Each repo has
15
+ its own limit: for example, draft a plan only, open a PR, or merge after the
16
+ configured checks pass. Build records go back into the same Markdown store.
17
+
18
+ See [MVP status and roadmap](docs/mvp.md) for what's shipped and
19
+ [the issue-to-merge walkthrough](docs/walkthrough.md) for a real run, including
20
+ where a person had to step in.
21
+
22
+ ## Quick start
23
+
24
+ Requires Python 3.11+ (tested on 3.11–3.14). Base `stead` has **zero third-party runtime dependencies** (Python standard library only). Optional modular capability extras unlock accelerated local features while degrading gracefully to stdlib fallbacks when absent:
25
+
26
+ - `stead[rag]` — local ONNX embeddings and vector search (`sqlite-vec` + `fastembed`)
27
+ - `stead[code]` — multi-language Repo Map and symbol drift (`tree-sitter` + `tree-sitter-language-pack`)
28
+ - `stead[security]` — AES-256-GCM encrypted backups and Discord Ed25519 verification (`cryptography`)
29
+ - `stead[live]` — instant filesystem watching and Socket Mode (`watchfiles` + `websockets`)
30
+ - `stead[all]` — all optional packs above
31
+
32
+ Install from a GitHub Release wheel or PyPI (`pipx` / `uv tool` / `pip` — shipped factories are bundled in the wheel), via the macOS/Linux Homebrew formula (`deploy/homebrew/stead.rb`), or by cloning the repo directly. Follow [Getting started](docs/getting-started.md#install) for macOS, Linux, or Windows. Keep the app and your workspace in separate folders so replacing the app never touches your notes, set a saved default workspace with `stead workspace use` (or `STEAD_ROOT`) to avoid repeating `--root`, and use `stead upgrade` to pull newly shipped factory prompts and evals into an existing workspace. Open **http://127.0.0.1:8765/** and walk through the 3-step Welcome setup — or launch an offline sandbox immediately with `stead ui --demo` (`stead demo`) — with no model or login required.
33
+
34
+ ![Stead cockpit in Advanced mode, showing a fictional project's task board with four status columns](docs/images/cockpit.png)
35
+
36
+ ![Welcome to Stead: create a local workspace with a project title and optional GitHub URL](docs/images/welcome.png)
37
+
38
+ ## What you get
39
+
40
+ - **Connected Markdown graph & Hybrid GraphRAG.** Projects, tasks, documents, meetings, and repos linked by flat-YAML frontmatter relations and inline Obsidian `[[wikilinks]]`. Traverse links across repos (`stead context graph` + Cockpit reader interactive inline SVG **Knowledge Graph**), mount external peer `.stead/` directories (`stead context mount` + `--global` search/timeline), publish/hydrate `.stead/` packs, and query via RRF hybrid BM25 + heading-chunked `float32` semantic + 1-hop graph-boosted retrieval (`stead embeddings`, `stead context bundle`, `stead context bench`). People get a Confluence-style wiki with `#wiki/<repo>/<page>` URLs — no second store to drift. Git is the audit trail.
41
+ - **Equal-priority external agents, MCP 2.0 & ACP.** External CLI harnesses (`claude-code`, `codex`, `gemini-cli`, `opencode`, `aider`) get live NDJSON streaming, exact token/cost telemetry, auto-injected `.stead-executor-mcp.json`, and mid-run `stead steer` parity alongside `builtin`. Built-in stdlib **MCP 2.0 (`2026-07-28`)** serves stdio and stateless Streamable HTTP (`POST /mcp` with `Mcp-Method`/`Mcp-Name`, deterministic verification gate tools `slop_check`/`test_quality_check`/`spec_validate`/`metrics_summary`, URI templates, argument completions, spec elicitation, workflow prompts, and interactive MCP Apps `stead://ui/spec/<id>`). A zero-dep **ACP** stdio server (`stead acp serve` / `stead acp check`) connects Zed, JetBrains, and Neovim, and `stead mcp export --target agents|skill|claude|gemini|cursor|copilot|windsurf|all` keeps multi-harness instruction files in sync with SHA-256 drift checks.
42
+ - **Per-repo autonomy, multi-forge, live trackers & HTTPS ChatOps.** Set `observe / spec / build / deliver` per repo (legacy `ghost` and `draft-pr` retain their distinct limits; Deliver requires an explicit per-repo setting and never bypasses branch protection). Forge adapters support GitHub (`gh`), GitLab (`glab`, including `stead sync gitlab`), Forgejo (`tea`), and air-gapped `local` Git checkouts, plus deterministic offline `stead pr-triage`. Linear and Jira sync (`stead sync tracker`, Jira `/rest/api/3/search/jql`) is read-only by default, with signed `Linear-Signature` / Jira webhook ingestion on `POST /hook` and explicit per-repo opt-ins for comments and status transitions (`allow_tracker_comment`, `allow_tracker_transition`, `stead tracker comment`). Strictly HTTPS and cryptographically verified Slack/Discord/Telegram **ChatOps** (`POST /api/chatops` + outbound `wss://` Socket Mode) unconditionally refuses plaintext HTTP.
43
+ - **Factories, stacked PRs, multi-language code intel & hardened isolation.** Four shipped pipelines plus starter scaffolds (`stead factory new --template`), AST/Tree-Sitter multi-language Repo Map, non-Python `dead-symbol` drift (`stead doctor --drift`), multi-language AST `test-quality`, stdio LSP diagnostics, `worktree_setup`, `--profile micro`, fan-out `spec split --dag --stack`, stacked branch management (`stead stack status` / `restack`), AI review-bot suggestion/severity parsing (`CodeRabbit`/`Copilot`/`Greptile` in `stead address`), flaky-aware `stead repair`, parallel worktree builds (`factory watch --workers N`), and host / Docker / rootless Podman / gVisor `vm` / hardened `.devcontainer` check isolation with a loopback egress allowlist proxy.
44
+ - **Write-back, SARIF/OTel, backups & cross-OS scheduling.** Builds that reach a model write a versioned `build-record`. Lifecycle events append to `history/events.jsonl` (compacted quarterly via `stead context compact`); decisions and glossary terms are only *proposed* to `inbox/` (alongside `.vtt`/`.srt` meeting transcripts and desktop Raycast / Web Clipper `stead integrations`), never quietly written. Deterministic gates (`slop`, `test-quality`, `doctor`) emit OASIS **SARIF 2.1.0** (`--format sarif`), optional stdlib **OpenTelemetry** (`gen_ai.*`) OTLP/HTTP spans trace model calls, checksum-verified backups support optional Scrypt + AES-256-GCM encryption (`stead backup --encrypt`), `stead schedule install` / `uninstall` works natively on Windows, macOS (`launchd`), and Linux (`systemd`/cron), and `stead gc` prunes old runs and orphaned sidecars.
45
+ - **Cockpit UX, offline PWA & daily workflows.** Strict CLI ↔ GUI parity in an offline local cockpit and installable offline PWA (`/manifest.webmanifest` dynamically linked on boot): 3-step Welcome wizard (1-click **Explore demo workspace**, `stead probe` tool/Ollama/LM Studio detection, dismissible Getting Started checklist), **System / Dark / Light** themes, **Simplified** / **Advanced** modes, `Ctrl+K` command palette, `g` keyboard chords (`?` cheat sheet), global Quick Capture (`n` hotkey, `+ Capture`, `stead capture`), unified & side-by-side diff explorer with full parity (offline syntax highlighting in both modes, intra-line `<mark>` word diffs, inline `+` pre-PR review notes in both modes, per-file Viewed checkboxes, and `VS Code` / `Cursor` / `Zed` `zed://` deep-links), topological cubic-Bézier SVG Pipeline DAGs, Split-pane Markdown editor, Reader Copy/Download/Print-PDF, clickable `#tag` filters, CI/pre-push hook generator (`stead hooks`), resilient SSE live progress with persisted Background Jobs and desktop/Slack/Discord/webhook alerts (`stead notify`), plus an optional hardened shared Docker server ([deploy](docs/deploy.md)) with persistent SQLite sessions, RBAC, per-repo ACLs, CSP nonces, audit log, `/healthz`, and native TLS.
46
+ - **Per-role model profiles, multi-turn prompt caching, readiness bench & global spend caps.** Bind separate connections for `build`, `draft`, `review`, `address`, and `judge` across `openai`, `anthropic`, `gemini`, `grok`, `openrouter`, `ollama`, `lmstudio`, and `custom` presets (with multi-turn `messages`, Anthropic ephemeral prompt-caching breakpoints, and automatic HTTP 429/5xx retry), verify any model with `stead model bench` (`--suite core|role|all` + persisted comparison history), enforce daily/monthly USD spend caps across *all* model roles, gate prompt promotion with recorded judge evals, and run live pipeline replay (`stead eval replay --live`).
47
+
48
+ ## Build checks
49
+
50
+ Stead checks the spec before building and runs the repo's tests before delivery.
51
+ These checks complement human review:
52
+
53
+ - **Planning before code, always.** A build refuses to start without a spec and
54
+ an approved plan; autonomy changes what the agent may produce, never whether
55
+ it plans. Rejected approaches are recorded as private dead-end memory
56
+ (`stead spec reject`) so later drafts do not repeat them.
57
+ - **Spec validation, multi-language symbol & citation checks.** A spec is refused if it's too vague,
58
+ too large, has no acceptance criteria, or asks for a value a hardcoded number
59
+ could satisfy — a "score" or "non-zero float" gets flagged `fabricated-value`
60
+ before any code is written. Multi-language AST/Tree-Sitter symbol maps verify
61
+ referenced symbols and `(file:line)` citations against the checkout, and optional
62
+ per-spec `acceptance:` commands bind to the approval hash and run during build or
63
+ via `stead spec acceptance`.
64
+ - **Fail-before, pass-after & multi-language hollow-test gates.** The build maps
65
+ acceptance criteria to tests. When enabled, Stead checks that new tests contain
66
+ real assertions (`stead test-quality`, using AST checks across Python, JS/TS, Go,
67
+ and Rust to reject smoke-only or tautological tests) and fail without the change
68
+ before passing with it.
69
+ - **Anti-slop gate, SARIF & CI/pre-push hooks.** Deterministic, language-agnostic
70
+ built-in and custom rules (`stead slop`, `context/slop-rules.json`) check build
71
+ diffs, git ranges (`--diff` / `--staged`), or files, refusing hard findings
72
+ (bare `except:`, `gets(`, `%`-format, commented-out code, dead branches) and
73
+ nudging on advisory ones (debug `print`, `console.log`, `any` types). Gates emit
74
+ OASIS **SARIF 2.1.0** (`--format sarif`) and wire directly into GitHub Actions or
75
+ local pre-push git hooks via `stead hooks`. The repo's own linter via `checks:`
76
+ stays the authoritative gate — Stead layers on top, it doesn't replace it.
77
+ - **Honest CI.** The build runs the repo's checks and reports them truthfully.
78
+ Nothing is claimed green that wasn't checked.
79
+
80
+ ## Build records and metrics
81
+
82
+ The context outlives the model, and the system gets stricter over time. Every
83
+ build that reaches the model — success or failure — writes a versioned
84
+ `build-record` into the same graph. A human marks each one against the correctness
85
+ rubric. When a build is wrong, that verdict feeds back two ways:
86
+
87
+ - **Mistake → rule.** Mark a build incorrect with
88
+ `stead metrics mark ID --correct false --rule "…"`, and the described check
89
+ is proposed to the inbox as a candidate anti-slop rule. A failure becomes a
90
+ future automated check instead of a repeat.
91
+ - **The ledger.** `stead metrics` reports what actually happened — builds,
92
+ failure rate, share merged after review, hand-checked correct vs. committed —
93
+ so the number you ship is real, never invented.
94
+
95
+ ## Safety
96
+
97
+ Stead can run code and merge it. Hardened containment includes container check
98
+ isolation (Docker, rootless Podman, gVisor `vm`, and `.devcontainer` with no
99
+ network and loopback egress allowlist proxy), strictly HTTPS and cryptographically
100
+ verified ChatOps (`POST /api/chatops`), and optional Scrypt + AES-256-GCM
101
+ encrypted backups (`stead backup --encrypt`). The threat model, merge gates, and
102
+ exactly what leaves the machine live in **[docs/trust.md](docs/trust.md)** —
103
+ alongside current limits (no per-object shared-server permissions, opt-in check
104
+ sandboxing, reviewer strength).
105
+
106
+ ## Documentation
107
+
108
+ | | |
109
+ |---|---|
110
+ | [Getting started](docs/getting-started.md) | Requirements, macOS/Linux/Windows & Homebrew install, first command |
111
+ | [MVP](docs/mvp.md) | What shipped, what remains for the external pilot, and what’s deferred |
112
+ | [First run](docs/first-run.md) | Welcome, and what it refuses to do |
113
+ | [Walkthrough](docs/walkthrough.md) | A real issue-to-merge run and where a person stepped in |
114
+ | [Concepts](docs/concepts.md) | Files, the index, public and private, the glossary |
115
+ | [Trust](docs/trust.md) | Threat model, merge gates, isolation, and what leaves the machine |
116
+ | [Cockpit](docs/cockpit.md) | The browser UI and offline PWA |
117
+ | [CLI](docs/cli.md) | Every command |
118
+ | [MCP Server](docs/mcp.md) | Built-in stdlib MCP 2.0 stdio/HTTP server (`stead mcp`), ACP (`stead acp`), and multi-harness exports |
119
+ | [Factories](docs/factories.md) | The four workflows and custom factory scaffolds |
120
+ | [Models](docs/models.md) | Model profiles, role bindings, prompt caching, bench, and evals |
121
+ | [Spec Kit](docs/spec-kit-workflow.md) | Spec-Driven Development flow and `stead onboard` |
122
+ | [Review guide](docs/review.md) | What to verify before merging a PR |
123
+ | [Dogfood](docs/dogfood.md) | Stead manages Stead: the contract and the ledger |
124
+ | [Deploy](docs/deploy.md) | Hardened shared Docker server, RBAC, ACLs, HTTPS ChatOps, and TLS |
125
+ | [Several writers](docs/multi-actor.md) | Actors, git, and why SQLite stays |
126
+ | [Vision](docs/vision.md) | The autonomy slider and long-range design |
127
+ | [Roadmap](PLAN.md) | Design history and the §7 roadmap |
128
+ | [CONVENTIONS.md](CONVENTIONS.md) | Frontmatter schema. Read before writing objects. |
129
+ | [AGENTS.md](AGENTS.md) | Entry point for coding agents |
130
+
131
+ ## Repository layout
132
+
133
+ | Path | What belongs there |
134
+ |---|---|
135
+ | [`stead/`](stead/) and [`ctx/`](ctx/) | Command entry point and standard-library implementation |
136
+ | [`tests/`](tests/) | Regression tests |
137
+ | [`factories/`](factories/) | Workflow definitions, prompts, and eval cases |
138
+ | [`context/`](context/), [`inbox/`](inbox/), and [`examples/`](examples/) | Store structure, capture entry point, and sample data. Keep your working data in a separate context repo. |
139
+ | [`docs/`](docs/) | User and contributor guides |
140
+ | [`deploy/`](deploy/) | Container startup script; `Dockerfile` and `docker-compose.yml` stay at the root |
141
+
142
+ Local worktrees, caches, generated runs, and credentials are not part of the
143
+ source tree. See [local artifact rules](docs/README.md#keep-local-artifacts-out-of-commits).
144
+
145
+ ## Develop
146
+
147
+ ```bash
148
+ python -m unittest discover -s tests -b
149
+ node --test tests/test_cockpit_js.mjs
150
+ ```
151
+
152
+ CI runs the full suite on Python 3.11, 3.12, 3.13, and 3.14 (Linux and Windows),
153
+ plus `ruff` (config in `ruff.toml`), Node JS cockpit syntax/unit/offline checks,
154
+ structural & pipeline replay eval gates (`stead eval run` / `stead eval replay`),
155
+ an isolated wheel/sdist install smoke test, Docker non-root upgrade verification,
156
+ and CodeQL. Merging to `main` publishes `ghcr.io/theshinysylveon/stead`; pushing
157
+ a `v*` tag verifies version sync, builds and publishes a GitHub Release (wheel,
158
+ sdist, `SHA256SUMS.txt`), publishes to PyPI via OIDC Trusted Publishing, and
159
+ pushes multi-arch (`linux/amd64`, `linux/arm64`) semver-tagged GHCR images. The
160
+ [review guide](docs/review.md) applies whether feedback comes from a person or a
161
+ review bot.
162
+
163
+ ## License
164
+
165
+ Apache License, Version 2.0. Copyright 2026 Tyler Rathbone. See [LICENSE](LICENSE).
@@ -0,0 +1,7 @@
1
+ """Implementation package for Stead. The command is `python -m stead`.
2
+
3
+ Run from the repo root: python -m stead <command>
4
+ See AGENTS.md and CONVENTIONS.md for the system contract.
5
+ """
6
+
7
+ __version__ = "0.5.0"
@@ -0,0 +1,9 @@
1
+ """Compatibility entry point. The command is `python -m stead`."""
2
+
3
+ import sys
4
+
5
+ from ctx.cli import main
6
+
7
+ if __name__ == "__main__":
8
+ print("The command is stead. The old module name still works.", file=sys.stderr)
9
+ raise SystemExit(main())