interplane.Get Omega
Read in your language

synapse

A component of the AienOS ecosystem.

Brought by drakestapleton

branch main Branches Tags History

synapse / docs / GATE0_REALITY_CHECK_AND_BASELINE.md

50 lines · 6556 bytes Raw Blame History Source

Gate 0: Reality Check Audit and Reproducible Baseline

Tracking Issue: aien-spark/aien-sovereign-core#515

1. Source Anchor Audit (implemented / partial / proposed)

Before writing any Synapse runtime code, every source anchor referenced in aien-sovereign-core#515 was audited directly against the local checkouts on the DGX Spark (spark):

Subsystem / Source AnchorRepository & PathStatusVerified Behavior and Gap Analysis
Runtime World Store (WorldStore, WorldManifest, WorldDraft, EffectIntent::PublishGit)aien-sovereign-core crates/aien-runtime/src/world.rspartialImplements an in-memory HashMap<u64, WorldManifest> and HashMap<[u8; 32], Vec<u8>> with SHA-256 object_root folding and an EffectIntent::PublishGit { remote, branch, commit_sha } enum variant. Not a durable source-control changeset store; has no WAL, no disk persistence, no Git object formatting, and gc() only removes manifest entries with explicit comment // Note: blob-level GC is a future hardening pass.
Radicle Local Key Sync (IdentityAnchor, KeyRecord, sync_identity_keys)aien-sovereign-core crates/rad-id-sync/src/{lib,identity,keys}.rspartialDiscovers ~/.radicle/keys/radicle.pub and ~/.ssh/id_ed25519.pub on the local filesystem and writes ~/.radicle/identity_anchor.json. Does not parse Radicle identity documents (refs/rad/id / xyz.radicle.project), does not verify refs/namespaces/<nid>/refs/rad/sigrefs Ed25519 signatures, and does not check delegate quorum thresholds.
Provenance Grants (SourceGrant, GrantPermissions)aien-protocols crates/aien-provenance/src/lib.rsimplemented (distinct scope)Implements P-256 ECDSA (p256::ecdsa) signed licensing grants with bitflags (READ, EVALUATE, TRAIN, DISTILL, REDISTRIBUTE, COMMERCIAL) for dataset and model provenance. Does not authenticate Ed25519 coding agents or authorize repository changeset operations.
Verified Crumb Store (omega_vcstore)omega src/omega_vcstore.h (ADR 0029)implemented (distinct scope)Implements a fail-closed content-addressed C store (OMEGA_VC_FORMAT_VERSION 1) keyed by domain-separated SHA-256 omega_semantic_id_t, recomputing digests on insert and get, refusing immutable conflicts while accepting identical bytes idempotently, and separating the mutable name index from digest authority. Serves as the structural model for synapse-store refusal discipline while keeping SemanticId distinct from ChangesetId.
Capability & Security Primitives (CapabilityDescriptor, SecretProvider, NetworkPurpose)aien-sovereign-core crates/aien-capability, crates/aien-securitypartialDefines runtime capability metadata and secret resolution contracts (Tpm2SecretProvider), plus the unslop zero-em-dash invariant test. Does not implement per-repository Ed25519 agent changeset capability tokens (Read, Propose, Evaluate, Review, Publish), rate/size quotas, or a hash-chained changeset security audit log.
Multi-Agent Hive Worktrees (spark-hive, hive-worktrees, hive-ledger.md)aien-sovereign-core crates/spark-hive & ~/workspace/hive-worktreespartialCoordinates multi-agent lanes using full Git worktree checkouts on disk. Currently leaves 291 worktrees (27.05 GB) in hive-worktrees and 460 registered worktrees across aien-sovereign-core and omega.
Synapse Changeset Engine, API, Auth, Git Materializer, and Radicle Canonical Verifieraien-spark/synapse crates/synapse-*proposed (implemented in Gates 1-4)Dedicated changeset service providing single-writer WAL + blob store (synapse-store), Ed25519 capability auth (synapse-auth), checkout-free virtual tree and diff API (synapse-api), deterministic Git object materialization (synapse-git), Radicle delegate threshold verification (synapse-radicle), and comparative benchmark harness (synapse-bench).

2. Reproducible Pre-Synapse Baseline from Actual AIEN Traces

The baseline measurement script scripts/measure_gate0_baseline.sh was executed on the DGX Spark (spark) (NVIDIA DGX Spark GB10, 20-core ARM Cortex-X925 + Cortex-A725, Linux 7.0.0-1019-nvidia, git version 2.43.0). Raw output is sealed in evidence/gate0-baseline/baseline_report.json and evidence/gate0-baseline/SHA256SUMS.

2.1 Multi-Agent Workspace Footprint and Conflict Incidence

MetricMeasured ValueSource
Retained worktrees in ~/workspace/hive-worktrees291 directoriesscripts/measure_gate0_baseline.sh
Disk usage of ~/workspace/hive-worktrees27,050,585,731 bytes (25.19 GiB)du -sb ~/workspace/hive-worktrees
Additional agent clone directories in ~/workspace276 directoriesomega-*, sc-*, interplane-*, physics-*, aienos-*
Registered Git worktrees in aien-sovereign-core150 worktreesgit -C aien-sovereign-core worktree list
Registered Git worktrees in omega310 worktreesgit -C omega worktree list
Total tracked lanes / rows in hive-ledger.md559 (41 merged, 499 retired, 6 active)~/workspace/hive-ledger.md
Explicit conflict / rebase / stale-base mentions in hive-ledger.md18 occurrences~/workspace/hive-ledger.md

2.2 Conventional Git Operation Latencies on aien-sovereign-core (1b6e340d48)

Operationp50 Latency (ms)p95 / Max Latency (ms)Mean Latency (ms)Disk / Throughput Notes
git worktree add --detach (full checkout)588.511593.010583.872Writes 145,732,071 bytes (138.98 MiB) per checkout; max sequential throughput 1.713 worktrees/sec
git diff --stat <parent> <head>21.58422.27919.852Full tree comparison on aien-sovereign-core
git ls-tree -r <head>6.5156.9755.561Recursive tree enumeration
git log -n 50 --oneline <head>2.8844.1183.258Commit history walk
git merge-tree --write-tree <parent> <head>3.1513.3333.019Pairwise merge-tree check

2.3 Reproduction Command

./scripts/measure_gate0_baseline.sh evidence/gate0-baseline
sha256sum -c evidence/gate0-baseline/SHA256SUMS