orbi-cli 0.7.43__tar.gz → 0.7.45__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 (271) hide show
  1. {orbi_cli-0.7.43/src/orbi_cli.egg-info → orbi_cli-0.7.45}/PKG-INFO +2 -2
  2. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/README.md +1 -1
  3. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/pyproject.toml +1 -1
  4. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/__init__.py +1 -1
  5. orbi_cli-0.7.45/src/orbi/acceptance_section.py +169 -0
  6. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/amend_command.py +14 -55
  7. orbi_cli-0.7.45/src/orbi/base_ci_fix.py +448 -0
  8. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/base_ci_red.py +105 -375
  9. orbi_cli-0.7.45/src/orbi/body_steering.py +71 -0
  10. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/check_permission.py +1 -1
  11. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/claim.py +2 -2
  12. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/clarify.py +226 -522
  13. orbi_cli-0.7.45/src/orbi/clarify_proposal.py +372 -0
  14. orbi_cli-0.7.45/src/orbi/clarify_stop.py +167 -0
  15. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/comment_kind.py +11 -12
  16. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/draft.py +115 -273
  17. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/draft_cli.py +7 -16
  18. orbi_cli-0.7.45/src/orbi/draft_document.py +367 -0
  19. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/extensions/draft_tools.ts +50 -9
  20. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/failure.py +1 -1
  21. orbi_cli-0.7.45/src/orbi/failure_evidence.py +211 -0
  22. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/failure_report.py +117 -243
  23. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/github.py +2 -2
  24. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/implementation_delivery.py +1 -0
  25. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/journal.py +12 -34
  26. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/language.py +2 -180
  27. orbi_cli-0.7.45/src/orbi/language_failure.py +206 -0
  28. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/language_terms.py +9 -49
  29. orbi_cli-0.7.45/src/orbi/language_terms_criteria.py +65 -0
  30. orbi_cli-0.7.45/src/orbi/language_terms_fix.py +22 -0
  31. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/milestone.py +2 -4
  32. orbi_cli-0.7.45/src/orbi/milestone_errors.py +43 -0
  33. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/pi_session.py +11 -18
  34. orbi_cli-0.7.45/src/orbi/requeue.py +132 -0
  35. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/resume_verification.py +1 -1
  36. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/review_merge.py +1 -1
  37. orbi_cli-0.7.43/src/orbi/split_command.py → orbi_cli-0.7.45/src/orbi/split_apply.py +105 -211
  38. orbi_cli-0.7.45/src/orbi/split_command.py +167 -0
  39. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/ticket_command_registry.py +1 -1
  40. {orbi_cli-0.7.43 → orbi_cli-0.7.45/src/orbi_cli.egg-info}/PKG-INFO +2 -2
  41. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi_cli.egg-info/SOURCES.txt +14 -0
  42. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_amend_command.py +6 -4
  43. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_base_branch_failure.py +23 -6
  44. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_base_ci_red.py +200 -33
  45. orbi_cli-0.7.45/tests/test_body_steering.py +57 -0
  46. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_check_permission.py +1 -1
  47. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_clarify.py +545 -25
  48. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_claude_plugin.py +36 -3
  49. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_cli_ticket_commands.py +3 -2
  50. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_docs_site.py +75 -43
  51. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_draft.py +269 -28
  52. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_failure.py +234 -12
  53. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_failure_report.py +32 -3
  54. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_run_id_e2e.py +10 -1
  55. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_runner_config.py +24 -7
  56. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_split_command.py +9 -8
  57. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_steering_review.py +165 -10
  58. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_ticket_command_registration.py +2 -2
  59. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/LICENSE +0 -0
  60. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/docs/licenses/sustainable-use-license.md +0 -0
  61. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/setup.cfg +0 -0
  62. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/blocked_comment.py +0 -0
  63. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/branch_reclaim.py +0 -0
  64. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/checks.py +0 -0
  65. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/cli.py +0 -0
  66. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/cli_commands.py +0 -0
  67. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/cli_doctor.py +0 -0
  68. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/cli_parser.py +0 -0
  69. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/cli_source.py +0 -0
  70. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/cli_status.py +0 -0
  71. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/cli_ticket_command.py +0 -0
  72. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/comment_rest_id.py +0 -0
  73. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/comment_trust.py +0 -0
  74. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/config.py +0 -0
  75. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/config_hint.py +0 -0
  76. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/delivery_comment.py +0 -0
  77. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/delivery_labels.py +0 -0
  78. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/delivery_scene.py +0 -0
  79. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/draft_marker.py +0 -0
  80. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/engine_source.py +0 -0
  81. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/example_config.toml +0 -0
  82. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/extensions/clarify_verdict.ts +0 -0
  83. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/gh_response.py +0 -0
  84. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/git_identity.py +0 -0
  85. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/git_transport.py +0 -0
  86. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/github_feedback.py +0 -0
  87. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/gitops.py +0 -0
  88. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/human_review.py +0 -0
  89. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/launchd_deploy.py +0 -0
  90. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/merge_exec.py +0 -0
  91. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/merge_gate.py +0 -0
  92. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/merge_handoff.py +0 -0
  93. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/milestone_command.py +0 -0
  94. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/notify.py +0 -0
  95. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/ops_delivery.py +0 -0
  96. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/pi_activity.py +0 -0
  97. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/pi_command.py +0 -0
  98. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/pi_exec.py +0 -0
  99. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/pi_idle.py +0 -0
  100. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/pi_process.py +0 -0
  101. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/pi_recovery.py +0 -0
  102. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/pi_stream_log.py +0 -0
  103. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/pilot_setup.py +0 -0
  104. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/pilot_slots.py +0 -0
  105. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/pr_verification.py +0 -0
  106. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/progress.py +0 -0
  107. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/progress_display.py +0 -0
  108. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/progress_outcome.py +0 -0
  109. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/progress_summary.py +0 -0
  110. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/release.py +0 -0
  111. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/release_closeout.py +0 -0
  112. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/release_comments.py +0 -0
  113. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/release_declaration.py +0 -0
  114. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/release_git.py +0 -0
  115. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/release_notes.py +0 -0
  116. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/release_run.py +0 -0
  117. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/repo_config.py +0 -0
  118. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/resume_scan.py +0 -0
  119. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/review_rounds.py +0 -0
  120. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/review_verdict.py +0 -0
  121. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/run_fields.py +0 -0
  122. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/run_state.py +0 -0
  123. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/runner.py +0 -0
  124. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/runner_health.py +0 -0
  125. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/runner_marker.py +0 -0
  126. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/runner_source.py +0 -0
  127. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/scene.py +0 -0
  128. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/scheduler.py +0 -0
  129. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/scheduler_units.py +0 -0
  130. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/session_command.py +0 -0
  131. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/setup_checks.py +0 -0
  132. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/setup_config.py +0 -0
  133. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/source_pool.py +0 -0
  134. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/status_observe.py +0 -0
  135. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/suggest.py +0 -0
  136. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/systemd_deploy.py +0 -0
  137. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/ticket_command.py +0 -0
  138. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/ticket_criteria.py +0 -0
  139. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/user_summary.py +0 -0
  140. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi/worktree_retention.py +0 -0
  141. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi_cli.egg-info/dependency_links.txt +0 -0
  142. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi_cli.egg-info/entry_points.txt +0 -0
  143. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/src/orbi_cli.egg-info/top_level.txt +0 -0
  144. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_agents_md.py +0 -0
  145. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_apply_label_patch.py +0 -0
  146. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_blocked_comment.py +0 -0
  147. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_bootstrap_adapters.py +0 -0
  148. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_bootstrap_delivery.py +0 -0
  149. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_bootstrap_pi.py +0 -0
  150. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_bootstrap_preflight.py +0 -0
  151. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_bootstrap_release.py +0 -0
  152. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_bootstrap_runner_claim_resume.py +0 -0
  153. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_bootstrap_runner_failure_report.py +0 -0
  154. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_bootstrap_runner_main.py +0 -0
  155. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_bootstrap_runner_milestone.py +0 -0
  156. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_bootstrap_runner_outcome.py +0 -0
  157. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_bootstrap_runner_prompt.py +0 -0
  158. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_bootstrap_runner_reconcile.py +0 -0
  159. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_bootstrap_runner_session.py +0 -0
  160. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_bootstrap_runner_tickets.py +0 -0
  161. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_branch_reclaim.py +0 -0
  162. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_ci_failure_issue_workflow.py +0 -0
  163. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_ci_failure_triage.py +0 -0
  164. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_ci_macos_workflow.py +0 -0
  165. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_ci_workflow.py +0 -0
  166. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_cli_golden.py +0 -0
  167. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_cli_install.py +0 -0
  168. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_cli_milestone.py +0 -0
  169. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_cli_packaging.py +0 -0
  170. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_cli_source.py +0 -0
  171. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_command_receipt_contract.py +0 -0
  172. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_comment_identity.py +0 -0
  173. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_comment_readers_contract.py +0 -0
  174. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_comment_rest_id.py +0 -0
  175. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_comment_trust.py +0 -0
  176. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_concurrency_e2e.py +0 -0
  177. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_constitution.py +0 -0
  178. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_coverage_gate.py +0 -0
  179. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_deliver_pr_fakes.py +0 -0
  180. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_delivery_branch_delete.py +0 -0
  181. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_delivery_labels.py +0 -0
  182. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_delivery_scene.py +0 -0
  183. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_docker_docs.py +0 -0
  184. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_docker_entrypoint.py +0 -0
  185. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_docker_image_workflow.py +0 -0
  186. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_docs_i18n.py +0 -0
  187. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_docs_issue_shapes.py +0 -0
  188. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_docs_labels.py +0 -0
  189. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_docs_mermaid.py +0 -0
  190. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_docs_releases.py +0 -0
  191. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_docs_single_source.py +0 -0
  192. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_engine_source.py +0 -0
  193. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_fix_needed_loop.py +0 -0
  194. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_gh_read_retry.py +0 -0
  195. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_gh_response.py +0 -0
  196. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_git_base_smoke.py +0 -0
  197. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_git_merge_smoke.py +0 -0
  198. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_git_network_retry.py +0 -0
  199. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_git_transport.py +0 -0
  200. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_github.py +0 -0
  201. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_github_fakes.py +0 -0
  202. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_gitops.py +0 -0
  203. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_gitops_fakes.py +0 -0
  204. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_human_review.py +0 -0
  205. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_import_graph.py +0 -0
  206. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_install_sh.py +0 -0
  207. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_issue_1367.py +0 -0
  208. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_issue_461.py +0 -0
  209. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_issue_template_config.py +0 -0
  210. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_journal.py +0 -0
  211. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_journal_events.py +0 -0
  212. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_launchd_deploy.py +0 -0
  213. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_license.py +0 -0
  214. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_merge_exec_extraction.py +0 -0
  215. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_message_language.py +0 -0
  216. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_milestone_command.py +0 -0
  217. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_notify.py +0 -0
  218. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_ops_e2e.py +0 -0
  219. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_orbi.py +0 -0
  220. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_orbi_dashboard.py +0 -0
  221. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_orbi_exporter.py +0 -0
  222. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_patch_ratchet.py +0 -0
  223. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_pi_activity.py +0 -0
  224. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_pi_child_reap.py +0 -0
  225. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_pi_command.py +0 -0
  226. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_pi_exec.py +0 -0
  227. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_pi_extensions.py +0 -0
  228. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_pi_provider_templates.py +0 -0
  229. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_pi_recovery.py +0 -0
  230. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_pi_session.py +0 -0
  231. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_pilot_setup.py +0 -0
  232. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_pilot_slots.py +0 -0
  233. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_pr_issue_link_workflow.py +0 -0
  234. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_pr_verification.py +0 -0
  235. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_prerequisite_check.py +0 -0
  236. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_progress.py +0 -0
  237. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_progress_wiring.py +0 -0
  238. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_prompt_contract.py +0 -0
  239. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_public_contracts.py +0 -0
  240. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_public_helpers.py +0 -0
  241. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_publish_workflow.py +0 -0
  242. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_release_docs_workflow.py +0 -0
  243. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_release_extraction.py +0 -0
  244. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_release_ticket_templates.py +0 -0
  245. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_repo_config.py +0 -0
  246. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_resume_continue_e2e.py +0 -0
  247. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_resume_e2e.py +0 -0
  248. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_resume_pr.py +0 -0
  249. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_review_merge.py +0 -0
  250. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_review_verdict.py +0 -0
  251. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_run_artifacts.py +0 -0
  252. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_run_fields.py +0 -0
  253. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_run_id_fixture.py +0 -0
  254. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_runner_health.py +0 -0
  255. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_runner_source_freshness.py +0 -0
  256. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_scene.py +0 -0
  257. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_scheduler.py +0 -0
  258. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_seam.py +0 -0
  259. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_setup_output_golden.py +0 -0
  260. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_size_ratchet.py +0 -0
  261. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_src_layout.py +0 -0
  262. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_status_observe.py +0 -0
  263. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_suggest.py +0 -0
  264. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_suite_hygiene.py +0 -0
  265. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_systemd_deploy.py +0 -0
  266. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_systemd_timer.py +0 -0
  267. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_ticket_command.py +0 -0
  268. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_user_acceptance_contract.py +0 -0
  269. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_user_summary.py +0 -0
  270. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_versioned_comment_block.py +0 -0
  271. {orbi_cli-0.7.43 → orbi_cli-0.7.45}/tests/test_worktree_reclaim.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orbi-cli
3
- Version: 0.7.43
3
+ Version: 0.7.45
4
4
  Summary: Orbi — local AI development worker: claims GitHub Issues, runs Pi in isolated worktrees, and delivers PRs (GitHub Issues + labels are the only state store).
5
5
  Author: xqliu
6
6
  License-Expression: AGPL-3.0-only OR LicenseRef-Sustainable-Use-1.0
@@ -76,7 +76,7 @@ Another real delivery, recorded from the live GitHub pages — including the rev
76
76
 
77
77
  - **GitHub Issues are the task pool**: the `ai-ready` label dispatches work, and the delivery record (comments, PRs, and CI) is complete by default, with no second task system;
78
78
  - **Fully automated**: a user scheduler timer (systemd on Linux, launchd on macOS) triggers a tick every 5 minutes. Normal operation needs no status command, polling, or supervision;
79
- - **Independent review + merge gates**: after a PR opens, an independent review session reviews it and fixes findings in the same session. Only the reviewed head can merge, and AI never merges or pushes protected branches;
79
+ - **Independent review + merge gates**: after a PR opens, an independent review session reviews it and fixes findings in the same session. Reviewed code is what merges, and only with CI green on the latest base: if the base moved after the review, the Runner merges it into the delivery itself when there is no conflict and waits for CI on the new head before merging; conflicts or an outside push go back to review. AI never merges or pushes protected branches;
80
80
  - **Fail fast**: command errors fail immediately and leave the evidence in the logs. The Issue is marked `ai-blocked` for a human decision, with no silent fallback;
81
81
  - **Observable end to end**: every journal log and GitHub progress comment carries the same `run_id`, so the complete timeline can be reconstructed with one grep.
82
82
 
@@ -60,7 +60,7 @@ Another real delivery, recorded from the live GitHub pages — including the rev
60
60
 
61
61
  - **GitHub Issues are the task pool**: the `ai-ready` label dispatches work, and the delivery record (comments, PRs, and CI) is complete by default, with no second task system;
62
62
  - **Fully automated**: a user scheduler timer (systemd on Linux, launchd on macOS) triggers a tick every 5 minutes. Normal operation needs no status command, polling, or supervision;
63
- - **Independent review + merge gates**: after a PR opens, an independent review session reviews it and fixes findings in the same session. Only the reviewed head can merge, and AI never merges or pushes protected branches;
63
+ - **Independent review + merge gates**: after a PR opens, an independent review session reviews it and fixes findings in the same session. Reviewed code is what merges, and only with CI green on the latest base: if the base moved after the review, the Runner merges it into the delivery itself when there is no conflict and waits for CI on the new head before merging; conflicts or an outside push go back to review. AI never merges or pushes protected branches;
64
64
  - **Fail fast**: command errors fail immediately and leave the evidence in the logs. The Issue is marked `ai-blocked` for a human decision, with no silent fallback;
65
65
  - **Observable end to end**: every journal log and GitHub progress comment carries the same `run_id`, so the complete timeline can be reconstructed with one grep.
66
66
 
@@ -44,7 +44,7 @@ build-backend = "setuptools.build_meta"
44
44
 
45
45
  [project]
46
46
  name = "orbi-cli"
47
- version = "0.7.43"
47
+ version = "0.7.45"
48
48
  description = "Orbi — local AI development worker: claims GitHub Issues, runs Pi in isolated worktrees, and delivers PRs (GitHub Issues + labels are the only state store)."
49
49
  readme = "README.md"
50
50
  requires-python = ">=3.14"
@@ -18,4 +18,4 @@ the package would shadow the installed package for every process with
18
18
  the checkout root on sys.path. The direct-execution compatibility entry
19
19
  is `python3 -m orbi.cli` (development path only).
20
20
  """
21
- __version__ = "0.7.43"
21
+ __version__ = "0.7.45"
@@ -0,0 +1,169 @@
1
+ #!/usr/bin/env python3
2
+ """Writing proposed acceptance conditions onto a ticket (Issue #1929).
3
+
4
+ The acceptance conditions a `kind=criteria` proposal carries land in the
5
+ ticket body under one section: an acceptance heading that follows the
6
+ repository's `message_language` (`## Acceptance` in English, `## 验收` in
7
+ Chinese, Issue #1971), one `- <condition>` line per condition and the hidden
8
+ `<!-- orbi:acceptance:v1 -->` marker after them. The marker is what makes
9
+ the append idempotent — a second run finds it and appends nothing, so the
10
+ body gains the section exactly once, however often the work is interrupted.
11
+
12
+ Two callers share this one contract:
13
+
14
+ - `/orbi amend` (Issue #1929) appends the section to a ticket the gate
15
+ stopped, then queues it;
16
+ - the clarification gate itself (Issue #2206) appends it at the claim when
17
+ its failing verdict carries a usable criteria proposal, posts the ONE
18
+ comment listing what was added, and lets the same claim deliver.
19
+
20
+ The module also owns the write (`write_body`: the documented
21
+ `gh issue edit --body`) and the comment the gate adds after it, so both
22
+ writers produce the same text and a reviewer reads one implementation.
23
+ """
24
+ from __future__ import annotations
25
+
26
+ import logging
27
+ from collections.abc import Sequence
28
+
29
+ from orbi import language, user_summary
30
+ from orbi.github import comment_issue, run_gh_write_command
31
+ from orbi.journal import event
32
+ from orbi.progress import run_marker
33
+
34
+ # The heading the conditions land under follows the message language
35
+ # (Issue #1971), and the hidden marker that makes the append idempotent is
36
+ # the same in every language: the second run finds the marker in the body and
37
+ # adds nothing (docs/public-contracts.mdx).
38
+ ACCEPTANCE_HEADING_KEY = "criteria.acceptance_heading"
39
+ ACCEPTANCE_MARKER = "orbi:acceptance:v1"
40
+
41
+
42
+ def appended_marker() -> str:
43
+ """The hidden line the appended section ends with."""
44
+ return f"<!-- {ACCEPTANCE_MARKER} -->"
45
+
46
+
47
+ def acceptance_heading(language_code: str) -> str:
48
+ """The section heading in one message language."""
49
+ return language.text(language_code, ACCEPTANCE_HEADING_KEY)
50
+
51
+
52
+ def render_acceptance(
53
+ conditions: Sequence[str], language_code: str,
54
+ ) -> str:
55
+ """The section appended to the ticket body: the conditions, verbatim.
56
+
57
+ The heading and the list grammar are the ones a filed Issue uses, so the
58
+ result reads like an acceptance section a person wrote, and the hidden
59
+ marker after it records that Orbi appended it.
60
+ """
61
+ lines = [acceptance_heading(language_code)]
62
+ lines.extend(f"- {condition}" for condition in conditions)
63
+ lines.extend(["", appended_marker()])
64
+ return "\n".join(lines)
65
+
66
+
67
+ def appended_body(body: object, section: str) -> str:
68
+ """`body` with `section` appended after one blank line.
69
+
70
+ An empty (or unreadable) body receives the section alone: the command
71
+ never writes a leading blank block.
72
+ """
73
+ existing = body if isinstance(body, str) else ""
74
+ if not existing.strip():
75
+ return section
76
+ kept = existing.rstrip("\n")
77
+ return f"{kept}\n\n{section}"
78
+
79
+
80
+ def write_body(number: int, *, repo: str, body: str) -> None:
81
+ """Replace one Issue body: the documented `gh issue edit --body`."""
82
+ run_gh_write_command([
83
+ "gh", "issue", "edit", str(number), "--repo", repo, "--body", body,
84
+ ])
85
+
86
+
87
+ def render_applied_comment(
88
+ issue: dict, conditions: Sequence[str], run_id: str, *,
89
+ language_code: str, status_url: str | None = None,
90
+ ) -> str:
91
+ """The ONE comment listing the conditions the gate appended.
92
+
93
+ The person reads what was added and that the conditions now live in the
94
+ ticket, so editing the ticket changes them (Issue #2206). The title and
95
+ the item lines are the ones `/orbi amend` posts: both paths describe the
96
+ same append, so they read the same.
97
+ """
98
+ def message(key: str, **fields: object) -> str:
99
+ return language.text(language_code, key, **fields)
100
+
101
+ summary = user_summary.summary_text(
102
+ status_url=status_url, issue=issue.get("number"),
103
+ title=issue.get("title"), language_code=language_code,
104
+ )
105
+ return "\n".join((
106
+ run_marker(run_id),
107
+ message("criteria.receipt_title"),
108
+ f"{summary}",
109
+ *[
110
+ message("criteria.receipt_item", text=condition)
111
+ for condition in conditions
112
+ ],
113
+ "",
114
+ message(
115
+ "clarify.criteria_appended",
116
+ heading=acceptance_heading(language_code),
117
+ ),
118
+ "",
119
+ f"run_id={run_id}",
120
+ ))
121
+
122
+
123
+ def apply(
124
+ issue: dict, conditions: Sequence[str], run_id: str, *,
125
+ source_repo: str, language_code: str, status_url: str | None = None,
126
+ ) -> bool:
127
+ """Append `conditions` to the ticket and report them; True when done.
128
+
129
+ `False` means the gate adds nothing and the caller falls back to the
130
+ stop: the ticket already carries the appended section (the marker makes
131
+ a second apply a no-op, so an already-amended ticket is never amended
132
+ twice), or a write failed — nothing, or only the body, is on the ticket,
133
+ the stop follows, and `/orbi amend` finishes the append.
134
+ """
135
+ body = issue.get("body")
136
+ body = body if isinstance(body, str) else ""
137
+ if appended_marker() in body:
138
+ return False
139
+ appended = appended_body(body, render_acceptance(conditions, language_code))
140
+ try:
141
+ write_body(issue["number"], repo=source_repo, body=appended)
142
+ except Exception as exc:
143
+ event(
144
+ "clarify_criteria_apply_failed", level=logging.WARNING,
145
+ issue=issue["number"], step="append", reason=type(exc).__name__,
146
+ )
147
+ return False
148
+ # The write landed, so the ticket this claim carries (the delivery
149
+ # session is rendered from it) carries the conditions too.
150
+ issue["body"] = appended
151
+ try:
152
+ comment_issue(
153
+ issue["number"], repo=source_repo,
154
+ body=render_applied_comment(
155
+ issue, conditions, run_id, language_code=language_code,
156
+ status_url=status_url,
157
+ ),
158
+ )
159
+ except Exception as exc:
160
+ event(
161
+ "clarify_criteria_apply_failed", level=logging.WARNING,
162
+ issue=issue["number"], step="comment", reason=type(exc).__name__,
163
+ )
164
+ return False
165
+ event(
166
+ "clarify_criteria_appended", issue=issue["number"],
167
+ count=len(conditions),
168
+ )
169
+ return True
@@ -46,10 +46,15 @@ read as a second run.
46
46
  from __future__ import annotations
47
47
 
48
48
  from orbi import clarify, language
49
- from orbi.delivery_labels import NEEDS_DETAIL_LABEL, READY_LABEL, label_names
50
- from orbi.github import (
51
- comment_issue, edit_issue, issue_view, run_gh_write_command,
49
+ from orbi.acceptance_section import (
50
+ acceptance_heading,
51
+ appended_body,
52
+ appended_marker,
53
+ render_acceptance,
54
+ write_body,
52
55
  )
56
+ from orbi.delivery_labels import NEEDS_DETAIL_LABEL, READY_LABEL, label_names
57
+ from orbi.github import comment_issue, edit_issue, issue_view
53
58
  from orbi.ticket_command import (
54
59
  CommandSpec,
55
60
  TicketCommandError,
@@ -59,62 +64,14 @@ from orbi.ticket_command import (
59
64
  runner_receipt,
60
65
  )
61
66
 
62
- # The heading the conditions land under follows the message language
63
- # (Issue #1971), and the hidden marker that makes the append idempotent is
64
- # the same in every language: the second run of the command finds the marker
65
- # in the body and adds nothing (docs/public-contracts.mdx).
66
- ACCEPTANCE_HEADING_KEY = "criteria.acceptance_heading"
67
- ACCEPTANCE_MARKER = "orbi:acceptance:v1"
67
+ # The appended acceptance section — its heading, its marker and the body
68
+ # write — lives in `orbi.acceptance_section` (Issue #2206): the gate applies
69
+ # the same section at the claim, so both writers share one implementation.
68
70
  # What this command reads from the ticket: the body it appends to, the labels
69
71
  # it moves and the number it writes to.
70
72
  ISSUE_FIELDS = "number,body,labels"
71
73
 
72
74
 
73
- def appended_marker() -> str:
74
- """The hidden line the appended section ends with."""
75
- return f"<!-- {ACCEPTANCE_MARKER} -->"
76
-
77
-
78
- def acceptance_heading(language_code: str) -> str:
79
- """The section heading in one message language."""
80
- return language.text(language_code, ACCEPTANCE_HEADING_KEY)
81
-
82
-
83
- def render_acceptance(
84
- items: tuple[clarify.SuggestionItem, ...], language_code: str,
85
- ) -> str:
86
- """The section appended to the ticket body: the conditions, verbatim.
87
-
88
- The heading and the list grammar are the ones a filed Issue uses, so the
89
- result reads like an acceptance section a person wrote, and the hidden
90
- marker after it records that Orbi appended it.
91
- """
92
- lines = [acceptance_heading(language_code)]
93
- lines.extend(f"- {item.text}" for item in items)
94
- lines.extend(["", appended_marker()])
95
- return "\n".join(lines)
96
-
97
-
98
- def appended_body(body: object, section: str) -> str:
99
- """`body` with `section` appended after one blank line.
100
-
101
- An empty (or unreadable) body receives the section alone: the command
102
- never writes a leading blank block.
103
- """
104
- existing = body if isinstance(body, str) else ""
105
- if not existing.strip():
106
- return section
107
- kept = existing.rstrip("\n")
108
- return f"{kept}\n\n{section}"
109
-
110
-
111
- def write_body(number: int, *, repo: str, body: str) -> None:
112
- """Replace one Issue body: the documented `gh issue edit --body`."""
113
- run_gh_write_command([
114
- "gh", "issue", "edit", str(number), "--repo", repo, "--body", body,
115
- ])
116
-
117
-
118
75
  def _receipt(items: tuple[clarify.SuggestionItem, ...], *,
119
76
  dispatch_label: str, language_code: str) -> str:
120
77
  """The ONE success receipt: the conditions, in proposal order."""
@@ -197,7 +154,9 @@ def _criteria_apply(
197
154
  if not runner_receipt(comments, receipt):
198
155
  current = issue.get("body") or ""
199
156
  if appended_marker() not in current:
200
- section = render_acceptance(suggestion.items, language_code)
157
+ section = render_acceptance(
158
+ tuple(item.text for item in suggestion.items), language_code,
159
+ )
201
160
  run_step(
202
161
  "append the criteria",
203
162
  lambda: write_body(