HUE-028 — Implement OpenCode-first coding worker adapter with scoped terminal and file tools
Canonical source:
docs/roadmap/issues.json·HUE-028Specification status:
TBI· Readiness:agent:blocked
Make OpenCode the primary v0 software execution backend while HUE retains canonical Session/task/policy/evidence state.
- Implement adapter mode selected by TBD-024
- Inject versioned context and least-capability grants
- Bind repository/worktree/GitHub issue and normalize events
- Support steer/pause/cancel/reconcile
- Capture usage, changed files and verification evidence
Acceptance criteria
Section titled “Acceptance criteria”- Real OpenCode task modifies only managed worktree
- HUE Session survives adapter restart
- Normalized events do not expose backend-specific UI coupling
- Cancel/reconcile truthfully classify outcome
- An alternate adapter can satisfy same contract
Dependencies
Section titled “Dependencies”HUE-022HUE-027
Non-goals
Section titled “Non-goals”- None beyond the documented scope.
Product contract
Section titled “Product contract”docs/05-system-architecture.mddocs/07-orchestration-and-routing.mddocs/08-tools-permissions-computer-use.md
Implementation handoff requirements
Section titled “Implementation handoff requirements”- Preserve the documented security, project, memory and event boundaries.
- Add or update automated tests for every observable acceptance criterion.
- Provide real verification output; do not rely on a worker/agent self-report.
- Update only the exact documentation sections whose status changed.
- Include screenshots or a recording for user-interface changes.
- Include migration, rollback and recovery notes for data/state changes.
- Link the pull request to this issue with
Closes #<issue-number>.