Skip to content

feat(dispatch): add experimental multi-target execution plans - #9802

Draft
eshulman2 wants to merge 1 commit into
fullsend-ai:mainfrom
eshulman2:codex/multi-target-dispatch
Draft

eshulman2 wants to merge 1 commit into
fullsend-ai:mainfrom
eshulman2:codex/multi-target-dispatch

Conversation

@eshulman2

Copy link
Copy Markdown
Contributor

Summary

A request spanning several maintained branches needs durable accounting across its individual runs. This draft puts that lifecycle in fullsend: execution-plan reconciles an immutable set of source-bound targets, persists launch intent before external effects, and owns concurrency, attempts and aggregate completion.

This is an initial executable implementation of fullsend-owned coordination. It does not migrate the CVE demo or claim hosted assessment/publication acceptance.

Related Issue

Related to #9260 and the architectural choice in #9266. This explores fullsend ownership rather than committing coordination to a consumer-specific adapter. No implementation issue is closed, and no existing ADR is changed.

Changes

  • Add domain-neutral internal/executionplan types and reconciliation: immutable plan digest, forge/host/repository/ref/SHA targets, separate trusted control revision, stable attempt correlation, authorization before launch, bounded fan-out, deadlines, retries and complete required-target accounting.
  • Checkpoint uncertain intent before submit. Lost acknowledgements, missing lookup results and invalid receipts retain their attempt budget and concurrency slot; reconciliation never blindly repeats a possibly accepted submission.
  • Verify exact attempt, plan, target, source SHA and backend run identity for every accepted receipt. Execution status remains separate from CVE findings and follow-up permissions.
  • Add private atomic local checkpoints with context-aware OS locking, file/directory sync and conservative corruption rejection. Newly created state-directory entries are synced before dispatch.
  • Add experimental fullsend execution-plan --plan ... --state-dir ... --driver .... A trusted operator-selected executable authorizes, submits and looks up work via bounded JSON stdin/stdout. No shell interpolation or driver diagnostics enter retained output.
  • Document the command, driver protocol, trust boundaries, all-forge target identities and the CVE integration boundary. Update CLI navigation and the comprehensive command tree.

Draft boundaries / remaining integration

  • The concrete store coordinates processes on one persistent filesystem with working flock semantics. Independent CI machines require a shared fenced journal; copying checkpoints between jobs is insufficient.
  • Native GitHub/GitLab/Forgejo launch adapters, worker checkout verification/materialization and wiring into existing dispatch workflows are not implemented. Installed drivers must explicitly authorize supported targets and verify source/control binding; naming a forge does not enable it.
  • Supersession, cancellation and migration of existing budgets/journal identities are not implemented. A changed plan under the same ID is rejected; old state must be retained.
  • CVE release mapping, advisory/disclosure policy, evidence contracts, Jira publication and fresh human coding approval remain domain responsibilities. The existing demo's controller should be migrated onto this boundary only with end-to-end recovery evidence.
  • The subprocess contract and initial safety ceilings are experimental review subjects, not a new accepted ADR or cross-implementation normative specification.

Testing

  • make lint passes with changes staged (including security scans, Go vet, formatting and Markdown links).
  • Tests added for bounded fan-out, complete accounting, authorization, deadlines, retry exhaustion, durable intent before submission, ambiguous launch recovery, stale/mismatched receipts, immutable plans, checkpoint corruption, concurrent writers and cancellation, bounded subprocess I/O and oversized plan rejection.
  • go test -race -coverprofile=... ./internal/executionplan passes: 89.7% statement coverage (all production files in this package are new).
  • Targeted CLI and existing dispatch race tests pass; new command coverage is 97.1%.
  • go vet ./internal/executionplan ./internal/cli and git diff --check pass.
  • Full go test ./internal/cli -count=1 passes (130.9 seconds).
  • Independent review found and rechecked fixes for first-directory persistence and the plan input size boundary; no remaining P1/P2 findings in the reviewed scope.
  • No live forge launch, inference, Jira publication or demo migration was performed.

Checklist

  • PR title follows Conventional Commits.
  • Human-directed commit is signed off for DCO.
  • I wrote this contribution myself and can explain all changes in it.

Prepared with coding-agent assistance; the contributor can assess the personal-authorship attestation.

Coordinate immutable source-bound attempts with persisted launch intent,
bounded dispatch and conservative recovery through a trusted host driver.
Add an experimental reconciliation command, local durable storage, and
driver/CVE integration documentation.

Signed-off-by: eshulman2 <ellashulman1@gmail.com>
@github-actions

Copy link
Copy Markdown

Site preview

Preview: https://c38e49c6-site.fullsend-ai.workers.dev

Commit: 90e3f9e635a4bdb29a5cd30e1218c132f1f9c37b

@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

This branch was successfully deployed

1 active deployment
site-preview — 90e3f9e6 Deployed Nov 23, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant