Repository navigation
Description
👤 User Story
As a
pull request reviewer
I want to
/uf.review (or PR opened/reopened/synchronized) to run the 9-persona Divisor council in a FullSend sandbox and post a host-side PR review
So that
local /uf.review-council and FullSend produce the same council JSON — Increment 1 parity gate
🎯 Acceptance Criteria
- Per-repo FullSend install on
unbound-force/unbound-forcewithruntime: opencode -
harness/uf-review.yaml: read-only, Vertex, CEL trigger on opened/reopened/synchronized orcomment.body.startsWith("/uf.review"), 20 min timeout - Thin
agents/uf-review.mddelegates to repo.opencode/agents/divisor-*.md+ severity pack; tools are read-only -
schemas/uf-review-result.schema.jsonincludesstatus,verdict,summary,inline_comments,pending_question(unused in Inc1),provenance - Host
pre-uf-review.shwritesreview_context/fromgh pr view/gh pr diff(creds stay on host) -
validate-uf-review.shschema + semantic checks; non-zero triggers FullSend re-run (max 2) -
post-uf-review.shposts the PR review (inline comments filtered to diff lines) and a severity table summary - Acceptance:
fullsend run uf-review --fullsend-dir .fullsend --target-repo . --env-file .env.localproduces the same council JSON as local/uf.review-council
🚫 Out of Scope
/uf.answerresume loop (Increment 2)- Write-capable agents
- Renaming slash commands to
/fs-*
Dependencies
- Phase 0 GO
- OpenCodeRuntime available in FullSend
- fullsend-opencode image
Increment 1. Runtime + image are separate stories, so this is harness/agent/schema/scripts/dispatch — comparable to GitHub review-posting work (M), not the council-review-action extraction (L).
🏁 Definition of Done — 🛠️ Quality & Testing
- Code has been peer-reviewed for bugs and vulnerabilities.
- Proper testing has been completed and passes (Unit, Integration, E2E via GitHub Actions).
- The feature has been demonstrated/validated successfully in the target environment.
🏁 Definition of Done — 📝 Architecture & Docs
- Usage documentation or changelog updated (if user-facing changes introduced).
- Local ADR written and verified by Tech Lead if technical architecture deviated.
- Any newly introduced technical debt has been logged as a GitHub issue.
Context
- Source RFC: https://github.com/orgs/unbound-force/discussions/437
- Execution plan (Jay / @jflowers): https://github.com/orgs/unbound-force/discussions/437#discussioncomment-14559914
- Locked approach: A — OpenCode + uf as the agent runtime; FullSend is infrastructure (sandbox, WIF, dispatch)
- Size: M (comparative T-shirt; same scale as ComplyTime / Agentic-SSDLC / Unbound Force planning)
Implementation Notes (added by @jflowers, Aug 2026)
Harness YAML draft (.fullsend/harness/uf-review.yaml):
agent: agents/uf-review.md
description: "Divisor council review — read-only code review via uf"
role: review
image: ghcr.io/unbound-force/fullsend-opencode@sha256:<digest>
model: google-vertex-anthropic/claude-sonnet-4-6
timeout_minutes: 20
readonly_repo: true
host_files:
- src: "${GOOGLE_APPLICATION_CREDENTIALS}"
dest: /tmp/wif-creds.json
optional: false
env:
sandbox:
GOOGLE_APPLICATION_CREDENTIALS: /tmp/wif-creds.json
trigger: |
event.action in ["opened", "reopened", "synchronize"] ||
(event.action == "created" && has(event.comment) && event.comment.body.startsWith("/uf.review"))
validation_loop:
script: scripts/validate-uf-review.sh
max_retries: 2
pre_script: scripts/pre-uf-review.sh
post_script: scripts/post-uf-review.sh
security:
enabled: true
fail_mode: closed
# No sandbox_hooks — opencode has no PreToolUse/PostToolUse
# Host-side scanners still run (runtime-agnostic)Agent definition (.fullsend/agents/uf-review.md):
Thin primary agent that delegates to the repo's Divisor council. Reads .opencode/agents/divisor-*.md + .opencode/uf/packs/severity.md. Must be mode: primary (not subagent) with permission: { edit: deny, bash: deny, webfetch: deny } (read-only).
Result schema (schemas/uf-review-result.schema.json):
{
"type": "object",
"required": ["status", "verdict", "summary", "inline_comments", "provenance"],
"properties": {
"status": { "enum": ["complete", "needs_input", "error"] },
"verdict": { "enum": ["approve", "request_changes", "comment"] },
"summary": { "type": "string" },
"inline_comments": {
"type": "array",
"items": {
"type": "object",
"required": ["path", "line", "severity", "body"],
"properties": {
"path": { "type": "string" },
"line": { "type": "integer" },
"severity": { "enum": ["critical", "major", "minor", "suggestion"] },
"body": { "type": "string" }
}
}
},
"pending_question": { "type": ["string", "null"] },
"provenance": {
"type": "object",
"properties": {
"agent": { "type": "string" },
"model": { "type": "string" },
"session_id": { "type": "string" }
}
}
}
}Three host scripts:
-
scripts/pre-uf-review.sh— runs on host BEFORE agent; writesreview_context/dir with PR metadata (gh pr view), diff (gh pr diff), CI status, existing reviews. Credentials stay on host — only artifacts are uploaded. -
scripts/validate-uf-review.sh— runs on host AFTER agent; validates output JSON againstuf-review-result.schema.json+ semantic checks (inline_comments paths exist in diff, line numbers in range). Non-zero exit triggers FullSend re-run (up tomax_retries: 2). -
scripts/post-uf-review.sh— runs on host after validation passes; posts PR review viagh pr reviewwith inline comments (filtered to diff lines) + severity table summary comment.
Acceptance test command:
fullsend run uf-review \
--fullsend-dir .fullsend \
--target-repo . \
--env-file .env.localMust produce the SAME council JSON as running /uf.review-council locally in OpenCode.
CEL trigger note: the trigger event.comment.body.startsWith("/uf.review") intentionally uses /uf.review NOT /fs-review — preserves the /uf.* naming convention per RFC locked decision.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsBacklog
Activity
yvonnedevlinrh commentedon Aug 26, 2026
Runtime validation (verified against fullsend main 90ee8d6f)
Approach A is confirmed as structurally the right runtime for this story. fullsend docs state pi has no sub-agents (parity backlog fullsend#6527, Track E); review/retro stay on Claude there. OpenCode has native sub-agents (the Task tool), so the council maps cleanly onto OpenCode where pi can't compete. This is a genuine differentiator for Approach A, not just parity.
See the nested-hook-coverage caveat on #518 — it applies to any council run that spawns sub-agents in a write-capable increment.
Comment for #518 (uf-forge multi-agent)
Sub-agent validation + a security sub-item (verified against fullsend main 90ee8d6f + OpenCode dev)
Validation: OpenCode's native Task sub-agents make it the right runtime for forge. pi has no sub-agents (parity backlog fullsend#6527, Track E), so this multi-agent story only works cleanly on Approach A.
Security sub-item (not a footnote): ADR 0090's hook model assumes hooks only see the top-level tool call (true for pi). I verified this on the OpenCode dev clone and it's better for us: OpenCode's Task tool spawns a full child session, and every session runs the same prompt loop that triggers
tool.execute.before(session/prompt.ts), so nested sub-agent tool calls DO get hooked. The interception point is there for sub-agents.Caveat: the no-structured-block-channel gap (see #515) still applies to those nested calls — throw-only, no denial reason. So sub-agent security depends on the same #515 block-channel resolution. #515/#518 should both call this out explicitly for the write-capable increments.