orbi-cli 0.7.54__tar.gz → 0.7.55__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.54 → orbi_cli-0.7.55}/PKG-INFO +1 -1
  2. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/pyproject.toml +4 -2
  3. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/__init__.py +1 -1
  4. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/amend_command.py +6 -6
  5. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/answer.py +24 -24
  6. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/base_ci_fix.py +14 -11
  7. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/blocked_comment.py +2 -1
  8. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/blocked_scan.py +2 -2
  9. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/check_permission.py +6 -7
  10. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/claim.py +49 -44
  11. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/clarify.py +7 -6
  12. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/cli_commands.py +6 -6
  13. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/cli_status.py +9 -10
  14. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/config.py +2 -2
  15. orbi_cli-0.7.55/src/orbi/delivery_labels.py +282 -0
  16. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/delivery_scene.py +16 -26
  17. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/draft.py +8 -13
  18. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/example_config.toml +6 -5
  19. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/failure_report.py +18 -16
  20. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/github.py +6 -10
  21. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/human_review.py +3 -3
  22. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/implementation_delivery.py +6 -10
  23. orbi_cli-0.7.55/src/orbi/labels.py +265 -0
  24. orbi_cli-0.7.55/src/orbi/labels.toml +113 -0
  25. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/merge_blocked.py +3 -3
  26. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/merge_exec.py +2 -2
  27. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/merge_handoff.py +5 -5
  28. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/milestone.py +20 -21
  29. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/milestone_command.py +3 -3
  30. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/notify.py +9 -9
  31. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/notify_text.py +19 -20
  32. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/ops_delivery.py +2 -2
  33. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/pilot_setup.py +5 -5
  34. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/question.py +4 -2
  35. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/recoverable_failure.py +2 -2
  36. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/release.py +3 -3
  37. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/release_closeout.py +5 -4
  38. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/release_notes.py +2 -2
  39. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/release_run.py +5 -10
  40. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/repo_config.py +6 -7
  41. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/requeue.py +4 -2
  42. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/restart_scan.py +6 -8
  43. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/resume_scan.py +13 -12
  44. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/resume_verification.py +9 -14
  45. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/review_merge.py +14 -25
  46. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/review_rounds.py +4 -4
  47. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/runner.py +35 -58
  48. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/runner_health.py +20 -20
  49. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/setup_config.py +15 -111
  50. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/split_apply.py +5 -10
  51. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/split_command.py +6 -4
  52. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/status_observe.py +10 -13
  53. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/stop_comment.py +5 -3
  54. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/stopped_scans.py +12 -12
  55. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/suggest.py +4 -6
  56. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi_cli.egg-info/PKG-INFO +1 -1
  57. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi_cli.egg-info/SOURCES.txt +3 -0
  58. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_bootstrap_delivery.py +6 -5
  59. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_bootstrap_runner_main.py +3 -2
  60. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_bootstrap_runner_milestone.py +2 -1
  61. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_bootstrap_runner_tickets.py +5 -4
  62. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_cli_packaging.py +49 -44
  63. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_delivery_labels.py +5 -3
  64. orbi_cli-0.7.55/tests/test_labels.py +484 -0
  65. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_pilot_setup.py +65 -47
  66. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_run_id_e2e.py +2 -1
  67. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_setup_output_golden.py +8 -6
  68. orbi_cli-0.7.54/src/orbi/delivery_labels.py +0 -267
  69. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/LICENSE +0 -0
  70. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/README.md +0 -0
  71. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/docs/licenses/sustainable-use-license.md +0 -0
  72. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/setup.cfg +0 -0
  73. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/acceptance_section.py +0 -0
  74. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/base_ci_red.py +0 -0
  75. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/blocked_record.py +0 -0
  76. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/body_steering.py +0 -0
  77. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/branch_reclaim.py +0 -0
  78. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/checks.py +0 -0
  79. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/claim_race.py +0 -0
  80. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/clarify_proposal.py +0 -0
  81. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/clarify_stop.py +0 -0
  82. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/cli.py +0 -0
  83. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/cli_doctor.py +0 -0
  84. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/cli_parser.py +0 -0
  85. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/cli_source.py +0 -0
  86. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/cli_ticket_command.py +0 -0
  87. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/command_line.py +0 -0
  88. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/comment_kind.py +0 -0
  89. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/comment_rest_id.py +0 -0
  90. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/comment_trust.py +0 -0
  91. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/config_hint.py +0 -0
  92. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/delivery_comment.py +0 -0
  93. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/delivery_push.py +0 -0
  94. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/draft_cli.py +0 -0
  95. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/draft_document.py +0 -0
  96. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/draft_marker.py +0 -0
  97. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/draft_validate.py +0 -0
  98. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/engine_source.py +0 -0
  99. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/extensions/clarify_verdict.ts +0 -0
  100. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/extensions/draft_tools.ts +0 -0
  101. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/failure.py +0 -0
  102. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/failure_evidence.py +0 -0
  103. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/gh_response.py +0 -0
  104. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/git_identity.py +0 -0
  105. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/git_transport.py +0 -0
  106. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/github_feedback.py +0 -0
  107. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/gitops.py +0 -0
  108. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/journal.py +0 -0
  109. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/language.py +0 -0
  110. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/language_failure.py +0 -0
  111. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/language_terms.py +0 -0
  112. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/language_terms_criteria.py +0 -0
  113. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/language_terms_fix.py +0 -0
  114. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/launchd_deploy.py +0 -0
  115. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/merge_gate.py +0 -0
  116. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/milestone_errors.py +0 -0
  117. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/pi_activity.py +0 -0
  118. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/pi_command.py +0 -0
  119. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/pi_exec.py +0 -0
  120. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/pi_idle.py +0 -0
  121. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/pi_process.py +0 -0
  122. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/pi_recovery.py +0 -0
  123. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/pi_session.py +0 -0
  124. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/pi_stream_log.py +0 -0
  125. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/pilot_slots.py +0 -0
  126. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/plan_milestone.py +0 -0
  127. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/pr_head_sync.py +0 -0
  128. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/pr_verification.py +0 -0
  129. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/progress.py +0 -0
  130. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/progress_display.py +0 -0
  131. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/progress_outcome.py +0 -0
  132. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/progress_summary.py +0 -0
  133. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/provider_balance.py +0 -0
  134. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/release_comments.py +0 -0
  135. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/release_declaration.py +0 -0
  136. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/release_git.py +0 -0
  137. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/review_ci_status.py +0 -0
  138. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/review_verdict.py +0 -0
  139. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/review_wait.py +0 -0
  140. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/run_fields.py +0 -0
  141. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/run_state.py +0 -0
  142. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/runner_marker.py +0 -0
  143. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/runner_source.py +0 -0
  144. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/scene.py +0 -0
  145. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/scheduler.py +0 -0
  146. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/scheduler_units.py +0 -0
  147. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/session_command.py +0 -0
  148. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/setup_checks.py +0 -0
  149. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/source_pool.py +0 -0
  150. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/steering.py +0 -0
  151. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/systemd_deploy.py +0 -0
  152. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/terminal_stops.py +0 -0
  153. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/tick_reads.py +0 -0
  154. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/ticket_command.py +0 -0
  155. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/ticket_command_registry.py +0 -0
  156. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/ticket_criteria.py +0 -0
  157. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/user_summary.py +0 -0
  158. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/waiting_checks.py +0 -0
  159. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi/worktree_retention.py +0 -0
  160. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi_cli.egg-info/dependency_links.txt +0 -0
  161. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi_cli.egg-info/entry_points.txt +0 -0
  162. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/src/orbi_cli.egg-info/top_level.txt +0 -0
  163. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_agents_md.py +0 -0
  164. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_amend_command.py +0 -0
  165. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_answer.py +0 -0
  166. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_apply_label_patch.py +0 -0
  167. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_base_branch_failure.py +0 -0
  168. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_base_ci_red.py +0 -0
  169. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_blocked_comment.py +0 -0
  170. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_body_steering.py +0 -0
  171. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_bootstrap_adapters.py +0 -0
  172. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_bootstrap_pi.py +0 -0
  173. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_bootstrap_preflight.py +0 -0
  174. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_bootstrap_release.py +0 -0
  175. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_bootstrap_runner_claim_resume.py +0 -0
  176. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_bootstrap_runner_failure_report.py +0 -0
  177. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_bootstrap_runner_outcome.py +0 -0
  178. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_bootstrap_runner_prompt.py +0 -0
  179. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_bootstrap_runner_reconcile.py +0 -0
  180. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_bootstrap_runner_session.py +0 -0
  181. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_branch_reclaim.py +0 -0
  182. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_check_permission.py +0 -0
  183. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_ci_macos_workflow.py +0 -0
  184. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_ci_workflow.py +0 -0
  185. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_claim_race.py +0 -0
  186. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_clarify.py +0 -0
  187. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_claude_plugin.py +0 -0
  188. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_cli_golden.py +0 -0
  189. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_cli_install.py +0 -0
  190. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_cli_milestone.py +0 -0
  191. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_cli_source.py +0 -0
  192. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_cli_ticket_commands.py +0 -0
  193. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_command_receipt_contract.py +0 -0
  194. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_comment_identity.py +0 -0
  195. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_comment_readers_contract.py +0 -0
  196. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_comment_rest_id.py +0 -0
  197. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_comment_trust.py +0 -0
  198. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_concurrency_e2e.py +0 -0
  199. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_constitution.py +0 -0
  200. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_coverage_gate.py +0 -0
  201. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_deliver_pr_fakes.py +0 -0
  202. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_delivery_branch_delete.py +0 -0
  203. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_delivery_scene.py +0 -0
  204. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_docker_docs.py +0 -0
  205. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_docker_entrypoint.py +0 -0
  206. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_docker_image_workflow.py +0 -0
  207. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_docs_i18n.py +0 -0
  208. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_docs_issue_shapes.py +0 -0
  209. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_docs_labels.py +0 -0
  210. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_docs_mermaid.py +0 -0
  211. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_docs_releases.py +0 -0
  212. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_docs_safety_matrix.py +0 -0
  213. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_docs_single_source.py +0 -0
  214. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_docs_site.py +0 -0
  215. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_draft.py +0 -0
  216. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_draft_repo_view.py +0 -0
  217. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_draft_validate.py +0 -0
  218. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_engine_source.py +0 -0
  219. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_failure.py +0 -0
  220. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_failure_report.py +0 -0
  221. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_fix_needed_loop.py +0 -0
  222. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_gh_read_retry.py +0 -0
  223. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_gh_response.py +0 -0
  224. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_git_base_smoke.py +0 -0
  225. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_git_merge_smoke.py +0 -0
  226. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_git_network_retry.py +0 -0
  227. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_git_transport.py +0 -0
  228. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_github.py +0 -0
  229. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_github_fakes.py +0 -0
  230. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_gitops.py +0 -0
  231. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_gitops_fakes.py +0 -0
  232. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_human_review.py +0 -0
  233. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_import_graph.py +0 -0
  234. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_install_sh.py +0 -0
  235. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_issue_1367.py +0 -0
  236. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_issue_461.py +0 -0
  237. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_issue_template_config.py +0 -0
  238. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_journal.py +0 -0
  239. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_journal_events.py +0 -0
  240. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_launchd_deploy.py +0 -0
  241. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_license.py +0 -0
  242. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_merge_exec_extraction.py +0 -0
  243. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_message_language.py +0 -0
  244. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_milestone_command.py +0 -0
  245. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_notify.py +0 -0
  246. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_ops_e2e.py +0 -0
  247. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_orbi.py +0 -0
  248. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_orbi_dashboard.py +0 -0
  249. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_orbi_exporter.py +0 -0
  250. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_patch_ratchet.py +0 -0
  251. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_pi_activity.py +0 -0
  252. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_pi_child_reap.py +0 -0
  253. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_pi_command.py +0 -0
  254. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_pi_exec.py +0 -0
  255. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_pi_extensions.py +0 -0
  256. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_pi_provider_templates.py +0 -0
  257. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_pi_recovery.py +0 -0
  258. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_pi_session.py +0 -0
  259. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_pilot_slots.py +0 -0
  260. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_pr_issue_link_workflow.py +0 -0
  261. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_pr_verification.py +0 -0
  262. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_prerequisite_check.py +0 -0
  263. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_progress.py +0 -0
  264. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_progress_wiring.py +0 -0
  265. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_prompt_contract.py +0 -0
  266. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_public_contracts.py +0 -0
  267. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_public_helpers.py +0 -0
  268. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_publish_workflow.py +0 -0
  269. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_question.py +0 -0
  270. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_question_resume.py +0 -0
  271. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_release_docs_workflow.py +0 -0
  272. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_release_extraction.py +0 -0
  273. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_release_ticket_templates.py +0 -0
  274. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_repo_config.py +0 -0
  275. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_resume_continue_e2e.py +0 -0
  276. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_resume_e2e.py +0 -0
  277. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_resume_other_executor.py +0 -0
  278. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_resume_pr.py +0 -0
  279. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_review_merge.py +0 -0
  280. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_review_verdict.py +0 -0
  281. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_review_waiting.py +0 -0
  282. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_run_artifacts.py +0 -0
  283. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_run_fields.py +0 -0
  284. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_run_id_fixture.py +0 -0
  285. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_runner_config.py +0 -0
  286. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_runner_health.py +0 -0
  287. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_runner_source_freshness.py +0 -0
  288. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_scene.py +0 -0
  289. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_scheduler.py +0 -0
  290. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_seam.py +0 -0
  291. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_size_ratchet.py +0 -0
  292. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_split_command.py +0 -0
  293. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_src_layout.py +0 -0
  294. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_status_observe.py +0 -0
  295. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_steering_review.py +0 -0
  296. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_suggest.py +0 -0
  297. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_suggest_repo_view.py +0 -0
  298. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_suite_hygiene.py +0 -0
  299. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_systemd_deploy.py +0 -0
  300. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_systemd_timer.py +0 -0
  301. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_tick_reads.py +0 -0
  302. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_ticket_command.py +0 -0
  303. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_ticket_command_registration.py +0 -0
  304. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_user_acceptance_contract.py +0 -0
  305. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_user_summary.py +0 -0
  306. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_versioned_comment_block.py +0 -0
  307. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/tests/test_waiting_checks.py +0 -0
  308. {orbi_cli-0.7.54 → orbi_cli-0.7.55}/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.54
3
+ Version: 0.7.55
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.54"
47
+ version = "0.7.55"
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"
@@ -78,7 +78,9 @@ where = ["src"]
78
78
  # Issue #1955: the clarification gate's Pi extension ships with the engine
79
79
  # — the gate passes this file to pi --extension, so a wheel install must
80
80
  # carry it exactly like the example config (Issue #163).
81
- orbi = ["example_config.toml", "extensions/*.ts"]
81
+ # Issue #2347: labels.toml is the single source of the platform label
82
+ # names the engine reads at start, so the wheel must carry it too.
83
+ orbi = ["example_config.toml", "labels.toml", "extensions/*.ts"]
82
84
 
83
85
  # The contract test command (`python3 -m coverage run --branch -m pytest
84
86
  # tests/ -q`) runs WITHOUT installing the package: pytest puts `src/` on
@@ -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.54"
21
+ __version__ = "0.7.55"
@@ -53,9 +53,8 @@ from orbi.acceptance_section import (
53
53
  render_acceptance,
54
54
  write_body,
55
55
  )
56
- from orbi.delivery_labels import (
57
- NEEDS_DETAIL_LABEL, READY_LABEL, has_delivery_state, label_names,
58
- )
56
+ from orbi.delivery_labels import has_delivery_state, label_names
57
+ from orbi import delivery_labels
59
58
  from orbi.github import comment_issue, edit_issue, issue_view
60
59
  from orbi.ticket_command import (
61
60
  CommandSpec,
@@ -140,10 +139,11 @@ def _criteria_validate(
140
139
  def _criteria_apply(
141
140
  argument: str, *, repo: str, issue_number: int, command_comment: dict,
142
141
  comments: list[dict], issue: dict, suggestion: object,
143
- dispatch_label: str = READY_LABEL,
142
+ dispatch_label: str | None = None,
144
143
  language_code: str = language.DEFAULT_LANGUAGE, **_context: object,
145
144
  ) -> None:
146
145
  """Do the four steps, in the order the ticket depends on."""
146
+ dispatch_label = delivery_labels.queue_label(dispatch_label)
147
147
  if not isinstance(suggestion, clarify.Suggestion):
148
148
  raise TicketCommandError(
149
149
  "append the criteria",
@@ -193,8 +193,8 @@ def _criteria_apply(
193
193
  # the command again and finishes whatever is still missing. A failure
194
194
  # here is not wrapped in a step receipt — the append itself succeeded,
195
195
  # and a "failed" receipt beside the success would read as a second run.
196
- if NEEDS_DETAIL_LABEL in label_names(issue):
197
- edit_issue(issue_number, repo=repo, remove=NEEDS_DETAIL_LABEL)
196
+ if delivery_labels.NEEDS_DETAIL_LABEL in label_names(issue):
197
+ edit_issue(issue_number, repo=repo, remove=delivery_labels.NEEDS_DETAIL_LABEL)
198
198
 
199
199
 
200
200
  AMEND_COMMAND = CommandSpec(
@@ -70,14 +70,8 @@ from dataclasses import dataclass
70
70
  from orbi import acceptance_section, language, question
71
71
  from orbi.branch_reclaim import delete_merged_delivery_branch
72
72
  from orbi.comment_trust import comment_is_trusted
73
- from orbi.delivery_labels import (
74
- BLOCKED_LABEL,
75
- EVENT_FIX_NEEDED,
76
- FIX_NEEDED_LABEL,
77
- IN_PROGRESS_LABEL,
78
- PR_OPENED_LABEL,
79
- READY_LABEL,
80
- )
73
+ from orbi.delivery_labels import EVENT_FIX_NEEDED
74
+ from orbi import delivery_labels
81
75
  from orbi.github import (
82
76
  apply_label_patch,
83
77
  close_issue,
@@ -109,11 +103,14 @@ from orbi.ticket_command import (
109
103
  # The stage is the label the ticket carries when the answer is read: the
110
104
  # scan label of the stopped-ticket scans, or `ai-in-progress` for the
111
105
  # steering poll. Nothing else is a stage an answer is read at.
112
- STAGE_BLOCKED = BLOCKED_LABEL
113
- STAGE_PR_OPENED = PR_OPENED_LABEL
114
- STAGE_FIX_NEEDED = FIX_NEEDED_LABEL
115
- STAGE_SESSION = IN_PROGRESS_LABEL
116
- STAGES = (STAGE_BLOCKED, STAGE_PR_OPENED, STAGE_FIX_NEEDED, STAGE_SESSION)
106
+ def stages() -> tuple[str, str, str, str]:
107
+ """The four stop stages an answer can target (Issue #2221)."""
108
+ return (
109
+ delivery_labels.BLOCKED_LABEL,
110
+ delivery_labels.PR_OPENED_LABEL,
111
+ delivery_labels.FIX_NEEDED_LABEL,
112
+ delivery_labels.IN_PROGRESS_LABEL,
113
+ )
117
114
 
118
115
  # The Issue fields the answer's one read needs.
119
116
  ISSUE_FIELDS = "number,body,labels"
@@ -228,7 +225,7 @@ def decide(
228
225
  answer whose `value` matches no option of the question is refused
229
226
  here, before any write.
230
227
  """
231
- if stage not in STAGES:
228
+ if stage not in stages():
232
229
  raise NotExecuted(language.text(
233
230
  language_code, "answer.reason_no_stage", stage=stage or "-",
234
231
  ))
@@ -239,7 +236,7 @@ def decide(
239
236
  answered=answer.question, asked=asked.id,
240
237
  ))
241
238
  if answer.action == question.ANSWER_CANCEL:
242
- if stage != STAGE_BLOCKED:
239
+ if stage != delivery_labels.BLOCKED_LABEL:
243
240
  raise NotExecuted(language.text(
244
241
  language_code, "answer.reason_cancel_stage", stage=stage,
245
242
  ))
@@ -316,7 +313,7 @@ def _carried_out(
316
313
  """Refuse a close outside `ai-blocked`; everything else is taken."""
317
314
  if action in (
318
315
  question.ACTION_CLOSE_EXTERNAL_PR, question.ACTION_CLOSE_ALL,
319
- ) and stage != STAGE_BLOCKED:
316
+ ) and stage != delivery_labels.BLOCKED_LABEL:
320
317
  raise NotExecuted(language.text(
321
318
  language_code, "answer.reason_close_stage", stage=stage,
322
319
  ))
@@ -441,10 +438,11 @@ def _answer_apply(
441
438
  argument: str, *, repo: str, issue_number: int, command_comment: dict,
442
439
  comments: list[dict] | None = None, stop: object = None,
443
440
  answer_problem: object = None,
444
- answer_stage: object = None, dispatch_label: str = READY_LABEL,
441
+ answer_stage: object = None, dispatch_label: str | None = None,
445
442
  language_code: str = language.DEFAULT_LANGUAGE, **_context: object,
446
443
  ) -> None:
447
444
  """Carry the answer out and post its ONE receipt (idempotent)."""
445
+ dispatch_label = delivery_labels.queue_label(dispatch_label)
448
446
  comments = list(comments or [])
449
447
  receipt = _receipt_marker(command_comment)
450
448
  if runner_receipt(comments, receipt):
@@ -568,7 +566,7 @@ def _amend(
568
566
  lines = [language.text(
569
567
  language_code, "answer.effect_amended", text=text,
570
568
  )]
571
- if stage == STAGE_BLOCKED:
569
+ if stage == delivery_labels.BLOCKED_LABEL:
572
570
  # A blocked Issue is not moved by the label event alone (a terminal
573
571
  # label wins over `fix_needed`), so the two labels are swapped
574
572
  # directly: with an open PR the review/fix state resumes it, and a
@@ -579,11 +577,11 @@ def _amend(
579
577
  None, task_branch(repo, issue_number), repo=repo,
580
578
  ),
581
579
  )
582
- target = FIX_NEEDED_LABEL if pull is not None else dispatch_label
580
+ target = delivery_labels.FIX_NEEDED_LABEL if pull is not None else dispatch_label
583
581
  run_step(
584
582
  "re-queue the ticket",
585
583
  lambda: edit_issue(
586
- issue_number, repo=repo, add=target, remove=BLOCKED_LABEL,
584
+ issue_number, repo=repo, add=target, remove=delivery_labels.BLOCKED_LABEL,
587
585
  ),
588
586
  )
589
587
  lines.append(language.text(
@@ -597,7 +595,7 @@ def _requeue(number: int, *, repo: str, dispatch_label: str) -> None:
597
595
  run_step(
598
596
  "re-queue the ticket",
599
597
  lambda: edit_issue(
600
- number, repo=repo, add=dispatch_label, remove=BLOCKED_LABEL,
598
+ number, repo=repo, add=dispatch_label, remove=delivery_labels.BLOCKED_LABEL,
601
599
  ),
602
600
  )
603
601
 
@@ -777,7 +775,7 @@ def pending_change(
777
775
  """
778
776
  decision = _pending(
779
777
  issue_comments(number, repo=repo), repo=repo,
780
- stage=STAGE_PR_OPENED, language_code=language_code,
778
+ stage=delivery_labels.PR_OPENED_LABEL, language_code=language_code,
781
779
  )
782
780
  if decision is not None:
783
781
  event(
@@ -820,13 +818,14 @@ def refuse_superseded_merge(
820
818
 
821
819
  def stop_for_fix_round(
822
820
  number: int, *, repo: str, pr_number: int, reason: str, marker: str,
823
- language_code: str, ready_label: str = READY_LABEL,
821
+ language_code: str, ready_label: str | None = None,
824
822
  ) -> None:
825
823
  """Send the delivery to a fix round: the Issue comment, then the label.
826
824
 
827
825
  The next tick's review session reads the amended ticket, which is why
828
826
  the label (not a second comment) is the last step.
829
827
  """
828
+ ready_label = delivery_labels.queue_label(ready_label)
830
829
  comment_issue(
831
830
  number, repo=repo,
832
831
  body=f"{marker}\n" + language.text(
@@ -881,7 +880,8 @@ def apply_steering(
881
880
  )
882
881
  return None
883
882
  resolved = resolve_answers(
884
- occurrences, stop, STAGE_SESSION, language_code=language_code,
883
+ occurrences, stop, delivery_labels.IN_PROGRESS_LABEL,
884
+ language_code=language_code,
885
885
  )
886
886
  amended: str | None = None
887
887
  counting = len(resolved) - 1
@@ -29,9 +29,7 @@ from orbi.base_ci_red import (
29
29
  edit_state, failing_checks, open_triage_issue, paused_scene, remind,
30
30
  scene_receipt, triage_title,
31
31
  )
32
- from orbi.delivery_labels import (
33
- BLOCKED_LABEL, FIX_NEEDED_LABEL, P0_LABEL, READY_LABEL,
34
- )
32
+ from orbi import delivery_labels
35
33
  from orbi.github import (
36
34
  branch_head_sha, comment_issue, commit_check_runs, edit_issue,
37
35
  issue_comments, pr_view,
@@ -107,7 +105,7 @@ def _create_triage_issue(repo: str, checks: list[FailingCheck],
107
105
  "--title", triage_title(record.base_branch),
108
106
  "--body", _triage_body(checks, record, language_code),
109
107
  "--label", dispatch_label,
110
- "--label", P0_LABEL,
108
+ "--label", delivery_labels.P0_LABEL,
111
109
  ]
112
110
  if milestone:
113
111
  command += ["--milestone", milestone]
@@ -122,7 +120,7 @@ def _create_triage_issue(repo: str, checks: list[FailingCheck],
122
120
 
123
121
  def open_fix_issues(
124
122
  repo: str, issue_number: int, record: BaseCIRed, *,
125
- milestone: str | None = None, dispatch_label: str = READY_LABEL,
123
+ milestone: str | None = None, dispatch_label: str | None = None,
126
124
  language_code: str = language.DEFAULT_LANGUAGE,
127
125
  ) -> list[str]:
128
126
  """Open (or reuse) the ONE open fix Issue of this base branch.
@@ -143,6 +141,7 @@ def open_fix_issues(
143
141
  empty evidence read returns the one "no evidence" sentence — no Issue
144
142
  is invented for a check GitHub no longer reports.
145
143
  """
144
+ dispatch_label = delivery_labels.queue_label(dispatch_label)
146
145
  checks = _base_red_checks(repo, record)
147
146
  if not checks:
148
147
  return [language.text(
@@ -177,7 +176,7 @@ def open_fix_issues(
177
176
 
178
177
  def ensure_fix_issues(
179
178
  repo: str, issue_number: int, record: BaseCIRed, *,
180
- milestone: str | None = None, dispatch_label: str = READY_LABEL,
179
+ milestone: str | None = None, dispatch_label: str | None = None,
181
180
  language_code: str = language.DEFAULT_LANGUAGE,
182
181
  ) -> list[str] | None:
183
182
  """The engine-initiated run: the fix Issue, ONCE per scene.
@@ -194,6 +193,7 @@ def ensure_fix_issues(
194
193
  comment renders the pre-#2203 repair text (`/orbi fix-base`) instead
195
194
  of turning a recorded scene into an unreported one.
196
195
  """
196
+ dispatch_label = delivery_labels.queue_label(dispatch_label)
197
197
  try:
198
198
  receipt = scene_receipt(record)
199
199
  if runner_receipt(issue_comments(issue_number, repo=repo), receipt):
@@ -275,7 +275,7 @@ def _aged_out(comment: dict, now: datetime) -> bool:
275
275
 
276
276
  def recover(repo: str, *, language_code: str,
277
277
  milestone: str | None = None,
278
- dispatch_label: str = READY_LABEL,
278
+ dispatch_label: str | None = None,
279
279
  now: datetime | None = None) -> list[int]:
280
280
  """Advance every paused base-branch-red delivery once.
281
281
 
@@ -301,6 +301,7 @@ def recover(repo: str, *, language_code: str,
301
301
 
302
302
  Returns the Issue numbers that were resumed.
303
303
  """
304
+ dispatch_label = delivery_labels.queue_label(dispatch_label)
304
305
  stamp = now or datetime.now(timezone.utc)
305
306
  reads = blocked_scan.blocked_reads(repo)
306
307
  resumed: list[int] = []
@@ -336,8 +337,8 @@ def recover(repo: str, *, language_code: str,
336
337
  )
337
338
  continue
338
339
  if _base_is_green(repo, record, base_head):
339
- edit_issue(number, repo=repo, add=FIX_NEEDED_LABEL,
340
- remove=BLOCKED_LABEL)
340
+ edit_issue(number, repo=repo, add=delivery_labels.FIX_NEEDED_LABEL,
341
+ remove=delivery_labels.BLOCKED_LABEL)
341
342
  edit_state(repo, number, comment, STATE_RESUMING,
342
343
  language_code=language_code)
343
344
  event(
@@ -361,7 +362,7 @@ def scene_comment(
361
362
  repo: str, issue: dict, record: BaseCIRed, checks: list[FailingCheck],
362
363
  *, failure_record: failure.Failure, language_code: str,
363
364
  status_url: str | None = None, milestone: str | None = None,
364
- dispatch_label: str = READY_LABEL,
365
+ dispatch_label: str | None = None,
365
366
  ) -> str:
366
367
  """The base-branch-red comment, with the fix Issue Orbi opened itself.
367
368
 
@@ -372,6 +373,7 @@ def scene_comment(
372
373
  `ensure_fix_issues`), so the pause the delivery already decided still
373
374
  reaches the reader, with the command's own repair offered instead.
374
375
  """
376
+ dispatch_label = delivery_labels.queue_label(dispatch_label)
375
377
  number = int(issue["number"])
376
378
  return comment_body(
377
379
  record, checks, failure_record=failure_record,
@@ -427,7 +429,7 @@ def _fix_base_validate(
427
429
  def _fix_base_apply(
428
430
  argument: str, *, repo: str, issue_number: int, command_comment: dict,
429
431
  comments: list[dict], record: BaseCIRed | None = None,
430
- milestone: str | None = None, dispatch_label: str = READY_LABEL,
432
+ milestone: str | None = None, dispatch_label: str | None = None,
431
433
  language_code: str = language.DEFAULT_LANGUAGE,
432
434
  **_context: object,
433
435
  ) -> None:
@@ -445,6 +447,7 @@ def _fix_base_apply(
445
447
  record runs by itself (Issue #2203): a fix Issue the engine opened is
446
448
  therefore reused here, and the reply says so.
447
449
  """
450
+ dispatch_label = delivery_labels.queue_label(dispatch_label)
448
451
  if not isinstance(record, BaseCIRed):
449
452
  # The layer's contract: a handler that cannot run raises its own
450
453
  # step error (never a bare TypeError) so the dispatcher posts the
@@ -8,5 +8,6 @@ re-export the `failure_evidence` split used (Issue #2202).
8
8
  """
9
9
  from __future__ import annotations
10
10
 
11
- from orbi.delivery_labels import EVENT_BLOCKED, READY_LABEL # noqa: F401
11
+ from orbi.delivery_labels import EVENT_BLOCKED
12
+ from orbi import delivery_labels
12
13
  from orbi.stop_comment import post_blocked_comment as post_blocked_comment
@@ -25,7 +25,7 @@ from __future__ import annotations
25
25
  import dataclasses
26
26
 
27
27
  from orbi import comment_trust, tick_reads
28
- from orbi.delivery_labels import BLOCKED_LABEL
28
+ from orbi import delivery_labels
29
29
  from orbi.github import issue_comments, list_issues
30
30
 
31
31
  # One bounded page per tick: `ai-blocked` Issues are few, and an unbounded
@@ -46,7 +46,7 @@ class BlockedReads:
46
46
  """Every open `ai-blocked` Issue, read once for the tick."""
47
47
  if self._issues is None:
48
48
  self._issues = list_issues(
49
- self.repo, state="open", label=BLOCKED_LABEL,
49
+ self.repo, state="open", label=delivery_labels.BLOCKED_LABEL,
50
50
  json_fields="number,title", limit=SCAN_LIMIT,
51
51
  )
52
52
  return self._issues
@@ -52,9 +52,7 @@ from orbi.comment_kind import (
52
52
  parse_versioned_block,
53
53
  )
54
54
  from orbi.comment_rest_id import rest_comment_id
55
- from orbi.delivery_labels import (
56
- BLOCKED_LABEL, FIX_NEEDED_LABEL, READY_LABEL,
57
- )
55
+ from orbi import delivery_labels
58
56
  from orbi.github import (
59
57
  edit_issue, issue_labels, pr_number, run_gh_read_command,
60
58
  update_issue_comment,
@@ -252,7 +250,7 @@ def block(issue_number: int, repo: str, pr_url: str, *, run_id: str,
252
250
  installation_id: int | None, language_code: str,
253
251
  issue_title: str | None = None,
254
252
  status_url: str | None = None,
255
- ready_label: str = READY_LABEL) -> CheckPermission:
253
+ ready_label: str | None = None) -> CheckPermission:
256
254
  """Stop the delivery: ONE comment, then `ai-blocked`.
257
255
 
258
256
  The comment lands through the shared blocked exit (label patch first,
@@ -260,6 +258,7 @@ def block(issue_number: int, repo: str, pr_url: str, *, run_id: str,
260
258
  `ai-blocked` ALONE. Called only while the Issue is still resumable, so
261
259
  exactly one comment is posted per stop.
262
260
  """
261
+ ready_label = delivery_labels.queue_label(ready_label)
263
262
  record = CheckPermission(pr=pr_number(pr_url))
264
263
  body = comment_body(
265
264
  record, url=approval_url(repo, installation_id=installation_id),
@@ -297,7 +296,7 @@ def read_rollup(pr_url: str, repo: str, issue: dict, config,
297
296
  installation_id=config.installation_id,
298
297
  language_code=language.of(config),
299
298
  issue_title=issue.get("title"), status_url=config.status_url,
300
- ready_label=config.dispatch_label or READY_LABEL,
299
+ ready_label=delivery_labels.queue_label(config.dispatch_label),
301
300
  )
302
301
  return None, []
303
302
 
@@ -420,8 +419,8 @@ def recover(repo: str) -> list[int]:
420
419
  number, record.pr, repo,
421
420
  )
422
421
  continue
423
- edit_issue(number, repo=repo, add=FIX_NEEDED_LABEL,
424
- remove=BLOCKED_LABEL)
422
+ edit_issue(number, repo=repo, add=delivery_labels.FIX_NEEDED_LABEL,
423
+ remove=delivery_labels.BLOCKED_LABEL)
425
424
  _edit_state(repo, number, comment, record)
426
425
  event(
427
426
  "checks_permission_recovered", issue=number, pr=record.pr,
@@ -17,11 +17,8 @@ from pathlib import Path
17
17
  from orbi import base_ci_fix, check_permission, gitops, stopped_scans
18
18
  from orbi import milestone as milestone_bookkeeping
19
19
  from orbi.config import RunnerConfig
20
- from orbi.delivery_labels import (
21
- BLOCKED_LABEL, EPIC_LABEL,
22
- FIX_NEEDED_LABEL, IN_PROGRESS_LABEL, MERGED_LABEL,
23
- P0_LABEL, PR_OPENED_LABEL, READY_LABEL, RELEASE_LABEL, label_name_set,
24
- )
20
+ from orbi.delivery_labels import label_name_set
21
+ from orbi import delivery_labels
25
22
  from orbi.delivery_scene import (
26
23
  EXTERNAL_PR_MARKER, body_markers, classify,
27
24
  )
@@ -69,15 +66,19 @@ from orbi.repo_config import (
69
66
  # it returns the NEWEST-created Issue first, and `_pick_from_scan`
70
67
  # claims the first claimable one: newer tickets then overtook Issues
71
68
  # that had waited hours in a busy queue.
72
- READY_SCAN_QUALIFIERS = (
73
- f"-label:{IN_PROGRESS_LABEL} -label:{PR_OPENED_LABEL} "
74
- f"-label:{FIX_NEEDED_LABEL} -label:{MERGED_LABEL} "
75
- f"-label:{BLOCKED_LABEL} sort:created-asc"
76
- )
69
+ def ready_scan_qualifiers() -> str:
70
+ """The one shared qualifier string: the delivery-state exclusions."""
71
+ return (
72
+ f"-label:{delivery_labels.IN_PROGRESS_LABEL} "
73
+ f"-label:{delivery_labels.PR_OPENED_LABEL} "
74
+ f"-label:{delivery_labels.FIX_NEEDED_LABEL} "
75
+ f"-label:{delivery_labels.MERGED_LABEL} "
76
+ f"-label:{delivery_labels.BLOCKED_LABEL} sort:created-asc"
77
+ )
77
78
 
78
79
 
79
80
  def ready_searches(active_milestone: str | None = None,
80
- dispatch_label: str = READY_LABEL) -> tuple[str, str, str]:
81
+ dispatch_label: str | None = None) -> tuple[str, str, str]:
81
82
  """Return the three ready scans (p0, bug, plain) in pickup order.
82
83
 
83
84
  With a configured `active_milestone` every scan
@@ -101,21 +102,23 @@ def ready_searches(active_milestone: str | None = None,
101
102
  order the maintainer queued it. The order BETWEEN the scans is
102
103
  unchanged (p0, then bug, then plain).
103
104
  """
105
+ dispatch_label = delivery_labels.queue_label(dispatch_label)
104
106
  scope = (
105
107
  f' milestone:"{active_milestone}"' if active_milestone else ""
106
108
  )
107
- # The claim label is a delivery-policy key; the lifecycle
108
- # labels (`ai-in-progress`/`ai-merged`/...) stay host constants.
109
- label = dispatch_label or READY_LABEL
109
+ # The queue label is a delivery-policy key; every other role comes
110
+ # from labels.toml (Issue #2347).
111
+ label = delivery_labels.queue_label(dispatch_label)
110
112
  return (
111
- f"label:{label} label:{P0_LABEL}{scope} {READY_SCAN_QUALIFIERS}",
112
- f"label:{label} label:bug{scope} {READY_SCAN_QUALIFIERS}",
113
- f"label:{label}{scope} {READY_SCAN_QUALIFIERS}",
113
+ f"label:{label} label:{delivery_labels.P0_LABEL}{scope} {ready_scan_qualifiers()}",
114
+ f"label:{label} label:{delivery_labels.BUG_LABEL}{scope} "
115
+ f"{ready_scan_qualifiers()}",
116
+ f"label:{label}{scope} {ready_scan_qualifiers()}",
114
117
  )
115
118
 
116
119
 
117
120
  def release_fallback_search(active_milestone: str | None = None,
118
- dispatch_label: str = READY_LABEL) -> str:
121
+ dispatch_label: str | None = None) -> str:
119
122
  """Return the release fallback scan query.
120
123
 
121
124
  A Release task is a closing action and must never compete with an
@@ -130,17 +133,18 @@ def release_fallback_search(active_milestone: str | None = None,
130
133
  contract, same as `ready_searches`). `ai-epic` is excluded by the
131
134
  code-layer Epic guard in `_pick_from_scan`, not the query.
132
135
  """
136
+ dispatch_label = delivery_labels.queue_label(dispatch_label)
133
137
  scope = (
134
138
  f' milestone:"{active_milestone}"' if active_milestone else ""
135
139
  )
136
- label = dispatch_label or READY_LABEL
140
+ label = delivery_labels.queue_label(dispatch_label)
137
141
  return (
138
- f"label:{label} label:{RELEASE_LABEL}{scope} "
139
- f"{READY_SCAN_QUALIFIERS}"
142
+ f"label:{label} label:{delivery_labels.RELEASE_LABEL}{scope} "
143
+ f"{ready_scan_qualifiers()}"
140
144
  )
141
145
 
142
146
 
143
- def external_takeover_search(dispatch_label: str = READY_LABEL) -> str:
147
+ def external_takeover_search(dispatch_label: str | None = None) -> str:
144
148
  """Return the external-takeover scan query (Issue #842, decision D1).
145
149
 
146
150
  The FIFTH and last ready scan: it runs only after the three
@@ -161,10 +165,11 @@ def external_takeover_search(dispatch_label: str = READY_LABEL) -> str:
161
165
  other scan. The candidate order is the ready queue's own: oldest
162
166
  Issue first (`READY_SCAN_QUALIFIERS`, Issue #1914).
163
167
  """
164
- label = dispatch_label or READY_LABEL
168
+ dispatch_label = delivery_labels.queue_label(dispatch_label)
169
+ label = delivery_labels.queue_label(dispatch_label)
165
170
  return (
166
171
  f'label:{label} "orbi:external-pr" in:body '
167
- f"{READY_SCAN_QUALIFIERS}"
172
+ f"{ready_scan_qualifiers()}"
168
173
  )
169
174
 
170
175
 
@@ -177,7 +182,7 @@ def is_epic(issue: dict) -> bool:
177
182
  the scan always requests `labels`, so a shape change only loses
178
183
  the Epic guard for one run — it must never deadlock the queue.
179
184
  """
180
- return EPIC_LABEL in label_name_set(issue)
185
+ return delivery_labels.EPIC_LABEL in label_name_set(issue)
181
186
 
182
187
 
183
188
  def is_release(issue: dict) -> bool:
@@ -190,13 +195,13 @@ def is_release(issue: dict) -> bool:
190
195
  shape change only loses the release routing for one run — it must
191
196
  never deadlock the queue.
192
197
  """
193
- return RELEASE_LABEL in label_name_set(issue)
198
+ return delivery_labels.RELEASE_LABEL in label_name_set(issue)
194
199
 
195
200
 
196
201
  def reconcile_open_epics(repo: str, run_id: str, language_code: str) -> list[str]:
197
202
  """Sweep open Epics once per tick; ordinary pickup must not depend on it."""
198
203
  epics = list_issues(
199
- repo, state="open", search=f"label:{EPIC_LABEL}",
204
+ repo, state="open", search=f"label:{delivery_labels.EPIC_LABEL}",
200
205
  json_fields="number,body,labels", limit=200,
201
206
  )
202
207
  evidence: list[str] = []
@@ -312,21 +317,20 @@ def reconcile_orphan_prs(
312
317
  def _pick_from_scan(
313
318
  issues: list[dict], repo: str, allow_release: bool = False,
314
319
  active_milestone: str | None = None,
315
- ready_label: str = READY_LABEL,
320
+ ready_label: str | None = None,
316
321
  external_only: bool = False, held: frozenset = frozenset(),
317
322
  raise_on_read_failure: bool = False,
318
323
  ) -> dict | None:
319
324
  """Return the first claimable Issue of one scan result, else None.
320
325
 
321
326
  The per-Issue guards, shared by the three ordinary ready scans and
322
- the release fallback scan. An `ai-epic` Issue is never
323
- claimed — no label change, no worktree, no run, no slot — with the
324
- structured `epic_not_claimed` line (the check precedes the blockedBy
325
- check: "it is an Epic" is the more fundamental reason). An Issue
326
- with open native blockers is skipped with the structured
327
- `blocked_by` line. Otherwise the Issue is picked and the
328
- pickup log carries the explicit priority field: `p0`
329
- for urgent Issues, `normal` otherwise.
327
+ the release fallback scan. An Epic Issue is never claimed — no label
328
+ change, no worktree, no run, no slot — with the structured
329
+ `epic_not_claimed` line (the check precedes the blockedBy check: "it
330
+ is an Epic" is the more fundamental reason). An Issue with open native
331
+ blockers is skipped with the structured `blocked_by` line. Otherwise
332
+ the Issue is picked and the pickup log carries the explicit priority
333
+ field: `p0` for urgent Issues, `normal` otherwise.
330
334
 
331
335
  `allow_release` controls the release skip: the three
332
336
  ordinary scans skip an `ai-release` Issue (`release_not_claimed`) so
@@ -369,6 +373,7 @@ def _pick_from_scan(
369
373
  (`orbi status`) re-raises so the failed read is named instead of
370
374
  rendering as an empty queue (Issue #1782).
371
375
  """
376
+ ready_label = delivery_labels.queue_label(ready_label)
372
377
  for issue in issues:
373
378
  if (repo, int(issue["number"])) in held:
374
379
  event("claim_yield", issue=issue.get("number"), reason="held_by_live_runner")
@@ -450,13 +455,13 @@ def _read_failed(
450
455
 
451
456
 
452
457
  def pick_issue(repo: str, active_milestone: str | None = None,
453
- dispatch_label: str = READY_LABEL,
458
+ dispatch_label: str | None = None,
454
459
  held: frozenset = frozenset(),
455
460
  timeout: int | None = None,
456
461
  raise_on_read_failure: bool = False) -> dict | None:
457
- # A merged delivery keeps `ai-merged` on the (still open) Issue;
458
- # `ai-merged` is the success terminal state, so it is excluded from
459
- # the ready scan like every other delivery state.
462
+ dispatch_label = delivery_labels.queue_label(dispatch_label)
463
+ # A merged delivery keeps the merged label on the (still open) Issue,
464
+ # the success terminal state, so the ready scan excludes it.
460
465
  # The scan fetches the ready queue (not just the first Issue) and
461
466
  # reads the native GitHub dependency per Issue: an
462
467
  # Issue with open blockers is skipped — no claim, no label change,
@@ -806,7 +811,7 @@ def _repo_scan_context(
806
811
  returned from the same read instead of reading the file twice.
807
812
  """
808
813
  if config is None:
809
- return active_milestone, READY_LABEL, None
814
+ return active_milestone, delivery_labels.queue_label(), None
810
815
  try:
811
816
  policy = load_repo_policy(config, repo)
812
817
  except RepoConfigError as exc:
@@ -816,12 +821,12 @@ def _repo_scan_context(
816
821
  )
817
822
  policy = None
818
823
  if policy is None:
819
- return active_milestone, READY_LABEL, None
824
+ return active_milestone, delivery_labels.queue_label(), None
820
825
  return (
821
826
  policy.active_milestone
822
827
  if policy.active_milestone is not None
823
828
  else active_milestone,
824
- policy.dispatch_label or READY_LABEL,
829
+ delivery_labels.queue_label(policy.dispatch_label or getattr(config, 'dispatch_label', None)),
825
830
  policy,
826
831
  )
827
832
 
@@ -880,7 +885,7 @@ def pick_ready_issue(
880
885
  milestone, dispatch_label = _repo_scan_keys(
881
886
  config, repo, active_milestone,
882
887
  )
883
- if dispatch_label == READY_LABEL:
888
+ if dispatch_label == delivery_labels.queue_label():
884
889
  return pick_issue(
885
890
  repo, milestone, held=held, timeout=timeout,
886
891
  raise_on_read_failure=raise_on_read_failure,