orbi-cli 0.7.38__tar.gz → 0.7.39__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.38 → orbi_cli-0.7.39}/PKG-INFO +1 -1
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/pyproject.toml +1 -1
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/__init__.py +1 -1
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/draft.py +13 -3
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/draft_cli.py +5 -1
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/extensions/draft_tools.ts +4 -3
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/journal.py +1 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/suggest.py +58 -8
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi_cli.egg-info/PKG-INFO +1 -1
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_claude_plugin.py +51 -6
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_docs_labels.py +62 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_docs_site.py +36 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_draft.py +109 -3
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_public_contracts.py +12 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_suggest.py +137 -15
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/LICENSE +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/README.md +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/docs/licenses/sustainable-use-license.md +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/setup.cfg +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/amend_command.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/base_ci_red.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/blocked_comment.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/branch_reclaim.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/check_permission.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/checks.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/claim.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/clarify.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/cli.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/cli_commands.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/cli_doctor.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/cli_parser.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/cli_source.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/cli_status.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/cli_ticket_command.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/comment_kind.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/comment_rest_id.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/comment_trust.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/config.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/delivery_comment.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/delivery_labels.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/delivery_scene.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/draft_marker.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/engine_source.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/example_config.toml +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/extensions/clarify_verdict.ts +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/failure.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/failure_report.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/gh_response.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/git_identity.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/git_transport.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/github.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/github_feedback.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/gitops.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/human_review.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/language.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/language_terms.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/launchd_deploy.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/merge_exec.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/merge_gate.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/merge_handoff.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/milestone.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/milestone_command.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/notify.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/ops_delivery.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/pi_activity.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/pi_command.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/pi_idle.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/pi_process.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/pi_recovery.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/pi_session.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/pi_stream_log.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/pilot_setup.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/pilot_slots.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/pr_verification.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/progress.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/progress_display.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/progress_outcome.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/progress_summary.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/release.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/release_closeout.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/release_comments.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/release_declaration.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/release_git.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/release_notes.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/release_run.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/repo_config.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/resume_scan.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/resume_verification.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/review_merge.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/review_rounds.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/review_verdict.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/run_fields.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/run_state.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/runner.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/runner_health.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/runner_marker.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/runner_source.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/scene.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/scheduler.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/scheduler_units.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/session_command.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/setup_checks.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/setup_config.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/source_pool.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/split_command.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/status_observe.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/systemd_deploy.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/ticket_command.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/ticket_command_registry.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/ticket_criteria.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi/user_summary.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi_cli.egg-info/SOURCES.txt +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi_cli.egg-info/dependency_links.txt +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi_cli.egg-info/entry_points.txt +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/src/orbi_cli.egg-info/top_level.txt +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_agents_md.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_amend_command.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_apply_label_patch.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_base_branch_failure.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_base_ci_red.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_blocked_comment.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_bootstrap_adapters.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_bootstrap_delivery.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_bootstrap_pi.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_bootstrap_preflight.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_bootstrap_release.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_bootstrap_runner_claim_resume.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_bootstrap_runner_failure_report.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_bootstrap_runner_main.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_bootstrap_runner_milestone.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_bootstrap_runner_outcome.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_bootstrap_runner_prompt.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_bootstrap_runner_reconcile.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_bootstrap_runner_session.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_bootstrap_runner_tickets.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_branch_reclaim.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_check_permission.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_ci_failure_issue_workflow.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_ci_failure_triage.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_ci_macos_workflow.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_ci_workflow.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_clarify.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_cli_golden.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_cli_install.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_cli_milestone.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_cli_packaging.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_cli_source.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_cli_ticket_commands.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_command_receipt_contract.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_comment_identity.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_comment_readers_contract.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_comment_rest_id.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_comment_trust.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_concurrency_e2e.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_constitution.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_coverage_gate.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_deliver_pr_fakes.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_delivery_branch_delete.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_delivery_labels.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_delivery_scene.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_docker_docs.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_docker_entrypoint.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_docker_image_workflow.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_docs_i18n.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_docs_issue_shapes.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_docs_mermaid.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_docs_releases.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_docs_single_source.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_engine_source.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_failure.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_failure_report.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_fix_needed_loop.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_gh_read_retry.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_gh_response.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_git_base_smoke.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_git_merge_smoke.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_git_network_retry.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_git_transport.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_github.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_github_fakes.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_gitops.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_gitops_fakes.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_human_review.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_import_graph.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_install_sh.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_issue_1367.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_issue_461.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_issue_template_config.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_journal.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_journal_events.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_launchd_deploy.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_license.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_merge_exec_extraction.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_message_language.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_milestone_command.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_notify.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_ops_e2e.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_orbi.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_orbi_dashboard.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_orbi_exporter.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_patch_ratchet.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_pi_activity.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_pi_child_reap.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_pi_command.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_pi_extensions.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_pi_provider_templates.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_pi_recovery.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_pi_session.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_pilot_setup.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_pilot_slots.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_pr_issue_link_workflow.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_pr_verification.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_prerequisite_check.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_progress.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_progress_wiring.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_prompt_contract.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_public_helpers.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_publish_workflow.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_release_docs_workflow.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_release_extraction.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_release_ticket_templates.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_repo_config.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_resume_continue_e2e.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_resume_e2e.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_resume_pr.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_review_merge.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_review_verdict.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_run_artifacts.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_run_fields.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_run_id_e2e.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_run_id_fixture.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_runner_config.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_runner_health.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_runner_source_freshness.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_scene.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_scheduler.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_seam.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_setup_output_golden.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_size_ratchet.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_split_command.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_src_layout.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_status_observe.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_steering_review.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_suite_hygiene.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_systemd_deploy.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_systemd_timer.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_ticket_command.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_ticket_command_registration.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_user_acceptance_contract.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_user_summary.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/tests/test_versioned_comment_block.py +0 -0
- {orbi_cli-0.7.38 → orbi_cli-0.7.39}/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.39
|
|
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.39"
|
|
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"
|
|
@@ -127,10 +127,20 @@ DRAFTING_RULES = (
|
|
|
127
127
|
"- Do not write the commit SHA.\n"
|
|
128
128
|
"- Open the reply with one plain-language sentence of what will "
|
|
129
129
|
"change.\n"
|
|
130
|
-
"-
|
|
130
|
+
"- Every Issue body carries an Assumptions section: one line per "
|
|
131
|
+
"decision you took instead of asking, saying what you chose and "
|
|
132
|
+
"why.\n"
|
|
133
|
+
"- Ask a question only when, after reading the repository, the request "
|
|
134
|
+
"itself still does not say what to build — it is empty or contradicts "
|
|
135
|
+
"itself — and no deliverable default version can be written. Then ask "
|
|
136
|
+
"at most three questions, one sentence each, with no suggested "
|
|
137
|
+
"answer.\n"
|
|
138
|
+
"- Every other disagreement — which library, font or place to use, "
|
|
139
|
+
"what to leave out, how to word a deliverable version of a request "
|
|
140
|
+
"that cannot be done as asked — is a decision: take the most "
|
|
141
|
+
"reasonable default and record it under Assumptions instead of "
|
|
142
|
+
"asking.\n"
|
|
131
143
|
"- Do not repeat the draft or the questions in the reply.\n"
|
|
132
|
-
"- When you ask questions, do not claim the person chose the "
|
|
133
|
-
"recommended option.\n"
|
|
134
144
|
"- Never tell the person to create the Issue themselves, and never "
|
|
135
145
|
"give a new-Issue link.\n"
|
|
136
146
|
"- Each Issue body carries its own outcome and its own acceptance "
|
|
@@ -107,7 +107,11 @@ def _interactive(
|
|
|
107
107
|
return _declined(stdout)
|
|
108
108
|
conversation.append({"role": "person", "text": message})
|
|
109
109
|
conversation.append({"role": "orbi", "text": round_.reply})
|
|
110
|
-
|
|
110
|
+
# A bare Enter accepts no default answer (Issue #2133): an
|
|
111
|
+
# empty line answers nothing, so nothing is drafted from it.
|
|
112
|
+
if not answer.strip():
|
|
113
|
+
return _declined(stdout)
|
|
114
|
+
message = answer.strip()
|
|
111
115
|
continue
|
|
112
116
|
print(_render_draft(round_), file=stdout)
|
|
113
117
|
current = {"issues": [i.as_json() for i in round_.issues]}
|
|
@@ -116,9 +116,10 @@ export const askUserTool = {
|
|
|
116
116
|
name: ASK_USER_TOOL,
|
|
117
117
|
label: "Ask the person",
|
|
118
118
|
description:
|
|
119
|
-
"Ask the person up to three questions
|
|
120
|
-
"
|
|
121
|
-
"
|
|
119
|
+
"Ask the person up to three questions, one sentence each and with no " +
|
|
120
|
+
"suggested answer. Call this only when the request itself does not " +
|
|
121
|
+
"say what to build and no deliverable default can be written, and " +
|
|
122
|
+
"never in the same turn as write_draft.",
|
|
122
123
|
parameters: askParameters,
|
|
123
124
|
async execute(_toolCallId: string, args: object) {
|
|
124
125
|
return writeAnswer("questions", args);
|
|
@@ -320,6 +320,7 @@ JOURNAL_EVENTS: dict[str, str] = {
|
|
|
320
320
|
"suggest_started": "an orbi suggest run started (first line of its run)",
|
|
321
321
|
"suggest_created": "orbi suggest filed or labeled an Issue",
|
|
322
322
|
"suggest_failed": "an orbi suggest run failed (invalid result or failed gh call)",
|
|
323
|
+
"suggest_size_invalid": "an orbi suggest suggestion carried a size that is not an integer; the document prints size=null",
|
|
323
324
|
"suggest_understanding_failed": "the parallel understanding session of orbi suggest failed or timed out (bypass: no understanding.md)",
|
|
324
325
|
# Drafting (Issue #2041, `orbi draft`).
|
|
325
326
|
"draft_session_failed": "a drafting session failed after it wrote its draft: the draft is returned (bypass)",
|
|
@@ -90,12 +90,19 @@ SUGGESTIONS_MAX = 3
|
|
|
90
90
|
# word so the default (3) prompt stays byte-for-byte what it was before
|
|
91
91
|
# the flag existed.
|
|
92
92
|
COUNT_WORDS = {1: "one", 2: "two", 3: "three"}
|
|
93
|
-
# The Suggestions document keys, in one place.
|
|
94
|
-
|
|
93
|
+
# The Suggestions document keys, in one place. `size` (Issue #2131) is
|
|
94
|
+
# the estimated number of files the change edits; it is optional in the
|
|
95
|
+
# answer so an older session answer still validates, and the document
|
|
96
|
+
# always carries it — null when the session did not give an integer.
|
|
97
|
+
SUGGESTION_KEYS = {"kind", "issue", "title", "why", "body", "size"}
|
|
98
|
+
SUGGESTION_REQUIRED_KEYS = SUGGESTION_KEYS - {"size"}
|
|
95
99
|
# The kept batch: `<run_dir>/suggestions.json`, the subset of the
|
|
96
100
|
# Suggestions document the NEXT run must not propose again.
|
|
97
101
|
SUGGESTIONS_FILE = "suggestions.json"
|
|
98
|
-
|
|
102
|
+
# `size` travels with the batch (Issue #2131): the second --count pass
|
|
103
|
+
# of one suggestion run reads the first pass's sizes from
|
|
104
|
+
# already_suggested and must see whether a small task was already given.
|
|
105
|
+
BATCH_KEYS = ("kind", "issue", "title", "size")
|
|
99
106
|
# How many of the most recent kept batches `already_suggested` merges
|
|
100
107
|
# (Issue #1685): three runs cover a batch split as `--count 1` +
|
|
101
108
|
# `--count 2` and the `--count 1` run of the next batch after it.
|
|
@@ -320,10 +327,27 @@ def _prompt(context_path: Path, repo_dir: Path, repo: str,
|
|
|
320
327
|
"4. Reply with ONE JSON object and nothing else:\n"
|
|
321
328
|
'{"suggestions": [{"kind": "existing" or "new", '
|
|
322
329
|
'"issue": <number> or null, "title": "...", "why": "...", '
|
|
323
|
-
'"body": <markdown Issue body> or null
|
|
330
|
+
'"body": <markdown Issue body> or null, "size": <number of files '
|
|
331
|
+
'this change edits>}]}\n'
|
|
324
332
|
f"At most {COUNT_WORDS[count]} "
|
|
325
333
|
f"{'entry' if count == 1 else 'entries'}, ordered by value to "
|
|
326
334
|
"the repository's users.\n\n"
|
|
335
|
+
"size is the number of files the change edits, as an integer; "
|
|
336
|
+
"omit it when you cannot estimate it.\n\n"
|
|
337
|
+
# Issue #2131: the small-task rule is per ANSWER, not per batch:
|
|
338
|
+
# a caller (Orbi Cloud) splits one batch into --count 1 and
|
|
339
|
+
# --count 2 runs, so the second pass reads the first pass's
|
|
340
|
+
# sizes from already_suggested and gives the one small task only
|
|
341
|
+
# when it was not already given.
|
|
342
|
+
"Small task rule (one answer at a time): when already_suggested, "
|
|
343
|
+
"when present, holds no entry with size <= 2, and the repository "
|
|
344
|
+
"offers a small task grounded in its own files (a TODO or FIXME "
|
|
345
|
+
"in code, a test the CI never runs, or an open Issue touching at "
|
|
346
|
+
"most two files), this answer holds exactly one such task, "
|
|
347
|
+
"placed first, with a why that names the file and line. When "
|
|
348
|
+
"there is none, add none: never pad an answer to reach three. "
|
|
349
|
+
"The small task still meets the skill's rules 2 and 5: it is "
|
|
350
|
+
"more than a README edit, and its why names a concrete path.\n\n"
|
|
327
351
|
# Issue #2119: the answer is read by the repository owner, not by
|
|
328
352
|
# Orbi, so a why quoting the session's own input (the observed
|
|
329
353
|
# 2026-11-05 answer said "in context.json the open Issues and PRs
|
|
@@ -534,6 +558,27 @@ def _parse_output(output: str) -> list:
|
|
|
534
558
|
return entries
|
|
535
559
|
|
|
536
560
|
|
|
561
|
+
def _suggestion_size(entry: dict, title: str) -> int | None:
|
|
562
|
+
"""The entry's size: the integer the session gave, else None.
|
|
563
|
+
|
|
564
|
+
A missing size (an answer written before Issue #2131) or an explicit
|
|
565
|
+
null is unknown and silent. A present value that is not an integer
|
|
566
|
+
(a string, a float, a bool) degrades to None and logs ONE
|
|
567
|
+
`suggest_size_invalid` line: the Suggestions document still prints,
|
|
568
|
+
and the run never retries.
|
|
569
|
+
"""
|
|
570
|
+
if "size" not in entry or entry["size"] is None:
|
|
571
|
+
return None
|
|
572
|
+
size = entry["size"]
|
|
573
|
+
if isinstance(size, bool) or not isinstance(size, int):
|
|
574
|
+
event(
|
|
575
|
+
"suggest_size_invalid", level=logging.WARNING,
|
|
576
|
+
title=title, size=size,
|
|
577
|
+
)
|
|
578
|
+
return None
|
|
579
|
+
return size
|
|
580
|
+
|
|
581
|
+
|
|
537
582
|
def _validate_suggestions(entries: list, context: dict,
|
|
538
583
|
dispatch_label: str,
|
|
539
584
|
run_dir: Path) -> list[dict]:
|
|
@@ -545,9 +590,13 @@ def _validate_suggestions(entries: list, context: dict,
|
|
|
545
590
|
open_issues = {issue["number"]: issue for issue in context["issues"]}
|
|
546
591
|
suggestions: list[dict] = []
|
|
547
592
|
for entry in entries:
|
|
548
|
-
if
|
|
593
|
+
if (
|
|
594
|
+
not isinstance(entry, dict)
|
|
595
|
+
or not SUGGESTION_REQUIRED_KEYS <= set(entry) <= SUGGESTION_KEYS
|
|
596
|
+
):
|
|
549
597
|
raise SuggestError(
|
|
550
|
-
"each suggestion must hold kind, issue, title, why and
|
|
598
|
+
"each suggestion must hold kind, issue, title, why and "
|
|
599
|
+
"body, and optionally size"
|
|
551
600
|
)
|
|
552
601
|
title = entry["title"]
|
|
553
602
|
why = entry["why"]
|
|
@@ -555,6 +604,7 @@ def _validate_suggestions(entries: list, context: dict,
|
|
|
555
604
|
raise SuggestError("suggestion title must be a non-empty string")
|
|
556
605
|
if not isinstance(why, str) or not why.strip():
|
|
557
606
|
raise SuggestError("suggestion why must be a non-empty string")
|
|
607
|
+
size = _suggestion_size(entry, title)
|
|
558
608
|
# The why is shown to the repository owner as written (Issue
|
|
559
609
|
# #2119): naming the session's own input — the run directory or
|
|
560
610
|
# the context.json in it — is not a reason about the repository.
|
|
@@ -589,7 +639,7 @@ def _validate_suggestions(entries: list, context: dict,
|
|
|
589
639
|
)
|
|
590
640
|
suggestions.append({
|
|
591
641
|
"kind": "existing", "issue": number, "title": title,
|
|
592
|
-
"why": why, "body": None,
|
|
642
|
+
"why": why, "body": None, "size": size,
|
|
593
643
|
})
|
|
594
644
|
elif entry["kind"] == "new":
|
|
595
645
|
if entry["issue"] is not None:
|
|
@@ -603,7 +653,7 @@ def _validate_suggestions(entries: list, context: dict,
|
|
|
603
653
|
)
|
|
604
654
|
suggestions.append({
|
|
605
655
|
"kind": "new", "issue": None, "title": title,
|
|
606
|
-
"why": why, "body": body,
|
|
656
|
+
"why": why, "body": body, "size": size,
|
|
607
657
|
})
|
|
608
658
|
else:
|
|
609
659
|
raise SuggestError(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: orbi-cli
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.39
|
|
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
|
|
@@ -902,16 +902,15 @@ def test_skill_checks_the_milestone_is_open():
|
|
|
902
902
|
# --- Nearest deliverable version (Issue #1597) --------------------------------
|
|
903
903
|
|
|
904
904
|
# The draft must not be a request the code cannot deliver as asked: it becomes
|
|
905
|
-
# the nearest version the code can deliver,
|
|
906
|
-
#
|
|
905
|
+
# the nearest version the code can deliver, with what changed and why in the
|
|
906
|
+
# first line of the Issue's Assumptions section (Issue #2133: no question).
|
|
907
907
|
NEAREST_DELIVERABLE_SENTENCE = (
|
|
908
908
|
"If reading the code shows the request cannot be done as asked (the file "
|
|
909
909
|
"it is about is empty or missing, or the thing it would change does not "
|
|
910
910
|
"exist), draft the nearest version of the request that the code can "
|
|
911
|
-
"actually deliver,
|
|
912
|
-
"
|
|
913
|
-
"
|
|
914
|
-
"changes no file."
|
|
911
|
+
"actually deliver, and make the first line of the Issue's `Assumptions` "
|
|
912
|
+
"section say what you changed and why. Never write a draft whose only "
|
|
913
|
+
"possible delivery changes no file."
|
|
915
914
|
)
|
|
916
915
|
DRAFT_FIRST_PARAGRAPH = "Draft the Issue before asking anything."
|
|
917
916
|
|
|
@@ -933,6 +932,52 @@ def test_skill_drafts_the_nearest_version_the_code_can_deliver():
|
|
|
933
932
|
)
|
|
934
933
|
|
|
935
934
|
|
|
935
|
+
# --- A default answer is an assumption, not a question (Issue #2133) --------
|
|
936
|
+
|
|
937
|
+
# The skill may ask only when the request itself says too little and no
|
|
938
|
+
# deliverable default version can be written; every other disagreement is a
|
|
939
|
+
# line under Assumptions. The "Q1 — … ➜ recommended: …" template and the
|
|
940
|
+
# "All recommended" reply are gone.
|
|
941
|
+
ASSUMPTION_RULE_PHRASES = (
|
|
942
|
+
"Ask the person only when",
|
|
943
|
+
"no deliverable default version can be written",
|
|
944
|
+
"no suggested answer",
|
|
945
|
+
"what you chose and why",
|
|
946
|
+
)
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
def check_skill_writes_a_default_answer_as_an_assumption(
|
|
950
|
+
plugin_dir: Path = PLUGIN_DIR,
|
|
951
|
+
) -> None:
|
|
952
|
+
"""Issue #2133: a default answer is an assumption line, and a question is
|
|
953
|
+
the narrow empty/contradictory-request case with no suggested answer."""
|
|
954
|
+
flat = " ".join(read_plugin_file(plugin_dir, SKILL_REL).split())
|
|
955
|
+
for phrase in ASSUMPTION_RULE_PHRASES:
|
|
956
|
+
assert phrase in flat, (
|
|
957
|
+
f"{SKILL_REL}: missing {phrase!r}, so a question with a default "
|
|
958
|
+
"answer can come back (Issue #2133)"
|
|
959
|
+
)
|
|
960
|
+
for removed in ("recommended", "All recommended", "➜"):
|
|
961
|
+
assert removed not in flat, (
|
|
962
|
+
f"{SKILL_REL}: the {removed!r} question form is gone "
|
|
963
|
+
"(Issue #2133)"
|
|
964
|
+
)
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
def test_skill_writes_a_default_answer_as_an_assumption():
|
|
968
|
+
check_skill_writes_a_default_answer_as_an_assumption()
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
def test_fixture_skill_with_a_suggested_answer_fails(tmp_path):
|
|
972
|
+
"""Counter-proof: restore the removed question form and the check fails."""
|
|
973
|
+
skill_text = read_plugin_file(PLUGIN_DIR, SKILL_REL).replace(
|
|
974
|
+
"Q1 — <question>", "Q1 — <question> ➜ recommended: <answer>"
|
|
975
|
+
)
|
|
976
|
+
plugin_dir = write_skill_fixture(tmp_path, skill_text=skill_text)
|
|
977
|
+
with pytest.raises(AssertionError):
|
|
978
|
+
check_skill_writes_a_default_answer_as_an_assumption(plugin_dir)
|
|
979
|
+
|
|
980
|
+
|
|
936
981
|
# --- No invented constraints from repository observations (Issue #1816) -------
|
|
937
982
|
|
|
938
983
|
# A preserve-and-append request stays relative: the sentence appended and the
|
|
@@ -12,8 +12,11 @@ marker) is documented in docs/security.mdx / docs/workflow.mdx.
|
|
|
12
12
|
import re
|
|
13
13
|
from pathlib import Path
|
|
14
14
|
|
|
15
|
+
import pytest
|
|
16
|
+
|
|
15
17
|
import orbi.runner as runner
|
|
16
18
|
from orbi import scene as scene_mod
|
|
19
|
+
from orbi.github import open_blocker_numbers
|
|
17
20
|
from orbi.delivery_labels import NEEDS_DETAIL_LABEL
|
|
18
21
|
|
|
19
22
|
REPO_ROOT = Path(__file__).resolve().parent.parent
|
|
@@ -300,3 +303,62 @@ def test_workflow_docs_say_orbi_resumes_merge_after_maintainer_action():
|
|
|
300
303
|
assert "otherwise-idle tick" in english
|
|
301
304
|
assert "Orbi 自己合并" in chinese
|
|
302
305
|
assert "队列首次无事可做" in chinese
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
def heading_section(text: str, needle: str) -> str:
|
|
309
|
+
"""Return the `## ` section whose heading contains `needle`."""
|
|
310
|
+
for section in re.split(r"(?m)^(?=## )", text):
|
|
311
|
+
heading = section.splitlines()[0] if section.strip() else ""
|
|
312
|
+
if heading.startswith("## ") and needle.lower() in heading.lower():
|
|
313
|
+
return section
|
|
314
|
+
raise AssertionError(f"no `## ` heading contains {needle!r}")
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
def test_workflow_documents_blocked_by_queueing():
|
|
318
|
+
"""Issue #2127: a self-hosted user learns from docs/workflow.mdx that a
|
|
319
|
+
batch of dependent Issues is queued by labeling them all `ai-ready` at
|
|
320
|
+
once and letting GitHub's native blocked by relation set the order — the
|
|
321
|
+
relation is set in the Issue sidebar (Relationships) or with
|
|
322
|
+
`gh issue edit --add-blocked-by`, a blocked Issue waits while any
|
|
323
|
+
blocker is open and is claimed on a later tick after it closes, the
|
|
324
|
+
longest-waiting ready Issue goes first (Issue #1914), and a
|
|
325
|
+
`Depends on #N` body line is not parsed. The Chinese page states the
|
|
326
|
+
same contract (tests/test_docs_i18n.py also requires the heading)."""
|
|
327
|
+
section = heading_section(docs_page("workflow"), "blocked by")
|
|
328
|
+
# The whole batch is labeled at once; the native relation sets the order.
|
|
329
|
+
assert "`ai-ready`" in section
|
|
330
|
+
assert "at once" in section
|
|
331
|
+
# How the relation is set: the Issue sidebar, or the gh CLI.
|
|
332
|
+
assert "Relationships" in section
|
|
333
|
+
assert "--add-blocked-by" in section
|
|
334
|
+
# A blocked Issue waits for EVERY open blocker, then a later tick claims it.
|
|
335
|
+
assert "still open" in section
|
|
336
|
+
assert "next tick" in section
|
|
337
|
+
# Among ready Issues, the longest-waiting one goes first (Issue #1914).
|
|
338
|
+
assert "longest-waiting" in section
|
|
339
|
+
# Body dependencies are never read.
|
|
340
|
+
assert "Depends on #N" in section
|
|
341
|
+
assert "not parsed" in section
|
|
342
|
+
# The code the section describes (src/orbi/claim.py ->
|
|
343
|
+
# open_blocker_numbers): only OPEN blockers block; a closed blocker is
|
|
344
|
+
# inert, so the next tick claims the Issue with no runner-side bookkeeping.
|
|
345
|
+
assert open_blocker_numbers(
|
|
346
|
+
{"blockedBy": {"nodes": [{"number": 11, "state": "OPEN"}]}}
|
|
347
|
+
) == [11]
|
|
348
|
+
assert open_blocker_numbers(
|
|
349
|
+
{"blockedBy": {"nodes": [{"number": 11, "state": "CLOSED"}]}}
|
|
350
|
+
) == []
|
|
351
|
+
|
|
352
|
+
chinese = heading_section(docs_page("zh/workflow"), "blocked by")
|
|
353
|
+
assert "`ai-ready`" in chinese
|
|
354
|
+
assert "Relationships" in chinese
|
|
355
|
+
assert "--add-blocked-by" in chinese
|
|
356
|
+
assert "排队最久" in chinese
|
|
357
|
+
assert "Depends on #N" in chinese
|
|
358
|
+
assert "不被解析" in chinese
|
|
359
|
+
|
|
360
|
+
# The lookup guard is real: when the section heading is renamed or
|
|
361
|
+
# removed the test fails loudly instead of silently reading the whole
|
|
362
|
+
# page, and the assertions above never pass on unrelated prose.
|
|
363
|
+
with pytest.raises(AssertionError, match=r"no `## ` heading contains"):
|
|
364
|
+
heading_section(docs_page("workflow"), "no such heading")
|
|
@@ -1205,6 +1205,42 @@ def test_docs_document_the_full_issue_to_merge_workflow():
|
|
|
1205
1205
|
assert "orbi:run=" in text, "workflow must document the run marker"
|
|
1206
1206
|
|
|
1207
1207
|
|
|
1208
|
+
def test_workflow_documents_delivery_ci_usage_and_run_reduction():
|
|
1209
|
+
"""Issue #2128: a self-hosted user must be able to predict how an Orbi
|
|
1210
|
+
delivery triggers their CI and how to keep the run count down. The
|
|
1211
|
+
Workflow page carries the events (PR-branch pushes, base absorption, the
|
|
1212
|
+
merge), why absorption is kept, the four reduction options, and the two
|
|
1213
|
+
GitHub references — in both languages, because the EN/ZH page structure
|
|
1214
|
+
is one contract."""
|
|
1215
|
+
english = page_text("workflow")
|
|
1216
|
+
chinese = (DOCS_DIR / "zh" / "workflow.mdx").read_text(encoding="utf-8")
|
|
1217
|
+
concurrency_url = (
|
|
1218
|
+
"https://docs.github.com/en/actions/how-tos/write-workflows/"
|
|
1219
|
+
"choose-when-workflows-run/control-workflow-concurrency"
|
|
1220
|
+
)
|
|
1221
|
+
billing_url = (
|
|
1222
|
+
"https://docs.github.com/en/billing/concepts/product-billing/"
|
|
1223
|
+
"github-actions"
|
|
1224
|
+
)
|
|
1225
|
+
for text in (english, chinese):
|
|
1226
|
+
for marker in (
|
|
1227
|
+
"pull_request",
|
|
1228
|
+
"push",
|
|
1229
|
+
"cancel-in-progress: true",
|
|
1230
|
+
"paths-ignore",
|
|
1231
|
+
"labeled",
|
|
1232
|
+
concurrency_url,
|
|
1233
|
+
billing_url,
|
|
1234
|
+
):
|
|
1235
|
+
assert marker in text, (
|
|
1236
|
+
f"workflow CI usage section misses {marker!r}"
|
|
1237
|
+
)
|
|
1238
|
+
assert "## CI usage" in english
|
|
1239
|
+
assert "absorb" in english.lower()
|
|
1240
|
+
assert "quotes no prices" in english
|
|
1241
|
+
assert "不列价格" in chinese
|
|
1242
|
+
|
|
1243
|
+
|
|
1208
1244
|
def test_release_docs_explain_ci_failure_bump_recovery():
|
|
1209
1245
|
"""Issue #564: a red release-commit CI run may leave the version bump
|
|
1210
1246
|
on main; that state is acceptable because preparation is idempotent and
|
|
@@ -1147,6 +1147,92 @@ def test_an_unexpected_error_is_reported_not_swallowed(
|
|
|
1147
1147
|
assert "RuntimeError: boom" in failure["detail"]
|
|
1148
1148
|
|
|
1149
1149
|
|
|
1150
|
+
# --- a default answer is an assumption, not a question (Issue #2133) ----
|
|
1151
|
+
|
|
1152
|
+
DRAFT_FIXTURES = Path(__file__).resolve().parent / "fixtures" / "draft"
|
|
1153
|
+
|
|
1154
|
+
|
|
1155
|
+
def model_answer(name: str) -> dict:
|
|
1156
|
+
"""One real model answer, as the shipped extension hands it to the engine.
|
|
1157
|
+
|
|
1158
|
+
The fixtures are the issue author's own real model runs
|
|
1159
|
+
(`tests/fixtures/draft/`); the extension adds the `kind` the engine reads,
|
|
1160
|
+
and the round document's `check` field is not a tool argument.
|
|
1161
|
+
"""
|
|
1162
|
+
fixture = json.loads((DRAFT_FIXTURES / name).read_text(encoding="utf-8"))
|
|
1163
|
+
kind = "draft" if fixture["issues"] else "questions"
|
|
1164
|
+
return {
|
|
1165
|
+
"kind": kind,
|
|
1166
|
+
"reply": fixture["reply"],
|
|
1167
|
+
"questions": fixture.get("questions", []),
|
|
1168
|
+
"issues": fixture["issues"],
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
def assumptions_of(body: str) -> list[str]:
|
|
1173
|
+
"""The bullet lines of the Issue's `Assumptions` section."""
|
|
1174
|
+
section = re.search(r"^## Assumptions\n(.*?)(?=^## |\Z)", body,
|
|
1175
|
+
re.MULTILINE | re.DOTALL)
|
|
1176
|
+
assert section, f"the Issue body carries no Assumptions section: {body}"
|
|
1177
|
+
return [
|
|
1178
|
+
line.strip() for line in section.group(1).splitlines()
|
|
1179
|
+
if line.strip().startswith("-")
|
|
1180
|
+
]
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
def test_a_real_answer_with_a_default_choice_drafts_with_assumptions(
|
|
1184
|
+
config, sessions, monkeypatch, tmp_path,
|
|
1185
|
+
):
|
|
1186
|
+
"""The 2026-11-04 Cloud request ("make the font more professional") is
|
|
1187
|
+
drafted without a question: the chosen typeface and its reason land in
|
|
1188
|
+
the Issue's Assumptions section."""
|
|
1189
|
+
draft_fakes.judge_passing(monkeypatch)
|
|
1190
|
+
sessions.queue(model_answer("font-professional.en.json"))
|
|
1191
|
+
code, out, err = run_round_cli(
|
|
1192
|
+
config, {"message": "Can you make the font more professional"},
|
|
1193
|
+
tmp_path / "session",
|
|
1194
|
+
)
|
|
1195
|
+
assert code == 0, err
|
|
1196
|
+
answer = json.loads(out)
|
|
1197
|
+
assert answer["questions"] == []
|
|
1198
|
+
assert len(answer["issues"]) == 1
|
|
1199
|
+
body = answer["issues"][0]["body"]
|
|
1200
|
+
lines = assumptions_of(body)
|
|
1201
|
+
assert "Inter" in lines[0]
|
|
1202
|
+
assert "recommended" not in body.lower()
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
def test_a_real_answer_to_an_empty_request_asks_without_a_suggested_answer(
|
|
1206
|
+
config, sessions, monkeypatch, tmp_path,
|
|
1207
|
+
):
|
|
1208
|
+
"""A request that says too little is the one case that asks: three plain
|
|
1209
|
+
questions, none of them carrying a suggested answer."""
|
|
1210
|
+
draft_fakes.judge_passing(monkeypatch)
|
|
1211
|
+
sessions.queue(model_answer("empty-request.zh.json"))
|
|
1212
|
+
code, out, err = run_round_cli(
|
|
1213
|
+
config, {"message": "帮我改一下"}, tmp_path / "session",
|
|
1214
|
+
)
|
|
1215
|
+
assert code == 0, err
|
|
1216
|
+
answer = json.loads(out)
|
|
1217
|
+
assert answer["issues"] == []
|
|
1218
|
+
assert len(answer["questions"]) == 3
|
|
1219
|
+
for question in answer["questions"]:
|
|
1220
|
+
assert "recommended" not in question.lower()
|
|
1221
|
+
assert "推荐" not in question
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
def test_the_drafting_rules_never_offer_a_suggested_answer():
|
|
1225
|
+
"""The prompt must not teach the removed "➜ recommended" shape: a default
|
|
1226
|
+
answer is a written assumption, and a question is the narrow
|
|
1227
|
+
empty-request case."""
|
|
1228
|
+
prompt = draft.draft_system_prompt()
|
|
1229
|
+
assert "recommended" not in prompt.lower()
|
|
1230
|
+
assert "no suggested answer" in prompt
|
|
1231
|
+
assert "Assumptions" in prompt
|
|
1232
|
+
cli_source = Path(draft_cli.__file__).read_text(encoding="utf-8")
|
|
1233
|
+
assert "recommended" not in cli_source.lower()
|
|
1234
|
+
|
|
1235
|
+
|
|
1150
1236
|
# --- the interactive loop ------------------------------------------------
|
|
1151
1237
|
|
|
1152
1238
|
class Tty(io.StringIO):
|
|
@@ -1204,17 +1290,37 @@ def test_interactive_stops_when_the_confirmation_ends(config, sessions,
|
|
|
1204
1290
|
assert "Nothing was created." in out.getvalue()
|
|
1205
1291
|
|
|
1206
1292
|
|
|
1207
|
-
def
|
|
1293
|
+
def test_interactive_sends_the_typed_answers_to_the_next_round(
|
|
1294
|
+
config, sessions, monkeypatch,
|
|
1295
|
+
):
|
|
1208
1296
|
draft_fakes.judge_passing(monkeypatch)
|
|
1209
1297
|
sessions.queue_questions("Which store?")
|
|
1210
1298
|
sessions.queue_draft(*TWO_ISSUES)
|
|
1211
1299
|
out, err = io.StringIO(), io.StringIO()
|
|
1212
1300
|
code = draft_cli.run_draft(
|
|
1213
|
-
config, REPO, request="add tags",
|
|
1301
|
+
config, REPO, request="add tags",
|
|
1302
|
+
stdin=io.StringIO("sqlite, and yes to the rest\nn\n"),
|
|
1214
1303
|
stdout=out, stderr=err,
|
|
1215
1304
|
)
|
|
1216
1305
|
assert code == 0, err.getvalue()
|
|
1217
|
-
assert "
|
|
1306
|
+
assert "sqlite, and yes to the rest" in sessions.calls[1].context
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
def test_interactive_creates_nothing_when_the_answers_are_empty(
|
|
1310
|
+
config, sessions, monkeypatch,
|
|
1311
|
+
):
|
|
1312
|
+
"""No recommended answers exist to accept with a bare Enter (Issue #2133):
|
|
1313
|
+
an empty answer is no answer, so no round is drafted from it."""
|
|
1314
|
+
draft_fakes.judge_passing(monkeypatch)
|
|
1315
|
+
sessions.queue_questions("Which store?")
|
|
1316
|
+
out, err = io.StringIO(), io.StringIO()
|
|
1317
|
+
code = draft_cli.run_draft(
|
|
1318
|
+
config, REPO, request="add tags", stdin=io.StringIO("\n"),
|
|
1319
|
+
stdout=out, stderr=err,
|
|
1320
|
+
)
|
|
1321
|
+
assert code == 0
|
|
1322
|
+
assert "Nothing was created." in out.getvalue()
|
|
1323
|
+
assert len(sessions.calls) == 1
|
|
1218
1324
|
|
|
1219
1325
|
|
|
1220
1326
|
def test_interactive_shows_the_check_and_the_warning(
|
|
@@ -125,6 +125,18 @@ def test_suggestions_row_documents_both_session_directories():
|
|
|
125
125
|
)
|
|
126
126
|
|
|
127
127
|
|
|
128
|
+
def test_suggestions_row_documents_size():
|
|
129
|
+
"""Issue #2131: every Suggestions entry carries `size` — an integer or
|
|
130
|
+
null — so both language inventories say so."""
|
|
131
|
+
for path in (PUBLIC_CONTRACTS, ZH_PUBLIC_CONTRACTS):
|
|
132
|
+
row = _inventory_row(path.read_text(encoding="utf-8"), "Suggestions")
|
|
133
|
+
assert '"size"' in row, f"{path} Suggestions row misses size: {row}"
|
|
134
|
+
assert "null" in row, f"{path} Suggestions row misses null: {row}"
|
|
135
|
+
assert "integer" in row or "整数" in row, (
|
|
136
|
+
f"{path} Suggestions row misses the integer wording: {row}"
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
|
|
128
140
|
def test_telegram_chat_id_links_the_page_that_documents_it():
|
|
129
141
|
"""Issue #2099: the Config row's Telegram field was not a link at all,
|
|
130
142
|
and the row's surrounding link points at Getting started, which
|