interplane.Get Omega
Read in your language

synapse

A component of the AienOS ecosystem.

Brought by drakestapleton

GitHub aien-dev/synapse#138 (code only)

closed derived 7ef3802ac9eb95d2 #138

Imported from GitHub aien-dev/synapse#138 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base 06f27ce4b7557011ee6bcdbd1d5f18420c4c3745 · Head 1611858bd05897dd61393080c25457c0740b11fe

Apply it

git checkout -b patch-7ef3802ac9eb95d2 06f27ce4b7557011ee6bcdbd1d5f18420c4c3745
curl -fsSL https://interplane.io/drakestapleton/synapse/patches/7ef3802ac9eb95d2.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/synapse
138
1611858bd05897dd61393080c25457c0740b11fe
{"kind":"github-import","owner":"aien-dev","repo":"synapse","number":138,"url":"https://github.com/aien-dev/synapse/pull/138","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:13Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/README.md b/README.md
index a1e695c..3a8c5eb 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,16 @@
+<!-- github-native-navigation -->
+[Source](https://github.com/aien-dev/synapse) · [Walkthrough](TEACHING.md) · [Replay receipt](TEACHING-REPLAY.txt) · [Issues](https://github.com/aien-dev/synapse/issues)
+<!-- /github-native-navigation -->
+
 # Synapse
 
-Synapse is AIEN's high-throughput, agent-native changeset and integration service with deterministic Git object materialization and Radicle canonicality verification ([aien-spark/aien-sovereign-core#515](https://github.com/aien-spark/aien-sovereign-core/issues/515)).
+Synapse is AIEN's high-throughput, agent-native changeset and integration service with deterministic Git object materialization and Radicle canonicality verification ([aien-dev/aien-sovereign-core-mv#515](https://github.com/aien-dev/aien-sovereign-core-mv/issues/515)).
+
+**Direction (2026-10-14):** Synapse is becoming the new Git for AI: source control for AI agents only, built from the best ideas of every system, with Git kept as a small machine bridge for import, export, and existing tooling ([ADR 0002](docs/adr/0002-synapse-first-git-as-bridge.md), tracked in [aien-dev/synapse#8](https://github.com/aien-dev/synapse/issues/8)).
+
+## How I built it: a small result you can reproduce
 
-**Direction (2026-10-14):** Synapse is becoming the new Git for AI: source control for AI agents only, built from the best ideas of every system, with Git kept as a small machine bridge for import, export, and existing tooling ([ADR 0002](docs/adr/0002-synapse-first-git-as-bridge.md), tracked in [aien-spark/synapse#8](https://github.com/aien-spark/synapse/issues/8)).
+I follow a changeset from submission and WAL persistence to a checkout-free tree and standard Git objects. [The worked lesson](TEACHING.md) includes a corrupt-object refusal; [the latest replay record](docs/teaching-replay-2026-11-05.txt) is a host fixture, separate from canonical Radicle promotion.
 
 ## Architecture Overview
 
diff --git a/TEACHING-REPLAY.raw.txt b/TEACHING-REPLAY.raw.txt
new file mode 100644
index 0000000..baed83e
--- /dev/null
+++ b/TEACHING-REPLAY.raw.txt
@@ -0,0 +1,10 @@
+    Blocking waiting for file lock on package cache
+    Blocking waiting for file lock on package cache
+    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s
+     Running unittests src/lib.rs (target/debug/deps/synapse_bench-ff0e3b8f4bedcee0)
+
+running 1 test
+test conformance::tests::git_suite_cases_pass ... ok
+
+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 75 filtered out; finished in 0.26s
+
diff --git a/TEACHING-REPLAY.txt b/TEACHING-REPLAY.txt
new file mode 100644
index 0000000..12c221a
--- /dev/null
+++ b/TEACHING-REPLAY.txt
@@ -0,0 +1,24 @@
+# Teaching replay record, 2026-10-22
+
+Repository: `aien-dev/synapse`
+Base source revision: `5b732e5d353bbcc3f6d0cd1eac60f2e543601521` (fresh detached Spark checkout; documentation branch is a separate checkout)
+Host: `spark-b87b`, Linux 7.0.0-1019-nvidia aarch64
+Tools: gcc 13.3.0, git 2.43.0, QEMU 8.2.2, Rust/cargo 1.98.1 (only relevant tools used)
+Invocation: `quiet-build` wrapped CPU-heavy compilation where used; it does not change the test's assertion.
+
+From a fresh checkout detached at the base revision:
+
+```sh
+cargo test --locked --offline --lib -p synapse-bench conformance::tests::git_suite_cases_pass -- --exact
+```
+
+Observed process exit: `0`
+Observed result: 1 named test passed; 75 filtered out
+Raw stdout/stderr: [TEACHING-REPLAY.raw.txt](TEACHING-REPLAY.raw.txt) (SHA-256 `ee2bba7fe83210bc689b1c792c7225542631347ad36074db58e206bef1e93027`).
+
+Source file hashes at the tested base:
+- `crates/synapse-bench/src/conformance.rs`: SHA-256 `0a959db871e86b882afd7b930aa91d2d067206e14d65efbb565367aa84da7965`
+- `crates/synapse-api/src/lib.rs`: SHA-256 `345161c8bf930e6952455dd60d89160b4c46f221ff6fa2b4bfd9165c48966432`
+- `crates/synapse-git/src/lib.rs`: SHA-256 `aa475f6906c3e0e45c6bee9cc4342d43dd311080ff553d5c63622e78bf26ee14`
+
+Limits: this is a scoped fixture, not a qualification of unrelated gates or physical hardware. The Omega program fixture is separate from OSC source compilation. No model was loaded.
diff --git a/TEACHING.md b/TEACHING.md
new file mode 100644
index 0000000..725f4d8
--- /dev/null
+++ b/TEACHING.md
@@ -0,0 +1,23 @@
+# One changeset through Synapse and Git
+
+I use Synapse to accept many agent proposals without making ingestion order into branch authority. [ADR 0001](docs/adr/0001-synapse-architecture-and-boundaries.md) records the identities and boundaries. `ChangesetId` names a proposal, `WalSeq` orders durable ingestion, and `GitOid` names a materialized Git object. None alone authorizes a canonical Radicle head; that check is in [synapse-radicle](crates/synapse-radicle/src/lib.rs).
+
+The existing [Git conformance fixture](crates/synapse-bench/src/conformance.rs) makes a small base Git repository, submits envelopes through [`SynapseService::submit`](crates/synapse-api/src/lib.rs), and uses the [store](crates/synapse-store/src/lib.rs) for durable WAL records. It obtains checkout-free trees and diffs with [`materialize_virtual_tree` and `diff_trees`](crates/synapse-api/src/lib.rs). [`materialize_changeset_to_git`](crates/synapse-git/src/lib.rs) writes standard Git objects and records the mapping. The fixture asks independent `git fsck --full --strict` to check the result. Its negative control damages a materialized loose object and requires fsck to exit nonzero. This is a refusal of corrupt output, not a demonstration that accepted WAL order grants publishing authority. The [schema and consistency specification](docs/SCHEMA_AND_CONSISTENCY.md) explains why these IDs stay distinct.
+
+## Replay
+
+Use a fresh checkout at `06f27ce4b7557011ee6bcdbd1d5f18420c4c3745` (main on 2026-11-05), Rust 1.98.1 (the replay host version), cargo, git and cached locked dependencies on Linux. No model, account or Radicle network is needed. Without a populated cargo registry, drop `--offline` for the first run; that step downloads the locked crates.
+
+```sh
+git clone https://github.com/aien-dev/synapse.git synapse-lesson
+cd synapse-lesson
+git checkout --detach 06f27ce4b7557011ee6bcdbd1d5f18420c4c3745
+cargo test --locked --offline --lib -p synapse-bench conformance::tests::git_suite_cases_pass -- --exact
+```
+
+Expected exit is 0 with the named test passed. It asserts all seven Git suite cases, including the corrupt-object negative case. [docs/teaching-replay-2026-11-05.txt](docs/teaching-replay-2026-11-05.txt) records the fresh-checkout run at that revision, and a mutant that removes the corruption (exit 101, `fsck_detects_corrupted_object observed exit Some(0)`). The earlier [TEACHING-REPLAY.txt](TEACHING-REPLAY.txt) records the 2026-10-22 run at `5b732e5d`. This is a host fixture, not a live Radicle promotion or full service deployment. The [qualification report](docs/GATE4_QUALIFICATION.md) and [pipeline](docs/PIPELINE.md) cover broader, separately pinned claims.
+
+
+### Parent fresh-checkout replay
+
+A separate coordination replay is retained in [the parent receipt](docs/parent-replay-2026-10-22.txt). Its scope and observed exit are explicit; source review and final desk qualification remain separate. A recorded absence or expected failing baseline is not a passing implementation.
diff --git a/docs/parent-replay-2026-10-22.txt b/docs/parent-replay-2026-10-22.txt
new file mode 100644
index 0000000..3c9a5e9
--- /dev/null
+++ b/docs/parent-replay-2026-10-22.txt
@@ -0,0 +1,75 @@
+2026-10-22 parent coordination replay
+Repository: aien-dev/synapse
+Exact executable source: 5b732e5d353bbcc3f6d0cd1eac60f2e543601521
+Observed exit: 0; expected by the documented bounded recipe: 0
+Scope: Host Git conformance fixture passed 7 cases; no live Radicle promotion
+
+This is a separate fresh temporary checkout, not reuse of the author build directory. Git objects may be shared as immutable source storage; compiled outputs were not copied. The original author receipt is preserved. This replay is not a fresh-context source review, full repository suite, protected-branch admission, live service check, security audit or physical-hardware qualification. The website's nonzero baseline is a retained FAIL, not a passing product build. Missing implementation inspections remain absence checks, not executed features.
+Host: Spark Linux7.0.0-1019-nvidia aarch64; relevant tool versions appear below. Builds were run serially via quiet-build.
+
+RAW OBSERVED OUTPUT:
+PARENT FRESH REPLAY
+REPO aien-dev/synapse
+SOURCE 5b732e5d353bbcc3f6d0cd1eac60f2e543601521
+COMMAND
+cargo test --locked --offline --lib -p synapse-bench conformance::tests::git_suite_cases_pass -- --exact
+
+ENVIRONMENT
+Linux aarch64
+gcc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0
+rustc 1.98.1 (48a229cea 2026-09-01)
+5b732e5d353bbcc3f6d0cd1eac60f2e543601521
+   Compiling version_check v0.9.5
+   Compiling typenum v1.20.1
+   Compiling libc v0.2.189
+   Compiling find-msvc-tools v0.1.14
+   Compiling shlex v2.0.1
+   Compiling proc-macro2 v1.0.107
+   Compiling quote v1.0.47
+   Compiling semver v1.0.28
+   Compiling unicode-ident v1.0.26
+   Compiling cfg-if v1.0.5
+   Compiling serde_core v1.0.229
+   Compiling zmij v1.0.23
+   Compiling serde v1.0.229
+   Compiling subtle v2.6.1
+   Compiling zeroize v1.9.0
+   Compiling serde_json v1.0.151
+   Compiling signature v2.2.0
+   Compiling itoa v1.0.18
+   Compiling memchr v2.8.3
+   Compiling hex v0.4.3
+   Compiling cc v1.8.0
+   Compiling ed25519 v2.2.3
+   Compiling rustc_version v0.4.1
+   Compiling generic-array v0.14.7
+   Compiling curve25519-dalek v4.1.3
+   Compiling syn v3.0.6
+   Compiling cpufeatures v0.2.17
+   Compiling synapse-coord v0.1.0 (/home/drakestapleton/workspace/hermes-desk/teaching-parent-20261022/synapse/crates/synapse-coord)
+   Compiling crypto-common v0.1.7
+   Compiling block-buffer v0.10.4
+   Compiling sha2-asm v0.6.4
+   Compiling digest v0.10.7
+   Compiling sha1 v0.10.7
+   Compiling sha2 v0.10.9
+   Compiling ed25519-dalek v2.2.0
+   Compiling serde_derive v1.0.229
+   Compiling synapse-core v0.1.0 (/home/drakestapleton/workspace/hermes-desk/teaching-parent-20261022/synapse/crates/synapse-core)
+   Compiling synapse-auth v0.1.0 (/home/drakestapleton/workspace/hermes-desk/teaching-parent-20261022/synapse/crates/synapse-auth)
+   Compiling synapse-crumb v0.1.0 (/home/drakestapleton/workspace/hermes-desk/teaching-parent-20261022/synapse/crates/synapse-crumb)
+   Compiling synapse-evidence v0.1.0 (/home/drakestapleton/workspace/hermes-desk/teaching-parent-20261022/synapse/crates/synapse-evidence)
+   Compiling synapse-store v0.1.0 (/home/drakestapleton/workspace/hermes-desk/teaching-parent-20261022/synapse/crates/synapse-store)
+   Compiling synapse-api v0.1.0 (/home/drakestapleton/workspace/hermes-desk/teaching-parent-20261022/synapse/crates/synapse-api)
+   Compiling synapse-radicle v0.1.0 (/home/drakestapleton/workspace/hermes-desk/teaching-parent-20261022/synapse/crates/synapse-radicle)
+   Compiling synapse-wire v0.1.0 (/home/drakestapleton/workspace/hermes-desk/teaching-parent-20261022/synapse/crates/synapse-wire)
+   Compiling synapse-git v0.1.0 (/home/drakestapleton/workspace/hermes-desk/teaching-parent-20261022/synapse/crates/synapse-git)
+   Compiling synapse-bench v0.1.0 (/home/drakestapleton/workspace/hermes-desk/teaching-parent-20261022/synapse/crates/synapse-bench)
+    Finished `test` profile [unoptimized + debuginfo] target(s) in 12.27s
+     Running unittests src/lib.rs (target/debug/deps/synapse_bench-ff0e3b8f4bedcee0)
+
+running 1 test
+test conformance::tests::git_suite_cases_pass ... ok
+
+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 75 filtered out; finished in 0.28s
+
diff --git a/docs/teaching-replay-2026-11-05.mutant.txt b/docs/teaching-replay-2026-11-05.mutant.txt
new file mode 100644
index 0000000..0ba5321
--- /dev/null
+++ b/docs/teaching-replay-2026-11-05.mutant.txt
@@ -0,0 +1,6 @@
+     Running unittests src/lib.rs (/tmp/sweep/issues/I9/syn122-target/debug/deps/synapse_bench-ff0e3b8f4bedcee0)
+running 1 test
+thread 'conformance::tests::git_suite_cases_pass' (1038101) panicked at crates/synapse-bench/src/conformance.rs:1043:13:
+assertion `left == right` failed: git::fsck_detects_corrupted_object observed exit Some(0)
+test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 78 filtered out; finished in 0.25s
+rc=101
diff --git a/docs/teaching-replay-2026-11-05.raw.txt b/docs/teaching-replay-2026-11-05.raw.txt
new file mode 100644
index 0000000..18f40cb
--- /dev/null
+++ b/docs/teaching-replay-2026-11-05.raw.txt
@@ -0,0 +1,55 @@
+   Compiling version_check v0.9.5
+   Compiling typenum v1.20.1
+   Compiling libc v0.2.189
+   Compiling shlex v2.0.1
+   Compiling proc-macro2 v1.0.107
+   Compiling find-msvc-tools v0.1.14
+   Compiling quote v1.0.47
+   Compiling semver v1.0.28
+   Compiling unicode-ident v1.0.26
+   Compiling cfg-if v1.0.5
+   Compiling serde_core v1.0.229
+   Compiling zmij v1.0.23
+   Compiling zeroize v1.9.0
+   Compiling subtle v2.6.1
+   Compiling serde_json v1.0.151
+   Compiling signature v2.2.0
+   Compiling serde v1.0.229
+   Compiling cc v1.8.0
+   Compiling ed25519 v2.2.3
+   Compiling rustc_version v0.4.1
+   Compiling itoa v1.0.18
+   Compiling memchr v2.8.3
+   Compiling hex v0.4.3
+   Compiling generic-array v0.14.7
+   Compiling curve25519-dalek v4.1.3
+   Compiling syn v3.0.6
+   Compiling block-buffer v0.10.4
+   Compiling crypto-common v0.1.7
+   Compiling digest v0.10.7
+   Compiling cpufeatures v0.2.17
+   Compiling synapse-coord v0.1.0 (/tmp/sweep/issues/I9/syn122-fresh/crates/synapse-coord)
+   Compiling sha1 v0.10.7
+   Compiling sha2-asm v0.6.4
+   Compiling sha2 v0.10.9
+   Compiling ed25519-dalek v2.2.0
+   Compiling serde_derive v1.0.229
+   Compiling synapse-core v0.1.0 (/tmp/sweep/issues/I9/syn122-fresh/crates/synapse-core)
+   Compiling synapse-auth v0.1.0 (/tmp/sweep/issues/I9/syn122-fresh/crates/synapse-auth)
+   Compiling synapse-crumb v0.1.0 (/tmp/sweep/issues/I9/syn122-fresh/crates/synapse-crumb)
+   Compiling synapse-evidence v0.1.0 (/tmp/sweep/issues/I9/syn122-fresh/crates/synapse-evidence)
+   Compiling synapse-store v0.1.0 (/tmp/sweep/issues/I9/syn122-fresh/crates/synapse-store)
+   Compiling synapse-api v0.1.0 (/tmp/sweep/issues/I9/syn122-fresh/crates/synapse-api)
+   Compiling synapse-wire v0.1.0 (/tmp/sweep/issues/I9/syn122-fresh/crates/synapse-wire)
+   Compiling synapse-radicle v0.1.0 (/tmp/sweep/issues/I9/syn122-fresh/crates/synapse-radicle)
+   Compiling synapse-git v0.1.0 (/tmp/sweep/issues/I9/syn122-fresh/crates/synapse-git)
+   Compiling synapse-bench v0.1.0 (/tmp/sweep/issues/I9/syn122-fresh/crates/synapse-bench)
+    Finished `test` profile [unoptimized + debuginfo] target(s) in 13.15s
+     Running unittests src/lib.rs (/tmp/sweep/issues/I9/syn122-target/debug/deps/synapse_bench-ff0e3b8f4bedcee0)
+
+running 1 test
+test conformance::tests::git_suite_cases_pass ... ok
+
+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 78 filtered out; finished in 0.27s
+
+rc=0
diff --git a/docs/teaching-replay-2026-11-05.txt b/docs/teaching-replay-2026-11-05.txt
new file mode 100644
index 0000000..0f5301c
--- /dev/null
+++ b/docs/teaching-replay-2026-11-05.txt
@@ -0,0 +1,26 @@
+# Teaching replay record, 2026-11-05
+
+Repository: `aien-dev/synapse`
+Source revision: `06f27ce4b7557011ee6bcdbd1d5f18420c4c3745` (main; fresh `git clone` into an empty temporary directory, detached at that revision; the documentation branch is a separate checkout)
+Host: `spark-b87b`, Linux 7.0.0-1019-nvidia aarch64
+Tools: rustc 1.98.1 (48a229cea 2026-09-01), cargo 1.98.1 (797e8a9bc 2026-08-05), git 2.43.0
+Invocation: `CARGO_TARGET_DIR=<empty temporary directory> nice -n 19 taskset -c 0-9,15-19 <command>`. The wrapper sets CPU priority and placement only; it does not change the test's assertion.
+
+From the fresh checkout:
+
+```sh
+cargo test --locked --offline --lib -p synapse-bench conformance::tests::git_suite_cases_pass -- --exact
+```
+
+Observed process exit: `0`
+Observed result: 1 named test passed; 78 filtered out
+Raw stdout/stderr: [teaching-replay-2026-11-05.raw.txt](teaching-replay-2026-11-05.raw.txt) (SHA-256 `d4dea82041a812d33b59e46a6874e576011efa8b18afb622ccc2ba62c3df499d`)
+
+Negative control, run in the same throwaway checkout and then reverted with `git checkout -- .`: line 745 of `crates/synapse-bench/src/conformance.rs` (the `std::fs::write` that overwrites the materialized commit object in `fsck_detects_corrupted_object`) was replaced by a no-op, so no object is corrupted. The same command then exits `101`: `git::fsck_detects_corrupted_object observed exit Some(0)`, 0 passed, 1 failed. This shows the test fails when the refusal case cannot see a corrupt object. Excerpt: [teaching-replay-2026-11-05.mutant.txt](teaching-replay-2026-11-05.mutant.txt) (SHA-256 `ecc6d40b893720b256cd44c4f7efb157da0789ef3a2a7a90a7d0256c0bed7dce`)
+
+Source file hashes at the tested revision:
+- `crates/synapse-bench/src/conformance.rs`: SHA-256 `0a959db871e86b882afd7b930aa91d2d067206e14d65efbb565367aa84da7965` (unchanged since the 2026-10-22 replay)
+- `crates/synapse-api/src/lib.rs`: SHA-256 `8ddf5864b205585c8ef1ceb478069ccbeae5baa8e26f3afdaa70ac2fe17b277b`
+- `crates/synapse-git/src/lib.rs`: SHA-256 `166f536999302b42b5a4b54b768801463aa63f7345a8083ddb1f72f16e3c066e`
+
+Limits: `--offline` needs the locked crates already in the local cargo registry; on a host without them, drop `--offline` for the first run. This is a host fixture, not a live Radicle promotion, a service deployment or physical hardware qualification. No model was loaded. The 2026-10-22 record in [TEACHING-REPLAY.txt](../TEACHING-REPLAY.txt) is kept unchanged.