Skip to content

[Epic] Run uf in a FullSend BYOA container #508

Open
4 of 11 issues completed
Open

Description

@beatrizmcouto

👤 User Story

As a
team practicing spec-driven development with uf

I want to
run uf inside a FullSend BYOA container with full local/FullSend parity

So that
the agent refuses to implement without an approved spec whether it is running in OpenCode locally or in a FullSend sandbox

🎯 Acceptance Criteria

  • Spec-driven development is enforced in FullSend: no implement path without an approved spec
  • Same committed .opencode/ (commands, agents, packs, constitution) drives local and FullSend behavior
  • Child stories for Phase 0, upstream OpenCodeRuntime, image, Increments 1–5, uf gate, and the security-hook gap are complete
  • unbound-force/unbound-force is the pilot per-repo FullSend install and the reference BYOA for other teams
  • Dewey/Ollama remain deferred; keyword fallback is acceptable

🚫 Out of Scope

  • Skill-based / Approach C throwaway MVP
  • Per-org FullSend install (custom harness routing is per-repo)
  • Mixed-runtime repos (per-harness runtime override is an upstream follow-up)
  • Interactive TUI/AskUserQuestion parity (replaced by async GitHub Q&A by design)

This is the parent for the RFC. Child stories are the sprintable slices. Do not pull this parent into a sprint.

Jay's increment order (writes + security-hook parity):

Inc Agent Writes? Security-hook parity
0 Phase 0 GO/NO-GO spikes No n/a
1 uf-review (Divisor council) No Gap acceptable
2 uf-address-feedback No (comments) Gap acceptable
3 uf-specify / uf-opsx + uf gate Yes (artifacts) Required
4 uf-code (cobalt-crush) Yes Required
5 uf-forge Yes Required

🏁 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


Implementation Notes (added by @jflowers, Aug 2026)

Revised execution plan: see RFC #437 updated comment and the local working document opencode-fullsend-byoa-plan.md.

Child stories (sprintable slices):

Story Title Size Increment
#509 Prove OpenCode runs headless (Phase 0 GO/NO-GO) M Inc0
#510 Contribute OpenCodeRuntime to FullSend L Cross-cutting
#511 Digest-pinned fullsend-opencode image M Cross-cutting
#519 Onboard unbound-force into FullSend (per-repo) M Onboarding
#512 Divisor council review (Inc1) M Inc1
#513 Resume from GitHub comment answers (Inc2) M Inc2
#514 Headless uf gate M Cross-cutting
#515 Close security-hook gap L Cross-cutting
#516 Create specs (Inc3) M Inc3
#517 Implement specs (Inc4) M Inc4
#518 uf-forge multi-agent (Inc5) L Inc5

Key additions since original filing:


Glossary (added Aug 2026, per review feedback)

Term Definition
FullSend fullsend-ai/fullsend — the platform providing sandboxed agent execution, GitHub integration, and pluggable runtimes. External repo.
BYOA "Bring Your Own Agent" — FullSend's extensibility model: an org supplies its own agent layer (harness + agent defs + image) on FullSend infrastructure. See RFC #437, fullsend ADR 0036.
harness A FullSend YAML file (.fullsend/harness/*.yaml) defining one agent run: agent, role, image, model, triggers, security config, validation loop, host files, scripts. See fullsend/internal/harness.
validation_loop.script Harness field pointing at a host-side script that validates agent output after each run; non-zero exit triggers a bounded re-run (up to max_retries). The wiring point for uf gate.
fullsend-opencode Custom container image ghcr.io/unbound-force/fullsend-opencode extending fullsend-sandbox with opencode-ai + uf CLI. See #511.
runtime / OpenCodeRuntime FullSend's pluggable execution backend (internal/runtime); OpenCodeRuntime is what this epic contributes upstream. See #510, fullsend #1260.
OpenShell The sandbox execution layer (openshell sandbox exec) providing container isolation + provider profiles for credential injection.
mint FullSend enrollment step — manual process to register an org/repo with the FullSend platform. See #519.
inference (WIF) Vertex AI access via Workload Identity Federation — GitHub OIDC token exchanged for short-lived GCP credentials. Provisioned via fullsend inference provision.
sandbox_hooks / Tirith FullSend's Claude-only Pre/PostToolUse security hooks (Tirith = bash command scanner). OpenCode lacks equivalents — this is the #515 gap.
TranscriptHandler / ndjson Output capture interface; opencode emits ndjson via opencode run --format json. See fullsend #1935.
Divisor council The multi-persona review council (Inc1 / #512).
uf gate Spec-first enforcement CLI (uf gate --phase <phase> --format json). See #514.
forge uf's multi-agent orchestration layer (Inc5 / #518).

Process notes

  • Coverage strategy (Constitution IV): Each story's spec/plan should include a coverage strategy before implementation begins. This is a spec-phase deliverable, not an issue-level acceptance criterion.
  • [Story] Enforce spec-first with headless uf gate #514 sequencing: uf gate received unanimous VALID from the triage panel and has uf doctor as structural precedent. Recommend it enters the spec pipeline alongside #509 (Phase 0 spike).

Sub-issues

Sub-issues

4 of 11 Issues completed
Loading 11 sub-issues

Activity

  1. added
    enhancement
    llm_assisted
    on Aug 17, 2026
  2. beatrizmcouto commented on Aug 18, 2026

    @beatrizmcouto
    Author

    Suggested order and priority

    Do not sprint this parent (XL). Pull the child stories in this sequence.

    #510 and #511 can run in parallel after #509 is GO. #519 O0–O2 can start immediately in parallel with #509; O3 waits on #510. #514 can start as soon as #509 is GO, but must land before any write-capable agent.

    Source: Jay’s revised execution plan.

    Order Priority Story
    1 Urgent #509 Prove OpenCode runs headless in the FullSend sandbox
    2 High #510 Contribute OpenCodeRuntime to FullSend (after #509 GO; parallel with #511)
    3 High #511 Publish a digest-pinned fullsend-opencode sandbox image (parallel with #510)
    4 Urgent #519 Onboard unbound-force into FullSend (per-repo) (O0–O2 now; O3 after #510)
    5 High #512 Run the Divisor council review in FullSend
    6 Medium #513 Resume FullSend agents from GitHub comment answers
    7 Medium #514 Enforce spec-first with headless uf gate
    8 Medium #515 Close the OpenCode security-hook gap before write-capable agents
    9 Low #516 Create specs in FullSend with uf-specify / uf-opsx
    10 Low #517 Implement approved specs in FullSend with uf-code
    11 Low #518 Run uf-forge multi-agent work in one FullSend sandbox
    flowchart TD
      s509["Urgent #509 Phase 0 GO/NO-GO"]
      s510["High #510 OpenCodeRuntime"]
      s511["High #511 fullsend-opencode image"]
      s519["Urgent #519 per-repo onboard"]
      s512["High #512 uf-review Inc 1"]
      s513["Medium #513 async Q&A + resume Inc 2"]
      s514["Medium #514 uf gate"]
      s515["Medium #515 security-hook gap"]
      s516["Low #516 uf-specify / uf-opsx Inc 3"]
      s517["Low #517 uf-code Inc 4"]
      s518["Low #518 uf-forge Inc 5"]
    
      s509 --> s510
      s509 --> s511
      s509 --> s514
      s509 --> s519
      s510 --> s512
      s511 --> s512
      s519 --> s512
      s510 --> s519
      s512 --> s513
      s513 --> s516
      s514 --> s516
      s515 --> s516
      s516 --> s517
      s517 --> s518
    
    Loading

    If this sprint only pulls one path: #509 and #519 in parallel, then #512 once #510 and #511 are far enough to run a harness. That proves Approach A without waiting on write-path security.

  3. added this to the FullSend BYOA milestone on Aug 18, 2026
  4. changed the title [-][Story] Run uf in a FullSend BYOA container[/-] [+][Epic] Run uf in a FullSend BYOA container[/+] on Aug 18, 2026
  5. yvonnedevlinrh commented on Aug 18, 2026

    @yvonnedevlinrh
    Contributor

    Cross-cutting feedback from review

    I've reviewed all 11 child stories and the Divisor triage panel results. Rather than repeating these on each child issue, noting them here at the epic level:

    Terminology

    "FullSend" and related terms (BYOA, harness, validation_loop.script, fullsend-opencode) have zero presence anywhere in the unbound-force codebase. The triage panel flagged this on every child story. A glossary in this epic or in Discussion #437 would unblock all downstream triage and spec work.

    Coverage strategies

    The triage panel flagged Constitution IV (Testability) violations on most child stories. This is expected at the issue level — coverage
    strategies belong in the spec/plan phase. Each story should include a coverage strategy when it enters the spec pipeline, not before.

    Repository scope on #510

    All implementation paths in #510 (OpenCodeRuntime) reference fullsend-ai/fullsend, not this repository. No internal/runtime/
    package exists here. If #510 is a tracking issue for upstream contribution, it should be labeled accordingly. If implementation
    work lands in this repo, the issue needs to specify what that work is.

    Phantom references

    ADR 0036 (#511), docs/runtimes.md (#511, #515), and "Inc1 schema fields" (#513) are referenced as existing artifacts but do not exist in the repository. These should either be created as prerequisites or the references should be updated to state they are new
    deliverables.

    Suggested sequencing

    Based on triage results, the stories best positioned to enter the spec pipeline first are:

    1. [Story] Enforce spec-first with headless uf gate #514 (uf gate) — unanimous VALID, clear uf doctor precedent
    2. [Story] Prove OpenCode runs headless in the FullSend sandbox #509 (Phase 0 spike) — low risk, produces GO/NO-GO decision artifact
    3. [Story] Onboard unbound-force/unbound-force into FullSend (per-repo enrollment) #519 (onboard) — infrastructure prerequisite, mostly configuration

    Stories that need author work before they can move forward: #510 (repo scope), #511 (phantom refs + UID decision), #516 (undefined
    terms), #518 (--pure/MCP blocker).

  6. jflowers commented on Aug 24, 2026

    @jflowers
    Contributor

    Plan refresh vs fullsend main (7223a90e, Aug 24 2026)

    Re-verified this epic against live fullsend main. Core thesis (Approach A: OpenCode+uf as a FullSend runtime; FullSend = infra) is unchanged and now better supported. Deltas:

    Glossary additions: ADR 0090, pi runtime (reference impl), sandbox_hooks_bootstrap.go. Increment order (Inc0→Inc5) unchanged.

  7. yvonnedevlinrh commented on Aug 26, 2026

    @yvonnedevlinrh
    Contributor

    Plan refresh vs fullsend main (verified against 90ee8d6f, Aug-26)

    A few glossary/scope items in the epic are now stale and should be corrected:

    • Security-hook glossary row is wrong. It states OpenCode lacks PreToolUse/PostToolUse equivalents. It doesn't. OpenCode exposes tool.execute.before / tool.execute.after plugin hooks that fire around every tool call (verified in packages/opencode/src/session/prompt.ts). fullsend docs now name these as the interception point. The real, narrower gap is that tool.execute.before has no structured block channel (throw-only); see [Story] Close the OpenCode security-hook gap before write-capable agents #515.
    • Mixed-runtime / per-harness out-of-scope line can be struck. Resolved upstream by fullsend#6583 (merged): per-agent runtime/model/effort now live on agents: entries.
    • Phantom-refs objection is closed. ADR 0036 and docs/runtimes.md exist in fullsend, not this repo.

    Upstream status checklist (fullsend-ai/fullsend main):

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementllm_assisted

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions