Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mission/blob/main/DESIGN.md # omega-mission Omega Mission: seeded-Omega mission orchestrator (hash-chained journal, tiered command checks). Host-tested; live dispatch not yet run. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mission / DESIGN.md` 17 lines · 6641 bytes Raw Blame History Source # omega-mission: host mission control A local, bounded admission and evidence tool, not a scheduler or a worker sandbox. Queen remains the assignment/lease authority; RadPublish alone publishes/merges. No command is executed by this slice. Mission v1: UTF-8-compatible ASCII, one slice per LF-terminated line; no comments/escaping. Thirteen nonempty `|`-separated fields: `id|owner|verifier|repo|paths|cores|gpu|lease|tier|head|acceptance argv|negative argv|worker argv`. Fields are printable ASCII without quote/backslash; identifiers use letters/digits/`-_.`; paths are relative comma-separated paths without `..`; cores are comma-separated decimals or ascending ranges, bounded to 0..255, excluding 3,7,15. Each line <=1023 bytes; <=128 unique slices. GPU is `none` with lease `none`, or `gb10` with `spark-window-exclusive`; GPU needs tier `lease`. Head is 40 lowercase hex. Acceptance and negative commands differ. The mission is already a human-directed decomposition: `plan` validates all slices before emitting JSONL, without inventing tasks. Tiers: `read-only`: explicitly recognized read commands and git inspection; `local-edit`: additionally mkdir/touch; cat/mkdir/touch take one operand inside the slice's planned paths (relative, no `..`, no option, and plan paths never name `.git`); `build-run`: additionally omc and mission inspection; `lease`: additionally exact spark-window status/open forms, only for a slice planned with a GPU; `--lease N` is decimal 1..20 without a leading zero (spark-window `LEASE_MAX=20` minutes for exclusive windows). `check JOURNAL ID TIER CMD` admits only for a RUNNING slice and only up to its planned tier; the caller never chooses its own ceiling. Unknown worker executables, interpreters, shell syntax, git options/aliases, push/merge, rad and gh fail closed. Admission is not authorization or containment; arbitrary compiled code is not dispatched here. Worker argv uses whitespace-separated safe tokens, never a shell. Acceptance/negative argv are verifier metadata, not admitted as worker commands; the verifier executes them independently. They are limited to `mission verify|status|plan X`, bare `omc`, `sh REL-SCRIPT ARGS`, or `REL/EXECUTABLE ARGS` where the script/executable is repository-relative (contains `/` when run directly, no leading `/` or `-`, no `..`); no PATH lookup of git, rad, gh, env, curl or interpreters with inline code. States/evidence: PROPOSED takes a validated mission file; CLAIMED takes an active, exact CLAIMS row `| mission | id | owner | repo | paths | cores | active |`; RUNNING takes queen-issued `RUN id owner head`; GPU rows additionally require a lease identifier in that receipt. READY takes `READY id produced-head acceptance=0 negative=N` (N=1..123; 124..255 are timeout, shell, not-found and signal statuses, not a correct refusal) and updates only the head. VERIFIED takes the existing two-line `VERDICT MERGE head=SHA` / `reviewer=NAME`, matching both produced head and assigned independent verifier. MERGED takes one RadPublish PATCHES.md row (not the whole document), matching the repo/head columns exactly and a status cell that is exactly `merged via SHA8 (see Desk merges)` (eight lowercase hex digits). FAILED is terminal: from RUNNING it takes a well-formed failing READY receipt (acceptance nonzero, or negative 0 or above 123); from READY it takes `VERDICT REJECT head=SHA` / `reviewer=NAME` from the assigned verifier. `step READY`/`step VERIFIED` with such failing evidence journal FAILED and then exit 4, so a failure is never silently dropped; no event follows FAILED. No skipped/repeated state. Receipts are evidence claims, not authenticated signatures or execution evidence. Operator protects evidence and journal custody; this tool does not authenticate queen/RadPublish identities or validate a live lease. Owner and verifier identities compare ASCII case-insensitively, so a case variant of the verifier can neither own a slice in a plan nor receive it by resume. Journal v1: one LF-terminated event: `previous_sha256|event|state|hex(mission-line)|hex(evidence)|sha256(prefix-through-last-pipe)`. Event `S` advances state; `H` changes owner. State is digit 1..7 in the order above (7 FAILED). Genesis previous hash is 64 zeroes. Max 4095 bytes/event; 128 slices; 1 MiB journal; mission/CLAIMS inputs below 128 KiB, evidence below 1 KiB. Exclusive flock covers replay/check/append/fsync. Each event carries the preceding complete line's SHA-256 (including LF); current checksum also detects tail edits. Broken/partial lines refuse; no automatic truncation. A chain detects changes, not malicious complete rehashing or suffix deletion without an external checkpoint. Evidence snapshot makes replay independent of later mutable CLAIMS changes. Parent-directory creation durability and hostile concurrent writers that ignore flock are outside this local evidence contract. The journal path is opened with aarch64 `O_NOFOLLOW` (`0100000`, `/usr/include/aarch64-linux-gnu/asm/fcntl.h`; the asm-generic `00400000` is `O_LARGEFILE` on this architecture), so a symlinked journal is refused with exit 6. Only `step … PROPOSED` may create a journal; every other step and resume refuse a missing journal with exit 6 and create nothing. Restart/handoff: status replays only the journal. `resume JOURNAL ID NEWOWNER CLAIMS` requires a released exact old claim (latest matching row wins), active new claim, and new owner distinct from verifier. It records both rows, preserves head and state (CLAIMED/RUNNING/READY only), and changes only owner. A new process replays it without crumbs. No time-based stale assumption. Dispatch boundary: next slice wires queen-approved plans to omagent's one-shot `-p`, workdir/session, and bounded command dispatcher, using omega-node authority/journal and sched reservations rather than a second production scheduler. Existing omagent allows executable names, not complete argv policy, so it must not be given unrestricted git/shell access. This journal is the outer mission evidence record, not a replacement node journal. Reuse node ADMIT/POLICY/GOAL/OPEN and durable FAIR/RESULT records; do not fork sched replay or permission paths. Source orientation: sched/pr-398.md local `c3397cf7` and omega-node READY prlimit `32608315` (unmerged, not dependencies). Live dispatch/leases remain NOT_RUN. CLI exits: 0 accepted; 2 usage/input bound/grammar; 3 command policy; 4 evidence/state; 5 journal integrity; 6 I/O. Diagnostics on stderr; plan/status JSONL on stdout. `step JOURNAL ID STATE EVIDENCE` and `resume JOURNAL ID NEWOWNER CLAIMS` never execute worker commands.