diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d567d7b..2d79054 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -45,6 +45,6 @@ Open an issue when: ## Crumbs -This repo uses the Crumb Protocol (RFC-0001). Each directory carries a `.crumb` file (what the directory is for, its rules, and a backfilled history). Live coordination between agents goes in `.crumb.local`, which is never committed. +This repo uses the Crumb Protocol (RFC-0001). Each directory carries a `.crumb` file (what the directory is for, its rules, and a backfilled history). Agents on one machine may keep local scratch state in `.crumb.local`, which is never committed; coordination between agents goes through tracked claims and draft pull requests (see Scope in `docs/CRUMB_PROTOCOL.md`). Before editing a directory, read its `.crumb`. Rules and the `crumb` tool: https://github.com/aien-spark/aien-architecture/blob/main/docs/CRUMB_PROTOCOL.md Backfilled history (marked as such, not live whispers) is in `docs/crumbs/BACKFILL.md`. diff --git a/docs/CRUMB_PROTOCOL.md b/docs/CRUMB_PROTOCOL.md index 52e8afe..3024cbc 100644 --- a/docs/CRUMB_PROTOCOL.md +++ b/docs/CRUMB_PROTOCOL.md @@ -28,6 +28,8 @@ RFC-0003 (`docs/CRUMB_PROTOCOL_RFC_0003.md`) adds the Crumb Compiler: structural - `.crumb`: durable, committed, JSON. Required: `schema_version` ("1.0.0"), `name`, `purpose`. Optional: `layer`, `above`, `below`, `invariants`, `exports`, `extensions`. - `.crumb.local`: ephemeral, never committed (must be in `.gitignore`). Fields: `schema_version`, `directory`, `active_scents`, `locks`, `whispers`, `history`, `extensions`. +Scope. `.crumb.local` and the RFC-0002 shared store are single-machine scratch state. They are advisory and visible only to processes on the machine that wrote them. They are not a coordination channel between agents: cross-agent claims and handoffs go through the issue tracker (a claimed issue) and draft pull requests. Tools must not report a crumb lock as a claim. + Spec-faithful mapping for a lane: a lane is an agent id; "I am working here" is a scent plus a lock; "done" is releasing the lock and writing a history vector plus a whisper. The spec has no ticket state machine (no open/claim/done status), and this tool adds none. ## What every agent must do diff --git a/docs/CRUMB_PROTOCOL_RFC_0002.md b/docs/CRUMB_PROTOCOL_RFC_0002.md index 84caeed..3b3d7b5 100644 --- a/docs/CRUMB_PROTOCOL_RFC_0002.md +++ b/docs/CRUMB_PROTOCOL_RFC_0002.md @@ -97,6 +97,7 @@ Two agents pointed at two different coordination roots each believe they hold th - Reads merge: shared store first, then any `.crumb.local` present in the invoking worktree; an unexpired legacy scent or lock is shown with `legacy:` and an `imported_from: ` provenance. Legacy state never overrides a newer shared record for the same key. - `crumb seed` / first shared write in a directory imports an existing `.crumb.local` once (provenance kept) and leaves the file on disk; nothing is deleted. - `.gitignore` handling for `.crumb.local` stays, for the transition and for non-repository directories. +- Scope: `.crumb.local` and the shared store are single-machine scratch state, not a coordination channel between agents; cross-agent claims go through the issue tracker and draft pull requests (see Scope in `docs/CRUMB_PROTOCOL.md`). ## 5. Continuation Crumb (`ContinuationCrumbV1`)