synapse
A component of the AienOS ecosystem.
Brought by drakestapleton
synapse / TEACHING.md
| 1 | # One changeset through Synapse and Git |
| 2 | |
| 3 | 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). |
| 4 | |
| 5 | 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. |
| 6 | |
| 7 | ## Replay |
| 8 | |
| 9 | 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. |
| 10 | |
| 11 | ```sh |
| 12 | git clone https://github.com/aien-dev/synapse.git synapse-lesson |
| 13 | cd synapse-lesson |
| 14 | git checkout --detach 06f27ce4b7557011ee6bcdbd1d5f18420c4c3745 |
| 15 | cargo test --locked --offline --lib -p synapse-bench conformance::tests::git_suite_cases_pass -- --exact |
| 16 | ``` |
| 17 | |
| 18 | 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. |
| 19 | |
| 20 | |
| 21 | ### Parent fresh-checkout replay |
| 22 | |
| 23 | 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. |