orbi-cli 0.7.60__tar.gz → 0.7.62__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 (320) hide show
  1. {orbi_cli-0.7.60/src/orbi_cli.egg-info → orbi_cli-0.7.62}/PKG-INFO +1 -1
  2. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/pyproject.toml +1 -1
  3. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/__init__.py +1 -1
  4. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/issue_images.py +8 -1
  5. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/suggest.py +44 -43
  6. {orbi_cli-0.7.60 → orbi_cli-0.7.62/src/orbi_cli.egg-info}/PKG-INFO +1 -1
  7. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_issue_images.py +41 -0
  8. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_suggest.py +141 -17
  9. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/LICENSE +0 -0
  10. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/README.md +0 -0
  11. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/docs/licenses/sustainable-use-license.md +0 -0
  12. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/setup.cfg +0 -0
  13. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/acceptance_section.py +0 -0
  14. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/amend_command.py +0 -0
  15. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/answer.py +0 -0
  16. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/attachments.py +0 -0
  17. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/base_ci_fix.py +0 -0
  18. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/base_ci_red.py +0 -0
  19. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/blocked_comment.py +0 -0
  20. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/blocked_record.py +0 -0
  21. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/blocked_scan.py +0 -0
  22. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/body_steering.py +0 -0
  23. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/branch_reclaim.py +0 -0
  24. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/check_permission.py +0 -0
  25. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/checks.py +0 -0
  26. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/claim.py +0 -0
  27. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/claim_race.py +0 -0
  28. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/clarify.py +0 -0
  29. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/clarify_proposal.py +0 -0
  30. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/clarify_stop.py +0 -0
  31. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/cli.py +0 -0
  32. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/cli_commands.py +0 -0
  33. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/cli_doctor.py +0 -0
  34. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/cli_parser.py +0 -0
  35. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/cli_source.py +0 -0
  36. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/cli_status.py +0 -0
  37. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/cli_ticket_command.py +0 -0
  38. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/command_line.py +0 -0
  39. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/comment_kind.py +0 -0
  40. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/comment_rest_id.py +0 -0
  41. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/comment_trust.py +0 -0
  42. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/config.py +0 -0
  43. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/config_hint.py +0 -0
  44. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/delivery_comment.py +0 -0
  45. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/delivery_labels.py +0 -0
  46. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/delivery_push.py +0 -0
  47. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/delivery_scene.py +0 -0
  48. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/draft.py +0 -0
  49. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/draft_author.py +0 -0
  50. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/draft_cli.py +0 -0
  51. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/draft_document.py +0 -0
  52. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/draft_interactive.py +0 -0
  53. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/draft_marker.py +0 -0
  54. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/draft_prompt.py +0 -0
  55. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/draft_validate.py +0 -0
  56. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/engine_source.py +0 -0
  57. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/epic_reconciliation.py +0 -0
  58. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/example_config.toml +0 -0
  59. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/extensions/clarify_verdict.ts +0 -0
  60. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/extensions/draft_tools.ts +0 -0
  61. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/failure.py +0 -0
  62. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/failure_evidence.py +0 -0
  63. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/failure_report.py +0 -0
  64. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/failure_stop.py +0 -0
  65. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/gh_response.py +0 -0
  66. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/git_identity.py +0 -0
  67. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/git_transport.py +0 -0
  68. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/github.py +0 -0
  69. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/github_feedback.py +0 -0
  70. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/gitops.py +0 -0
  71. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/human_review.py +0 -0
  72. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/implementation_delivery.py +0 -0
  73. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/journal.py +0 -0
  74. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/labels.py +0 -0
  75. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/labels.toml +0 -0
  76. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/language.py +0 -0
  77. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/language_failure.py +0 -0
  78. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/language_terms.py +0 -0
  79. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/language_terms_criteria.py +0 -0
  80. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/language_terms_epic.py +0 -0
  81. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/language_terms_fix.py +0 -0
  82. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/launchd_deploy.py +0 -0
  83. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/merge_blocked.py +0 -0
  84. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/merge_exec.py +0 -0
  85. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/merge_gate.py +0 -0
  86. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/merge_handoff.py +0 -0
  87. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/milestone.py +0 -0
  88. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/milestone_command.py +0 -0
  89. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/milestone_errors.py +0 -0
  90. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/model_catalog.py +0 -0
  91. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/notify.py +0 -0
  92. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/notify_text.py +0 -0
  93. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/ops_delivery.py +0 -0
  94. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pi_activity.py +0 -0
  95. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pi_command.py +0 -0
  96. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pi_exec.py +0 -0
  97. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pi_idle.py +0 -0
  98. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pi_process.py +0 -0
  99. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pi_recovery.py +0 -0
  100. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pi_session.py +0 -0
  101. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pi_stream_log.py +0 -0
  102. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pilot_setup.py +0 -0
  103. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pilot_slots.py +0 -0
  104. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/plan_milestone.py +0 -0
  105. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pr_head_sync.py +0 -0
  106. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pr_verification.py +0 -0
  107. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/progress.py +0 -0
  108. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/progress_display.py +0 -0
  109. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/progress_outcome.py +0 -0
  110. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/progress_summary.py +0 -0
  111. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/provider_balance.py +0 -0
  112. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/question.py +0 -0
  113. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/recoverable_failure.py +0 -0
  114. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/release.py +0 -0
  115. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/release_closeout.py +0 -0
  116. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/release_comments.py +0 -0
  117. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/release_declaration.py +0 -0
  118. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/release_git.py +0 -0
  119. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/release_notes.py +0 -0
  120. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/release_run.py +0 -0
  121. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/repo_config.py +0 -0
  122. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/requeue.py +0 -0
  123. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/restart_scan.py +0 -0
  124. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/resume_scan.py +0 -0
  125. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/resume_verification.py +0 -0
  126. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/review_ci_status.py +0 -0
  127. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/review_merge.py +0 -0
  128. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/review_rounds.py +0 -0
  129. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/review_verdict.py +0 -0
  130. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/review_wait.py +0 -0
  131. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/run_fields.py +0 -0
  132. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/run_state.py +0 -0
  133. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/runner.py +0 -0
  134. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/runner_health.py +0 -0
  135. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/runner_marker.py +0 -0
  136. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/runner_source.py +0 -0
  137. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/scene.py +0 -0
  138. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/scheduler.py +0 -0
  139. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/scheduler_units.py +0 -0
  140. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/session_command.py +0 -0
  141. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/setup_checks.py +0 -0
  142. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/setup_config.py +0 -0
  143. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/source_pool.py +0 -0
  144. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/split_apply.py +0 -0
  145. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/split_command.py +0 -0
  146. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/status_observe.py +0 -0
  147. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/steering.py +0 -0
  148. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/stop_comment.py +0 -0
  149. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/stopped_scans.py +0 -0
  150. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/systemd_deploy.py +0 -0
  151. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/terminal_labels.py +0 -0
  152. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/terminal_stops.py +0 -0
  153. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/tick_reads.py +0 -0
  154. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/ticket_command.py +0 -0
  155. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/ticket_command_registry.py +0 -0
  156. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/ticket_criteria.py +0 -0
  157. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/user_summary.py +0 -0
  158. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/waiting_checks.py +0 -0
  159. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/worktree_retention.py +0 -0
  160. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi_cli.egg-info/SOURCES.txt +0 -0
  161. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi_cli.egg-info/dependency_links.txt +0 -0
  162. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi_cli.egg-info/entry_points.txt +0 -0
  163. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi_cli.egg-info/top_level.txt +0 -0
  164. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_agents_md.py +0 -0
  165. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_amend_command.py +0 -0
  166. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_answer.py +0 -0
  167. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_apply_label_patch.py +0 -0
  168. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_base_branch_failure.py +0 -0
  169. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_base_ci_red.py +0 -0
  170. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_blocked_comment.py +0 -0
  171. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_body_steering.py +0 -0
  172. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_adapters.py +0 -0
  173. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_delivery.py +0 -0
  174. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_pi.py +0 -0
  175. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_preflight.py +0 -0
  176. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_release.py +0 -0
  177. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_runner_claim_resume.py +0 -0
  178. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_runner_failure_report.py +0 -0
  179. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_runner_main.py +0 -0
  180. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_runner_milestone.py +0 -0
  181. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_runner_outcome.py +0 -0
  182. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_runner_prompt.py +0 -0
  183. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_runner_reconcile.py +0 -0
  184. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_runner_session.py +0 -0
  185. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_runner_tickets.py +0 -0
  186. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_branch_reclaim.py +0 -0
  187. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_check_permission.py +0 -0
  188. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_ci_macos_workflow.py +0 -0
  189. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_ci_workflow.py +0 -0
  190. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_claim_race.py +0 -0
  191. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_clarify.py +0 -0
  192. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_claude_plugin.py +0 -0
  193. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_cli_golden.py +0 -0
  194. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_cli_install.py +0 -0
  195. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_cli_milestone.py +0 -0
  196. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_cli_packaging.py +0 -0
  197. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_cli_source.py +0 -0
  198. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_cli_ticket_commands.py +0 -0
  199. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_command_receipt_contract.py +0 -0
  200. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_comment_identity.py +0 -0
  201. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_comment_readers_contract.py +0 -0
  202. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_comment_rest_id.py +0 -0
  203. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_comment_trust.py +0 -0
  204. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_concurrency_e2e.py +0 -0
  205. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_constitution.py +0 -0
  206. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_coverage_gate.py +0 -0
  207. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_deliver_pr_fakes.py +0 -0
  208. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_delivery_branch_delete.py +0 -0
  209. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_delivery_labels.py +0 -0
  210. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_delivery_scene.py +0 -0
  211. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docker_docs.py +0 -0
  212. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docker_entrypoint.py +0 -0
  213. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docker_image_workflow.py +0 -0
  214. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docs_i18n.py +0 -0
  215. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docs_issue_shapes.py +0 -0
  216. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docs_labels.py +0 -0
  217. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docs_mermaid.py +0 -0
  218. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docs_releases.py +0 -0
  219. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docs_safety_matrix.py +0 -0
  220. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docs_single_source.py +0 -0
  221. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docs_site.py +0 -0
  222. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_draft.py +0 -0
  223. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_draft_attachments.py +0 -0
  224. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_draft_repo_view.py +0 -0
  225. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_draft_validate.py +0 -0
  226. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_engine_source.py +0 -0
  227. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_epic_reconciliation.py +0 -0
  228. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_failure.py +0 -0
  229. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_failure_report.py +0 -0
  230. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_fix_needed_loop.py +0 -0
  231. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_gh_read_retry.py +0 -0
  232. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_gh_response.py +0 -0
  233. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_git_base_smoke.py +0 -0
  234. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_git_merge_smoke.py +0 -0
  235. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_git_network_retry.py +0 -0
  236. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_git_transport.py +0 -0
  237. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_github.py +0 -0
  238. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_github_fakes.py +0 -0
  239. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_gitops.py +0 -0
  240. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_gitops_fakes.py +0 -0
  241. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_human_review.py +0 -0
  242. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_import_graph.py +0 -0
  243. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_install_sh.py +0 -0
  244. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_issue_1367.py +0 -0
  245. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_issue_461.py +0 -0
  246. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_issue_template_config.py +0 -0
  247. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_journal.py +0 -0
  248. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_journal_events.py +0 -0
  249. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_labels.py +0 -0
  250. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_launchd_deploy.py +0 -0
  251. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_license.py +0 -0
  252. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_merge_exec_extraction.py +0 -0
  253. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_message_language.py +0 -0
  254. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_milestone_command.py +0 -0
  255. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_notify.py +0 -0
  256. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_ops_e2e.py +0 -0
  257. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_orbi.py +0 -0
  258. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_orbi_dashboard.py +0 -0
  259. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_orbi_exporter.py +0 -0
  260. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_patch_ratchet.py +0 -0
  261. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pi_activity.py +0 -0
  262. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pi_child_reap.py +0 -0
  263. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pi_command.py +0 -0
  264. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pi_exec.py +0 -0
  265. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pi_extensions.py +0 -0
  266. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pi_provider_templates.py +0 -0
  267. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pi_recovery.py +0 -0
  268. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pi_session.py +0 -0
  269. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pilot_setup.py +0 -0
  270. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pilot_slots.py +0 -0
  271. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pr_issue_link_workflow.py +0 -0
  272. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pr_verification.py +0 -0
  273. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_prerequisite_check.py +0 -0
  274. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_progress.py +0 -0
  275. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_progress_wiring.py +0 -0
  276. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_prompt_contract.py +0 -0
  277. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_public_contracts.py +0 -0
  278. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_public_helpers.py +0 -0
  279. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_publish_workflow.py +0 -0
  280. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_question.py +0 -0
  281. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_question_resume.py +0 -0
  282. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_release_docs_workflow.py +0 -0
  283. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_release_extraction.py +0 -0
  284. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_release_ticket_templates.py +0 -0
  285. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_repo_config.py +0 -0
  286. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_resume_continue_e2e.py +0 -0
  287. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_resume_e2e.py +0 -0
  288. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_resume_other_executor.py +0 -0
  289. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_resume_pr.py +0 -0
  290. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_review_merge.py +0 -0
  291. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_review_verdict.py +0 -0
  292. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_review_waiting.py +0 -0
  293. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_run_artifacts.py +0 -0
  294. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_run_fields.py +0 -0
  295. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_run_id_e2e.py +0 -0
  296. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_run_id_fixture.py +0 -0
  297. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_runner_config.py +0 -0
  298. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_runner_health.py +0 -0
  299. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_runner_source_freshness.py +0 -0
  300. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_scene.py +0 -0
  301. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_scheduler.py +0 -0
  302. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_seam.py +0 -0
  303. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_setup_output_golden.py +0 -0
  304. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_size_ratchet.py +0 -0
  305. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_split_command.py +0 -0
  306. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_src_layout.py +0 -0
  307. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_status_observe.py +0 -0
  308. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_steering_review.py +0 -0
  309. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_suggest_repo_view.py +0 -0
  310. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_suite_hygiene.py +0 -0
  311. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_systemd_deploy.py +0 -0
  312. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_systemd_timer.py +0 -0
  313. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_tick_reads.py +0 -0
  314. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_ticket_command.py +0 -0
  315. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_ticket_command_registration.py +0 -0
  316. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_user_acceptance_contract.py +0 -0
  317. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_user_summary.py +0 -0
  318. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_versioned_comment_block.py +0 -0
  319. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_waiting_checks.py +0 -0
  320. {orbi_cli-0.7.60 → orbi_cli-0.7.62}/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.60
3
+ Version: 0.7.62
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.60"
47
+ version = "0.7.62"
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.60"
21
+ __version__ = "0.7.62"
@@ -72,6 +72,10 @@ class Unreadable(RuntimeError):
72
72
  # worktree's excluded run dir.
73
73
  IMAGES_DIRNAME = "attachments"
74
74
  DOWNLOAD_TIMEOUT_SECONDS = 60
75
+ # orbi.build and beta.orbi.build answer urllib's default `Python-urllib/3.x`
76
+ # User-Agent with HTTP 403 and Orbi's own value with 200 (measured 2026-11-23),
77
+ # so every download names this project instead of urllib (Issue #2377).
78
+ USER_AGENT = "orbi"
75
79
  NATIVE_PREFIX = "https://github.com/user-attachments/assets/"
76
80
  _MARKER_LINE_RE = re.compile(
77
81
  r"<!-- " + re.escape(draft_marker.DRAFT_MARKER) + r":"
@@ -205,8 +209,11 @@ def _comments(number: object, *, repo: str) -> list[dict]:
205
209
  def _image_bytes(url: str, *, repo: str) -> bytes:
206
210
  """One image's bytes; a native one through its rendered address."""
207
211
  address = _signed(url, repo=repo) if url.startswith(NATIVE_PREFIX) else url
212
+ request = urllib.request.Request(
213
+ address, headers={"User-Agent": USER_AGENT},
214
+ )
208
215
  with urllib.request.urlopen(
209
- address, timeout=DOWNLOAD_TIMEOUT_SECONDS,
216
+ request, timeout=DOWNLOAD_TIMEOUT_SECONDS,
210
217
  ) as response:
211
218
  return response.read()
212
219
 
@@ -93,12 +93,13 @@ SUGGESTIONS_MAX = 3
93
93
  # word so the default (3) prompt stays byte-for-byte what it was before
94
94
  # the flag existed.
95
95
  COUNT_WORDS = {1: "one", 2: "two", 3: "three"}
96
- # The Suggestions document keys, in one place. `size` — the estimated
97
- # number of files the change edits — joins them only when the caller
98
- # passed `--size <n>` (Issue #2139): the small-task preference behind it
99
- # is a caller input, not an engine rule, so a call that did not ask for a
100
- # size gets neither the key in the answer shape nor in the document.
101
- SUGGESTION_KEYS = {"kind", "issue", "title", "why", "body"}
96
+ # The Suggestions document keys, in one place. `why` is the plain
97
+ # explanation the repository owner reads without opening the code and
98
+ # `code` is the repository evidence behind it (Issue #2381). `size` —
99
+ # the estimated number of files the change edits — joins them only when
100
+ # the caller passed `--size <n>` (Issue #2139): the preference behind it
101
+ # is the caller's, so a call that did not ask for a size gets neither.
102
+ SUGGESTION_KEYS = {"kind", "issue", "title", "why", "code", "body"}
102
103
  SUGGESTION_SIZE_KEYS = SUGGESTION_KEYS | {"size"}
103
104
  # The kept batch: `<run_dir>/suggestions.json`, the subset of the
104
105
  # Suggestions document the next run for the SAME repository must not
@@ -129,8 +130,8 @@ _FENCE_RE = re.compile(r"^```(?:json)?\s*\n(.*?)\n```$", re.DOTALL)
129
130
  _ASK_YES = frozenset({"", "y", "yes"})
130
131
  # The per-suggestion prompt is [y/N] and the contract is: nothing is
131
132
  # written before a y/Y, any other answer skips that suggestion. An
132
- # empty answer (Enter, the shown default) therefore skips and must
133
- # never reach GitHub.
133
+ # empty answer (Enter, the shown default) therefore skips, never reaches
134
+ # GitHub.
134
135
  _CONFIRM_YES = frozenset({"y", "yes"})
135
136
  # The `--locale` language sentence appended to BOTH prompts (Issue
136
137
  # #1620): the caller's page language, never a detection. `--locale` is
@@ -154,10 +155,9 @@ LOCALE_SENTENCES = {
154
155
  # repair pass, no retry.
155
156
  #
156
157
  # The headings rule names the fixed Chinese section headings (Issue
157
- # #1764): the suggest skill's output example shows the English ones, and
158
- # the model copied them into a Chinese body. Nothing parses the headings
159
- # by name, so only the zh prompt changes; en and no locale stay as they
160
- # were.
158
+ # #1764): the skill's output example shows the English ones, and the
159
+ # model copied them into a Chinese body. Nothing parses the headings by
160
+ # name, so only the zh prompt changes.
161
161
  SUGGESTION_LOCALE_RULES = {
162
162
  "zh": (
163
163
  'Inside JSON string values, quote words with 「」 and never with '
@@ -338,8 +338,7 @@ def _suggestion_locale_suffix(locale: str | None) -> str:
338
338
  """`_locale_suffix` plus the suggestions session's answer rules.
339
339
 
340
340
  The rules describe the JSON answer and the Issue body, so only the
341
- suggestions prompt gets them (Issue #1822); the summary prompt gets
342
- the language sentence alone.
341
+ suggestions prompt gets them (Issue #1822).
343
342
  """
344
343
  suffix = _locale_suffix(locale)
345
344
  rules = SUGGESTION_LOCALE_RULES.get(locale) if locale else None
@@ -355,12 +354,7 @@ def _size_field(size: int | None) -> str:
355
354
 
356
355
 
357
356
  def _size_paragraphs(size: int | None) -> str:
358
- """The `--size` paragraphs: the size estimate and the small-task rule.
359
-
360
- Absent without `--size` (Issue #2139): the prompt asks for what the
361
- call requested and nothing else, so a caller that wants no small task
362
- first — or no size at all — gets the plain value-ordered answer.
363
- """
357
+ """The `--size` paragraphs, absent without `--size` (Issue #2139)."""
364
358
  if size is None:
365
359
  return ""
366
360
  limit = f"{size} file" if size == 1 else f"{size} files"
@@ -371,10 +365,10 @@ def _size_paragraphs(size: int | None) -> str:
371
365
  f"its own files that edits at most {limit} (a TODO or FIXME in "
372
366
  "code, a test the CI never runs, or an open Issue touching at most "
373
367
  f"{limit}), this answer's first entry is exactly one such task, "
374
- "with a why that names the file and line. When there is none, add "
368
+ "with a code that names the file and line. When there is none, add "
375
369
  "none: never pad an answer to reach three. The small task still "
376
370
  "meets the skill's rules 2 and 5: it is more than a README edit, "
377
- "and its why names a concrete path.\n\n"
371
+ "and its code names a concrete path.\n\n"
378
372
  )
379
373
 
380
374
 
@@ -386,8 +380,7 @@ def _prompt(context_path: Path, repo_dir: Path, repo: str,
386
380
 
387
381
  The context file carries the Issue/PR bodies; the prompt names it so
388
382
  the session reads it with its `read` tool (a single argv entry is
389
- limited to about 128 KiB, and a Pi `@file` argument would inline the
390
- whole file into the first message).
383
+ limited to about 128 KiB, and a Pi `@file` argument would inline it).
391
384
  """
392
385
  return (
393
386
  f"Propose deliverable GitHub Issues for {repo}.\n\n"
@@ -402,20 +395,25 @@ def _prompt(context_path: Path, repo_dir: Path, repo: str,
402
395
  "4. Reply with ONE JSON object and nothing else:\n"
403
396
  '{"suggestions": [{"kind": "existing" or "new", '
404
397
  '"issue": <number> or null, "title": "...", "why": "...", '
405
- f'"body": <markdown Issue body> or null{_size_field(size)}}}]}}\n'
398
+ f'"code": "...", "body": <markdown Issue body> or null'
399
+ f"{_size_field(size)}}}]}}\n"
406
400
  f"At most {COUNT_WORDS[count]} "
407
401
  f"{'entry' if count == 1 else 'entries'}, ordered by value to "
408
402
  "the repository's users.\n\n"
403
+ "why and code are two separate texts. why explains in plain "
404
+ "language, with no file location, why the owner should do this "
405
+ "now and what their users face today. code carries the "
406
+ "evidence: path:line and a short plain-text excerpt, never a "
407
+ "code fence.\n\n"
409
408
  # Issue #2139: size and the small-task rule are the CALLER's
410
409
  # input (`--size <n>`); without the flag the prompt is the plain
411
410
  # value-ordered answer and carries neither.
412
411
  + _size_paragraphs(size)
413
- # Issue #2119: the answer is read by the repository owner, not by
414
- # Orbi, so a why quoting the session's own input (the observed
415
- # 2026-11-05 answer said "in context.json the open Issues and PRs
416
- # are both empty") must never reach them.
417
- + "The title, why and body are shown to the repository owner "
418
- "exactly as you write them: they must describe the repository "
412
+ # Issue #2119: the owner reads the answer, so a why quoting the
413
+ # session's own input (one observed answer said "in context.json
414
+ # the open Issues and PRs are both empty") must never reach them.
415
+ + "The title, why, code and body are shown to the repository "
416
+ "owner exactly as you write them: they must describe the repository "
419
417
  "and its Issues and PRs, never Orbi's own input files "
420
418
  "(context.json, the run directory), which the owner never "
421
419
  "sees.\n\n"
@@ -492,8 +490,8 @@ def _run_session(config: RunnerConfig, repo: str, run_id: str,
492
490
  """Run the ONE read-only suggest Pi session; return (stdout, log argv)."""
493
491
  session_dir = run_dir / ".pi-session"
494
492
  # The run directory is kept after the command exits (success and
495
- # failure); materialize the session dir so `session_dir` exists even
496
- # before Pi writes its first JSONL record.
493
+ # failure); materialize the session dir so `session_dir` exists before
494
+ # Pi writes its first JSONL record.
497
495
  session_dir.mkdir(parents=True, exist_ok=True)
498
496
  skill = Path(config.deploy_home) / SUGGEST_SKILL_REL
499
497
  command, log_command = build_pi_command(
@@ -544,13 +542,13 @@ def _run_understanding(config: RunnerConfig, repo: str, run_id: str,
544
542
 
545
543
  Best-effort bypass (Issue #79): a non-zero exit, a spawn failure,
546
544
  the 60-second timeout or a write error logs ONE
547
- `suggest_understanding_failed` line and writes nothing. The
548
- suggestions session and the Suggestions document are never affected.
545
+ `suggest_understanding_failed` line and writes nothing; the
546
+ suggestions session and its document are never affected.
549
547
  """
550
548
  try:
551
549
  # Its own cwd/session dir under the run directory: `stream_pi`
552
- # follows `<cwd>/.pi-session`, so the two concurrent sessions
553
- # must not share one (they would bind to each other's JSONL).
550
+ # follows `<cwd>/.pi-session`, so the two concurrent sessions must
551
+ # not share one (they would bind to each other's JSONL).
554
552
  session_cwd = run_dir / UNDERSTANDING_DIR
555
553
  session_dir = session_cwd / ".pi-session"
556
554
  session_dir.mkdir(parents=True, exist_ok=True)
@@ -660,16 +658,19 @@ def _validate_suggestions(entries: list, context: dict,
660
658
  or not SUGGESTION_KEYS <= set(entry) <= allowed_keys
661
659
  ):
662
660
  raise SuggestError(
663
- "each suggestion must hold kind, issue, title, why and "
664
- "body"
661
+ "each suggestion must hold kind, issue, title, why, code "
662
+ "and body"
665
663
  + (", and optionally size" if size is not None else "")
666
664
  )
667
- title = entry["title"]
668
- why = entry["why"]
665
+ title, why, code = entry["title"], entry["why"], entry["code"]
669
666
  if not isinstance(title, str) or not title.strip():
670
667
  raise SuggestError("suggestion title must be a non-empty string")
671
668
  if not isinstance(why, str) or not why.strip():
672
669
  raise SuggestError("suggestion why must be a non-empty string")
670
+ if not isinstance(code, str) or not code.strip():
671
+ raise SuggestError(
672
+ "suggestion code must be a non-empty string"
673
+ )
673
674
  entry_size = (
674
675
  _suggestion_size(entry, title) if size is not None else None
675
676
  )
@@ -707,7 +708,7 @@ def _validate_suggestions(entries: list, context: dict,
707
708
  )
708
709
  item = {
709
710
  "kind": "existing", "issue": number, "title": title,
710
- "why": why, "body": None,
711
+ "why": why, "code": code, "body": None,
711
712
  }
712
713
  elif entry["kind"] == "new":
713
714
  if entry["issue"] is not None:
@@ -721,7 +722,7 @@ def _validate_suggestions(entries: list, context: dict,
721
722
  )
722
723
  item = {
723
724
  "kind": "new", "issue": None, "title": title,
724
- "why": why, "body": body,
725
+ "why": why, "code": code, "body": body,
725
726
  }
726
727
  else:
727
728
  raise SuggestError(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orbi-cli
3
- Version: 0.7.60
3
+ Version: 0.7.62
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
@@ -9,6 +9,7 @@ from __future__ import annotations
9
9
  import functools
10
10
  import json
11
11
  import logging
12
+ import urllib.error
12
13
  from pathlib import Path
13
14
 
14
15
  import pytest
@@ -91,6 +92,46 @@ def test_an_attachments_section_image_is_downloaded_with_no_token(
91
92
  assert gh.markdown_calls == []
92
93
 
93
94
 
95
+ def test_an_attachments_section_image_is_requested_as_orbi(
96
+ gh, downloads, worktree,
97
+ ):
98
+ """Acceptance 1: orbi.build answers urllib's default UA with HTTP 403.
99
+
100
+ Measured 2026-11-23 on beta.orbi.build: the same attachment address
101
+ answers 200 to `User-Agent: orbi` and 403 to `Python-urllib/3.x`, so
102
+ the download names this project instead of urllib.
103
+ """
104
+ address = "https://beta.orbi.build/api/attachments/key"
105
+ body = drafted(BODY, section=f"## Attachments\n\n![shot.png]({address})")
106
+ issue_images.for_session(
107
+ {"number": 1, "body": body}, config=image_input_config(), repo=REPO,
108
+ worktree=worktree,
109
+ )
110
+ headers = downloads.requests[0].headers
111
+ assert headers.get("User-agent") == "orbi"
112
+ assert not any("Python-urllib" in value for value in headers.values())
113
+
114
+
115
+ def test_a_403_on_the_section_image_still_stops_the_delivery(
116
+ gh, downloads, worktree, caplog,
117
+ ):
118
+ """Acceptance 2: an address that still fails stops, exactly as today."""
119
+ address = "https://orbi.build/api/attachments/key"
120
+ downloads.failures[address] = urllib.error.HTTPError(
121
+ address, 403, "Forbidden", None, None,
122
+ )
123
+ body = drafted(BODY, section=f"## Attachments\n\n![shot.png]({address})")
124
+ with caplog.at_level(logging.WARNING), pytest.raises(
125
+ issue_images.Unreadable, match="shot.png",
126
+ ) as raised:
127
+ issue_images.for_session(
128
+ {"number": 1, "body": body}, config=image_input_config(),
129
+ repo=REPO, worktree=worktree,
130
+ )
131
+ assert raised.value.failure_record.reason_code == "attachment_unavailable"
132
+ assert "HTTPError" in caplog.text
133
+
134
+
94
135
  def test_a_native_image_in_the_body_is_read_through_the_markdown_render(
95
136
  gh, downloads, worktree,
96
137
  ):
@@ -46,15 +46,18 @@ SUGGEST_DIR = Path(".orbi") / "suggest"
46
46
 
47
47
  EXISTING = {
48
48
  "kind": "existing", "issue": 5, "title": "Fix the existing thing",
49
- "why": "src/orbi/claim.py does X", "body": None,
49
+ "why": "A labelled Issue never reaches the queue",
50
+ "code": "src/orbi/claim.py:88", "body": None,
50
51
  }
51
52
  NEW_TWO = {
52
53
  "kind": "new", "issue": None, "title": "Second thing",
53
- "why": "README gap", "body": "## Request\nSecond.",
54
+ "why": "The README workflow cannot be followed", "code": "README.md:36",
55
+ "body": "## Request\nSecond.",
54
56
  }
55
57
  NEW_THREE = {
56
58
  "kind": "new", "issue": None, "title": "Third thing",
57
- "why": "tests gap", "body": "## Request\nThird.",
59
+ "why": "The tests never run on CI", "code": "tests/start.test.js:21",
60
+ "body": "## Request\nThird.",
58
61
  }
59
62
 
60
63
 
@@ -292,10 +295,14 @@ def test_orbi_suggest_json_prints_the_document(
292
295
  "Fix the existing thing", "Second thing", "Third thing",
293
296
  ]
294
297
  # Issue #2139: without `--size` the document carries no size.
298
+ # Issue #2381: every entry carries the user `why` and the code `code`.
295
299
  assert all(
296
- set(item) == {"kind", "issue", "title", "why", "body"}
300
+ set(item) == {"kind", "issue", "title", "why", "code", "body"}
297
301
  for item in document["suggestions"]
298
302
  )
303
+ assert all(
304
+ item["why"] and item["code"] for item in document["suggestions"]
305
+ )
299
306
 
300
307
  run_dirs = _run_dirs(world)
301
308
  assert len(run_dirs) == 1
@@ -344,6 +351,98 @@ def test_orbi_suggest_json_prints_the_document(
344
351
  assert after == before
345
352
 
346
353
 
354
+ # --- why and code are two independent texts (Issue #2381) --------------------
355
+ #
356
+ # Until #2381 `why` carried both the user-facing reason and the code
357
+ # evidence (`scripts/start.js hardcodes port 4178 (lines 3 and 9), and
358
+ # test/start.test.js therefore …`), so a caller that shows the two parts
359
+ # apart had to guess where the code part starts. Now `why` is the plain
360
+ # explanation and `code` is the repository location — two required,
361
+ # non-empty fields, and the prompt and the skill say which is which.
362
+
363
+ WHY_TEXT = (
364
+ "Anyone who labels an Issue before Orbi claims it never sees that "
365
+ "Issue delivered again."
366
+ )
367
+ CODE_TEXT = "src/orbi/claim.py:88 (skips an Issue carrying an ai- label)"
368
+
369
+
370
+ def test_suggest_json_documents_why_and_code_as_two_texts(
371
+ tmp_path, monkeypatch, capsys,
372
+ ):
373
+ """Acceptance: one `orbi suggest --json` prints each suggestion with
374
+ the plain-language `why` and a separate `code` carrying the
375
+ repository location, unchanged and unmerged."""
376
+ world = _world(tmp_path, monkeypatch)
377
+ world.gh.add_issue(5, title="Existing", labels=())
378
+ stub = PiStub(_answer_json(
379
+ {**EXISTING, "why": WHY_TEXT, "code": CODE_TEXT},
380
+ ))
381
+ suggest_fakes.stub_stream_pi(monkeypatch, stub)
382
+ assert cli.main([
383
+ "suggest", "--json", "--config", str(world.config_path),
384
+ ]) == 0
385
+ document = json.loads(capsys.readouterr().out)
386
+ [item] = document["suggestions"]
387
+ assert item["why"] == WHY_TEXT
388
+ assert item["code"] == CODE_TEXT
389
+ # The user explanation carries no code location: that is `code`.
390
+ assert "src/orbi/claim.py" not in item["why"]
391
+ # The prompt the session read asked for both fields, apart.
392
+ assert '"code": "..."' in stub.prompt
393
+ assert "why and code are two separate texts" in " ".join(
394
+ stub.prompt.split()
395
+ )
396
+
397
+
398
+ @pytest.mark.parametrize("code", ["", " ", None, 3])
399
+ def test_validate_suggestions_requires_a_non_empty_code(code):
400
+ """Acceptance: a blank or non-string `code` fails fast, like a blank
401
+ `why` does."""
402
+ with pytest.raises(suggest.SuggestError) as excinfo:
403
+ _validate_one({**NEW_TWO, "code": code})
404
+ assert "suggestion code must be a non-empty string" in str(excinfo.value)
405
+
406
+
407
+ def test_validate_suggestions_names_code_in_the_required_keys():
408
+ """Acceptance: an entry with no `code` key is rejected by the key set
409
+ and the message names all six fields."""
410
+ entry = {key: value for key, value in NEW_TWO.items() if key != "code"}
411
+ with pytest.raises(suggest.SuggestError) as excinfo:
412
+ _validate_one(entry)
413
+ assert "kind, issue, title, why, code and body" in str(excinfo.value)
414
+
415
+
416
+ @pytest.mark.parametrize("locale", [None, "zh", "en"])
417
+ def test_prompt_states_the_why_code_split(locale):
418
+ """Acceptance: the answer template carries `code` and the prompt says
419
+ what each of the two texts is, in every locale."""
420
+ prompt = " ".join(suggest._prompt(
421
+ LOCALE_CONTEXT_PATH, LOCALE_REPO_DIR, LOCALE_REPO, locale=locale,
422
+ ).split())
423
+ assert '"code": "..."' in prompt
424
+ assert "why and code are two separate texts" in prompt
425
+ # Issue #2381: the plain-language why carries no code location; the
426
+ # location, and only it, is what `code` holds.
427
+ assert "with no file location" in prompt
428
+ assert "path:line" in prompt
429
+ assert "never a code fence" in prompt
430
+
431
+
432
+ def test_the_skill_keeps_why_and_code_apart():
433
+ """Acceptance: the skill's rule 5 and its output format split the two
434
+ texts, and the small-task rule of rule 7 lands in `code`."""
435
+ skill = (
436
+ Path(__file__).resolve().parent.parent / SKILL_REL
437
+ ).read_text(encoding="utf-8")
438
+ flat = " ".join(skill.split())
439
+ assert "`why` is the plain-language explanation" in flat
440
+ assert "`code` carries the evidence" in flat
441
+ assert "name the file and line in `code`" in flat
442
+ example = skill.split('"suggestions"', 1)[1].split("```", 1)[0]
443
+ assert '"why"' in example and '"code"' in example
444
+
445
+
347
446
  # --- the understanding session (Issue #1600) ---------------------------------
348
447
 
349
448
 
@@ -482,7 +581,7 @@ BAD_RESULTS = {
482
581
  "too_many": json.dumps({"suggestions": [
483
582
  EXISTING, NEW_TWO, NEW_THREE,
484
583
  {"kind": "new", "issue": None, "title": "Fourth",
485
- "why": "more", "body": "## Request\nFourth."},
584
+ "why": "more", "code": "src/orbi/x.py:1", "body": "## Request\nFourth."},
486
585
  ]}),
487
586
  "extra_key": json.dumps({
488
587
  "suggestions": [EXISTING], "extra": True,
@@ -495,6 +594,12 @@ BAD_RESULTS = {
495
594
  "entry_missing_keys": json.dumps({"suggestions": [{"kind": "new"}]}),
496
595
  "empty_title": json.dumps({"suggestions": [{**NEW_TWO, "title": " "}]}),
497
596
  "empty_why": json.dumps({"suggestions": [{**NEW_TWO, "why": ""}]}),
597
+ # Issue #2381: `code` is required and must not be blank.
598
+ "empty_code": json.dumps({"suggestions": [{**NEW_TWO, "code": " "}]}),
599
+ "missing_code": json.dumps({
600
+ "suggestions": [{key: value for key, value in NEW_TWO.items()
601
+ if key != "code"}],
602
+ }),
498
603
  "existing_issue_not_a_number": json.dumps(
499
604
  {"suggestions": [{**EXISTING, "issue": "5"}]},
500
605
  ),
@@ -612,7 +717,8 @@ def test_validate_suggestions_rejects_a_why_naming_orbi_input(why):
612
717
  with pytest.raises(suggest.SuggestError) as excinfo:
613
718
  _validate_one({
614
719
  "kind": "new", "issue": None, "title": "Do X",
615
- "why": why, "body": "## Request\nX.",
720
+ "why": why, "code": "src/orbi/claim.py:88",
721
+ "body": "## Request\nX.",
616
722
  })
617
723
  assert str(excinfo.value) == (
618
724
  "suggestion why must describe the repository and its Issues and "
@@ -633,7 +739,8 @@ def test_validate_suggestions_accepts_a_why_naming_the_repository(why):
633
739
  Issues stay valid reasons."""
634
740
  kept = _validate_one({
635
741
  "kind": "new", "issue": None, "title": "Do X",
636
- "why": why, "body": "## Request\nX.",
742
+ "why": why, "code": "src/orbi/claim.py:88",
743
+ "body": "## Request\nX.",
637
744
  })
638
745
  assert kept[0]["why"] == why
639
746
 
@@ -735,12 +842,19 @@ def test_real_session_answers_carry_their_size(name, sizes):
735
842
  )
736
843
  assert [item["size"] for item in kept] == sizes
737
844
  assert kept[0]["size"] <= 2
845
+ # Issue #2381: every entry carries the user `why` and the code
846
+ # evidence as two separate, non-empty texts.
847
+ for item in kept:
848
+ assert item["why"].strip()
849
+ assert item["code"].strip()
850
+ assert item["code"] != item["why"]
738
851
 
739
852
 
740
853
  def _sized(**overrides):
741
854
  entry = {
742
855
  "kind": "new", "issue": None, "title": "Do X",
743
- "why": "src/orbi/claim.py does X", "body": "## Request\nX.",
856
+ "why": "The queue drops labelled Issues",
857
+ "code": "src/orbi/claim.py:88", "body": "## Request\nX.",
744
858
  }
745
859
  entry.update(overrides)
746
860
  return entry
@@ -900,7 +1014,7 @@ def test_suggest_keeps_the_validated_batch_in_the_run_dir(
900
1014
  document = json.loads(capsys.readouterr().out)
901
1015
  assert [item["size"] for item in document["suggestions"]] == [1, 4]
902
1016
  assert all(
903
- set(item) == {"kind", "issue", "title", "why", "body", "size"}
1017
+ set(item) == {"kind", "issue", "title", "why", "code", "body", "size"}
904
1018
  for item in document["suggestions"]
905
1019
  )
906
1020
  assert "edits at most 1 file" in stub.prompt
@@ -1534,17 +1648,23 @@ PROMPT_WITHOUT_LOCALE = (
1534
1648
  "4. Reply with ONE JSON object and nothing else:\n"
1535
1649
  '{"suggestions": [{"kind": "existing" or "new", '
1536
1650
  '"issue": <number> or null, "title": "...", "why": "...", '
1537
- '"body": <markdown Issue body> or null}]}\n'
1651
+ '"code": "...", "body": <markdown Issue body> or null}]}\n'
1538
1652
  "At most three entries, ordered by value to the repository's "
1539
1653
  "users.\n\n"
1654
+ # Issue #2381: the two texts a suggestion carries.
1655
+ "why and code are two separate texts. why explains in plain "
1656
+ "language, with no file location, why the owner should do this "
1657
+ "now and what their users face today. code carries the "
1658
+ "evidence: path:line and a short plain-text excerpt, never a "
1659
+ "code fence.\n\n"
1540
1660
  # Issue #2139: size and the small-task rule are the CALLER's input
1541
1661
  # (`--size`), so the default prompt carries neither — this frozen
1542
1662
  # copy pins the pre- and post-#2131 default back to one text.
1543
1663
  # Issue #2119: the answer is shown to the repository owner as
1544
1664
  # written, so the prompt says it and names Orbi's input as off
1545
1665
  # limits; this frozen copy pins that sentence too.
1546
- "The title, why and body are shown to the repository owner "
1547
- "exactly as you write them: they must describe the repository "
1666
+ "The title, why, code and body are shown to the repository "
1667
+ "owner exactly as you write them: they must describe the repository "
1548
1668
  "and its Issues and PRs, never Orbi's own input files "
1549
1669
  "(context.json, the run directory), which the owner never "
1550
1670
  "sees.\n\n"
@@ -1893,6 +2013,7 @@ def test_suggest_count_one_keeps_the_first_before_validating(
1893
2013
  _answer_json(EXISTING, NEW_TWO, {"kind": "existing", "issue": 6,
1894
2014
  "title": "Queued",
1895
2015
  "why": "already ai-ready",
2016
+ "code": "AGENTS.md:1",
1896
2017
  "body": None}),
1897
2018
  )
1898
2019
  monkeypatch.setattr(seam, "stream_pi", stub)
@@ -1920,7 +2041,8 @@ def test_suggest_count_one_still_fails_when_the_first_entry_is_invalid(
1920
2041
  world.gh.add_issue(6, title="Already queued", labels=("ai-ready",))
1921
2042
  stub = PiStub(
1922
2043
  _answer_json({"kind": "existing", "issue": 6, "title": "Queued",
1923
- "why": "already ai-ready", "body": None},
2044
+ "why": "already ai-ready", "code": "AGENTS.md:1",
2045
+ "body": None},
1924
2046
  EXISTING),
1925
2047
  )
1926
2048
  monkeypatch.setattr(seam, "stream_pi", stub)
@@ -1942,7 +2064,8 @@ def test_suggest_default_count_still_fails_on_an_invalid_third_entry(
1942
2064
  stub = PiStub(
1943
2065
  _answer_json(EXISTING, NEW_TWO,
1944
2066
  {"kind": "existing", "issue": 6, "title": "Queued",
1945
- "why": "already ai-ready", "body": None}),
2067
+ "why": "already ai-ready", "code": "AGENTS.md:1",
2068
+ "body": None}),
1946
2069
  )
1947
2070
  monkeypatch.setattr(seam, "stream_pi", stub)
1948
2071
  assert cli.main([
@@ -1964,8 +2087,8 @@ def test_prompt_says_the_answer_is_shown_to_the_repository_owner():
1964
2087
  )
1965
2088
 
1966
2089
  shown = (
1967
- "title, why and body are shown to the repository owner exactly as "
1968
- "you write them"
2090
+ "title, why, code and body are shown to the repository owner "
2091
+ "exactly as you write them"
1969
2092
  )
1970
2093
  scope = (
1971
2094
  "they must describe the repository and its Issues and PRs, never "
@@ -2073,7 +2196,8 @@ def test_count_one_then_count_two_hands_the_first_batch(
2073
2196
  def _new_suggestion(title: str) -> dict:
2074
2197
  return {
2075
2198
  "kind": "new", "issue": None, "title": title,
2076
- "why": f"{title} matters", "body": f"## Request\n{title}.",
2199
+ "why": f"{title} matters", "code": "src/orbi/x.py:1",
2200
+ "body": f"## Request\n{title}.",
2077
2201
  }
2078
2202
 
2079
2203
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes