orbi-cli 0.7.55__tar.gz → 0.7.56__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 (308) hide show
  1. {orbi_cli-0.7.55/src/orbi_cli.egg-info → orbi_cli-0.7.56}/PKG-INFO +1 -1
  2. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/pyproject.toml +1 -1
  3. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/__init__.py +1 -1
  4. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/failure.py +9 -25
  5. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/failure_evidence.py +72 -9
  6. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/failure_report.py +19 -3
  7. orbi_cli-0.7.56/src/orbi/failure_stop.py +124 -0
  8. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/language_failure.py +74 -2
  9. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/progress.py +9 -4
  10. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/progress_outcome.py +21 -22
  11. {orbi_cli-0.7.55 → orbi_cli-0.7.56/src/orbi_cli.egg-info}/PKG-INFO +1 -1
  12. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi_cli.egg-info/SOURCES.txt +1 -0
  13. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_blocked_comment.py +4 -1
  14. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_bootstrap_delivery.py +17 -13
  15. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_bootstrap_runner_failure_report.py +15 -6
  16. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_bootstrap_runner_outcome.py +33 -1
  17. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_failure.py +129 -2
  18. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_failure_report.py +279 -6
  19. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_fix_needed_loop.py +5 -4
  20. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_progress_wiring.py +27 -15
  21. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_user_acceptance_contract.py +23 -0
  22. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/LICENSE +0 -0
  23. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/README.md +0 -0
  24. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/docs/licenses/sustainable-use-license.md +0 -0
  25. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/setup.cfg +0 -0
  26. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/acceptance_section.py +0 -0
  27. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/amend_command.py +0 -0
  28. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/answer.py +0 -0
  29. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/base_ci_fix.py +0 -0
  30. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/base_ci_red.py +0 -0
  31. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/blocked_comment.py +0 -0
  32. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/blocked_record.py +0 -0
  33. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/blocked_scan.py +0 -0
  34. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/body_steering.py +0 -0
  35. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/branch_reclaim.py +0 -0
  36. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/check_permission.py +0 -0
  37. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/checks.py +0 -0
  38. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/claim.py +0 -0
  39. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/claim_race.py +0 -0
  40. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/clarify.py +0 -0
  41. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/clarify_proposal.py +0 -0
  42. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/clarify_stop.py +0 -0
  43. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/cli.py +0 -0
  44. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/cli_commands.py +0 -0
  45. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/cli_doctor.py +0 -0
  46. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/cli_parser.py +0 -0
  47. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/cli_source.py +0 -0
  48. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/cli_status.py +0 -0
  49. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/cli_ticket_command.py +0 -0
  50. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/command_line.py +0 -0
  51. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/comment_kind.py +0 -0
  52. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/comment_rest_id.py +0 -0
  53. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/comment_trust.py +0 -0
  54. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/config.py +0 -0
  55. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/config_hint.py +0 -0
  56. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/delivery_comment.py +0 -0
  57. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/delivery_labels.py +0 -0
  58. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/delivery_push.py +0 -0
  59. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/delivery_scene.py +0 -0
  60. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/draft.py +0 -0
  61. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/draft_cli.py +0 -0
  62. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/draft_document.py +0 -0
  63. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/draft_marker.py +0 -0
  64. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/draft_validate.py +0 -0
  65. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/engine_source.py +0 -0
  66. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/example_config.toml +0 -0
  67. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/extensions/clarify_verdict.ts +0 -0
  68. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/extensions/draft_tools.ts +0 -0
  69. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/gh_response.py +0 -0
  70. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/git_identity.py +0 -0
  71. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/git_transport.py +0 -0
  72. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/github.py +0 -0
  73. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/github_feedback.py +0 -0
  74. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/gitops.py +0 -0
  75. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/human_review.py +0 -0
  76. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/implementation_delivery.py +0 -0
  77. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/journal.py +0 -0
  78. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/labels.py +0 -0
  79. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/labels.toml +0 -0
  80. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/language.py +0 -0
  81. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/language_terms.py +0 -0
  82. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/language_terms_criteria.py +0 -0
  83. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/language_terms_fix.py +0 -0
  84. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/launchd_deploy.py +0 -0
  85. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/merge_blocked.py +0 -0
  86. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/merge_exec.py +0 -0
  87. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/merge_gate.py +0 -0
  88. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/merge_handoff.py +0 -0
  89. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/milestone.py +0 -0
  90. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/milestone_command.py +0 -0
  91. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/milestone_errors.py +0 -0
  92. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/notify.py +0 -0
  93. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/notify_text.py +0 -0
  94. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/ops_delivery.py +0 -0
  95. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/pi_activity.py +0 -0
  96. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/pi_command.py +0 -0
  97. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/pi_exec.py +0 -0
  98. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/pi_idle.py +0 -0
  99. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/pi_process.py +0 -0
  100. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/pi_recovery.py +0 -0
  101. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/pi_session.py +0 -0
  102. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/pi_stream_log.py +0 -0
  103. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/pilot_setup.py +0 -0
  104. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/pilot_slots.py +0 -0
  105. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/plan_milestone.py +0 -0
  106. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/pr_head_sync.py +0 -0
  107. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/pr_verification.py +0 -0
  108. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/progress_display.py +0 -0
  109. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/progress_summary.py +0 -0
  110. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/provider_balance.py +0 -0
  111. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/question.py +0 -0
  112. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/recoverable_failure.py +0 -0
  113. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/release.py +0 -0
  114. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/release_closeout.py +0 -0
  115. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/release_comments.py +0 -0
  116. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/release_declaration.py +0 -0
  117. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/release_git.py +0 -0
  118. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/release_notes.py +0 -0
  119. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/release_run.py +0 -0
  120. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/repo_config.py +0 -0
  121. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/requeue.py +0 -0
  122. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/restart_scan.py +0 -0
  123. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/resume_scan.py +0 -0
  124. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/resume_verification.py +0 -0
  125. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/review_ci_status.py +0 -0
  126. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/review_merge.py +0 -0
  127. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/review_rounds.py +0 -0
  128. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/review_verdict.py +0 -0
  129. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/review_wait.py +0 -0
  130. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/run_fields.py +0 -0
  131. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/run_state.py +0 -0
  132. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/runner.py +0 -0
  133. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/runner_health.py +0 -0
  134. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/runner_marker.py +0 -0
  135. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/runner_source.py +0 -0
  136. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/scene.py +0 -0
  137. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/scheduler.py +0 -0
  138. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/scheduler_units.py +0 -0
  139. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/session_command.py +0 -0
  140. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/setup_checks.py +0 -0
  141. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/setup_config.py +0 -0
  142. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/source_pool.py +0 -0
  143. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/split_apply.py +0 -0
  144. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/split_command.py +0 -0
  145. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/status_observe.py +0 -0
  146. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/steering.py +0 -0
  147. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/stop_comment.py +0 -0
  148. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/stopped_scans.py +0 -0
  149. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/suggest.py +0 -0
  150. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/systemd_deploy.py +0 -0
  151. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/terminal_stops.py +0 -0
  152. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/tick_reads.py +0 -0
  153. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/ticket_command.py +0 -0
  154. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/ticket_command_registry.py +0 -0
  155. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/ticket_criteria.py +0 -0
  156. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/user_summary.py +0 -0
  157. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/waiting_checks.py +0 -0
  158. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi/worktree_retention.py +0 -0
  159. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi_cli.egg-info/dependency_links.txt +0 -0
  160. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi_cli.egg-info/entry_points.txt +0 -0
  161. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/src/orbi_cli.egg-info/top_level.txt +0 -0
  162. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_agents_md.py +0 -0
  163. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_amend_command.py +0 -0
  164. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_answer.py +0 -0
  165. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_apply_label_patch.py +0 -0
  166. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_base_branch_failure.py +0 -0
  167. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_base_ci_red.py +0 -0
  168. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_body_steering.py +0 -0
  169. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_bootstrap_adapters.py +0 -0
  170. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_bootstrap_pi.py +0 -0
  171. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_bootstrap_preflight.py +0 -0
  172. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_bootstrap_release.py +0 -0
  173. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_bootstrap_runner_claim_resume.py +0 -0
  174. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_bootstrap_runner_main.py +0 -0
  175. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_bootstrap_runner_milestone.py +0 -0
  176. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_bootstrap_runner_prompt.py +0 -0
  177. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_bootstrap_runner_reconcile.py +0 -0
  178. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_bootstrap_runner_session.py +0 -0
  179. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_bootstrap_runner_tickets.py +0 -0
  180. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_branch_reclaim.py +0 -0
  181. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_check_permission.py +0 -0
  182. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_ci_macos_workflow.py +0 -0
  183. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_ci_workflow.py +0 -0
  184. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_claim_race.py +0 -0
  185. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_clarify.py +0 -0
  186. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_claude_plugin.py +0 -0
  187. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_cli_golden.py +0 -0
  188. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_cli_install.py +0 -0
  189. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_cli_milestone.py +0 -0
  190. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_cli_packaging.py +0 -0
  191. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_cli_source.py +0 -0
  192. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_cli_ticket_commands.py +0 -0
  193. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_command_receipt_contract.py +0 -0
  194. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_comment_identity.py +0 -0
  195. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_comment_readers_contract.py +0 -0
  196. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_comment_rest_id.py +0 -0
  197. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_comment_trust.py +0 -0
  198. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_concurrency_e2e.py +0 -0
  199. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_constitution.py +0 -0
  200. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_coverage_gate.py +0 -0
  201. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_deliver_pr_fakes.py +0 -0
  202. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_delivery_branch_delete.py +0 -0
  203. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_delivery_labels.py +0 -0
  204. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_delivery_scene.py +0 -0
  205. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_docker_docs.py +0 -0
  206. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_docker_entrypoint.py +0 -0
  207. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_docker_image_workflow.py +0 -0
  208. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_docs_i18n.py +0 -0
  209. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_docs_issue_shapes.py +0 -0
  210. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_docs_labels.py +0 -0
  211. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_docs_mermaid.py +0 -0
  212. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_docs_releases.py +0 -0
  213. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_docs_safety_matrix.py +0 -0
  214. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_docs_single_source.py +0 -0
  215. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_docs_site.py +0 -0
  216. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_draft.py +0 -0
  217. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_draft_repo_view.py +0 -0
  218. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_draft_validate.py +0 -0
  219. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_engine_source.py +0 -0
  220. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_gh_read_retry.py +0 -0
  221. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_gh_response.py +0 -0
  222. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_git_base_smoke.py +0 -0
  223. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_git_merge_smoke.py +0 -0
  224. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_git_network_retry.py +0 -0
  225. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_git_transport.py +0 -0
  226. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_github.py +0 -0
  227. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_github_fakes.py +0 -0
  228. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_gitops.py +0 -0
  229. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_gitops_fakes.py +0 -0
  230. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_human_review.py +0 -0
  231. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_import_graph.py +0 -0
  232. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_install_sh.py +0 -0
  233. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_issue_1367.py +0 -0
  234. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_issue_461.py +0 -0
  235. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_issue_template_config.py +0 -0
  236. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_journal.py +0 -0
  237. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_journal_events.py +0 -0
  238. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_labels.py +0 -0
  239. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_launchd_deploy.py +0 -0
  240. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_license.py +0 -0
  241. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_merge_exec_extraction.py +0 -0
  242. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_message_language.py +0 -0
  243. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_milestone_command.py +0 -0
  244. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_notify.py +0 -0
  245. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_ops_e2e.py +0 -0
  246. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_orbi.py +0 -0
  247. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_orbi_dashboard.py +0 -0
  248. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_orbi_exporter.py +0 -0
  249. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_patch_ratchet.py +0 -0
  250. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_pi_activity.py +0 -0
  251. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_pi_child_reap.py +0 -0
  252. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_pi_command.py +0 -0
  253. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_pi_exec.py +0 -0
  254. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_pi_extensions.py +0 -0
  255. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_pi_provider_templates.py +0 -0
  256. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_pi_recovery.py +0 -0
  257. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_pi_session.py +0 -0
  258. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_pilot_setup.py +0 -0
  259. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_pilot_slots.py +0 -0
  260. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_pr_issue_link_workflow.py +0 -0
  261. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_pr_verification.py +0 -0
  262. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_prerequisite_check.py +0 -0
  263. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_progress.py +0 -0
  264. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_prompt_contract.py +0 -0
  265. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_public_contracts.py +0 -0
  266. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_public_helpers.py +0 -0
  267. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_publish_workflow.py +0 -0
  268. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_question.py +0 -0
  269. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_question_resume.py +0 -0
  270. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_release_docs_workflow.py +0 -0
  271. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_release_extraction.py +0 -0
  272. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_release_ticket_templates.py +0 -0
  273. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_repo_config.py +0 -0
  274. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_resume_continue_e2e.py +0 -0
  275. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_resume_e2e.py +0 -0
  276. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_resume_other_executor.py +0 -0
  277. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_resume_pr.py +0 -0
  278. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_review_merge.py +0 -0
  279. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_review_verdict.py +0 -0
  280. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_review_waiting.py +0 -0
  281. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_run_artifacts.py +0 -0
  282. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_run_fields.py +0 -0
  283. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_run_id_e2e.py +0 -0
  284. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_run_id_fixture.py +0 -0
  285. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_runner_config.py +0 -0
  286. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_runner_health.py +0 -0
  287. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_runner_source_freshness.py +0 -0
  288. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_scene.py +0 -0
  289. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_scheduler.py +0 -0
  290. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_seam.py +0 -0
  291. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_setup_output_golden.py +0 -0
  292. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_size_ratchet.py +0 -0
  293. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_split_command.py +0 -0
  294. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_src_layout.py +0 -0
  295. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_status_observe.py +0 -0
  296. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_steering_review.py +0 -0
  297. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_suggest.py +0 -0
  298. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_suggest_repo_view.py +0 -0
  299. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_suite_hygiene.py +0 -0
  300. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_systemd_deploy.py +0 -0
  301. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_systemd_timer.py +0 -0
  302. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_tick_reads.py +0 -0
  303. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_ticket_command.py +0 -0
  304. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_ticket_command_registration.py +0 -0
  305. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_user_summary.py +0 -0
  306. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_versioned_comment_block.py +0 -0
  307. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/tests/test_waiting_checks.py +0 -0
  308. {orbi_cli-0.7.55 → orbi_cli-0.7.56}/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.55
3
+ Version: 0.7.56
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
@@ -44,7 +44,7 @@ build-backend = "setuptools.build_meta"
44
44
 
45
45
  [project]
46
46
  name = "orbi-cli"
47
- version = "0.7.55"
47
+ version = "0.7.56"
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.55"
21
+ __version__ = "0.7.56"
@@ -27,7 +27,10 @@ import re
27
27
  import subprocess
28
28
 
29
29
  from orbi import gh_response, language, provider_balance, user_summary
30
+ # Issue #2351: the stop wording moved to its own module (this one is at its
31
+ # size-ratchet ceiling); it is re-exported here for its existing callers.
30
32
  from orbi.comment_kind import parse_versioned_block
33
+ from orbi.failure_stop import stop_wording, terminal_action # noqa: F401
31
34
 
32
35
  SCHEMA_VERSION = 1
33
36
 
@@ -480,28 +483,6 @@ def workflow_permission_action(
480
483
  )
481
484
 
482
485
 
483
- def terminal_action(record: Failure,
484
- language_code: str, *,
485
- base_branch: str | None = None) -> str:
486
- """The reader action for the implement-phase terminal handler.
487
-
488
- An unrecognized failure says the cause could not be determined
489
- instead of implying the Issue text is the problem (Issue #1651); a
490
- missing base branch names the branch and both repairs — create it, or
491
- pick an existing one where the repository was set up — plus how to
492
- restart the Issue (Issue #1749, #1753); every other recognized
493
- terminal failure keeps the existing generic action.
494
- """
495
- if record.reason_code == "unclassified":
496
- return language.text(language_code, "failure.terminal_unclassified")
497
- if record.reason_code == "base_branch_missing":
498
- return language.text(
499
- language_code, "failure.terminal_base_branch_missing",
500
- base_branch=base_branch or "-",
501
- )
502
- return language.text(language_code, "failure.terminal_generic")
503
-
504
-
505
486
  def terminal_reason(detail: str, record: Failure, *,
506
487
  base_branch: str | None, language_code: str) -> str:
507
488
  """The reader-facing reason of the implement-phase terminal handler.
@@ -632,9 +613,12 @@ def failure_comment_body(*, outcome: str, action: str, reason: str,
632
613
  def message(key: str, **fields: object) -> str:
633
614
  return language.text(language_code, key, **fields)
634
615
 
635
- headline = message(
636
- "failure.headline_fix_needed" if retrying
637
- else "failure.headline_blocked",
616
+ # The blocked headline is the ONE wording function's verdict for this
617
+ # record (Issue #2351): the action the record carries decides it, so the
618
+ # headline never promises a decision the action does not ask for.
619
+ headline = (
620
+ message("failure.headline_fix_needed") if retrying
621
+ else stop_wording(failure_record, language_code)[0]
638
622
  )
639
623
  parts = [render(failure_record), headline]
640
624
  # The task identity and the optional fixed project status link sit
@@ -1,12 +1,12 @@
1
1
  """The bounded evidence of one failure comment (Issue #2202).
2
2
 
3
3
  The failure report copies what survives a terminal worktree cleanup into
4
- ONE comment: the tail of the failing command's streams, a structural
5
- summary of the Pi session log and the tail of `.orbi/test.log`. This module
6
- owns that rendering — the segment caps, the de-colouring, the session
7
- summary and the shrink-to-fit loop that keeps an oversized comment inside
8
- `FAILURE_COMMENT_MAX_CHARS` by shrinking ONLY the evidence, never its
9
- structure (Issue #1711).
4
+ ONE comment: the tail of the failing command's streams, the session's own
5
+ final explanation, a structural summary of the Pi session log and the tail
6
+ of `.orbi/test.log`. This module owns that rendering — the segment caps, the
7
+ de-colouring, the session summary and the shrink-to-fit loop that keeps an
8
+ oversized comment inside `FAILURE_COMMENT_MAX_CHARS` by shrinking ONLY the
9
+ evidence, never its structure (Issue #1711).
10
10
 
11
11
  A verbatim extraction out of `orbi.failure_report` (Article 3.5, Issue
12
12
  #2202): that module sits at the 1,000-line cap the size ratchet freezes, so
@@ -71,8 +71,10 @@ def _session_summary(session_file: Path,
71
71
  """Structured summary of the last session records.
72
72
 
73
73
  One line per parsed record — timestamp, type, role, tool name and
74
- content-block kinds; the record text itself never enters the comment
75
- (the full log path is named next to the segment). A record whose
74
+ content-block kinds; THIS summary never carries the record text (the
75
+ session's own final explanation is quoted in its own segment,
76
+ `session_explanation`, Issue #2351, and the full log path is named next
77
+ to the segment). A record whose
76
78
  text blocks repeat the previous record's is skipped: pi logs the
77
79
  final assistant text twice (once inside the full message, once
78
80
  standalone), which used to duplicate whole paragraphs in the
@@ -136,6 +138,54 @@ def _session_summary(session_file: Path,
136
138
  EVIDENCE_SEGMENT_CAP = 4000
137
139
  _EVIDENCE_CAP_STEP = 500
138
140
 
141
+ # The session-log tail a read inspects (the same window the summary reads):
142
+ # the closing assistant text sits at the end of the file.
143
+ _SESSION_WINDOW_BYTES = 65536
144
+
145
+
146
+ def session_explanation(session_file: Path | None) -> str | None:
147
+ """The text of the session's last assistant message, or None.
148
+
149
+ Issue #2351: the sentence that explains why a run stopped is written
150
+ nowhere but the session's own final response, so the failure comment
151
+ quotes it (bounded, fenced and redacted like every other comment text)
152
+ instead of keeping every session record metadata-only. A partial
153
+ trailing line — a killed session mid-write — is skipped, and the final
154
+ record pi logs twice is read ONCE because only the newest assistant text
155
+ is read at all.
156
+ """
157
+ if session_file is None:
158
+ return None
159
+ try:
160
+ with session_file.open("rb") as handle:
161
+ handle.seek(0, os.SEEK_END)
162
+ size = handle.tell()
163
+ window = min(size, _SESSION_WINDOW_BYTES)
164
+ handle.seek(size - window)
165
+ content = handle.read(window).decode("utf-8", errors="replace")
166
+ except (OSError, UnicodeError):
167
+ return None
168
+ for line in reversed(content.splitlines()):
169
+ try:
170
+ record = json.loads(line)
171
+ except ValueError:
172
+ continue
173
+ if not isinstance(record, dict):
174
+ continue
175
+ message = record.get("message")
176
+ if not isinstance(message, dict) or message.get("role") != "assistant":
177
+ continue
178
+ blocks = message.get("content")
179
+ if not isinstance(blocks, list):
180
+ continue
181
+ text = "".join(
182
+ block.get("text", "") for block in blocks
183
+ if isinstance(block, dict) and block.get("type") == "text"
184
+ ).strip()
185
+ if text:
186
+ return text
187
+ return None
188
+
139
189
 
140
190
  def _failure_evidence(worktree: Path | None, exc: BaseException, *,
141
191
  language_code: str,
@@ -146,7 +196,9 @@ def _failure_evidence(worktree: Path | None, exc: BaseException, *,
146
196
  test log are read before cleanup and only bounded, fenced segments are
147
197
  copied into the failure comment: raw output stays literal on GitHub,
148
198
  the session tail is a structural summary whose duplicates are removed,
149
- and the full session log is named for the deep-dive. The
199
+ and the full session log is named for the deep-dive. The session's
200
+ final explanation is the ONE session text the comment quotes (Issue
201
+ #2351) — a stop's cause is written nowhere else. The
150
202
  failure reason itself stays the readable head of the comment.
151
203
 
152
204
  `cap` bounds each segment, so every fence closes (Issue #1711).
@@ -173,8 +225,19 @@ def _failure_evidence(worktree: Path | None, exc: BaseException, *,
173
225
  test_path = worktree / ".orbi" / "test.log"
174
226
  if test_path.is_file():
175
227
  test_log = _tail_text(test_path)
228
+ # Issue #2351: the session's own closing words lead the evidence, in
229
+ # their own bounded segment; a session that left none says so plainly.
230
+ explanation = session_explanation(session_file)
231
+ explanation_segment = (
232
+ f"{language.text(language_code, 'failure.evidence.session_explanation')}\n"
233
+ f"{fenced(redact_local_paths(explanation), cap=cap)}"
234
+ if explanation is not None
235
+ else language.text(
236
+ language_code, "failure.evidence.no_session_explanation")
237
+ )
176
238
  return (
177
239
  f"\n\n{language.text(language_code, 'failure.evidence.heading')}\n"
240
+ f"{explanation_segment}\n"
178
241
  f"exit_code={return_code if return_code is not None else '<unknown>'}\n"
179
242
  f"\nstderr_tail:\n{fenced(redact_local_paths(stderr), cap=cap)}\n"
180
243
  f"\nstdout_tail:\n{fenced(redact_local_paths(stdout), cap=cap)}\n"
@@ -39,6 +39,7 @@ from orbi.comment_rest_id import rest_comment_id
39
39
  from orbi.comment_trust import latest_run_marker, trusted_comments
40
40
  from orbi.delivery_labels import EVENT_FIX_NEEDED
41
41
  from orbi import delivery_labels
42
+ from orbi import failure_stop
42
43
  from orbi.failure import (
43
44
  failure_comment_body, failure_detail, failure_summary,
44
45
  redact_local_paths, terminal_action,
@@ -582,6 +583,21 @@ def _typed_failure_wording(
582
583
  return False, False, None
583
584
 
584
585
 
586
+ def _stop_headline(record: failure.Failure, language_code: str,
587
+ outcome: str, red: object) -> str | None:
588
+ """The stop headline the failure comment carries, or None.
589
+
590
+ Issue #2351: the terminal progress comment shows the SAME sentence as the
591
+ failure comment, through the ONE wording function of the record. A
592
+ recoverable (`fix_needed`) outcome keeps the progress comment's own
593
+ retry headline, and the base-branch-red scene renders its own body (a
594
+ ready line and its paused scene), so both keep their own text.
595
+ """
596
+ if outcome != "blocked" or red is not None:
597
+ return None
598
+ return failure_stop.stop_wording(record, language_code)[0]
599
+
600
+
585
601
  def report_delivery_failure(
586
602
  exc: BaseException, *, issue: dict, source_repo: str,
587
603
  run_id: str | None, pr_url: str | None, worktree: Path | None,
@@ -945,8 +961,8 @@ def report_delivery_failure(
945
961
  ),
946
962
  priority=priority, detail=finish_failure,
947
963
  next_step=next_step, outcome=finish_outcome,
948
- source_repo=source_repo, action=action,
949
- reason=reason, diagnosis=diagnosis,
950
- language_code=language_code, status_url=status_url,
964
+ source_repo=source_repo, action=action, reason=reason,
965
+ diagnosis=diagnosis, language_code=language_code,
966
+ status_url=status_url, headline=_stop_headline(failure_record, language_code, outcome, red),
951
967
  )))
952
968
  return outcome
@@ -0,0 +1,124 @@
1
+ """The ONE reader-facing wording of a stop: its headline and its action.
2
+
3
+ Issue #2351: every `ai-blocked` stop used to share one headline ("waiting on
4
+ a human decision") while the record beside it could carry the action
5
+ `fix_ticket` — the headline contradicted the action the reader was told to
6
+ take. `stop_wording` decides BOTH strings from ONE record, reading its
7
+ `action_code` and `retry_safe` (plus the reason codes that already own a better
8
+ sentence than their action family can give: an undetermined cause, a missing
9
+ base branch and the provider balance refusal). The failure comment and the
10
+ terminal progress comment both read it, so the two cannot drift apart.
11
+
12
+ It lives in its own module because `orbi.failure` is at its size-ratchet
13
+ ceiling and may only shrink (`tools/size_ratchet.py`, Article 3.5) — the same
14
+ reason `terminal_stops` and `provider_balance` exist. `orbi.failure` re-exports
15
+ `terminal_action` and `stop_wording`, so their existing callers are unchanged.
16
+ """
17
+ from __future__ import annotations
18
+
19
+ from typing import TYPE_CHECKING
20
+
21
+ from orbi import language, provider_balance
22
+
23
+ if TYPE_CHECKING: # the record's home imports this module's names back
24
+ from orbi.failure import Failure
25
+
26
+ # reason_code -> (action key, disposition key): the two reasons that own a
27
+ # better sentence than their action family can give: the undetermined cause
28
+ # (which must not blame the Issue text, Issue #1651) and the branch a human
29
+ # must create or pick (Issue #1749). ONE table feeds BOTH strings, so a
30
+ # headline can never tell the reader to change the Issue while the action
31
+ # beside it names a repository or evidence repair. They are read before the
32
+ # action family, never instead of it.
33
+ _REASON_WORDING = {
34
+ "unclassified": (
35
+ "failure.terminal_unclassified", "failure.disposition_unknown_cause",
36
+ ),
37
+ "base_branch_missing": (
38
+ "failure.terminal_base_branch_missing",
39
+ "failure.disposition_base_branch",
40
+ ),
41
+ }
42
+
43
+ # action_code -> the headline disposition that action really asks for
44
+ # (`retry_safe` false). The two account actions share one sentence: the
45
+ # reader repairs a credential/account either way, and the visible Reason
46
+ # already names which.
47
+ _ACTION_DISPOSITIONS = {
48
+ "decide": "failure.disposition_decide",
49
+ "fix_ticket": "failure.disposition_ticket_change",
50
+ "check_credentials": "failure.disposition_repair",
51
+ provider_balance.ACTION_CODE: "failure.disposition_repair",
52
+ }
53
+
54
+ # action_code -> the concrete reader step of that action.
55
+ _ACTION_STEPS = {
56
+ "decide": "failure.terminal_ticket_change",
57
+ "fix_ticket": "failure.terminal_ticket_change",
58
+ "check_credentials": "failure.terminal_check_credentials",
59
+ }
60
+
61
+
62
+ def _disposition_key(record: "Failure") -> str:
63
+ """The catalog key of the stop's headline disposition.
64
+
65
+ A `retry_safe` stop needs no repair (a plain re-queue can succeed), so it
66
+ never claims a decision; the no-commit stop names what happened instead,
67
+ because "the ticket needs a change" is not what its reader would guess;
68
+ and a reason with its own action sentence above keeps the opposite
69
+ disposition, so the headline never asks for a ticket edit the action
70
+ does not ask for (Issue #2351).
71
+ """
72
+ if record.retry_safe:
73
+ return "failure.disposition_retry"
74
+ if record.reason_code == "no_commit_delivered":
75
+ return "failure.disposition_no_commit"
76
+ reason_wording = _REASON_WORDING.get(record.reason_code)
77
+ if reason_wording is not None:
78
+ return reason_wording[1]
79
+ return _ACTION_DISPOSITIONS.get(
80
+ record.action_code, "failure.disposition_ticket_change",
81
+ )
82
+
83
+
84
+ def terminal_action(record: "Failure", language_code: str, *,
85
+ base_branch: str | None = None) -> str:
86
+ """The reader's concrete next step for one recorded action.
87
+
88
+ A `retry_safe` stop keeps the generic re-run sentence (nothing needs a
89
+ repair); every other stop names its own step, so the action text and the
90
+ headline always describe the same action.
91
+ """
92
+ reason_wording = _REASON_WORDING.get(record.reason_code)
93
+ if reason_wording is not None:
94
+ action_key = reason_wording[0]
95
+ if action_key == "failure.terminal_base_branch_missing":
96
+ return language.text(
97
+ language_code, action_key, base_branch=base_branch or "-",
98
+ )
99
+ return language.text(language_code, action_key)
100
+ if record.action_code == provider_balance.ACTION_CODE:
101
+ return provider_balance.action(language_code)
102
+ if record.retry_safe:
103
+ return language.text(language_code, "failure.terminal_generic")
104
+ return language.text(
105
+ language_code,
106
+ _ACTION_STEPS.get(record.action_code, "failure.terminal_ticket_change"),
107
+ )
108
+
109
+
110
+ def stop_wording(record: "Failure", language_code: str, *,
111
+ base_branch: str | None = None) -> tuple[str, str]:
112
+ """Return `(headline, action)` — the ONE wording of one stop.
113
+
114
+ The failure comment and the terminal progress comment both render this
115
+ pair, so a headline can never promise a decision the recorded action does
116
+ not ask for (Issue #2351).
117
+ """
118
+ return (
119
+ language.text(
120
+ language_code, "failure.headline_blocked",
121
+ disposition=language.text(language_code, _disposition_key(record)),
122
+ ),
123
+ terminal_action(record, language_code, base_branch=base_branch),
124
+ )
@@ -18,9 +18,47 @@ FAILURE_MESSAGES: dict[str, tuple[str, str]] = {
18
18
  "Orbi: fix needed — the engine will retry",
19
19
  "Orbi:需要修复 —— 引擎会自动重试",
20
20
  ),
21
+ # Issue #2351: ONE function of the failure record decides the headline
22
+ # AND the action text (`orbi.failure_stop.stop_wording`), reading the
23
+ # recorded action code and retry_safe — so the headline can no longer
24
+ # contradict the action. `{disposition}` is that function's verdict;
25
+ # only a `decide` stop says "waiting on a human decision".
21
26
  "failure.headline_blocked": (
22
- "Orbi: blocked — waiting on a human decision",
23
- "Orbi:已阻塞 —— 等待人工决定",
27
+ "Orbi: blocked — {disposition}",
28
+ "Orbi:已阻塞 —— {disposition}",
29
+ ),
30
+ # The dispositions, one per action family: what the stop really waits
31
+ # for. A no-commit stop names what happened (the run produced no commit)
32
+ # and that the ticket is what has to change.
33
+ "failure.disposition_decide": (
34
+ "waiting on a human decision", "等待人工决定",
35
+ ),
36
+ "failure.disposition_no_commit": (
37
+ "the run produced no commit and this Issue needs a change",
38
+ "本次运行没有产生提交,这个 Issue 需要修改",
39
+ ),
40
+ "failure.disposition_ticket_change": (
41
+ "this Issue needs a change before Orbi can deliver it",
42
+ "这个 Issue 需要修改,Orbi 才能继续交付",
43
+ ),
44
+ "failure.disposition_repair": (
45
+ "a credential or provider account needs a repair only you can make",
46
+ "凭据或模型服务商账户需要您修复,Orbi 无法代办",
47
+ ),
48
+ "failure.disposition_retry": (
49
+ "the failure was temporary, so this Issue can be run again",
50
+ "这是临时失败,重新运行这个 Issue 即可",
51
+ ),
52
+ # The two dispositions whose reason owns its own action sentence
53
+ # (Issue #2351 with #1651/#1749): the headline names what is actually
54
+ # wrong, so it never asks for a ticket edit the action does not ask for.
55
+ "failure.disposition_unknown_cause": (
56
+ "the cause of the failure could not be determined",
57
+ "无法确定这次失败的原因",
58
+ ),
59
+ "failure.disposition_base_branch": (
60
+ "the configured base branch does not exist in this repository",
61
+ "这个仓库里没有配置的基础分支",
24
62
  ),
25
63
  "failure.pr_line": ("PR: [{pr_url}]({pr_url})", "PR:[{pr_url}]({pr_url})"),
26
64
  "failure.issue_line": (
@@ -61,6 +99,30 @@ FAILURE_MESSAGES: dict[str, tuple[str, str]] = {
61
99
  "Fix the failure described below and re-run this Issue.",
62
100
  "请修复下面描述的失败,然后重新运行这个 Issue。",
63
101
  ),
102
+ # Issue #2351: the generic sentence above is for a `retry_safe` stop
103
+ # only (nothing needs a repair; re-running can work). Every stop whose
104
+ # recorded action a re-queue cannot satisfy names its own concrete step
105
+ # here, so the action text can never contradict the action code.
106
+ # `fix_ticket` and `decide` share the one step of the Issue: the reader
107
+ # writes the answer/the missing detail into the body and re-queues, and
108
+ # the next run starts from that body.
109
+ "failure.terminal_ticket_change": (
110
+ "Write the answer or the missing detail into the Issue body, then "
111
+ "replace `ai-blocked` with `ai-ready` (your repository's queue "
112
+ "label) — Orbi delivers this Issue again from the updated body.",
113
+ "请把答案或缺少的信息写进 Issue 正文,然后去掉 `ai-blocked`、"
114
+ "重新加上 `ai-ready`(你们仓库的排队标签)——Orbi 会按更新后的"
115
+ "正文重新交付这个 Issue。",
116
+ ),
117
+ "failure.terminal_check_credentials": (
118
+ "Verify the GitHub/provider credential this run needed — it must be "
119
+ "valid, unexpired and carry the permission the reason names — then "
120
+ "repair it, remove `ai-blocked` and add `ai-ready` to run this "
121
+ "Issue again.",
122
+ "请核对这次运行需要的 GitHub/模型服务商凭据(有效、未过期,并具备"
123
+ "原因里提到的权限),修复后去掉 `ai-blocked`、重新加上 "
124
+ "`ai-ready`,以便重新运行这个 Issue。",
125
+ ),
64
126
  # Issue #1749, #1753: the configured base branch does not exist in
65
127
  # the repository. The reason names the CONFIGURED branch (Git's own
66
128
  # line only carries the value it was asked to fetch) and says what is
@@ -239,6 +301,16 @@ FAILURE_MESSAGES: dict[str, tuple[str, str]] = {
239
301
  "Failure evidence (captured before cleanup):",
240
302
  "失败证据(清理前采集):",
241
303
  ),
304
+ # Issue #2351: the session's own closing words, quoted in their own
305
+ # bounded segment — the only place the stop's cause was written down by
306
+ # the session itself. A session that wrote none says so plainly.
307
+ "failure.evidence.session_explanation": (
308
+ "The session's final explanation:", "会话最后给出的说明:",
309
+ ),
310
+ "failure.evidence.no_session_explanation": (
311
+ "The session left no explanation before it stopped.",
312
+ "会话在停止前没有留下说明。",
313
+ ),
242
314
  "failure.evidence.session_last_events": (
243
315
  "session_last_events (last {limit} records; full log: {label}):",
244
316
  "session_last_events(最近 {limit} 条记录;完整日志:{label}):",
@@ -833,10 +833,15 @@ def finish_progress_body(*, number: int, title: str, run_id: str,
833
833
  source_repo: str, action: str | None = None,
834
834
  reason: str | None = None,
835
835
  diagnosis: str | None = None,
836
- language_code: str,
837
- status_url: str | None = None,
836
+ language_code: str, status_url: str | None = None,
837
+ headline: str | None = None,
838
838
  ) -> str:
839
- """Render the terminal progress scene shared by every finish path."""
839
+ """Render the terminal progress scene shared by every finish path.
840
+
841
+ `headline` is the stop headline the failure comment rendered (Issue
842
+ #2351): the progress comment then shows the same sentence instead of its
843
+ own disposition guess.
844
+ """
840
845
  return progress_body_with_outcome(progress_state(
841
846
  RunContext(
842
847
  run_id=run_id, issue=number, branch=branch or "-",
@@ -850,7 +855,7 @@ def finish_progress_body(*, number: int, title: str, run_id: str,
850
855
  number=number, source_repo=source_repo, action=action,
851
856
  reason=reason and redact_local_paths(reason),
852
857
  diagnosis=diagnosis and redact_local_paths(diagnosis),
853
- language_code=language_code,
858
+ language_code=language_code, headline=headline,
854
859
  ))
855
860
 
856
861
 
@@ -21,38 +21,37 @@ def finish_outcome_body(*, outcome: str, detail: str,
21
21
  reason: str | None = None,
22
22
  diagnosis: str | None = None,
23
23
  language_code: str,
24
+ headline: str | None = None,
24
25
  ) -> str:
25
- """Render a terminal outcome with action, reason, and diagnosis."""
26
+ """Render a terminal outcome with action, reason, and diagnosis.
27
+
28
+ `headline` is the stop headline the failure comment rendered (Issue
29
+ #2351), so one stop shows one sentence in both places.
30
+ """
26
31
  def message(key: str, **fields: object) -> str:
27
32
  return language.text(language_code, key, **fields)
28
33
 
29
34
  if not next_step:
30
- event(
31
- "progress_finish_missing_next_step", level=logging.WARNING,
32
- call_point="_finish_progress_body", issue=number,
33
- repo=source_repo, outcome=outcome,
34
- )
35
+ event("progress_finish_missing_next_step", level=logging.WARNING,
36
+ call_point="_finish_progress_body", issue=number,
37
+ repo=source_repo, outcome=outcome)
35
38
  legacy_action = action is None
36
39
  blocked = outcome == "blocked"
37
- outcome_word = message(
38
- "progress.outcome_blocked" if blocked
39
- else "progress.outcome_fix_needed",
40
- )
41
- disposition = message(
42
- "progress.disposition_blocked" if blocked
43
- else "progress.disposition_retry",
44
- )
40
+ outcome_word = message("progress.outcome_blocked" if blocked
41
+ else "progress.outcome_fix_needed")
42
+ disposition = message("progress.disposition_blocked" if blocked
43
+ else "progress.disposition_retry")
45
44
  if reason is None:
46
- reason = message(
47
- "progress.default_reason_blocked" if blocked
48
- else "progress.default_reason_retry",
49
- )
45
+ reason = message("progress.default_reason_blocked" if blocked
46
+ else "progress.default_reason_retry")
50
47
  if diagnosis is None:
51
48
  diagnosis = detail
52
- paragraphs = [message(
53
- "progress.outcome_headline", outcome=outcome_word,
54
- disposition=disposition,
55
- )]
49
+ paragraphs = [
50
+ f"**{headline}**" if headline else message(
51
+ "progress.outcome_headline", outcome=outcome_word,
52
+ disposition=disposition,
53
+ )
54
+ ]
56
55
  if legacy_action:
57
56
  user_action = next_step if blocked and next_step else message(
58
57
  "progress.nothing",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orbi-cli
3
- Version: 0.7.55
3
+ Version: 0.7.56
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
@@ -47,6 +47,7 @@ src/orbi/example_config.toml
47
47
  src/orbi/failure.py
48
48
  src/orbi/failure_evidence.py
49
49
  src/orbi/failure_report.py
50
+ src/orbi/failure_stop.py
50
51
  src/orbi/gh_response.py
51
52
  src/orbi/git_identity.py
52
53
  src/orbi/git_transport.py
@@ -196,7 +196,10 @@ def test_delivery_failure_diagnostic_ends_with_the_help_line(
196
196
  assert outcome == "blocked"
197
197
  body = posted_body(calls)
198
198
  assert calls[0][2]["current_labels"] == set()
199
- assert language.text(language_code, "failure.headline_blocked") in body
199
+ assert language.text(
200
+ language_code, "failure.headline_blocked",
201
+ disposition=language.text(language_code, "failure.disposition_decide"),
202
+ ) in body
200
203
  assert_one_help_line(body, language_code)
201
204
 
202
205