orbi-cli 0.7.53__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.53 → orbi_cli-0.7.54}/PKG-INFO +1 -1
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/pyproject.toml +1 -1
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/__init__.py +1 -1
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/amend_command.py +9 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/answer.py +2 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/claim.py +111 -78
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/delivery_labels.py +75 -90
- {orbi_cli-0.7.53 → 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.53 → orbi_cli-0.7.54}/src/orbi/example_config.toml +12 -4
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/extensions/draft_tools.ts +117 -11
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/failure_report.py +1 -1
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/github_feedback.py +9 -12
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/implementation_delivery.py +6 -1
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/journal.py +1 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/language_terms.py +9 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/merge_exec.py +19 -4
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/milestone.py +44 -32
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/notify.py +3 -4
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/notify_text.py +6 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/progress.py +19 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/release_closeout.py +5 -6
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/release_run.py +2 -3
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/repo_config.py +20 -20
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/restart_scan.py +10 -11
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/resume_scan.py +17 -18
- {orbi_cli-0.7.53 → 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.53 → 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.53 → orbi_cli-0.7.54}/src/orbi/run_state.py +17 -88
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/runner.py +22 -21
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/runner_health.py +66 -66
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/suggest.py +8 -5
- orbi_cli-0.7.54/src/orbi/waiting_checks.py +167 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi_cli.egg-info/PKG-INFO +1 -1
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi_cli.egg-info/SOURCES.txt +7 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_amend_command.py +22 -1
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_apply_label_patch.py +7 -7
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_bootstrap_delivery.py +83 -20
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_bootstrap_release.py +4 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_bootstrap_runner_milestone.py +39 -4
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_bootstrap_runner_outcome.py +6 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_bootstrap_runner_tickets.py +3 -1
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_constitution.py +31 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_coverage_gate.py +8 -5
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_delivery_labels.py +32 -22
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_docs_i18n.py +7 -27
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_docs_labels.py +57 -31
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_docs_site.py +7 -26
- {orbi_cli-0.7.53 → 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.53 → orbi_cli-0.7.54}/tests/test_github.py +10 -7
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_github_fakes.py +4 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_human_review.py +25 -15
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_notify.py +16 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_progress_wiring.py +29 -3
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_release_docs_workflow.py +30 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_release_extraction.py +4 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_repo_config.py +41 -15
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_resume_e2e.py +19 -10
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_resume_pr.py +58 -16
- {orbi_cli-0.7.53 → 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.53 → orbi_cli-0.7.54}/tests/test_runner_health.py +44 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_suggest.py +6 -2
- orbi_cli-0.7.54/tests/test_waiting_checks.py +313 -0
- orbi_cli-0.7.53/tests/test_ci_failure_issue_workflow.py +0 -222
- orbi_cli-0.7.53/tests/test_ci_failure_triage.py +0 -1597
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/LICENSE +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/README.md +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/docs/licenses/sustainable-use-license.md +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/setup.cfg +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/acceptance_section.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/base_ci_fix.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/base_ci_red.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/blocked_comment.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/blocked_record.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/blocked_scan.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/body_steering.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/branch_reclaim.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/check_permission.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/checks.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/claim_race.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/clarify.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/clarify_proposal.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/clarify_stop.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/cli.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/cli_commands.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/cli_doctor.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/cli_parser.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/cli_source.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/cli_status.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/cli_ticket_command.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/command_line.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/comment_kind.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/comment_rest_id.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/comment_trust.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/config.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/config_hint.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/delivery_comment.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/delivery_push.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/delivery_scene.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/draft_cli.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/draft_document.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/draft_marker.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/engine_source.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/extensions/clarify_verdict.ts +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/failure.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/failure_evidence.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/gh_response.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/git_identity.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/git_transport.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/github.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/gitops.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/human_review.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/language.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/language_failure.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/language_terms_criteria.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/language_terms_fix.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/launchd_deploy.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/merge_blocked.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/merge_gate.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/merge_handoff.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/milestone_command.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/milestone_errors.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/ops_delivery.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/pi_activity.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/pi_command.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/pi_exec.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/pi_idle.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/pi_process.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/pi_recovery.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/pi_session.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/pi_stream_log.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/pilot_setup.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/pilot_slots.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/plan_milestone.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/pr_head_sync.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/pr_verification.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/progress_display.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/progress_outcome.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/progress_summary.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/provider_balance.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/question.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/recoverable_failure.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/release.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/release_comments.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/release_declaration.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/release_git.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/release_notes.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/requeue.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/review_rounds.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/review_verdict.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/run_fields.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/runner_marker.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/runner_source.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/scene.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/scheduler.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/scheduler_units.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/session_command.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/setup_checks.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/setup_config.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/source_pool.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/split_apply.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/split_command.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/status_observe.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/steering.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/stop_comment.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/stopped_scans.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/systemd_deploy.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/terminal_stops.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/tick_reads.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/ticket_command.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/ticket_command_registry.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/ticket_criteria.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/user_summary.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi/worktree_retention.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi_cli.egg-info/dependency_links.txt +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi_cli.egg-info/entry_points.txt +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/src/orbi_cli.egg-info/top_level.txt +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_agents_md.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_answer.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_base_branch_failure.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_base_ci_red.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_blocked_comment.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_body_steering.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_bootstrap_adapters.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_bootstrap_pi.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_bootstrap_preflight.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_bootstrap_runner_claim_resume.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_bootstrap_runner_failure_report.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_bootstrap_runner_main.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_bootstrap_runner_prompt.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_bootstrap_runner_reconcile.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_bootstrap_runner_session.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_branch_reclaim.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_check_permission.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_ci_macos_workflow.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_ci_workflow.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_claim_race.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_clarify.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_claude_plugin.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_cli_golden.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_cli_install.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_cli_milestone.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_cli_packaging.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_cli_source.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_cli_ticket_commands.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_command_receipt_contract.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_comment_identity.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_comment_readers_contract.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_comment_rest_id.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_comment_trust.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_concurrency_e2e.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_deliver_pr_fakes.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_delivery_branch_delete.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_delivery_scene.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_docker_docs.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_docker_entrypoint.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_docker_image_workflow.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_docs_issue_shapes.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_docs_mermaid.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_docs_releases.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_docs_safety_matrix.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_docs_single_source.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_draft_repo_view.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_engine_source.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_failure.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_failure_report.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_fix_needed_loop.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_gh_read_retry.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_gh_response.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_git_base_smoke.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_git_merge_smoke.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_git_network_retry.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_git_transport.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_gitops.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_gitops_fakes.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_import_graph.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_install_sh.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_issue_1367.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_issue_461.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_issue_template_config.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_journal.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_journal_events.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_launchd_deploy.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_license.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_merge_exec_extraction.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_message_language.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_milestone_command.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_ops_e2e.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_orbi.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_orbi_dashboard.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_orbi_exporter.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_patch_ratchet.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_pi_activity.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_pi_child_reap.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_pi_command.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_pi_exec.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_pi_extensions.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_pi_provider_templates.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_pi_recovery.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_pi_session.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_pilot_setup.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_pilot_slots.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_pr_issue_link_workflow.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_pr_verification.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_prerequisite_check.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_progress.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_prompt_contract.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_public_contracts.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_public_helpers.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_publish_workflow.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_question.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_question_resume.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_release_ticket_templates.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_resume_continue_e2e.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_resume_other_executor.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_review_verdict.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_run_artifacts.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_run_fields.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_run_id_e2e.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_run_id_fixture.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_runner_config.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_runner_source_freshness.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_scene.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_scheduler.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_seam.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_setup_output_golden.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_size_ratchet.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_split_command.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_src_layout.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_status_observe.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_steering_review.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_suggest_repo_view.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_suite_hygiene.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_systemd_deploy.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_systemd_timer.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_tick_reads.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_ticket_command.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_ticket_command_registration.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_user_acceptance_contract.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_user_summary.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.54}/tests/test_versioned_comment_block.py +0 -0
- {orbi_cli-0.7.53 → 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(
|
|
@@ -820,7 +820,7 @@ def refuse_superseded_merge(
|
|
|
820
820
|
|
|
821
821
|
def stop_for_fix_round(
|
|
822
822
|
number: int, *, repo: str, pr_number: int, reason: str, marker: str,
|
|
823
|
-
language_code: str,
|
|
823
|
+
language_code: str, ready_label: str = READY_LABEL,
|
|
824
824
|
) -> None:
|
|
825
825
|
"""Send the delivery to a fix round: the Issue comment, then the label.
|
|
826
826
|
|
|
@@ -836,7 +836,7 @@ def stop_for_fix_round(
|
|
|
836
836
|
)
|
|
837
837
|
apply_label_patch(
|
|
838
838
|
number, repo=repo, event=EVENT_FIX_NEEDED,
|
|
839
|
-
current_labels=issue_labels(number, repo),
|
|
839
|
+
current_labels=issue_labels(number, repo), ready_label=ready_label,
|
|
840
840
|
)
|
|
841
841
|
|
|
842
842
|
|
|
@@ -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
|
|
@@ -26,21 +26,13 @@ LIFECYCLE_STATES = frozenset({
|
|
|
26
26
|
})
|
|
27
27
|
|
|
28
28
|
# --- Scheduling metadata (NOT delivery lifecycle states) ---
|
|
29
|
-
# `p0
|
|
30
|
-
#
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
# posted to the Issue); `ai-human-review` is the human acceptance gate
|
|
37
|
-
# — the Runner never adds or removes it (the `ai-release`
|
|
38
|
-
# shape: no event's patch names it in either direction);
|
|
39
|
-
# `ai-needs-detail` is the thin-ticket clarification gate's terminal
|
|
40
|
-
# state (Issue #1088) — the delivery is stopped and the Issue waits for
|
|
41
|
-
# a human to add the missing pieces, exactly like `ai-blocked`. None of
|
|
42
|
-
# them is a delivery state, and `blockedBy` (a GitHub relation, not a
|
|
43
|
-
# label) is handled by the dependency scan.
|
|
29
|
+
# `p0`/`bug` order the ready pickup; `ai-epic` is a coordination
|
|
30
|
+
# Issue the claim never touches; `ai-release` routes to the release
|
|
31
|
+
# state machine; `ai-ops-only`/`ai-content-only` route the ops and
|
|
32
|
+
# content playbooks; `ai-human-review` is the human acceptance gate the
|
|
33
|
+
# Runner never adds or removes; `ai-needs-detail` is the thin-ticket
|
|
34
|
+
# gate's stop (Issue #1088). None of them is a delivery state, and
|
|
35
|
+
# `blockedBy` (a GitHub relation, not a label) is the dependency scan's.
|
|
44
36
|
P0_LABEL = "p0"
|
|
45
37
|
BUG_LABEL = "bug"
|
|
46
38
|
EPIC_LABEL = "ai-epic"
|
|
@@ -50,6 +42,15 @@ OPS_LABEL = "ai-ops-only"
|
|
|
50
42
|
HUMAN_REVIEW_LABEL = "ai-human-review"
|
|
51
43
|
NEEDS_DETAIL_LABEL = "ai-needs-detail"
|
|
52
44
|
|
|
45
|
+
# Every non-lifecycle marker above. A repository's `dispatch_label` may
|
|
46
|
+
# be none of them either (Issue #2309): the claim REMOVES the queue
|
|
47
|
+
# label, so a marker that named one would be removed and re-added by the
|
|
48
|
+
# engine's own transitions.
|
|
49
|
+
NON_LIFECYCLE_LABELS = frozenset({
|
|
50
|
+
P0_LABEL, BUG_LABEL, EPIC_LABEL, RELEASE_LABEL, CONTENT_ONLY_LABEL,
|
|
51
|
+
OPS_LABEL, HUMAN_REVIEW_LABEL, NEEDS_DETAIL_LABEL,
|
|
52
|
+
})
|
|
53
|
+
|
|
53
54
|
# --- Reading an Issue's label names ---
|
|
54
55
|
|
|
55
56
|
def label_names(issue: dict) -> list[str]:
|
|
@@ -99,64 +100,59 @@ def label_patch(event: str, current_labels,
|
|
|
99
100
|
ready_label: str = READY_LABEL) -> tuple[list[str], list[str]]:
|
|
100
101
|
"""Return the (to_add, to_remove) label patch for one event.
|
|
101
102
|
|
|
102
|
-
A pure function of the event and the current labels
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
103
|
+
A pure function of the event and the current labels (the same inputs
|
|
104
|
+
always produce the same deterministic, idempotent patch).
|
|
105
|
+
|
|
106
|
+
`ready_label` is the repository's RESOLVED queue entry (`dispatch_label`,
|
|
107
|
+
default `ai-ready`). It means "queued, work has not started" (Issue
|
|
108
|
+
#2309): the claim REMOVES it and adds `ai-in-progress`, and every
|
|
109
|
+
non-terminal stage event after it removes it too, so a ticket claimed
|
|
110
|
+
under the old rule converges without migration.
|
|
108
111
|
|
|
109
|
-
- claim: add `ai-in-progress
|
|
110
|
-
|
|
111
|
-
thin-ticket gate once the author re-readied the ticket
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
label (`ready_label`, default `ai-ready`) is cleared too: it is
|
|
126
|
-
the queue entry, not a delivery state, so a merged Issue must not
|
|
127
|
-
keep showing it (Issue #1526) — the terminal state is
|
|
128
|
-
`ai-merged` ALONE.
|
|
129
|
-
- blocked: add `ai-blocked`, remove every delivery-state label that
|
|
130
|
-
is present AND the resolved queue label (`ready_label`), so the
|
|
131
|
-
terminal state is `ai-blocked` ALONE — even in a repository
|
|
132
|
-
whose claim label is a custom `dispatch_label` (Issue #1775).
|
|
133
|
-
- awaiting_merge: add `ai-awaiting-merge`, remove every delivery-state
|
|
134
|
-
label and the resolved queue label (a maintainer action is
|
|
135
|
-
required before Orbi retries).
|
|
112
|
+
- claim: add `ai-in-progress`; remove the queue label and a stale
|
|
113
|
+
`ai-fix-needed` / `ai-needs-detail` (a resumed fix round, the
|
|
114
|
+
thin-ticket gate once the author re-readied the ticket).
|
|
115
|
+
- pr_opened / fix_needed: add the opened-PR state, remove
|
|
116
|
+
`ai-in-progress` and the queue label. A TERMINAL Issue
|
|
117
|
+
(`ai-merged` / `ai-blocked`) changes nothing on fix_needed: the
|
|
118
|
+
delivery is over or waiting for a human, and a fix-needed label
|
|
119
|
+
beside it would let a later terminal label removal resume an
|
|
120
|
+
automatic fix nobody asked for (Issue #1786).
|
|
121
|
+
- human_review_waiting: add NOTHING, clear `ai-in-progress` and the
|
|
122
|
+
queue label; the opened-PR anchor stays (the resume scan needs it).
|
|
123
|
+
- requeue / release_waiting: add the queue label back (the ticket is
|
|
124
|
+
queued again) and clear the in-flight/opened-PR labels.
|
|
125
|
+
- merged / blocked / awaiting_merge: the terminals — the resolved
|
|
126
|
+
queue label and every delivery state go, so `ai-merged` and
|
|
127
|
+
`ai-blocked` end ALONE (Issues #1526, #1775).
|
|
136
128
|
|
|
137
|
-
An unknown event raises `ValueError` (fail fast — never a guessed
|
|
138
|
-
patch).
|
|
129
|
+
An unknown event raises `ValueError` (fail fast — never a guessed patch).
|
|
139
130
|
"""
|
|
140
131
|
current = set(current_labels)
|
|
141
132
|
if event == EVENT_CLAIM:
|
|
142
133
|
# The thin-ticket gate's `ai-needs-detail` is not a lifecycle
|
|
143
|
-
# state: a ticket
|
|
144
|
-
#
|
|
145
|
-
#
|
|
146
|
-
# human must supply detail (Issue #1379).
|
|
134
|
+
# state: a re-readied ticket is claimed normally, so the stop
|
|
135
|
+
# label goes with the claim or the ticket is delivered while every
|
|
136
|
+
# status surface still says a human must supply detail (#1379).
|
|
147
137
|
to_remove = [
|
|
148
|
-
label for label in (
|
|
138
|
+
label for label in (
|
|
139
|
+
FIX_NEEDED_LABEL, NEEDS_DETAIL_LABEL, ready_label,
|
|
140
|
+
)
|
|
149
141
|
if label in current
|
|
150
142
|
]
|
|
151
143
|
return ([IN_PROGRESS_LABEL], to_remove)
|
|
152
144
|
if event == EVENT_PR_OPENED:
|
|
153
|
-
return ([PR_OPENED_LABEL], [
|
|
145
|
+
return ([PR_OPENED_LABEL], [
|
|
146
|
+
label for label in (IN_PROGRESS_LABEL, ready_label)
|
|
147
|
+
if label in current
|
|
148
|
+
])
|
|
154
149
|
if event == EVENT_FIX_NEEDED:
|
|
155
150
|
if MERGED_LABEL in current or BLOCKED_LABEL in current:
|
|
156
151
|
return ([], [])
|
|
157
152
|
to_remove = [
|
|
158
153
|
label for label in (
|
|
159
154
|
IN_PROGRESS_LABEL, PR_OPENED_LABEL, AWAITING_MERGE_LABEL,
|
|
155
|
+
ready_label,
|
|
160
156
|
)
|
|
161
157
|
if label in current
|
|
162
158
|
]
|
|
@@ -164,19 +160,20 @@ def label_patch(event: str, current_labels,
|
|
|
164
160
|
if event == EVENT_RELEASE_WAITING:
|
|
165
161
|
return ([ready_label], [IN_PROGRESS_LABEL])
|
|
166
162
|
if event == EVENT_HUMAN_REVIEW_WAITING:
|
|
167
|
-
# The human acceptance gate holds the delivery
|
|
168
|
-
#
|
|
169
|
-
#
|
|
170
|
-
#
|
|
171
|
-
# `ai-fix-needed`) STAYS: the resume scan
|
|
172
|
-
# deliveries through it, so each next tick costs
|
|
173
|
-
# and no Pi session; removing the anchor would
|
|
174
|
-
# into the fresh-claim queue for a full
|
|
175
|
-
# EVENT_FIX_NEEDED (that would burn the
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
163
|
+
# The human acceptance gate holds the delivery: the stale
|
|
164
|
+
# in-flight label and the queue label are cleared and NOTHING is
|
|
165
|
+
# added (Issue #2309) — a waiting ticket is not queued, so the
|
|
166
|
+
# ready scan must not see it. The opened-PR state anchor
|
|
167
|
+
# (`ai-pr-opened` / `ai-fix-needed`) STAYS: the resume scan
|
|
168
|
+
# finds waiting deliveries through it, so each next tick costs
|
|
169
|
+
# one label read and no Pi session; removing the anchor would
|
|
170
|
+
# drop the Issue into the fresh-claim queue for a full
|
|
171
|
+
# re-implement. Never EVENT_FIX_NEEDED (that would burn the
|
|
172
|
+
# review-round budget).
|
|
173
|
+
return ([], [
|
|
174
|
+
label for label in (IN_PROGRESS_LABEL, ready_label)
|
|
175
|
+
if label in current
|
|
176
|
+
])
|
|
180
177
|
if event == EVENT_REQUEUE:
|
|
181
178
|
# The external takeover delivery ended without a merge
|
|
182
179
|
# (the contributor withdrew the PR, or a maintainer closed it) —
|
|
@@ -232,27 +229,17 @@ def label_patch(event: str, current_labels,
|
|
|
232
229
|
def has_delivery_state(current_labels,
|
|
233
230
|
ready_label: str = READY_LABEL) -> bool:
|
|
234
231
|
"""True when the labels carry a delivery state, not just the queue
|
|
235
|
-
entry
|
|
236
|
-
|
|
237
|
-
The one answer to "is this Issue a delivery?" — any lifecycle state
|
|
238
|
-
other than the `ready_label` queue entry counts, terminal states
|
|
239
|
-
included. The CI triage uses it to own the open Issue a PR's
|
|
240
|
-
`Fixes #N` names, so the script carries no lifecycle label set of its
|
|
241
|
-
own (Issue #1786).
|
|
232
|
+
entry: any lifecycle state other than `ready_label`, terminals
|
|
233
|
+
included. The CI triage's `Fixes #N` ownership lookup (Issue #1786).
|
|
242
234
|
"""
|
|
243
235
|
return bool(set(current_labels) & (LIFECYCLE_STATES - {ready_label}))
|
|
244
236
|
|
|
245
237
|
|
|
246
238
|
def is_pickup_eligible(current_labels) -> bool:
|
|
247
|
-
"""True when the Issue is fresh-ready: `ai-ready` and
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
`ai-ready` itself is the queue entry, not a delivery state — it is
|
|
252
|
-
excluded from the check. `p0`/`bug` are scheduling metadata, not
|
|
253
|
-
lifecycle states — they never affect eligibility (they only order the
|
|
254
|
-
pickup). The "other delivery state" check is `has_delivery_state`'s
|
|
255
|
-
single decision (Issue #1795), never a second set expression here.
|
|
239
|
+
"""True when the Issue is fresh-ready: `ai-ready` and in no OTHER
|
|
240
|
+
delivery state (the ready scan's code-layer guard, Issue #93/#101).
|
|
241
|
+
The "other delivery state" answer is `has_delivery_state`'s single
|
|
242
|
+
decision (Issue #1795), never a second set expression here.
|
|
256
243
|
"""
|
|
257
244
|
current = set(current_labels)
|
|
258
245
|
if READY_LABEL not in current:
|
|
@@ -262,11 +249,9 @@ def is_pickup_eligible(current_labels) -> bool:
|
|
|
262
249
|
|
|
263
250
|
def is_resumable(current_labels) -> bool:
|
|
264
251
|
"""True when the Issue is in an opened-PR state awaiting review or the
|
|
265
|
-
next review session
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
has neither opened-PR label, so it never matches (the in-flight restart
|
|
269
|
-
scan handles it separately).
|
|
252
|
+
next review session. `ai-in-progress` alone is NOT resumable: an
|
|
253
|
+
implement-phase Issue has neither opened-PR label (the in-flight
|
|
254
|
+
restart scan handles it separately).
|
|
270
255
|
"""
|
|
271
256
|
current = set(current_labels)
|
|
272
257
|
return (
|