<< All versions

Skill v1.0.0

currentAutomated scan100/100
erkandogan/sodium/sodium-harness
──Details
PublishedOctober 27, 2026 at 07:17 PM
Content Hashsha256:56cce0997375b490...
Git SHA6c8b2812b1d5
──Files
Files (1 file, 8.3 KB)
SKILL.md8.3 KBactive
SKILL.md · 212 lines · 8.3 KB

name: sodium-harness description: Coordinate bounded, attributable coding work across Codex, Claude Code, and other agents through Orca while persisting only durable semantics in Sodium. Use for supervised multi-agent tasks, cross-provider ask/reply or dispatch, resumable task briefs, completion receipts, runtime reconciliation, guarded autonomy, and mixed-agent validation. metadata: version: "1.0.0"


Sodium Harness

Keep the planes distinct:

  • Orca owns live worktrees, terminals, messages, tasks, dispatches, and gates.
  • Sodium owns durable decisions, scope, evidence summaries, and handoffs.
  • Git, tests, pull requests, CI, and deployments remain authoritative.

Never use Sodium as a mailbox. Never store raw prompts, transcripts, terminal buffers, command output, or credentials.

1. Establish identity and context

Collect the provider, session, terminal, project, worktree, branch, commit, task, dispatch, and parent-agent identifiers that exist. Use other for an unknown provider; do not invent runtime IDs.

Call sodium_project_list, then sodium_context_fetch with the task purpose, project, branch, worktree, and expected files. Carry only relevant returned chunk IDs into a delegated brief.

Resolve the installed Orca executable (orca-ide on Linux, normally orca elsewhere), then load its version-matched orchestration guide:

sh
orca-ide status --json
orca-ide skills get orchestration

If Orca is unavailable, continue safely in the current provider and state that cross-provider orchestration was not used.

2. Compile a bounded task brief

Include:

  • one task ID, goal, and explicit acceptance criteria;
  • coordinator identity and Git/worktree snapshot;
  • owned files, read-only files, dependencies, and relevant Sodium chunk IDs;
  • constraints and argument-vector verification steps;
  • concurrency, depth, retry, duration, token, and cost limits;
  • decision-gated actions.

Use the bundled references/example-brief.json as a shape reference and adapt every placeholder to the current repository and real runtime IDs.

Orca assigns the authoritative task ID, so use a stable private brief path and bind the brief before dispatch:

  1. Choose a path under the worktree's private Git metadata, such as

$(git rev-parse --git-path sodium/briefs/<slug>.json).

  1. Create an Orca task whose short, non-sensitive title and spec point the

worker to that path. Do not put the full prompt or secrets in the title.

  1. Compile the brief with the returned Orca task ID.
  2. Validate policy, then dispatch only after the brief exists.

When the optional CLI is installed, validate and normalize the JSON before dispatch:

sh
sodium harness brief --input <brief.json>
sodium harness policy --input <dispatch-request.json>

Do not dispatch when file ownership overlaps, a hard limit is exceeded, or a required gate is unresolved. A gated policy decision needs both gate_approved=true and the real Orca gate_id; a bare approval boolean is not provenance.

3. Create real Orca provenance

For supervised coordination, follow the installed guide exactly:

  1. Create one Orca task per independently verifiable unit with dependencies,

using the private brief-pointer sequence above.

  1. Create or select one live agent terminal in the required worktree.
  2. Wait for TUI readiness.
  3. Dispatch with --inject.
  4. Verify the task and dispatch with orchestration task-list and

orchestration dispatch-show.

  1. Wait for worker_done, escalation, or decision_gate using

check --wait; a timeout is a liveness checkpoint, not failure.

Do not claim orchestration from a chat-only or provider-native subagent. Do not retroactively manufacture task or dispatch provenance.

For fresh Codex terminals, suppress the optional interactive update check so it cannot block readiness:

sh
orca-ide terminal create --worktree active --command \
'codex -c check_for_update_on_startup=false'

If a terminal still stops on a first-run or updater prompt, treat it as a readiness condition, not a hung worker; resolve the visible prompt before dispatch.

4. Require a completion receipt

Require one JSON receipt containing:

  • task and dispatch IDs, the compiled brief digest, and normalized worker

identity;

  • terminal status: completed, failed, or cancelled;
  • start/completion times and a concise summary;
  • commit and repository-relative changed files;
  • test names, statuses, argument vectors, duration, and bounded evidence;
  • durable decisions, blockers, and follow-ups.

Use references/example-receipt.json as a shape reference; never reuse its placeholder identities, digest, timestamps, or evidence.

Do not cite opaque evidence digests. Every non-contract digest mentioned in receipt prose needs a matching evidence_digests record with its exact canonicalization recipe, argument vector when applicable, working directory, and at least one bounded non-escaping input scope. Use repository-relative paths for worktree state and git-metadata:sodium/... for private harness artifacts. An omitted working directory means the repository root.

Validate it when the CLI is installed:

sh
sodium harness receipt --input <receipt-or-compiled-envelope.json>
sodium harness verify \
--brief <compiled-brief.json> \
--receipt <receipt-or-compiled-envelope.json>

The worker sends worker_done exactly once from its own dispatched terminal with the task/dispatch IDs and a receipt report path. The coordinator reads the receipt, verifies it against the exact brief, then verifies the current files and tests independently. Never accept cross-project, cross-worktree, out-of-ownership, read-only-overlap, missing-commit, failed-test-as-completed, or duration-budget contradictions.

5. Reconcile and persist

Preview the local, sanitized Orca snapshot and task-state reconciliation:

sh
sodium harness reconcile

Apply only to the local append-only ledger when requested by the active workflow:

sh
sodium harness reconcile --apply
sodium harness reconcile --apply --skip-task-reconcile
sodium harness event list

Reconciliation includes bounded worktree, task, dispatch, worker, PR, CI, and deployment facts. Orca, Git, and provider APIs remain authoritative. The bridge must fail open and must never return terminal previews, tool input, raw task specs, prompts, gate questions, workflow output, or provider responses. Use --skip-task-reconcile when an intentional task-state disagreement must stay visible but independent authority events should still converge.

For a multi-task graph, adapt references/example-graph.json into one private graph manifest with one coordinator, exact task IDs, brief/goal digests, dependencies, attempts, deadlines, and owned files. The CLI validates the manifest contract. Audit once before dispatch and use the opt-in watch loop during autonomous work:

sh
sodium harness supervise --input <graph.json>
sodium harness supervise \
--input <graph.json> \
--watch --output <latest-report.json>

Do not continue past duplicate work, ownership conflicts, dependency deadlocks, out-of-order dependency execution, retry loops, depth/concurrency overruns, expired deadlines, missing dispatch provenance, runtime worktree/branch mismatches, or unmanifested child tasks. Disconnected/stale workers, failed dependencies, and contradictory live/ledger/DAG evidence require a real decision gate.

After verification, persist each durable decision and one concise handoff with sodium_remember, anchored to project, branch, commit, worktree, and changed files. Use sodium_update, sodium_invalidate, or sodium_merge when the receipt replaces earlier memory. Keep transient progress in Orca.

6. Close the lifecycle

Confirm:

  • every task has exact terminal state and real dispatch provenance;
  • dependencies are satisfied and no ownership conflict remains;
  • receipt status agrees with Orca, Git, and test evidence;
  • required gates were resolved;
  • no sensitive or transcript-like fields entered the receipt;
  • the durable checkpoint is sufficient to resume without a transcript.

For a harness release, run the strict evaluation profile. It requires every declared adversarial scenario and at least four unique live Codex+Claude runs; provider cost coverage is reported explicitly instead of treating an unmeasured zero as free:

sh
sodium eval harness <roadmap-dataset.jsonl> --roadmap --json
All versions