From dcace310b9a56a23a5b296d5961d4b433cd96465 Mon Sep 17 00:00:00 2001 From: aien Date: Sat, 10 Oct 2026 04:18:32 -0500 Subject: [PATCH 1/2] mirror check: report every satellite, workspace override, archived truth (#93) The parity check (`sync-standalone-repos.sh --check --all`) stopped after the first repository with a disparity: process_repo and the manifest step toggled `set -e` back on inside the function, so the caller's `set +e` was undone and the first non-zero return ended the script before the status summary. Both call sites now use `if cmd; then rc=0; else rc=$?; fi`, which keeps the exit code without touching errexit. The check now walks all ten entries and prints the STATUS line (10 of 10 drift today). `AIEN_MIRROR_WORKSPACE` overrides the directory holding the `-publish` checkouts (default: the monorepo's parent), so the check can run from a scratch clone or a CI runner. docs/CANONICAL_TOPOLOGY.md now states the real topology: all ten satellite repositories on GitHub are archived read-only since 2026-09-23, each ending in "docs: archival pointer to canonical home". Nothing mirrors into them; the monorepo wins; `--check` is the drift check for local checkouts; sync mode is the pipeline only if they are ever unarchived (an owner decision, with relicensing to the workspace licence). The script header carries the same note. Co-authored-by: Drake Stapleton Co-Authored-By: Claude Fable 5.1 --- docs/CANONICAL_TOPOLOGY.md | 23 ++++++++++++++++------- scripts/sync-standalone-repos.sh | 26 +++++++++++++++++--------- 2 files changed, 33 insertions(+), 16 deletions(-) diff --git a/docs/CANONICAL_TOPOLOGY.md b/docs/CANONICAL_TOPOLOGY.md index 44d84e32..221d0d11 100644 --- a/docs/CANONICAL_TOPOLOGY.md +++ b/docs/CANONICAL_TOPOLOGY.md @@ -6,13 +6,22 @@ runtime, scheduler, KV cache, inference ABI, Cortex, protocols, worlds, CLI. Satellite repositories (`cortex-rs`, `spark-hive`, `spark-supervisor`, -`spark-debugger`, `spark-adapters`, `spark-crumbs`, `spark-inquisitor`, -`rad-id-sync`) are published mirrors, not parallel implementations. Changes -land in the monorepo first, then mirror out by automation. Manual -synchronization between the monorepo and a satellite is a bug, not a workflow. - -Until the mirror pipeline exists, any satellite that disagrees with the -monorepo is stale by definition. The monorepo wins. +`spark-dream`, `spark-debugger`, `spark-adapters`, `spark-crumbs`, +`spark-inquisitor`, `aien-harness`, `rad-id-sync`) are archived, read-only +snapshots on GitHub as of 2026-09-23. Each one's final commit ("docs: archival +pointer to canonical home") points back at its crate in this repository. +They are not parallel implementations and nothing mirrors into them; a +satellite that disagrees with the monorepo is stale by definition. The +monorepo wins. + +`scripts/sync-standalone-repos.sh --check --all` is the drift check for anyone +who still holds the local `-publish` checkouts: it diffs each crate's +`src/`, `tests/`, `schemas/` and `[package]` manifest fields against the +monorepo and exits non-zero on any difference. `AIEN_MIRROR_WORKSPACE` points +it at the directory holding those checkouts. The sync mode of the same script +is the mirror pipeline should the satellites ever be unarchived (that is a +GitHub-side decision for the project owner, together with relicensing them to +the workspace licence); until then there is no satellite automation to run. ## Canonical process model diff --git a/scripts/sync-standalone-repos.sh b/scripts/sync-standalone-repos.sh index 17fe6d18..e8ce4cf6 100755 --- a/scripts/sync-standalone-repos.sh +++ b/scripts/sync-standalone-repos.sh @@ -3,6 +3,9 @@ # sync-standalone-repos.sh: Monorepo Crate Synchronization Pipeline # # Synchronizes crates from aien-sovereign-core to standalone publish repositories on DGX Spark. +# Note (2026-10-10, #93): every standalone repository on GitHub is archived read-only +# with a pointer back to its crate here. --check is the drift check against local +# publish checkouts; sync mode only matters if they are ever unarchived. # Adheres strictly to Sovereign Voice: zero em dashes, zero en dashes. # # Preserved standalone-specific files: @@ -15,7 +18,9 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" SOVEREIGN_CORE="$(cd "$SCRIPT_DIR/.." && pwd)" -WORKSPACE="$(cd "$SOVEREIGN_CORE/.." && pwd)" +# Parent directory holding the checkouts. Override for a CI +# runner or a scratch directory; defaults to the monorepo's parent. +WORKSPACE="${AIEN_MIRROR_WORKSPACE:-$(cd "$SOVEREIGN_CORE/.." && pwd)}" # Repository mapping: :: REPOS=( @@ -302,10 +307,12 @@ process_repo() { # Step 4: Selective manifest synchronization if [[ -f "$src_dir/Cargo.toml" && -f "$dest_dir/Cargo.toml" ]]; then - set +e - sync_manifest "$src_dir/Cargo.toml" "$dest_dir/Cargo.toml" "$CHECK_MODE" - local manifest_code=$? - set -e + local manifest_code=0 + if sync_manifest "$src_dir/Cargo.toml" "$dest_dir/Cargo.toml" "$CHECK_MODE"; then + manifest_code=0 + else + manifest_code=$? + fi if [[ $manifest_code -eq 2 ]]; then repo_has_disparity=1 elif [[ $manifest_code -ne 0 ]]; then @@ -361,10 +368,11 @@ for entry in "${REPOS[@]}"; do fi PROCESSED_COUNT=$((PROCESSED_COUNT + 1)) - set +e - process_repo "$entry" - repo_rc=$? - set -e + if process_repo "$entry"; then + repo_rc=0 + else + repo_rc=$? + fi if [[ $repo_rc -ne 0 ]]; then TOTAL_FAILED=$((TOTAL_FAILED + 1)) fi From e8099e07040dcaa36b2d6858509b6a8044bfdce8 Mon Sep 17 00:00:00 2001 From: aien Date: Sat, 10 Oct 2026 04:18:33 -0500 Subject: [PATCH 2/2] crumb compile Co-authored-by: Drake Stapleton Co-Authored-By: Claude Fable 5.1 --- .crumb | 16 ++++++++-------- scripts/.crumb | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.crumb b/.crumb index bfed28e4..8186515f 100644 --- a/.crumb +++ b/.crumb @@ -64,27 +64,27 @@ "generated": { "children": [ { - "digest": "8f8e6711a2369bd507758796628aef121a2426011f68d13f58f5b414f0e19af3", - "last_commit": "4de815a", + "digest": "81f182fa9182c73c49125cd300b8018d14194b40a2e4fd5ed1cbcd7caba09373", + "last_commit": "dcace31", "name": "scripts", "purpose": "" }, { "digest": "f432725dc4aef6ecd69eea043123fbb7593a9d29af97d70a561f5f355a8ad180", - "last_commit": "8a48904", + "last_commit": "f97dc90", "name": "skills", "purpose": "" } ], - "children_root": "sha256:555bca7d68bcd3bac739f3dc7bac1a895ed71ea4707dd70aa1ed96c771290c44", - "compiled_at": "2026-10-10T08:55:54Z", + "children_root": "sha256:21281b2b30a3de2db7abbe7280bbc8790e1f217264ead3c584b7a8766d68dd1a", + "compiled_at": "2026-10-10T09:18:33Z", "compiler": "crumb-compile/1", - "digest": "sha256:edcae732adfe4e19a227dccee3b9e12c402e52cf9a9c74f9eed545b6a4160a89", + "digest": "sha256:e2082618b3c7bc537a215609df36bd794410ba483ccaf5d97291bbefc947c07e", "evidence_files": 187, "evidence_root": "sha256:27ee0353cb4d4aae2b7dbce2bfe0d9f4ef2a94cd7a4555b84684d59372503280", "files": 1853, - "generated_at_commit": "8a48904fde00f3a182f9840aeb2acd23e3c79fa6", - "source_tree": "sha256:65e82e7a1c76308118a463577b8b2837e2aa22651318e9ba3d4007cae195161e" + "generated_at_commit": "dcace310b9a56a23a5b296d5961d4b433cd96465", + "source_tree": "sha256:71e0bd84dde7f4434b65b70454e17d1116965d6889c00b3bebc796abb027d195" } }, "history": [], diff --git a/scripts/.crumb b/scripts/.crumb index 81fb06bc..fcbdc171 100644 --- a/scripts/.crumb +++ b/scripts/.crumb @@ -4,14 +4,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-10T03:55:24Z", + "compiled_at": "2026-10-10T09:18:33Z", "compiler": "crumb-compile/1", - "digest": "sha256:8f8e6711a2369bd507758796628aef121a2426011f68d13f58f5b414f0e19af3", + "digest": "sha256:81f182fa9182c73c49125cd300b8018d14194b40a2e4fd5ed1cbcd7caba09373", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 27, - "generated_at_commit": "9052fe3fd075386dafa45cb5e06acd46c95b9d01", - "source_tree": "sha256:190fa8652d4640bd83fa4ebb44b292cd744557bc7717dc456290d53ef38f5a17" + "generated_at_commit": "dcace310b9a56a23a5b296d5961d4b433cd96465", + "source_tree": "sha256:4b6a2d0abe747fbeef1b2a3f246cecc5f8531c66ab0d5816a2b63cd279fbbeec" } }, "parent": {