orbi-cli 0.7.37__tar.gz → 0.7.38__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 (252) hide show
  1. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/PKG-INFO +1 -1
  2. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/pyproject.toml +1 -1
  3. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/__init__.py +1 -1
  4. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/cli_commands.py +4 -3
  5. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/journal.py +0 -6
  6. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/milestone.py +0 -57
  7. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/milestone_command.py +3 -4
  8. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/runner.py +0 -7
  9. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi_cli.egg-info/PKG-INFO +1 -1
  10. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_bootstrap_runner_main.py +31 -4
  11. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_bootstrap_runner_milestone.py +3 -148
  12. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_ci_failure_issue_workflow.py +35 -4
  13. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_ci_failure_triage.py +79 -13
  14. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_cli_milestone.py +11 -7
  15. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_resume_pr.py +0 -5
  16. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_worktree_reclaim.py +0 -5
  17. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/LICENSE +0 -0
  18. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/README.md +0 -0
  19. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/docs/licenses/sustainable-use-license.md +0 -0
  20. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/setup.cfg +0 -0
  21. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/amend_command.py +0 -0
  22. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/base_ci_red.py +0 -0
  23. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/blocked_comment.py +0 -0
  24. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/branch_reclaim.py +0 -0
  25. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/check_permission.py +0 -0
  26. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/checks.py +0 -0
  27. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/claim.py +0 -0
  28. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/clarify.py +0 -0
  29. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/cli.py +0 -0
  30. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/cli_doctor.py +0 -0
  31. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/cli_parser.py +0 -0
  32. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/cli_source.py +0 -0
  33. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/cli_status.py +0 -0
  34. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/cli_ticket_command.py +0 -0
  35. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/comment_kind.py +0 -0
  36. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/comment_rest_id.py +0 -0
  37. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/comment_trust.py +0 -0
  38. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/config.py +0 -0
  39. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/delivery_comment.py +0 -0
  40. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/delivery_labels.py +0 -0
  41. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/delivery_scene.py +0 -0
  42. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/draft.py +0 -0
  43. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/draft_cli.py +0 -0
  44. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/draft_marker.py +0 -0
  45. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/engine_source.py +0 -0
  46. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/example_config.toml +0 -0
  47. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/extensions/clarify_verdict.ts +0 -0
  48. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/extensions/draft_tools.ts +0 -0
  49. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/failure.py +0 -0
  50. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/failure_report.py +0 -0
  51. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/gh_response.py +0 -0
  52. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/git_identity.py +0 -0
  53. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/git_transport.py +0 -0
  54. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/github.py +0 -0
  55. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/github_feedback.py +0 -0
  56. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/gitops.py +0 -0
  57. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/human_review.py +0 -0
  58. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/language.py +0 -0
  59. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/language_terms.py +0 -0
  60. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/launchd_deploy.py +0 -0
  61. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/merge_exec.py +0 -0
  62. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/merge_gate.py +0 -0
  63. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/merge_handoff.py +0 -0
  64. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/notify.py +0 -0
  65. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/ops_delivery.py +0 -0
  66. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/pi_activity.py +0 -0
  67. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/pi_command.py +0 -0
  68. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/pi_idle.py +0 -0
  69. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/pi_process.py +0 -0
  70. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/pi_recovery.py +0 -0
  71. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/pi_session.py +0 -0
  72. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/pi_stream_log.py +0 -0
  73. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/pilot_setup.py +0 -0
  74. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/pilot_slots.py +0 -0
  75. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/pr_verification.py +0 -0
  76. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/progress.py +0 -0
  77. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/progress_display.py +0 -0
  78. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/progress_outcome.py +0 -0
  79. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/progress_summary.py +0 -0
  80. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/release.py +0 -0
  81. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/release_closeout.py +0 -0
  82. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/release_comments.py +0 -0
  83. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/release_declaration.py +0 -0
  84. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/release_git.py +0 -0
  85. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/release_notes.py +0 -0
  86. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/release_run.py +0 -0
  87. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/repo_config.py +0 -0
  88. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/resume_scan.py +0 -0
  89. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/resume_verification.py +0 -0
  90. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/review_merge.py +0 -0
  91. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/review_rounds.py +0 -0
  92. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/review_verdict.py +0 -0
  93. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/run_fields.py +0 -0
  94. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/run_state.py +0 -0
  95. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/runner_health.py +0 -0
  96. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/runner_marker.py +0 -0
  97. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/runner_source.py +0 -0
  98. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/scene.py +0 -0
  99. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/scheduler.py +0 -0
  100. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/scheduler_units.py +0 -0
  101. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/session_command.py +0 -0
  102. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/setup_checks.py +0 -0
  103. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/setup_config.py +0 -0
  104. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/source_pool.py +0 -0
  105. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/split_command.py +0 -0
  106. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/status_observe.py +0 -0
  107. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/suggest.py +0 -0
  108. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/systemd_deploy.py +0 -0
  109. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/ticket_command.py +0 -0
  110. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/ticket_command_registry.py +0 -0
  111. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/ticket_criteria.py +0 -0
  112. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi/user_summary.py +0 -0
  113. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi_cli.egg-info/SOURCES.txt +0 -0
  114. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi_cli.egg-info/dependency_links.txt +0 -0
  115. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi_cli.egg-info/entry_points.txt +0 -0
  116. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/src/orbi_cli.egg-info/top_level.txt +0 -0
  117. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_agents_md.py +0 -0
  118. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_amend_command.py +0 -0
  119. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_apply_label_patch.py +0 -0
  120. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_base_branch_failure.py +0 -0
  121. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_base_ci_red.py +0 -0
  122. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_blocked_comment.py +0 -0
  123. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_bootstrap_adapters.py +0 -0
  124. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_bootstrap_delivery.py +0 -0
  125. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_bootstrap_pi.py +0 -0
  126. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_bootstrap_preflight.py +0 -0
  127. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_bootstrap_release.py +0 -0
  128. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_bootstrap_runner_claim_resume.py +0 -0
  129. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_bootstrap_runner_failure_report.py +0 -0
  130. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_bootstrap_runner_outcome.py +0 -0
  131. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_bootstrap_runner_prompt.py +0 -0
  132. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_bootstrap_runner_reconcile.py +0 -0
  133. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_bootstrap_runner_session.py +0 -0
  134. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_bootstrap_runner_tickets.py +0 -0
  135. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_branch_reclaim.py +0 -0
  136. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_check_permission.py +0 -0
  137. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_ci_macos_workflow.py +0 -0
  138. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_ci_workflow.py +0 -0
  139. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_clarify.py +0 -0
  140. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_claude_plugin.py +0 -0
  141. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_cli_golden.py +0 -0
  142. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_cli_install.py +0 -0
  143. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_cli_packaging.py +0 -0
  144. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_cli_source.py +0 -0
  145. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_cli_ticket_commands.py +0 -0
  146. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_command_receipt_contract.py +0 -0
  147. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_comment_identity.py +0 -0
  148. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_comment_readers_contract.py +0 -0
  149. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_comment_rest_id.py +0 -0
  150. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_comment_trust.py +0 -0
  151. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_concurrency_e2e.py +0 -0
  152. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_constitution.py +0 -0
  153. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_coverage_gate.py +0 -0
  154. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_deliver_pr_fakes.py +0 -0
  155. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_delivery_branch_delete.py +0 -0
  156. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_delivery_labels.py +0 -0
  157. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_delivery_scene.py +0 -0
  158. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_docker_docs.py +0 -0
  159. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_docker_entrypoint.py +0 -0
  160. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_docker_image_workflow.py +0 -0
  161. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_docs_i18n.py +0 -0
  162. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_docs_issue_shapes.py +0 -0
  163. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_docs_labels.py +0 -0
  164. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_docs_mermaid.py +0 -0
  165. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_docs_releases.py +0 -0
  166. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_docs_single_source.py +0 -0
  167. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_docs_site.py +0 -0
  168. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_draft.py +0 -0
  169. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_engine_source.py +0 -0
  170. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_failure.py +0 -0
  171. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_failure_report.py +0 -0
  172. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_fix_needed_loop.py +0 -0
  173. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_gh_read_retry.py +0 -0
  174. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_gh_response.py +0 -0
  175. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_git_base_smoke.py +0 -0
  176. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_git_merge_smoke.py +0 -0
  177. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_git_network_retry.py +0 -0
  178. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_git_transport.py +0 -0
  179. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_github.py +0 -0
  180. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_github_fakes.py +0 -0
  181. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_gitops.py +0 -0
  182. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_gitops_fakes.py +0 -0
  183. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_human_review.py +0 -0
  184. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_import_graph.py +0 -0
  185. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_install_sh.py +0 -0
  186. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_issue_1367.py +0 -0
  187. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_issue_461.py +0 -0
  188. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_issue_template_config.py +0 -0
  189. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_journal.py +0 -0
  190. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_journal_events.py +0 -0
  191. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_launchd_deploy.py +0 -0
  192. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_license.py +0 -0
  193. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_merge_exec_extraction.py +0 -0
  194. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_message_language.py +0 -0
  195. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_milestone_command.py +0 -0
  196. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_notify.py +0 -0
  197. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_ops_e2e.py +0 -0
  198. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_orbi.py +0 -0
  199. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_orbi_dashboard.py +0 -0
  200. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_orbi_exporter.py +0 -0
  201. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_patch_ratchet.py +0 -0
  202. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_pi_activity.py +0 -0
  203. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_pi_child_reap.py +0 -0
  204. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_pi_command.py +0 -0
  205. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_pi_extensions.py +0 -0
  206. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_pi_provider_templates.py +0 -0
  207. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_pi_recovery.py +0 -0
  208. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_pi_session.py +0 -0
  209. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_pilot_setup.py +0 -0
  210. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_pilot_slots.py +0 -0
  211. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_pr_issue_link_workflow.py +0 -0
  212. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_pr_verification.py +0 -0
  213. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_prerequisite_check.py +0 -0
  214. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_progress.py +0 -0
  215. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_progress_wiring.py +0 -0
  216. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_prompt_contract.py +0 -0
  217. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_public_contracts.py +0 -0
  218. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_public_helpers.py +0 -0
  219. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_publish_workflow.py +0 -0
  220. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_release_docs_workflow.py +0 -0
  221. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_release_extraction.py +0 -0
  222. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_release_ticket_templates.py +0 -0
  223. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_repo_config.py +0 -0
  224. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_resume_continue_e2e.py +0 -0
  225. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_resume_e2e.py +0 -0
  226. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_review_merge.py +0 -0
  227. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_review_verdict.py +0 -0
  228. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_run_artifacts.py +0 -0
  229. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_run_fields.py +0 -0
  230. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_run_id_e2e.py +0 -0
  231. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_run_id_fixture.py +0 -0
  232. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_runner_config.py +0 -0
  233. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_runner_health.py +0 -0
  234. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_runner_source_freshness.py +0 -0
  235. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_scene.py +0 -0
  236. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_scheduler.py +0 -0
  237. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_seam.py +0 -0
  238. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_setup_output_golden.py +0 -0
  239. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_size_ratchet.py +0 -0
  240. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_split_command.py +0 -0
  241. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_src_layout.py +0 -0
  242. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_status_observe.py +0 -0
  243. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_steering_review.py +0 -0
  244. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_suggest.py +0 -0
  245. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_suite_hygiene.py +0 -0
  246. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_systemd_deploy.py +0 -0
  247. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_systemd_timer.py +0 -0
  248. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_ticket_command.py +0 -0
  249. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_ticket_command_registration.py +0 -0
  250. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_user_acceptance_contract.py +0 -0
  251. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_user_summary.py +0 -0
  252. {orbi_cli-0.7.37 → orbi_cli-0.7.38}/tests/test_versioned_comment_block.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orbi-cli
3
- Version: 0.7.37
3
+ Version: 0.7.38
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.37"
47
+ version = "0.7.38"
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.37"
21
+ __version__ = "0.7.38"
@@ -279,11 +279,12 @@ def command_milestone(config: config_domain.RunnerConfig, args,
279
279
  # host config, so the two targets are not interchangeable
280
280
  # (Issue #1306).
281
281
  print(f"wrote: {target}")
282
+ # Issue #2123: no Actions variable is written (or advertised) any
283
+ # more — the CI triage reads `.github/orbi.toml` itself — so the
284
+ # success output names only the claim scope the next tick applies.
282
285
  print(
283
286
  "next: the Runner's next tick claims Issues from Milestone "
284
- f'"{new}" and syncs the ORBI_ACTIVE_MILESTONE variable '
285
- f"(verify: gh api repos/{repo}/actions/variables/"
286
- "ORBI_ACTIVE_MILESTONE --jq .value)"
287
+ f'"{new}"'
287
288
  )
288
289
  return 0
289
290
 
@@ -448,12 +448,6 @@ JOURNAL_EVENTS: dict[str, str] = {
448
448
  "a finished Milestone still needs its release ticket confirmed"
449
449
  ),
450
450
  "active_milestone_advance_failed": "advancing the active Milestone failed",
451
- "active_milestone_variable_removed": "the active_milestone repo variable was removed",
452
- "active_milestone_variable_unchanged": "the active_milestone repo variable matches the config",
453
- "active_milestone_variable_updated": "the active_milestone repo variable was updated",
454
- "active_milestone_variable_absent": "the active_milestone repo variable is absent",
455
- "active_milestone_variable_created": "the active_milestone repo variable was created",
456
- "active_milestone_variable_sync_failed": "the active_milestone repo variable sync failed",
457
451
  # The `<name>_command_applied` / `<name>_command_failed` pair of every
458
452
  # in-ticket command is registered by `register_command`
459
453
  # (`ticket_command.py`, Issue #1922), never written out here: a new
@@ -3,7 +3,6 @@ from __future__ import annotations
3
3
 
4
4
  import fcntl
5
5
  import hashlib
6
- import json
7
6
  import logging
8
7
  import os
9
8
  import re
@@ -273,62 +272,6 @@ def clear_milestone_reconcile_failure(state_dir: Path, repo: str) -> None:
273
272
  )
274
273
 
275
274
 
276
- def sync_active_milestone_variable(
277
- repo: str, milestone: str | None, *,
278
- run_command: Callable[..., str] | None = None,
279
- ) -> None:
280
- """Keep the triage workflow's read-only milestone variable current.
281
-
282
- This is deliberately a bypass: a GitHub variable outage must not stop
283
- the Runner's issue delivery tick. The workflow consumes this value via
284
- ``vars.ORBI_ACTIVE_MILESTONE`` and the triage script resolves its title.
285
- """
286
- command_runner = run_command or globals()["run_command"]
287
- endpoint = f"repos/{repo}/actions/variables/ORBI_ACTIVE_MILESTONE"
288
- try:
289
- # The read's 404 is the designed absent branch (a repo without the
290
- # variable is the normal state), so its generic command_failed line
291
- # stays at DEBUG — same contract as the repo_config contents read.
292
- raw = command_runner(
293
- ["gh", "api", endpoint], timeout=30,
294
- failure_log_level=logging.DEBUG,
295
- )
296
- current = json.loads(raw)
297
- if not isinstance(current, dict):
298
- raise ValueError("variable response is not an object")
299
- if milestone is None:
300
- command_runner(
301
- ["gh", "api", "-X", "DELETE", endpoint], timeout=30,
302
- )
303
- event("active_milestone_variable_removed", repo=repo)
304
- return
305
- if current.get("value") == milestone:
306
- event("active_milestone_variable_unchanged", repo=repo)
307
- return
308
- command_runner(
309
- ["gh", "api", "-X", "PATCH", endpoint, "-f", f"name=ORBI_ACTIVE_MILESTONE",
310
- "-f", f"value={milestone}"], timeout=30,
311
- )
312
- event("active_milestone_variable_updated", repo=repo)
313
- except subprocess.CalledProcessError as exc:
314
- if exc.returncode != 1 or "404" not in (exc.stderr or ""):
315
- LOGGER.exception("active_milestone_variable_sync_failed repo=%s", repo)
316
- return
317
- if milestone is None:
318
- event("active_milestone_variable_absent", repo=repo)
319
- return
320
- try:
321
- command_runner(
322
- ["gh", "api", "-X", "POST", "repos/{}/actions/variables".format(repo),
323
- "-f", "name=ORBI_ACTIVE_MILESTONE", "-f", f"value={milestone}"],
324
- timeout=30,
325
- )
326
- event("active_milestone_variable_created", repo=repo)
327
- except Exception:
328
- LOGGER.exception("active_milestone_variable_sync_failed repo=%s", repo)
329
- except Exception:
330
- LOGGER.exception("active_milestone_variable_sync_failed repo=%s", repo)
331
-
332
275
  def validate_active_milestone(repo: str, active_milestone: str | None) -> None:
333
276
  """Validate the configured Milestone before a tick can claim work.
334
277
 
@@ -453,10 +453,9 @@ def milestone_set(
453
453
  is to reopen the milestone or set `auto_next_milestone = false`
454
454
  first. `auto_next_milestone` is resolved per key like
455
455
  `active_milestone` (Issue #1342): a value declared in the repository
456
- policy wins, the host value is the fallback. The variable sync is NOT
457
- part of
458
- this command: the Runner's next tick publishes
459
- `ORBI_ACTIVE_MILESTONE` (the bypass contract). Returns
456
+ policy wins, the host value is the fallback. No Actions variable is
457
+ written here or by the Runner's next tick (Issue #2123): the CI triage
458
+ reads `active_milestone` from `.github/orbi.toml` itself. Returns
460
459
  (old, new, target); every failure raises MilestoneSetError with the
461
460
  written target untouched.
462
461
  """
@@ -2522,13 +2522,6 @@ def _preflight(config: config_domain.RunnerConfig) -> None:
2522
2522
  for repo in config.source_repos:
2523
2523
  milestone, _ = claim._repo_scan_keys(config, repo, config.active_milestone)
2524
2524
  milestone_bookkeeping.validate_active_milestone(repo, milestone)
2525
- # Publish the configured active milestone for the CI
2526
- # triage workflow. This is a bypass; delivery must continue when the
2527
- # variable API is unavailable.
2528
- milestone_bookkeeping.sync_active_milestone_variable(
2529
- config.source_repos[0], config.active_milestone,
2530
- run_command=run_command,
2531
- )
2532
2525
  # Editable CLI install refresh: BEFORE any slot or
2533
2526
  # claim the tool env's editable metadata must match the checkout's
2534
2527
  # packaging inputs — a merged packaging change (entry point,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orbi-cli
3
- Version: 0.7.37
3
+ Version: 0.7.38
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
@@ -144,6 +144,37 @@ def test_main_returns_zero_when_queue_empty(monkeypatch, tmp_path):
144
144
  assert runner.main(["--config", str(config)]) == 0
145
145
 
146
146
 
147
+ def test_tick_makes_no_actions_variables_request(monkeypatch, tmp_path):
148
+ """Issue #2123: one tick never requests `repos/{repo}/actions/variables`.
149
+
150
+ The engine used to create/read/patch/delete the `ORBI_ACTIVE_MILESTONE`
151
+ Actions variable on every tick, for a workflow only THIS repository has;
152
+ a delivered repository got a variable nobody read, and that write was the
153
+ only reason the GitHub App needed "Actions variables: write". The whole
154
+ path is gone, so a tick against a repository makes no such request at
155
+ all: every `run_command` the tick performs is recorded at the subprocess
156
+ seam and none of them targets the Actions-variables endpoint.
157
+ """
158
+ commands: list[list[str]] = []
159
+
160
+ def recording(command, **kwargs):
161
+ commands.append(list(command))
162
+ return ""
163
+
164
+ monkeypatch.setattr(seam, "run_command", recording)
165
+ monkeypatch.setattr(claim, "pick_next_delivery", lambda *a, **k: None)
166
+ monkeypatch.setattr(runner, "log_ready_outside_milestone", lambda *a, **k: False)
167
+ _write_prompts(tmp_path)
168
+ config = tmp_path / "orbi.toml"
169
+ config.write_text('source_repos = ["owner/repo"]\n', encoding="utf-8")
170
+ assert runner.main(["--config", str(config)]) == 0
171
+ variable_requests = [
172
+ command for command in commands
173
+ if "actions/variables" in " ".join(command)
174
+ ]
175
+ assert variable_requests == [], commands
176
+
177
+
147
178
  def test_main_passes_configured_active_milestone_to_the_claim_scan(
148
179
  monkeypatch, tmp_path,
149
180
  ):
@@ -333,10 +364,6 @@ def _stub_idle_milestone_path(monkeypatch, outcome):
333
364
  monkeypatch.setitem(
334
365
  milestone.__dict__, "validate_active_milestone", lambda *args, **k: None,
335
366
  )
336
- monkeypatch.setitem(
337
- milestone.__dict__, "sync_active_milestone_variable",
338
- lambda *args, **kwargs: None,
339
- )
340
367
  monkeypatch.setitem(
341
368
  milestone.__dict__, "reconcile_milestone_on_idle",
342
369
  lambda *args, **kwargs: outcome,
@@ -1,9 +1,9 @@
1
1
  """Milestone scene: active-milestone bookkeeping and the release arm (Issue #2008).
2
2
 
3
3
  Scene split out of the former `tests/test_bootstrap_runner.py` (now gone),
4
- moved verbatim with no behavior change: syncing the `active_milestone`
5
- config variable, rewriting the config line atomically (symlinks, killed
6
- mid-write), selecting/advancing the next milestone, the pending P0
4
+ moved verbatim with no behavior change: rewriting the config line
5
+ atomically (symlinks, killed mid-write), selecting/advancing the next
6
+ milestone, the pending P0
7
7
  notification Issue, arming the matching release ticket, and the message
8
8
  language the milestone bookkeeping comment is posted in.
9
9
 
@@ -15,7 +15,6 @@ from orbi import config as config_domain
15
15
  import json
16
16
  import logging
17
17
  import os
18
- import subprocess
19
18
 
20
19
  import threading
21
20
  import time
@@ -31,150 +30,6 @@ from seam import seam
31
30
  from tests.test_bootstrap_runner_main import _write_prompts
32
31
 
33
32
 
34
- def test_sync_active_milestone_variable_skips_matching_value():
35
- calls = []
36
-
37
- def command(args, **kwargs):
38
- calls.append((args, kwargs))
39
- return '{"name":"ORBI_ACTIVE_MILESTONE","value":"v1"}'
40
-
41
- milestone.sync_active_milestone_variable("owner/repo", "v1", run_command=command)
42
- assert len(calls) == 1
43
- # The read may 404 by design (no variable yet): its generic
44
- # command_failed line must stay at DEBUG (Issue #1085).
45
- assert calls[0][1] == {"timeout": 30, "failure_log_level": logging.DEBUG}
46
-
47
-
48
- def test_sync_active_milestone_variable_patches_different_value():
49
- calls = []
50
-
51
- def command(args, **kwargs):
52
- calls.append(args)
53
- return '{"name":"ORBI_ACTIVE_MILESTONE","value":"v0"}' if len(calls) == 1 else "{}"
54
-
55
- milestone.sync_active_milestone_variable("owner/repo", "v1", run_command=command)
56
- assert calls[1][:5] == ["gh", "api", "-X", "PATCH", "repos/owner/repo/actions/variables/ORBI_ACTIVE_MILESTONE"]
57
- assert "value=v1" in calls[1]
58
-
59
-
60
- def test_sync_active_milestone_variable_creates_missing_value(caplog, monkeypatch):
61
- """Read 404 + a configured milestone: the real run_command path issues
62
- the POST and the generic command_failed line from the 404 read stays
63
- below INFO (Issue #1085)."""
64
- calls = []
65
-
66
- def fake_run(cmd, **kwargs):
67
- calls.append(list(cmd))
68
- if len(calls) == 1:
69
- raise subprocess.CalledProcessError(
70
- 1, cmd, output="",
71
- stderr="gh: Not Found (HTTP 404)",
72
- )
73
- return subprocess.CompletedProcess(cmd, 0, stdout="{}", stderr="")
74
-
75
- monkeypatch.setattr(runner.subprocess, "run", fake_run)
76
- with caplog.at_level(logging.DEBUG):
77
- milestone.sync_active_milestone_variable("owner/repo", "v1")
78
- assert calls[1][:4] == ["gh", "api", "-X", "POST"]
79
- assert "value=v1" in calls[1]
80
- failed = [
81
- record for record in caplog.records
82
- if "command_failed" in record.getMessage()
83
- ]
84
- assert failed and all(record.levelno == logging.DEBUG for record in failed)
85
- assert "active_milestone_variable_created repo=owner/repo" in caplog.text
86
-
87
-
88
- def test_sync_active_milestone_variable_create_failure_is_bypassed(caplog):
89
- calls = 0
90
-
91
- def command(args, **kwargs):
92
- nonlocal calls
93
- calls += 1
94
- if calls == 1:
95
- raise subprocess.CalledProcessError(1, args, stderr="HTTP 404")
96
- raise RuntimeError("create denied")
97
-
98
- with caplog.at_level("ERROR"):
99
- milestone.sync_active_milestone_variable(
100
- "owner/repo", "v1", run_command=command,
101
- )
102
-
103
- assert calls == 2
104
- assert "active_milestone_variable_sync_failed repo=owner/repo" in caplog.text
105
-
106
-
107
- def test_sync_active_milestone_variable_removes_stale_value():
108
- calls = []
109
-
110
- def command(args, **kwargs):
111
- calls.append(args)
112
- return '{"name":"ORBI_ACTIVE_MILESTONE","value":"v0"}' if len(calls) == 1 else "{}"
113
-
114
- milestone.sync_active_milestone_variable("owner/repo", None, run_command=command)
115
- assert calls[1] == [
116
- "gh", "api", "-X", "DELETE",
117
- "repos/owner/repo/actions/variables/ORBI_ACTIVE_MILESTONE",
118
- ]
119
-
120
-
121
- def test_sync_active_milestone_variable_absent_on_404(caplog, monkeypatch):
122
- """Removing an already-absent variable is a scene, not a failure: the
123
- read goes through the REAL run_command, its 404's generic
124
- command_failed line stays at DEBUG, and the structured `absent` line
125
- owns the outcome (Issue #1085)."""
126
- calls = []
127
-
128
- def fake_run(cmd, **kwargs):
129
- calls.append(list(cmd))
130
- raise subprocess.CalledProcessError(
131
- 1, cmd,
132
- output=('{"message":"Not Found",'
133
- '"documentation_url":"https://docs.github.com/rest/'
134
- 'actions/variables#get-a-repository-variable",'
135
- '"status":"404"}'),
136
- stderr="gh: Not Found (HTTP 404)",
137
- )
138
-
139
- monkeypatch.setattr(runner.subprocess, "run", fake_run)
140
- with caplog.at_level(logging.DEBUG):
141
- milestone.sync_active_milestone_variable("owner/repo", None)
142
- assert calls == [
143
- ["gh", "api", "repos/owner/repo/actions/variables/ORBI_ACTIVE_MILESTONE"],
144
- ]
145
- failed = [
146
- record for record in caplog.records
147
- if "command_failed" in record.getMessage()
148
- ]
149
- assert failed and all(record.levelno == logging.DEBUG for record in failed)
150
- assert "active_milestone_variable_absent repo=owner/repo" in caplog.text
151
-
152
-
153
- def test_sync_active_milestone_variable_read_403_logs_sync_failed_at_error(caplog):
154
- def command(args, **kwargs):
155
- raise subprocess.CalledProcessError(1, args, stderr="HTTP 403")
156
-
157
- with caplog.at_level("ERROR"):
158
- milestone.sync_active_milestone_variable(
159
- "owner/repo", None, run_command=command,
160
- )
161
- failed = [
162
- record for record in caplog.records
163
- if "active_milestone_variable_sync_failed" in record.getMessage()
164
- ]
165
- assert failed
166
- assert all(record.levelno == logging.ERROR for record in failed)
167
-
168
-
169
- def test_sync_active_milestone_variable_failure_is_bypass(caplog):
170
- def command(args, **kwargs):
171
- raise RuntimeError("offline")
172
-
173
- with caplog.at_level("ERROR"):
174
- milestone.sync_active_milestone_variable("owner/repo", "v1", run_command=command)
175
- assert "active_milestone_variable_sync_failed" in caplog.text
176
-
177
-
178
33
  def test_main_epic_only_queue_ends_idle_without_process_issue(
179
34
  monkeypatch, tmp_path, caplog,
180
35
  ):
@@ -11,6 +11,7 @@ fake success (continue-on-error / `|| true`) — the review of the previous
11
11
  attempt (closed PR #108) rejected exactly that: a triage script without its
12
12
  Action entry is no automation at all.
13
13
  """
14
+ import importlib.util
14
15
  from pathlib import Path
15
16
 
16
17
  import yaml
@@ -154,14 +155,44 @@ def test_token_is_the_workflow_token():
154
155
  ), f"GH_TOKEN must be the workflow token, step envs: {envs!r}"
155
156
 
156
157
 
157
- def test_active_milestone_comes_only_from_repository_variable():
158
+ def test_active_milestone_comes_from_the_repository_config_file():
159
+ """Issue #2123: the milestone is read from `.github/orbi.toml` on the
160
+ default branch — the file the workflow's checkout carries and the file
161
+ the engine itself reads — never from an `ORBI_ACTIVE_MILESTONE` Actions
162
+ variable (that variable no longer exists, so the App needs no "Actions
163
+ variables: write" permission). The checkout must be the default branch:
164
+ no `ref:` / `repository:` override."""
165
+ text = WORKFLOW_FILE.read_text(encoding="utf-8")
158
166
  envs = [
159
167
  step.get("env", {}) for step in steps_of(load_workflow())
160
168
  if isinstance(step.get("env"), dict)
161
169
  ]
162
- milestone_values = [env.get("ORBI_ACTIVE_MILESTONE") for env in envs]
163
- assert milestone_values == ["${{ vars.ORBI_ACTIVE_MILESTONE }}"]
164
- assert "v0.3.1" not in WORKFLOW_FILE.read_text(encoding="utf-8")
170
+ for env in envs:
171
+ assert "ORBI_ACTIVE_MILESTONE" not in env, envs
172
+ assert "vars.ORBI_ACTIVE_MILESTONE" not in text
173
+ checkouts = [
174
+ step for step in steps_of(load_workflow())
175
+ if str(step.get("uses", "")).startswith("actions/checkout")
176
+ ]
177
+ assert len(checkouts) == 1, checkouts
178
+ checkout_with = checkouts[0].get("with") or {}
179
+ assert "ref" not in checkout_with, checkout_with
180
+ assert "repository" not in checkout_with, checkout_with
181
+
182
+
183
+ def test_triage_script_reads_the_checked_out_repository_policy():
184
+ """The script's default milestone source is the repository policy file
185
+ the checkout provides, and the script carries no variable read at all."""
186
+ spec = importlib.util.spec_from_file_location("ci_failure_triage", TRIAGE_SCRIPT)
187
+ module = importlib.util.module_from_spec(spec)
188
+ spec.loader.exec_module(module)
189
+ assert module.REPO_CONFIG_PATH == REPO_ROOT / ".github" / "orbi.toml"
190
+ # The variable read that used to supply the title is gone: the title is
191
+ # a line in the policy file, so no environment variable is consulted.
192
+ assert (
193
+ 'os.environ.get("ORBI_ACTIVE_MILESTONE")'
194
+ not in TRIAGE_SCRIPT.read_text(encoding="utf-8")
195
+ )
165
196
 
166
197
 
167
198
  def test_no_step_can_fake_success():
@@ -224,6 +224,24 @@ def gh(monkeypatch):
224
224
  return fake
225
225
 
226
226
 
227
+ @pytest.fixture(autouse=True)
228
+ def repo_config(monkeypatch, tmp_path):
229
+ """The repository policy file the triage reads (Issue #2123).
230
+
231
+ `.github/orbi.toml` on the default branch — the file the workflow's
232
+ checkout carries and the same file the engine reads `active_milestone`
233
+ from — is now the triage's milestone source; the old
234
+ `ORBI_ACTIVE_MILESTONE` repository variable is gone. The module points
235
+ at a temp copy whose default has NO `active_milestone` line (the
236
+ unconfigured scene every `main()` test starts from); a milestone test
237
+ writes its own line and returns the path.
238
+ """
239
+ path = tmp_path / "orbi.toml"
240
+ path.write_text("clarify_thin_tickets = true\n", encoding="utf-8")
241
+ monkeypatch.setattr(mod, "REPO_CONFIG_PATH", path)
242
+ return path
243
+
244
+
227
245
  # ---------------------------------------------------------------------------
228
246
  # Fingerprint (the stable dedup key)
229
247
  # ---------------------------------------------------------------------------
@@ -498,8 +516,12 @@ def test_ticket_body_states_the_outcome_and_acceptance(gh, monkeypatch, tmp_path
498
516
  ) in body
499
517
 
500
518
 
501
- def test_active_milestone_title_resolves_to_open_milestone_number(gh, monkeypatch):
502
- monkeypatch.setenv("ORBI_ACTIVE_MILESTONE", "v0.3.1")
519
+ def test_active_milestone_from_the_repository_config_resolves_to_milestone_number(
520
+ repo_config, gh,
521
+ ):
522
+ """Issue #2123: the title comes from `.github/orbi.toml` on the default
523
+ branch (the file the engine reads), not from an Actions variable."""
524
+ repo_config.write_text('active_milestone = "v0.3.1"\n', encoding="utf-8")
503
525
  gh.routes[ep_milestones()] = [
504
526
  {"number": 7, "title": "v0.3.1", "state": "open"},
505
527
  ]
@@ -508,22 +530,49 @@ def test_active_milestone_title_resolves_to_open_milestone_number(gh, monkeypatc
508
530
  ) == 7
509
531
 
510
532
 
511
- def test_milestone_lookup_failure_logs_fallback_and_returns_none(gh, monkeypatch, capsys):
512
- monkeypatch.setenv("ORBI_ACTIVE_MILESTONE", "v0.3.1")
533
+ def test_repository_config_without_active_milestone_line_is_the_no_milestone_path(
534
+ repo_config, gh, capsys,
535
+ ):
536
+ """The file exists but declares no `active_milestone`: the current
537
+ "no milestone" behaviour is kept — one structured fallback line and no
538
+ Milestone lookup at all."""
539
+ assert mod.resolve_active_milestone("orbi-run", "test-repo") is None
540
+ assert "reason=active_milestone_not_configured" in capsys.readouterr().err
541
+ assert gh.calls == []
542
+
543
+
544
+ def test_missing_repository_config_logs_fallback(repo_config, gh, capsys):
545
+ repo_config.unlink()
546
+ assert mod.resolve_active_milestone("orbi-run", "test-repo") is None
547
+ assert "reason=repo_config_missing" in capsys.readouterr().err
548
+ assert gh.calls == []
549
+
550
+
551
+ def test_unparsable_repository_config_logs_fallback(repo_config, gh, capsys):
552
+ repo_config.write_text("active_milestone = [\n", encoding="utf-8")
553
+ assert mod.resolve_active_milestone("orbi-run", "test-repo") is None
554
+ assert "reason=repo_config_invalid" in capsys.readouterr().err
555
+ assert gh.calls == []
556
+
557
+
558
+ def test_milestone_lookup_failure_logs_fallback_and_returns_none(
559
+ repo_config, gh, capsys,
560
+ ):
561
+ repo_config.write_text('active_milestone = "v0.3.1"\n', encoding="utf-8")
513
562
  gh.error = (ep_milestones(), "HTTP 403")
514
563
  assert mod.resolve_active_milestone("orbi-run", "test-repo") is None
515
564
  assert "milestone_fallback" in capsys.readouterr().err
516
565
 
517
566
 
518
- def test_malformed_milestone_response_logs_fallback(gh, monkeypatch, capsys):
519
- monkeypatch.setenv("ORBI_ACTIVE_MILESTONE", "v0.3.1")
567
+ def test_malformed_milestone_response_logs_fallback(repo_config, gh, capsys):
568
+ repo_config.write_text('active_milestone = "v0.3.1"\n', encoding="utf-8")
520
569
  gh.routes[ep_milestones()] = {"milestones": []}
521
570
  assert mod.resolve_active_milestone("orbi-run", "test-repo") is None
522
571
  assert "reason=malformed_response" in capsys.readouterr().err
523
572
 
524
573
 
525
- def test_ambiguous_milestone_match_logs_fallback(gh, monkeypatch, capsys):
526
- monkeypatch.setenv("ORBI_ACTIVE_MILESTONE", "v0.3.1")
574
+ def test_ambiguous_milestone_match_logs_fallback(repo_config, gh, capsys):
575
+ repo_config.write_text('active_milestone = "v0.3.1"\n', encoding="utf-8")
527
576
  gh.routes[ep_milestones()] = [
528
577
  {"number": 7, "title": "v0.3.1"},
529
578
  {"number": 8, "title": "v0.3.1"},
@@ -532,8 +581,10 @@ def test_ambiguous_milestone_match_logs_fallback(gh, monkeypatch, capsys):
532
581
  assert "reason=ambiguous_or_malformed" in capsys.readouterr().err
533
582
 
534
583
 
535
- def test_create_issue_payload_includes_resolved_milestone(gh, monkeypatch, tmp_path):
536
- monkeypatch.setenv("ORBI_ACTIVE_MILESTONE", "v0.3.1")
584
+ def test_create_issue_payload_includes_resolved_milestone(
585
+ repo_config, gh, monkeypatch, tmp_path,
586
+ ):
587
+ repo_config.write_text('active_milestone = "v0.3.1"\n', encoding="utf-8")
537
588
  write_event(monkeypatch, tmp_path, run_event())
538
589
  gh.routes[ep_milestones()] = [{"number": 7, "title": "v0.3.1", "state": "open"}]
539
590
  gh.routes[ep_jobs()] = {"total_count": 1, "jobs": [job()]}
@@ -542,10 +593,10 @@ def test_create_issue_payload_includes_resolved_milestone(gh, monkeypatch, tmp_p
542
593
  assert gh.calls_to(ep_create(), "POST")[0]["payload"]["milestone"] == 7
543
594
 
544
595
 
545
- def test_missing_active_milestone_logs_fallback_and_creates_without_milestone(
546
- gh, monkeypatch, tmp_path, capsys
596
+ def test_declared_milestone_not_found_logs_fallback_and_creates_without_milestone(
597
+ repo_config, gh, monkeypatch, tmp_path, capsys,
547
598
  ):
548
- monkeypatch.setenv("ORBI_ACTIVE_MILESTONE", "v9.9.9")
599
+ repo_config.write_text('active_milestone = "v9.9.9"\n', encoding="utf-8")
549
600
  write_event(monkeypatch, tmp_path, run_event())
550
601
  gh.routes[ep_milestones()] = [{"number": 7, "title": "v0.3.1", "state": "open"}]
551
602
  gh.routes[ep_jobs()] = {"total_count": 1, "jobs": [job()]}
@@ -556,6 +607,21 @@ def test_missing_active_milestone_logs_fallback_and_creates_without_milestone(
556
607
  assert "milestone_fallback" in capsys.readouterr().err
557
608
 
558
609
 
610
+ def test_repository_config_without_active_milestone_creates_without_milestone(
611
+ repo_config, gh, monkeypatch, tmp_path, capsys,
612
+ ):
613
+ """The end-to-end no-line scene: the Issue is still filed, without a
614
+ milestone, and no Milestone list request is made at all."""
615
+ write_event(monkeypatch, tmp_path, run_event())
616
+ gh.routes[ep_jobs()] = {"total_count": 1, "jobs": [job()]}
617
+ gh.routes[ep_issues_list()] = []
618
+ mod.main()
619
+ payload = gh.calls_to(ep_create(), "POST")[0]["payload"]
620
+ assert "milestone" not in payload
621
+ assert gh.calls_to(ep_milestones(), "GET") == []
622
+ assert "reason=active_milestone_not_configured" in capsys.readouterr().err
623
+
624
+
559
625
  def test_two_different_job_failures_create_two_independent_issues(
560
626
  gh, monkeypatch, tmp_path
561
627
  ):
@@ -17,9 +17,10 @@ guessing. The value lands where the Runner actually reads it from (Issue
17
17
  unwritable config, a failed policy write) exits non-zero with one
18
18
  structured `milestone_set_failed reason=... fix=...` line on stderr
19
19
  and leaves the untouched target byte-identical;
20
- - the command does NOT sync the `ORBI_ACTIVE_MILESTONE` Actions
21
- variable itself: the Runner's preflight syncs it on the next tick
22
- (the bypass contract), and the success output says so.
20
+ - the command neither syncs nor reports an `ORBI_ACTIVE_MILESTONE`
21
+ Actions variable: since Issue #2123 the engine writes no Actions
22
+ variable at all (the CI triage reads `.github/orbi.toml` itself), so
23
+ the success output names only the claim scope the next tick applies.
23
24
 
24
25
  The command writes to GitHub only when the repository policy declares
25
26
  `active_milestone` (the contents PUT); the network calls are stubbed at
@@ -160,10 +161,13 @@ def test_milestone_set_success_rewrites_only_that_line(
160
161
  assert f"repo: {REPO}" in out
161
162
  # The output names the target actually written (Issue #1306).
162
163
  assert f"wrote: host config {config_path}" in out
163
- # The variable is NOT synced by this command: the next Runner tick
164
- # does it (the bypass contract) and the output makes that checkable.
165
- assert "ORBI_ACTIVE_MILESTONE" in out
166
- assert "next tick" in out
164
+ # Issue #2123: no Actions variable is written or advertised — the
165
+ # success output names only the claim scope the next tick applies.
166
+ assert "ORBI_ACTIVE_MILESTONE" not in out
167
+ assert "actions/variables" not in out
168
+ assert (
169
+ 'next: the Runner\'s next tick claims Issues from Milestone "v0.6.0"'
170
+ ) in out
167
171
  # No repository policy: the host config is the only place written
168
172
  # (exactly one read-only Milestone list, plus the policy probe).
169
173
  assert len(_policy_reads(calls)) == 1
@@ -29,7 +29,6 @@ import orbi.review_merge as review_merge
29
29
  import orbi.run_state as run_state
30
30
  import orbi.pi_session as pi_session
31
31
  from orbi.run_fields import RunFields
32
- import orbi.milestone as milestone
33
32
  from orbi import language
34
33
  from orbi import progress
35
34
  from orbi.delivery_labels import (
@@ -2485,9 +2484,6 @@ def test_main_continues_to_ready_delivery_after_scene_failure(
2485
2484
  raise AssertionError(f"unexpected command: {command}")
2486
2485
 
2487
2486
  monkeypatch.setattr(seam, "run_command", fake_run)
2488
- monkeypatch.setattr(
2489
- milestone, "sync_active_milestone_variable", lambda *a, **k: None,
2490
- )
2491
2487
  # The held slot is a real file: `main` names the selected delivery in
2492
2488
  # it right after selection (Issue #809).
2493
2489
  slot_file = tmp_path / "slot-1"
@@ -2561,7 +2557,6 @@ def test_main_ends_cleanly_after_reported_resume_failure(
2561
2557
  issue = {"number": 9, "title": "ship", "body": ""}
2562
2558
  released = []
2563
2559
 
2564
- monkeypatch.setattr(milestone, "sync_active_milestone_variable", lambda *a, **k: None)
2565
2560
  monkeypatch.setattr(seam, "refresh_cli_install", lambda *a, **k: None)
2566
2561
  monkeypatch.setattr(runner, "check_unit_drift", lambda *a, **k: None)
2567
2562
  monkeypatch.setattr(runner, "check_transport", lambda *a, **k: {})