Skip to content

fix: review existing PRs in a standalone workflow - #1417

Draft
ivankuznetsov wants to merge 5 commits into
mainfrom
fix/adhoc-review-ownership
Draft

ivankuznetsov wants to merge 5 commits into
mainfrom
fix/adhoc-review-ownership

Conversation

@ivankuznetsov

Copy link
Copy Markdown
Owner

Summary

  • hive review --pr N now runs a standalone pr-review workflow (1-review2-done) through the existing review council. It has no development, PR creation, artifacts or finalization stages.
  • Legacy coding imports migrate with their complete original task preserved as evidence and a new task identity. Local fix commits and the last known remote PR head remain distinct.
  • Opt-in fixes target the original PR branch and refuse to overwrite newer author commits. Dropping a borrowed review task leaves its PR open.

Test plan

  • Focused shared review/import/worktree suite: 671 tests, 3,095 assertions.
  • Final CLI, initialization, registry and cleanup tests: 158 tests, 1,099 assertions, including native import → review completion → archive at 2-done.
  • Migration/stage-literal contract checks: 32 tests, 210 assertions; descriptor checks: 91 tests, 929 assertions.
  • Repository RuboCop: 1,796 files, no offenses; git diff --check clean.
  • Broad parallel checkpoint completed: 14,143 tests. It found outdated workflow expectations and two supervisor timeouts. The expectations were corrected and their focused reruns passed; both timeout tests also passed on rerun. The entire broad suite was not rerun after these corrections.
  • Hosted coverage and dedicated merge gates.

Notes for reviewer

Workflow identity is immutable in the control plane, so migration creates a replacement task ID and retains the old folder under migration/coding. Migration refuses dirty or conflicting worktrees and retains a recovery backup if rollback fails. The remote-head fence fails closed if publication succeeds but its local identity receipt cannot be persisted.

This changes source behavior only. The installed dogfood daemon and the existing Webmail review task have not been migrated. The PR remains draft pending hosted validation.


Compound Engineering

Keep the existing workflow order and append pr-review expectations, matching
the built-in registry. Reproduces and fixes both failures from PR 1417 CI.
Only stage the old task path when it has tracked files. Preserve the full
legacy evidence in the new standalone review, including tasks never committed
by the old importer. Cover the live Webmail failure with a real-Git test.
Share workflow-aware verb resolution between stage commands, queued dispatch
and worker validation. Standalone review and archive must target 1-review and
2-done rather than coding stages. Add regressions for both paths.
Carry workflow metadata through the shared synthetic task facade and derive
its stage from the owning task folder. This keeps standalone reviewer session
events from being written into the journal as coding-workflow events.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant