omega-harness
Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories
Brought by drakestapleton
GitHub aien-dev/omega-harness#163 (code only)
Apply it
git checkout -b patch-e7a94768c5739c22 ec1bb54e2ef6c5cc2cf58ff05d6de531850a4969 curl -fsSL https://interplane.io/drakestapleton/omega-harness/patches/e7a94768c5739c22.patch | git am
Provenance
github-import 1
aien-dev/omega-harness
163
672fdb882a2d66e0f360473f453721a2c71e7471
{"kind":"github-import","owner":"aien-dev","repo":"omega-harness","number":163,"url":"https://github.com/aien-dev/omega-harness/pull/163","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:38Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/skills/crumb-protocol/SKILL.md b/skills/crumb-protocol/SKILL.md index d168026..b99da07 100644 --- a/skills/crumb-protocol/SKILL.md +++ b/skills/crumb-protocol/SKILL.md @@ -22,6 +22,8 @@ Two writers, one file. Humans and agents own the semantic kernel: `purpose`, `la Inside a git repository, live coordination no longer lives in `.crumb.local`: new writes go to the shared store under `<git-common-dir>/crumb/v1/{dirs,agents,continuations,ledger}`. The old file is a read path, merged in with provenance when present. So do not write `.crumb.local` by hand, and never delete or edit the store to clear a state you do not like; the tool keeps it transactionally consistent for a reason. +Scope (DRA-97 option A; PROPOSED in drafts aien-dev/aien-architecture-mv#368 and aien-dev/aienos.com#193, not merged): `.crumb.local` and the shared store are single-machine scratch state, visible only on the machine that wrote them. Claims and handoffs between agents go through a claimed tracker issue and draft pull requests; a crumb lock or whisper is never a claim. + Legacy warning: the older Rust implementation wrote `version`, `dir_path`, `history` and `whispers` into `.crumb`. Those files still exist in some repositories. The tool leaves them untouched and reports them as legacy. Do not copy that shape into a new crumb. ## 2. Before you touch a directory @@ -157,3 +159,13 @@ crumb list . # no lock of yours left behind ``` State what you ran and what it returned. A crumb change is part of the change under review, so it travels in the same commit or pull request as the work that caused it, and the exact numbers belong in what you report. + +## 11. Invariants that name their check (core main since `b7f2250a`) + +Merged to core main on 2026-10-31 as `b7f2250a` (core#887, DRA-95). The merge came from the `ready-to-merge` label with no review; a post-merge review found no reason to revert. Every invariant in a shipped-path `.crumb` ends with `Check: <command>`, naming the test or script that enforces it, for example `"A reused KV block never exposes the previous sequence's KV. Check: cargo test -p aien-kv-cache --test kv_lifecycle_qualification -- --exact freed_block_reuse_never_exposes_previous_sequence_kv"`. An invariant with no check you can name and run does not go in the crumb; list it in the PR as unenforced instead. + +These crumbs are hand-written and do not parse as the `DirCrumb` struct that `spark-crumbs` and the `aien` CLI read. Until a loader fix merges, `spark-crumbs show`, `sniff` or `record`, and `aien` nest, sniff or show, run in such a directory, overwrite its `.crumb` with an auto-sensed one, and `crumb verify` still passes. Do not run them there; if one ran, restore the file with `git checkout -- <dir>/.crumb` before committing. + +`om/crumb-coverage/run.sh` (Omega, omc pinned in `om/crumb-coverage/omega.pin`, omega-mv `b3346c2e`) counts tracked directories, directories with a `.crumb`, and directories with at least one invariant whose `Check:` resolves to an existing test function or repository script, and lists every check that does not resolve. Without `AIEN_OMC` hashing to the pin it exits 77 NOT_RUN. Measured 2026-10-31 on core main `b7f2250a`: `tracked_dirs 780`, `crumb_dirs 41`, `enforced_dirs 28`, `invariants 46 resolved 46 unresolved 0`; `--self-test` PASS. Before the merge, main `43495111` had 17 of 780 directories with a crumb and 0 enforced. + +The coverage report is advisory: no gate runs it, and `CRUMB-VERIFY` checks only that crumbs are current, not that their checks pass. Resolving a check proves the named test exists, not that it passes; run it. The `.crumb.local` wording in section 1 and the binding-rules change are tracked in aien-dev/omega-harness#158 pending DRA-97 and DRA-98.