orbi-cli 0.7.33__tar.gz → 0.7.35__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.33 → orbi_cli-0.7.35}/PKG-INFO +2 -1
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/README.md +1 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/pyproject.toml +1 -1
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/__init__.py +1 -1
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/draft.py +26 -7
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/example_config.toml +1 -1
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/journal.py +0 -1
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/launchd_deploy.py +0 -5
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/pilot_setup.py +1 -1
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/run_state.py +5 -5
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/scene.py +10 -64
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/scheduler.py +1 -7
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/systemd_deploy.py +5 -47
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi_cli.egg-info/PKG-INFO +2 -1
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_bootstrap_delivery.py +45 -27
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_docker_docs.py +30 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_docs_i18n.py +107 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_docs_labels.py +8 -3
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_docs_site.py +193 -5
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_draft.py +46 -2
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_fix_needed_loop.py +10 -4
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_human_review.py +6 -2
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_public_contracts.py +29 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_resume_pr.py +71 -59
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_runner_config.py +23 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_scene.py +15 -93
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_scheduler.py +0 -4
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_systemd_deploy.py +27 -122
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_systemd_timer.py +5 -3
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/LICENSE +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/docs/licenses/sustainable-use-license.md +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/setup.cfg +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/amend_command.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/base_ci_red.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/blocked_comment.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/branch_reclaim.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/check_permission.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/checks.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/claim.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/clarify.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/cli.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/cli_commands.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/cli_doctor.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/cli_parser.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/cli_source.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/cli_status.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/cli_ticket_command.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/comment_kind.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/comment_rest_id.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/comment_trust.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/config.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/delivery_comment.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/delivery_labels.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/delivery_scene.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/draft_cli.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/draft_marker.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/engine_source.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/extensions/clarify_verdict.ts +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/extensions/draft_tools.ts +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/failure.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/failure_report.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/gh_response.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/git_identity.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/git_transport.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/github.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/github_feedback.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/gitops.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/human_review.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/language.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/language_terms.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/merge_exec.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/merge_gate.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/merge_handoff.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/milestone.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/milestone_command.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/notify.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/ops_delivery.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/pi_activity.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/pi_command.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/pi_idle.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/pi_process.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/pi_recovery.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/pi_session.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/pi_stream_log.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/pilot_slots.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/pr_verification.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/progress.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/progress_display.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/progress_outcome.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/progress_summary.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/release.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/release_closeout.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/release_comments.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/release_declaration.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/release_git.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/release_notes.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/release_run.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/repo_config.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/resume_scan.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/resume_verification.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/review_merge.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/review_rounds.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/review_verdict.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/run_fields.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/runner.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/runner_health.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/runner_marker.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/runner_source.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/scheduler_units.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/session_command.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/setup_checks.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/setup_config.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/source_pool.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/split_command.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/status_observe.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/suggest.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/ticket_command.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/ticket_command_registry.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/ticket_criteria.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi/user_summary.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi_cli.egg-info/SOURCES.txt +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi_cli.egg-info/dependency_links.txt +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi_cli.egg-info/entry_points.txt +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/src/orbi_cli.egg-info/top_level.txt +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_agents_md.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_amend_command.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_apply_label_patch.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_base_branch_failure.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_base_ci_red.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_blocked_comment.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_bootstrap_adapters.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_bootstrap_pi.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_bootstrap_preflight.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_bootstrap_release.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_bootstrap_runner_claim_resume.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_bootstrap_runner_failure_report.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_bootstrap_runner_main.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_bootstrap_runner_milestone.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_bootstrap_runner_outcome.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_bootstrap_runner_prompt.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_bootstrap_runner_reconcile.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_bootstrap_runner_session.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_bootstrap_runner_tickets.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_branch_reclaim.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_check_permission.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_ci_failure_issue_workflow.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_ci_failure_triage.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_ci_macos_workflow.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_ci_workflow.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_clarify.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_claude_plugin.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_cli_golden.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_cli_install.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_cli_milestone.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_cli_packaging.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_cli_source.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_cli_ticket_commands.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_command_receipt_contract.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_comment_identity.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_comment_readers_contract.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_comment_rest_id.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_comment_trust.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_concurrency_e2e.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_constitution.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_coverage_gate.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_deliver_pr_fakes.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_delivery_branch_delete.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_delivery_labels.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_delivery_scene.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_docker_entrypoint.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_docker_image_workflow.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_docs_issue_shapes.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_docs_mermaid.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_docs_releases.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_docs_single_source.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_engine_source.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_failure.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_failure_report.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_gh_read_retry.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_gh_response.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_git_base_smoke.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_git_merge_smoke.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_git_network_retry.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_git_transport.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_github.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_github_fakes.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_gitops.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_gitops_fakes.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_import_graph.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_install_sh.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_issue_1367.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_issue_461.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_issue_template_config.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_journal.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_journal_events.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_launchd_deploy.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_license.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_merge_exec_extraction.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_message_language.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_milestone_command.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_notify.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_ops_e2e.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_orbi.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_orbi_dashboard.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_orbi_exporter.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_patch_ratchet.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_pi_activity.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_pi_child_reap.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_pi_command.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_pi_extensions.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_pi_provider_templates.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_pi_recovery.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_pi_session.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_pilot_setup.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_pilot_slots.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_pr_issue_link_workflow.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_pr_verification.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_prerequisite_check.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_progress.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_progress_wiring.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_prompt_contract.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_public_helpers.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_publish_workflow.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_release_docs_workflow.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_release_extraction.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_release_ticket_templates.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_repo_config.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_resume_continue_e2e.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_resume_e2e.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_review_merge.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_review_verdict.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_run_artifacts.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_run_fields.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_run_id_e2e.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_run_id_fixture.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_runner_health.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_runner_source_freshness.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_seam.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_setup_output_golden.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_size_ratchet.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_split_command.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_src_layout.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_status_observe.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_steering_review.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_suggest.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_suite_hygiene.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_ticket_command.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_ticket_command_registration.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_user_acceptance_contract.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_user_summary.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/tests/test_versioned_comment_block.py +0 -0
- {orbi_cli-0.7.33 → orbi_cli-0.7.35}/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.35
|
|
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
|
|
@@ -53,6 +53,7 @@ Choose the mode in [Getting started](docs/getting-started.mdx): bootstrap uses t
|
|
|
53
53
|
|
|
54
54
|
```bash
|
|
55
55
|
cp src/orbi/example_config.toml orbi.toml
|
|
56
|
+
# edit orbi.toml: set source_repos = ["OWNER/REPO"] (the repository whose Issues Orbi delivers)
|
|
56
57
|
orbi setup --config orbi.toml # 4. run one-time setup (checks prior gh auth, labels, scheduler units (systemd/launchd), and checkout; idempotent)
|
|
57
58
|
PYTHONPATH=src python3 -m orbi.runner --config orbi.toml # 5. manually run one tick (for initial verification; the timer schedules normal runs)
|
|
58
59
|
orbi doctor --config orbi.toml # 6. verify deployment health
|
|
@@ -37,6 +37,7 @@ Choose the mode in [Getting started](docs/getting-started.mdx): bootstrap uses t
|
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
39
|
cp src/orbi/example_config.toml orbi.toml
|
|
40
|
+
# edit orbi.toml: set source_repos = ["OWNER/REPO"] (the repository whose Issues Orbi delivers)
|
|
40
41
|
orbi setup --config orbi.toml # 4. run one-time setup (checks prior gh auth, labels, scheduler units (systemd/launchd), and checkout; idempotent)
|
|
41
42
|
PYTHONPATH=src python3 -m orbi.runner --config orbi.toml # 5. manually run one tick (for initial verification; the timer schedules normal runs)
|
|
42
43
|
orbi doctor --config orbi.toml # 6. verify deployment health
|
|
@@ -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.35"
|
|
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"
|
|
@@ -542,7 +542,13 @@ def check_draft(
|
|
|
542
542
|
|
|
543
543
|
|
|
544
544
|
def _parse_revised(output: str) -> tuple[DraftIssue, ...] | None:
|
|
545
|
-
"""The fidelity pass answer, or None
|
|
545
|
+
"""The titles and bodies of the fidelity pass answer, or None.
|
|
546
|
+
|
|
547
|
+
The pass only revises titles and bodies (Issue #2085): the order is the
|
|
548
|
+
drafter's, so its `after` fields are dropped here and never judged. A
|
|
549
|
+
revision that moved `after` onto the wrong Issue is still a usable
|
|
550
|
+
revision, and judging its copy would throw the whole pass away.
|
|
551
|
+
"""
|
|
546
552
|
text = output.strip()
|
|
547
553
|
if text.startswith("{") is False:
|
|
548
554
|
start = text.find("{")
|
|
@@ -554,8 +560,14 @@ def _parse_revised(output: str) -> tuple[DraftIssue, ...] | None:
|
|
|
554
560
|
data = json.loads(text)
|
|
555
561
|
except ValueError:
|
|
556
562
|
return None
|
|
563
|
+
entries = data.get("issues")
|
|
564
|
+
if not isinstance(entries, list):
|
|
565
|
+
return None
|
|
557
566
|
try:
|
|
558
|
-
return parse_issues(
|
|
567
|
+
return parse_issues([
|
|
568
|
+
{**entry, "after": None} if isinstance(entry, dict) else entry
|
|
569
|
+
for entry in entries
|
|
570
|
+
])
|
|
559
571
|
except DraftError:
|
|
560
572
|
return None
|
|
561
573
|
|
|
@@ -566,9 +578,13 @@ def fidelity_pass(
|
|
|
566
578
|
) -> tuple[tuple[DraftIssue, ...], str | None]:
|
|
567
579
|
"""Run the independent fidelity pass; never fails the round.
|
|
568
580
|
|
|
569
|
-
The pass
|
|
570
|
-
|
|
571
|
-
and
|
|
581
|
+
The pass revises titles and bodies only (Issue #2085): the returned
|
|
582
|
+
Issues are the answer's wording at the drafter's positions, so the
|
|
583
|
+
number of Issues and every `after` link stay exactly as the drafter
|
|
584
|
+
wrote them. The pass is a bypass (Issue #79): a missing rules file, a
|
|
585
|
+
failed or empty session, an unusable answer or a different Issue count
|
|
586
|
+
keeps the draft the drafter wrote and the round reports it in the
|
|
587
|
+
`warning` field.
|
|
572
588
|
"""
|
|
573
589
|
rules_path = Path(config.deploy_home) / FIDELITY_REL
|
|
574
590
|
try:
|
|
@@ -588,9 +604,12 @@ def fidelity_pass(
|
|
|
588
604
|
except Exception as exc:
|
|
589
605
|
return issues, f"fidelity_pass_failed: {type(exc).__name__}"
|
|
590
606
|
revised = _parse_revised(output)
|
|
591
|
-
if revised is None:
|
|
607
|
+
if revised is None or len(revised) != len(issues):
|
|
592
608
|
return issues, "fidelity_pass_empty"
|
|
593
|
-
return
|
|
609
|
+
return tuple(
|
|
610
|
+
DraftIssue(title=entry.title, body=entry.body, after=drafted.after)
|
|
611
|
+
for entry, drafted in zip(revised, issues)
|
|
612
|
+
), None
|
|
594
613
|
|
|
595
614
|
|
|
596
615
|
# --- one drafting round --------------------------------------------------
|
|
@@ -198,7 +198,7 @@ engine_source_track = "release"
|
|
|
198
198
|
# positive number.
|
|
199
199
|
# model_wait_probe_seconds = 60
|
|
200
200
|
# Maximum concurrent Pilot tasks and enabled Runner timers on this machine.
|
|
201
|
-
# Must be 1
|
|
201
|
+
# Must be 1–5 (MAX_RUNNER_INSTANCES); missing means 1. The local AI/GPU can only serve one stable task, so keep
|
|
202
202
|
# the default. A slot (flock on <repo_dir>/.orbi/slots/slot-N) is
|
|
203
203
|
# taken before any claim and held for the whole delivery lifecycle
|
|
204
204
|
# (implement -> review -> fix -> merge); the kernel releases it when the
|
|
@@ -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",
|
|
@@ -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
|
|
|
@@ -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,
|
|
@@ -166,11 +166,11 @@ def parse_pr_comment(body: str) -> scene.Scene | None:
|
|
|
166
166
|
"""Parse one `Orbi opened PR:` comment into its scene.
|
|
167
167
|
|
|
168
168
|
The v1 scene block (orbi.scene) is the machine protocol; the
|
|
169
|
-
human-readable text
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
resuming must recover the exact run (run id, base, PR
|
|
173
|
-
guess. Branch and worktree are not parsed: the runner
|
|
169
|
+
human-readable text beside it is display only. The pre-v0.5.2 text
|
|
170
|
+
grammar is gone (Issue #2068), so a body without the block returns
|
|
171
|
+
None however its readable text reads. Fails fast when the block is
|
|
172
|
+
malformed: resuming must recover the exact run (run id, base, PR
|
|
173
|
+
URL), never a guess. Branch and worktree are not parsed: the runner
|
|
174
174
|
derives them from its own config, the Issue number and the run id,
|
|
175
175
|
so a comment can never name an arbitrary local path.
|
|
176
176
|
"""
|
|
@@ -15,15 +15,14 @@ GitHub adapter; this module sees only comment body strings.
|
|
|
15
15
|
|
|
16
16
|
Failure shapes are distinct: `parse` returns `None` when the body
|
|
17
17
|
carries no scene at all and raises `SceneError` when a scene is present
|
|
18
|
-
but corrupted. The
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
but corrupted. The pre-v0.5.2 text grammar (`- key: value` and
|
|
19
|
+
`(key=value)`) is gone (Issue #2068): a comment without the block
|
|
20
|
+
carries no scene, however its human-readable text reads.
|
|
21
21
|
"""
|
|
22
22
|
from __future__ import annotations
|
|
23
23
|
|
|
24
24
|
import dataclasses
|
|
25
25
|
import json
|
|
26
|
-
import re
|
|
27
26
|
|
|
28
27
|
from orbi.comment_kind import parse_versioned_block, versioned_block_pattern
|
|
29
28
|
from orbi.journal import validate_run_id
|
|
@@ -39,11 +38,6 @@ _MARKER = "orbi:scene:v1"
|
|
|
39
38
|
SCENE_BLOCK_TEMPLATE = f"<!-- {_MARKER} {{payload}} -->"
|
|
40
39
|
_SCENE_BLOCK_RE = versioned_block_pattern(_MARKER)
|
|
41
40
|
|
|
42
|
-
# The legacy text grammar lives one version longer, for scenes written
|
|
43
|
-
# before the block existed ("Accept both during recovery").
|
|
44
|
-
OPENED_PR_PREFIX = "Orbi opened PR: "
|
|
45
|
-
_FIELD_LINE_RE = re.compile(r"\s*-\s*([A-Za-z_][\w-]*)(?::\s*|=)(.*)\s*$")
|
|
46
|
-
|
|
47
41
|
|
|
48
42
|
@dataclasses.dataclass(frozen=True)
|
|
49
43
|
class Scene:
|
|
@@ -100,14 +94,12 @@ def carries_scene_block(body: object) -> bool:
|
|
|
100
94
|
def parse(body: object) -> Scene | None:
|
|
101
95
|
"""Parse the scene from one comment body.
|
|
102
96
|
|
|
103
|
-
Returns `None` when the body carries no scene at all (没有现场:
|
|
104
|
-
|
|
105
|
-
support). Returns the `Scene` when a
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
with missing/invalid fields. A corrupted block is never worked
|
|
110
|
-
around through the legacy text beside it.
|
|
97
|
+
Returns `None` when the body carries no scene at all (没有现场: no
|
|
98
|
+
v1 block, however the human-readable text reads, or only a scene
|
|
99
|
+
marker this reader does not support). Returns the `Scene` when a
|
|
100
|
+
valid v1 block is present. Raises `SceneError` when a block is
|
|
101
|
+
present but corrupted (损坏现场): an unparseable or
|
|
102
|
+
schema-violating block.
|
|
111
103
|
"""
|
|
112
104
|
if not isinstance(body, str):
|
|
113
105
|
return None
|
|
@@ -115,7 +107,7 @@ def parse(body: object) -> Scene | None:
|
|
|
115
107
|
body, _MARKER, _SCENE_FIELDS, SceneError,
|
|
116
108
|
required=_SCENE_REQUIRED_FIELDS,
|
|
117
109
|
)
|
|
118
|
-
return
|
|
110
|
+
return None if data is None else _parse_block(data)
|
|
119
111
|
|
|
120
112
|
|
|
121
113
|
_SCENE_FIELDS = tuple(
|
|
@@ -172,49 +164,3 @@ def _parse_block(data: dict) -> Scene:
|
|
|
172
164
|
verdict_head_unknown_round=data.get("verdict_head_unknown_round", 0),
|
|
173
165
|
schema=data["schema"],
|
|
174
166
|
)
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
def _parse_legacy(body: str) -> Scene | None:
|
|
178
|
-
"""Parse the pre-block text grammar, or None when it is not a scene.
|
|
179
|
-
|
|
180
|
-
The exact pre-#786 grammar: `Orbi opened PR: <url>` followed by
|
|
181
|
-
`- key: value` lines and/or a `(key=value ...)` tail; both are
|
|
182
|
-
accepted during recovery. Errors match the historical messages.
|
|
183
|
-
"""
|
|
184
|
-
if OPENED_PR_PREFIX not in body:
|
|
185
|
-
return None
|
|
186
|
-
head = body.split(OPENED_PR_PREFIX, 1)[1]
|
|
187
|
-
pr_head = head.partition(" (")[0].splitlines()
|
|
188
|
-
pr_url = pr_head[0].strip() if pr_head else ""
|
|
189
|
-
fields: dict[str, str] = {}
|
|
190
|
-
for line in head.splitlines()[1:]:
|
|
191
|
-
match = _FIELD_LINE_RE.match(line)
|
|
192
|
-
if match:
|
|
193
|
-
fields[match.group(1)] = match.group(2)
|
|
194
|
-
legacy = head.partition(" (")[2].rstrip(")")
|
|
195
|
-
for part in legacy.split():
|
|
196
|
-
key, _, value = part.partition("=")
|
|
197
|
-
if key:
|
|
198
|
-
fields[key] = value
|
|
199
|
-
values = {
|
|
200
|
-
"pr_url": pr_url.strip(),
|
|
201
|
-
"base_branch": fields.get("base_branch", ""),
|
|
202
|
-
"base_sha": fields.get("base_sha", ""),
|
|
203
|
-
"run_id": fields.get("run_id", ""),
|
|
204
|
-
}
|
|
205
|
-
for name, value in values.items():
|
|
206
|
-
if not value:
|
|
207
|
-
raise SceneError(f"opened PR comment is missing {name}")
|
|
208
|
-
try:
|
|
209
|
-
run_id = validate_run_id(values["run_id"])
|
|
210
|
-
except ValueError as exc:
|
|
211
|
-
raise SceneError(str(exc)) from exc
|
|
212
|
-
# The optional external-takeover flag is added after the required-
|
|
213
|
-
# field check: its absence is normal, never an error.
|
|
214
|
-
return Scene(
|
|
215
|
-
run_id=run_id,
|
|
216
|
-
base_branch=values["base_branch"],
|
|
217
|
-
base_sha=values["base_sha"],
|
|
218
|
-
pr_url=values["pr_url"],
|
|
219
|
-
external=fields.get("external", ""),
|
|
220
|
-
)
|
|
@@ -202,10 +202,6 @@ class Scheduler(Protocol):
|
|
|
202
202
|
stays disabled.
|
|
203
203
|
"""
|
|
204
204
|
|
|
205
|
-
def pre_install(self, run_command, installed_dir: Path,
|
|
206
|
-
unit_name: str | None = None) -> None:
|
|
207
|
-
"""One-time migrations before the files are written."""
|
|
208
|
-
|
|
209
205
|
def unmanaged_entries(self, installed_dir: Path) -> list[dict]:
|
|
210
206
|
"""Orbi unit files no deployment's drift check can see."""
|
|
211
207
|
|
|
@@ -406,8 +402,7 @@ def install_units(repo_dir: Path, installed_dir: Path | None = None,
|
|
|
406
402
|
Overwrites every managed installed unit with its rendered repo
|
|
407
403
|
template (the repo is the single source of truth), unless the
|
|
408
404
|
installed deployment belongs to a different config, which fails
|
|
409
|
-
before any
|
|
410
|
-
``pre_install`` migrations, then converges the instance schedules
|
|
405
|
+
before any write. Converges the instance schedules
|
|
411
406
|
onto ``max_concurrency`` (``activate_instances`` — surplus
|
|
412
407
|
instances deactivate, a live Runner is never restarted).
|
|
413
408
|
``enable=False`` is the pre-start self-heal: it re-reads the
|
|
@@ -439,7 +434,6 @@ def install_units(repo_dir: Path, installed_dir: Path | None = None,
|
|
|
439
434
|
"templates are the single source of truth)"
|
|
440
435
|
)
|
|
441
436
|
installed_dir.mkdir(parents=True, exist_ok=True)
|
|
442
|
-
sched.pre_install(run_command, installed_dir, unit_name)
|
|
443
437
|
for index, (template_name, name) in enumerate(pairs, start=1):
|
|
444
438
|
# Render the template (substitute the deployment-specific
|
|
445
439
|
# placeholders) so the installed unit points at THIS checkout
|
|
@@ -15,10 +15,9 @@ Platform hooks (see :class:`orbi.scheduler.Scheduler`):
|
|
|
15
15
|
instances through the configured ``max_concurrency`` and disable
|
|
16
16
|
surplus timers) that NEVER starts/stops/restarts the service: a currently running
|
|
17
17
|
Runner keeps running, and the new config takes effect at the next
|
|
18
|
-
service start.
|
|
19
|
-
non-templated
|
|
20
|
-
|
|
21
|
-
old single-instance schedule cannot keep firing the old service;
|
|
18
|
+
service start. An install never deletes or ``systemctl``-touches a
|
|
19
|
+
non-templated unit file: a user's own ``orbi.service`` /
|
|
20
|
+
``orbi.timer`` is not Orbi's state (Issue #2067);
|
|
22
21
|
- a pre-start consistency check (the layer's ``check_unit_drift``
|
|
23
22
|
running on this class's raw-byte content identity) that fails fast
|
|
24
23
|
with a structured ``unit_drift`` line when the installed units
|
|
@@ -42,15 +41,11 @@ from orbi.scheduler_units import (
|
|
|
42
41
|
timer_instances,
|
|
43
42
|
unit_names,
|
|
44
43
|
)
|
|
45
|
-
|
|
44
|
+
|
|
46
45
|
|
|
47
46
|
SERVICE_UNIT = "orbi@.service"
|
|
48
47
|
TIMER_UNIT = "orbi@.timer"
|
|
49
48
|
UNIT_NAMES = (SERVICE_UNIT, TIMER_UNIT)
|
|
50
|
-
# The pre-#149 non-templated units: the install migrates them away
|
|
51
|
-
# once (a template change is a deployment change, no human step).
|
|
52
|
-
LEGACY_TIMER_UNIT = "orbi.timer"
|
|
53
|
-
LEGACY_UNIT_NAMES = ("orbi.service", "orbi.timer")
|
|
54
49
|
|
|
55
50
|
|
|
56
51
|
def repo_unit_dir(repo_dir: Path) -> Path:
|
|
@@ -118,7 +113,7 @@ def unmanaged_units(installed_dir: Path) -> list[dict]:
|
|
|
118
113
|
``orbi-<unit_name>@.service``, and their ``@`` instances):
|
|
119
114
|
the layer's drift check compares exactly those names. A hand-written
|
|
120
115
|
orbi unit WITHOUT the ``@`` template form (``orbi-core.service``,
|
|
121
|
-
|
|
116
|
+
a user's own ``orbi.timer``, ...) is invisible to every
|
|
122
117
|
``unit_names()`` set — it never drift-checks and never self-heals.
|
|
123
118
|
One entry per such file, sorted by name: the unit
|
|
124
119
|
name and the ``ORBI_CONFIG`` the unit points at (``None`` when the
|
|
@@ -166,37 +161,6 @@ def timer_next_trigger(list_timers_output: str, unit_name: str) -> str:
|
|
|
166
161
|
return "-"
|
|
167
162
|
|
|
168
163
|
|
|
169
|
-
def migrate_legacy_units(installed_dir: Path, *, run_command) -> bool:
|
|
170
|
-
"""One-time migration away from the pre-#149 non-templated units.
|
|
171
|
-
|
|
172
|
-
Returns True when a legacy timer unit file was present (and
|
|
173
|
-
migrated), False when there was nothing to migrate (a fresh
|
|
174
|
-
install or an already-migrated machine — idempotent).
|
|
175
|
-
|
|
176
|
-
The legacy ``orbi.timer`` is stopped with ``disable --now``
|
|
177
|
-
(a TIMER stop: it never starts, stops or restarts the SERVICE — a
|
|
178
|
-
currently running Runner keeps running) and the legacy
|
|
179
|
-
``orbi.service``/``orbi.timer`` files are removed,
|
|
180
|
-
so the old single-instance schedule cannot keep firing the old
|
|
181
|
-
service (a third Runner without the ExecStartPre flock, Issue
|
|
182
|
-
#149). A failing step propagates unchanged (fail fast).
|
|
183
|
-
"""
|
|
184
|
-
if not (installed_dir / LEGACY_TIMER_UNIT).is_file():
|
|
185
|
-
return False
|
|
186
|
-
run_command([
|
|
187
|
-
"systemctl", "--user", "disable", "--now", LEGACY_TIMER_UNIT,
|
|
188
|
-
])
|
|
189
|
-
for name in LEGACY_UNIT_NAMES:
|
|
190
|
-
legacy = installed_dir / name
|
|
191
|
-
if legacy.is_file():
|
|
192
|
-
legacy.unlink()
|
|
193
|
-
event(
|
|
194
|
-
"legacy_units_migrated", installed_dir=installed_dir,
|
|
195
|
-
removed=",".join(LEGACY_UNIT_NAMES),
|
|
196
|
-
)
|
|
197
|
-
return True
|
|
198
|
-
|
|
199
|
-
|
|
200
164
|
class SystemdScheduler:
|
|
201
165
|
"""The Linux member of the scheduler layer (systemd user units).
|
|
202
166
|
|
|
@@ -378,11 +342,5 @@ class SystemdScheduler:
|
|
|
378
342
|
for instance in instances[max_concurrency:]:
|
|
379
343
|
run_command(["systemctl", "--user", "disable", "--now", instance])
|
|
380
344
|
|
|
381
|
-
def pre_install(self, run_command, installed_dir: Path,
|
|
382
|
-
unit_name: str | None = None) -> None:
|
|
383
|
-
# The pre-#149 legacy units belong to the default deployment only.
|
|
384
|
-
if unit_name is None:
|
|
385
|
-
migrate_legacy_units(installed_dir, run_command=run_command)
|
|
386
|
-
|
|
387
345
|
def unmanaged_entries(self, installed_dir: Path) -> list[dict]:
|
|
388
346
|
return unmanaged_units(installed_dir)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: orbi-cli
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.35
|
|
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
|
|
@@ -53,6 +53,7 @@ Choose the mode in [Getting started](docs/getting-started.mdx): bootstrap uses t
|
|
|
53
53
|
|
|
54
54
|
```bash
|
|
55
55
|
cp src/orbi/example_config.toml orbi.toml
|
|
56
|
+
# edit orbi.toml: set source_repos = ["OWNER/REPO"] (the repository whose Issues Orbi delivers)
|
|
56
57
|
orbi setup --config orbi.toml # 4. run one-time setup (checks prior gh auth, labels, scheduler units (systemd/launchd), and checkout; idempotent)
|
|
57
58
|
PYTHONPATH=src python3 -m orbi.runner --config orbi.toml # 5. manually run one tick (for initial verification; the timer schedules normal runs)
|
|
58
59
|
orbi doctor --config orbi.toml # 6. verify deployment health
|
|
@@ -3738,9 +3738,11 @@ def test_delivery_step_runs_one_review_per_tick(
|
|
|
3738
3738
|
{
|
|
3739
3739
|
"body": (
|
|
3740
3740
|
"<!-- orbi:run=a1b2c3d4 -->\n"
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3741
|
+
+ scene.render(scene.Scene(
|
|
3742
|
+
run_id="a1b2c3d4", base_branch="main",
|
|
3743
|
+
base_sha="abc123def456", pr_url=PR_URL,
|
|
3744
|
+
))
|
|
3745
|
+
+ f"\nOrbi opened PR: {PR_URL}"
|
|
3744
3746
|
),
|
|
3745
3747
|
"authorAssociation": "OWNER",
|
|
3746
3748
|
"author": {"login": "maintainer"},
|
|
@@ -3850,9 +3852,11 @@ def test_delivery_step_auto_merges_on_clean_review(
|
|
|
3850
3852
|
{
|
|
3851
3853
|
"body": (
|
|
3852
3854
|
"<!-- orbi:run=a1b2c3d4 -->\n"
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3855
|
+
+ scene.render(scene.Scene(
|
|
3856
|
+
run_id="a1b2c3d4", base_branch="main",
|
|
3857
|
+
base_sha="abc123def456", pr_url=PR_URL,
|
|
3858
|
+
))
|
|
3859
|
+
+ f"\nOrbi opened PR: {PR_URL}"
|
|
3856
3860
|
),
|
|
3857
3861
|
"authorAssociation": "OWNER",
|
|
3858
3862
|
"author": {"login": "maintainer"},
|
|
@@ -3907,9 +3911,11 @@ def test_delivery_step_passes_p0_priority_to_the_review(
|
|
|
3907
3911
|
{
|
|
3908
3912
|
"body": (
|
|
3909
3913
|
"<!-- orbi:run=a1b2c3d4 -->\n"
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3914
|
+
+ scene.render(scene.Scene(
|
|
3915
|
+
run_id="a1b2c3d4", base_branch="main",
|
|
3916
|
+
base_sha="abc123def456", pr_url=PR_URL,
|
|
3917
|
+
))
|
|
3918
|
+
+ f"\nOrbi opened PR: {PR_URL}"
|
|
3913
3919
|
),
|
|
3914
3920
|
"authorAssociation": "OWNER",
|
|
3915
3921
|
"author": {"login": "maintainer"},
|
|
@@ -4228,9 +4234,11 @@ def test_delivery_step_blocks_when_scene_base_differs_from_config(
|
|
|
4228
4234
|
{
|
|
4229
4235
|
"body": (
|
|
4230
4236
|
"<!-- orbi:run=a1b2c3d4 -->\n"
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4237
|
+
+ scene.render(scene.Scene(
|
|
4238
|
+
run_id="a1b2c3d4", base_branch="develop",
|
|
4239
|
+
base_sha="abc123def456", pr_url=PR_URL,
|
|
4240
|
+
))
|
|
4241
|
+
+ f"\nOrbi opened PR: {PR_URL}"
|
|
4234
4242
|
),
|
|
4235
4243
|
"authorAssociation": "OWNER",
|
|
4236
4244
|
"author": {"login": "maintainer"},
|
|
@@ -4356,9 +4364,11 @@ def test_delivery_step_worktree_missing_stays_fix_needed(
|
|
|
4356
4364
|
{
|
|
4357
4365
|
"body": (
|
|
4358
4366
|
"<!-- orbi:run=a1b2c3d4 -->\n"
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4367
|
+
+ scene.render(scene.Scene(
|
|
4368
|
+
run_id="a1b2c3d4", base_branch="main",
|
|
4369
|
+
base_sha="abc123def456", pr_url=PR_URL,
|
|
4370
|
+
))
|
|
4371
|
+
+ f"\nOrbi opened PR: {PR_URL}"
|
|
4362
4372
|
),
|
|
4363
4373
|
"authorAssociation": "OWNER",
|
|
4364
4374
|
"author": {"login": "maintainer"},
|
|
@@ -4508,9 +4518,11 @@ def test_delivery_step_worktree_missing_while_fix_needed_keeps_label(
|
|
|
4508
4518
|
{
|
|
4509
4519
|
"body": (
|
|
4510
4520
|
"<!-- orbi:run=a1b2c3d4 -->\n"
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4521
|
+
+ scene.render(scene.Scene(
|
|
4522
|
+
run_id="a1b2c3d4", base_branch="main",
|
|
4523
|
+
base_sha="abc123def456", pr_url=PR_URL,
|
|
4524
|
+
))
|
|
4525
|
+
+ f"\nOrbi opened PR: {PR_URL}"
|
|
4514
4526
|
),
|
|
4515
4527
|
"authorAssociation": "OWNER",
|
|
4516
4528
|
"author": {"login": "maintainer"},
|
|
@@ -4574,9 +4586,11 @@ def test_delivery_step_runs_review_when_fix_needed(
|
|
|
4574
4586
|
{
|
|
4575
4587
|
"body": (
|
|
4576
4588
|
"<!-- orbi:run=a1b2c3d4 -->\n"
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4589
|
+
+ scene.render(scene.Scene(
|
|
4590
|
+
run_id="a1b2c3d4", base_branch="main",
|
|
4591
|
+
base_sha="abc123def456", pr_url=PR_URL,
|
|
4592
|
+
))
|
|
4593
|
+
+ f"\nOrbi opened PR: {PR_URL}"
|
|
4580
4594
|
),
|
|
4581
4595
|
"authorAssociation": "OWNER",
|
|
4582
4596
|
"author": {"login": "maintainer"},
|
|
@@ -4888,9 +4902,11 @@ def test_delivery_step_repairs_in_progress_label_and_logs_ci(
|
|
|
4888
4902
|
return json.dumps({"comments": [{
|
|
4889
4903
|
"body": (
|
|
4890
4904
|
"<!-- orbi:run=a1b2c3d4 -->\n"
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4905
|
+
+ scene.render(scene.Scene(
|
|
4906
|
+
run_id="a1b2c3d4", base_branch="main",
|
|
4907
|
+
base_sha="abc123def456", pr_url=PR_URL,
|
|
4908
|
+
))
|
|
4909
|
+
+ f"\nOrbi opened PR: {PR_URL}"
|
|
4894
4910
|
),
|
|
4895
4911
|
"authorAssociation": "OWNER",
|
|
4896
4912
|
"author": {"login": "maintainer"},
|
|
@@ -6437,9 +6453,11 @@ def test_delivery_step_never_closes_triage_issue_after_review(
|
|
|
6437
6453
|
{
|
|
6438
6454
|
"body": (
|
|
6439
6455
|
"<!-- orbi:run=a1b2c3d4 -->\n"
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6456
|
+
+ scene.render(scene.Scene(
|
|
6457
|
+
run_id="a1b2c3d4", base_branch="main",
|
|
6458
|
+
base_sha="abc123def456", pr_url=PR_URL,
|
|
6459
|
+
))
|
|
6460
|
+
+ f"\nOrbi opened PR: {PR_URL}"
|
|
6443
6461
|
),
|
|
6444
6462
|
"authorAssociation": "OWNER",
|
|
6445
6463
|
"author": {"login": "maintainer"},
|
|
@@ -30,6 +30,10 @@ DOC_FILES = (
|
|
|
30
30
|
)
|
|
31
31
|
DOCS_PAGE = DOC_FILES[0]
|
|
32
32
|
ZH_DOC = REPO_ROOT / "docs" / "zh" / "docker.mdx"
|
|
33
|
+
SECURITY_PAGES = (
|
|
34
|
+
REPO_ROOT / "docs" / "security.mdx",
|
|
35
|
+
REPO_ROOT / "docs" / "zh" / "security.mdx",
|
|
36
|
+
)
|
|
33
37
|
SETUP_ENTRYPOINT = REPO_ROOT / "3rd" / "docker" / "docker-entrypoint.sh"
|
|
34
38
|
HUB_README = REPO_ROOT / "3rd" / "docker" / "README.dockerhub.md"
|
|
35
39
|
|
|
@@ -222,6 +226,32 @@ def test_entrypoint_and_docs_agree_on_the_variable_surface():
|
|
|
222
226
|
)
|
|
223
227
|
|
|
224
228
|
|
|
229
|
+
def test_security_docs_name_the_real_github_credential():
|
|
230
|
+
"""Issue #2097: the security page's credential-routing red line named
|
|
231
|
+
`ORBI_GITHUB_TOKEN`, a variable nothing reads (no hit in src/,
|
|
232
|
+
systemd/, launchd/, tools/ or the Docker entrypoint). The real
|
|
233
|
+
credential is gh's own token — `GH_TOKEN` in the Docker image, which
|
|
234
|
+
the entrypoint requires and writes into the env file. Both security
|
|
235
|
+
pages name that one."""
|
|
236
|
+
entrypoint = ENTRYPOINT.read_text(encoding="utf-8")
|
|
237
|
+
assert "GH_TOKEN is required" in entrypoint, (
|
|
238
|
+
"the entrypoint's fail-fast guard is the real contract"
|
|
239
|
+
)
|
|
240
|
+
assert "GH_TOKEN=$GH_TOKEN" in entrypoint, (
|
|
241
|
+
"the entrypoint writes GH_TOKEN into the env file gh reads"
|
|
242
|
+
)
|
|
243
|
+
for page in SECURITY_PAGES:
|
|
244
|
+
text = page.read_text(encoding="utf-8")
|
|
245
|
+
assert "ORBI_GITHUB_TOKEN" not in text, (
|
|
246
|
+
f"{page.relative_to(REPO_ROOT)} names ORBI_GITHUB_TOKEN, "
|
|
247
|
+
"which no code reads"
|
|
248
|
+
)
|
|
249
|
+
assert "GH_TOKEN" in text, (
|
|
250
|
+
f"{page.relative_to(REPO_ROOT)} must name GH_TOKEN, the Docker "
|
|
251
|
+
"image's GitHub credential"
|
|
252
|
+
)
|
|
253
|
+
|
|
254
|
+
|
|
225
255
|
def test_one_wiring_table_explains_the_three_paths():
|
|
226
256
|
"""One table per docs file explains how the repository, the GitHub
|
|
227
257
|
token and the model key/provider reach the runner — plus the two
|