orbi-cli 0.7.34__tar.gz → 0.7.36__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.
Files changed (252) hide show
  1. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/PKG-INFO +2 -1
  2. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/README.md +1 -0
  3. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/pyproject.toml +1 -1
  4. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/__init__.py +1 -1
  5. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/draft.py +26 -7
  6. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/example_config.toml +1 -1
  7. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi_cli.egg-info/PKG-INFO +2 -1
  8. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_docker_docs.py +30 -0
  9. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_docs_i18n.py +107 -0
  10. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_docs_site.py +264 -5
  11. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_draft.py +46 -2
  12. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_public_contracts.py +66 -0
  13. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_runner_config.py +23 -0
  14. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/LICENSE +0 -0
  15. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/docs/licenses/sustainable-use-license.md +0 -0
  16. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/setup.cfg +0 -0
  17. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/amend_command.py +0 -0
  18. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/base_ci_red.py +0 -0
  19. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/blocked_comment.py +0 -0
  20. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/branch_reclaim.py +0 -0
  21. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/check_permission.py +0 -0
  22. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/checks.py +0 -0
  23. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/claim.py +0 -0
  24. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/clarify.py +0 -0
  25. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/cli.py +0 -0
  26. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/cli_commands.py +0 -0
  27. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/cli_doctor.py +0 -0
  28. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/cli_parser.py +0 -0
  29. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/cli_source.py +0 -0
  30. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/cli_status.py +0 -0
  31. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/cli_ticket_command.py +0 -0
  32. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/comment_kind.py +0 -0
  33. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/comment_rest_id.py +0 -0
  34. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/comment_trust.py +0 -0
  35. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/config.py +0 -0
  36. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/delivery_comment.py +0 -0
  37. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/delivery_labels.py +0 -0
  38. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/delivery_scene.py +0 -0
  39. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/draft_cli.py +0 -0
  40. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/draft_marker.py +0 -0
  41. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/engine_source.py +0 -0
  42. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/extensions/clarify_verdict.ts +0 -0
  43. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/extensions/draft_tools.ts +0 -0
  44. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/failure.py +0 -0
  45. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/failure_report.py +0 -0
  46. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/gh_response.py +0 -0
  47. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/git_identity.py +0 -0
  48. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/git_transport.py +0 -0
  49. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/github.py +0 -0
  50. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/github_feedback.py +0 -0
  51. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/gitops.py +0 -0
  52. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/human_review.py +0 -0
  53. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/journal.py +0 -0
  54. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/language.py +0 -0
  55. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/language_terms.py +0 -0
  56. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/launchd_deploy.py +0 -0
  57. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/merge_exec.py +0 -0
  58. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/merge_gate.py +0 -0
  59. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/merge_handoff.py +0 -0
  60. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/milestone.py +0 -0
  61. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/milestone_command.py +0 -0
  62. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/notify.py +0 -0
  63. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/ops_delivery.py +0 -0
  64. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/pi_activity.py +0 -0
  65. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/pi_command.py +0 -0
  66. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/pi_idle.py +0 -0
  67. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/pi_process.py +0 -0
  68. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/pi_recovery.py +0 -0
  69. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/pi_session.py +0 -0
  70. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/pi_stream_log.py +0 -0
  71. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/pilot_setup.py +0 -0
  72. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/pilot_slots.py +0 -0
  73. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/pr_verification.py +0 -0
  74. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/progress.py +0 -0
  75. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/progress_display.py +0 -0
  76. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/progress_outcome.py +0 -0
  77. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/progress_summary.py +0 -0
  78. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/release.py +0 -0
  79. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/release_closeout.py +0 -0
  80. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/release_comments.py +0 -0
  81. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/release_declaration.py +0 -0
  82. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/release_git.py +0 -0
  83. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/release_notes.py +0 -0
  84. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/release_run.py +0 -0
  85. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/repo_config.py +0 -0
  86. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/resume_scan.py +0 -0
  87. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/resume_verification.py +0 -0
  88. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/review_merge.py +0 -0
  89. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/review_rounds.py +0 -0
  90. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/review_verdict.py +0 -0
  91. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/run_fields.py +0 -0
  92. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/run_state.py +0 -0
  93. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/runner.py +0 -0
  94. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/runner_health.py +0 -0
  95. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/runner_marker.py +0 -0
  96. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/runner_source.py +0 -0
  97. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/scene.py +0 -0
  98. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/scheduler.py +0 -0
  99. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/scheduler_units.py +0 -0
  100. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/session_command.py +0 -0
  101. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/setup_checks.py +0 -0
  102. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/setup_config.py +0 -0
  103. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/source_pool.py +0 -0
  104. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/split_command.py +0 -0
  105. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/status_observe.py +0 -0
  106. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/suggest.py +0 -0
  107. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/systemd_deploy.py +0 -0
  108. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/ticket_command.py +0 -0
  109. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/ticket_command_registry.py +0 -0
  110. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/ticket_criteria.py +0 -0
  111. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi/user_summary.py +0 -0
  112. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi_cli.egg-info/SOURCES.txt +0 -0
  113. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi_cli.egg-info/dependency_links.txt +0 -0
  114. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi_cli.egg-info/entry_points.txt +0 -0
  115. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/src/orbi_cli.egg-info/top_level.txt +0 -0
  116. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_agents_md.py +0 -0
  117. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_amend_command.py +0 -0
  118. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_apply_label_patch.py +0 -0
  119. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_base_branch_failure.py +0 -0
  120. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_base_ci_red.py +0 -0
  121. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_blocked_comment.py +0 -0
  122. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_bootstrap_adapters.py +0 -0
  123. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_bootstrap_delivery.py +0 -0
  124. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_bootstrap_pi.py +0 -0
  125. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_bootstrap_preflight.py +0 -0
  126. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_bootstrap_release.py +0 -0
  127. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_bootstrap_runner_claim_resume.py +0 -0
  128. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_bootstrap_runner_failure_report.py +0 -0
  129. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_bootstrap_runner_main.py +0 -0
  130. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_bootstrap_runner_milestone.py +0 -0
  131. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_bootstrap_runner_outcome.py +0 -0
  132. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_bootstrap_runner_prompt.py +0 -0
  133. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_bootstrap_runner_reconcile.py +0 -0
  134. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_bootstrap_runner_session.py +0 -0
  135. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_bootstrap_runner_tickets.py +0 -0
  136. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_branch_reclaim.py +0 -0
  137. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_check_permission.py +0 -0
  138. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_ci_failure_issue_workflow.py +0 -0
  139. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_ci_failure_triage.py +0 -0
  140. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_ci_macos_workflow.py +0 -0
  141. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_ci_workflow.py +0 -0
  142. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_clarify.py +0 -0
  143. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_claude_plugin.py +0 -0
  144. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_cli_golden.py +0 -0
  145. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_cli_install.py +0 -0
  146. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_cli_milestone.py +0 -0
  147. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_cli_packaging.py +0 -0
  148. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_cli_source.py +0 -0
  149. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_cli_ticket_commands.py +0 -0
  150. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_command_receipt_contract.py +0 -0
  151. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_comment_identity.py +0 -0
  152. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_comment_readers_contract.py +0 -0
  153. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_comment_rest_id.py +0 -0
  154. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_comment_trust.py +0 -0
  155. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_concurrency_e2e.py +0 -0
  156. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_constitution.py +0 -0
  157. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_coverage_gate.py +0 -0
  158. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_deliver_pr_fakes.py +0 -0
  159. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_delivery_branch_delete.py +0 -0
  160. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_delivery_labels.py +0 -0
  161. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_delivery_scene.py +0 -0
  162. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_docker_entrypoint.py +0 -0
  163. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_docker_image_workflow.py +0 -0
  164. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_docs_issue_shapes.py +0 -0
  165. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_docs_labels.py +0 -0
  166. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_docs_mermaid.py +0 -0
  167. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_docs_releases.py +0 -0
  168. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_docs_single_source.py +0 -0
  169. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_engine_source.py +0 -0
  170. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_failure.py +0 -0
  171. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_failure_report.py +0 -0
  172. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_fix_needed_loop.py +0 -0
  173. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_gh_read_retry.py +0 -0
  174. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_gh_response.py +0 -0
  175. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_git_base_smoke.py +0 -0
  176. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_git_merge_smoke.py +0 -0
  177. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_git_network_retry.py +0 -0
  178. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_git_transport.py +0 -0
  179. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_github.py +0 -0
  180. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_github_fakes.py +0 -0
  181. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_gitops.py +0 -0
  182. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_gitops_fakes.py +0 -0
  183. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_human_review.py +0 -0
  184. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_import_graph.py +0 -0
  185. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_install_sh.py +0 -0
  186. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_issue_1367.py +0 -0
  187. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_issue_461.py +0 -0
  188. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_issue_template_config.py +0 -0
  189. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_journal.py +0 -0
  190. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_journal_events.py +0 -0
  191. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_launchd_deploy.py +0 -0
  192. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_license.py +0 -0
  193. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_merge_exec_extraction.py +0 -0
  194. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_message_language.py +0 -0
  195. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_milestone_command.py +0 -0
  196. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_notify.py +0 -0
  197. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_ops_e2e.py +0 -0
  198. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_orbi.py +0 -0
  199. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_orbi_dashboard.py +0 -0
  200. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_orbi_exporter.py +0 -0
  201. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_patch_ratchet.py +0 -0
  202. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_pi_activity.py +0 -0
  203. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_pi_child_reap.py +0 -0
  204. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_pi_command.py +0 -0
  205. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_pi_extensions.py +0 -0
  206. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_pi_provider_templates.py +0 -0
  207. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_pi_recovery.py +0 -0
  208. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_pi_session.py +0 -0
  209. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_pilot_setup.py +0 -0
  210. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_pilot_slots.py +0 -0
  211. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_pr_issue_link_workflow.py +0 -0
  212. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_pr_verification.py +0 -0
  213. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_prerequisite_check.py +0 -0
  214. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_progress.py +0 -0
  215. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_progress_wiring.py +0 -0
  216. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_prompt_contract.py +0 -0
  217. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_public_helpers.py +0 -0
  218. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_publish_workflow.py +0 -0
  219. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_release_docs_workflow.py +0 -0
  220. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_release_extraction.py +0 -0
  221. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_release_ticket_templates.py +0 -0
  222. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_repo_config.py +0 -0
  223. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_resume_continue_e2e.py +0 -0
  224. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_resume_e2e.py +0 -0
  225. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_resume_pr.py +0 -0
  226. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_review_merge.py +0 -0
  227. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_review_verdict.py +0 -0
  228. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_run_artifacts.py +0 -0
  229. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_run_fields.py +0 -0
  230. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_run_id_e2e.py +0 -0
  231. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_run_id_fixture.py +0 -0
  232. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_runner_health.py +0 -0
  233. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_runner_source_freshness.py +0 -0
  234. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_scene.py +0 -0
  235. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_scheduler.py +0 -0
  236. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_seam.py +0 -0
  237. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_setup_output_golden.py +0 -0
  238. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_size_ratchet.py +0 -0
  239. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_split_command.py +0 -0
  240. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_src_layout.py +0 -0
  241. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_status_observe.py +0 -0
  242. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_steering_review.py +0 -0
  243. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_suggest.py +0 -0
  244. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_suite_hygiene.py +0 -0
  245. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_systemd_deploy.py +0 -0
  246. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_systemd_timer.py +0 -0
  247. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_ticket_command.py +0 -0
  248. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_ticket_command_registration.py +0 -0
  249. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_user_acceptance_contract.py +0 -0
  250. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_user_summary.py +0 -0
  251. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/tests/test_versioned_comment_block.py +0 -0
  252. {orbi_cli-0.7.34 → orbi_cli-0.7.36}/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.34
3
+ Version: 0.7.36
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.34"
47
+ version = "0.7.36"
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"
@@ -18,4 +18,4 @@ the package would shadow the installed package for every process with
18
18
  the checkout root on sys.path. The direct-execution compatibility entry
19
19
  is `python3 -m orbi.cli` (development path only).
20
20
  """
21
- __version__ = "0.7.34"
21
+ __version__ = "0.7.36"
@@ -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 when it carries no usable draft."""
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(data.get("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 is a bypass (Issue #79): a missing rules file, a failed or
570
- empty session, or an unusable answer keeps the draft the drafter wrote
571
- and the round reports it in the `warning` field.
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 revised, None
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 or 2 (the fixed timer instance set); missing means 1. The local AI/GPU can only serve one stable task, so keep
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orbi-cli
3
- Version: 0.7.34
3
+ Version: 0.7.36
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
@@ -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
@@ -25,8 +25,14 @@ REPO_ROOT = Path(__file__).resolve().parent.parent
25
25
  DOCS_DIR = REPO_ROOT / "docs"
26
26
  ZH_DIR = DOCS_DIR / "zh"
27
27
  README = REPO_ROOT / "README.md"
28
+ ZH_README = REPO_ROOT / "README.zh-CN.md"
28
29
  EXAMPLE_CONFIG = REPO_ROOT / "src" / "orbi" / "example_config.toml"
29
30
 
31
+ # The Chinese README's link to the external single-repo mode (Issue #2087).
32
+ # `[^)]+` stops at the ASCII `)` closing the markdown destination; the
33
+ # full-width `(` / `)` inside the fragment are ordinary characters there.
34
+ EXTERNAL_MODE_LINK = re.compile(r"\[External single-repo mode\]\(([^)\s]+)\)")
35
+
30
36
  # One page per English topic page (same structure, same slugs).
31
37
  REQUIRED_ZH_PAGES = (
32
38
  "index",
@@ -285,6 +291,33 @@ def test_english_homepage_carries_a_descriptive_frontmatter_title():
285
291
  )
286
292
 
287
293
 
294
+ # Card destinations on the Chinese home page: internal hrefs are page paths
295
+ # (`/...`); an external `https://` destination would not start with `/` and
296
+ # is therefore outside this check.
297
+ CARD_HREF = re.compile(r'<Card\b[^>]*\bhref="([^"]+)"')
298
+
299
+
300
+ def test_chinese_homepage_cards_link_the_chinese_pages():
301
+ """Issue #2100: the Chinese home page is the Chinese entry point, so
302
+ every card that stays inside the docs must land on the Chinese
303
+ counterpart (`/zh/...`). The operations card still pointed at the
304
+ English `/operations#event-reference`, sending a Chinese reader to
305
+ the English event-reference table; the fragment test in
306
+ tests/test_docs_site.py pinned the anchor's existence but not the
307
+ language of the page behind it. The fragment of a `/zh/` card is
308
+ still resolved against the Chinese page by that test."""
309
+ hrefs = CARD_HREF.findall(zh_page_text("index"))
310
+ assert hrefs, "the Chinese home page must carry its cards"
311
+ wrong = [
312
+ href for href in hrefs
313
+ if href.startswith("/") and not href.startswith("/zh/")
314
+ ]
315
+ assert not wrong, (
316
+ "Chinese home cards must link the Chinese pages (/zh/...), "
317
+ f"found English targets: {wrong}"
318
+ )
319
+
320
+
288
321
  def test_chinese_overview_names_the_task_pool_and_mvp_boundary():
289
322
  """The Chinese overview (index) must say what the project is (GitHub
290
323
  Issue task pool) and the explicit MVP boundary (no database/queue/
@@ -543,6 +576,18 @@ def test_chinese_testing_documents_the_contract_commands():
543
576
  assert "tools/diff_coverage_gate.py" in text, (
544
577
  "testing must show the changed-code gate command"
545
578
  )
579
+ assert "python3 tools/patch_ratchet.py" in text, (
580
+ "testing must show the patch ratchet CI runs (Issue #2098)"
581
+ )
582
+ assert "python3 tools/size_ratchet.py" in text, (
583
+ "testing must show the size ratchet CI runs (Issue #2098)"
584
+ )
585
+ assert "tools/patch_ratchet.py --update" in text, (
586
+ "testing must document the patch ratchet refreeze flag (Issue #2098)"
587
+ )
588
+ assert "tools/size_ratchet.py --update" in text, (
589
+ "testing must document the size ratchet refreeze flag (Issue #2098)"
590
+ )
546
591
  assert "95%" in text, "testing must state the 95% line/branch tiers"
547
592
  assert "100%" in text, (
548
593
  "testing must state the 100% changed-code and core-path tiers"
@@ -607,6 +652,31 @@ def test_chinese_kv_cache_page_matches_the_upstream_port_contract():
607
652
  )
608
653
 
609
654
 
655
+ def test_chinese_kv_cache_install_commands_match_the_unit_paths():
656
+ """Issue #2079: same contract as the English page — the upstream unit
657
+ hard-codes `WorkingDirectory=%h/server-ops/local-llm-kv-cache` and
658
+ `ExecStart=/usr/bin/python3 %h/server-ops/local-llm-kv-cache/cache_proxy.py`
659
+ (verified against the upstream repo, service file lines 8-9), so the
660
+ Chinese install block must clone there and copy the unit from that
661
+ clone, and say that cloning elsewhere needs both unit lines edited."""
662
+ text = zh_page_text("optional-kv-cache")
663
+ assert (
664
+ "git clone https://github.com/xqliu/local-llm-kv-cache.git "
665
+ "~/server-ops/local-llm-kv-cache" in text
666
+ ), "zh: the install command must clone to the unit's WorkingDirectory path"
667
+ assert (
668
+ "cp ~/server-ops/local-llm-kv-cache/local-llm-kv-cache.service "
669
+ "~/.config/systemd/user/" in text
670
+ ), "zh: the unit must be copied from the cloned path the unit points at"
671
+ assert "WorkingDirectory" in text and "ExecStart" in text, (
672
+ "zh: the page must say the unit's WorkingDirectory/ExecStart name "
673
+ "this path, so cloning elsewhere needs both lines edited"
674
+ )
675
+ assert "cd local-llm-kv-cache" not in text, (
676
+ "zh: the old clone-into-cwd block no longer matches the unit"
677
+ )
678
+
679
+
610
680
  def test_chinese_docs_document_the_uv_prerequisite_boundary():
611
681
  """Issue #156: the Chinese docs carry the same initialization
612
682
  boundary as the English page — the user installs uv (official
@@ -678,6 +748,43 @@ def test_readme_points_at_the_chinese_docs_entry():
678
748
  )
679
749
 
680
750
 
751
+ def test_chinese_readme_external_single_repo_link_lands_on_its_section():
752
+ """Issue #2087 (finding R1 of #2073): the Chinese README's
753
+ "External single-repo mode" link must land on the
754
+ 「外部单仓库模式(deploy_home)」 section.
755
+
756
+ The Chinese heading renders two different anchor ids: the docs site
757
+ (Mintlify) keeps the full-width parentheses (`外部单仓库模式(deploy_home)`,
758
+ verified on https://docs.orbi.build/zh/getting-started) while GitHub's
759
+ slugger strips them (`外部单仓库模式deploy_home`). The English anchor
760
+ (`external-single-repo-mode-deploy_home`) matches neither, so the link
761
+ did not move. The link therefore targets the docs site with the id it
762
+ really renders."""
763
+ text = ZH_README.read_text(encoding="utf-8")
764
+ match = EXTERNAL_MODE_LINK.search(text)
765
+ assert match is not None, (
766
+ "README.zh-CN.md must link the external single-repo mode section"
767
+ )
768
+ page, _, fragment = match.group(1).partition("#")
769
+ assert page == "https://docs.orbi.build/zh/getting-started", (
770
+ "the Chinese README's external single-repo mode link must target the "
771
+ f"Chinese getting-started docs page, got {page!r}"
772
+ )
773
+ heading = "### 外部单仓库模式(deploy_home)"
774
+ zh_page = (ZH_DIR / "getting-started.mdx").read_text(encoding="utf-8")
775
+ assert heading in zh_page, (
776
+ "docs/zh/getting-started.mdx must keep the "
777
+ "「外部单仓库模式(deploy_home)」 heading the README links"
778
+ )
779
+ # Mintlify renders a heading's id as its text verbatim (it does not strip
780
+ # the full-width parentheses), which is why the fragment is the heading
781
+ # text and not the English anchor.
782
+ assert fragment == heading.removeprefix("### "), (
783
+ "the link fragment must be the id the docs site renders for that "
784
+ f"heading ({heading.removeprefix('### ')!r}), got {fragment!r}"
785
+ )
786
+
787
+
681
788
  def test_chinese_getting_started_clones_the_orbi_build_org_repo():
682
789
  """Issue #183: same clone-URL contract as the English page — the
683
790
  repository moved to the orbi-build org, and the Chinese smoke
@@ -18,6 +18,7 @@ when a doc (in any language) carries a personal absolute path, an
18
18
  unimplemented feature, or the stale 15-minute timer.
19
19
  """
20
20
  from orbi import config as config_domain
21
+ from orbi import git_transport
21
22
  import inspect
22
23
  import json
23
24
  import re
@@ -28,6 +29,9 @@ import pytest
28
29
 
29
30
  import orbi.runner as runner
30
31
  import orbi.release_run as release_run
32
+ import orbi.cli as cli
33
+ import orbi.pi_activity as pi_activity
34
+ from orbi.ticket_command_registry import ticket_commands
31
35
 
32
36
  REPO_ROOT = Path(__file__).resolve().parent.parent
33
37
  DOCS_DIR = REPO_ROOT / "docs"
@@ -635,6 +639,75 @@ def test_docs_ship_the_five_step_quickstart_in_both_languages():
635
639
  assert "curl -LsSf https://raw.githubusercontent.com/orbi-build/orbi/main/install.sh | bash" in zh
636
640
 
637
641
 
642
+ def test_quickstart_commands_work_on_macos():
643
+ """Issue #2074: every quickstart command must run as written on macOS.
644
+
645
+ `sed -i.bak` is the portable in-place form (the same one install.sh
646
+ uses); BSD sed reads the `-e` after a bare `-i` as the backup suffix.
647
+ The runner start and its log must carry the launchd commands the
648
+ scheduler itself emits (label `org.orbi.runner.1`, instance log under
649
+ `<repo_dir>/.orbi/<label>.log`), not only the systemd ones.
650
+
651
+ Issue #2109: the FIRST start never passes `-k`. By step 4 the job is
652
+ already loaded and fires every 300 s, so it may be delivering the Issue
653
+ from step 3; launchctl(1) makes `kickstart` without `-k` start the job
654
+ only if it is not already running, while `-k` kills it first — so the
655
+ first start carries the bare form and the pages cite launchctl(1)."""
656
+ for page in (DOCS_DIR / "quickstart.mdx", DOCS_DIR / "zh" / "quickstart.mdx"):
657
+ text = page.read_text(encoding="utf-8")
658
+ assert (
659
+ "sed -i.bak -e '/^pi_providers = /d' -e '/^pi_provider = /d' "
660
+ "-e '/^pi_model = /d' orbi.toml && rm -f orbi.toml.bak"
661
+ ) in text, f"{page}: provider edit must use the portable sed form"
662
+ assert "sed -i -e" not in text, (
663
+ f"{page}: a bare sed -i -e breaks BSD sed (macOS)"
664
+ )
665
+ assert (
666
+ "launchctl kickstart gui/$(id -u)/org.orbi.runner.1" in text
667
+ ), f"{page}: must carry the launchd start command"
668
+ assert "launchctl kickstart -k" not in text, (
669
+ f"{page}: the first start must not kill a running tick (Issue #2109)"
670
+ )
671
+ assert "launchctl(1)" in text, (
672
+ f"{page}: must cite launchctl(1) for kickstart without -k"
673
+ )
674
+ assert "~/.orbi/src/.orbi/org.orbi.runner.1.log" in text, (
675
+ f"{page}: must carry the launchd instance log path"
676
+ )
677
+
678
+
679
+ def test_quickstart_describes_session_pending_as_the_startup_sub_phase(tmp_path):
680
+ """Issue #2111: `session_pending` is the startup sub-phase in which Pi
681
+ has been spawned but has not created its session file yet — the engine
682
+ only reports it while `SessionWatcher` follows no session file
683
+ (`src/orbi/pi_activity.py`), never "the model is working". Both
684
+ quickstart pages must say that and point the reader at the journal
685
+ startup milestones the provider pages already document."""
686
+ # The engine contract these pages describe, asserted by one real call.
687
+ state = pi_activity.SessionWatcher(tmp_path).poll()
688
+ assert state["phase"] == "session_pending", (
689
+ f"the docs contract calls this phase session_pending, engine sent {state!r}"
690
+ )
691
+ assert state["session_file"] is None
692
+ en = (DOCS_DIR / "quickstart.mdx").read_text(encoding="utf-8")
693
+ zh = (DOCS_DIR / "zh" / "quickstart.mdx").read_text(encoding="utf-8")
694
+ # Compare on unwrapped prose: the page wraps at ~78 columns.
695
+ assert "Pi has started but has not created its session file yet" in " ".join(en.split()), (
696
+ "the EN quickstart must define session_pending the way the engine does"
697
+ )
698
+ assert "Pi 已启动但还没创建 session 文件" in zh.replace("\n", ""), (
699
+ "the ZH quickstart must define session_pending the way the engine does"
700
+ )
701
+ for page, text in ((DOCS_DIR / "quickstart.mdx", en), (DOCS_DIR / "zh" / "quickstart.mdx", zh)):
702
+ for milestone in (
703
+ "process_spawned", "session_created", "first_request_started", "request_pending",
704
+ ):
705
+ assert milestone in text, f"{page}: must point at the journal line {milestone}"
706
+ # The stale claim #2111 removes: the phase does not mean the model works.
707
+ assert "while the model is working" not in en
708
+ assert "模型工作" not in zh
709
+
710
+
638
711
  def test_docs_navigation_matches_the_actual_pages_exactly():
639
712
  """KISS: one group per topic per language, every page listed once, no
640
713
  orphan page outside the navigation and no navigation entry without a
@@ -1223,8 +1296,35 @@ def test_docs_document_operations_commands():
1223
1296
  assert "ExecStartPre" in text, "operations must document the code-update preflight"
1224
1297
 
1225
1298
 
1226
- def test_operations_public_surface_matches_cli_config_and_concurrency():
1227
- """The localized public-surface summaries must not repeat stale limits."""
1299
+ def _missing_subcommands(public_surface: str, names) -> list[str]:
1300
+ """The names absent from a public-surface section, word-boundary
1301
+ matched so `milestone` counts inside `milestone set`."""
1302
+ missing: list[str] = []
1303
+ for name in names:
1304
+ if not re.search(
1305
+ rf"(?<![\w-]){re.escape(name)}(?![\w-])", public_surface,
1306
+ ):
1307
+ missing.append(name)
1308
+ return missing
1309
+
1310
+
1311
+ def test_operations_public_surface_matches_cli_config_and_concurrency(capsys):
1312
+ """The localized public-surface summaries must not repeat stale limits
1313
+ and must list the full public surface (Issue #2081): every CLI
1314
+ subcommand `orbi --help` shows, every registered in-ticket command and
1315
+ the `ai-awaiting-merge` label state — in both languages."""
1316
+ with pytest.raises(SystemExit) as excinfo:
1317
+ cli.main(["--help"])
1318
+ assert excinfo.value.code == 0
1319
+ usage = capsys.readouterr().out
1320
+ choices = re.search(r"\{([^}]*)\}", usage)
1321
+ assert choices, f"no subcommand choices in --help output: {usage}"
1322
+ subcommands = choices.group(1).split(",")
1323
+ # The matcher itself fails on an absent name (a check that only asks
1324
+ # "did anything fail?" must not pass on an empty result).
1325
+ assert _missing_subcommands(
1326
+ "`add`, `milestone set`", ["add", "milestone", "draft"],
1327
+ ) == ["draft"]
1228
1328
  for slug, heading, config_link in (
1229
1329
  ("operations", "Public surface", "/configuration"),
1230
1330
  ("zh/operations", "公开表面", "/zh/configuration"),
@@ -1235,16 +1335,42 @@ def test_operations_public_surface_matches_cli_config_and_concurrency():
1235
1335
  )
1236
1336
  assert section, f"{slug} must have a {heading} section"
1237
1337
  public_surface = section.group()
1238
- for command in ("check", "sync-engine-source"):
1239
- assert command in public_surface, (
1240
- f"{slug} public surface must list {command}"
1338
+ missing = _missing_subcommands(public_surface, subcommands)
1339
+ assert not missing, (
1340
+ f"{slug} public surface must list the CLI subcommands {missing}"
1341
+ )
1342
+ for spec in ticket_commands():
1343
+ assert f"/orbi {spec.subcommand}" in public_surface, (
1344
+ f"{slug} public surface must list the in-ticket command "
1345
+ f"/orbi {spec.subcommand}"
1241
1346
  )
1347
+ assert "ai-awaiting-merge" in public_surface, (
1348
+ f"{slug} public surface must list the ai-awaiting-merge label state"
1349
+ )
1242
1350
  assert f"]({config_link})" in public_surface
1243
1351
  assert "MAX_RUNNER_INSTANCES = 5" in public_surface
1244
1352
  assert "permits `1` or `2`" not in text
1245
1353
  assert "只允许 `1` 或 `2`" not in text
1246
1354
 
1247
1355
 
1356
+ def test_operations_zh_carries_the_idle_stall_recovery_and_doctor_facts():
1357
+ """Issue #2081 (C3, C4): the Chinese Operations page carries the same
1358
+ `pi_idle_term` / `pi_idle_kill` paragraph and the same `deploy_home`
1359
+ doctor item as the English one — the ZH page used to name the two
1360
+ events in the table only and omitted the deployment-home check."""
1361
+ english = page_text("operations")
1362
+ chinese = page_text("zh/operations")
1363
+ for marker in ("subset=pid", "pid_reused"):
1364
+ assert marker in english, f"EN operations lost the idle-recovery {marker!r}"
1365
+ assert marker in chinese, (
1366
+ f"ZH operations must carry the idle-recovery paragraph ({marker!r})"
1367
+ )
1368
+ for slug, text in (("operations", english), ("zh/operations", chinese)):
1369
+ assert "deploy_home: clean" in text, (
1370
+ f"{slug} doctor example must list the deploy_home cleanliness check"
1371
+ )
1372
+
1373
+
1248
1374
  def test_docs_document_the_security_boundary():
1249
1375
  """Security: the AI never merges or pushes the protected branch (the
1250
1376
  Runner is the only merge actor), the GitHub token is a local secret,
@@ -1279,6 +1405,18 @@ def test_docs_document_tests_and_coverage_commands():
1279
1405
  assert "tools/diff_coverage_gate.py" in text, (
1280
1406
  "testing must show the changed-code gate command"
1281
1407
  )
1408
+ assert "python3 tools/patch_ratchet.py" in text, (
1409
+ "testing must show the patch ratchet CI runs (Issue #2098)"
1410
+ )
1411
+ assert "python3 tools/size_ratchet.py" in text, (
1412
+ "testing must show the size ratchet CI runs (Issue #2098)"
1413
+ )
1414
+ assert "tools/patch_ratchet.py --update" in text, (
1415
+ "testing must document the patch ratchet refreeze flag (Issue #2098)"
1416
+ )
1417
+ assert "tools/size_ratchet.py --update" in text, (
1418
+ "testing must document the size ratchet refreeze flag (Issue #2098)"
1419
+ )
1282
1420
  assert "95%" in text, "testing must state the 95% line/branch tiers"
1283
1421
  assert "100%" in text, (
1284
1422
  "testing must state the 100% changed-code and core-path tiers"
@@ -1362,6 +1500,31 @@ def test_docs_document_the_uv_prerequisite_boundary():
1362
1500
  )
1363
1501
 
1364
1502
 
1503
+ def test_setup_transport_failure_examples_match_the_printed_messages():
1504
+ """Issue #2112: the setup page's transport failure examples must be
1505
+ the tail `git_transport._probe_failure` really builds, so a user can
1506
+ grep the log for the example text. The variable parts (the remote URL
1507
+ and the probe's stderr) stay as placeholders; everything after them is
1508
+ byte-exact, in both languages."""
1509
+ detail = "<probe detail>"
1510
+ expected = {
1511
+ "ssh": git_transport._probe_failure(
1512
+ "ssh", "git@github.com:owner/repo.git", detail,
1513
+ ),
1514
+ "https": git_transport._probe_failure(
1515
+ "https", "https://github.com/owner/repo.git", detail,
1516
+ ),
1517
+ }
1518
+ for slug in ("setup", "zh/setup"):
1519
+ text = page_text(slug)
1520
+ for mode, message in expected.items():
1521
+ tail = message.split(detail, 1)[1]
1522
+ assert tail in text, (
1523
+ f"docs/{slug}.mdx's {mode} failure example must end in "
1524
+ f"the printed tail {tail!r} (Issue #2112)"
1525
+ )
1526
+
1527
+
1365
1528
  def test_docs_document_the_git_transport_boundary():
1366
1529
  """Issue #114: the docs must document the two-channel boundary —
1367
1530
  git data operations over SSH (including workflow file pushes),
@@ -1440,6 +1603,69 @@ def test_docs_document_the_five_minute_timer():
1440
1603
  )
1441
1604
 
1442
1605
 
1606
+ def test_docs_state_the_current_idle_recovery_limit():
1607
+ """Issue #2077: the idle-stall recovery cap is
1608
+ `PI_IDLE_RECOVERY_CYCLES` idle windows — `PI_IDLE_WAIT_MAX_SECONDS`
1609
+ (3600 s) / `PI_IDLE_WARN_SECONDS` (300 s) = 12, about one hour — and
1610
+ the terminal reason is `idle_recovery_stale_<duration>`
1611
+ (pi_process.py: `idle_recovery_stale_{format_duration(stale)}`). The
1612
+ pages that state the limit (operations and getting-started, EN and
1613
+ ZH) must carry the code's own numbers, not the pre-#1089 15-minute
1614
+ value, so an operator reading `reason=idle_recovery_stale_1h5m` in the
1615
+ journal finds the same limit in the docs."""
1616
+ import orbi.pi_idle as pi_idle
1617
+
1618
+ cycles = pi_idle.PI_IDLE_RECOVERY_CYCLES
1619
+ window = int(pi_idle.PI_IDLE_WARN_SECONDS)
1620
+
1621
+ def flat(text: str) -> str:
1622
+ # Wrap-proof: the statements span lines in the sources.
1623
+ return re.sub(r"\s+", " ", text)
1624
+
1625
+ en_ops = flat(page_text("operations"))
1626
+ zh_ops = flat((DOCS_DIR / "zh" / "operations.mdx").read_text(encoding="utf-8"))
1627
+ en_start = flat(page_text("getting-started"))
1628
+ zh_start = flat(
1629
+ (DOCS_DIR / "zh" / "getting-started.mdx").read_text(encoding="utf-8")
1630
+ )
1631
+
1632
+ # C1: the `run_failed` reason bullet names the real window count.
1633
+ assert f"`PI_IDLE_RECOVERY_CYCLES` ({cycles} idle windows" in en_ops, (
1634
+ f"operations must state PI_IDLE_RECOVERY_CYCLES = {cycles} idle windows "
1635
+ "(pi_idle.py: PI_IDLE_WAIT_MAX_SECONDS / PI_IDLE_WARN_SECONDS)"
1636
+ )
1637
+ assert f"({cycles} 个 idle 窗口" in zh_ops, (
1638
+ f"zh/operations must state PI_IDLE_RECOVERY_CYCLES = {cycles} 个 idle 窗口"
1639
+ )
1640
+
1641
+ # A7: the getting-started troubleshooting row names the real cap.
1642
+ assert f"{cycles} × {window} s windows" in en_start, (
1643
+ f"getting-started must state the idle-recovery cap as "
1644
+ f"{cycles} × {window} s windows (about one hour)"
1645
+ )
1646
+ assert f"{cycles} 个 {window} 秒窗口" in zh_start, (
1647
+ f"zh/getting-started must state the idle-recovery cap as "
1648
+ f"{cycles} 个 {window} 秒窗口(约 1 小时)"
1649
+ )
1650
+
1651
+ # C2: the `session_pending` scene names the current stale reason.
1652
+ for text, page in ((en_ops, "operations"), (zh_ops, "zh/operations")):
1653
+ assert "idle_recovery_stale_1h" in text, (
1654
+ f"{page} must name the current idle-recovery stale reason "
1655
+ "(idle_recovery_stale_1h…, about one hour), not 15 minutes"
1656
+ )
1657
+
1658
+ # No non-release page keeps the pre-#1089 15-minute claim.
1659
+ for path in docs_files():
1660
+ if path.stem.startswith("release-v"):
1661
+ continue # frozen release history (Issue #2077 scope)
1662
+ content = path.read_text(encoding="utf-8")
1663
+ assert "idle_recovery_stale_15m" not in content, (
1664
+ f"{path}: states the retired 15-minute idle-recovery cap; the "
1665
+ f"current cap is {cycles} × {window} s idle windows (about one hour)"
1666
+ )
1667
+
1668
+
1443
1669
  def test_docs_kv_cache_page_matches_the_upstream_port_contract():
1444
1670
  """The upstream proxy's CODE default port is 8081
1445
1671
  (cache_proxy.py: os.environ.get("PI_LLAMA_CACHE_PORT", "8081"));
@@ -1463,6 +1689,39 @@ def test_docs_kv_cache_page_matches_the_upstream_port_contract():
1463
1689
  )
1464
1690
 
1465
1691
 
1692
+ def test_docs_kv_cache_install_commands_match_the_unit_paths():
1693
+ """Issue #2079: the upstream unit hard-codes the clone path —
1694
+ `WorkingDirectory=%h/server-ops/local-llm-kv-cache` and
1695
+ `ExecStart=/usr/bin/python3 %h/server-ops/local-llm-kv-cache/cache_proxy.py`
1696
+ (verified with `gh api
1697
+ repos/xqliu/local-llm-kv-cache/contents/local-llm-kv-cache.service`,
1698
+ lines 8-9). Cloning into the caller's current directory leaves the
1699
+ unit unable to start — systemd cannot enter the missing
1700
+ `WorkingDirectory` (`Changing to the requested working directory
1701
+ failed: No such file or directory`, `status=200/CHDIR`) — and
1702
+ `/health` is unreachable. The documented block must clone to the path
1703
+ the unit expects and copy the unit from that clone."""
1704
+ text = page_text("optional-kv-cache")
1705
+ assert (
1706
+ "git clone https://github.com/xqliu/local-llm-kv-cache.git "
1707
+ "~/server-ops/local-llm-kv-cache" in text
1708
+ ), (
1709
+ "the install command must clone to the unit's WorkingDirectory path "
1710
+ "(~/server-ops/local-llm-kv-cache)"
1711
+ )
1712
+ assert (
1713
+ "cp ~/server-ops/local-llm-kv-cache/local-llm-kv-cache.service "
1714
+ "~/.config/systemd/user/" in text
1715
+ ), "the unit must be copied from the cloned path the unit points at"
1716
+ assert "WorkingDirectory" in text and "ExecStart" in text, (
1717
+ "the page must say the unit's WorkingDirectory/ExecStart name this "
1718
+ "path, so cloning elsewhere needs both lines edited"
1719
+ )
1720
+ assert "cd local-llm-kv-cache" not in text, (
1721
+ "the old clone-into-cwd block no longer matches the unit"
1722
+ )
1723
+
1724
+
1466
1725
  def test_readme_keeps_the_docs_site_entry():
1467
1726
  """Issue #183 (v0.3.0 rebrand): the root README stays the GitHub
1468
1727
  homepage and must carry the documentation site entry — the bound