orbi-cli 0.7.53__tar.gz → 0.7.55__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/PKG-INFO +1 -1
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/pyproject.toml +4 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/__init__.py +1 -1
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/amend_command.py +12 -5
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/answer.py +25 -25
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/base_ci_fix.py +14 -11
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/blocked_comment.py +2 -1
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/blocked_scan.py +2 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/check_permission.py +6 -7
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/claim.py +157 -119
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/clarify.py +7 -6
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/cli_commands.py +6 -6
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/cli_status.py +9 -10
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/config.py +2 -2
- orbi_cli-0.7.55/src/orbi/delivery_labels.py +282 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/delivery_scene.py +16 -26
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/draft.py +76 -17
- orbi_cli-0.7.55/src/orbi/draft_validate.py +48 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/example_config.toml +16 -7
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/extensions/draft_tools.ts +117 -11
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/failure_report.py +19 -17
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/github.py +6 -10
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/github_feedback.py +9 -12
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/human_review.py +3 -3
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/implementation_delivery.py +11 -10
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/journal.py +1 -0
- orbi_cli-0.7.55/src/orbi/labels.py +265 -0
- orbi_cli-0.7.55/src/orbi/labels.toml +113 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/language_terms.py +9 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/merge_blocked.py +3 -3
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/merge_exec.py +21 -6
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/merge_handoff.py +5 -5
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/milestone.py +48 -37
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/milestone_command.py +3 -3
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/notify.py +12 -13
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/notify_text.py +25 -22
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/ops_delivery.py +2 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/pilot_setup.py +5 -5
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/progress.py +19 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/question.py +4 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/recoverable_failure.py +2 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/release.py +3 -3
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/release_closeout.py +10 -10
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/release_notes.py +2 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/release_run.py +6 -12
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/repo_config.py +19 -20
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/requeue.py +4 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/restart_scan.py +14 -17
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/resume_scan.py +30 -30
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/resume_verification.py +11 -19
- orbi_cli-0.7.55/src/orbi/review_ci_status.py +42 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/review_merge.py +55 -67
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/review_rounds.py +4 -4
- orbi_cli-0.7.55/src/orbi/review_wait.py +298 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/run_state.py +17 -88
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/runner.py +56 -78
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/runner_health.py +81 -81
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/setup_config.py +15 -111
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/split_apply.py +5 -10
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/split_command.py +6 -4
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/status_observe.py +10 -13
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/stop_comment.py +5 -3
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/stopped_scans.py +12 -12
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/suggest.py +9 -8
- orbi_cli-0.7.55/src/orbi/waiting_checks.py +167 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi_cli.egg-info/PKG-INFO +1 -1
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi_cli.egg-info/SOURCES.txt +10 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_amend_command.py +22 -1
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_apply_label_patch.py +7 -7
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_bootstrap_delivery.py +89 -25
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_bootstrap_release.py +4 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_bootstrap_runner_main.py +3 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_bootstrap_runner_milestone.py +40 -4
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_bootstrap_runner_outcome.py +6 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_bootstrap_runner_tickets.py +7 -4
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_cli_packaging.py +49 -44
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_constitution.py +31 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_coverage_gate.py +8 -5
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_delivery_labels.py +37 -25
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_docs_i18n.py +7 -27
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_docs_labels.py +57 -31
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_docs_site.py +7 -26
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_draft.py +115 -2
- orbi_cli-0.7.55/tests/test_draft_validate.py +150 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_github.py +10 -7
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_github_fakes.py +4 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_human_review.py +25 -15
- orbi_cli-0.7.55/tests/test_labels.py +484 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_notify.py +16 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_pilot_setup.py +65 -47
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_progress_wiring.py +29 -3
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_release_docs_workflow.py +30 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_release_extraction.py +4 -2
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_repo_config.py +41 -15
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_resume_e2e.py +19 -10
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_resume_pr.py +58 -16
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_review_merge.py +115 -59
- orbi_cli-0.7.55/tests/test_review_waiting.py +469 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_run_id_e2e.py +2 -1
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_runner_health.py +44 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_setup_output_golden.py +8 -6
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_suggest.py +6 -2
- orbi_cli-0.7.55/tests/test_waiting_checks.py +313 -0
- orbi_cli-0.7.53/src/orbi/delivery_labels.py +0 -282
- 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.55}/LICENSE +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/README.md +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/docs/licenses/sustainable-use-license.md +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/setup.cfg +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/acceptance_section.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/base_ci_red.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/blocked_record.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/body_steering.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/branch_reclaim.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/checks.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/claim_race.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/clarify_proposal.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/clarify_stop.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/cli.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/cli_doctor.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/cli_parser.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/cli_source.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/cli_ticket_command.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/command_line.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/comment_kind.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/comment_rest_id.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/comment_trust.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/config_hint.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/delivery_comment.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/delivery_push.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/draft_cli.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/draft_document.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/draft_marker.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/engine_source.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/extensions/clarify_verdict.ts +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/failure.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/failure_evidence.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/gh_response.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/git_identity.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/git_transport.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/gitops.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/language.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/language_failure.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/language_terms_criteria.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/language_terms_fix.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/launchd_deploy.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/merge_gate.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/milestone_errors.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/pi_activity.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/pi_command.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/pi_exec.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/pi_idle.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/pi_process.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/pi_recovery.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/pi_session.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/pi_stream_log.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/pilot_slots.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/plan_milestone.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/pr_head_sync.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/pr_verification.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/progress_display.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/progress_outcome.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/progress_summary.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/provider_balance.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/release_comments.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/release_declaration.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/release_git.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/review_verdict.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/run_fields.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/runner_marker.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/runner_source.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/scene.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/scheduler.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/scheduler_units.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/session_command.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/setup_checks.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/source_pool.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/steering.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/systemd_deploy.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/terminal_stops.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/tick_reads.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/ticket_command.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/ticket_command_registry.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/ticket_criteria.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/user_summary.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi/worktree_retention.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi_cli.egg-info/dependency_links.txt +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi_cli.egg-info/entry_points.txt +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/src/orbi_cli.egg-info/top_level.txt +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_agents_md.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_answer.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_base_branch_failure.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_base_ci_red.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_blocked_comment.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_body_steering.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_bootstrap_adapters.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_bootstrap_pi.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_bootstrap_preflight.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_bootstrap_runner_claim_resume.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_bootstrap_runner_failure_report.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_bootstrap_runner_prompt.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_bootstrap_runner_reconcile.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_bootstrap_runner_session.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_branch_reclaim.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_check_permission.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_ci_macos_workflow.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_ci_workflow.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_claim_race.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_clarify.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_claude_plugin.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_cli_golden.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_cli_install.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_cli_milestone.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_cli_source.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_cli_ticket_commands.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_command_receipt_contract.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_comment_identity.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_comment_readers_contract.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_comment_rest_id.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_comment_trust.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_concurrency_e2e.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_deliver_pr_fakes.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_delivery_branch_delete.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_delivery_scene.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_docker_docs.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_docker_entrypoint.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_docker_image_workflow.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_docs_issue_shapes.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_docs_mermaid.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_docs_releases.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_docs_safety_matrix.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_docs_single_source.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_draft_repo_view.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_engine_source.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_failure.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_failure_report.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_fix_needed_loop.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_gh_read_retry.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_gh_response.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_git_base_smoke.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_git_merge_smoke.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_git_network_retry.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_git_transport.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_gitops.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_gitops_fakes.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_import_graph.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_install_sh.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_issue_1367.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_issue_461.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_issue_template_config.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_journal.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_journal_events.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_launchd_deploy.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_license.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_merge_exec_extraction.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_message_language.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_milestone_command.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_ops_e2e.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_orbi.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_orbi_dashboard.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_orbi_exporter.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_patch_ratchet.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_pi_activity.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_pi_child_reap.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_pi_command.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_pi_exec.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_pi_extensions.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_pi_provider_templates.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_pi_recovery.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_pi_session.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_pilot_slots.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_pr_issue_link_workflow.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_pr_verification.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_prerequisite_check.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_progress.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_prompt_contract.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_public_contracts.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_public_helpers.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_publish_workflow.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_question.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_question_resume.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_release_ticket_templates.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_resume_continue_e2e.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_resume_other_executor.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_review_verdict.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_run_artifacts.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_run_fields.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_run_id_fixture.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_runner_config.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_runner_source_freshness.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_scene.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_scheduler.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_seam.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_size_ratchet.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_split_command.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_src_layout.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_status_observe.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_steering_review.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_suggest_repo_view.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_suite_hygiene.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_systemd_deploy.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_systemd_timer.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_tick_reads.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_ticket_command.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_ticket_command_registration.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_user_acceptance_contract.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_user_summary.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_versioned_comment_block.py +0 -0
- {orbi_cli-0.7.53 → orbi_cli-0.7.55}/tests/test_worktree_reclaim.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: orbi-cli
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.55
|
|
4
4
|
Summary: Orbi — local AI development worker: claims GitHub Issues, runs Pi in isolated worktrees, and delivers PRs (GitHub Issues + labels are the only state store).
|
|
5
5
|
Author: xqliu
|
|
6
6
|
License-Expression: AGPL-3.0-only OR LicenseRef-Sustainable-Use-1.0
|
|
@@ -44,7 +44,7 @@ build-backend = "setuptools.build_meta"
|
|
|
44
44
|
|
|
45
45
|
[project]
|
|
46
46
|
name = "orbi-cli"
|
|
47
|
-
version = "0.7.
|
|
47
|
+
version = "0.7.55"
|
|
48
48
|
description = "Orbi — local AI development worker: claims GitHub Issues, runs Pi in isolated worktrees, and delivers PRs (GitHub Issues + labels are the only state store)."
|
|
49
49
|
readme = "README.md"
|
|
50
50
|
requires-python = ">=3.14"
|
|
@@ -78,7 +78,9 @@ where = ["src"]
|
|
|
78
78
|
# Issue #1955: the clarification gate's Pi extension ships with the engine
|
|
79
79
|
# — the gate passes this file to pi --extension, so a wheel install must
|
|
80
80
|
# carry it exactly like the example config (Issue #163).
|
|
81
|
-
|
|
81
|
+
# Issue #2347: labels.toml is the single source of the platform label
|
|
82
|
+
# names the engine reads at start, so the wheel must carry it too.
|
|
83
|
+
orbi = ["example_config.toml", "labels.toml", "extensions/*.ts"]
|
|
82
84
|
|
|
83
85
|
# The contract test command (`python3 -m coverage run --branch -m pytest
|
|
84
86
|
# tests/ -q`) runs WITHOUT installing the package: pytest puts `src/` on
|
|
@@ -53,7 +53,8 @@ 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 has_delivery_state, label_names
|
|
57
|
+
from orbi import delivery_labels
|
|
57
58
|
from orbi.github import comment_issue, edit_issue, issue_view
|
|
58
59
|
from orbi.ticket_command import (
|
|
59
60
|
CommandSpec,
|
|
@@ -138,10 +139,11 @@ def _criteria_validate(
|
|
|
138
139
|
def _criteria_apply(
|
|
139
140
|
argument: str, *, repo: str, issue_number: int, command_comment: dict,
|
|
140
141
|
comments: list[dict], issue: dict, suggestion: object,
|
|
141
|
-
dispatch_label: str =
|
|
142
|
+
dispatch_label: str | None = None,
|
|
142
143
|
language_code: str = language.DEFAULT_LANGUAGE, **_context: object,
|
|
143
144
|
) -> None:
|
|
144
145
|
"""Do the four steps, in the order the ticket depends on."""
|
|
146
|
+
dispatch_label = delivery_labels.queue_label(dispatch_label)
|
|
145
147
|
if not isinstance(suggestion, clarify.Suggestion):
|
|
146
148
|
raise TicketCommandError(
|
|
147
149
|
"append the criteria",
|
|
@@ -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(
|
|
@@ -186,8 +193,8 @@ def _criteria_apply(
|
|
|
186
193
|
# the command again and finishes whatever is still missing. A failure
|
|
187
194
|
# here is not wrapped in a step receipt — the append itself succeeded,
|
|
188
195
|
# and a "failed" receipt beside the success would read as a second run.
|
|
189
|
-
if NEEDS_DETAIL_LABEL in label_names(issue):
|
|
190
|
-
edit_issue(issue_number, repo=repo, remove=NEEDS_DETAIL_LABEL)
|
|
196
|
+
if delivery_labels.NEEDS_DETAIL_LABEL in label_names(issue):
|
|
197
|
+
edit_issue(issue_number, repo=repo, remove=delivery_labels.NEEDS_DETAIL_LABEL)
|
|
191
198
|
|
|
192
199
|
|
|
193
200
|
AMEND_COMMAND = CommandSpec(
|
|
@@ -70,14 +70,8 @@ from dataclasses import dataclass
|
|
|
70
70
|
from orbi import acceptance_section, language, question
|
|
71
71
|
from orbi.branch_reclaim import delete_merged_delivery_branch
|
|
72
72
|
from orbi.comment_trust import comment_is_trusted
|
|
73
|
-
from orbi.delivery_labels import
|
|
74
|
-
|
|
75
|
-
EVENT_FIX_NEEDED,
|
|
76
|
-
FIX_NEEDED_LABEL,
|
|
77
|
-
IN_PROGRESS_LABEL,
|
|
78
|
-
PR_OPENED_LABEL,
|
|
79
|
-
READY_LABEL,
|
|
80
|
-
)
|
|
73
|
+
from orbi.delivery_labels import EVENT_FIX_NEEDED
|
|
74
|
+
from orbi import delivery_labels
|
|
81
75
|
from orbi.github import (
|
|
82
76
|
apply_label_patch,
|
|
83
77
|
close_issue,
|
|
@@ -109,11 +103,14 @@ from orbi.ticket_command import (
|
|
|
109
103
|
# The stage is the label the ticket carries when the answer is read: the
|
|
110
104
|
# scan label of the stopped-ticket scans, or `ai-in-progress` for the
|
|
111
105
|
# steering poll. Nothing else is a stage an answer is read at.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
106
|
+
def stages() -> tuple[str, str, str, str]:
|
|
107
|
+
"""The four stop stages an answer can target (Issue #2221)."""
|
|
108
|
+
return (
|
|
109
|
+
delivery_labels.BLOCKED_LABEL,
|
|
110
|
+
delivery_labels.PR_OPENED_LABEL,
|
|
111
|
+
delivery_labels.FIX_NEEDED_LABEL,
|
|
112
|
+
delivery_labels.IN_PROGRESS_LABEL,
|
|
113
|
+
)
|
|
117
114
|
|
|
118
115
|
# The Issue fields the answer's one read needs.
|
|
119
116
|
ISSUE_FIELDS = "number,body,labels"
|
|
@@ -228,7 +225,7 @@ def decide(
|
|
|
228
225
|
answer whose `value` matches no option of the question is refused
|
|
229
226
|
here, before any write.
|
|
230
227
|
"""
|
|
231
|
-
if stage not in
|
|
228
|
+
if stage not in stages():
|
|
232
229
|
raise NotExecuted(language.text(
|
|
233
230
|
language_code, "answer.reason_no_stage", stage=stage or "-",
|
|
234
231
|
))
|
|
@@ -239,7 +236,7 @@ def decide(
|
|
|
239
236
|
answered=answer.question, asked=asked.id,
|
|
240
237
|
))
|
|
241
238
|
if answer.action == question.ANSWER_CANCEL:
|
|
242
|
-
if stage !=
|
|
239
|
+
if stage != delivery_labels.BLOCKED_LABEL:
|
|
243
240
|
raise NotExecuted(language.text(
|
|
244
241
|
language_code, "answer.reason_cancel_stage", stage=stage,
|
|
245
242
|
))
|
|
@@ -316,7 +313,7 @@ def _carried_out(
|
|
|
316
313
|
"""Refuse a close outside `ai-blocked`; everything else is taken."""
|
|
317
314
|
if action in (
|
|
318
315
|
question.ACTION_CLOSE_EXTERNAL_PR, question.ACTION_CLOSE_ALL,
|
|
319
|
-
) and stage !=
|
|
316
|
+
) and stage != delivery_labels.BLOCKED_LABEL:
|
|
320
317
|
raise NotExecuted(language.text(
|
|
321
318
|
language_code, "answer.reason_close_stage", stage=stage,
|
|
322
319
|
))
|
|
@@ -441,10 +438,11 @@ def _answer_apply(
|
|
|
441
438
|
argument: str, *, repo: str, issue_number: int, command_comment: dict,
|
|
442
439
|
comments: list[dict] | None = None, stop: object = None,
|
|
443
440
|
answer_problem: object = None,
|
|
444
|
-
answer_stage: object = None, dispatch_label: str =
|
|
441
|
+
answer_stage: object = None, dispatch_label: str | None = None,
|
|
445
442
|
language_code: str = language.DEFAULT_LANGUAGE, **_context: object,
|
|
446
443
|
) -> None:
|
|
447
444
|
"""Carry the answer out and post its ONE receipt (idempotent)."""
|
|
445
|
+
dispatch_label = delivery_labels.queue_label(dispatch_label)
|
|
448
446
|
comments = list(comments or [])
|
|
449
447
|
receipt = _receipt_marker(command_comment)
|
|
450
448
|
if runner_receipt(comments, receipt):
|
|
@@ -568,7 +566,7 @@ def _amend(
|
|
|
568
566
|
lines = [language.text(
|
|
569
567
|
language_code, "answer.effect_amended", text=text,
|
|
570
568
|
)]
|
|
571
|
-
if stage ==
|
|
569
|
+
if stage == delivery_labels.BLOCKED_LABEL:
|
|
572
570
|
# A blocked Issue is not moved by the label event alone (a terminal
|
|
573
571
|
# label wins over `fix_needed`), so the two labels are swapped
|
|
574
572
|
# directly: with an open PR the review/fix state resumes it, and a
|
|
@@ -579,11 +577,11 @@ def _amend(
|
|
|
579
577
|
None, task_branch(repo, issue_number), repo=repo,
|
|
580
578
|
),
|
|
581
579
|
)
|
|
582
|
-
target = FIX_NEEDED_LABEL if pull is not None else dispatch_label
|
|
580
|
+
target = delivery_labels.FIX_NEEDED_LABEL if pull is not None else dispatch_label
|
|
583
581
|
run_step(
|
|
584
582
|
"re-queue the ticket",
|
|
585
583
|
lambda: edit_issue(
|
|
586
|
-
issue_number, repo=repo, add=target, remove=BLOCKED_LABEL,
|
|
584
|
+
issue_number, repo=repo, add=target, remove=delivery_labels.BLOCKED_LABEL,
|
|
587
585
|
),
|
|
588
586
|
)
|
|
589
587
|
lines.append(language.text(
|
|
@@ -597,7 +595,7 @@ def _requeue(number: int, *, repo: str, dispatch_label: str) -> None:
|
|
|
597
595
|
run_step(
|
|
598
596
|
"re-queue the ticket",
|
|
599
597
|
lambda: edit_issue(
|
|
600
|
-
number, repo=repo, add=dispatch_label, remove=BLOCKED_LABEL,
|
|
598
|
+
number, repo=repo, add=dispatch_label, remove=delivery_labels.BLOCKED_LABEL,
|
|
601
599
|
),
|
|
602
600
|
)
|
|
603
601
|
|
|
@@ -777,7 +775,7 @@ def pending_change(
|
|
|
777
775
|
"""
|
|
778
776
|
decision = _pending(
|
|
779
777
|
issue_comments(number, repo=repo), repo=repo,
|
|
780
|
-
stage=
|
|
778
|
+
stage=delivery_labels.PR_OPENED_LABEL, language_code=language_code,
|
|
781
779
|
)
|
|
782
780
|
if decision is not None:
|
|
783
781
|
event(
|
|
@@ -820,13 +818,14 @@ def refuse_superseded_merge(
|
|
|
820
818
|
|
|
821
819
|
def stop_for_fix_round(
|
|
822
820
|
number: int, *, repo: str, pr_number: int, reason: str, marker: str,
|
|
823
|
-
language_code: str,
|
|
821
|
+
language_code: str, ready_label: str | None = None,
|
|
824
822
|
) -> None:
|
|
825
823
|
"""Send the delivery to a fix round: the Issue comment, then the label.
|
|
826
824
|
|
|
827
825
|
The next tick's review session reads the amended ticket, which is why
|
|
828
826
|
the label (not a second comment) is the last step.
|
|
829
827
|
"""
|
|
828
|
+
ready_label = delivery_labels.queue_label(ready_label)
|
|
830
829
|
comment_issue(
|
|
831
830
|
number, repo=repo,
|
|
832
831
|
body=f"{marker}\n" + language.text(
|
|
@@ -836,7 +835,7 @@ def stop_for_fix_round(
|
|
|
836
835
|
)
|
|
837
836
|
apply_label_patch(
|
|
838
837
|
number, repo=repo, event=EVENT_FIX_NEEDED,
|
|
839
|
-
current_labels=issue_labels(number, repo),
|
|
838
|
+
current_labels=issue_labels(number, repo), ready_label=ready_label,
|
|
840
839
|
)
|
|
841
840
|
|
|
842
841
|
|
|
@@ -881,7 +880,8 @@ def apply_steering(
|
|
|
881
880
|
)
|
|
882
881
|
return None
|
|
883
882
|
resolved = resolve_answers(
|
|
884
|
-
occurrences, stop,
|
|
883
|
+
occurrences, stop, delivery_labels.IN_PROGRESS_LABEL,
|
|
884
|
+
language_code=language_code,
|
|
885
885
|
)
|
|
886
886
|
amended: str | None = None
|
|
887
887
|
counting = len(resolved) - 1
|
|
@@ -29,9 +29,7 @@ from orbi.base_ci_red import (
|
|
|
29
29
|
edit_state, failing_checks, open_triage_issue, paused_scene, remind,
|
|
30
30
|
scene_receipt, triage_title,
|
|
31
31
|
)
|
|
32
|
-
from orbi
|
|
33
|
-
BLOCKED_LABEL, FIX_NEEDED_LABEL, P0_LABEL, READY_LABEL,
|
|
34
|
-
)
|
|
32
|
+
from orbi import delivery_labels
|
|
35
33
|
from orbi.github import (
|
|
36
34
|
branch_head_sha, comment_issue, commit_check_runs, edit_issue,
|
|
37
35
|
issue_comments, pr_view,
|
|
@@ -107,7 +105,7 @@ def _create_triage_issue(repo: str, checks: list[FailingCheck],
|
|
|
107
105
|
"--title", triage_title(record.base_branch),
|
|
108
106
|
"--body", _triage_body(checks, record, language_code),
|
|
109
107
|
"--label", dispatch_label,
|
|
110
|
-
"--label", P0_LABEL,
|
|
108
|
+
"--label", delivery_labels.P0_LABEL,
|
|
111
109
|
]
|
|
112
110
|
if milestone:
|
|
113
111
|
command += ["--milestone", milestone]
|
|
@@ -122,7 +120,7 @@ def _create_triage_issue(repo: str, checks: list[FailingCheck],
|
|
|
122
120
|
|
|
123
121
|
def open_fix_issues(
|
|
124
122
|
repo: str, issue_number: int, record: BaseCIRed, *,
|
|
125
|
-
milestone: str | None = None, dispatch_label: str =
|
|
123
|
+
milestone: str | None = None, dispatch_label: str | None = None,
|
|
126
124
|
language_code: str = language.DEFAULT_LANGUAGE,
|
|
127
125
|
) -> list[str]:
|
|
128
126
|
"""Open (or reuse) the ONE open fix Issue of this base branch.
|
|
@@ -143,6 +141,7 @@ def open_fix_issues(
|
|
|
143
141
|
empty evidence read returns the one "no evidence" sentence — no Issue
|
|
144
142
|
is invented for a check GitHub no longer reports.
|
|
145
143
|
"""
|
|
144
|
+
dispatch_label = delivery_labels.queue_label(dispatch_label)
|
|
146
145
|
checks = _base_red_checks(repo, record)
|
|
147
146
|
if not checks:
|
|
148
147
|
return [language.text(
|
|
@@ -177,7 +176,7 @@ def open_fix_issues(
|
|
|
177
176
|
|
|
178
177
|
def ensure_fix_issues(
|
|
179
178
|
repo: str, issue_number: int, record: BaseCIRed, *,
|
|
180
|
-
milestone: str | None = None, dispatch_label: str =
|
|
179
|
+
milestone: str | None = None, dispatch_label: str | None = None,
|
|
181
180
|
language_code: str = language.DEFAULT_LANGUAGE,
|
|
182
181
|
) -> list[str] | None:
|
|
183
182
|
"""The engine-initiated run: the fix Issue, ONCE per scene.
|
|
@@ -194,6 +193,7 @@ def ensure_fix_issues(
|
|
|
194
193
|
comment renders the pre-#2203 repair text (`/orbi fix-base`) instead
|
|
195
194
|
of turning a recorded scene into an unreported one.
|
|
196
195
|
"""
|
|
196
|
+
dispatch_label = delivery_labels.queue_label(dispatch_label)
|
|
197
197
|
try:
|
|
198
198
|
receipt = scene_receipt(record)
|
|
199
199
|
if runner_receipt(issue_comments(issue_number, repo=repo), receipt):
|
|
@@ -275,7 +275,7 @@ def _aged_out(comment: dict, now: datetime) -> bool:
|
|
|
275
275
|
|
|
276
276
|
def recover(repo: str, *, language_code: str,
|
|
277
277
|
milestone: str | None = None,
|
|
278
|
-
dispatch_label: str =
|
|
278
|
+
dispatch_label: str | None = None,
|
|
279
279
|
now: datetime | None = None) -> list[int]:
|
|
280
280
|
"""Advance every paused base-branch-red delivery once.
|
|
281
281
|
|
|
@@ -301,6 +301,7 @@ def recover(repo: str, *, language_code: str,
|
|
|
301
301
|
|
|
302
302
|
Returns the Issue numbers that were resumed.
|
|
303
303
|
"""
|
|
304
|
+
dispatch_label = delivery_labels.queue_label(dispatch_label)
|
|
304
305
|
stamp = now or datetime.now(timezone.utc)
|
|
305
306
|
reads = blocked_scan.blocked_reads(repo)
|
|
306
307
|
resumed: list[int] = []
|
|
@@ -336,8 +337,8 @@ def recover(repo: str, *, language_code: str,
|
|
|
336
337
|
)
|
|
337
338
|
continue
|
|
338
339
|
if _base_is_green(repo, record, base_head):
|
|
339
|
-
edit_issue(number, repo=repo, add=FIX_NEEDED_LABEL,
|
|
340
|
-
remove=BLOCKED_LABEL)
|
|
340
|
+
edit_issue(number, repo=repo, add=delivery_labels.FIX_NEEDED_LABEL,
|
|
341
|
+
remove=delivery_labels.BLOCKED_LABEL)
|
|
341
342
|
edit_state(repo, number, comment, STATE_RESUMING,
|
|
342
343
|
language_code=language_code)
|
|
343
344
|
event(
|
|
@@ -361,7 +362,7 @@ def scene_comment(
|
|
|
361
362
|
repo: str, issue: dict, record: BaseCIRed, checks: list[FailingCheck],
|
|
362
363
|
*, failure_record: failure.Failure, language_code: str,
|
|
363
364
|
status_url: str | None = None, milestone: str | None = None,
|
|
364
|
-
dispatch_label: str =
|
|
365
|
+
dispatch_label: str | None = None,
|
|
365
366
|
) -> str:
|
|
366
367
|
"""The base-branch-red comment, with the fix Issue Orbi opened itself.
|
|
367
368
|
|
|
@@ -372,6 +373,7 @@ def scene_comment(
|
|
|
372
373
|
`ensure_fix_issues`), so the pause the delivery already decided still
|
|
373
374
|
reaches the reader, with the command's own repair offered instead.
|
|
374
375
|
"""
|
|
376
|
+
dispatch_label = delivery_labels.queue_label(dispatch_label)
|
|
375
377
|
number = int(issue["number"])
|
|
376
378
|
return comment_body(
|
|
377
379
|
record, checks, failure_record=failure_record,
|
|
@@ -427,7 +429,7 @@ def _fix_base_validate(
|
|
|
427
429
|
def _fix_base_apply(
|
|
428
430
|
argument: str, *, repo: str, issue_number: int, command_comment: dict,
|
|
429
431
|
comments: list[dict], record: BaseCIRed | None = None,
|
|
430
|
-
milestone: str | None = None, dispatch_label: str =
|
|
432
|
+
milestone: str | None = None, dispatch_label: str | None = None,
|
|
431
433
|
language_code: str = language.DEFAULT_LANGUAGE,
|
|
432
434
|
**_context: object,
|
|
433
435
|
) -> None:
|
|
@@ -445,6 +447,7 @@ def _fix_base_apply(
|
|
|
445
447
|
record runs by itself (Issue #2203): a fix Issue the engine opened is
|
|
446
448
|
therefore reused here, and the reply says so.
|
|
447
449
|
"""
|
|
450
|
+
dispatch_label = delivery_labels.queue_label(dispatch_label)
|
|
448
451
|
if not isinstance(record, BaseCIRed):
|
|
449
452
|
# The layer's contract: a handler that cannot run raises its own
|
|
450
453
|
# step error (never a bare TypeError) so the dispatcher posts the
|
|
@@ -8,5 +8,6 @@ re-export the `failure_evidence` split used (Issue #2202).
|
|
|
8
8
|
"""
|
|
9
9
|
from __future__ import annotations
|
|
10
10
|
|
|
11
|
-
from orbi.delivery_labels import EVENT_BLOCKED
|
|
11
|
+
from orbi.delivery_labels import EVENT_BLOCKED
|
|
12
|
+
from orbi import delivery_labels
|
|
12
13
|
from orbi.stop_comment import post_blocked_comment as post_blocked_comment
|
|
@@ -25,7 +25,7 @@ from __future__ import annotations
|
|
|
25
25
|
import dataclasses
|
|
26
26
|
|
|
27
27
|
from orbi import comment_trust, tick_reads
|
|
28
|
-
from orbi
|
|
28
|
+
from orbi import delivery_labels
|
|
29
29
|
from orbi.github import issue_comments, list_issues
|
|
30
30
|
|
|
31
31
|
# One bounded page per tick: `ai-blocked` Issues are few, and an unbounded
|
|
@@ -46,7 +46,7 @@ class BlockedReads:
|
|
|
46
46
|
"""Every open `ai-blocked` Issue, read once for the tick."""
|
|
47
47
|
if self._issues is None:
|
|
48
48
|
self._issues = list_issues(
|
|
49
|
-
self.repo, state="open", label=BLOCKED_LABEL,
|
|
49
|
+
self.repo, state="open", label=delivery_labels.BLOCKED_LABEL,
|
|
50
50
|
json_fields="number,title", limit=SCAN_LIMIT,
|
|
51
51
|
)
|
|
52
52
|
return self._issues
|
|
@@ -52,9 +52,7 @@ from orbi.comment_kind import (
|
|
|
52
52
|
parse_versioned_block,
|
|
53
53
|
)
|
|
54
54
|
from orbi.comment_rest_id import rest_comment_id
|
|
55
|
-
from orbi
|
|
56
|
-
BLOCKED_LABEL, FIX_NEEDED_LABEL, READY_LABEL,
|
|
57
|
-
)
|
|
55
|
+
from orbi import delivery_labels
|
|
58
56
|
from orbi.github import (
|
|
59
57
|
edit_issue, issue_labels, pr_number, run_gh_read_command,
|
|
60
58
|
update_issue_comment,
|
|
@@ -252,7 +250,7 @@ def block(issue_number: int, repo: str, pr_url: str, *, run_id: str,
|
|
|
252
250
|
installation_id: int | None, language_code: str,
|
|
253
251
|
issue_title: str | None = None,
|
|
254
252
|
status_url: str | None = None,
|
|
255
|
-
ready_label: str =
|
|
253
|
+
ready_label: str | None = None) -> CheckPermission:
|
|
256
254
|
"""Stop the delivery: ONE comment, then `ai-blocked`.
|
|
257
255
|
|
|
258
256
|
The comment lands through the shared blocked exit (label patch first,
|
|
@@ -260,6 +258,7 @@ def block(issue_number: int, repo: str, pr_url: str, *, run_id: str,
|
|
|
260
258
|
`ai-blocked` ALONE. Called only while the Issue is still resumable, so
|
|
261
259
|
exactly one comment is posted per stop.
|
|
262
260
|
"""
|
|
261
|
+
ready_label = delivery_labels.queue_label(ready_label)
|
|
263
262
|
record = CheckPermission(pr=pr_number(pr_url))
|
|
264
263
|
body = comment_body(
|
|
265
264
|
record, url=approval_url(repo, installation_id=installation_id),
|
|
@@ -297,7 +296,7 @@ def read_rollup(pr_url: str, repo: str, issue: dict, config,
|
|
|
297
296
|
installation_id=config.installation_id,
|
|
298
297
|
language_code=language.of(config),
|
|
299
298
|
issue_title=issue.get("title"), status_url=config.status_url,
|
|
300
|
-
ready_label=config.dispatch_label
|
|
299
|
+
ready_label=delivery_labels.queue_label(config.dispatch_label),
|
|
301
300
|
)
|
|
302
301
|
return None, []
|
|
303
302
|
|
|
@@ -420,8 +419,8 @@ def recover(repo: str) -> list[int]:
|
|
|
420
419
|
number, record.pr, repo,
|
|
421
420
|
)
|
|
422
421
|
continue
|
|
423
|
-
edit_issue(number, repo=repo, add=FIX_NEEDED_LABEL,
|
|
424
|
-
remove=BLOCKED_LABEL)
|
|
422
|
+
edit_issue(number, repo=repo, add=delivery_labels.FIX_NEEDED_LABEL,
|
|
423
|
+
remove=delivery_labels.BLOCKED_LABEL)
|
|
425
424
|
_edit_state(repo, number, comment, record)
|
|
426
425
|
event(
|
|
427
426
|
"checks_permission_recovered", issue=number, pr=record.pr,
|