Skip to content

P1: Python package + subprocess bridge to wh CLI #30

Closed

Description

@rmems

Note

Historical GitHub issue. This issue is closed and retained for provenance. Its original body may describe an older writ/worktrees-hives architecture; do not treat retired Python/lab, Research-Hive, Graph-MVP, hook-enforcement, managed-worktree, babysit, or blanket local-merge restrictions below as current requirements.
Current product direction: https://linear.app/rpd-34/issue/RM-116/epic-writ-parallel-subagent-collaboration-ownership-and-conflict
Linear is the required task tracker; GitHub keeps source/PR/review/check history.
Linked Linear record: https://linear.app/rpd-34/issue/RM-28/worktrees-hives-gh30-p1-python-package-subprocess-bridge-to-wh-cli
Original GitHub milestone Python orchestrator is legacy taxonomy and does not define the current roadmap.

Summary

Python package that treats Rust wh as the system of record for worktrees/state/processes.

Acceptance

  • Installable package under python/worktrees_hives/ (or similar)
  • Thin client: invoke wh with JSON args/stdout
  • Clear errors if wh missing from PATH
  • Smoke tests with mocked subprocess

Dependencies

R1 (binary available).


GitHub: #30


Linear: https://linear.app/rpd-34/issue/RM-28/worktrees-hives-gh30-p1-python-package-subprocess-bridge-to-wh-cli (RM-28)

Activity

  1. added this to the Python orchestrator milestone on Jul 10, 2026
  2. Copilot commented on Jul 10, 2026

    Copilot
    Contributor

    The agent encountered an error and was unable to start working on this issue: You don't have sufficient GitHub AI Credits to start a session. Review your usage and budgets in your Copilot settings, then try again. (Request id: DD13:177D60:30BB111:A45450F:6A50967E)

  3. rmems commented on Jul 11, 2026

    @rmems
    OwnerAuthor

    This issue is now complete via PR #65. The Python package is implemented with:

  4. rmems commented on Jul 11, 2026

    @rmems
    OwnerAuthor

    P1 complete: Python package worktrees_hives installable via pip install -e ./python. WhClient bridge resolves wh via WH_BIN or PATH, invokes with --json, parses v1 envelope. Clear WhBinaryNotFoundError if wh missing. Exit code 2 → PolicyError(code, message). Smoke tests with mocked subprocess. Stub modules for P2-P4 raising NotImplementedError with issue refs: discover.py (#31), partition.py (#31), issue_pr.py (#32), babysit.py (#32), report.py (#33). pytest CI (.github/workflows/python.yml).

    PR: #70a20a0 (hive/foundation-hybrid-r1-r5-p1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions