orbi-cli 0.7.52__tar.gz → 0.7.54__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.
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/PKG-INFO +1 -1
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/pyproject.toml +1 -1
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/__init__.py +1 -1
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/amend_command.py +9 -2
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/answer.py +16 -7
- orbi_cli-0.7.54/src/orbi/blocked_comment.py +12 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/claim.py +111 -78
- orbi_cli-0.7.54/src/orbi/claim_race.py +238 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/clarify.py +11 -10
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/command_line.py +25 -2
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/delivery_labels.py +75 -90
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/draft.py +70 -6
- orbi_cli-0.7.54/src/orbi/draft_validate.py +48 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/example_config.toml +12 -4
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/extensions/draft_tools.ts +117 -11
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/failure_report.py +1 -1
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/github.py +15 -15
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/github_feedback.py +9 -12
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/implementation_delivery.py +57 -129
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/journal.py +1 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/language.py +5 -2
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/language_terms.py +33 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/merge_exec.py +19 -4
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/milestone.py +44 -42
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/notify.py +87 -122
- orbi_cli-0.7.54/src/orbi/notify_text.py +320 -0
- orbi_cli-0.7.54/src/orbi/plan_milestone.py +55 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/progress.py +60 -65
- orbi_cli-0.7.54/src/orbi/recoverable_failure.py +282 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/release_closeout.py +5 -6
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/release_run.py +2 -3
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/repo_config.py +20 -20
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/restart_scan.py +10 -11
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/resume_scan.py +59 -60
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/resume_verification.py +5 -8
- orbi_cli-0.7.54/src/orbi/review_ci_status.py +42 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/review_merge.py +43 -44
- orbi_cli-0.7.54/src/orbi/review_wait.py +298 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/run_state.py +17 -88
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/runner.py +22 -22
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/runner_health.py +66 -66
- orbi_cli-0.7.54/src/orbi/stop_comment.py +55 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/suggest.py +8 -5
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/ticket_command.py +5 -3
- orbi_cli-0.7.54/src/orbi/waiting_checks.py +167 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi_cli.egg-info/PKG-INFO +1 -1
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi_cli.egg-info/SOURCES.txt +14 -2
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_amend_command.py +22 -1
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_answer.py +122 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_apply_label_patch.py +7 -7
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_bootstrap_delivery.py +83 -20
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_bootstrap_release.py +4 -2
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_bootstrap_runner_milestone.py +39 -4
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_bootstrap_runner_outcome.py +6 -2
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_bootstrap_runner_tickets.py +3 -1
- orbi_cli-0.7.54/tests/test_claim_race.py +381 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_clarify.py +3 -3
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_constitution.py +31 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_coverage_gate.py +8 -5
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_delivery_labels.py +32 -22
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_docs_i18n.py +7 -27
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_docs_labels.py +57 -31
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_docs_site.py +7 -26
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_draft.py +115 -2
- orbi_cli-0.7.54/tests/test_draft_validate.py +150 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_github.py +10 -7
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_github_fakes.py +4 -2
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_human_review.py +25 -15
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_message_language.py +27 -14
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_notify.py +409 -87
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_progress.py +77 -12
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_progress_wiring.py +229 -25
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_release_docs_workflow.py +30 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_release_extraction.py +4 -2
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_repo_config.py +41 -15
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_resume_e2e.py +48 -18
- orbi_cli-0.7.54/tests/test_resume_other_executor.py +245 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_resume_pr.py +58 -16
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_review_merge.py +115 -59
- orbi_cli-0.7.54/tests/test_review_waiting.py +469 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_run_id_e2e.py +167 -1
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_runner_health.py +44 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_suggest.py +6 -2
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_user_summary.py +4 -2
- orbi_cli-0.7.54/tests/test_waiting_checks.py +313 -0
- orbi_cli-0.7.52/src/orbi/blocked_comment.py +0 -36
- orbi_cli-0.7.52/tests/test_ci_failure_issue_workflow.py +0 -222
- orbi_cli-0.7.52/tests/test_ci_failure_triage.py +0 -1597
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/LICENSE +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/README.md +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/docs/licenses/sustainable-use-license.md +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/setup.cfg +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/acceptance_section.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/base_ci_fix.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/base_ci_red.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/blocked_record.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/blocked_scan.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/body_steering.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/branch_reclaim.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/check_permission.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/checks.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/clarify_proposal.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/clarify_stop.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/cli.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/cli_commands.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/cli_doctor.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/cli_parser.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/cli_source.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/cli_status.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/cli_ticket_command.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/comment_kind.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/comment_rest_id.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/comment_trust.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/config.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/config_hint.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/delivery_comment.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/delivery_push.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/delivery_scene.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/draft_cli.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/draft_document.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/draft_marker.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/engine_source.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/extensions/clarify_verdict.ts +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/failure.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/failure_evidence.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/gh_response.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/git_identity.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/git_transport.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/gitops.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/human_review.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/language_failure.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/language_terms_criteria.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/language_terms_fix.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/launchd_deploy.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/merge_blocked.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/merge_gate.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/merge_handoff.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/milestone_command.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/milestone_errors.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/ops_delivery.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/pi_activity.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/pi_command.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/pi_exec.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/pi_idle.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/pi_process.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/pi_recovery.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/pi_session.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/pi_stream_log.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/pilot_setup.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/pilot_slots.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/pr_head_sync.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/pr_verification.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/progress_display.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/progress_outcome.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/progress_summary.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/provider_balance.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/question.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/release.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/release_comments.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/release_declaration.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/release_git.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/release_notes.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/requeue.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/review_rounds.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/review_verdict.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/run_fields.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/runner_marker.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/runner_source.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/scene.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/scheduler.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/scheduler_units.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/session_command.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/setup_checks.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/setup_config.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/source_pool.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/split_apply.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/split_command.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/status_observe.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/steering.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/stopped_scans.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/systemd_deploy.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/terminal_stops.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/tick_reads.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/ticket_command_registry.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/ticket_criteria.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/user_summary.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi/worktree_retention.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi_cli.egg-info/dependency_links.txt +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi_cli.egg-info/entry_points.txt +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/src/orbi_cli.egg-info/top_level.txt +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_agents_md.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_base_branch_failure.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_base_ci_red.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_blocked_comment.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_body_steering.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_bootstrap_adapters.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_bootstrap_pi.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_bootstrap_preflight.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_bootstrap_runner_claim_resume.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_bootstrap_runner_failure_report.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_bootstrap_runner_main.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_bootstrap_runner_prompt.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_bootstrap_runner_reconcile.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_bootstrap_runner_session.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_branch_reclaim.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_check_permission.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_ci_macos_workflow.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_ci_workflow.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_claude_plugin.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_cli_golden.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_cli_install.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_cli_milestone.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_cli_packaging.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_cli_source.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_cli_ticket_commands.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_command_receipt_contract.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_comment_identity.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_comment_readers_contract.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_comment_rest_id.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_comment_trust.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_concurrency_e2e.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_deliver_pr_fakes.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_delivery_branch_delete.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_delivery_scene.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_docker_docs.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_docker_entrypoint.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_docker_image_workflow.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_docs_issue_shapes.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_docs_mermaid.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_docs_releases.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_docs_safety_matrix.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_docs_single_source.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_draft_repo_view.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_engine_source.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_failure.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_failure_report.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_fix_needed_loop.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_gh_read_retry.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_gh_response.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_git_base_smoke.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_git_merge_smoke.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_git_network_retry.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_git_transport.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_gitops.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_gitops_fakes.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_import_graph.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_install_sh.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_issue_1367.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_issue_461.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_issue_template_config.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_journal.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_journal_events.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_launchd_deploy.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_license.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_merge_exec_extraction.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_milestone_command.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_ops_e2e.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_orbi.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_orbi_dashboard.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_orbi_exporter.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_patch_ratchet.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_pi_activity.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_pi_child_reap.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_pi_command.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_pi_exec.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_pi_extensions.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_pi_provider_templates.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_pi_recovery.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_pi_session.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_pilot_setup.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_pilot_slots.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_pr_issue_link_workflow.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_pr_verification.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_prerequisite_check.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_prompt_contract.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_public_contracts.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_public_helpers.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_publish_workflow.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_question.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_question_resume.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_release_ticket_templates.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_resume_continue_e2e.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_review_verdict.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_run_artifacts.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_run_fields.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_run_id_fixture.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_runner_config.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_runner_source_freshness.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_scene.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_scheduler.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_seam.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_setup_output_golden.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_size_ratchet.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_split_command.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_src_layout.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_status_observe.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_steering_review.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_suggest_repo_view.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_suite_hygiene.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_systemd_deploy.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_systemd_timer.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_tick_reads.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_ticket_command.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_ticket_command_registration.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_user_acceptance_contract.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/tests/test_versioned_comment_block.py +0 -0
- {orbi_cli-0.7.52 → orbi_cli-0.7.54}/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.
|
|
3
|
+
Version: 0.7.54
|
|
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.
|
|
47
|
+
version = "0.7.54"
|
|
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"
|
|
@@ -53,7 +53,9 @@ from orbi.acceptance_section import (
|
|
|
53
53
|
render_acceptance,
|
|
54
54
|
write_body,
|
|
55
55
|
)
|
|
56
|
-
from orbi.delivery_labels import
|
|
56
|
+
from orbi.delivery_labels import (
|
|
57
|
+
NEEDS_DETAIL_LABEL, READY_LABEL, has_delivery_state, label_names,
|
|
58
|
+
)
|
|
57
59
|
from orbi.github import comment_issue, edit_issue, issue_view
|
|
58
60
|
from orbi.ticket_command import (
|
|
59
61
|
CommandSpec,
|
|
@@ -164,7 +166,12 @@ def _criteria_apply(
|
|
|
164
166
|
body=appended_body(current, section),
|
|
165
167
|
),
|
|
166
168
|
)
|
|
167
|
-
|
|
169
|
+
# The retry queues the ticket ONLY while nothing has started
|
|
170
|
+
# (Issue #2309): the claim removes the dispatch label, so its
|
|
171
|
+
# absence no longer means "not yet dispatched".
|
|
172
|
+
current_labels = label_names(issue)
|
|
173
|
+
if dispatch_label not in current_labels and not has_delivery_state(
|
|
174
|
+
current_labels):
|
|
168
175
|
run_step(
|
|
169
176
|
"add the dispatch label",
|
|
170
177
|
lambda: edit_issue(
|
|
@@ -25,9 +25,10 @@ The answer is a RECORD command of the ticket-command layer
|
|
|
25
25
|
hidden block, not a `/orbi` line, so it has no typed spelling and no CLI
|
|
26
26
|
entry, and the layer's one receipt writer and idempotency rule are the ones
|
|
27
27
|
it uses (`_post_command_receipt`, `runner_receipt`). Engine output is told
|
|
28
|
-
apart by its RUN MARKER prefix (`ticket_command.carries_run_marker`)
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
apart by its RUN MARKER prefix (`ticket_command.carries_run_marker`) or its
|
|
29
|
+
own command receipt (`ticket_command.carries_command_receipt`), never by the
|
|
30
|
+
`<!-- orbi` marker the record itself carries -- otherwise the answer would
|
|
31
|
+
be skipped exactly like engine output and never read at all.
|
|
31
32
|
|
|
32
33
|
What the engine does with one answer, and nothing else:
|
|
33
34
|
|
|
@@ -96,6 +97,7 @@ from orbi.ticket_command import (
|
|
|
96
97
|
CommandSpec,
|
|
97
98
|
TicketCommandError,
|
|
98
99
|
_post_command_receipt,
|
|
100
|
+
carries_command_receipt,
|
|
99
101
|
carries_run_marker,
|
|
100
102
|
command_comment_key,
|
|
101
103
|
command_receipt_marker,
|
|
@@ -717,8 +719,9 @@ def _pending(
|
|
|
717
719
|
holds a merge. "Not carried out" is read from the ticket, never from
|
|
718
720
|
memory: the engine's one receipt (success or rejection) is keyed on the
|
|
719
721
|
answer comment, so a scanned answer is not pending. The other rules are
|
|
720
|
-
the scan's too: a run-marked comment
|
|
721
|
-
|
|
722
|
+
the scan's too: a run-marked comment or one of the engine's own command
|
|
723
|
+
receipts is engine output, an answer older than the newest stop is
|
|
724
|
+
stale, and the author must be trusted.
|
|
722
725
|
"""
|
|
723
726
|
try:
|
|
724
727
|
located = question.latest_stop(comments)
|
|
@@ -732,6 +735,9 @@ def _pending(
|
|
|
732
735
|
for comment in comments:
|
|
733
736
|
if not isinstance(comment, dict) or carries_run_marker(comment):
|
|
734
737
|
continue
|
|
738
|
+
if carries_command_receipt(
|
|
739
|
+
comment, command_receipt_marker(ANSWER_COMMAND)):
|
|
740
|
+
continue
|
|
735
741
|
if not _newer(comment, stop_comment, comments):
|
|
736
742
|
continue
|
|
737
743
|
blocks = answer_occurrences(comment.get("body"))
|
|
@@ -814,7 +820,7 @@ def refuse_superseded_merge(
|
|
|
814
820
|
|
|
815
821
|
def stop_for_fix_round(
|
|
816
822
|
number: int, *, repo: str, pr_number: int, reason: str, marker: str,
|
|
817
|
-
language_code: str,
|
|
823
|
+
language_code: str, ready_label: str = READY_LABEL,
|
|
818
824
|
) -> None:
|
|
819
825
|
"""Send the delivery to a fix round: the Issue comment, then the label.
|
|
820
826
|
|
|
@@ -830,7 +836,7 @@ def stop_for_fix_round(
|
|
|
830
836
|
)
|
|
831
837
|
apply_label_patch(
|
|
832
838
|
number, repo=repo, event=EVENT_FIX_NEEDED,
|
|
833
|
-
current_labels=issue_labels(number, repo),
|
|
839
|
+
current_labels=issue_labels(number, repo), ready_label=ready_label,
|
|
834
840
|
)
|
|
835
841
|
|
|
836
842
|
|
|
@@ -854,6 +860,9 @@ def apply_steering(
|
|
|
854
860
|
for comment in fresh:
|
|
855
861
|
if not isinstance(comment, dict) or carries_run_marker(comment):
|
|
856
862
|
continue
|
|
863
|
+
if carries_command_receipt(
|
|
864
|
+
comment, command_receipt_marker(ANSWER_COMMAND)):
|
|
865
|
+
continue
|
|
857
866
|
occurrences.extend(
|
|
858
867
|
(comment, block)
|
|
859
868
|
for block in answer_occurrences(comment.get("body"))
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""The ONE exit for a comment that blocks an Issue (Issues #1730, #2245).
|
|
2
|
+
|
|
3
|
+
Every blocked scene imports `post_blocked_comment` from here; the exit itself
|
|
4
|
+
lives in `orbi.stop_comment` since Issue #2287, because it now also sends the
|
|
5
|
+
stop's Telegram alert and this module sits at its size-ratchet ceiling. The
|
|
6
|
+
name stays importable from this module exactly as before — the same
|
|
7
|
+
re-export the `failure_evidence` split used (Issue #2202).
|
|
8
|
+
"""
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
from orbi.delivery_labels import EVENT_BLOCKED, READY_LABEL # noqa: F401
|
|
12
|
+
from orbi.stop_comment import post_blocked_comment as post_blocked_comment
|
|
@@ -40,7 +40,7 @@ from orbi.restart_scan import (
|
|
|
40
40
|
from orbi.resume_scan import (
|
|
41
41
|
ResumeHooks, pick_awaiting_merge_delivery, pick_resumable_delivery,
|
|
42
42
|
)
|
|
43
|
-
from orbi import language, user_summary
|
|
43
|
+
from orbi import language, review_wait, user_summary
|
|
44
44
|
from orbi.progress import run_marker
|
|
45
45
|
from orbi.release import release_target_milestone
|
|
46
46
|
from orbi.release_comments import _epic_audit, epic_audit_posted
|
|
@@ -454,9 +454,9 @@ def pick_issue(repo: str, active_milestone: str | None = None,
|
|
|
454
454
|
held: frozenset = frozenset(),
|
|
455
455
|
timeout: int | None = None,
|
|
456
456
|
raise_on_read_failure: bool = False) -> dict | None:
|
|
457
|
-
# A merged delivery keeps `ai-
|
|
458
|
-
#
|
|
459
|
-
#
|
|
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.
|
|
460
460
|
# The scan fetches the ready queue (not just the first Issue) and
|
|
461
461
|
# reads the native GitHub dependency per Issue: an
|
|
462
462
|
# Issue with open blockers is skipped — no claim, no label change,
|
|
@@ -590,6 +590,89 @@ def pick_next_issue(
|
|
|
590
590
|
return None
|
|
591
591
|
|
|
592
592
|
|
|
593
|
+
def _run_preclaim_sweeps(
|
|
594
|
+
repo: str, *, tick_run_id: str, repo_language: str,
|
|
595
|
+
milestone: str | None, dispatch_label: str, slot_dir: Path,
|
|
596
|
+
config: RunnerConfig | None, hooks: ResumeHooks,
|
|
597
|
+
) -> None:
|
|
598
|
+
"""The per-tick sweeps that run before the claim scans (bypasses).
|
|
599
|
+
|
|
600
|
+
Epic and Milestone reconciliation, the orphan-PR sweep and the three
|
|
601
|
+
automatic-recovery/stopped-ticket scans. Each is a pure bypass: a
|
|
602
|
+
broken GitHub query is journaled and never prevents the ordinary
|
|
603
|
+
delivery scans. Extracted from `pick_next_delivery` unchanged,
|
|
604
|
+
because the size ratchet (`tools/size_ratchet.py`) keeps that
|
|
605
|
+
function within its recorded ceiling (`claim.py::pick_next_delivery`).
|
|
606
|
+
"""
|
|
607
|
+
# Epic reconciliation is a per-tick bypass: a broken GitHub query or
|
|
608
|
+
# mutation must never prevent the ordinary delivery scans.
|
|
609
|
+
try:
|
|
610
|
+
reconcile_open_epics(repo, tick_run_id, repo_language)
|
|
611
|
+
except Exception:
|
|
612
|
+
LOGGER.exception("epic_reconcile_failed repo=%s", repo)
|
|
613
|
+
# Milestone reconciliation intentionally follows the Epic sweep so a
|
|
614
|
+
# just-closed final Epic can make its Milestone eligible this tick.
|
|
615
|
+
# A classified 401/404 leaves a cross-process retry marker: systemd
|
|
616
|
+
# starts a fresh Runner for every timer tick, so process-local
|
|
617
|
+
# suppression would still issue and log the same failure every time.
|
|
618
|
+
milestone_state_dir = slot_dir.parent
|
|
619
|
+
if milestone_bookkeeping.milestone_reconcile_due(
|
|
620
|
+
milestone_state_dir, repo,
|
|
621
|
+
):
|
|
622
|
+
try:
|
|
623
|
+
milestone_bookkeeping.reconcile_release_milestones(
|
|
624
|
+
repo, tick_run_id,
|
|
625
|
+
)
|
|
626
|
+
milestone_bookkeeping.clear_milestone_reconcile_failure(
|
|
627
|
+
milestone_state_dir, repo,
|
|
628
|
+
)
|
|
629
|
+
except milestone_bookkeeping.MilestoneReconcileError as exc:
|
|
630
|
+
milestone_bookkeeping.record_milestone_reconcile_failure(
|
|
631
|
+
milestone_state_dir, repo, exc,
|
|
632
|
+
)
|
|
633
|
+
except Exception:
|
|
634
|
+
LOGGER.exception("milestone_reconcile_failed repo=%s", repo)
|
|
635
|
+
# Orphan-PR reconciliation follows the same bypass
|
|
636
|
+
# pattern: a broken GitHub query must never prevent the ordinary
|
|
637
|
+
# delivery scans.
|
|
638
|
+
try:
|
|
639
|
+
reconcile_orphan_prs(
|
|
640
|
+
repo, tick_run_id, hooks=hooks,
|
|
641
|
+
language_code=repo_language,
|
|
642
|
+
status_url=config.status_url if config is not None else None,
|
|
643
|
+
)
|
|
644
|
+
except Exception:
|
|
645
|
+
LOGGER.exception("orphan_pr_reconcile_failed repo=%s", repo)
|
|
646
|
+
# The two automatic-recovery scans run BEFORE the resume scan: an
|
|
647
|
+
# `ai-blocked` Issue is terminal for every claim scan, and a
|
|
648
|
+
# recovered precondition must put it back on the resumable path in
|
|
649
|
+
# THIS tick — the missing check-read permission (Issue #1918), then
|
|
650
|
+
# the base-branch-red scan (Issue #1825). Bypasses like the sweeps
|
|
651
|
+
# above: a failed scan never prevents the ordinary delivery scans.
|
|
652
|
+
try:
|
|
653
|
+
check_permission.recover(repo)
|
|
654
|
+
except Exception:
|
|
655
|
+
LOGGER.exception("check_permission_scan_failed repo=%s", repo)
|
|
656
|
+
try:
|
|
657
|
+
base_ci_fix.recover(
|
|
658
|
+
repo, language_code=repo_language, milestone=milestone,
|
|
659
|
+
dispatch_label=dispatch_label,
|
|
660
|
+
)
|
|
661
|
+
except Exception:
|
|
662
|
+
LOGGER.exception("base_ci_red_scan_failed repo=%s", repo)
|
|
663
|
+
# The stopped-ticket scans: `ai-needs-detail` carries the typed
|
|
664
|
+
# in-ticket commands (`/orbi split`, Issue #1927) and the three
|
|
665
|
+
# delivery stops carry the stop answer (Issue #2221). A bypass like
|
|
666
|
+
# the two recovery scans above.
|
|
667
|
+
try:
|
|
668
|
+
stopped_scans.run(
|
|
669
|
+
repo, dispatch_label=dispatch_label,
|
|
670
|
+
language_code=repo_language,
|
|
671
|
+
)
|
|
672
|
+
except Exception:
|
|
673
|
+
LOGGER.exception("ticket_command_scan_failed repo=%s", repo)
|
|
674
|
+
|
|
675
|
+
|
|
593
676
|
def pick_next_delivery(
|
|
594
677
|
repos: Sequence[str], slot_dir: Path, max_concurrency: int,
|
|
595
678
|
active_milestone: str | None = None, config: RunnerConfig | None = None,
|
|
@@ -621,6 +704,10 @@ def pick_next_delivery(
|
|
|
621
704
|
resume states, and running an in-flight or opened-PR delivery to
|
|
622
705
|
completion is never gated by a Milestone change.
|
|
623
706
|
"""
|
|
707
|
+
# Issue #2305: the deliveries this tick's opened-PR scan found waiting
|
|
708
|
+
# only for their own checks (an out-parameter of that scan, no second
|
|
709
|
+
# query). They are the bounded reason to hold the fresh claim below.
|
|
710
|
+
review_waiting: list[dict] = []
|
|
624
711
|
# The sweep runs before a delivery is selected, so a fresh tick has no
|
|
625
712
|
# task attempt yet. Give its auditable comments one tick-scoped marker;
|
|
626
713
|
# a selected delivery will replace this binding with its own attempt id.
|
|
@@ -634,97 +721,43 @@ def pick_next_delivery(
|
|
|
634
721
|
milestone, dispatch_label = _repo_scan_keys(
|
|
635
722
|
config, repo, active_milestone,
|
|
636
723
|
)
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
LOGGER.exception("epic_reconcile_failed repo=%s", repo)
|
|
643
|
-
# Milestone reconciliation intentionally follows the Epic sweep so a
|
|
644
|
-
# just-closed final Epic can make its Milestone eligible this tick.
|
|
645
|
-
# A classified 401/404 leaves a cross-process retry marker: systemd
|
|
646
|
-
# starts a fresh Runner for every timer tick, so process-local
|
|
647
|
-
# suppression would still issue and log the same failure every time.
|
|
648
|
-
milestone_state_dir = slot_dir.parent
|
|
649
|
-
if milestone_bookkeeping.milestone_reconcile_due(
|
|
650
|
-
milestone_state_dir, repo,
|
|
651
|
-
):
|
|
652
|
-
try:
|
|
653
|
-
milestone_bookkeeping.reconcile_release_milestones(
|
|
654
|
-
repo, tick_run_id,
|
|
655
|
-
)
|
|
656
|
-
milestone_bookkeeping.clear_milestone_reconcile_failure(
|
|
657
|
-
milestone_state_dir, repo,
|
|
658
|
-
)
|
|
659
|
-
except milestone_bookkeeping.MilestoneReconcileError as exc:
|
|
660
|
-
milestone_bookkeeping.record_milestone_reconcile_failure(
|
|
661
|
-
milestone_state_dir, repo, exc,
|
|
662
|
-
)
|
|
663
|
-
except Exception:
|
|
664
|
-
LOGGER.exception("milestone_reconcile_failed repo=%s", repo)
|
|
665
|
-
# Orphan-PR reconciliation follows the same bypass
|
|
666
|
-
# pattern: a broken GitHub query must never prevent the ordinary
|
|
667
|
-
# delivery scans.
|
|
668
|
-
try:
|
|
669
|
-
reconcile_orphan_prs(
|
|
670
|
-
repo, tick_run_id, hooks=hooks,
|
|
671
|
-
language_code=repo_language,
|
|
672
|
-
status_url=config.status_url if config is not None else None,
|
|
673
|
-
)
|
|
674
|
-
except Exception:
|
|
675
|
-
LOGGER.exception("orphan_pr_reconcile_failed repo=%s", repo)
|
|
676
|
-
# The two automatic-recovery scans run BEFORE the resume scan: an
|
|
677
|
-
# `ai-blocked` Issue is terminal for every claim scan, and a
|
|
678
|
-
# recovered precondition must put it back on the resumable path in
|
|
679
|
-
# THIS tick — the missing check-read permission (Issue #1918), then
|
|
680
|
-
# the base-branch-red scan (Issue #1825). Bypasses like the sweeps
|
|
681
|
-
# above: a failed scan never prevents the ordinary delivery scans.
|
|
682
|
-
try:
|
|
683
|
-
check_permission.recover(repo)
|
|
684
|
-
except Exception:
|
|
685
|
-
LOGGER.exception("check_permission_scan_failed repo=%s", repo)
|
|
686
|
-
try:
|
|
687
|
-
base_ci_fix.recover(
|
|
688
|
-
repo, language_code=repo_language, milestone=milestone,
|
|
689
|
-
dispatch_label=dispatch_label,
|
|
690
|
-
)
|
|
691
|
-
except Exception:
|
|
692
|
-
LOGGER.exception("base_ci_red_scan_failed repo=%s", repo)
|
|
693
|
-
# The stopped-ticket scans: `ai-needs-detail` carries the typed
|
|
694
|
-
# in-ticket commands (`/orbi split`, Issue #1927) and the three
|
|
695
|
-
# delivery stops carry the stop answer (Issue #2221). A bypass like
|
|
696
|
-
# the two recovery scans above.
|
|
697
|
-
try:
|
|
698
|
-
stopped_scans.run(
|
|
699
|
-
repo, dispatch_label=dispatch_label,
|
|
700
|
-
language_code=repo_language,
|
|
701
|
-
)
|
|
702
|
-
except Exception:
|
|
703
|
-
LOGGER.exception("ticket_command_scan_failed repo=%s", repo)
|
|
724
|
+
_run_preclaim_sweeps(
|
|
725
|
+
repo, tick_run_id=tick_run_id, repo_language=repo_language,
|
|
726
|
+
milestone=milestone, dispatch_label=dispatch_label,
|
|
727
|
+
slot_dir=slot_dir, config=config, hooks=hooks,
|
|
728
|
+
)
|
|
704
729
|
selected = pick_resumable_delivery(
|
|
705
730
|
repo, slot_dir, max_concurrency,
|
|
706
731
|
repo_dir=config.repo_dir if config is not None else None,
|
|
707
732
|
hooks=hooks, language_code=repo_language,
|
|
708
733
|
ready_label=dispatch_label,
|
|
709
734
|
status_url=config.status_url if config is not None else None,
|
|
735
|
+
review_waiting=review_waiting,
|
|
710
736
|
)
|
|
711
737
|
if selected is not None:
|
|
712
738
|
issue, scene = selected
|
|
713
739
|
return repo, issue, scene
|
|
740
|
+
# The restart scan keys on ai-in-progress alone (Issue #2309: the claim
|
|
741
|
+
# removes the dispatch label), so it needs no repository policy read.
|
|
714
742
|
for repo in repos:
|
|
715
|
-
_, dispatch_label = _repo_scan_keys(config, repo, active_milestone)
|
|
716
743
|
issue = pick_in_progress_issue(
|
|
717
744
|
repo, slot_dir, max_concurrency,
|
|
718
|
-
dispatch_label=dispatch_label,
|
|
719
745
|
repo_dir=config.repo_dir if config is not None else None,
|
|
720
746
|
)
|
|
721
747
|
if issue is not None:
|
|
722
748
|
return repo, issue, None
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
749
|
+
# Issue #2305: the bounded exception to Issue #1473 — a delivery that
|
|
750
|
+
# passed review and only waits for its checks keeps the last free slot.
|
|
751
|
+
# ONLY the fresh claim is held: the restart resume above and the
|
|
752
|
+
# awaiting-merge re-check below move as they always did, so an idle
|
|
753
|
+
# tick still merges a delivery a maintainer already answered.
|
|
754
|
+
if not review_wait.hold_fresh_claim(
|
|
755
|
+
review_waiting, slot_dir, max_concurrency):
|
|
756
|
+
for repo in repos:
|
|
757
|
+
held = slot_held_deliveries(slot_dir, max_concurrency)
|
|
758
|
+
issue = pick_ready_issue(repo, active_milestone, config, held)
|
|
759
|
+
if issue is not None:
|
|
760
|
+
return repo, issue, None
|
|
728
761
|
# Issue #1745: a delivery waiting for a maintainer is re-checked LAST —
|
|
729
762
|
# only on a tick where nothing above could move. Everything it needs
|
|
730
763
|
# (the merge gate, the de-duplicated #1422 handoff) already exists; it
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
"""The fresh-claim race between two Orbi executors (Issue #2298).
|
|
2
|
+
|
|
3
|
+
One Issue can be served by two Orbi deployments under two GitHub accounts —
|
|
4
|
+
an Orbi Cloud sandbox and a self-hosted engine are the observed pair — and
|
|
5
|
+
both claim it: the ai-in-progress label each reads is written by the other
|
|
6
|
+
side only later (self-hosted claimed at 04:31:45, Cloud at 04:31:52, and
|
|
7
|
+
Cloud saw no label). Two guards cover the race, in this order:
|
|
8
|
+
|
|
9
|
+
- claim_window_yield — the label or the stable branch the OTHER side wrote
|
|
10
|
+
before our claim write (the pre-#2298 guard, moved here unchanged);
|
|
11
|
+
- yield_to_another_executor — after both sides posted their own started
|
|
12
|
+
comment and before either runs Pi, the started comments themselves
|
|
13
|
+
(other_executor_live_started).
|
|
14
|
+
|
|
15
|
+
No new label, no new marker and no state store: GitHub's own comment list is
|
|
16
|
+
the state both sides read, and both reach the same answer because they read
|
|
17
|
+
the same list. A yield is not a failure — no failure comment, no label
|
|
18
|
+
change, no orbi#2292 streak — and no staleness timeout is added: a removed
|
|
19
|
+
deployment is a human relabel (orbi#2256), while same-host instances stay
|
|
20
|
+
governed by the orbi#1319 claim.lock.
|
|
21
|
+
|
|
22
|
+
The module is a sibling of the claim domain (Article 3): it imports the
|
|
23
|
+
journal seam and the comment readers, never orbi.runner.
|
|
24
|
+
"""
|
|
25
|
+
from __future__ import annotations
|
|
26
|
+
|
|
27
|
+
from collections.abc import Callable
|
|
28
|
+
|
|
29
|
+
from orbi import clarify
|
|
30
|
+
from orbi.comment_kind import (
|
|
31
|
+
COMMENT_KIND_FAILURE,
|
|
32
|
+
COMMENT_KIND_MERGED,
|
|
33
|
+
COMMENT_KIND_REQUEUED,
|
|
34
|
+
COMMENT_KIND_STARTED,
|
|
35
|
+
comment_kind,
|
|
36
|
+
)
|
|
37
|
+
from orbi.comment_trust import trusted_comments
|
|
38
|
+
from orbi.config import RunnerConfig
|
|
39
|
+
from orbi.github import (
|
|
40
|
+
authenticated_github_login,
|
|
41
|
+
has_in_progress_label,
|
|
42
|
+
strip_bot_suffix,
|
|
43
|
+
)
|
|
44
|
+
from orbi.gitops import stable_branch_exists
|
|
45
|
+
from orbi.journal import event
|
|
46
|
+
|
|
47
|
+
# The kinds that END an account's own started run. Paired by ACCOUNT, never
|
|
48
|
+
# by run marker: a failure comment does not always carry the marker (the
|
|
49
|
+
# self-hosted failure on paseo-orbi#61 has none), and another account's
|
|
50
|
+
# terminal comment must never end this one's run (Cloud's 05:11 failure on
|
|
51
|
+
# paseo-orbi#62 landed while the self-hosted run was still reviewing).
|
|
52
|
+
_RUN_END_KINDS = frozenset({
|
|
53
|
+
COMMENT_KIND_FAILURE, COMMENT_KIND_MERGED, COMMENT_KIND_REQUEUED,
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def _with_comment_author(comment: dict) -> dict:
|
|
58
|
+
"""The comment carrying GraphQL's "author" (Issue #2298).
|
|
59
|
+
|
|
60
|
+
GitHub names one comment author twice: "author.login" in the GraphQL
|
|
61
|
+
read ("gh issue view --json comments") and "user.login" in the REST
|
|
62
|
+
list the progress publisher reads with complete pagination. Every
|
|
63
|
+
comment reader in orbi reads "author", so the REST shape is renamed
|
|
64
|
+
here once and the trust rule and the scan stay shape-agnostic.
|
|
65
|
+
"""
|
|
66
|
+
if "author" in comment or not isinstance(comment.get("user"), dict):
|
|
67
|
+
return comment
|
|
68
|
+
return {**comment, "author": comment["user"]}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def _author_login(comment: dict) -> str | None:
|
|
72
|
+
"""The author login of one comment, or None when it carries none."""
|
|
73
|
+
author = comment.get("author")
|
|
74
|
+
login = author.get("login") if isinstance(author, dict) else None
|
|
75
|
+
return login if isinstance(login, str) else None
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def _comment_account(comment: dict) -> str:
|
|
79
|
+
"""The account that wrote the comment, [bot] suffix normalized.
|
|
80
|
+
|
|
81
|
+
Both readers hand this only comments carrying an author login: the
|
|
82
|
+
trusted mode refuses one without it (comment_is_trusted) and the
|
|
83
|
+
untrusted mode filters on `_author_login`.
|
|
84
|
+
"""
|
|
85
|
+
return strip_bot_suffix(comment["author"]["login"])
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def other_executor_live_started(
|
|
89
|
+
comments: list[dict], *, repo: str, require_trust: bool = True,
|
|
90
|
+
) -> dict | None:
|
|
91
|
+
"""Another executor's started comment that is still live, or None.
|
|
92
|
+
|
|
93
|
+
The race is decided from the comment list, and both sides reach the
|
|
94
|
+
same answer because they read the same list:
|
|
95
|
+
|
|
96
|
+
- the list ORDER is the timeline (oldest first). createdAt is only
|
|
97
|
+
second-resolution and two starts in one second are common, so it is
|
|
98
|
+
never compared: a same-second start is resolved by position;
|
|
99
|
+
- a started comment is live from its own position until a LATER
|
|
100
|
+
merged/failure/requeued comment by the SAME account ends it; another
|
|
101
|
+
account's terminal comment never ends it;
|
|
102
|
+
- a started comment posted while ANOTHER account already had a live
|
|
103
|
+
started comment is the yielding side of the race and is never live,
|
|
104
|
+
so a yielded start can never block a later claim by either side;
|
|
105
|
+
- with `require_trust` (the fresh claim, orbi#2298) the author must
|
|
106
|
+
pass the trusted-author rule every comment reader uses
|
|
107
|
+
(comment_trust.trusted_comments): the run marker does not
|
|
108
|
+
authenticate an author, so a copied marker from a drive-by account
|
|
109
|
+
can never stall a CLAIM. The resume guard (orbi#2299) turns the rule
|
|
110
|
+
off because it must yield to a run whose author this deployment does
|
|
111
|
+
not trust at all — an Orbi Cloud bot has no repository write
|
|
112
|
+
permission here, which is exactly why its scene lookup fails — and a
|
|
113
|
+
yield never blocks the Issue: the next tick re-reads.
|
|
114
|
+
|
|
115
|
+
The surviving live start of an account other than the local one (the
|
|
116
|
+
active gh credential's login) is returned; None means no other
|
|
117
|
+
executor is running this Issue. Our own account is never "another
|
|
118
|
+
executor": a same-account restart is this deployment's own run. A
|
|
119
|
+
re-read that lags our own post (our started comment missing) leaves
|
|
120
|
+
the other executor's live start standing - the order cannot be
|
|
121
|
+
established, so this side yields; with no other live start there is
|
|
122
|
+
nothing to yield to.
|
|
123
|
+
|
|
124
|
+
A pure scan over an already-fetched comment list (either GitHub shape).
|
|
125
|
+
"""
|
|
126
|
+
normalized = [_with_comment_author(comment) for comment in comments]
|
|
127
|
+
accounts = (
|
|
128
|
+
trusted_comments(normalized, repo=repo) if require_trust
|
|
129
|
+
else [comment for comment in normalized
|
|
130
|
+
if _author_login(comment) is not None]
|
|
131
|
+
)
|
|
132
|
+
live: dict[str, dict] = {}
|
|
133
|
+
for comment in accounts:
|
|
134
|
+
kind = comment_kind(comment.get("body"))
|
|
135
|
+
if kind != COMMENT_KIND_STARTED and kind not in _RUN_END_KINDS:
|
|
136
|
+
continue
|
|
137
|
+
account = _comment_account(comment)
|
|
138
|
+
if kind in _RUN_END_KINDS:
|
|
139
|
+
live.pop(account, None)
|
|
140
|
+
elif not any(account != other for other in live):
|
|
141
|
+
live[account] = comment
|
|
142
|
+
# else: posted after another account's live start - the yielding
|
|
143
|
+
# side, never live itself.
|
|
144
|
+
if not live:
|
|
145
|
+
# Nobody started: there is nothing to compare and no reason to
|
|
146
|
+
# read the local identity at all (the common, uncontended claim).
|
|
147
|
+
return None
|
|
148
|
+
own = strip_bot_suffix(authenticated_github_login())
|
|
149
|
+
return next(
|
|
150
|
+
(comment for account, comment in live.items() if account != own),
|
|
151
|
+
None,
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
def claim_window_yield(
|
|
156
|
+
issue: dict, facts, config: RunnerConfig, *, source_repo: str,
|
|
157
|
+
run_id: str,
|
|
158
|
+
) -> str | None:
|
|
159
|
+
"""The delivery kind a yield needs when the prepare window was claimed.
|
|
160
|
+
|
|
161
|
+
"claim-yielded" when another instance claimed this Issue inside the
|
|
162
|
+
window, "needs-detail" when the thin-ticket gate stops it, None when
|
|
163
|
+
the claim may proceed. The pickup scan and the in-progress recheck
|
|
164
|
+
both predate freeze_base (a seconds-long network round trip), so a
|
|
165
|
+
label - or the stable branch - appearing inside that window means
|
|
166
|
+
another instance got there first: yield without a label write, a
|
|
167
|
+
comment or anything else that could interrupt the winner's in-flight
|
|
168
|
+
delivery; the next tick's scan picks work up again on its own. The
|
|
169
|
+
predicate keys on the repository's dispatch label (#527), not the
|
|
170
|
+
default constant - a custom-label repository's tickets never carry
|
|
171
|
+
ai-ready, and the guard must guard them too.
|
|
172
|
+
"""
|
|
173
|
+
number = int(issue["number"])
|
|
174
|
+
if (facts.in_progress or facts.dispatch_label not in facts.claim_labels
|
|
175
|
+
or facts.takeover_pr is not None):
|
|
176
|
+
return None
|
|
177
|
+
if has_in_progress_label(number, source_repo):
|
|
178
|
+
event("claim_yield", issue=number, reason="in_progress_label")
|
|
179
|
+
return "claim-yielded"
|
|
180
|
+
if not facts.stable_branch_present and stable_branch_exists(
|
|
181
|
+
config.repo_dir, facts.stable_branch,
|
|
182
|
+
):
|
|
183
|
+
event("claim_yield", issue=number, reason="stable_branch_appeared")
|
|
184
|
+
return "claim-yielded"
|
|
185
|
+
if config.clarify_thin_tickets and not clarify.enforce(
|
|
186
|
+
issue, config, source_repo, run_id):
|
|
187
|
+
return "needs-detail"
|
|
188
|
+
return None
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
def resume_yields_to_another_executor(
|
|
192
|
+
*, issue: int, source_repo: str, comments: list[dict],
|
|
193
|
+
) -> bool:
|
|
194
|
+
"""Yield this round when another executor's run owns the opened PR.
|
|
195
|
+
|
|
196
|
+
The opened-PR scan (orbi#2299) reads this BEFORE `resume_scene` and
|
|
197
|
+
before the external-PR route: the scene of a delivery another
|
|
198
|
+
deployment is running is not this executor's to recover. Without the
|
|
199
|
+
check a self-hosted engine that does not trust the Cloud bot's
|
|
200
|
+
comments found no trusted scene at all and wrote the
|
|
201
|
+
`failure.scene_blocked` stop onto a live Cloud delivery — and Cloud,
|
|
202
|
+
which trusts the owner, would resume the self-hosted PR. Both sides now
|
|
203
|
+
yield to the live run the comment list names.
|
|
204
|
+
|
|
205
|
+
The trust rule is OFF (see `other_executor_live_started`): the other
|
|
206
|
+
executor's account need not be one this repository trusts, and that
|
|
207
|
+
is the observed pair. A yield is not a failure — no label write, no
|
|
208
|
+
comment, nothing pushed, and no worktree of the other run is touched
|
|
209
|
+
(this executor never opened one for it); the caller moves on to the
|
|
210
|
+
next candidate.
|
|
211
|
+
"""
|
|
212
|
+
if other_executor_live_started(
|
|
213
|
+
comments, repo=source_repo, require_trust=False) is None:
|
|
214
|
+
return False
|
|
215
|
+
event("claim_yield", issue=issue, reason="other_executor_live")
|
|
216
|
+
return True
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
def yield_to_another_executor(
|
|
220
|
+
*, issue: int, source_repo: str, comments: list[dict],
|
|
221
|
+
retire: Callable[[], None],
|
|
222
|
+
) -> bool:
|
|
223
|
+
"""Yield this round when another executor already started the Issue.
|
|
224
|
+
|
|
225
|
+
Runs AFTER this executor posted its own started comment and BEFORE the
|
|
226
|
+
progress comment and Pi: the loser stops here instead of running. It
|
|
227
|
+
keeps the labels, keeps its own started comment, pushes nothing and
|
|
228
|
+
removes only its own local worktree (retire) - the winner's labels and
|
|
229
|
+
branch are left untouched. A yield is not a failure: no failure
|
|
230
|
+
comment, no label change and no orbi#2292 streak. No staleness timeout
|
|
231
|
+
is added - a removed deployment is a human relabel (orbi#2256) - and
|
|
232
|
+
same-host instances stay governed by the orbi#1319 claim.lock.
|
|
233
|
+
"""
|
|
234
|
+
if other_executor_live_started(comments, repo=source_repo) is None:
|
|
235
|
+
return False
|
|
236
|
+
event("claim_yield", issue=issue, reason="other_executor_started")
|
|
237
|
+
retire()
|
|
238
|
+
return True
|
|
@@ -496,12 +496,12 @@ def stop(issue: dict, verdict: ClarifyVerdict, run_id: str, *,
|
|
|
496
496
|
(`ai-ready` by default, #527) and the run's message language.
|
|
497
497
|
"""
|
|
498
498
|
try:
|
|
499
|
-
|
|
500
|
-
issue
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
499
|
+
body = render_comment(
|
|
500
|
+
issue, verdict, run_id, ready_label=ready_label,
|
|
501
|
+
language_code=language_code, status_url=status_url,
|
|
502
|
+
)
|
|
503
|
+
comment_url = comment_issue(
|
|
504
|
+
issue["number"], repo=source_repo, body=body,
|
|
505
505
|
)
|
|
506
506
|
edit_issue(
|
|
507
507
|
issue["number"], repo=source_repo,
|
|
@@ -516,10 +516,11 @@ def stop(issue: dict, verdict: ClarifyVerdict, run_id: str, *,
|
|
|
516
516
|
# Tell the person outside GitHub (Issue #1673): OUTSIDE the try (a
|
|
517
517
|
# notify problem must never turn the failed-write branch into "deliver
|
|
518
518
|
# anyway") and every stop sends — the old `ai-needs-detail` can still
|
|
519
|
-
# be on a ticket someone just re-readied.
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
issue.get("title"),
|
|
519
|
+
# be on a ticket someone just re-readied. The alert quotes the comment
|
|
520
|
+
# this call posted and links it (Issue #2287).
|
|
521
|
+
notify.needs_detail_stop(
|
|
522
|
+
source_repo, issue["number"], issue.get("title"), comment_url=comment_url,
|
|
523
|
+
ready_label=ready_label, language_code=language_code,
|
|
523
524
|
)
|
|
524
525
|
event(
|
|
525
526
|
"clarify_needs_detail", issue=issue["number"],
|