orbi-cli 0.7.32__tar.gz → 0.7.34__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.32 → orbi_cli-0.7.34}/PKG-INFO +1 -1
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/pyproject.toml +1 -1
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/__init__.py +1 -1
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/delivery_comment.py +25 -17
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/delivery_scene.py +3 -3
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/draft.py +32 -1
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/failure.py +4 -19
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/failure_report.py +23 -15
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/journal.py +0 -1
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/language.py +0 -1
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/launchd_deploy.py +0 -5
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/ops_delivery.py +3 -2
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/pilot_setup.py +1 -1
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/progress.py +15 -53
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/release_closeout.py +4 -2
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/release_comments.py +8 -6
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/release_run.py +7 -9
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/resume_scan.py +5 -5
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/resume_verification.py +19 -19
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/review_merge.py +46 -69
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/review_rounds.py +76 -6
- orbi_cli-0.7.34/src/orbi/run_fields.py +72 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/run_state.py +31 -37
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/runner.py +29 -26
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/scene.py +10 -64
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/scheduler.py +1 -7
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/systemd_deploy.py +5 -47
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi_cli.egg-info/PKG-INFO +1 -1
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi_cli.egg-info/SOURCES.txt +2 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_bootstrap_delivery.py +69 -42
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_bootstrap_runner_failure_report.py +2 -2
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_bootstrap_runner_main.py +20 -17
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_comment_readers_contract.py +27 -12
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_delivery_scene.py +11 -12
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_docs_labels.py +8 -3
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_draft.py +108 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_failure.py +8 -9
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_failure_report.py +104 -20
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_fix_needed_loop.py +31 -36
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_git_merge_smoke.py +8 -5
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_human_review.py +6 -2
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_message_language.py +55 -28
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_pr_verification.py +1 -2
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_progress.py +105 -8
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_progress_wiring.py +5 -6
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_public_contracts.py +26 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_public_helpers.py +2 -1
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_repo_config.py +10 -6
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_resume_e2e.py +14 -12
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_resume_pr.py +197 -138
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_review_merge.py +73 -19
- orbi_cli-0.7.34/tests/test_run_fields.py +83 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_scene.py +15 -93
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_scheduler.py +0 -4
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_suggest.py +24 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_systemd_deploy.py +27 -122
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_systemd_timer.py +5 -3
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_user_summary.py +15 -5
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/LICENSE +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/README.md +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/docs/licenses/sustainable-use-license.md +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/setup.cfg +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/amend_command.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/base_ci_red.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/blocked_comment.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/branch_reclaim.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/check_permission.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/checks.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/claim.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/clarify.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/cli.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/cli_commands.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/cli_doctor.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/cli_parser.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/cli_source.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/cli_status.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/cli_ticket_command.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/comment_kind.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/comment_rest_id.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/comment_trust.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/config.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/delivery_labels.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/draft_cli.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/draft_marker.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/engine_source.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/example_config.toml +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/extensions/clarify_verdict.ts +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/extensions/draft_tools.ts +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/gh_response.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/git_identity.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/git_transport.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/github.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/github_feedback.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/gitops.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/human_review.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/language_terms.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/merge_exec.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/merge_gate.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/merge_handoff.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/milestone.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/milestone_command.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/notify.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/pi_activity.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/pi_command.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/pi_idle.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/pi_process.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/pi_recovery.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/pi_session.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/pi_stream_log.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/pilot_slots.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/pr_verification.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/progress_display.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/progress_outcome.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/progress_summary.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/release.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/release_declaration.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/release_git.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/release_notes.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/repo_config.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/review_verdict.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/runner_health.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/runner_marker.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/runner_source.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/scheduler_units.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/session_command.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/setup_checks.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/setup_config.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/source_pool.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/split_command.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/status_observe.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/suggest.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/ticket_command.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/ticket_command_registry.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/ticket_criteria.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi/user_summary.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi_cli.egg-info/dependency_links.txt +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi_cli.egg-info/entry_points.txt +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/src/orbi_cli.egg-info/top_level.txt +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_agents_md.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_amend_command.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_apply_label_patch.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_base_branch_failure.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_base_ci_red.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_blocked_comment.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_bootstrap_adapters.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_bootstrap_pi.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_bootstrap_preflight.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_bootstrap_release.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_bootstrap_runner_claim_resume.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_bootstrap_runner_milestone.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_bootstrap_runner_outcome.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_bootstrap_runner_prompt.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_bootstrap_runner_reconcile.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_bootstrap_runner_session.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_bootstrap_runner_tickets.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_branch_reclaim.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_check_permission.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_ci_failure_issue_workflow.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_ci_failure_triage.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_ci_macos_workflow.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_ci_workflow.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_clarify.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_claude_plugin.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_cli_golden.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_cli_install.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_cli_milestone.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_cli_packaging.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_cli_source.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_cli_ticket_commands.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_command_receipt_contract.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_comment_identity.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_comment_rest_id.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_comment_trust.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_concurrency_e2e.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_constitution.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_coverage_gate.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_deliver_pr_fakes.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_delivery_branch_delete.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_delivery_labels.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_docker_docs.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_docker_entrypoint.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_docker_image_workflow.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_docs_i18n.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_docs_issue_shapes.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_docs_mermaid.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_docs_releases.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_docs_single_source.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_docs_site.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_engine_source.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_gh_read_retry.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_gh_response.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_git_base_smoke.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_git_network_retry.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_git_transport.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_github.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_github_fakes.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_gitops.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_gitops_fakes.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_import_graph.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_install_sh.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_issue_1367.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_issue_461.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_issue_template_config.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_journal.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_journal_events.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_launchd_deploy.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_license.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_merge_exec_extraction.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_milestone_command.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_notify.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_ops_e2e.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_orbi.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_orbi_dashboard.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_orbi_exporter.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_patch_ratchet.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_pi_activity.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_pi_child_reap.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_pi_command.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_pi_extensions.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_pi_provider_templates.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_pi_recovery.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_pi_session.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_pilot_setup.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_pilot_slots.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_pr_issue_link_workflow.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_prerequisite_check.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_prompt_contract.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_publish_workflow.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_release_docs_workflow.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_release_extraction.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_release_ticket_templates.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_resume_continue_e2e.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_review_verdict.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_run_artifacts.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_run_id_e2e.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_run_id_fixture.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_runner_config.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_runner_health.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_runner_source_freshness.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_seam.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_setup_output_golden.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_size_ratchet.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_split_command.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_src_layout.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_status_observe.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_steering_review.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_suite_hygiene.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_ticket_command.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_ticket_command_registration.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_user_acceptance_contract.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/tests/test_versioned_comment_block.py +0 -0
- {orbi_cli-0.7.32 → orbi_cli-0.7.34}/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.34
|
|
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.34"
|
|
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"
|
|
@@ -33,7 +33,6 @@ from orbi.journal import validate_run_id
|
|
|
33
33
|
from orbi.progress import (
|
|
34
34
|
STARTED_HEADER,
|
|
35
35
|
field_block,
|
|
36
|
-
run_info_fields,
|
|
37
36
|
run_marker,
|
|
38
37
|
)
|
|
39
38
|
from orbi.progress_display import (
|
|
@@ -41,31 +40,31 @@ from orbi.progress_display import (
|
|
|
41
40
|
localized_fields,
|
|
42
41
|
vocabulary,
|
|
43
42
|
)
|
|
43
|
+
from orbi.run_fields import RunFields
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
def started_pi_comment_body(ctx: RunContext, run_info:
|
|
46
|
+
def started_pi_comment_body(ctx: RunContext, run_info: RunFields,
|
|
47
47
|
extra_fields: dict | None = None, *,
|
|
48
48
|
language_code: str,
|
|
49
49
|
status_url: str | None = None,
|
|
50
50
|
issue_title: str | None = None) -> str:
|
|
51
51
|
"""The start comment doubles as the recoverable run scene.
|
|
52
52
|
|
|
53
|
-
`
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
historical English `STARTED_HEADER` stays the reader's fallback for
|
|
57
|
-
comment written before the kind marker existed.
|
|
53
|
+
`run_info` is the run's fields as values (Issue #2055); `extra_fields`
|
|
54
|
+
carries the repo-config audit fields, whose values may contain spaces,
|
|
55
|
+
so they stay their own comment fields and never enter the run fields.
|
|
56
|
+
The historical English `STARTED_HEADER` stays the reader's fallback for
|
|
57
|
+
a comment written before the kind marker existed.
|
|
58
58
|
"""
|
|
59
|
-
fields =
|
|
59
|
+
fields = run_info.as_fields()
|
|
60
60
|
fields["branch"] = str(ctx.branch)
|
|
61
61
|
if extra_fields:
|
|
62
62
|
fields.update(extra_fields)
|
|
63
|
-
info = run_info_fields(run_info)
|
|
64
63
|
rendered_info = {
|
|
65
|
-
key: (vocabulary(language_code, "priority",
|
|
66
|
-
if key == "priority" else
|
|
64
|
+
key: (vocabulary(language_code, "priority", fields[key])
|
|
65
|
+
if key == "priority" else fields[key])
|
|
67
66
|
for key in ("run_id", "priority")
|
|
68
|
-
if key in
|
|
67
|
+
if key in fields
|
|
69
68
|
}
|
|
70
69
|
# The headline's key is the same display label the rows use
|
|
71
70
|
# (Issue #1746): `run_id` has no catalogue entry and stays the
|
|
@@ -98,7 +97,7 @@ def pr_attribution_footer(issue: int, attribution_link: str, *,
|
|
|
98
97
|
)
|
|
99
98
|
|
|
100
99
|
|
|
101
|
-
def opened_pr_comment_body(run_id: str, run_info:
|
|
100
|
+
def opened_pr_comment_body(run_id: str, run_info: RunFields, pr_url: str,
|
|
102
101
|
external: bool = False, *,
|
|
103
102
|
language_code: str,
|
|
104
103
|
status_url: str | None = None,
|
|
@@ -120,18 +119,27 @@ def opened_pr_comment_body(run_id: str, run_info: str, pr_url: str,
|
|
|
120
119
|
|
|
121
120
|
The machine-readable record is the single hidden `orbi:scene:v1`
|
|
122
121
|
block rendered from the `Scene`; the field lines below
|
|
123
|
-
the headline stay for humans only.
|
|
122
|
+
the headline stay for humans only. The record is built from the run's
|
|
123
|
+
fields as values (Issue #2055), never from the display text.
|
|
124
124
|
"""
|
|
125
|
-
fields =
|
|
125
|
+
fields = run_info.as_fields()
|
|
126
126
|
if external:
|
|
127
127
|
fields["external"] = "true"
|
|
128
|
+
# Fail fast: the scene IS the resume record; a run that reached an open
|
|
129
|
+
# PR always knows both values (the frozen base), and a scene without
|
|
130
|
+
# them could never resume.
|
|
131
|
+
if run_info.base_branch is None or run_info.base_sha is None:
|
|
132
|
+
raise ValueError(
|
|
133
|
+
"opened-PR scene needs base_branch and base_sha, got "
|
|
134
|
+
f"{run_info.as_fields()!r}"
|
|
135
|
+
)
|
|
128
136
|
headline = language.text(
|
|
129
137
|
language_code, "delivery.opened_pr_headline",
|
|
130
138
|
) + " " + pr_url
|
|
131
139
|
scene_record = scene.Scene(
|
|
132
140
|
run_id=validate_run_id(run_id),
|
|
133
|
-
base_branch=
|
|
134
|
-
base_sha=
|
|
141
|
+
base_branch=run_info.base_branch,
|
|
142
|
+
base_sha=run_info.base_sha,
|
|
135
143
|
pr_url=pr_url,
|
|
136
144
|
external="true" if external else "",
|
|
137
145
|
)
|
|
@@ -98,9 +98,9 @@ def classify(
|
|
|
98
98
|
- `labels`: the Issue's current labels (the scan's query snapshot,
|
|
99
99
|
with the dispatch layer's direct `ai-in-progress` read merged in
|
|
100
100
|
when it saw the label);
|
|
101
|
-
- `scene`: the trusted resume scene of an opened-PR comment
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
- `scene`: the trusted resume scene of an opened-PR comment
|
|
102
|
+
(`orbi.run_state.ResumeScene`); None when no trusted comment
|
|
103
|
+
carries one;
|
|
104
104
|
- `pr_state`: the probed PR state for the delivery branch
|
|
105
105
|
(`"OPEN"` / `"MERGED"` / `"CLOSED"`), None when no PR was probed
|
|
106
106
|
or none is open;
|
|
@@ -595,6 +595,37 @@ def fidelity_pass(
|
|
|
595
595
|
|
|
596
596
|
# --- one drafting round --------------------------------------------------
|
|
597
597
|
|
|
598
|
+
def _fidelity_request(payload: dict) -> str:
|
|
599
|
+
"""The person's own words: every earlier person turn, then the message.
|
|
600
|
+
|
|
601
|
+
The fidelity pass removes what the person did not ask for, so it must
|
|
602
|
+
hear everything the person asked for. On an answer round the latest
|
|
603
|
+
message is only the answer, and an outcome stated in an earlier round
|
|
604
|
+
would be stripped out of the draft (Issue #2050). A round with no
|
|
605
|
+
earlier person turn sends exactly the message, as before. A turn
|
|
606
|
+
without a role is the person's, the way `render_context` reads it.
|
|
607
|
+
"""
|
|
608
|
+
message = str(payload["message"]).strip()
|
|
609
|
+
conversation = payload.get("conversation")
|
|
610
|
+
turns: list[str] = []
|
|
611
|
+
for turn in conversation if isinstance(conversation, list) else ():
|
|
612
|
+
if not isinstance(turn, dict):
|
|
613
|
+
continue
|
|
614
|
+
if str(turn.get("role") or "person") != "person":
|
|
615
|
+
continue
|
|
616
|
+
text = str(turn.get("text") or "").strip()
|
|
617
|
+
if text:
|
|
618
|
+
turns.append(text)
|
|
619
|
+
if not turns:
|
|
620
|
+
return message
|
|
621
|
+
return "\n\n".join((
|
|
622
|
+
"The person's words in this conversation, oldest first, the "
|
|
623
|
+
"latest message last:",
|
|
624
|
+
*turns,
|
|
625
|
+
message,
|
|
626
|
+
))
|
|
627
|
+
|
|
628
|
+
|
|
598
629
|
def run_round(
|
|
599
630
|
config: RunnerConfig, repo: str, *, session_dir: Path, payload: dict,
|
|
600
631
|
run_id: str,
|
|
@@ -621,7 +652,7 @@ def run_round(
|
|
|
621
652
|
return DraftRound(reply=answer.reply, questions=answer.questions)
|
|
622
653
|
issues, warning = fidelity_pass(
|
|
623
654
|
config, repo, session_root=session_root, run_id=run_id,
|
|
624
|
-
request=
|
|
655
|
+
request=_fidelity_request(payload), issues=answer.issues,
|
|
625
656
|
)
|
|
626
657
|
issues, check, warning, reply = _apply_check(
|
|
627
658
|
config, repo, session_root=session_root, payload=payload,
|
|
@@ -622,7 +622,7 @@ def failure_comment_body(*, outcome: str, action: str, reason: str,
|
|
|
622
622
|
raw detail stays inside the one Diagnosis `<details>` block
|
|
623
623
|
(`evidence`).
|
|
624
624
|
"""
|
|
625
|
-
retrying = outcome == "
|
|
625
|
+
retrying = outcome == "fix_needed"
|
|
626
626
|
if failure_record is None:
|
|
627
627
|
failure_record = Failure(
|
|
628
628
|
reason_code="unclassified", action_code="fix_ticket",
|
|
@@ -661,28 +661,13 @@ def failure_comment_body(*, outcome: str, action: str, reason: str,
|
|
|
661
661
|
"failure.disposition_needs_fix" if retrying
|
|
662
662
|
else "failure.disposition_failed",
|
|
663
663
|
)
|
|
664
|
-
# The scene's human field labels follow the same language; the
|
|
665
|
-
# correlation row reads the two values through the SAME labels, so the
|
|
666
|
-
# machine lookup shape survives translation.
|
|
667
|
-
branch_match = re.search(
|
|
668
|
-
rf"- {re.escape(message('failure.scene.branch'))}: `([^`]+)`",
|
|
669
|
-
scene,
|
|
670
|
-
)
|
|
671
|
-
session_match = re.search(
|
|
672
|
-
rf"- {re.escape(message('failure.scene.session'))}: `([^`]+)`",
|
|
673
|
-
scene,
|
|
674
|
-
)
|
|
675
|
-
correlation = (
|
|
676
|
-
f"run={run_id} branch={branch_match.group(1) if branch_match else '-'} "
|
|
677
|
-
f"session={session_match.group(1) if session_match else '-'}"
|
|
678
|
-
)
|
|
679
664
|
details = [
|
|
680
665
|
f"<details><summary>{message('failure.diagnosis_summary')}</summary>",
|
|
681
666
|
message("failure.disposition_row", disposition=disposition),
|
|
667
|
+
# The scene closes with its ONE correlation row, rendered from the
|
|
668
|
+
# run facts (Issue #2057) — this renderer never re-parses the
|
|
669
|
+
# localized labels it has just written.
|
|
682
670
|
scene,
|
|
683
|
-
# Stable correlation keys retain the old journal lookup shape while
|
|
684
|
-
# local path fields above remain reader-safe labels.
|
|
685
|
-
message("failure.correlation_row", correlation=correlation),
|
|
686
671
|
]
|
|
687
672
|
if diagnosis:
|
|
688
673
|
reason_summary = failure_summary(reason, language_code)
|
|
@@ -290,9 +290,11 @@ def _failure_scene(snapshot: dict, *, run_id: str, issue: str, role: str,
|
|
|
290
290
|
"""Render run facts as wrapping Markdown, never as a host-path dump.
|
|
291
291
|
|
|
292
292
|
The field labels are human prose and follow the run's message
|
|
293
|
-
language
|
|
294
|
-
|
|
295
|
-
|
|
293
|
+
language. The ONE correlation row closes the fold with the stable
|
|
294
|
+
journal lookup shape (`run= branch= session= phase= last_activity=`),
|
|
295
|
+
built here from the SAME run facts the field rows render — no reader
|
|
296
|
+
re-parses the localized labels, and no second row repeats them
|
|
297
|
+
(Issue #2057).
|
|
296
298
|
"""
|
|
297
299
|
def message(key: str, **fields: object) -> str:
|
|
298
300
|
return language.text(language_code, key, **fields)
|
|
@@ -306,25 +308,31 @@ def _failure_scene(snapshot: dict, *, run_id: str, issue: str, role: str,
|
|
|
306
308
|
if snapshot.get("session_file")
|
|
307
309
|
else message("failure.scene.unavailable")
|
|
308
310
|
)
|
|
311
|
+
# ONE set of run facts for the field rows AND the correlation row, so
|
|
312
|
+
# a placeholder scene can never disagree with itself (#2057).
|
|
313
|
+
session_id = snapshot.get("session_id") or "-"
|
|
314
|
+
phase = snapshot.get("phase") or "-"
|
|
315
|
+
last_activity = snapshot.get("last_activity") or "-"
|
|
309
316
|
rendered_fields = [
|
|
310
317
|
field("run", run_id), field("issue", issue), field("role", role),
|
|
311
318
|
field("branch", branch),
|
|
312
319
|
field("worktree", message("failure.scene.local_worktree")),
|
|
313
|
-
field("session",
|
|
320
|
+
field("session", session_id),
|
|
314
321
|
field("session_log", session_log),
|
|
315
|
-
field("phase",
|
|
316
|
-
field("last_activity",
|
|
322
|
+
field("phase", phase),
|
|
323
|
+
field("last_activity", last_activity),
|
|
317
324
|
field("action", snapshot.get("action") or "-"),
|
|
318
325
|
field("result", snapshot.get("result") or "-"),
|
|
319
326
|
]
|
|
320
327
|
if pr_url:
|
|
321
328
|
rendered_fields.insert(1, f"- PR: [{pr_url}]({pr_url})")
|
|
322
329
|
rendered = "\n".join(rendered_fields)
|
|
323
|
-
|
|
324
|
-
f"
|
|
325
|
-
f"
|
|
326
|
-
|
|
327
|
-
|
|
330
|
+
correlation = redact_local_paths(
|
|
331
|
+
f"run={run_id} branch={branch} session={session_id} "
|
|
332
|
+
f"phase={phase} last_activity={last_activity}",
|
|
333
|
+
)
|
|
334
|
+
return rendered + "\n" + message(
|
|
335
|
+
"failure.correlation_row", correlation=correlation,
|
|
328
336
|
)
|
|
329
337
|
|
|
330
338
|
|
|
@@ -648,7 +656,7 @@ def report_delivery_failure(
|
|
|
648
656
|
and the terminal progress scene as a pure bypass. The carried
|
|
649
657
|
failure is named `action`, `reason`, and `diagnosis`; the milestone
|
|
650
658
|
uses the reason, or the action for its own #1651 repair path. Returns
|
|
651
|
-
the outcome, `"blocked"` or `"
|
|
659
|
+
the outcome, `"blocked"` or `"fix_needed"`.
|
|
652
660
|
|
|
653
661
|
`classify=False` forces the terminal branch (the implement-phase
|
|
654
662
|
handler: every failure reaching it is terminal by design — the
|
|
@@ -813,7 +821,7 @@ def report_delivery_failure(
|
|
|
813
821
|
)
|
|
814
822
|
if review_scene_block is not None:
|
|
815
823
|
scene += f"\n{redact_local_paths(review_scene_block)}"
|
|
816
|
-
outcome = "
|
|
824
|
+
outcome = "fix_needed"
|
|
817
825
|
if isinstance(red, base_ci_red.BaseCIRed):
|
|
818
826
|
body = base_ci_red.comment_body(
|
|
819
827
|
red, getattr(exc, "checks", []),
|
|
@@ -821,7 +829,7 @@ def report_delivery_failure(
|
|
|
821
829
|
issue_number=number, issue_title=title, status_url=status_url)
|
|
822
830
|
else:
|
|
823
831
|
body = failure_comment_body(
|
|
824
|
-
outcome="blocked" if blocked else "
|
|
832
|
+
outcome="blocked" if blocked else "fix_needed",
|
|
825
833
|
action=action, reason=reason, diagnosis=diagnosis, scene=scene,
|
|
826
834
|
evidence=evidence_detail, pr_url=pr_url,
|
|
827
835
|
issue=issue_context(source_repo, number), run_id=run_id or "-",
|
|
@@ -972,7 +980,7 @@ def report_delivery_failure(
|
|
|
972
980
|
))
|
|
973
981
|
finish_failure = reason
|
|
974
982
|
next_step = language.text(language_code, "failure.next_step_fix_needed")
|
|
975
|
-
finish_outcome = "
|
|
983
|
+
finish_outcome = "fix_needed"
|
|
976
984
|
if finish:
|
|
977
985
|
publish(action=lambda: target.finish(finish_progress_body(
|
|
978
986
|
number=number, title=title, run_id=run_id, role=role,
|
|
@@ -286,7 +286,6 @@ JOURNAL_EVENTS: dict[str, str] = {
|
|
|
286
286
|
"unit_drift": "installed units vs repo templates: clean, self-healed, or drifting",
|
|
287
287
|
"unit_conflict": "an installed unit file conflicts with the deployment",
|
|
288
288
|
"units_installed": "the systemd user units were installed or refreshed",
|
|
289
|
-
"legacy_units_migrated": "pre-#149 non-templated units were removed",
|
|
290
289
|
# Self-health check.
|
|
291
290
|
"health_check_skipped": "the periodic health check skipped this tick",
|
|
292
291
|
"health_check_queue_empty": "the health check found a non-empty-but-stale queue claim",
|
|
@@ -850,7 +850,6 @@ MESSAGES: dict[str, tuple[str, str]] = {
|
|
|
850
850
|
"failure.scene.last_activity": ("last activity", "最近活动"),
|
|
851
851
|
"failure.scene.action": ("action", "动作"),
|
|
852
852
|
"failure.scene.result": ("result", "结果"),
|
|
853
|
-
"failure.scene.legacy_correlation": ("legacy correlation", "旧版关联信息"),
|
|
854
853
|
"failure.scene.local_worktree": (
|
|
855
854
|
"local runner worktree", "本机 Runner 工作树",
|
|
856
855
|
),
|
|
@@ -327,11 +327,6 @@ class LaunchdScheduler:
|
|
|
327
327
|
):
|
|
328
328
|
run_command(["launchctl", "bootout", self.target(label)])
|
|
329
329
|
|
|
330
|
-
def pre_install(self, run_command, installed_dir: Path,
|
|
331
|
-
unit_name: str | None = None) -> None:
|
|
332
|
-
# No launchd-era legacy units exist to migrate.
|
|
333
|
-
return None
|
|
334
|
-
|
|
335
330
|
def unmanaged_entries(self, installed_dir: Path) -> list[dict]:
|
|
336
331
|
"""Orbi agent plists no deployment's drift check can see.
|
|
337
332
|
|
|
@@ -39,6 +39,7 @@ from orbi.progress import (
|
|
|
39
39
|
progress_body_with_outcome,
|
|
40
40
|
progress_state,
|
|
41
41
|
)
|
|
42
|
+
from orbi.run_fields import RunFields
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
def ops_config(
|
|
@@ -61,7 +62,7 @@ def deliver_pure_ops(
|
|
|
61
62
|
config: config_domain.RunnerConfig,
|
|
62
63
|
publisher: ProgressPublisher,
|
|
63
64
|
publish: Callable[..., None],
|
|
64
|
-
run_info:
|
|
65
|
+
run_info: RunFields,
|
|
65
66
|
title: str,
|
|
66
67
|
started: float,
|
|
67
68
|
priority: str,
|
|
@@ -94,7 +95,7 @@ def deliver_pure_ops(
|
|
|
94
95
|
publish(
|
|
95
96
|
action=lambda: publisher.milestone(language.text(
|
|
96
97
|
language.of(config),
|
|
97
|
-
"runner.ops_milestone", run_info=run_info,
|
|
98
|
+
"runner.ops_milestone", run_info=run_info.text(),
|
|
98
99
|
)),
|
|
99
100
|
)
|
|
100
101
|
publish(
|
|
@@ -473,7 +473,7 @@ def run_setup(config: RunnerConfig, installed_dir: Path | None, *,
|
|
|
473
473
|
check_commands(run_command, config.unit_name)
|
|
474
474
|
# The CLI source step precedes every mutating step — the
|
|
475
475
|
# running CLI must import from the deployment checkout, otherwise
|
|
476
|
-
# the unit
|
|
476
|
+
# the unit install below (and the pre-start self-heal it
|
|
477
477
|
# repairs) could never run the new code (the #152 deadlock).
|
|
478
478
|
cli = install_cli_step(
|
|
479
479
|
deploy_home, cli_source.module_file(), run_command=run_command,
|
|
@@ -40,6 +40,7 @@ from orbi.journal import (
|
|
|
40
40
|
)
|
|
41
41
|
from orbi import language, user_summary
|
|
42
42
|
from orbi.checks import test_status
|
|
43
|
+
from orbi.run_fields import RunFields
|
|
43
44
|
from orbi.pi_activity import activity_snapshot
|
|
44
45
|
from orbi.comment_kind import (
|
|
45
46
|
COMMENT_KIND_STARTED,
|
|
@@ -165,50 +166,17 @@ def field_block(run_id: str, headline: str, fields: dict[str, object], *,
|
|
|
165
166
|
|
|
166
167
|
|
|
167
168
|
def format_status_comment(body: str) -> str:
|
|
168
|
-
"""
|
|
169
|
+
"""Prepare one comment for posting, exactly as its writer rendered it.
|
|
170
|
+
|
|
171
|
+
The two cross-cutting steps every posted or edited comment shares live
|
|
172
|
+
here: secret redaction and the runner footer. Nothing else — a body is
|
|
173
|
+
never re-rendered, so both languages keep the line structure (and the
|
|
174
|
+
single headline) their writer produced (Issue #2054: the former English
|
|
175
|
+
one-line rewrite repeated the headline as a `- detail:` row).
|
|
176
|
+
"""
|
|
169
177
|
if not isinstance(body, str):
|
|
170
178
|
return body
|
|
171
|
-
|
|
172
|
-
marker = ""
|
|
173
|
-
if body.startswith("<!-- orbi:run=") and "\n" in body:
|
|
174
|
-
marker, _, body = body.partition("\n")
|
|
175
|
-
first, separator, remainder = body.partition("\n")
|
|
176
|
-
prefixes = (
|
|
177
|
-
"Orbi failed:", "Orbi needs a fix:", "Orbi merged PR:",
|
|
178
|
-
"Orbi release failed", "Orbi release waiting",
|
|
179
|
-
)
|
|
180
|
-
if not first.startswith(prefixes):
|
|
181
|
-
return _with_runner_marker((marker + "\n" + body) if marker else body)
|
|
182
|
-
if (
|
|
183
|
-
first.startswith("Orbi merged PR:")
|
|
184
|
-
# A pre-#1431 one-liner carries its fields in parentheses and is
|
|
185
|
-
# still expanded below; the new merged body has no such group
|
|
186
|
-
# and is already in its final, idempotent shape (Issue #1431).
|
|
187
|
-
and not re.search(r"\((?=[^)]*=)[^)]*\)", first)
|
|
188
|
-
):
|
|
189
|
-
return _with_runner_marker((marker + "\n" + body) if marker else body)
|
|
190
|
-
fields: dict[str, object] = {}
|
|
191
|
-
for key, value in re.findall(r"([A-Za-z_][\w-]*)=([^\s)]+)", first):
|
|
192
|
-
fields[key] = value
|
|
193
|
-
detail = re.sub(r"\s*\((?=[^)]*=)[^)]*\)", "", first).strip()
|
|
194
|
-
run_id = fields.get("run_id")
|
|
195
|
-
if not run_id and marker:
|
|
196
|
-
match = re.search(rf"orbi:run=({RUN_ID_PATTERN.pattern})", marker)
|
|
197
|
-
run_id = match.group(1) if match else None
|
|
198
|
-
fields.setdefault("detail", detail)
|
|
199
|
-
if isinstance(run_id, str) and RUN_ID_PATTERN.fullmatch(run_id):
|
|
200
|
-
# A legacy one-line status comment (pre-#1659) is normalized to
|
|
201
|
-
# the field-block shape: its prose predates message_language, so
|
|
202
|
-
# the (English) legacy summary is the honest rendering here.
|
|
203
|
-
rendered = field_block(run_id, detail, fields,
|
|
204
|
-
language_code=language.DEFAULT_LANGUAGE)
|
|
205
|
-
if remainder:
|
|
206
|
-
rendered += "\n" + remainder
|
|
207
|
-
return _with_runner_marker(
|
|
208
|
-
(marker + "\n" + rendered.split("\n", 1)[1])
|
|
209
|
-
if marker else rendered
|
|
210
|
-
)
|
|
211
|
-
return _with_runner_marker((marker + "\n" + body) if marker else body)
|
|
179
|
+
return _with_runner_marker(redact_secrets(body))
|
|
212
180
|
|
|
213
181
|
|
|
214
182
|
def run_marker(run_id: object) -> str:
|
|
@@ -316,7 +284,7 @@ def bump_recovered_repeat(body: str, reason_code: str, previous: int) -> str:
|
|
|
316
284
|
|
|
317
285
|
def recoverable_scene_body(
|
|
318
286
|
*, run_id: str, recoverable_name: str, record: Failure,
|
|
319
|
-
detail: str, run_info:
|
|
287
|
+
detail: str, run_info: RunFields,
|
|
320
288
|
language_code: str, status_url: str | None = None,
|
|
321
289
|
issue: int | None = None, title: str | None = None,
|
|
322
290
|
) -> str:
|
|
@@ -331,7 +299,9 @@ def recoverable_scene_body(
|
|
|
331
299
|
`orbi:fail=` marker: a recoverable failure never escalates, whatever
|
|
332
300
|
the count, so the Issue stays `ai-in-progress` (#1455/#227).
|
|
333
301
|
`failure_scene` folds the same `(run_id, reason_code)` into one
|
|
334
|
-
comment and gives a different cause its own.
|
|
302
|
+
comment and gives a different cause its own. `run_info` is the run's
|
|
303
|
+
fields; the sentence below is the ONE place that renders their
|
|
304
|
+
space-separated text (Issue #2055).
|
|
335
305
|
"""
|
|
336
306
|
return language.text(
|
|
337
307
|
language_code, "progress.recoverable_scene",
|
|
@@ -339,7 +309,7 @@ def recoverable_scene_body(
|
|
|
339
309
|
recovered_marker=recovered_marker(record.reason_code),
|
|
340
310
|
recoverable_name=recoverable_name,
|
|
341
311
|
reason_code=record.reason_code,
|
|
342
|
-
run_info=run_info,
|
|
312
|
+
run_info=run_info.text(),
|
|
343
313
|
action_code=record.action_code,
|
|
344
314
|
retry_safe=str(record.retry_safe).lower(),
|
|
345
315
|
detail=fenced(redact_local_paths(detail)),
|
|
@@ -746,14 +716,6 @@ class ProgressPublisher:
|
|
|
746
716
|
# --- to the progress module) ----
|
|
747
717
|
|
|
748
718
|
|
|
749
|
-
def run_info_fields(run_info: str) -> dict[str, str]:
|
|
750
|
-
"""Extract the runner-owned key/value fields for comment rendering."""
|
|
751
|
-
return dict(
|
|
752
|
-
part.split("=", 1) for part in run_info.split()
|
|
753
|
-
if "=" in part
|
|
754
|
-
)
|
|
755
|
-
|
|
756
|
-
|
|
757
719
|
def progress_state(ctx: RunContext, *, title: str, role: str,
|
|
758
720
|
started: float, pr_url: str | None,
|
|
759
721
|
review_round: int, priority: str, language_code: str,
|
|
@@ -49,6 +49,7 @@ from orbi.release_git import (
|
|
|
49
49
|
release_view,
|
|
50
50
|
run_git_write,
|
|
51
51
|
)
|
|
52
|
+
from orbi.run_fields import RunFields
|
|
52
53
|
|
|
53
54
|
|
|
54
55
|
def release_tag_commit(repo_dir: Path, tag: str) -> str | None:
|
|
@@ -334,7 +335,8 @@ def close_release_milestone(repo: str, version: str, *, run_id: str | None = Non
|
|
|
334
335
|
|
|
335
336
|
|
|
336
337
|
def release_success_closeout(
|
|
337
|
-
*, repo: str, number: int, run_id: str, run_info:
|
|
338
|
+
*, repo: str, number: int, run_id: str, run_info: RunFields,
|
|
339
|
+
tag: str,
|
|
338
340
|
release_commit: str, release_url: str, scope_evidence: list[str],
|
|
339
341
|
gate_evidence: list[str], test_evidence: str, ready_label: str,
|
|
340
342
|
language_code: str, status_url: str | None, title: str,
|
|
@@ -409,7 +411,7 @@ def release_success_closeout(
|
|
|
409
411
|
|
|
410
412
|
|
|
411
413
|
def release_failure_closeout(
|
|
412
|
-
*, repo: str, number: int, run_id: str, run_info:
|
|
414
|
+
*, repo: str, number: int, run_id: str, run_info: RunFields,
|
|
413
415
|
error: Exception, ready_label: str, language_code: str,
|
|
414
416
|
status_url: str | None, title: str,
|
|
415
417
|
) -> None:
|
|
@@ -14,7 +14,8 @@ frozen module grows for the catalog text.
|
|
|
14
14
|
from __future__ import annotations
|
|
15
15
|
|
|
16
16
|
from orbi import failure, language
|
|
17
|
-
from orbi.progress import field_block
|
|
17
|
+
from orbi.progress import field_block
|
|
18
|
+
from orbi.run_fields import RunFields
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
def _epic_audit(child_evidence: list[str], version: str | None,
|
|
@@ -55,7 +56,7 @@ def epic_audit_posted(comments: list[dict], child_evidence: list[str],
|
|
|
55
56
|
)
|
|
56
57
|
|
|
57
58
|
|
|
58
|
-
def release_success_comment_body(run_id: str, run_info:
|
|
59
|
+
def release_success_comment_body(run_id: str, run_info: RunFields,
|
|
59
60
|
release_url: str, tag: str,
|
|
60
61
|
release_commit: str,
|
|
61
62
|
scope_evidence: list[str],
|
|
@@ -73,9 +74,10 @@ def release_success_comment_body(run_id: str, run_info: str,
|
|
|
73
74
|
run marker, release URL, version/tag/release commit, the
|
|
74
75
|
per-item scope evidence, the gate evidence, the test evidence and
|
|
75
76
|
the Milestone evidence (the Milestone whose title is the released
|
|
76
|
-
version is closed on the success path).
|
|
77
|
+
version is closed on the success path). `run_info` is the run's fields
|
|
78
|
+
as values (Issue #2055).
|
|
77
79
|
"""
|
|
78
|
-
info =
|
|
80
|
+
info = run_info.as_fields()
|
|
79
81
|
return "\n".join([
|
|
80
82
|
field_block(
|
|
81
83
|
run_id,
|
|
@@ -106,7 +108,7 @@ def release_success_comment_body(run_id: str, run_info: str,
|
|
|
106
108
|
])
|
|
107
109
|
|
|
108
110
|
|
|
109
|
-
def release_failure_comment_body(run_id: str, run_info:
|
|
111
|
+
def release_failure_comment_body(run_id: str, run_info: RunFields,
|
|
110
112
|
error: BaseException,
|
|
111
113
|
language_code: str,
|
|
112
114
|
status_url: str | None = None,
|
|
@@ -124,7 +126,7 @@ def release_failure_comment_body(run_id: str, run_info: str,
|
|
|
124
126
|
body = field_block(
|
|
125
127
|
run_id,
|
|
126
128
|
language.text(language_code, "release.failed_headline"),
|
|
127
|
-
{**
|
|
129
|
+
{**run_info.as_fields(), "failure": detail},
|
|
128
130
|
language_code=language_code, status_url=status_url,
|
|
129
131
|
issue=issue, title=title,
|
|
130
132
|
)
|
|
@@ -20,6 +20,7 @@ import functools
|
|
|
20
20
|
import logging
|
|
21
21
|
import re
|
|
22
22
|
import time
|
|
23
|
+
from dataclasses import replace
|
|
23
24
|
from typing import TYPE_CHECKING
|
|
24
25
|
|
|
25
26
|
from orbi import language, user_summary
|
|
@@ -86,6 +87,7 @@ from orbi.release_notes import (
|
|
|
86
87
|
release_changelog_scope,
|
|
87
88
|
release_range_prs,
|
|
88
89
|
)
|
|
90
|
+
from orbi.run_fields import RunFields
|
|
89
91
|
|
|
90
92
|
if TYPE_CHECKING:
|
|
91
93
|
# Annotation-only: this module imports `orbi.runner` never — the
|
|
@@ -167,7 +169,7 @@ def process_release(issue: dict, config: RunnerConfig,
|
|
|
167
169
|
started = time.monotonic()
|
|
168
170
|
# Bound before the try: the failure comment needs it even when the
|
|
169
171
|
# declaration parse fails on the very first step.
|
|
170
|
-
run_info =
|
|
172
|
+
run_info = RunFields(run_id=run_id, priority=priority)
|
|
171
173
|
publisher = ProgressPublisher(
|
|
172
174
|
number, source_repo, run_id, run_command=run_command,
|
|
173
175
|
language_code=language.of(config), status_url=config.status_url,
|
|
@@ -224,8 +226,8 @@ def process_release(issue: dict, config: RunnerConfig,
|
|
|
224
226
|
# post-gate reassignment further down adds base_sha). The journal
|
|
225
227
|
# refactor deleted the assignment and both comments lost the only
|
|
226
228
|
# field naming the frozen branch.
|
|
227
|
-
run_info =
|
|
228
|
-
event("release_task", run_info, issue=number)
|
|
229
|
+
run_info = replace(run_info, base_branch=base_branch)
|
|
230
|
+
event("release_task", run_info.text(), issue=number)
|
|
229
231
|
apply_label_patch(
|
|
230
232
|
number, repo=source_repo, event=EVENT_CLAIM,
|
|
231
233
|
current_labels={label.get("name") for label in issue.get(
|
|
@@ -239,7 +241,7 @@ def process_release(issue: dict, config: RunnerConfig,
|
|
|
239
241
|
publish(
|
|
240
242
|
action=lambda: publisher.milestone(
|
|
241
243
|
language.text(language.of(config), "release.started",
|
|
242
|
-
run_info=run_info),
|
|
244
|
+
run_info=run_info.text()),
|
|
243
245
|
),
|
|
244
246
|
)
|
|
245
247
|
release_commit = freeze_base(config.repo_dir, base_branch)
|
|
@@ -248,7 +250,7 @@ def process_release(issue: dict, config: RunnerConfig,
|
|
|
248
250
|
release_commit,
|
|
249
251
|
)
|
|
250
252
|
base_branch = declaration["base_branch"]
|
|
251
|
-
run_info =
|
|
253
|
+
run_info = replace(run_info, base_branch=base_branch, base_sha=release_commit)
|
|
252
254
|
# The declared (or defaulted) version_file is proven
|
|
253
255
|
# to exist in the frozen release tree BEFORE any gate wait — a
|
|
254
256
|
# mismatch used to surface only at the version-write step, after
|
|
@@ -285,10 +287,6 @@ def process_release(issue: dict, config: RunnerConfig,
|
|
|
285
287
|
max(0.0, time.time() - wait_started)
|
|
286
288
|
if wait_started is not None else 0.0
|
|
287
289
|
)
|
|
288
|
-
run_info = (
|
|
289
|
-
f"base_branch={base_branch} base_sha={release_commit} "
|
|
290
|
-
f"run_id={run_id} priority={priority}"
|
|
291
|
-
)
|
|
292
290
|
# The leftover-delivery gate is scoped to the same
|
|
293
291
|
# Milestone as the #663 completeness gate — the release Issue's own
|
|
294
292
|
# GitHub Milestone, `active_milestone` fallback.
|