gitgrip 2.0.0a6__tar.gz → 2.0.0a8__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 (380) hide show
  1. gitgrip-2.0.0a8/PKG-INFO +289 -0
  2. gitgrip-2.0.0a8/README.md +273 -0
  3. gitgrip-2.0.0a8/gitgrip.egg-info/PKG-INFO +289 -0
  4. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gitgrip.egg-info/SOURCES.txt +163 -68
  5. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gitgrip.egg-info/entry_points.txt +1 -0
  6. gitgrip-2.0.0a8/gr2/PLATFORM_ADAPTER_CHANGELOG.md +67 -0
  7. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/api_core.py +4 -4
  8. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/overlay/activate.py +2 -6
  9. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/overlay/introspection.py +2 -6
  10. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/overlay/objects.py +14 -77
  11. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/overlay/refs.py +3 -12
  12. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/concurrent_event_stress.py +3 -3
  13. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/lane_workspace_prototype.py +150 -54
  14. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/real_git_playground.py +2 -1
  15. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/app.py +1402 -284
  16. gitgrip-2.0.0a8/gr2/python_cli/approval_schema.py +38 -0
  17. gitgrip-2.0.0a8/gr2/python_cli/approvals.py +302 -0
  18. gitgrip-2.0.0a8/gr2/python_cli/check_records.py +262 -0
  19. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/clone_exec.py +2 -2
  20. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/commit.py +4 -6
  21. gitgrip-2.0.0a8/gr2/python_cli/context.py +207 -0
  22. gitgrip-2.0.0a8/gr2/python_cli/defaults.py +141 -0
  23. gitgrip-2.0.0a8/gr2/python_cli/ecosystems_python.py +58 -0
  24. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/events.py +10 -0
  25. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/execops.py +1 -1
  26. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/git_review.py +2 -5
  27. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/gitinclude.py +35 -8
  28. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/gitops.py +137 -66
  29. gitgrip-2.0.0a8/gr2/python_cli/gr_resolver.py +155 -0
  30. gitgrip-2.0.0a8/gr2/python_cli/gr_shadow.py +101 -0
  31. gitgrip-2.0.0a8/gr2/python_cli/grip.py +2266 -0
  32. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/grip_cli.py +273 -111
  33. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/hooks.py +3 -5
  34. gitgrip-2.0.0a8/gr2/python_cli/lane_defaults.py +107 -0
  35. gitgrip-2.0.0a8/gr2/python_cli/lane_downstream.py +280 -0
  36. gitgrip-2.0.0a8/gr2/python_cli/lane_graph.py +472 -0
  37. gitgrip-2.0.0a8/gr2/python_cli/lane_plugins.py +140 -0
  38. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/launch_exec.py +99 -15
  39. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/layout.py +12 -0
  40. gitgrip-2.0.0a8/gr2/python_cli/merge_gate.py +286 -0
  41. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/merge_verification.py +2 -7
  42. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/open_gr_review.py +193 -40
  43. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/platform.py +74 -3
  44. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/pr.py +36 -3
  45. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/project_review.py +22 -14
  46. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/prune.py +2 -8
  47. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/review.py +68 -18
  48. gitgrip-2.0.0a8/gr2/python_cli/review_allocation.py +237 -0
  49. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/review_ephemeral.py +5 -10
  50. gitgrip-2.0.0a8/gr2/python_cli/review_field_tree.py +442 -0
  51. gitgrip-2.0.0a8/gr2/python_cli/review_members.py +78 -0
  52. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/review_rebind.py +10 -9
  53. gitgrip-2.0.0a8/gr2/python_cli/review_records.py +520 -0
  54. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/review_run.py +412 -35
  55. gitgrip-2.0.0a8/gr2/python_cli/root_option.py +417 -0
  56. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/spec_apply.py +1 -1
  57. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/syncops.py +1 -1
  58. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/workspace_snapshot.py +7 -4
  59. gitgrip-2.0.0a8/gr2/schemas/dev.synapt.grip.approval.v1alpha1/approval.proto +33 -0
  60. gitgrip-2.0.0a8/gr2/schemas/dev.synapt.grip.approval.v1alpha1/descriptor_set.pb +0 -0
  61. gitgrip-2.0.0a8/gr2/schemas/dev.synapt.grip.check.v1alpha1/check.proto +27 -0
  62. gitgrip-2.0.0a8/gr2/schemas/dev.synapt.grip.check.v1alpha1/descriptor_set.pb +0 -0
  63. gitgrip-2.0.0a8/gr2/schemas/dev.synapt.grip.merge.v1alpha1/descriptor_set.pb +0 -0
  64. gitgrip-2.0.0a8/gr2/schemas/dev.synapt.grip.merge.v1alpha1/merge.proto +51 -0
  65. gitgrip-2.0.0a8/gr2/schemas/dev.synapt.grip.review.v1alpha1/descriptor_set.pb +34 -0
  66. gitgrip-2.0.0a8/gr2/schemas/dev.synapt.grip.review.v1alpha1/review.proto +39 -0
  67. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/pyproject.toml +8 -6
  68. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_api_dump.py +213 -15
  69. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_app_event_outcomes.py +8 -1
  70. gitgrip-2.0.0a8/tests/test_approval_schema.py +33 -0
  71. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_cli_shape_witnesses.py +33 -0
  72. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_commit.py +6 -5
  73. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_config_overlay.py +3 -3
  74. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_conftest_git_isolation.py +9 -3
  75. gitgrip-2.0.0a8/tests/test_context_resolver.py +246 -0
  76. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_contribution_protocol.py +1 -1
  77. gitgrip-2.0.0a8/tests/test_defaults_from_repo.py +213 -0
  78. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_deprecation_registry.py +2 -2
  79. gitgrip-2.0.0a8/tests/test_ecosystems_python.py +239 -0
  80. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_event_log_integrity.py +11 -18
  81. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_event_outcome_policy.py +7 -1
  82. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_events.py +11 -2
  83. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_events_torn_line.py +1 -1
  84. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_execops.py +1 -0
  85. gitgrip-2.0.0a8/tests/test_field_tree_name.py +60 -0
  86. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_git_review.py +2 -2
  87. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_gitinclude_compiler.py +1 -1
  88. gitgrip-2.0.0a8/tests/test_gitops_shared.py +334 -0
  89. gitgrip-2.0.0a8/tests/test_gr_installed_wheel.py +70 -0
  90. gitgrip-2.0.0a8/tests/test_gr_resolved_cleared.py +14 -0
  91. gitgrip-2.0.0a8/tests/test_gr_resolver_conformance.py +246 -0
  92. gitgrip-2.0.0a8/tests/test_gr_shadow.py +149 -0
  93. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_grip_cli.py +33 -33
  94. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_grip_hardening.py +2 -2
  95. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_grip_snapshot.py +2 -2
  96. gitgrip-2.0.0a8/tests/test_lane_checkout_root.py +133 -0
  97. gitgrip-2.0.0a8/tests/test_lane_create_defaults.py +420 -0
  98. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_lane_create_fork_base_cli.py +33 -14
  99. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_lane_create_refusal_leaves_nothing.py +4 -1
  100. gitgrip-2.0.0a8/tests/test_lane_downstream.py +212 -0
  101. gitgrip-2.0.0a8/tests/test_lane_downstream_run.py +191 -0
  102. gitgrip-2.0.0a8/tests/test_lane_exit_keeps_dirty_work.py +217 -0
  103. gitgrip-2.0.0a8/tests/test_lane_graph.py +247 -0
  104. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_lane_lifecycle_safety.py +31 -12
  105. gitgrip-2.0.0a8/tests/test_lane_plugins.py +443 -0
  106. gitgrip-2.0.0a8/tests/test_lane_probe.py +163 -0
  107. gitgrip-2.0.0a8/tests/test_lane_probe_batch.py +134 -0
  108. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_lane_repo_paths_and_all_skipped.py +7 -6
  109. gitgrip-2.0.0a8/tests/test_lane_roles.py +62 -0
  110. gitgrip-2.0.0a8/tests/test_lane_store_path_pins.py +235 -0
  111. gitgrip-2.0.0a8/tests/test_layout_census.py +305 -0
  112. gitgrip-2.0.0a8/tests/test_linked_review_receipts.py +676 -0
  113. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_materialize_pin.py +4 -5
  114. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_member_working_root_checkout_materialize.py +30 -139
  115. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_migration.py +3 -2
  116. gitgrip-2.0.0a8/tests/test_native_store_gitinclude.py +173 -0
  117. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_native_store_review_record_probes.py +64 -90
  118. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_no_bare_python_cli_imports.py +1 -1
  119. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_null_current_lane_refusal.py +3 -3
  120. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_open_gr_enter.py +18 -4
  121. gitgrip-2.0.0a8/tests/test_platform_adapter_changelog.py +115 -0
  122. gitgrip-2.0.0a8/tests/test_platform_adapter_plugins.py +414 -0
  123. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_pr_merge_head_pin.py +30 -0
  124. gitgrip-2.0.0a8/tests/test_pr_review_subject.py +319 -0
  125. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_project_review_range_reconstruction.py +11 -9
  126. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_project_review_three_repo.py +16 -12
  127. gitgrip-2.0.0a8/tests/test_python_group_install.py +127 -0
  128. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_readme_verbs_exist.py +13 -0
  129. gitgrip-2.0.0a8/tests/test_record_schema_copies.py +77 -0
  130. gitgrip-2.0.0a8/tests/test_remote_check_records.py +322 -0
  131. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_repo_path_read_through.py +1 -1
  132. gitgrip-2.0.0a8/tests/test_review_a4.py +194 -0
  133. gitgrip-2.0.0a8/tests/test_review_a4_v2.py +200 -0
  134. gitgrip-2.0.0a8/tests/test_review_a4_v3.py +95 -0
  135. gitgrip-2.0.0a8/tests/test_review_allocation_recovery.py +144 -0
  136. gitgrip-2.0.0a8/tests/test_review_ansi_parse.py +95 -0
  137. gitgrip-2.0.0a8/tests/test_review_approvals.py +752 -0
  138. gitgrip-2.0.0a8/tests/test_review_b3_reader_alignment.py +305 -0
  139. gitgrip-2.0.0a8/tests/test_review_bind_author.py +68 -0
  140. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_review_bind_fork_base.py +7 -7
  141. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_review_bind_from_range.py +5 -3
  142. gitgrip-2.0.0a8/tests/test_review_bind_migration.py +188 -0
  143. gitgrip-2.0.0a8/tests/test_review_bind_native_store.py +412 -0
  144. gitgrip-2.0.0a8/tests/test_review_bind_root_refs.py +88 -0
  145. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_review_bind_verify.py +21 -40
  146. gitgrip-2.0.0a8/tests/test_review_check_name.py +76 -0
  147. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_review_cli.py +68 -39
  148. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_review_close_gr.py +17 -15
  149. gitgrip-2.0.0a8/tests/test_review_close_keeps_local_work.py +292 -0
  150. gitgrip-2.0.0a8/tests/test_review_context_defaults.py +198 -0
  151. gitgrip-2.0.0a8/tests/test_review_context_witnesses.py +113 -0
  152. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_review_dispatch.py +15 -6
  153. gitgrip-2.0.0a8/tests/test_review_events.py +190 -0
  154. gitgrip-2.0.0a8/tests/test_review_field_tree.py +364 -0
  155. gitgrip-2.0.0a8/tests/test_review_field_tree_reader_edges.py +268 -0
  156. gitgrip-2.0.0a8/tests/test_review_field_tree_readers.py +267 -0
  157. gitgrip-2.0.0a8/tests/test_review_install_hint.py +98 -0
  158. gitgrip-2.0.0a8/tests/test_review_merge_gate.py +227 -0
  159. gitgrip-2.0.0a8/tests/test_review_merge_gate_lost_ack.py +449 -0
  160. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_review_open_lane.py +119 -39
  161. gitgrip-2.0.0a8/tests/test_review_pin_stamp_names.py +57 -0
  162. gitgrip-2.0.0a8/tests/test_review_pr_marker_context.py +115 -0
  163. gitgrip-2.0.0a8/tests/test_review_reader_defaults.py +75 -0
  164. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_review_rebind.py +1 -1
  165. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_review_receipt_cleanup.py +29 -17
  166. gitgrip-2.0.0a8/tests/test_review_ref_v1_migration.py +432 -0
  167. gitgrip-2.0.0a8/tests/test_review_ref_v1_reader.py +134 -0
  168. gitgrip-2.0.0a8/tests/test_review_ref_v1_writer.py +232 -0
  169. gitgrip-2.0.0a8/tests/test_review_remote_safety.py +406 -0
  170. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_review_run.py +57 -0
  171. gitgrip-2.0.0a8/tests/test_review_run_context.py +82 -0
  172. gitgrip-2.0.0a8/tests/test_review_run_dependency_order.py +311 -0
  173. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_review_run_import_isolation.py +4 -1
  174. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_review_run_multi_repo.py +20 -6
  175. gitgrip-2.0.0a8/tests/test_review_run_plugin_order.py +109 -0
  176. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_review_runners.py +8 -8
  177. gitgrip-2.0.0a8/tests/test_review_subject.py +84 -0
  178. gitgrip-2.0.0a8/tests/test_review_transport.py +335 -0
  179. gitgrip-2.0.0a8/tests/test_review_v1_format_guard.py +56 -0
  180. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_review_verify_inside.py +7 -5
  181. gitgrip-2.0.0a8/tests/test_review_vocabulary.py +66 -0
  182. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_rmtree_or_refuse.py +14 -2
  183. gitgrip-2.0.0a8/tests/test_root_option_verbs.py +575 -0
  184. gitgrip-2.0.0a8/tests/test_selected_workspace_commit.py +199 -0
  185. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_sprint21_sync_platform.py +9 -9
  186. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_store_break_attempts.py +20 -15
  187. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_store_checkout_atomicity.py +19 -119
  188. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_store_log_adoption_boundary.py +1 -1
  189. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_store_member_path_hygiene.py +2 -2
  190. gitgrip-2.0.0a8/tests/test_store_moved_workspace_guard.py +84 -0
  191. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_store_verb_rename.py +47 -1
  192. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_store_verb_witnesses.py +13 -8
  193. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_sync_ssh_rewrite.py +6 -0
  194. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_sync_status_probe.py +3 -0
  195. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_tmux_launch_runtime.py +261 -9
  196. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_version_static.py +3 -3
  197. gitgrip-2.0.0a8/tests/test_vocabulary.py +115 -0
  198. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_workspace_identity_boundary.py +1 -1
  199. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_workspace_init_from_topology.py +1 -1
  200. gitgrip-2.0.0a8/tests/test_workspace_root_nearest_marker.py +126 -0
  201. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_workspace_snapshot.py +17 -17
  202. gitgrip-2.0.0a6/PKG-INFO +0 -129
  203. gitgrip-2.0.0a6/README.md +0 -113
  204. gitgrip-2.0.0a6/gitgrip.egg-info/PKG-INFO +0 -129
  205. gitgrip-2.0.0a6/python_cli/grip.py +0 -1462
  206. gitgrip-2.0.0a6/python_cli/review_records.py +0 -143
  207. gitgrip-2.0.0a6/tests/test_layout_census.py +0 -180
  208. gitgrip-2.0.0a6/tests/test_review_bind_native_store.py +0 -293
  209. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gitgrip.egg-info/dependency_links.txt +0 -0
  210. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gitgrip.egg-info/requires.txt +0 -0
  211. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gitgrip.egg-info/top_level.txt +0 -0
  212. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/__init__.py +0 -0
  213. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/overlay/__init__.py +0 -0
  214. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/overlay/agent_manifest.py +0 -0
  215. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/overlay/cli.py +0 -0
  216. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/overlay/cross_repo.py +0 -0
  217. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/overlay/drivers.py +0 -0
  218. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/overlay/language_drivers.py +0 -0
  219. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/overlay/perf.py +0 -0
  220. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/overlay/trust.py +0 -0
  221. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/overlay/types.py +0 -0
  222. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/overlay/units.py +0 -0
  223. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/overlay/workspace_spec.py +0 -0
  224. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/__init__.py +0 -0
  225. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/cache_materialization_probe.py +0 -0
  226. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/concurrent_lease_stress.py +0 -0
  227. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/concurrent_workspace_cap_stress.py +0 -0
  228. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/contribution_protocol.py +0 -0
  229. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/cross_mode_lane_stress.py +0 -0
  230. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/jsonl_store.py +0 -0
  231. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/layout_model_probe.py +0 -0
  232. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/propagation_daemon.py +0 -0
  233. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/propagation_state_machine.py +0 -0
  234. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/python_exec_playground.py +0 -0
  235. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/python_hook_runtime_playground.py +0 -0
  236. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/python_migration_playground.py +0 -0
  237. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/python_review_checkout_playground.py +0 -0
  238. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/python_spec_apply_playground.py +0 -0
  239. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/real_git_lane_materialization.py +0 -0
  240. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/recall_lane_history.py +0 -0
  241. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/repo_maintenance_prototype.py +0 -0
  242. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/prototypes/repo_transport_probe.py +0 -0
  243. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/__init__.py +0 -0
  244. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/__main__.py +0 -0
  245. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/add.py +0 -0
  246. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/branch.py +0 -0
  247. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/channel_bridge.py +0 -0
  248. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/config.py +0 -0
  249. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/consent.py +0 -0
  250. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/env_exec.py +0 -0
  251. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/exit_codes.py +0 -0
  252. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/failures.py +0 -0
  253. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/file_exec.py +0 -0
  254. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/migration.py +0 -0
  255. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/push.py +0 -0
  256. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/review_dispatch.py +0 -0
  257. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/review_runners.py +0 -0
  258. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/staging_cleanup.py +0 -0
  259. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/target.py +0 -0
  260. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/version.py +0 -0
  261. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8/gr2}/python_cli/workspace_guidance.py +0 -0
  262. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/schemas/gr2-materialization-plan-v1.schema.json +0 -0
  263. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2/schemas/gr2-workspace-spec-v1.schema.json +0 -0
  264. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/gr2_overlay/__init__.py +0 -0
  265. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/setup.cfg +0 -0
  266. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_add.py +0 -0
  267. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_agent_manifest_overlay_source.py +0 -0
  268. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_api_core_seam.py +0 -0
  269. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_apply_convergence.py +0 -0
  270. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_apply_gr1_sibling_adoption.py +0 -0
  271. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_branch.py +0 -0
  272. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_break_17_unit_path_containment.py +0 -0
  273. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_break_18_gr1_sibling_units.py +0 -0
  274. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_channel_bridge.py +0 -0
  275. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_cli_adapter_error_boundary.py +0 -0
  276. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_clone_materialization.py +0 -0
  277. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_config_base_path_guard.py +0 -0
  278. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_ensure_lane_checkout_reference_clone.py +0 -0
  279. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_env_materialization.py +0 -0
  280. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_exec_apostrophe_and_oserror.py +0 -0
  281. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_exec_single_string_and_materialize_plan.py +0 -0
  282. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_failure_event_outcome.py +0 -0
  283. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_first_five_minutes.py +0 -0
  284. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_foreground_launch_runtime.py +0 -0
  285. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_gr1_first_run_guidance.py +0 -0
  286. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_gr2_packaging.py +0 -0
  287. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_gr2_review_receipt.py +0 -0
  288. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_grip_toml_schema_v1.py +0 -0
  289. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_hook_events.py +0 -0
  290. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_hook_hardening.py +0 -0
  291. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_hooks_consent.py +0 -0
  292. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_hooks_group_names.py +0 -0
  293. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_jsonl_store.py +0 -0
  294. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_lane_create_refuses_own_branch.py +0 -0
  295. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_lane_enter_hook_warnings.py +0 -0
  296. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_lane_lease_show_json.py +0 -0
  297. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_lane_show_name.py +0 -0
  298. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_lane_toml_serialization.py +0 -0
  299. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_launch_primitive.py +0 -0
  300. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_m2_overlay_hindsight.py +0 -0
  301. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_m2_overlay_mem0.py +0 -0
  302. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_m2_overlay_zep.py +0 -0
  303. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_materialization_plan_contract.py +0 -0
  304. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_merge_evidence.py +0 -0
  305. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_merge_parent_verification.py +0 -0
  306. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_migration_overlay_compatibility.py +0 -0
  307. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_migration_unadopted_notice.py +0 -0
  308. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_open_project_refusal_reason_cli.py +0 -0
  309. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_outbox_ack_after_effect.py +0 -0
  310. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_acceptance.py +0 -0
  311. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_activate.py +0 -0
  312. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_cli.py +0 -0
  313. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_cli_wiring.py +0 -0
  314. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_composition_merge.py +0 -0
  315. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_cross_repo_atomic_apply.py +0 -0
  316. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_cross_repo_perf_gate.py +0 -0
  317. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_cross_repo_rollback.py +0 -0
  318. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_driver_registry.py +0 -0
  319. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_introspection.py +0 -0
  320. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_multi_stack.py +0 -0
  321. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_object_encoding.py +0 -0
  322. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_perf_gates.py +0 -0
  323. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_python_driver.py +0 -0
  324. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_tier_b_encoding.py +0 -0
  325. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_tier_b_perf_gates.py +0 -0
  326. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_tier_b_repo_state.py +0 -0
  327. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_tier_b_staging_discipline.py +0 -0
  328. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_trust_model.py +0 -0
  329. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_overlay_workspace_spec.py +0 -0
  330. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_pr_events.py +0 -0
  331. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_pr_group_legibility.py +0 -0
  332. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_pr_merge_method.py +0 -0
  333. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_pr_merge_missing_target.py +0 -0
  334. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_pr_merge_partial_failure.py +0 -0
  335. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_pr_view.py +0 -0
  336. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_project_file_materialization.py +0 -0
  337. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_projection_tracked_dest.py +0 -0
  338. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_propagation_contribution.py +0 -0
  339. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_propagation_daemon.py +0 -0
  340. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_propagation_state_machine.py +0 -0
  341. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_prune.py +0 -0
  342. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_push.py +0 -0
  343. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_repo_status_linked_worktree.py +0 -0
  344. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_repo_status_schema_version.py +0 -0
  345. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_repo_status_symlinked_git_dir.py +0 -0
  346. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_review_create_project_cli.py +0 -0
  347. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_review_ephemeral.py +0 -0
  348. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_review_run_integrity_recheck.py +0 -0
  349. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_review_run_rerun_and_refusal_receipt.py +0 -0
  350. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_single_repo_cwd_refusal.py +0 -0
  351. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_snapshot_id_prefix_resolution.py +0 -0
  352. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_spec_apply_event_outcomes.py +0 -0
  353. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_spec_declaration_ref_pin.py +0 -0
  354. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_staging_cleanup.py +0 -0
  355. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_store_commit_noop.py +0 -0
  356. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_store_declared_members.py +0 -0
  357. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_store_git_native_smoke.py +0 -0
  358. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_store_init_branch_inference.py +0 -0
  359. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_store_member_state.py +0 -0
  360. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_store_migrate_branch_inference.py +0 -0
  361. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_store_status_values.py +0 -0
  362. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_submodule_member_predicate.py +0 -0
  363. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_superproject_import.py +0 -0
  364. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_sync_event_outcomes.py +0 -0
  365. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_sync_fast_forward.py +0 -0
  366. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_sync_fetch.py +0 -0
  367. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_sync_seed_local.py +0 -0
  368. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_target.py +0 -0
  369. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_unit_abort.py +0 -0
  370. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_unit_apply.py +0 -0
  371. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_unit_apply_dry_run.py +0 -0
  372. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_unit_manifest_schema.py +0 -0
  373. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_unit_propose.py +0 -0
  374. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_unit_topological_apply.py +0 -0
  375. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_validate_repo_path_conflict.py +0 -0
  376. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_version_identity.py +0 -0
  377. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_workspace_convert_clone.py +0 -0
  378. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_workspace_edit_lease_cap.py +0 -0
  379. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_workspace_init_local_repos.py +0 -0
  380. {gitgrip-2.0.0a6 → gitgrip-2.0.0a8}/tests/test_workspace_root_defaults.py +0 -0
@@ -0,0 +1,289 @@
1
+ Metadata-Version: 2.4
2
+ Name: gitgrip
3
+ Version: 2.0.0a8
4
+ Summary: Workspace layer for multi-repo work: workspaces, isolated lanes, and one grouped review per slice
5
+ Requires-Python: >=3.11
6
+ Description-Content-Type: text/markdown
7
+ Requires-Dist: typer>=0.9
8
+ Requires-Dist: tomli_w>=1.0
9
+ Requires-Dist: pyyaml>=6.0
10
+ Requires-Dist: toml>=0.10
11
+ Requires-Dist: jsonschema>=4.18
12
+ Provides-Extra: dev
13
+ Requires-Dist: pytest>=8.0; extra == "dev"
14
+ Requires-Dist: ruff>=0.4; extra == "dev"
15
+ Requires-Dist: packaging>=22; extra == "dev"
16
+
17
+ # gr2
18
+
19
+ **gr2 is the workspace layer for multi-repo work.** One repository is just git; when a change spans repositories — a feature slice, a release, several agents touching several repos — gr2 gives you a workspace over them, isolated lanes to work in, and one grouped review/PR set for the slice. It is the Python successor to the Rust `gr` (1.x, called gr1 below); both ship from this repository, and `gr2` is the command for the workspace and the slice.
20
+
21
+ ## Install
22
+
23
+ ```bash
24
+ uv tool install --pre gitgrip # the PyPI package is "gitgrip"; it installs `gr` and `gr2`
25
+ gr2 --version
26
+ ```
27
+
28
+ Without uv, a venv and pip do the same:
29
+
30
+ ```bash
31
+ python3 -m venv ~/gr2-venv && source ~/gr2-venv/bin/activate
32
+ pip install --pre gitgrip
33
+ gr2 --version
34
+ ```
35
+
36
+ `--pre` is required while every gr2 release is an alpha: 1.5.0 and 1.5.1 were pre-alpha builds and are yanked, so without `--pre` there is nothing to install.
37
+
38
+ Already installed 1.5.0 or 1.5.1? The install commands above leave it in place, because an installed version already satisfies them. Upgrade explicitly: `uv tool upgrade --prerelease allow gitgrip`, or `pip install --pre -U gitgrip`. To run unreleased development code instead, install from a checkout: `pip install -e gr2/` from the repository root.
39
+
40
+ The package installs two commands. `gr2` always runs gr2. `gr` picks by the nearest workspace marker: in a gr1 workspace (`.gitgrip`) it runs gr1, and anywhere else, including outside any workspace, it runs gr2.
41
+
42
+ The Rust `gr` (gr1, 1.x) installs with `brew install synapt-dev/tap/gitgrip` or `cargo install gitgrip`, as `gr` and `gitgrip`. You can have both installed. Whichever `gr` comes first on `PATH` answers: gitgrip 1.5 and earlier always run gr1, so if it comes first, type `gr2` for gr2 (`gr2` says so once). In a gr1 workspace, this package's `gr` runs gr1 through `gitgrip`. With no gr1 installed, it serves a workspace already moved with `gr2 workspace migrate-gr1`, and in one not yet moved it says how to move it.
43
+
44
+ ## First five minutes
45
+
46
+ Every command below was run, in this order, in a clean virtualenv against a throwaway workspace of two repositories. Put two clones side by side in one folder, say `~/ws/repo-a` and `~/ws/repo-b`.
47
+
48
+ ```bash
49
+ cd ~/ws
50
+ gr2 workspace init ~/ws # scans the folder; writes .grip/workspace_spec.toml
51
+ gr2 workspace materialize ~/ws --yes # builds the .grip layout and a default unit
52
+ gr2 workspace status ~/ws # what kind of workspace this is
53
+ gr2 store init ~/ws # the workspace snapshot store (needed before review)
54
+ ```
55
+
56
+ A **unit** is one worker — you, or one agent — and `default` is created for you. A **lane** is one piece of work spanning repos, with its own clones, so two lanes never step on each other:
57
+
58
+ ```bash
59
+ gr2 lane create ~/ws default feat-x --repos repo-a,repo-b --branch feat/x
60
+ gr2 lane enter ~/ws default feat-x --actor human:you
61
+ ```
62
+
63
+ Both commands print, per repo, the absolute directory you work in:
64
+
65
+ ```
66
+ repo-a: ~/ws/.grip/state/lanes/default/feat-x/repos/repo-a
67
+ repo-b: ~/ws/.grip/state/lanes/default/feat-x/repos/repo-b
68
+ ```
69
+
70
+ Edit there — not in your original clones. Stage and commit across the lane's repos:
71
+
72
+ ```bash
73
+ gr2 add . --repo-path ~/ws/.grip/state/lanes/default/feat-x/repos/repo-a
74
+ gr2 commit -m "my change" --workspace-root ~/ws --owner-unit default
75
+ ```
76
+
77
+ `commit` with the lane flags commits every lane repo that has staged changes and names the repos it skipped. If every repo was skipped it exits non-zero with one sentence naming where it looked — and, when it can see them, where your staged changes actually are. Run one command across every lane repo, then turn the lane into one reviewable object:
78
+
79
+ ```bash
80
+ gr2 exec run ~/ws default --actor human:you -- pytest -q # one command, every lane repo
81
+ gr2 review create-project ~/ws default feat-x # prints gr:<sha>: one object to review
82
+ gr2 lane show ~/ws default # where am I?
83
+ gr2 lane exit ~/ws default --actor human:you
84
+ ```
85
+
86
+ `exec run` and `lane exit` require `--actor`. Every group and verb takes `--help`; `gr2 --help` lists them all.
87
+
88
+ ## What works today, and what is not there yet
89
+
90
+ Alpha 2 is a working local workspace layer. Verified by running the walk above:
91
+
92
+ - `workspace` (init, materialize, status, migrate-gr1 from a gr1 gripspace), `lane` (create, enter, exit, current, lease), `store` (init, commit, log, diff, checkout), `exec run`, `repo status`, `sync status`, `review create-project`.
93
+ - Lanes are independent clones: two lanes, or two agents, never share refs, an index, or a working tree.
94
+ - A lane commit that commits nothing anywhere refuses loudly instead of reporting success.
95
+
96
+ Not there yet:
97
+
98
+ - The full walk with **remote** PRs (`gr2 push`, `gr2 pr create`) is documented in `--help` but was not exercised in a clean environment for this README; treat those two as alpha.
99
+ - `gr2 --help` and some verb output still say "prototype" in places; the wording is being cleaned up as verbs land.
100
+ - The Rust `gr` (gr1) still owns `spawn`, `fleet`, and `manifest` until their gr2 ports land. Everything else — workspace sync, lanes, the multi-repo slice, its review — is gr2's job; if a verb is missing or wrong there, that is a bug worth reporting, not a reason to reach for gr1.
101
+
102
+ ## Commands
103
+
104
+ | Group | Verbs |
105
+ |---|---|
106
+ | `workspace` | init, init-from-topology, materialize, status, convert-clone, detect-gr1, migrate-gr1, migrate-lane-state, bootstrap-gr1, gitinclude |
107
+ | `spec` | show, validate |
108
+ | `lane` | create, enter, exit, show, resolve, bind, lease |
109
+ | (top level) | branch, add, commit, push, prune, status, plan, apply |
110
+ | `sync` | status, run |
111
+ | `pr` | create, status, checks, merge, view |
112
+ | `check` | run, show |
113
+ | `review` | open, close, checkout-pr, run, check, pin, publish, receive, verify, show, stamp, merge, repin, create-project, bind, approve, rebind |
114
+ | `exec` | status, run |
115
+ | `repo` | status, projection-run |
116
+ | `hooks` | trust, revoke, status, show, run |
117
+ | `store` | init, commit, check, push, status, log, diff, checkout, materialize, migrate, migrate-reviews |
118
+ | `target`, `config` | stored PR target; config overlays |
119
+
120
+ `review bind`, `review approve` and `review rebind` remain as aliases of `pin`, `stamp` and `repin`.
121
+
122
+ The words these commands use (lane, pin, stamp, repin, gate, review) are defined in [docs/GLOSSARY.md](docs/GLOSSARY.md).
123
+
124
+ ## Stamps (unsigned approvals)
125
+
126
+ Inside a workspace with one pinned review matching every member's current head,
127
+ a reviewer stamps it as the workspace's Git `user.name`:
128
+
129
+ ```bash
130
+ gr2 review stamp
131
+ gr2 review merge
132
+ ```
133
+
134
+ The author recorded by the pin, and anyone who authored a commit in its range,
135
+ cannot stamp it. A stamp records an approval; approver names are self-declared and receipts say `signed: false`.
136
+ Repeated stamps by the same name count once. A moved head needs a new pin
137
+ and fresh stamps. Signing is not implemented by these commands.
138
+
139
+ The workspace's `grip.toml` sets the number required before merging:
140
+
141
+ ```toml
142
+ [approvals]
143
+ required = 2
144
+ ```
145
+
146
+ The default is zero; `review merge --approvals N` can raise the count for that
147
+ run, but cannot lower the workspace policy. With zero required, the merge gate
148
+ skips approval counting. When approvals are required, broken records or different
149
+ chain tips across member remotes refuse before this run pushes a merge. After a refused stamp, rerun
150
+ `review stamp` to read the current chain and retry with a lease.
151
+
152
+ ## Overlay substrate
153
+
154
+ gr2 also carries the config-overlay substrate (capture, compose, and materialize configuration layers over a workspace): see [docs/OVERLAY-SUBSTRATE.md](docs/OVERLAY-SUBSTRATE.md).
155
+
156
+ ## Development
157
+
158
+ ```bash
159
+ pip install -e "gr2[dev]" # from the repository root
160
+ cd gr2 && pytest # the gr2 suite (tests + overlay tests)
161
+ cd gr2 && ruff check . # lint, same config as CI
162
+ ```
163
+
164
+ The Rust development binary is **`gr2-dev`** — built by `cargo build -p gr2-cli --release`, `publish = false`, and not shipped with `cargo install gitgrip`. It answered to the name `gr2` until 2026-09-30, so a branch written before that rename goes red on `cargo test -p gr2-cli` with `CARGO_BIN_EXE_gr2 is unset`; the repair is `cargo_bin("gr2-dev")`, from which Cargo derives `CARGO_BIN_EXE_gr2-dev`.
165
+
166
+ Migration: use `gr2 review check` for compiled review requirements. `review requirements`
167
+ remains a hidden alias with a warning on stderr until beta. Both report `satisfied`
168
+ in the same JSON payload, and a missing reviewer remains a reported status with exit 0.
169
+
170
+ A bare `gr2 review open <workspace>` uses the workspace's sole pinned review. Its default directory is `<workspace>.review/<sha8>` in the workspace's parent directory, and the command announces that path on stderr. Give `--lane-dir` to choose another location.
171
+
172
+ New pinned reviews record the author's Git `user.name` from the workspace root.
173
+ Set it with `git config user.name 'Your Name'` there if Git has no configured name.
174
+ `review show --json` and `review verify --json` include this author; older pinned reviews
175
+ remain readable without an author field, and reading them does not invent one.
176
+
177
+
178
+ ## Transfer a native review
179
+
180
+ Publish an existing pinned review and receive it in another native workspace:
181
+
182
+ ```bash
183
+ gr2 review publish gr:<full-review-id> --remote https://example.org/workspace.git
184
+ gr2 review receive gr:<full-review-id> --remote https://example.org/workspace.git
185
+ gr2 review show gr:<full-review-id>
186
+ gr2 review verify gr:<full-review-id>
187
+ gr2 review open gr:<full-review-id> --lane-dir /absolute/fresh-review
188
+ ```
189
+
190
+ The root defaults to the current workspace. Use `-C /absolute/workspace` to override
191
+ it. Transport requires an independently supplied full 40-character lowercase
192
+ review ID and an explicit HTTPS URL or absolute local remote path. It does not
193
+ infer the expected ID from the remote. A review is published at
194
+ `refs/dev.synapt.grip/__reviews__/v1/<full-review-id>`; `--ref`, when supplied, must be
195
+ exactly that, or the older `refs/dev.synapt.grip/__reviews__/<full-review-id>`. Invalid explicit input is
196
+ refused without falling back to context.
197
+
198
+ Publish transfers only that review ref and confirms its returned target. Receive
199
+ compares both the advertised and actual fetched raw target with the expected ID,
200
+ requires a commit and recomputable review content, then creates the canonical
201
+ local review ref. A valid same-ID receive is idempotent. A conflicting existing ref
202
+ is refused. Object downloads may remain after refusal. The owned temporary ref
203
+ is removed separately, and cleanup failure is reported without replacing a
204
+ primary failure.
205
+
206
+ The review commit carries its trees, blobs and range patches. It does not make
207
+ its recorded base or original member head reachable as Git parents. Keep each
208
+ member's base reachable at its recorded remote for reconstruction. `verify`
209
+ checks content consistency, not current remote state, provenance or approval.
210
+ `open` checks reconstructed member trees. Commit identity can differ from the
211
+ original head. Receiving content grants no local approval, allocation, selection
212
+ or cleanup authority. Opening a reconstruction remains a separate operation.
213
+
214
+
215
+ ## External PR adapters
216
+
217
+ External packages can expose a zero-argument factory through the
218
+ `gr2.platform_adapters` entry-point group. See [the adapter contract](docs/PR-LIFECYCLE.md#51-adapter-protocol-and-capabilities)
219
+ for registration, optional operation capabilities and merge head-pin requirements.
220
+ What changed in that protocol, release by release, ships in the package: read it from
221
+ an install with `importlib.resources.files("gr2") / "PLATFORM_ADAPTER_CHANGELOG.md"`,
222
+ or in this repository at [gr2/PLATFORM_ADAPTER_CHANGELOG.md](gr2/PLATFORM_ADAPTER_CHANGELOG.md).
223
+ Select the installed adapter with `gr2 pr create ... --platform NAME` on a
224
+ materialized lane. The bound-lane path currently pushes and returns its receipt.
225
+
226
+ PRs start as drafts by default. `--draft` is explicit draft creation, while
227
+ `--no-draft` explicitly creates non-drafts. The same default applies to
228
+ `CreatePRRequest` and `create_pr_group`. Existing Python callers can retain
229
+ non-draft creation with `draft=False`. Plugins execute trusted Python from the
230
+ existing environment. The CLI never installs or downloads them.
231
+
232
+ ## Checks on a plain Git remote
233
+
234
+ Run a command at an exact full commit id in a disposable checkout, then publish
235
+ its exit status to the repository's remote:
236
+
237
+ ```sh
238
+ gr2 check run ./repo -- python -m pytest
239
+ gr2 check show ./repo --json
240
+ ```
241
+
242
+ With no flags, the remote is the current branch's upstream (else `origin`) and the head is `HEAD`,
243
+ as a full commit id. gr2 prints what it resolved on stderr. `--remote` (a URL, an absolute path or a
244
+ remote's name), `--head` and `--name` override them. With no upstream and no `origin`, it refuses and
245
+ asks for `--remote`.
246
+
247
+ Absolute paths to local bare remotes also work. Observations live at
248
+ `refs/dev.synapt.grip/__checks__/v1`, keyed by commit id. `check show` fetches a
249
+ fresh snapshot; a different commit has no check even when its tree is identical.
250
+ Supplied `--require` names replace the default `test` requirement. For both
251
+ checks, use `--require test --require lint`.
252
+
253
+ The read JSON contains `status`, `record_id` (the head's record-set blob id or
254
+ null), `snapshot_oid`, `head`, `member_key`, `records`, and `reason`. Each
255
+ observation retains its fields and adds a SHA-256 `observation_id`.
256
+
257
+ A failed command is recorded and `check run` exits 1. Publication or execution
258
+ refusals exit 2. `check show` returns `pass`, `fail` or `absent` in its JSON;
259
+ failed or unmeasurable reads exit 2. Conflicting pass and fail observations both
260
+ survive and refuse readiness. Rerunning a check does not erase its earlier
261
+ failure at that commit. Concurrent writes union observations with bounded
262
+ compare-and-swap retries. An unmeasurable push acknowledgement is reported as
263
+ indeterminate unless a fresh remote read confirms the observation.
264
+
265
+ ## Merge a pinned review into plain Git remotes
266
+
267
+ ```sh
268
+ gr2 review merge
269
+ ```
270
+
271
+ This merges the review pinned at the members' current heads, from their current branch, into the
272
+ branch on each remote that still sits at the reviewed base, and prints what it resolved. If several
273
+ branches sit there, it asks for `--into`. It merges only if every member's remote feature
274
+ branch is still the reviewed head, the target is still the reviewed base, and the exact-head check
275
+ passes. If any member fails that preflight, nothing is pushed. Merges are separate pushes, not atomic
276
+ across repos: a member that moves after an earlier member was pushed is refused, and the run exits 4.
277
+
278
+ Exit codes:
279
+ - 0: all merged;
280
+ - 3: none merged (refused);
281
+ - 4: partial or unknown.
282
+
283
+ A review id, `--from` and `--into` override the defaults. Zero or several matching pinned reviews, or members on
284
+ different branches, refuse and name the value to pass.
285
+
286
+ These records are attestations by writers trusted with remote access, not signed
287
+ proof against a writer who can forge Git objects. Test output and environment
288
+ contents are not uploaded. Read this custom ref through gr2; plain `git notes`
289
+ cannot read notes outside `refs/notes/`.
@@ -0,0 +1,273 @@
1
+ # gr2
2
+
3
+ **gr2 is the workspace layer for multi-repo work.** One repository is just git; when a change spans repositories — a feature slice, a release, several agents touching several repos — gr2 gives you a workspace over them, isolated lanes to work in, and one grouped review/PR set for the slice. It is the Python successor to the Rust `gr` (1.x, called gr1 below); both ship from this repository, and `gr2` is the command for the workspace and the slice.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ uv tool install --pre gitgrip # the PyPI package is "gitgrip"; it installs `gr` and `gr2`
9
+ gr2 --version
10
+ ```
11
+
12
+ Without uv, a venv and pip do the same:
13
+
14
+ ```bash
15
+ python3 -m venv ~/gr2-venv && source ~/gr2-venv/bin/activate
16
+ pip install --pre gitgrip
17
+ gr2 --version
18
+ ```
19
+
20
+ `--pre` is required while every gr2 release is an alpha: 1.5.0 and 1.5.1 were pre-alpha builds and are yanked, so without `--pre` there is nothing to install.
21
+
22
+ Already installed 1.5.0 or 1.5.1? The install commands above leave it in place, because an installed version already satisfies them. Upgrade explicitly: `uv tool upgrade --prerelease allow gitgrip`, or `pip install --pre -U gitgrip`. To run unreleased development code instead, install from a checkout: `pip install -e gr2/` from the repository root.
23
+
24
+ The package installs two commands. `gr2` always runs gr2. `gr` picks by the nearest workspace marker: in a gr1 workspace (`.gitgrip`) it runs gr1, and anywhere else, including outside any workspace, it runs gr2.
25
+
26
+ The Rust `gr` (gr1, 1.x) installs with `brew install synapt-dev/tap/gitgrip` or `cargo install gitgrip`, as `gr` and `gitgrip`. You can have both installed. Whichever `gr` comes first on `PATH` answers: gitgrip 1.5 and earlier always run gr1, so if it comes first, type `gr2` for gr2 (`gr2` says so once). In a gr1 workspace, this package's `gr` runs gr1 through `gitgrip`. With no gr1 installed, it serves a workspace already moved with `gr2 workspace migrate-gr1`, and in one not yet moved it says how to move it.
27
+
28
+ ## First five minutes
29
+
30
+ Every command below was run, in this order, in a clean virtualenv against a throwaway workspace of two repositories. Put two clones side by side in one folder, say `~/ws/repo-a` and `~/ws/repo-b`.
31
+
32
+ ```bash
33
+ cd ~/ws
34
+ gr2 workspace init ~/ws # scans the folder; writes .grip/workspace_spec.toml
35
+ gr2 workspace materialize ~/ws --yes # builds the .grip layout and a default unit
36
+ gr2 workspace status ~/ws # what kind of workspace this is
37
+ gr2 store init ~/ws # the workspace snapshot store (needed before review)
38
+ ```
39
+
40
+ A **unit** is one worker — you, or one agent — and `default` is created for you. A **lane** is one piece of work spanning repos, with its own clones, so two lanes never step on each other:
41
+
42
+ ```bash
43
+ gr2 lane create ~/ws default feat-x --repos repo-a,repo-b --branch feat/x
44
+ gr2 lane enter ~/ws default feat-x --actor human:you
45
+ ```
46
+
47
+ Both commands print, per repo, the absolute directory you work in:
48
+
49
+ ```
50
+ repo-a: ~/ws/.grip/state/lanes/default/feat-x/repos/repo-a
51
+ repo-b: ~/ws/.grip/state/lanes/default/feat-x/repos/repo-b
52
+ ```
53
+
54
+ Edit there — not in your original clones. Stage and commit across the lane's repos:
55
+
56
+ ```bash
57
+ gr2 add . --repo-path ~/ws/.grip/state/lanes/default/feat-x/repos/repo-a
58
+ gr2 commit -m "my change" --workspace-root ~/ws --owner-unit default
59
+ ```
60
+
61
+ `commit` with the lane flags commits every lane repo that has staged changes and names the repos it skipped. If every repo was skipped it exits non-zero with one sentence naming where it looked — and, when it can see them, where your staged changes actually are. Run one command across every lane repo, then turn the lane into one reviewable object:
62
+
63
+ ```bash
64
+ gr2 exec run ~/ws default --actor human:you -- pytest -q # one command, every lane repo
65
+ gr2 review create-project ~/ws default feat-x # prints gr:<sha>: one object to review
66
+ gr2 lane show ~/ws default # where am I?
67
+ gr2 lane exit ~/ws default --actor human:you
68
+ ```
69
+
70
+ `exec run` and `lane exit` require `--actor`. Every group and verb takes `--help`; `gr2 --help` lists them all.
71
+
72
+ ## What works today, and what is not there yet
73
+
74
+ Alpha 2 is a working local workspace layer. Verified by running the walk above:
75
+
76
+ - `workspace` (init, materialize, status, migrate-gr1 from a gr1 gripspace), `lane` (create, enter, exit, current, lease), `store` (init, commit, log, diff, checkout), `exec run`, `repo status`, `sync status`, `review create-project`.
77
+ - Lanes are independent clones: two lanes, or two agents, never share refs, an index, or a working tree.
78
+ - A lane commit that commits nothing anywhere refuses loudly instead of reporting success.
79
+
80
+ Not there yet:
81
+
82
+ - The full walk with **remote** PRs (`gr2 push`, `gr2 pr create`) is documented in `--help` but was not exercised in a clean environment for this README; treat those two as alpha.
83
+ - `gr2 --help` and some verb output still say "prototype" in places; the wording is being cleaned up as verbs land.
84
+ - The Rust `gr` (gr1) still owns `spawn`, `fleet`, and `manifest` until their gr2 ports land. Everything else — workspace sync, lanes, the multi-repo slice, its review — is gr2's job; if a verb is missing or wrong there, that is a bug worth reporting, not a reason to reach for gr1.
85
+
86
+ ## Commands
87
+
88
+ | Group | Verbs |
89
+ |---|---|
90
+ | `workspace` | init, init-from-topology, materialize, status, convert-clone, detect-gr1, migrate-gr1, migrate-lane-state, bootstrap-gr1, gitinclude |
91
+ | `spec` | show, validate |
92
+ | `lane` | create, enter, exit, show, resolve, bind, lease |
93
+ | (top level) | branch, add, commit, push, prune, status, plan, apply |
94
+ | `sync` | status, run |
95
+ | `pr` | create, status, checks, merge, view |
96
+ | `check` | run, show |
97
+ | `review` | open, close, checkout-pr, run, check, pin, publish, receive, verify, show, stamp, merge, repin, create-project, bind, approve, rebind |
98
+ | `exec` | status, run |
99
+ | `repo` | status, projection-run |
100
+ | `hooks` | trust, revoke, status, show, run |
101
+ | `store` | init, commit, check, push, status, log, diff, checkout, materialize, migrate, migrate-reviews |
102
+ | `target`, `config` | stored PR target; config overlays |
103
+
104
+ `review bind`, `review approve` and `review rebind` remain as aliases of `pin`, `stamp` and `repin`.
105
+
106
+ The words these commands use (lane, pin, stamp, repin, gate, review) are defined in [docs/GLOSSARY.md](docs/GLOSSARY.md).
107
+
108
+ ## Stamps (unsigned approvals)
109
+
110
+ Inside a workspace with one pinned review matching every member's current head,
111
+ a reviewer stamps it as the workspace's Git `user.name`:
112
+
113
+ ```bash
114
+ gr2 review stamp
115
+ gr2 review merge
116
+ ```
117
+
118
+ The author recorded by the pin, and anyone who authored a commit in its range,
119
+ cannot stamp it. A stamp records an approval; approver names are self-declared and receipts say `signed: false`.
120
+ Repeated stamps by the same name count once. A moved head needs a new pin
121
+ and fresh stamps. Signing is not implemented by these commands.
122
+
123
+ The workspace's `grip.toml` sets the number required before merging:
124
+
125
+ ```toml
126
+ [approvals]
127
+ required = 2
128
+ ```
129
+
130
+ The default is zero; `review merge --approvals N` can raise the count for that
131
+ run, but cannot lower the workspace policy. With zero required, the merge gate
132
+ skips approval counting. When approvals are required, broken records or different
133
+ chain tips across member remotes refuse before this run pushes a merge. After a refused stamp, rerun
134
+ `review stamp` to read the current chain and retry with a lease.
135
+
136
+ ## Overlay substrate
137
+
138
+ gr2 also carries the config-overlay substrate (capture, compose, and materialize configuration layers over a workspace): see [docs/OVERLAY-SUBSTRATE.md](docs/OVERLAY-SUBSTRATE.md).
139
+
140
+ ## Development
141
+
142
+ ```bash
143
+ pip install -e "gr2[dev]" # from the repository root
144
+ cd gr2 && pytest # the gr2 suite (tests + overlay tests)
145
+ cd gr2 && ruff check . # lint, same config as CI
146
+ ```
147
+
148
+ The Rust development binary is **`gr2-dev`** — built by `cargo build -p gr2-cli --release`, `publish = false`, and not shipped with `cargo install gitgrip`. It answered to the name `gr2` until 2026-09-30, so a branch written before that rename goes red on `cargo test -p gr2-cli` with `CARGO_BIN_EXE_gr2 is unset`; the repair is `cargo_bin("gr2-dev")`, from which Cargo derives `CARGO_BIN_EXE_gr2-dev`.
149
+
150
+ Migration: use `gr2 review check` for compiled review requirements. `review requirements`
151
+ remains a hidden alias with a warning on stderr until beta. Both report `satisfied`
152
+ in the same JSON payload, and a missing reviewer remains a reported status with exit 0.
153
+
154
+ A bare `gr2 review open <workspace>` uses the workspace's sole pinned review. Its default directory is `<workspace>.review/<sha8>` in the workspace's parent directory, and the command announces that path on stderr. Give `--lane-dir` to choose another location.
155
+
156
+ New pinned reviews record the author's Git `user.name` from the workspace root.
157
+ Set it with `git config user.name 'Your Name'` there if Git has no configured name.
158
+ `review show --json` and `review verify --json` include this author; older pinned reviews
159
+ remain readable without an author field, and reading them does not invent one.
160
+
161
+
162
+ ## Transfer a native review
163
+
164
+ Publish an existing pinned review and receive it in another native workspace:
165
+
166
+ ```bash
167
+ gr2 review publish gr:<full-review-id> --remote https://example.org/workspace.git
168
+ gr2 review receive gr:<full-review-id> --remote https://example.org/workspace.git
169
+ gr2 review show gr:<full-review-id>
170
+ gr2 review verify gr:<full-review-id>
171
+ gr2 review open gr:<full-review-id> --lane-dir /absolute/fresh-review
172
+ ```
173
+
174
+ The root defaults to the current workspace. Use `-C /absolute/workspace` to override
175
+ it. Transport requires an independently supplied full 40-character lowercase
176
+ review ID and an explicit HTTPS URL or absolute local remote path. It does not
177
+ infer the expected ID from the remote. A review is published at
178
+ `refs/dev.synapt.grip/__reviews__/v1/<full-review-id>`; `--ref`, when supplied, must be
179
+ exactly that, or the older `refs/dev.synapt.grip/__reviews__/<full-review-id>`. Invalid explicit input is
180
+ refused without falling back to context.
181
+
182
+ Publish transfers only that review ref and confirms its returned target. Receive
183
+ compares both the advertised and actual fetched raw target with the expected ID,
184
+ requires a commit and recomputable review content, then creates the canonical
185
+ local review ref. A valid same-ID receive is idempotent. A conflicting existing ref
186
+ is refused. Object downloads may remain after refusal. The owned temporary ref
187
+ is removed separately, and cleanup failure is reported without replacing a
188
+ primary failure.
189
+
190
+ The review commit carries its trees, blobs and range patches. It does not make
191
+ its recorded base or original member head reachable as Git parents. Keep each
192
+ member's base reachable at its recorded remote for reconstruction. `verify`
193
+ checks content consistency, not current remote state, provenance or approval.
194
+ `open` checks reconstructed member trees. Commit identity can differ from the
195
+ original head. Receiving content grants no local approval, allocation, selection
196
+ or cleanup authority. Opening a reconstruction remains a separate operation.
197
+
198
+
199
+ ## External PR adapters
200
+
201
+ External packages can expose a zero-argument factory through the
202
+ `gr2.platform_adapters` entry-point group. See [the adapter contract](docs/PR-LIFECYCLE.md#51-adapter-protocol-and-capabilities)
203
+ for registration, optional operation capabilities and merge head-pin requirements.
204
+ What changed in that protocol, release by release, ships in the package: read it from
205
+ an install with `importlib.resources.files("gr2") / "PLATFORM_ADAPTER_CHANGELOG.md"`,
206
+ or in this repository at [gr2/PLATFORM_ADAPTER_CHANGELOG.md](gr2/PLATFORM_ADAPTER_CHANGELOG.md).
207
+ Select the installed adapter with `gr2 pr create ... --platform NAME` on a
208
+ materialized lane. The bound-lane path currently pushes and returns its receipt.
209
+
210
+ PRs start as drafts by default. `--draft` is explicit draft creation, while
211
+ `--no-draft` explicitly creates non-drafts. The same default applies to
212
+ `CreatePRRequest` and `create_pr_group`. Existing Python callers can retain
213
+ non-draft creation with `draft=False`. Plugins execute trusted Python from the
214
+ existing environment. The CLI never installs or downloads them.
215
+
216
+ ## Checks on a plain Git remote
217
+
218
+ Run a command at an exact full commit id in a disposable checkout, then publish
219
+ its exit status to the repository's remote:
220
+
221
+ ```sh
222
+ gr2 check run ./repo -- python -m pytest
223
+ gr2 check show ./repo --json
224
+ ```
225
+
226
+ With no flags, the remote is the current branch's upstream (else `origin`) and the head is `HEAD`,
227
+ as a full commit id. gr2 prints what it resolved on stderr. `--remote` (a URL, an absolute path or a
228
+ remote's name), `--head` and `--name` override them. With no upstream and no `origin`, it refuses and
229
+ asks for `--remote`.
230
+
231
+ Absolute paths to local bare remotes also work. Observations live at
232
+ `refs/dev.synapt.grip/__checks__/v1`, keyed by commit id. `check show` fetches a
233
+ fresh snapshot; a different commit has no check even when its tree is identical.
234
+ Supplied `--require` names replace the default `test` requirement. For both
235
+ checks, use `--require test --require lint`.
236
+
237
+ The read JSON contains `status`, `record_id` (the head's record-set blob id or
238
+ null), `snapshot_oid`, `head`, `member_key`, `records`, and `reason`. Each
239
+ observation retains its fields and adds a SHA-256 `observation_id`.
240
+
241
+ A failed command is recorded and `check run` exits 1. Publication or execution
242
+ refusals exit 2. `check show` returns `pass`, `fail` or `absent` in its JSON;
243
+ failed or unmeasurable reads exit 2. Conflicting pass and fail observations both
244
+ survive and refuse readiness. Rerunning a check does not erase its earlier
245
+ failure at that commit. Concurrent writes union observations with bounded
246
+ compare-and-swap retries. An unmeasurable push acknowledgement is reported as
247
+ indeterminate unless a fresh remote read confirms the observation.
248
+
249
+ ## Merge a pinned review into plain Git remotes
250
+
251
+ ```sh
252
+ gr2 review merge
253
+ ```
254
+
255
+ This merges the review pinned at the members' current heads, from their current branch, into the
256
+ branch on each remote that still sits at the reviewed base, and prints what it resolved. If several
257
+ branches sit there, it asks for `--into`. It merges only if every member's remote feature
258
+ branch is still the reviewed head, the target is still the reviewed base, and the exact-head check
259
+ passes. If any member fails that preflight, nothing is pushed. Merges are separate pushes, not atomic
260
+ across repos: a member that moves after an earlier member was pushed is refused, and the run exits 4.
261
+
262
+ Exit codes:
263
+ - 0: all merged;
264
+ - 3: none merged (refused);
265
+ - 4: partial or unknown.
266
+
267
+ A review id, `--from` and `--into` override the defaults. Zero or several matching pinned reviews, or members on
268
+ different branches, refuse and name the value to pass.
269
+
270
+ These records are attestations by writers trusted with remote access, not signed
271
+ proof against a writer who can forge Git objects. Test output and environment
272
+ contents are not uploaded. Read this custom ref through gr2; plain `git notes`
273
+ cannot read notes outside `refs/notes/`.