sovereign-intelligence
Front door to Drake Stapleton's sovereign stack.
Brought by drakestapleton
sovereign-intelligence / harness / AGENTS.md
| 1 | # AGENTS.md: omega-harness |
| 2 | |
| 3 | Operating instructions for an agent working in this repository. Read this before editing a skill. |
| 4 | |
| 5 | ## What this repository is |
| 6 | |
| 7 | Agent skills for working in Omega and the AIEN repositories: the checks that catch the mistakes agents |
| 8 | repeat, written as guidance an agent loads before acting. It is documentation and procedure, not a |
| 9 | compiler, a runtime, a gate, or evidence that any claim is true. |
| 10 | |
| 11 | Eight skills live under `skills/<name>/SKILL.md` in the Agent Skills layout (frontmatter `name` and |
| 12 | `description`, then the body): |
| 13 | |
| 14 | | Path | Covers | |
| 15 | |---|---| |
| 16 | | `skills/omega-harness/SKILL.md` | The workflow: orient, implement in `.om`, compile, run, challenge, effects, repeated errors, guide upkeep | |
| 17 | | `skills/writing-omega/SKILL.md` | Portable guide for writing a correct `.om` program on any machine: shape, types, words, traps, errors 1..30, common mistakes with their refusals, known pin defects | |
| 18 | | `skills/omega-encoding/SKILL.md` | The language the seeded compiler accepts at a pinned commit: words, types, traps, bounds, registers, host I/O, byte layouts, error codes | |
| 19 | | `skills/omega-communication/SKILL.md` | Claim ladder, report shape, agent handoffs, semantic and wire data, corrections | |
| 20 | | `skills/aien-repositories/SKILL.md` | Mission, plan authority, task to repository routing, status discipline, known source drift | |
| 21 | | `skills/crumb-protocol/SKILL.md` | Directory coordination: crumbs, locks, committed-crumb freshness, `CRUMB-VERIFY` and `crumb-doctor` | |
| 22 | | `skills/wolfram-math/SKILL.md` | Mandatory Wolfram for every computation, its MCP setup, verification calls and failure handling | |
| 23 | | `skills/lean-verify/SKILL.md` | Lean 4 + Mathlib proofs of safety invariants over an explicit model, the `lean` MCP setup and pins, `sorry`/axiom checks, the model-to-system link | |
| 24 | |
| 25 | `examples/` holds the tested programs: each `NAME.om` with `NAME.expect` (and `NAME.stdout` when it |
| 26 | prints), one per trap and error code plus the common mistakes. `examples/gate.sh OMC` checks the |
| 27 | pinned compiler hash and reruns every program in `examples/` and `skills/*/examples/`; run it after |
| 28 | any change to an example or a language rule. `skills/omega-encoding/examples/` holds two more |
| 29 | runnable programs. `LICENSE` is Apache 2.0. |
| 30 | |
| 31 | `coder/` is harness configuration for an Omega-only `omp` session: a TypeScript `omp` extension that |
| 32 | allows `.om` writes only and runs the pinned `omc` after each one, the builder of its context pack |
| 33 | (sections 2-11 of `omega-encoding` plus compiled examples), and a held-out eval. See `coder/README.md`. |
| 34 | When `omega-encoding` sections 2-11 change, rebuild the pack with `coder/build-context.sh`. |
| 35 | |
| 36 | ## Before you edit a skill |
| 37 | |
| 38 | 1. Read the skill you intend to change, and `skills/omega-harness/SKILL.md` section 6, which maps a |
| 39 | kind of change to the skill that must absorb it. |
| 40 | 2. Check the claim against the source it cites, at the commit it names. A skill body is never its own |
| 41 | authority. Follow any instruction file and `.crumb` in the repository you are reading. |
| 42 | 3. Edit the guide in the same piece of work as the change that made it stale. Give the source commit |
| 43 | and date, and delete rules the change made untrue instead of adding a contradicting rule. |
| 44 | 4. If an example or expected output changed, rerun it against the new pin and record what you |
| 45 | observed. Never copy a predicted result into a guide. |
| 46 | |
| 47 | ## What these skills must not do |
| 48 | |
| 49 | - Claim more than the evidence: a compile is not a run, a host run is not hardware qualification, a |
| 50 | merged patch is not a deployment. |
| 51 | - Present a model explanation, a recalled memory or a stale skill as execution evidence. |
| 52 | - Invent Omega syntax or compiler limits. Check the keyword table and the compiler at the pin. |
| 53 | - Carry credentials, private machine addresses, home paths, SSH usernames or operator-only |
| 54 | configuration. Keep those in ignored local configuration. |
| 55 | - Rewrite old evidence to make a new claim pass. |
| 56 | - Add a language, tool or vendor as part of the trusted stack. Conversion belongs to |
| 57 | `aien-dev/omega-bridge`, which converts a declared subset and refuses the rest. |
| 58 | |
| 59 | ## Omega pins |
| 60 | |
| 61 | `omega-encoding` section 0 records the pinned `aien-dev/omega-mv` commit and the sha256 of |
| 62 | `seed/omc/omc.om`, `seed/out/omc` and `seed/rung0/seed0.hex`. When the compiler changes, refresh those |
| 63 | values, recheck the cited line numbers, rerun the examples, and record the observed result with the |
| 64 | new commit and date. Older measurements stay as dated history. |
| 65 | |
| 66 | Re-check, read only, in a fresh clone: |
| 67 | |
| 68 | ```sh |
| 69 | git clone rad://z6do9WDBhuSnvopDkgFdFr1yWA62 omega-src |
| 70 | git -C omega-src rev-parse HEAD |
| 71 | sha256sum omega-src/seed/omc/omc.om omega-src/seed/out/omc |
| 72 | ``` |
| 73 | |
| 74 | If a hash differs from the one in `omega-encoding`, that skill is unverified for that tree until you |
| 75 | recheck the changed parts. |
| 76 | |
| 77 | ## Verifying a change here |
| 78 | |
| 79 | There is no build and no test suite: the deliverables are Markdown and two example programs. |
| 80 | |
| 81 | - Every relative link and file path you add or move must resolve in the checkout. |
| 82 | - Frontmatter `name` must equal the directory name, and `description` must say when to use the skill. |
| 83 | - For an example program, run it on Linux AArch64 against the pinned compiler and record the compile |
| 84 | status, run status and observed bytes, plus a negative control. The recipe is in `README.md` under |
| 85 | "Check the examples yourself". |
| 86 | - Do not run the examples on a machine where another agent holds the GPU or the live model service. |
| 87 | These examples are host programs and need neither. |
| 88 | |
| 89 | ## Reporting |
| 90 | |
| 91 | Follow `skills/omega-communication/SKILL.md`. Separate proposed, implemented, exercised, verified, |
| 92 | merged and deployed. A patch's READY hand-off leads with the evidence: the commands, the observed |
| 93 | output, the negative control, and what was not run. |
| 94 | |
| 95 | ## Contributing |
| 96 | |
| 97 | This repository lives on Radicle: `git clone rad://z39gvwWsnkRZsAConQLjaKiNVLHfW`. The `aien-dev` |
| 98 | GitHub organization is frozen (2026-11-07); never push, open a PR or open an issue there, and treat its |
| 99 | links as historical citations. Contribute through Radicle patches: hand the desk a READY file (repo, |
| 100 | base, head, bundle, gate logs, negative control); the Radicle publishing lane opens the patch and the |
| 101 | desk merges after a signed review of the exact head. Lanes never push to Radicle themselves. |
| 102 | |
| 103 | Keep the attribution in `README.md` and `LICENSE` intact. Contributions follow the shared AIEN agent |
| 104 | rules at https://www.aienos.com/agents/RULES.md. |