Haldwani Times
Haldwani Times
Technology

synapse-channel 0.99.71

synapse-channel 0.99.71
Photo / Illustration: Haldwani Times Editorial Desk

Skip to main content Switch to mobile version synapse-channel 0.99.71 Local-first coordination bus for AI agents across one repository or a whole ecosystem: work claims, presence, chat, a shared plan, and resource sharing over a WebSocket hub

pip install synapse-channel==0.99.71 Copy PIP instructions

This repository is a public mirror of ANULUM's canonical source; development history predating publication is held privately.

The local-first coordination bus for fleets of AI agents. One WebSocket hub is the shared source of truth for presence, file-scope claims, a shared plan, task status, and capabilities — for agents working in one repository or across a whole ecosystem of them.

Flagship example: coordinate parallel AI coding agents through declared file scopes — the hub refuses a second overlapping live claim, while covered provider hooks and the staged Git gate enforce only their documented mutation boundaries.

English · 简体中文 · Español · Português (Brasil) · 日本語 · 한국어 · Deutsch · Français · Slovenčina

A local-first coordination bus for a fleet of AI agents working in parallel — within a single repository or spread across a whole ecosystem of them. One WebSocket hub is the shared source of truth for presence, work claims, chat, task status, and resource offers: agents address each other across projects and share one plan, while file-scope claims keep the agents in any one repository from receiving overlapping live authority. Documented provider hooks and the staged Git gate enforce that authority only on their covered mutation surfaces.

See it refuse, crash and recover

python -m pip install synapse-channel && synapse demo --recovery Two scripted agents share one hub and one throwaway Git repository; no model or provider is called. In about 40 seconds the real hub shows that:

the second agent's overlapping file claim is refused;

its attempt to hand itself the first agent's task is refused;

the first agent writes half of its change and crashes without releasing;

while that lease is live, the second agent can neither claim nor write the file;

when the lease runs out, the second agent claims the file under a new epoch, and the restarted first agent's release is refused;

result verification reports the half-written file as not done;

the second agent finishes the change, its own test passes, and the hub accepts the release.

Each step prints what the hub or the verifier answered. The run writes recovery-demo.json with the package version, both lease epochs and both verification verdicts. synapse demo without the flag runs the shorter claim, conflict, handoff and receipt story.

Watch the presentation

Watch the SYNAPSE CHANNEL presentation on YouTube (8 minutes; starts from the beginning).

New here? Read Why SYNAPSE CHANNEL — a five-minute read on what it is, what you build on it, how it differs from the tools next to it, and why coordination becomes the bottleneck once you run more than one agent.

Project lineage: SYNAPSE CHANNEL dates back to September 2025.

The bus requires Python 3.11 or newer and is transport-light (websockets), hub-centric by design (one place owns presence, leases, and history), and runs entirely on the local machine. Model workers reply on-channel through any OpenAI-compatible endpoint, including a local Ollama server, with a deterministic rule-based fallback for offline use.

The bundled synapse mcp server uses the Model Context Protocol (MCP) to expose send, durable inbox, status, claim, release, handoff, and task verbs as MCP tools plus the board, agents, and resources as read-only MCP resources. Host interoperability depends on the installed host version, transport and configuration; see the exact support boundaries in the integration catalogue. The A2A HTTP surface has its separately stated partial qualification. The base runtime uses websockets on Python 3.11 or newer; adapters use their declared optional extras (pip install 'synapse-channel[mcp]'). See the MCP guide and the separately qualified authenticated HTTP profile.

Scoped execution outcomes distinguish A2A/MCP exchanges, wake transport and worker process exits from external business effects. Unknown outcomes require inquiry or operator recovery; reconnect does not automatically repeat work.

Group and Project Map

SYNAPSE CHANNEL is the coordination layer of the Agentic Coordination, Assurance and Continuity Systems group: independent projects for running AI agents as accountable engineering participants. The bus is where the agents meet, and this repository holds the canonical map of the group.

Each project has its own development, versioning and release lifecycle; none requires the whole group. The group and project map gives every repository's function and current status and explains what each line on the schematic means.

Full-size SVG · PNG · JPG

Coordinate. Observe. Govern.

Synapse's daily promise is three explicit loops:

Coordinate declared work and surface collisions: synapse git-init, synapse git-claim, synapse git-claim-check --staged, synapse task, and syn ack turn work scope, dependencies, and evidence into shared state instead of side-channel notes.

Observe the fleet from durable state: synapse who, synapse state, synapse dashboard, synapse event-query, and observed peer rows show who is present, what is claimed, what changed, and which peer-hub facts are advisory.

Govern risky actions with evidence: policy checks, approvals, release receipts, Merkle roots, ACL surfaces, federation, and encryption-key commands make operator decisions auditable. Governance surfaces report by default; operators decide what blocks a merge, release, or cross-hub action.

Keep a hub in one cell. synapse hub --cell ID records the cell once in the journal. Peers must present that same cell. A journal with no cell is unassigned and peers only with another unassigned journal.

Protect the durable log at rest with optional SQLCipher page encryption for the live hub event store (plus whole-file AES-GCM envelopes for relay logs, A2A state, cursors, and archives). See SQLCipher live event store below.

Classify every hub table. The hub database, the sequence counter, and the receipt outbox when that family is enrolled each have a pinned durability class, as do the attachment ledger, the receipt log, the replay index, the spend ledger, the app-task store and the migration bookkeeping tables. A table with no class fails conformance.

Keep the event counter stable across a migration. A declared migration that edits the sequence counter, or that recreates the event table without that counter, is refused before the migration transaction starts.

Back up the hub and consult an external witness at start. synapse backup create writes a consistent snapshot and a SHA-256 manifest; synapse backup verify accepts that manifest and rejects a tampered one. synapse hub --witness refuses startup when a reachable receipt is strictly newer than the local head, and allows startup when the witness cannot be reached.

Judge execution progress apart from transport liveness. synapse progress beat records a step that must increase during one hub lifetime. synapse progress sweep journals a stall. The default action is notify, which leaves the claim held. release is accepted after the startup grace, and a stall measured across a restart does not release the claim.

What it does, surface by surface

Seven shipped coordination surfaces, each named by the command or doc that delivers it today:

Claim before edit. synapse git-init installs claim-aware Git hooks; synapse git-claim records an exact worktree, branch, and path scope so an overlapping claim can be refused before files diverge.

Block unclaimed native file edits. Provider file-edit claim hooks adapt Claude Code Edit|Write, Codex apply_patch, Gemini CLI replace|write_file, and Kimi Edit|Write to one live-claim decision engine.

Share the plan. synapse task and synapse board keep task state, dependencies, and ready work on the hub instead of in separate agent notes.

Expose a dark seat. After 30 continuous seconds without the owner's exact waiter, the hub emits one dark_seat_alert for affected claims or assigned work, including the permanent-arm remedy; it does not release or reassign work automatically.

Read the fleet from one cockpit. synapse dashboard serves the local command centre, exact-status task columns, claims, conflicts, security posture, and an optional durable event feed; the read-only Studio projection adds no new hub authority.

Connect existing agent protocols at the edge. synapse mcp exposes coordination tools and read-only resources over stdio; the A2A bridge exposes a local Agent Card and HTTP+JSON surface while keeping its partial validation boundary explicit.

graph LR A1["Agent"] --> H A2["Agent"] --> H A3["Worker"] --> H SUP["Supervisor"] --> H H["SynapseHub
single source of truth"] --> CL["Claims & leases
scope · epoch · checkpoint"] H --> BB["Blackboard
plan + progress"] H --> CAP["Capabilities
cards + routing"] H --> LOG["Event log (SQLite WAL)
durable · optional SQLCipher at rest"] A claim leases a declared unit of work with a file scope, so the hub refuses conflicting declared scopes held by another owner. Provider hooks and the staged Git gate enforce that authority on their documented surfaces; they do not sandbox every filesystem or external side effect. Plans, handoffs, checkpoints, and a stall supervisor keep the work moving. With a configured journal, restart restores unexpired leases from validated retained records; expiry, retention and integrity quarantine limit what can be restored.

Core and Optional Layers

SYNAPSE CHANNEL ships as one installable package, but the public surface is tiered so the lean bus stays clear:

The authoritative map is synapse_channel.surface_taxonomy and the generated operator view is Public surface and stability. Adapters and lab surfaces can be installed and used from the same package, but the base dependency floor remains websockets on Python 3.11 or newer. A tier or profile label grants no authority and does not promise read-only behaviour.

Six measurable discovery profiles keep those layers explicit without hiding or removing commands: first-use, core, adapters, governance, labs, and all. Inspect any profile without starting a hub or optional process:

synapse commands --profile first-use synapse commands --profile first-use --json The JSON contract records three first-use concepts and three shell commands, against a hard limit of eight concepts, with zero optional extras and zero implicitly started persistent services. Profile inspection is read-only; optional capabilities activate only through their documented package extra and command or flag, and deactivate by stopping that exact process or omitting the opt-in. See installation profiles.

Optional Participant memory recall

participant ask, participant exchange, and participant convene can wrap their seats with bounded, read-only recall from REMANENTIA's lightweight HTTP API. Recall is disabled unless --memory-url is present; no memory process is started implicitly. Tokens are accepted only through --memory-token-file, and recalled snippets enter TurnRequest.context inside a data-only fence while the operator prompt remains unchanged.

synapse participant ask claude "review this design" \ --memory-url http://127.0.0.1:8001 \ --memory-token-file /run/secrets/remanentia Current HTTP results omit REMANENTIA's honesty axes, so every recalled hit is shown as boundary data; similarity is relevance evidence, not truth evidence. No-hit and unavailable states remain visible without failing the provider turn. See Participant memory recall for setup, limits, CLI flags, library use, and audit boundaries.

Coming: Studio — the dashboard is growing into an operator Studio: a control plane that answers, at a glance, what is happening, what is at risk, and what is safe to do next. The instrument-panel design system, /studio reference, live /studio/command shell, security-posture panel, and event-log LiveFeed have shipped. Local-first and read-only by default — an organisation-level workbench is planned as a separate layer.

python -m pip install synapse-channel # the release from PyPI python -m pip install -e ".[dev]" # or an editable dev checkout # optional: live hub event-store page encryption (SQLCipher) python -m pip install 'synapse-channel[sqlcipher]' # optional: whole-file AES-GCM envelope helpers (encrypt-key profile/migrate/rekey) python -m pip install 'synapse-channel[encryption]' For an editable checkout, keep the local .venv aligned with the repository's declared dev, docs, and benchmark extras:

.venv/bin/python tools/check_dev_dependency_drift.py --check .venv/bin/python tools/audit_dependency_tooling.py --check The second check is offline. It verifies that local preflight still covers the expected tool gates, GitHub Actions are pinned to full commit SHAs, Dependabot covers actions/Python/Docker, and the PyPI publish/download metadata surfaces remain wired. tools/check_workflow_pins.py reads a workflow directory and refuses a remote action or reusable workflow that is not pinned to a commit, a container or service image that is not pinned to a digest, and a checkout that persists credentials unless that job is named with a reason.

This installs the synapse command. To run the hub as an always-on local service or a container, see the deployment guide (a systemd user unit and docker compose are both included). On Linux, install only a permanent exact-identity waiter with synapse arm install --identity myproject/agent --start; it uses mailbox replay and Restart=always, without installing a hub. Its myproject/agent-rx receiver can coexist with agent-tmux's distinct myproject/agent-pane-rx bridge, preserving durable gap recovery and active pane delivery without name takeover. The pane bridge fails closed on busy, modal, unknown, or ambiguous provider screens: it persists the pending wake and submits its fixed prompt only after two provider-specific idle-composer probes. It acknowledges delivery only after the pane shows prompt consumption; an Enter ignored during asynchronous provider startup leaves the single staged prompt pending for a safe Enter-only retry. It accepts only exact identity, role, or group targets; global priority and CEO broadcasts remain durable inbox traffic but never inject into provider panes.

For unattended active delivery, supervise that pane bridge independently of agent turns:

synapse waker install \ --identity myproject/agent \ --session myproject-agent \ --cwd "$PWD" \ --agent-command codex \ --start synapse waker status --identity myproject/agent The generated synapse-waker@.service has Restart=always and a main-loop watchdog, so a dead bridge is recreated without relying on the agent to remember to re-arm it. waker stop --reason ... first persists an inhibited state and then stops only the exact bridge; systemd cannot immediately resurrect it, and the tmux provider terminal is not killed or restarted. Only an explicit waker resume clears the inhibit. Native Windows service setup is not claimed; use WSL with systemd as documented in the deployment guide.

For agent-assisted environment preparation, synapse setup spec, inspect, plan, authorize, apply, verification-plan, authorize-verification, and verify expose the packaged synapse-setup.v1 contract. The first three describe requirements, observe the host, and bind a credential-free target to a non-executable SHA-256 plan. authorize emits a short-lived envelope for one reviewed plan. Restart authority must match the exact hub PID observed in that plan; first-start authority carries no PID. On Linux with systemd-user, apply re-inspects the target and plan-bound executable generation, atomically reserves the authorization in a private replay ledger, and may install or start only the package-owned local hub and exact waiter units. It preserves declared PIDs, emits a digest-bound receipt, and restores prior unit and service state on failure. After a successful application, the separate verification transaction sends one directed canary, requires the exact waiter's durable ACK, restarts only the authorized hub PID, proves replay through a new hub PID, re-inspects the bound generation, and preserves declared terminal/provider PIDs. It emits a single-use, digest-bound verification receipt; an application receipt alone is not strict end-to-end readiness evidence. Package, Python, identity, secret, remote, macOS, native Windows, and container changes remain blocked. See Machine-readable setup for the schema, expiry, nonce-consumption, and exact-PID authority rules.

Two optional shell conveniences ship with the CLI: synapse completions bash|zsh|fish prints static completion for top-level commands, one nested level and their long options (generated from the installed version's parser; regenerate after upgrading), and synapse install-shell-hook adds the guarded block that auto-arms a wake listener in each new terminal:

synapse completions bash > ~/.local/share/bash-completion/completions/synapse synapse install-shell-hook # auto-arm Bash, Zsh, and Fish terminals Who it's for

A developer running two or three coding agents on one repository, tired of merge collisions and duplicated work.

A team operating a fleet of agents across several services that needs one plan, one roster, and cross-repository task dependencies.

A builder of long-running autonomous agents who wants event-driven wakeups, durable coordination, and a resume-after-restart story instead of a polling loop and lost state.

See use cases for when it fits, when it is overkill, and who reaches for it.

The one path to follow. Run the three-command self-contained proof below, then follow the multi-seat golden path for persistent agents. Optional adapters and generated workspaces come later.

On a clean Python environment, verify the installed CLI before wiring agents into a real repository:

The CLAUDE and CODEX names in that flow are scripted in-process SynapseAgent identities. The demo launches no provider CLI and spends no model turn.

success: coordination demo completed After the self-contained proof, synapse quickstart-coding remains available as an optional generated-workspace demo. It creates a temporary coding-fleet workspace, runs the live overlapping-claim refusal demo, removes the workspace after success, and prints:

success: coding fleet demo completed Or run the whole first-run sequence as one command:

synapse fleet-init It runs the doctor (--fix to repair the default local hub and waiter), scaffolds a persistent ./synapse-fleet workspace, probes which provider CLIs this machine can seat (claude, codex, kimi, ollama, …), runs the demo smoke, and prints the next-steps plan — waiter arming, per-provider seat commands, git-init, dashboard — with the workspace's project name filled in.

Fastest safe trial path

Use one self-contained path before changing a real checkout:

After that proof passes, use synapse fleet-init --fix to prepare a persistent local workspace, hub, and waiter, then run synapse git-init --name trial-agent inside the real repository before an agent edits it. Optional A2A interoperability is a follow-on in the A2A bridge guide; it is not a prerequisite for first coordination value.

This package is developed in the open and dogfooded daily: a fleet of coding agents runs its own coordination on it, so problems surface in real use and are fixed quickly. Releases are therefore frequent and mostly small — fixes and hardening rather than churn. Current 0.x releases do not promise backward compatibility across minor releases. The wire vocabulary and public Python API are guarded against accidental drift, but a reviewed 0.x minor release may deliberately change either surface. Every such change updates the frozen contract tests, bumps WIRE_PROTOCOL_VERSION for a wire-incompatible change, and ships changelog plus migration notes. Starting with 1.0.0, a breaking stable public Python API change requires a package major release; a breaking wire change requires a wire-protocol version bump. See API and wire stability.

1.0.0 is planned as the first stable commercial release of SYNAPSE CHANNEL, with the operational contracts, packaging, support surface, and commercial licensing terms documented as part of that release.

SYNAPSE CHANNEL is seeking startup funding, strategic partners, and aligned ecosystem co-owners who want to help mature the coordination layer for production multi-agent development. See commercial licensing or write to protoscience@anulum.li.

If you need a fixed target, pin a version (synapse-channel==X.Y.Z); to get the latest fixes, track the newest release. Both are supported.

Run a hub with model workers

Launch a hub plus one or two local model workers in one command:

synapse team If Ollama isn't running, synapse team falls back to a single offline rule-based worker (deterministic canned replies) so the flow still works; start Ollama and re-run for real model replies.

Then, from another terminal, watch the channel or send a message:

synapse listen --name USER # terminal A: watch the channel as USER synapse send --target FAST "what is the status of TASK-1?" # terminal B: one-shot, unique ephemeral sender synapse send --require-recipient --target FAST "ping" # also print the positive receipt A send without --name uses a unique ephemeral sender, so a one-shot send never trips the hub's one-owner-per-name rule against a listener you already have connected under the same name. One-shot sends also avoid the waiter-name collision: synapse send --name api-dev-rx ... sends as api-dev, leaving the persistent api-dev-rx wake socket connected. Directed sends request a private receipt by default and exit non-zero when no consume-live recipient matches — including when a stale socket is still connected but has neither a recent reaction nor a live waiter. The message remains journalled and best-effort routed, while the hub records a dead letter instead of reporting socket presence as delivery. Each one-shot send uses a unique message identity and accepts only its matching receipt, so an old pending receipt replayed when the sender reconnects cannot be reported as the new send's result. Add --require-recipient to also print a positive receipt. A matching positive receipt exits 0; an explicit negative receipt exits 1. A missing receipt, including from an older hub, exits 3 and prints delivery unknown with the message identity. --receipt-timeout bounds send and confirmation together (default 2 seconds, finite, greater than 0, at most 300). Check the preserved hub journal before retrying an unknown send: the recipient may already have received it. The CLI never retransmits automatically. Broadcasts and channel sends without --require-recipient report submission rather than confirmed delivery. No receipt proves that a model read or acted on the message.

For selected sensitive payloads, encrypt the body before it reaches the hub and decrypt it only on the recipient side:

synapse send --target FAST \ --encrypt-key-file ./payload.key \ --encrypt-key-id project-main-v1 \ --encrypt-recipient FAST \ "private handoff note" synapse listen --name FAST --for FAST --decrypt-key-file ./payload.key The hub still sees sender, target, channel id, key id, recipient names, nonce, ciphertext, and delivery metadata. This does not manage key discovery or rotation.

Running pieces individually

synapse hub --port 8876 synapse hub --port 8876 --db ./synapse.db # crash-safe: resumes leases + history on restart synapse hub --port 8876 --relay-log ./feed.ndjson # mirror the channel to a compact file for observers synapse hub --shutdown-close-timeout 5 # bound active socket close handshakes on stop synapse hub --max-progress-per-author 500 # cap retained board progress per author synapse hub --max-findings-per-agent 200 # cap durable findings admitted per agent synapse hub --tls-certfile ./hub.crt --tls-keyfile ./hub.key # native wss:// synapse worker --name FAST --provider ollama --model gemma3:4b synapse worker --name OFFLINE --provider rule # no network, canned replies synapse worker --name TIER --provider tiered --model small --heavy-model big # route trivial→rule, hard→heavy synapse relay ./feed.ndjson # decode and print that file as readable lines synapse ingest ./synapse.db --memory --cursor ./mem.cursor # stream durable memory events since a seq cursor (NDJSON) synapse memory-recall ./synapse.db "transport handoff" # local recall over durable memory records synapse compact ./synapse.db --all --max-checkpoints-per-task 3 --archive-report ./compact-report.html synapse board # print the shared task/progress blackboard synapse task declare BUILD --title "compile" --idem-key build-v1 # retry-safe durable write synapse task update BUILD --status done # mark a plan task done so dependents unblock syn ack BUILD --evidence "pytest -q" # post evidence and mark a board task done synapse supervisor --idle-seconds 300 --history-multiplier 3 # re-offer stalled plan tasks synapse manifest # print capability cards, including contract counts synapse capability-card keygen --key-id PROJECT:worker:v1 --private-out ./card.pem --agent PROJECT/worker --project PROJECT --trust ./card-trust.json synapse directory # print discovery-only agents/resources synapse route-task BUILD --limit 3 --event-store ./synapse.db # add observed evidence synapse resource-bids BUILD --resource-kind gpu # rank live resource offers without reserving capacity synapse a2a-card --endpoint-url https://agent.example.com/a2a/v1 # emit A2A Agent Card JSON synapse a2a-serve --endpoint-url http://127.0.0.1:8877 # run the HTTP+JSON A2A bridge synapse doctor # check for common misconfigs (identity, exposure, hub, waiter) synapse demo # installed self-check: local hub + planner/worker flow synapse quickstart-coding # create a temporary coding fleet workspace and run it synapse new coding-fleet ./demo-fleet # scaffold a runnable two-agent coding demo workspace synapse hub --host 0.0.0.0 --token s3cret # require a shared secret when binding off-loopback synapse hub --host 0.0.0.0 --token s3cret --tls-certfile ./hub.crt --tls-keyfile ./hub.key synapse hub --max-connections-per-host 4 # cap simultaneous sockets from one remote host synapse send --token s3cret --name USER "hello" # agents present the token to a secured hub Python embedders can configure a hub with HubConfig and use SynapseHub.from_config(config). The explicit composition factory also supports substituting complete collaborator families; see embedding a hub.

Authority embedders can retain protected-session issue and revocation in the same hub journal through ProtectedEnrollmentControl. Restart reconstructs secret-free metadata; usable sessions require the matching operator-held key. The API requires an already authenticated operator path and does not install account or listener isolation. See the durable enrollment contract and native APIs, including the writer-incarnation binding required for signed begin and settle.

Protected filesystem embedders can capture verified bytes through ProtectedPathDescriptors.read_bytes() without resolving the external root pathname again. The optional require_openat2=True profile requires native Linux resolution beneath the enrolled root and refuses symlinks and mount crossings. These primitives require separate authority and writer isolation; see the retained filesystem API contract.

Trusted supervisor embedders can also capture digest-pinned root-owned installation artifacts and retain their verified bytes in sealed Linux memory files. The APIs check an independently declared path set and explicit byte budgets; they do not discover a complete runtime dependency closure or launch an isolated worker. See the installation artifact contract.

Linux supervisor embedders can inspect cgroup control ancestry, recursive population, process membership and mount topology through retained descriptors. The stop API targets only the enrolled cgroup and waits for its recursive population to clear. A separate root-stage API restricts mounts in an already private namespace before credential drop. These primitives require independent supervisor custody and post-drop qualification; see the native process and mount contracts.

Protected execution library APIs durably consume a prepared begin, retain its exact completed-step frontier and verify immutable observations. Interrupted execution grants no retry. Checksummed writer counters refuse damaged records; the optional Linux x86-64 filter blocks ancillary descriptor and io_uring routes. These mechanisms require independently supervised custody and do not activate a writer service. See the durable execution contract.

Recovery embedding APIs inspect known before/after states at an interrupted execution frontier, persist parent-bound immutable observations and check fresh-claim candidates against exact actor-current blocked custody. Unknown bytes, substituted paths and later journal progress refuse. Collection requires separate writer quiescence and filesystem custody; these APIs do not install a recovery service. See the known-state recovery contract.

CLI hub queries and task writes return 0 only after a matching reply. Missing replies return 1 with an unconfirmed-outcome diagnostic. A write may already have committed: inspect synapse board and retain the same --idem-key and unchanged request for any explicit retry. The CLI never retries a timed-out write automatically. See query confirmation.

For an observed cross-hub task revision, task declare and task update also accept --causal-parent HUB_ID:SEQ:SHA256. The SHA-256 is the complete event fingerprint exposed in multi-hub board provenance. A verified same-task parent lets the observed fold discard only that proven ancestor; a missing or mismatched reference remains unresolved and never becomes a concurrency claim. This metadata changes the advisory observed board, not local claim authority. Malformed parent metadata is privately refused before a task write is committed. Validation retains authored reasons; unexpected parser faults return fixed text. The board stays unchanged, and a corrected request may reuse its retry key.

Use it with your coding agent

Synapse coordinates the agents you already run; it does not replace them. Its MCP and A2A adapters are interop surfaces: they let Claude Code, Claude Desktop, Cursor, Codex, Copilot-style hosts, Aider, orchestration frameworks, and other agent tools participate in one local coordination bus while those tools still own prompting, model choice, tool use, and editor/runtime behaviour. The integration demo matrix lists three narrow, repeatable paths and the unsupported behaviour that remains outside each demo.

Claude Code / Codex / Claude Desktop / Cursor (MCP): register the stdio server and its coordination tools load automatically — no shell hook or Synapse-specific client code.

python -m pip install 'synapse-channel[mcp]' claude mcp add synapse -- synapse mcp # resolves /mcp codex mcp add synapse -- synapse mcp --name my-repo/codex Claude Code can instead use the optional, separately versioned Synapse plugin, which packages this MCP face with the existing claim-aware edit hook and reversible profile onboarding. The vendor compatibility watch checks official releases daily and records which host versions have actually been verified. Vendor and provider discovery reviews bounded public candidate feeds weekly before an integration is considered. Its host intake rejects the reviewed Pages download lure and does not rank cron pushes as code provenance. The host integration catalog reports accepted versions and provides one inspect/install/diagnose/uninstall entry point for the host packages whose lifecycle has been verified.

The optional pi participant uses pinned pi 0.87.1 RPC. Its separate extension checks live claims before supported file writes; the default participant runs without tools.

Cursor and Claude Desktop can reuse the secret-free examples/mcp/.mcp.json template. MCP does not wake an idle provider in this adapter; call synapse_inbox at turn start and keep synapse arm install --identity NAME --start active for prompt delivery.

Antigravity CLI / Claude Code / Codex / Gemini / Grok / Kimi native file edits: print a provider-native pre-tool recipe (PreToolUse for Antigravity CLI, the Claude family, Grok, and Kimi; BeforeTool for Gemini CLI) that checks the authoritative live claim before a supported file tool runs.

synapse adapters agy-claim-hook --identity my-repo/agy --print-config synapse adapters claude-claim-hook --identity my-repo/claude --print-config synapse adapters codex-claim-hook --identity my-repo/codex --print-config synapse adapters gemini-claim-hook --identity my-repo/gemini --print-config synapse adapters grok-claim-hook --identity my-repo/grok --print-config synapse adapters kimi-claim-hook --identity my-repo/kimi --print-config synapse adapters kimi-claim-hook --identity my-repo/kimi --install-config --print-config is read-only. Save the Grok fragment under ~/.grok/hooks/*.json; synapse adapters install grok separately installs the kebab-case ~/.grok/skills/synapse/SKILL.md coordination skill. Kimi's opt-in installer writes only one marked block in $KIMI_CODE_HOME/config.toml (default ~/.kimi-code/config.toml), and --uninstall-config removes only that block. The equivalent combined Kimi path is synapse adapters install kimi --identity my-repo/kimi --with-hook.

The provider claim-hook guide documents exact tool coverage, token-file setup, and the native-host limits. These are bounded file guards, not complete Bash or filesystem isolation.

Aider, or any non-MCP tool: claim a file scope before editing and let a git hook release it on commit. The claim prevents conflicting grants; enforcement of the tool's working-tree writes remains the operator's responsibility, with the staged Git gate providing a separate commit-time check.

synapse quickstart-coding # optional: run a temporary overlapping-claim refusal demo synapse new coding-fleet ./demo-fleet # optional: keep the generated workspace synapse git-init --name aider-1 # one step: install the hooks + write the conventions guide synapse git-claim --task-id AUTH --paths src/auth --name aider-1 aider src/auth/*.py # ... edit; the post-commit hook releases the claim

Check the wiring: synapse doctor reports the common setup mistakes — no live waiter, a hub exposed without a token, an accidental identity, or a pressured root filesystem — each with its fix. With a durable hub it also reports N undelivered messages pending for from the receiver watermark; this is mailbox transport acknowledgement, not proof a model processed the messages. Use --disk-path to check the filesystem that holds a specific workspace or cache.

Inspect the live board: synapse dashboard --port 8765 opens a loopback-only read-only HTML view of roster, exact blackboard/claim status columns, progress, fleet visibility, task-dependency graph edges, branch-conflict candidates, release receipts, and advertised capabilities, with the same snapshot available at /snapshot.json for local tooling. Pass --a2a-state-file to add persisted A2A task and push-config counts to the fleet section. The dashboard derives task dependencies from the blackboard snapshot and uses live claim metadata for branch conflicts; run synapse conflicts --check-diff when you need client-side git-diff refinement. The state snapshot also carries dead_letters — directed chats that reached no live connection, per target with counts — so a message nobody is listening for shows up on the page instead of being discovered by a human relaying it. The dashboard is growing into an operator Studio — open /studio for the design-system reference — and ships a React cockpit under clients/cockpit/ (build instructions in its README; serve the built bundle with synapse dashboard --cockpit-dist clients/cockpit/dist). If you deliberately expose the dashboard with --allow-non-loopback, pass --dashboard-token and require clients to send Authorization: Bearer ; the React cockpit loads its token-free static shell, asks for that bearer, and retains it only in the tab's session storage. It never accepts the bearer in a URL. When the token is omitted on an exposed bind, Synapse generates and prints a startup token. Teams can instead pass an owner-only --dashboard-access-file mapping separate viewer/operator/admin token files to browser principals and distinct relay identities. The server-authored capability descriptor removes unauthorized write controls from the DOM and command search, but every POST is still re-authorized server-side and at the hub; admin currently gains no mutation beyond the three shipped operator writes. With --operator, the authorized command palette exposes governed message, task-declaration, and task-update forms; each reports the hub's strict outcome and grants no authority beyond the hub's validation, ACL, rate limit, and audit decision. With --feeds-db, the cockpit's Audit tab incrementally renders the universal receipt ledger and governed operator-relay history as two distinct, bounded store-attested feeds. The receipt ledger includes minimized claim and guard denials, dead-letter escalations, identity-pin reclaim and identity-key enrolment outcomes, with approval and application kept distinct; every declared durable EventKind is explicitly classified as receipt-bearing or intentionally omitted. Absence and stale last-good data remain visible. Durable-feed storage and encoding failures return a fixed HTTP 503; internal diagnostics stay in server logs, and a later request can recover after the store is repaired. The live durable-feed channels use the same failure detail. See the cockpit recovery guide. Add --observed-peer HUB=URI to include advisory peer-hub rows in the browser and /snapshot.json; those rows are labelled observed@HUB and never grant local claims.

Verify a release redeploy: synapse doctor --redeploy-checklist prints package, service, roster, durable-state, and git-hook checks for a post-release local fleet restart. It does not restart services by itself, and restart commands are withheld by default. After inspecting the exact live hub PID and roster, an operator with fresh disruption authority can add --redeploy-authorize-restart-pid PID; the rendered command rechecks that PID while holding a fail-fast host-local custody lock. Dogfooding requires every new release tag to be adopted by the local hub immediately after publication, using that bounded authorised path and post-restart health verification.

Install the always-on local services: synapse init prints or installs the hub, project presence, and non-LLM wake listener units. doctor --fix prints the exact commands when a waiter is missing.

synapse init --project myrepo --identity myrepo/worker --install-user-services synapse init --project myrepo --identity myrepo/worker --start-user-services synapse doctor --fix

Launch a provider command with Synapse identity: worker-session exports the identity variables before the provider starts. Interactive terminal providers such as Codex, Claude, Kimi, and Grok run in a persistent tmux session by default when launched from an interactive terminal, with a directed waiter kept alive in the background. Non-terminal commands keep the temporary syn arm sidecar path.

synapse worker-session --identity myrepo/worker -- codex --sandbox danger-full-access

Inspect or control the tmux wake path manually: codex-tmux is the diagnostic/admin surface behind the automatic provider launch path. It keeps a provider TUI in a named tmux session and injects a fixed wake prompt when Synapse receives a directed message. It does not paste the Synapse payload into the terminal; the provider reads the inbox itself after waking. Existing sessions are accepted only when their live tmux environment matches the configured SYN_PROJECT and exact SYN_IDENTITY; a session already owned by another seat is refused by start, status, and wake before any keys are sent. A successful tmux send-keys call is not treated as provider delivery: the bridge observes prompt consumption and retains an unacknowledged staged prompt for a later Enter-only retry, so provider startup cannot strand or duplicate it. While waiting, the bridge disconnects at a bounded interval and re-proves the session, binding, and live agent pane before registering again, so a vanished pane cannot remain advertised indefinitely.

synapse codex-tmux start --identity myrepo/codex-main --session myrepo-codex --cwd "$PWD" synapse codex-tmux wait --identity myrepo/codex-main --session myrepo-codex --cwd "$PWD" For unattended operation, replace the manually maintained wait process with synapse waker install --identity myrepo/codex-main --session myrepo-codex --cwd "$PWD" --agent-command codex --start. The waker supervises only the delivery bridge and attaches to the existing bound session; it never owns the provider terminal lifecycle.

Agent ergonomics — the syn commands

For the short loop an agent runs every session — arm a waiter, send a message, read the inbox, glance at the board — the package also ships syn, a thin, identity-correct front end over the commands above:

syn name # resolve and print this terminal's identity syn arm # keep a directed-only waiter armed (named -rx, distinct from the sender) syn say REMANENTIA,CEO "ack" # send to one, several, or all syn ask CEO "status?" # send, require an online recipient, and wait for replies syn inbox # print messages addressed to you since the cursor syn inbox --source hub --uri ws://127.0.0.1:8876 # read the connected hub journal syn inbox --project-wide # explicitly include every identity in this project syn inbox --name PROJ/role # read one exact identity under its own cursor syn board # the shared task/progress board syn who --me # show whether this identity and its -rx waiter are online syn reap # list this identity's shell-hook waiter pidfile syn reap --pid 1234 # remove a dead pidfile or SIGTERM only the verified waiter PID syn locks # list this project's active leases with release commands syn ack BUILD --evidence "pytest -q" --artifact coverage.xml syn commit README.md -m "document the change" The one thing it gets right that a hand-rolled shell alias does not is identity. The project is resolved from --project, then $SYN_PROJECT, and the working directory only as a last resort. Ambient $SYN_IDENTITY is never a silent source: it refines the identity to a full project/- only when $SYN_PROJECT is also set and agrees with it — the pair the shell hook exports together is the opt-in. A SYN_IDENTITY standing alone or disagreeing (the borrowed-shell signature) is dropped out loud: the command proceeds as the local identity and says so, or refuses entirely when the local fallback also looks accidental (the home directory, a system path). Set $SYN_PROJECT once per terminal and the identity is stable across tool calls. syn inbox filters on that full resolved identity and advances a cursor named for that identity. It never falls back to a shared project cursor. Use --project-wide when the broader project feed is intentional, --name PROJ/name for another exact address, or repeat --as PROJ/name to drain standing role addresses under independent cursors. A bare --as PROJ is the explicit project-wide alias form; $SYN_ALIASES supplies the same standing alias list. For a remote hub, select syn inbox --source hub --uri ENDPOINT or set SYN_INBOX_SOURCE=hub for the CLI or MCP adapter. This reads authenticated journal pages with independent endpoint and identity cursors instead of a stale local feed. A first read with no stored cursor shows the newest page and records the journal tail. Older mail is an explicit start: syn inbox --source hub --since 0 names the connected hub and pages forward from that sequence. Repeat while has_more is true; an unavailable result is not an empty inbox. Hub mode treats aliases as exact identities and excludes channel-tagged chat. See remote inbox. On the hub side the waiter identity is protected by a name-ownership lease: the first synapse wait/arm for a name is granted an opaque token (persisted under ~/synapse/owner-lease/), every re-arm presents it and re-takes its own name, and a stranger claiming the name — takeover flag or not — is refused with close code 4016 until the lease lapses (--lease-offline-ttl, default one hour offline). Beneath the lease sits a zero-config machine identity: the first connect provisions a per-machine Ed25519 key, the hub pins each signed name to it on first use (durable across hub restarts, --identity-pins), and a claim from any other machine is refused until the operator clears the pin. One name, one owner, across reconnects and restarts. Each custom hub --db FILE now owns FILE.identity-pins.json (the resolved database path), so separate journals in one directory cannot rewrite each other's default pins. The conventional ~/synapse/hub.db and no-db hub keep the historical home default, as does SQLite --db :memory:. An existing custom journal with legacy pins needs an explicit file selection on upgrade; see pin migration. Explicit --identity-pins FILE and --identity-pins "" keep their file-backed and process-only meanings. While the hub is running, it also watches every unexpired claim and assigned non-terminal board task. If that exact owner has no fresh -rx waiter for 30 continuous seconds, the hub broadcasts one machine-readable dark_seat_alert with the affected work and the exact permanent-arm command. Re-arming clears the episode; the monitor never releases or reassigns work on its own. Hyphenated aliases (syn-name/syn-wait/syn-say/syn-ask/syn-inbox/syn-board/syn-reap/syn-locks/syn-ack/syn-commit) are installed too.

Two follow-ons complete that loop. Adding --mailbox to synapse arm also wakes the waiter on directed messages that arrived while it was disconnected — the reconnect or re-arm gap — by asking the hub to replay them on connect, resuming from a per-identity cursor under ~/synapse/mailbox-cursor/ so a re-arm does not replay the whole backlog (off by default; needs a wire version 2 hub). Within each mailbox wake, repeated copies of the same durable hub/sequence pair print once. Separate events with identical text still print separately; legacy frames without a valid positive sequence remain visible. The waiter joins its connection cleanup before persisting the surfaced cursor. Agent-tmux uses a distinct -pane-rx receiver, so the mailbox arm can stay online beside live pane injection without either sidecar taking over the other's name. synapse release can attach a hub-echoed receipt with evidence, artifacts, changed files, approvals, known failures, confidence, and evidence freshness; the receipt carries advisory epistemic_status metadata (supported, needs_freshness, stale, degraded, or unsupported) with reasons derived from the submitted evidence, and --receipt-json prints it for automation.

A fresh manual release verifies exact-confirmation support before mutation. An unsupported or unresponsive hub returns 1 with no release sent and keeps the claim held; published hubs 0.48.0 and 0.99.27 require a matching hub upgrade. Manual release bounds each send/reply exchange with --reply-timeout (30 seconds by default). A missing acknowledgement returns 3 (outcome unknown), prints the original operation key and SHA-256 fingerprint, and provides a --confirm-only command that reads the exact durable result without another release. A valid matching grant or durable confirmation returns 0; explicit refusal or invalid local input returns 1. Lease absence and legacy replies cannot supply that proof. See release recovery for journal and compatibility boundaries.

To make fresh terminals connect automatically, install the shell hook once:

synapse install-shell-hook --shell auto New Bash/Fish/Zsh terminals then export SYN_PROJECT/SYN_IDENTITY and keep a cheap synapse arm sidecar running. The hook does not silently join whatever git checkout the terminal happens to start in. It joins the neutral SYNAPSE_DEFAULT_PROJECT lane, or user when unset, unless you explicitly set SYN_PROJECT/SYN_IDENTITY or opt a repository in with .synapse/project:

mkdir -p .synapse printf '%s\n' myrepo > .synapse/project For legacy CWD-derived behaviour, set SYNAPSE_AUTO_PROJECT_FROM_CWD=1 in that terminal. The hook also wraps common provider commands (codex, claude, kimi, grok, gemini, agy, agent, ask, ollama) through synapse worker-session, so cloud and local LLM sessions inherit the same Synapse identity from process start. In an interactive terminal, Codex, Claude, Kimi, Grok and Antigravity (agy) launch through a persistent tmux session and directed wake bridge automatically; the user still types only the provider command. Set SYNAPSE_PROVIDER_TMUX=0 to keep those providers on the direct execution path, or SYNAPSE_AUTO_CONNECT=0 to disable the hook for a terminal.

Passing --db backs the hub with an append-only SQLite event log (standard library, WAL mode). Claims, releases, task updates, resource offers, task-board writes, and chat messages are recorded, and the hub rebuilds its state by replaying the log on start-up. The guarantee is split honestly by workload: keyed covered coordination mutations commit their event, canonical request digest, exact response, and evidence intent together at synchronous=FULL (durable across an OS crash); the high-volume chat/history path commits at synchronous=NORMAL (durable across an application crash, may lose the last commit on power loss).

If store initialization fails, SQLite and SQLCipher connections close before the error reaches the caller, including interrupted initialization. Existing event rows remain available for diagnosis; incompatible schemas still refuse startup. This cleanup does not make schema migration atomic. See failed database startup.

Native Agent Evidence Format (AEF) v0.1 emission is an explicit opt-in on top of that durable log. Generate an owner-only Ed25519 receipt key, give the hub a stable identity, and enable the route:

synapse merkle keygen ~/synapse/aef-receipt-key synapse hub \ --db ~/synapse/hub.db \ --hub-id hub.example \ --aef-signing-key ~/synapse/aef-receipt-key Supported evidence rows and their AEF outbox cursor commit in one SQLite transaction. Before serving, the hub reconciles every pending cursor; while serving, a dedicated worker drains new rows in order (default cadence one second, configurable with --aef-drain-interval). A crash after receipt emission but before acknowledgement reuses the verified receipt rather than emitting a duplicate. A failed drain leaves the durable cursor pending and retries; legacy rows and their historical Merkle serialization are never rewritten or merged with the native AEF chain. Without --aef-signing-key, the hub retains its legacy-only posture.

Use synapse compact to bound the durable memory spine after every read-side consumer has advanced past a floor sequence. Add --archive-report when the maintenance run should leave an operator-readable HTML record of the pre-compaction event snapshot:

synapse compact ./synapse.db --all --max-checkpoints-per-task 3 \ --archive-report ./compact-report.html The report is written owner-only and includes event counts, the compaction floor, checkpoint/finding removal counts, board tasks, release receipt notes, and a bounded coordination timeline. It is an audit aid for a local event store; it does not certify that release evidence is sufficient.

SQLCipher live event store (at rest)

SQLCipher provides an optional encrypted live event-store backend. The default SQLite backend adds no encryption dependency beyond the base runtime. When you need page-level confidentiality for the durable coordination log while the hub holds it open, install the optional extra and pass an owner-only key file:

synapse encrypt-key generate --from-passphrase \ --scrypt-n 65536 --scrypt-r 8 --scrypt-p 1 \ ~/synapse/hub.key Operators and analysis CLIs open the same store with the same key material — missing or wrong keys fail closed (no silent empty report):

synapse doctor --db-path ~/synapse/hub.db --db-key-file ~/synapse/hub.key synapse event-query ~/synapse/hub.db --db-key-file ~/synapse/hub.key 'task T timeline' synapse postmortem ~/synapse/hub.db --db-key-file ~/synapse/hub.key T synapse reliability ~/synapse/hub.db --db-key-file ~/synapse/hub.key synapse causality contention ~/synapse/hub.db --db-key-file ~/synapse/hub.key synapse dashboard --feeds-db ~/synapse/hub.db --feeds-db-key-file ~/synapse/hub.key synapse multihub observe --peer-db ~/peer/hub.db --db-key-file ~/peer/hub.key Surface What SQLCipher covers Live hub synapse hub --db … --db-key-file — page encryption for main DB + WAL while open Doctor synapse doctor --db-path … --db-key-file — verify the key opens the store Readers / analysis event-query, postmortem, merkle, causality, accounting, reliability, trust-graph, memory-recall, debug/reproduce, approval status, ttl-advice, workflow contention, participant costs, cross-repo --db, … Operator UI Dashboard store feeds via --feeds-db-key-file Multi-hub / MCP multihub observe --db-key-file; MCP tools take event_store_key_file for route observations and memory recall Complementary whole-file envelopes (optional [encryption] extra) protect relay logs, A2A state files, cursors, and archives with AES-256-GCM via synapse encrypt-key profile|migrate|rekey|backup|restore. They do not replace page encryption for a live open SQLite database — that is SQLCipher's job.

Honest limits: SQLCipher does not protect hub RAM, does not replace filesystem permissions or connect authentication, and is not multi-tenant isolation. Stock installs without [sqlcipher] refuse --db-key-file with an install hint.

Full operator profile, key handling, and rotation: at-rest encryption.

Token-thrifty observation

--relay-log mirrors every broadcast to a newline-delimited file in a compact short-key form (encode_lite), so a token-budgeted agent can watch the channel by tailing a file instead of holding a socket. synapse relay decodes it back to readable lines and can resume from a saved --cursor. Version 2 retains structured JSON payloads and every auxiliary envelope field under a compact extension mapping; the decoder remains compatible with existing version-1 logs. Timestamps retain millisecond precision, and --relay-max-lines bounds the file. A committed benchmark compares the same full field set in wire, minified, and lite forms — see benchmarks/.

By default the hub binds to loopback and runs with no authentication — the right posture for one operator on one machine. When that is not enough (a worker with tool-use, or a hub bound off-loopback), --token requires a shared secret that connecting agents present with --token. Binding off loopback without a token is refused rather than silently exposed: the hub will not start unless you set a token (and --metrics-token when metrics are on), or explicitly pass --insecure-off-loopback to accept the risk. This is a proportionate gate, not a cryptographic identity system. For native wss://, pass both --tls-certfile and --tls-keyfile. TLS protects the transport but does not replace --token; an off-loopback hub still needs the shared secret unless you explicitly opt into --insecure-off-loopback. Off loopback TLS is also required, not just recommended: a token presented over plaintext ws:// off loopback is refused (the token and every frame would be readable on the wire), so add native TLS or a wss:// proxy — or pass --insecure-off-loopback to accept the risk on a trusted LAN.

The packaged MCP adapter exposes coordination tools to hosts within the documented version, transport and configuration profiles. Install the optional extra and register it with a supported host:

The hub stays MCP-agnostic and the core install keeps feature libraries optional — see the MCP guide.

Discovery, advisory routing, and memory

Every surface in this group is advisory by design: it prints ranked, provenance-tagged evidence for a human or an agent to act on, and none of it claims work, reserves capacity, mutates the board, or turns a capability card into executable trust.

Capability cards can also carry declarative capability contracts: per-task-class input_schema and output_schema mappings plus optional preconditions and postconditions — discovery metadata for routing and review, not a grant of executable trust.

clients/go/synapse provides the official Go client for read-only ops and CI tools. It fetches HTTP JSON surfaces such as synapse dashboard /snapshot.json through DashboardSnapshot or GetJSON, with optional bearer authentication for dashboard tokens on exposed HTTP surfaces. It does not implement the WebSocket mutation protocol for claims, chat, board writes, release receipts, or presence. See the Go client guide.

Official TypeScript/JavaScript client

clients/js provides the official typed WebSocket client, published to npm as @anulum/synapse-channel. Unlike the read-only Go client it speaks the mutation protocol — chat, claims, releases, board reads, presence, and receipts. It declares no runtime package dependencies and requires a compatible global WebSocket or an explicitly supplied WebSocket factory. Its Node 20+ engine declaration alone does not establish availability of that global. See the TypeScript/JavaScript client guide.

The opt-in scoped attachment API transfers small project-local evidence through signed, bounded WebSocket frames. The Hub keeps bytes in private local storage; hashes alone grant no access, and large datasets or weights remain on owner-controlled artifact storage. A source can separately permit an exact recipient hub, scope, digest and expiry through its private peer read API; each metadata or chunk request rechecks peer trust and the owner's current grant.

synapse a2a-serve --endpoint-url ... runs the Agent2Agent edge directly — an intentionally local-first HTTP+JSON bridge:

Serves the public Agent Card; forwards POST /message:send text/data/file parts into SYNAPSE chat; supports immediate POST /message:stream Server-Sent Events; exposes bridge-local task list/get/cancel and push-notification configuration routes; exposes authenticated task-scoped, credential-free push-delivery evidence; accepts JSON-RPC 2.0 on /rpc.

Operational bounds: Bearer auth plus request size/depth limits, durable task state with --state-file, stale-task failure with --task-timeout, one bounded subscription wait with --subscribe-timeout, plus a fixed bounded three-attempt webhook retry schedule whose exhaustion dead-letters delivery without rewriting the stored task transition.

Bearer custody: prefer owner-only --a2a-token-file PATH on serving and outbound commands. Explicit --a2a-token remains a process-visible compatibility override. Outbound clients refuse bearer-over-HTTP except to a literal loopback IP unless --a2a-allow-insecure-http accepts the risk.

Task correlation travels in structured chat metadata (a2aTaskId, a2aContextId) — the bridge never appends or trusts inline markers in chat text, so user-authored message bodies stay data rather than task selectors.

Safety posture: owner-only state/temp files, unsafe caller ids and webhook targets rejected (including delivery-time DNS or redirect targets that resolve to local networks), bounded task/history/artifact/replay retention with terminal-task GC, and subscription replay only from the current bridge process.

Independent validation now includes an official a2a-sdk==1.1.0 discovery/send/get/list/cancel lifecycle and an official A2A TCK HTTP+JSON MUST run (55 passed, 5 structured-response failures, 175 skipped). That is partial interoperability evidence, not certification or full conformance: structured artifact/direct Message scenarios, an outbound external-server pass, public webhook and proxy/TLS receipts, durable replay, and operator deployment sign-off remain open. Validation stays a track of reproducible validation receipts — discovery, task lifecycle, webhook, proxy/TLS, replay, and threat-model — rather than one score. The installed support matrix is available with synapse a2a-conformance and in the A2A conformance matrix; exposed deployments should also follow the A2A deployment threat model.

A claim can be scoped to the git branch it happens on, resolved client-side:

synapse git-init --name project/agent # persist exact identity/URI + install release hooks synapse git-claim TASK-1 --paths src/auth.py # or: synapse git-claim --task-id TASK-1 ... synapse git-claim-check --staged # fail unless this owner covers the staged index synapse git-claim TASK-2 --diff-base main # optional [semantic] extra narrows safe edits to symbols synapse git-hook install # (git-init already does this) auto-release on commit/merge synapse conflicts --check-diff # predict cross-branch merge conflicts Around those claims sits a family of security and governance profiles. Each one is documented with an honest status — what runs today, and what each layer explicitly does not claim:

synapse git-init records the exact identity and hub URI in local Git config, optionally records a token-file path (never token content), installs only the non-blocking post-commit/post-merge auto-release hooks, and writes a short .synapse/git-claims.md guide. This repository separately wires git-claim-check --staged into pre-commit: it reads the NUL-delimited Git index itself and fails closed unless the configured owner has editable claims covering every staged path on the same canonical worktree and branch. For semantic claims it resolves HEAD versus the index and checks the exact tree-sitter declarations touched; incomplete evidence widens to a whole-file requirement, and parser failure denies. A Git serialization lock is not a path claim. An empty staged index succeeds without a hub so pre-commit run --all-files remains hermetic. synapse state shows each claim's branch, while synapse conflicts flags agents about to edit the same files on branches that merge into the same base. --check-diff narrows directory or whole-worktree claims to files both branches actually changed when both branch diffs are available. With the optional semantic extra, --check-semantic further compares named declarations on pinned revisions. Enclosing declarations overlap their members; unavailable or ambiguous evidence retains a warning. A missing hub snapshot returns an error. This committed-diff view neither reserves work nor proves behavioural independence or a conflict-free merge. The hub stays git-agnostic — it stores the branch as opaque metadata and never runs git or reads a filesystem — so all git work is on the client. See the git-native claims guide.

For a concise lease view while coordinating a session:

syn locks # current project only syn locks --all # every active lease syn locks --owner api # one owner or project namespace When a manual release is also the closeout record, attach the evidence directly:

synapse release BUILD --name api-dev \ --evidence "pytest tests/test_feature.py -q: passed" \ --changed-file src/synapse_channel/feature.py \ --artifact coverage.xml \ --receipt-json When closeout evidence should be observed rather than hand-entered, synapse verify-release runs declared commands, records exit codes and stdout/stderr SHA-256 digests, hashes named artifacts, captures Git HEAD, tree, and changed files, then writes receipt JSON for synapse release --receipt:

synapse verify-release BUILD --name api-dev \ --run ".venv/bin/python -m pytest tests/test_feature.py -q" \ --artifact coverage.xml \ --output verified-release.json synapse release BUILD --name api-dev --receipt verified-release.json --receipt-json The resulting supported status remains advisory: it describes fresh submitted evidence, not independent proof that the checks or artifacts are sufficient.

For safer task selection and release receipts, the local test ownership map connects source files to likely owning tests using AST imports plus a conservative filename fallback:

python tools/test_ownership_map.py --check \ --source src/synapse_channel/core/receipts.py \ --require-owned src/synapse_channel/core/receipts.py It is a deterministic local aid for choosing focused tests; it does not replace review, coverage, or the release receipt evidence itself.

When a source change can stale generated outputs, ask the generated-output dependency map which generated paths should be included in the same claim:

python tools/generated_dependency_claims.py --claim-args \ --source src/synapse_channel/core/receipts.py The command prints --paths ... arguments for synapse git-claim and can also emit JSON for release tooling. It is a deterministic coordination aid; the owning generator, such as python tools/capability_manifest.py --check, remains the freshness check for the generated artefact itself.

For semantic task scopes, resolve modules, public symbols, API surfaces, tests, generated artefacts, migrations, or source paths into ordinary claim paths:

python tools/semantic_claims.py --selector \ symbol:synapse_channel.core.receipts.build_release_receipt \ --claim-args For a symbol or API selector, the resolver prints a synthetic descendant such as src/synapse_channel/core/receipts.py/.synapse-symbol/build_release_receipt; likely owning tests and generated outputs remain whole-file companions. Module, source, test, generated, and migration selectors also remain whole-file. The hub uses its existing path ancestry rule: different functions can coexist, while a class, whole-file, or parent-directory claim still conflicts with every symbol below it.

For daily claims, synapse git-claim can resolve the same selectors directly:

synapse git-claim TASK-RECEIPTS \ --symbol synapse_channel.core.receipts.build_release_receipt \ --semantic-evidence-json semantic-evidence.json The command resolves the current git root locally, expands the selector into canonical claim paths, and writes receipt-ready selector evidence when requested.

To infer scopes from an actual tracked diff, install the optional local parser bundle and claim from a base revision:

pip install 'synapse-channel[semantic]' python tools/semantic_diff_claims.py --base main --claim-args synapse git-claim TASK-WORKER \ --diff-base main \ --diff-path src/synapse_channel/core/worker.py \ --semantic-evidence-json semantic-evidence.json The client maps zero-context hunks on both old and new source sides to the smallest named Python, JavaScript/JSX, TypeScript/TSX, Rust, Go, Java, C#, or Ruby declaration. Renames claim both symbol names. Add/delete/rename statuses, module-level edits, unsupported or invalid syntax, oversized sources, and every other incomplete mapping widen to the whole file. Grammar wheels are installed with the extra; there is no runtime download, new wire field, or hub-side Git access. The JSON is planning evidence, not a correctness proof.

Semantic scopes are enforced end to end on the client. Precise provider edits (Edit/replace/search_replace-style tools) may provisionally use a symbol claim only when no competing owner holds another symbol in that physical source and worktree. Whole-file writes and patch tools require whole-file claims. The staged gate proves the exact index symbols before commit, while auto-release repeats the committed diff and releases only the symbol actually changed. Ambiguous or unavailable semantic evidence fails closed at the staged gate and retains the claim at non-blocking post-commit release. Use isolated Git worktrees for concurrent sibling-symbol edits.

Before merge or handoff, the import graph merge-risk radar compares changed files with claimed paths, package-local Python import neighbours, CODEOWNERS, and mapped test owners:

python tools/import_merge_risk.py --changed src/synapse_channel/core/receipts.py \ --claimed src/synapse_channel/core/state.py --check Use --base main --head HEAD instead of --changed to read a local branch diff, or --claims-json claims.json to feed paths from an external claim snapshot. The radar is an advisory local planning check; it predicts likely contention but does not replace tests, review, or release receipt evidence.

For post-hoc coordination forensics, query the durable event log directly:

synapse event-query ./synapse.db "task TASK-1 timeline" synapse event-query ./synapse.db "task TASK-1 at seq 120" --json synapse event-query ./synapse.db "path src/auth.py between 0 9999999999" synapse event-query ./synapse.db "conflicts at seq 120" synapse event-query ./synapse.db 'timeline("TASK-1").' synapse event-query ./synapse.db 'MATCH (task:TASK {id:"TASK-1"}) RETURN timeline' synapse postmortem ./synapse.db TASK-1 synapse debug ./synapse.db --fork-at 142 --set status=blocked synapse reproduce ./synapse.db TASK-1 --expect 9f2c… synapse causality causes ./synapse.db 142 synapse causality causes ./hub.db peer:96 --peer peer=./peer-hub.db synapse merkle root ./synapse.db synapse reliability ./synapse.db synapse accounting report ./synapse.db --pricing pricing.json --budget budget.json synapse fleet-scorecard ./synapse.db --trend bench-trend.db --out fleet-scorecard.json synapse approval request --name dev --subject TASK-1 --reason "needs sign-off" synapse approval status ./synapse.db --pending synapse ttl-advice ./synapse.db This temporal event-log query path is read-only. It reconstructs task timelines, task state at a sequence or timestamp, path-touch windows, and historical file-scope conflicts from the SQLite event store created by synapse hub --db. The Datalog-like and Cypher-like examples are prototype aliases for the same small query model, not a separate graph database or mutable policy engine.

Use synapse postmortem ./synapse.db TASK-1 when a task needs a replayable postmortem for a handover or incident note. The report includes the durable task timeline, owners, releases, assessment evidence, reconstructed path-overlap conflicts, and candidate unanswered messages. Candidate unanswered messages mean the log contains a directed chat mentioning the task id and no later matching chat reply; it is an audit signal, not proof of intent.

Use synapse debug ./synapse.db --fork-at 142 to rewind a task in the log and inspect a what-if. It reconstructs the exact claim state — owner, status, paths, and the saved resume checkpoint — that the task held at that sequence, then prints the resume manifest an agent would pick up from there (with --set FIELD=VALUE overriding a resume field) next to the events that really followed. The hub runs no task, so this is read-only inspection, not re-execution; it exits 1 when the task held no live claim at that point.

Use synapse reproduce ./synapse.db TASK-1 to fingerprint a task's authoritative history into a portable SHA-256 digest. Hub state is a pure fold of an append-only log, so the same claim snapshots and releases replay to the same digest on every machine; --expect DIGEST turns it into a gate that fails on any divergence, the way a release receipt is verified.

Use synapse causality causes ./synapse.db 142 to trace coordination causality over the log. It folds the durable events into a directed acyclic graph of three recorded relations — a task's own lifecycle, a declared depends_on satisfied by the dependency's completion, and a release that let a later, path-overlapping claim proceed — and answers against an event sequence: causes for what preceded it, effects for what it enabled, and counterfactual for the downstream events that would lose their recorded cause without it. This is coordination causality inferred from recorded scheduling semantics, not statistical causal discovery; every edge is backed by a concrete event, and the counterfactual is a structural what-if over the inferred graph. With --peer HUB=PATH the same queries trace causality across federated hubs: the logs merge in the deterministic multi-hub order, events are addressed as HUB:SEQ, and an edge whose endpoints two different hubs authored is tagged federation — clock-ordered evidence, since hubs share no sequence, and observe-only like the multi-hub read side; --clock-skew HUB=SECONDS annotates offline federated reports with measured local-minus-peer skew warnings, and --dot renders the federated answer as a Graphviz digraph, one cluster per hub with federation edges coloured, so the cross-hub topology is visible at a glance. synapse causality otel projects the graph onto OpenTelemetry spans — one trace per task, cross-task dependency/contention edges as span links, ids deterministic — written as JSON (--out) or pushed as real OTLP over HTTP (--endpoint, optional extra: pip install 'synapse-channel[otel]'); --service-name distinguishes hubs sharing one observability tenant, --filter TASK_ID narrows the projection to named tasks without truncating their cross-task links, an event recording the lifecycle failure terminal projects span status ERROR, and --watch re-exports on a fixed cadence — idempotent collector-side thanks to the deterministic ids. synapse causality health walks the same graph and flags orphaned claims (claimed, then silence), declared dependencies that never completed, and unreleased claims silent past a threshold — ages measured against the log's own final timestamp, deterministic and replayable; exit 1 signals an anomaly.

Use synapse compliance export ./synapse.db --json for a read-only snapshot bundle with a Merkle commitment, payload-free metadata and explicit row MAC provenance. compliance retention observes a six-calendar-month anniversary; compliance report combines both under the eu-ai-act label. These observations make no compliance verdict. See record observations for existing-key requirements, complete-export budgets and clock limitations.

Use synapse merkle root ./synapse.db to commit the durable log to a single Merkle root — a 32-byte fingerprint of every event, so two operators or two federated hubs holding the same log derive the same root and a mismatch proves they differ. synapse merkle prove ./synapse.db 142 emits an O(log n) inclusion proof for one event, and synapse merkle verify proof.json checks that proof offline against a trusted root with no event store — the light-client verification a follower runs. The tree follows RFC 6962 (Certificate Transparency), so a leaf hash cannot be forged as an interior node. It commits what the log contains — integrity and inclusion — complementing reproduce (a per-task digest) with a log-wide, incrementally provable commitment.

A hub with a journal also persists that commitment as a hash-chained checkpoint OUTSIDE the log — an owner-only .checkpoint.db beside it — and verifies the log against the newest link before serving: a tail-truncated or replaced log is a hard AntiRollbackError at startup, not a quiet restart, and a verified tip is anchored as the next chain link. While serving it anchors every --checkpoint-interval seconds (default 60) and again at a clean stop, so writes made after start are covered too; only the last interval before a crash is unanchored. synapse merkle checkpoint ./synapse.db shows the newest link, and --verify re-checks the log against it (exit 0 clean, 2 on detection). This is the local anti-rollback layer; external witnessing stays owner-gated. An intentional rewrite such as synapse compact trips the detector by design; the operator remedy is to remove the checkpoint store and let the hub anchor a fresh chain.

Use synapse reliability ./synapse.db for evidence-only reliability memory. It tracks stale claims, declared failed-check evidence, broken handoff candidates, and merge-conflict frequency as audit signals, not scores. It does not rank agents, assign trust grades, or replace review of the underlying event rows.

Use synapse accounting for opt-in model cost/token usage. This accounting projection makes no model-provider request; separately configured workers and participants can invoke their backends. Usage totals come from recorded notes: synapse accounting record posts a usage-kind progress note, and synapse accounting report ./synapse.db aggregates those notes into per-agent and per-model totals, with optional --pricing for cost estimates and --budget for budget evidence. Budgets are evidence, not an enforcement gate.

Use synapse fleet-scorecard ./synapse.db --out fleet-scorecard.json to compose the existing causality spans, opt-in accounting, advisory claim contention, and evidence-only reliability report into one atomic owner-only JSON bundle. --trend bench-trend.db includes the full host-context-labelled benchmark history. With the optional otel extra, replace --out with --endpoint http://127.0.0.1:4318: the command pushes traces and current scorecard gauges to the collector's standard HTTP signal paths. It does not collect usage, rank agents, pre-empt claims, or pretend that current gauges backfill historical benchmark timestamps.

Use synapse approval for human-in-the-loop approval gates on held tasks or policy-gated releases. synapse approval request puts a subject in awaiting_approval, synapse approval decide --approve|--reject records the decision, and synapse approval status ./synapse.db replays the notes into the current state per subject (the latest event wins, so a re-request re-opens the gate). It is advisory evidence and an audit trail, not a hard runtime gate; an approved subject can be cited in a release receipt via synapse release --approval.

Use synapse attention to project pending approvals, failed delivery, recovery and optional private quota freshness into one owner-local queue. synapse attention list distinguishes a quiet queue from a missing observer; snooze and resolution affect only the alert, never the underlying approval or delivery. The authenticated cockpit can read the same queue when synapse dashboard --attention-store names its database. Generic desktop summaries require an explicit --desktop opt-in.

The agent trust graph connects those reliability signals, positive release receipts, handoff outcomes, and conflict history into an inspectable evidence graph: synapse trust-graph ./synapse.db prints typed evidence edges with event-log provenance, filtered by --agent, --task, or a --since decay window, as text, JSON, or Graphviz DOT. It does not rank agents, assign trust grades, authorize execution, replace code review, or replace identity and ACL; the routing integration and the owner-annotation workflow remain design targets.

The federated trust model has an opt-in runtime: deny-by-default peer policy and lifecycle stores, signed-frame authorisation, guarded multi-hub paths, and federation offer/fetch/import/list/rotate/revoke bundle workflows. Operators still establish trust out-of-band by comparing fingerprints; there is no automatic trust distribution, certificate authority, or external federation certification, and the local-first default is unchanged.

The Agent Air Traffic Control architecture names how the shipped parts compose into one control loop — separation (claims), merge-risk radar (conflicts), evidence-gated completion (receipts, policy-check, approval), post-incident replay (postmortem, reliability), and memory (the ingest seam). It is an architecture, not a scheduler: only claims gate a mutation, and everything else is read-only or advisory.

The shipped cross-agent adapter kits expose synapse adapters to detect installed coding tools and write a thin claim-aware adapter into each tool's native config. Kimi Code supports both its user-level kimi skill (under $KIMI_CODE_HOME) and an explicit higher-priority kimi-project skill; its native claim hook is a separate opt-in. Python-framework shims remain a documented thin-client pattern. Adapters carry only "claim before edit, release on commit, reach the hub" — Synapse stays persona-neutral and adds no new coordination primitive.

Generic installation refuses existing unowned dedicated files; explicit --adopt-existing retains their original bytes for uninstall. Recorded custody also preserves outside text in shared files and refuses changed owned content. Use synapse adapters recover TOOL to reconcile an interrupted update.

The multi-hub sync (CRDT) research asks whether several hubs could synchronise state while keeping claim safety and local-first. Its honest core: an honest append-only event log with unique (hub_id, seq) identities converges, but conflicting content for one identity fails closed before state or cursor publication and quarantines the peer. Claims are mutual exclusion and not a CRDT — they are routed by single-owner-per-namespace and fail closed on a partition. The shipped surface is operator-managed peering: synapse multihub follow and --observed-peer HUB=URI views observe peer logs as advisory observed@HUB state; local claim authority remains local or explicitly routed to the owning hub. Agents on two hubs can talk directly: with synapse hub --message-peer HUB_ID=URI a chat or delivery intent addressed to PROJECT/seat@HUB_ID is forwarded over pinned mutual TLS to that peer. The peer must grant the target's namespace. Chats are retried from a durable outbox until answered or expired, and the peer deduplicates retries so a chat is queued there only once (protocol). Overlapping initial and retry attempts share one exchange per forward; other chats remain independent. Terminal receipts are coalesced and stay pending for an offline sender's next registration, including after restart. A stopped durable watcher can record explicit recovery with synapse multihub recover only after an operator accepts a new log generation or checkpoint; reconnect alone never clears quarantine. Network observed-peer pulls also carry cursor lag and peer welcome-frame clock skew, so operators can see when timestamp-ordered cross-hub evidence depends on clocks outside their configured agreement.

The sandboxed tools and marketplace research asks what it would take to run untrusted tool code safely — a capability-limited WebAssembly sandbox (deny-by-default filesystem, network, and resources) — and only then a marketplace built on signed capability cards, an explicit permission manifest, and run receipts. The sandbox applies to modules launched through synapse sandbox; ordinary provider processes and remote MCP tools are outside it. It ships behind the optional [wasm] extra. Signed capability cards and ACL utilities are separate facilities, not a composed marketplace admission path; the CLI checks the supplied manifest's digest and requires --approve, without verifying card signatures or caller identity. WASI clocks remain available; guest resource limits do not bound compilation or instantiation. The WASM sandbox getting-started guide walks an operator from a tool's source through validate, test, and run. The marketplace distribution layer remains a boundary specification — local-first and deny-by-default throughout.

The managed GitHub App design pins the boundary for hosted cross-PR conflict prediction: the prediction itself reuses the existing local-core conflict finder, while everything that makes it managed — webhooks, GitHub auth, checks API, hosting — stays out of the local core. The independently installable App skeleton verifies signed webhooks and writes neutral checks; registration and hosting are separate gates. The local review-feedback workflow preserves signed review evidence, requires an independent hub decision and routes a notice to the exact author seat and native session binding without automatic merge or model execution.

Use synapse ttl-advice ./synapse.db for read-only adaptive lease TTL advice. It derives completed-task duration samples, active live-claim counts, and stale claim counts from the event log, then prints an advisory default. It never changes the hub default and explicit manual TTL values still win.

Claim before you work: an agent leases a task by id; a live lease blocks other agents from claiming the same task.

Declare a file scope on the claim (a worktree and paths); the hub refuses a claim whose files overlap another agent's live claim. This is grant-time mutual exclusion, while documented provider hooks and the staged Git gate enforce supported mutation paths. Different worktree labels do not contend at the hub, so use actual isolated Git worktrees for concurrent edits.

Lease expiry is evaluated by hub operations such as heartbeat and snapshot queries. Documented mutations check ownership and, when supplied, the lease epoch. --require-fencing-epoch refuses supported lease mutations that omit the epoch; these checks do not stop an external process from writing files. An owner can save a durable checkpoint string; after expiry a new claimant can inherit it as a resume hint. The hub does not itself restart the agent, restore process state or verify the checkpoint's contents.

Release on completion; status and an optional artefact reference can be attached while the task is in progress. A held task can also be handed off atomically to another online agent — keeping its scope, status, and context, with no window for a third agent to grab it mid-transfer.

Presence, who, full state snapshots, and chat history are queryable at any time. After a reconnect to the same running hub, an agent can resume by idem_key (retried claims are not applied twice while the hub retains its idempotency cache) and a resume cursor (fetch exactly the messages it missed).

Alongside the lease registry, a shared blackboard holds the team's plan: a task ledger of declared work with dependencies (the hub refuses dependency cycles, so ready tasks are well-defined) and an append-only progress ledger a supervisor can read to spot stalls. A declared LedgerTask is the plan; a claim is the lease on doing it — the two share a task id but stay independent, so the simple claim flow keeps working. The hub keeps the progress view bounded globally, per author, and per task id (--max-progress, --max-progress-per-author, --max-progress-per-task), while the durable event log remains append-only until explicit compaction. Durable findings also have a per-agent admission cap (--max-findings-per-agent) so one producer cannot fill the shared memory spine. View the board with synapse board.

synapse supervisor remains deterministic and LLM-free. It re-offers in_progress tasks after the fixed --idle-seconds ceiling, and, by default, can lower that ceiling when completed-task progress cadence in the same board shows a faster local pattern. Use --no-predictive-stall to disable the historical-cadence supplement; it is an advisory local board heuristic, not a guarantee that work is actually abandoned.

See TEAM_PROTOCOL.md for the working agreement and message reference.

Why not just git worktrees?

Worktrees are a good tool and SYNAPSE composes with them rather than competing: a claim declares its worktree, and claims carrying different canonical worktree identities do not contend on files. But worktrees alone solve only file isolation, and they solve it by deferring the collision to merge time. What they do not give you:

Work deduplication — two agents in two worktrees can happily build the same feature twice; a claimed task on the shared board cannot be claimed again while its lease is live.

Live claim admission — inside one worktree (the common case for a shared checkout), the hub refuses a second overlapping file-scope claim while the first authority is live. This refusal governs claim admission; covered provider hooks, the staged Git gate, and isolated worktrees supply their separately documented mutation boundaries.

Visibility — presence, live claims, a task board with dependencies, and progress you can query, instead of discovering what each agent did from its branch diff.

Continuity — leases expire, checkpoints survive crashes, tasks hand off atomically; a worktree left behind by a dead agent is just a stale directory.

A durable record — an append-only event log of who claimed, did, and released what, replayable after an incident (synapse causality, synapse debug), which no branch topology records.

If per-agent worktrees already work for you, keep them — and let the hub carry the claims, the plan, and the audit trail across them.

import asyncio from synapse_channel import SynapseHub, SynapseAgent async def main() -> None: hub = SynapseHub() asyncio.create_task(hub.serve("localhost", 8876)) agent = SynapseAgent("ALPHA", uri="ws://localhost:8876") # ... drive the agent: claim, chat, request state ... The typed log_recall(..., idem_key=...) and record_finding(..., idem_key=...) helpers accept caller-retained retry keys. With SynapseHub(journal=...), each admitted memory write and its exact response commit together: an identical retry replays after restart, while reusing the key for changed content is refused without exposing the key or prior values. The key does not make a non-journalled hub durable, and rejected findings remain non-events rather than durable successful operations.

Two self-contained, runnable demos live in examples/: coordination_demo.py narrates a full task through the bus (declare, block, claim, refuse an overlap, unblock, hand off), and llm_team_demo.py asks an on-channel model worker a question. Each starts its own in-process hub, so python examples/coordination_demo.py runs with nothing else set up.

Protected file-operation APIs

Advanced library consumers can combine durable admission and execution records, retained filesystem descriptors, current authority status and known-state recovery evidence. The protected execution contract states the required inputs and the limits of each observation. These mechanisms require an independently qualified supervisor and writer launch; installing the package does not install those services or grant filesystem authority.

The optional protected frontend control channel relays original signed requests from a separate WebSocket frontend into that same authority. It checks native process peers, binds responses to individual connections, limits pending work and drains admitted mutations on shutdown. It carries protected requests only; ordinary hub traffic and operator enrolment control retain their existing paths. Its component tests do not qualify an installed role boundary.

A source checkout also provides a finite runtime qualification workflow with pinned guest inputs and separate ordinary-user recording analysis. See the contributor procedure for prerequisites and review boundaries. Component tests, portable CI observations and a successful finite guest attempt each retain their own scope; none certifies an installed protected runtime or revocation fencing.

Capability inventory

SYNAPSE CHANNEL capability inventory

This snapshot is a static inventory generated from the source tree. Performance and coverage claims have their own committed evidence — see VALIDATION.md and benchmarks/.

Documentation and project

New here? Use cases · How it compares · FAQ · Troubleshooting · Glossary

ARCHITECTURE.md — the module map and coordination model.

TEAM_PROTOCOL.md — the working agreement and wire reference.

VALIDATION.md — how it is tested and the gates a change clears.

CONTRIBUTING.md · SECURITY.md · GOVERNANCE.md · ROADMAP.md

Full documentation site: https://anulum.github.io/synapse-channel

Coordination guarantees are tracked in the invariant-conformance programme. Its generated six-boundary registry is machine checked and currently reports partial overall conformance; incomplete boundaries remain explicit rather than inheriting a green status from ordinary test coverage.

Local-first by default: the hub binds to loopback, and it refuses a non-loopback bind unless a token is configured (or the operator explicitly accepts the exposure with --insecure-off-loopback). When a deployment crosses that boundary, every control is opt-in and deny-by-default:

Connect authentication — a shared-secret token compared in constant time (--token-file or SYNAPSE_TOKEN preferred over --token, which is visible in the process list).

Per-message authentication — --message-auth-key with --require-message-auth demands sender-bound HMAC authentication on selected mutating frames after connect authentication. With --db, the CLI also persists accepted nonces in .message-auth.db, so replay refusal survives restart; --db-key-file encrypts both stores. A journal-free authenticated hub warns that its nonce cache is process-local unless --message-auth-replay-db is supplied.

Signed events and trusted peers — embedded hubs can accept Ed25519 event signatures as the per-message alternative, and guarded multi-hub/federation paths compose live certificate pins with operator-confirmed peer policy. The packaged hub CLI does not load an Ed25519 event-trust bundle. Its --multihub-serving-policy profile loads a client CA and requests optional client certificates; policy separately verifies the peer identity. Ordinary clients may connect without a certificate. --tls-certfile --tls-keyfile alone is server TLS, not required-client-certificate mTLS.

Deny-by-default ACL — --acl-policy with --require-acl rejects mutating frames from identities the policy does not grant.

Authenticated guard evidence — native file-claim hook denials can be journalled through a separately token-authenticated, digest-only guard_denial frame; open or journal-free hubs refuse the evidence path.

Bounded resources — connection, frame-size, JSON-depth, rate, and history caps bound their configured admission, retention and parsing surfaces; they do not guarantee immunity to resource exhaustion.

One-flag strict mode — synapse hub --paranoid turns the strict set on together.

Beyond the wire, several subsystems harden data at rest and privileged actions, each opt-in and documented:

At-rest encryption (complete dual profile) — SQLCipher — optional page encryption for the live hub event store (pip install 'synapse-channel[sqlcipher]', synapse hub --db-key-file, migrate/rekey-sqlcipher, doctor and analysis readers with the same key). Completes the story for a database that stays open under WAL. See SQLCipher live event store.

Whole-file AES-256-GCM envelopes — relay logs, A2A state, cursors, and archives via synapse encrypt-key, with fail-safe profile checks, migrate/ rekey/backup/restore, and optional passphrase / PKCS#11 / TPM 2.0 key wrapping ([encryption] extra). See at-rest encryption.

Capability-limited tool sandbox — synapse sandbox runs a WebAssembly tool under a deny-by-default capability manifest (filesystem, network, and resource grants bound to the module's content digest), refuses a preopen whose host path resolves through a symlink, and returns a bounded, attestable run receipt. Experimental, behind the optional [wasm] extra. See WASM sandbox.

Governed cross-hub relay — a cross-hub force-release requires a reason, is tagged when it is break-glass, and can require two distinct operators (opt-in two-person approval) before it applies. A durable hub reconstructs only validated pending inbound approvals after restart; it never reconstructs an approval verdict. A single-person, pending, or quorum-completing relay can carry a stable --idem-key so an authorised retry replays the exact committed verdict without releasing twice; the key is also bound to the verified federation principal, and live authorization still runs before replay.

Durable auto-action arming — which automatic actions a hub may take is an explicit, operator-managed policy persisted across restarts, not a per-session default.

The supply chain is gated the same way: a gitleaks pre-commit hook on staged changes plus a digest-pinned full-tree gitleaks sweep in CI; a hash-locked CI toolchain (uv-compiled with --generate-hashes, installed with --require-hashes) with GitHub Actions pinned to full commit SHAs and Docker base images pinned to digests; and pip-audit on every push alongside the CodeQL and OpenSSF Scorecard workflows. make install-hooks also installs the repository's commit-msg gate: every new commit needs exactly one vendor-neutral Seat: trailer and the exact project authorship line. A dedicated workflow audits every introduced commit and rechecks the complete forward-only history weekly. Main-branch CI also gives each push head its own concurrency group and never cancels it; pull-request and manual runs may still replace stale work on their shared ref. Staging Python or pyproject.toml also runs strict whole-tree mypy through the repository virtual environment—never only the changed filenames. SYNAPSE_MYPY_PYTHON=/absolute/path/to/python selects an intentional alternate environment and fails closed when the path is invalid. The installed pre-push stage stays seconds-scale: it rejects a stale capability snapshot, invalid commit-trailer history, or version-surface drift. It runs no pytest, coverage, or exhaustive preflight; CI owns those checks on every push. The threat model and how to report a vulnerability are in SECURITY.md.

Single hub, single machine. There is no built-in failover or horizontal scale; the hub is one process and the design is deliberately local-first. A hub restart resumes from the durable log, but it is not a high-availability cluster. The federation primitives for reaching beyond one machine are all in this package; operating them as a production service is the job of the commercial Fleet tier below.

Connect authentication is a proportionate shared secret, not a cryptographic identity system. With the encryption extra, default clients sign registration with a machine key and the hub pins names on first valid use; operator-managed deployments can instead require an enrolled identity bundle. Per-message authentication, Ed25519 event-signature trust, peer certificate pins, and deny-by-default ACLs remain separate opt-ins (see Security posture). Every federation peering is still an out-of-band trust decision: bundle bytes can move over the wire (synapse federation offer/fetch, fingerprint-compared, never automatically trusted), but there is no automatic trust distribution. Do not expose the hub on an untrusted network and rely on the token alone.

Graceful shutdown is bounded, not transactional. SIGTERM/SIGINT stop accepting new sockets, close active WebSocket sessions within --shutdown-close-timeout, and rely on per-mutation persistence for durable state already accepted by the hub.

Takeover is a local recovery tool, not authentication. The hub rate-limits repeated takeovers with --takeover-cooldown and logs takeover/conflict outcomes with sender, remote host, and close reason, but agents remain trusted local processes.

Agents are trusted. The bus coordinates agents; it does not sandbox them. An agent is trusted to the extent the operator trusts the process it runs in.

Task-class routing is heuristic. The classifier sorts a request by length and a keyword set; tune the thresholds for your workload. Per-tier model latency is not benchmarked offline (it needs a live model server).

File-scope claims are advisory, not filesystem access. Claims carry declared scope metadata; they do not grant access to the named files. Legacy paths use literal file/directory overlap, while configured canonical and semantic scopes carry their own identity and comparison boundaries. Normal relative paths stay narrow, while absolute or traversal-like declarations such as ../../etc/passwd widen to the whole worktree so they cannot underclaim and miss a conflict. They do not grant filesystem access. See SECURITY.md.

Metrics are opt-in and off by default. synapse hub --metrics exposes a Prometheus /metrics and a JSON /health endpoint on the hub's port; without the flag the hub serves no HTTP. The endpoint carries operational metadata, so keep it on a loopback bind, or require --metrics-token before exposing it. The header form, Authorization: Bearer , is the default token presentation. The query-string form ?token= is disabled by default and is accepted only with the deprecated --metrics-query-token-ok compatibility flag, which warns at parse time and will be removed in 0.101.0 because query tokens leak easily into logs and history. The live board, state, and manifest also remain available over the CLI and the MCP resources.

synapse --version is network-silent by default. Set SYNAPSE_UPDATE_CHECK=1 to opt in to a best-effort PyPI newer-release check (fresh successful cache reused for 24 hours; failed/stale checks may retry). The opt-in fetch is synchronous and may use a stale cached notice. Set SYNAPSE_NO_UPDATE_CHECK=1 to suppress the check even when opt-in is present.

Beyond one machine: SYNAPSE CHANNEL Fleet

The open-source core ships every federation primitive: the multihub follower, claim forwarding, the deny-by-default federation gate with mTLS + Ed25519, and the wire protocol. SYNAPSE CHANNEL Fleet is the commercial package that operates those primitives across machines as a durable service. It is proprietary — distributed as a private wheel to licensees under the SYNAPSE Enterprise Licence, never on public PyPI — and it builds against an exact pinned release of this core, so wire compatibility and federation logic stay in the open where every peer can verify them.

graph LR subgraph MA["Machine A"] HA["SynapseHub (OSS core)
event log"] FD["synapse-fleet sync daemon
persisted per-peer mirror
fail-closed cursors"] OV["fleet status · doctor · observed
advisory views from the mirror"] HA --- FD --> OV end subgraph MB["Machine B"] HB["SynapseHub (OSS core)"] end subgraph MC["Machine C"] HC["SynapseHub (OSS core)"] end FD -- "mTLS + Ed25519 pins
deny-by-default, live trust generations" --> HB FD -- "budgeted polls
backoff-isolated per peer" --> HC Fleet surface What it does sync daemon The follower loop as a durable service: a persisted per-peer mirror that survives restarts, page/new-event/time budgets that make large backlogs resumable partial successes, exponential backoff isolation so one slow peer cannot serially block healthy ones, and fail-closed cursors — a failed poll never advances the mirror. Live trust reload A versioned operator trust schema assembled into immutable trust generations; authorisation and pinned TLS are rebuilt before a changed generation can open a socket, and an invalid live update denies that poll rather than falling back to a cached allow. synapse-fleet CLI A separate binary: sync status with per-peer clock skew, a read-only federation doctor (reachability, RTT, cursor lag, mirror integrity, certificate expiry, revocations), observed — peers' coordination state rendered offline from the mirror with every claim tagged observed@ (advisory, never local authority), federation key/certificate lifecycle with an operator-ordered add-new-then-revoke-old sequence, and strict journal verify/repair-cursor. A rotation sequence alone does not guarantee uninterrupted service. ResilientClaimForwarder A library layer adding retry, idempotency, and metrics around the core claim-forward seam for cross-hub claim routing. Fleet changes none of this package's features and removes nothing from it; it adds the multi-machine operations layer on top. For licensing, see commercial use below or write to protoscience@anulum.li.

SYNAPSE CHANNEL is dual-licensed, and there is no feature difference between the open-source and the commercial build: both use the public Core codebase. A commercial licence changes the terms, not the code. Optional dependencies, platform support and documented runtime limits still apply. The separately licensed Fleet package is an addition for multi-machine operations, built on this core's public federation primitives — nothing here is held back to make room for it. The Core licence has no per-seat fee under the AGPL; infrastructure and external provider costs are separate. Paid layers add agreed permission, hosting, support and convenience.

Use it under the AGPL-3.0 subject to its applicable conditions, including corresponding-source offers for remote users of modified versions and source requirements when conveying covered works. Commercial, research or internal labels do not by themselves determine which conditions apply.

Request commercial terms when your deployment cannot satisfy those conditions. Hosted use alone does not require opening an entire software stack; review the covered work and permission scope in LICENSE and COMMERCIAL-LICENSE.md.

Running it free and it helps you? Development is independent and self-funded — you can buy us a coffee: ☕ Buy Me a Coffee · GitHub Sponsors · PayPal · TWINT (CH) — or send crypto (the same addresses published at anulum.li):

Items marked (planned) are not available yet; they are not part of what a plan delivers today.

SYNAPSE CHANNEL FLEET is separately entitled private software, not a hidden commercial build of the public core.

Current plans and purchase contact are on the commercial information page. For enterprise, OEM, academic, non-profit, managed-hosting, or co-ownership terms, write to protoscience@anulum.li with the evaluation details listed in docs/commercial.md. The full terms are in COMMERCIAL-LICENSE.md.

If you use SYNAPSE CHANNEL in your work, please cite it. Metadata is in CITATION.cff; a BibTeX entry:

@software{sotek_synapse_channel, author = {Šotek, Miroslav}, title = {SYNAPSE CHANNEL: Local-first multi-agent coordination bus}, url = {https://github.com/anulum/synapse-channel}, doi = {10.5281/zenodo.20801559}, version = {0.99.71}, year = {2026} } Explicit advisory agent ranking

synapse reputation ./hub.db --json provides an opt-in human triage order from retained evidence and source event sequences. Default trust-graph and execution guards are unchanged. See advisory agent ranking.

Dual-licensed: AGPL-3.0-or-later, with a commercial licence available — see Commercial use for the plans and commercial plans. LICENSE holds the full AGPL text, COMMERCIAL-LICENSE.md the commercial terms, and NOTICE.md the licensing boundary. The repository is REUSE 3.x compliant.

© 1998–2026 Miroslav Šotek · anulum.li · protoscience@anulum.li

A Git claim timeout is an unknown outcome (exit 3), not proof of denial. Use --confirm-only with the original identity and scope to verify an exact live lease without replaying a mutation. Claim recovery.

Text and data mining reservation

The rightsholder, Miroslav Šotek (ANULUM), expressly reserves the use of the works in this repository for text and data mining, including the collection of this content for, and its use in, training, fine-tuning or evaluating machine learning and artificial intelligence models, in accordance with Article 4(3) of Directive (EU) 2019/790 and the national provisions transposing it.

No permission for such use has been granted beyond what the licence in LICENSE grants. This reservation does not change that licence: uses the licence permits remain permitted on its terms, including its attribution and share-alike conditions.

Reservation made on 2026-10-19. Requests for permission: contact the rightsholder through the contact listed in this repository.

Released: Dec 3, 2026

Author: Miroslav Šotek

Both files in this release have provenance metadata.

View provenance details

AGPL-3.0-or-later View SPDX License List

dev benchmark wasm otel mcp a2a-grpc semantic encryption sqlcipher pkcs11 tpm2 cloud-hsm all docs

multi-agent coordination websocket task-claims local-first

Development Status 4 - Beta

Intended Audience Developers

Programming Language Python :: 3

Topic Communications :: Chat

Software Development :: Libraries

Release files for synapse-channel 0.99.71

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Built distribution (wheel)

Total release size: 9.2 MB

Release files / synapse_channel-0.99.71.tar.gz

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Release files / synapse_channel-0.99.71-py3-none-any.whl

Security for synapse-channel 0.99.71

Both files in this release have been uploaded with provenance metadata.

With provenance synapse_channel-0.99.71.tar.gz Dec 3, 2026

Attestation for synapse_channel-0.99.71.tar.gz

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

0.99.71 This release

Dec 3, 2026 2 release files Full provenance

Dec 1, 2026 2 release files Full provenance

Nov 30, 2026 2 release files Full provenance

Nov 29, 2026 2 release files Full provenance

Nov 26, 2026 2 release files Full provenance

Nov 25, 2026 2 release files Full provenance

Nov 24, 2026 2 release files Full provenance

Nov 22, 2026 2 release files Full provenance

Nov 21, 2026 2 release files Full provenance

Nov 20, 2026 2 release files Full provenance

Nov 19, 2026 2 release files Full provenance

Nov 18, 2026 2 release files Full provenance

Nov 17, 2026 2 release files Full provenance

Nov 16, 2026 2 release files Full provenance

Nov 15, 2026 2 release files Full provenance

Nov 11, 2026 2 release files Full provenance

Nov 9, 2026 2 release files Full provenance

Nov 8, 2026 2 release files Full provenance

Nov 7, 2026 2 release files Full provenance

Nov 4, 2026 2 release files Full provenance

Nov 3, 2026 2 release files Full provenance

Nov 2, 2026 2 release files Full provenance

Nov 1, 2026 2 release files Full provenance

Oct 31, 2026 2 release files Full provenance

Oct 30, 2026 2 release files Full provenance

Oct 29, 2026 2 release files Full provenance

Oct 13, 2026 2 release files Full provenance

Oct 2, 2026 2 release files Full provenance

Oct 1, 2026 2 release files Full provenance

Sep 30, 2026 2 release files Full provenance

Sep 29, 2026 2 release files Full provenance

Sep 23, 2026 2 release files Full provenance

Sep 5, 2026 2 release files Full provenance

Sep 4, 2026 2 release files Full provenance

Sep 1, 2026 2 release files Full provenance

Aug 31, 2026 2 release files Full provenance

Aug 27, 2026 2 release files Full provenance

Aug 26, 2026 2 release files Full provenance

Jul 29, 2026 2 release files Full provenance

Jul 28, 2026 2 release files Full provenance

Jul 26, 2026 2 release files Full provenance

Jul 24, 2026 2 release files Full provenance

Jul 20, 2026 2 release files Full provenance

Jul 18, 2026 2 release files Full provenance

Jul 16, 2026 2 release files Full provenance

Jul 14, 2026 2 release files Full provenance

Jul 13, 2026 2 release files Full provenance

Jul 11, 2026 2 release files Full provenance

Jul 10, 2026 2 release files Full provenance

Jul 9, 2026 2 release files Full provenance

Jul 8, 2026 2 release files Full provenance

Jul 7, 2026 2 release files Full provenance

Jul 6, 2026 2 release files Full provenance

Jul 5, 2026 2 release files Full provenance

Jul 4, 2026 2 release files Full provenance

Jul 3, 2026 2 release files Full provenance

Jul 2, 2026 2 release files Full provenance

Jul 1, 2026 2 release files Full provenance

Jun 30, 2026 2 release files Full provenance

Jun 29, 2026 2 release files Full provenance

Jun 28, 2026 2 release files Full provenance

Jun 27, 2026 2 release files Full provenance

Jun 26, 2026 2 release files Full provenance

Jun 25, 2026 2 release files Full provenance

Jun 24, 2026 2 release files Full provenance

Jun 23, 2026 2 release files Full provenance

Jun 22, 2026 2 release files Full provenance

Jun 21, 2026 2 release files Full provenance

"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.

© 2026 Python Software Foundation

Deployed from 107c339

Source Attribution: This report incorporates information referenced or syndicated from Pypi.org. Read original coverage at Pypi.org.

More from Technology →
Haldwani Times
Haldwani Times Independent News & Editorial
Login
MARKETS & FINANCE
BRENT CRUDE: $78.40 -0.52% SENSEX: 81,450.20 +0.42% NIFTY 50: 24,820.15 +0.38% GOLD (24K): ₹74,500/10g -0.18% USD/INR: ₹95.54 +0.10%

ADMINISTRATIVE LEADERSHIP

Mr. Narendra Modi
Mr. Narendra Modi
Mr. Lt. Gen. Gurmit Singh
Mr. Lt. Gen. Gurmit Singh
Mr. Pushkar S. Dhami
Mr. Pushkar S. Dhami
Mr. Lalit M. Rayal
Mr. Lalit M. Rayal
Mr. Gajraj S. Bisht
Mr. Gajraj S. Bisht

Top Headlines & Breaking Stories

View All News →
बागेश्वर में मातृशक्ति सम्मेलन, सीएम धामी ने महिलाओं के सशक्तिकरण को बताया सरकार की प्राथमिकता
Haldwani

बागेश्वर में मातृशक्ति सम्मेलन, सीएम धामी ने महिलाओं के सशक्तिकरण को बताया सरकार की प्राथमिकता

Bageshwar: CM Dhami: बागेश्वर में भव्य मातृशक्ति सम्मेलन का आयोजन किया गया, जिसमें मुख्यमंत्री पुष्कर सिंह धाम...

Haldwani Times 4 Dec

Haldwani Times – Everything in Haldwani: News, Shops, Businesses & Services

Haldwani Times is the premier digital news and commercial discovery platform built specifically for the citizens, business owners, students, professionals, and visitors of Haldwani, Nainital district, and the wider Kumaon region of Devbhoomi Uttarakhand. As the economic gateway to the Kumaon Himalayas, Haldwani is a bustling metropolis connecting the plains of northern India with the scenic mountain districts of Nainital, Almora, Pithoragarh, Bageshwar, Champawat, and Udham Singh Nagar. Haldwani Times serves as the definitive digital heartbeat of the city, bringing breaking hyperlocal news, verified commercial directories, educational updates, healthcare guides, Mandi Bhav rates, and civic announcements onto a single unified, trusted platform.

The Definitive Source for Breaking Haldwani News & Civic Updates

Haldwani stands as one of the fastest-growing urban conglomerates and commercial engines in northern India. Positioned in the fertile Terai-Bhabhar belt at the foothills of the Shivalik range, the twin cities of Haldwani and Kathgodam form the administrative and logistical nerve center for the entire Kumaon division. With rapid urbanization, expanding commercial infrastructure, flourishing educational centers, and increasing inter-state transit, the demand for fast, fact-checked, and unbiased local journalism has never been greater. Haldwani Times delivers 24/7 comprehensive news coverage built on rigorous journalistic standards: - **Hyperlocal Civic News:** Real-time coverage of municipal corporation affairs, city drainage projects, traffic management blueprints, and road widening drives across Tikonia, Mukhani, Kusumkhera, Bareilly Road, and Rampur Road. - **Administrative Directives:** Official notifications from the District Magistrate (DM) Nainital, Senior Superintendent of Police (SSP), and state secretariat decisions affecting citizen welfare. - **Kumaon Weather & Disaster Alerts:** Timely mountain rainfall warnings, landslide advisories along NH-109 (Haldwani-Nainital Highway), and emergency bulletins during the monsoon and winter seasons. - **Education & Campus News:** Timely reports on Kumaon University examination schedules, Uttarakhand Board (UBSE) results, medical college admissions, and competitive coaching updates. - **Commercial & Market Trends:** Daily wholesale Mandi Bhav rates from Haldwani Subzi Mandi, real estate trends, retail market festivals, and local business openings. - **Cultural & Pahadi Heritage:** In-depth feature stories celebrating Kumaoni folk traditions, Aipan art, Nanda Devi festivals, and local community milestones.

Everything in Haldwani on One Unified Digital Ecosystem

Beyond traditional news reporting, Haldwani Times is engineered as an exhaustive local discovery engine. Historically, finding verified local business telephone numbers, emergency hospital contacts, specialized doctors, reliable plumbers, or trusted real estate consultants in Haldwani required asking neighbors or browsing outdated social media posts. Haldwani Times eliminates this friction by organizing every commercial, professional, and civic resource into searchable, verified categories. Whether you are a newly arrived resident in Kusumkhera looking for high-speed broadband providers, a parent searching for reputable CBSE schools near Kaladhungi Road, or a tourist seeking taxi rentals to Nainital, our portal delivers accurate, verified, and actionable information in seconds.

Local Shops, Retail Hubs & Traditional Bazaars in Haldwani

The retail commerce of Haldwani spans centuries-old traditional bazaars and modern commercial complexes: - **Bada Bazaar & Mangal Parao:** The historic retail heart of Haldwani, renowned for traditional Kumaoni wedding jewelry (Pauji, Guloband, Nath), brass utensils, ethnic handlooms, and wholesale clothing. - **Nainital Road & Tikonia Commercial Corridor:** Modern multi-brand retail showrooms, electronics stores, authorized smartphone service centers, branded footwear outlets, and international apparel stores. - **Bareilly Road & Rampur Road Trade Hubs:** Major agricultural machinery dealers, hardware and building material wholesalers, furniture manufacturing units, plywood distributors, and automobile showrooms. - **Subzi Mandi & Wholesale Grain Market:** One of the largest agricultural distribution centers in North India, supplying fresh vegetables, hill fruits (apples, peaches, plums), and organic Pahadi pulses (Gahat, Bhatt, Rajma) across northern states.

Healthcare Hub of Kumaon: Hospitals & Emergency Services

Haldwani serves as the premier medical lifeline for all six hill districts of Kumaon. Patients travel from Almora, Pithoragarh, Bageshwar, and Champawat to access specialized clinical treatments in Haldwani: - **Government Healthcare Institutions:** Dr. Susheela Tiwari Government Medical College & Hospital (STGH) and Base Hospital Haldwani provide tertiary trauma care, specialized super-specialties, pediatric ICUs, and 24/7 emergency response. - **Private Multi-Specialty Hospitals:** Advanced private medical centers specializing in cardiology, joint replacements, neurology, critical care, nephrology, and advanced laparoscopic surgeries. - **Diagnostic Centers & 24/7 Pharmacies:** Fully automated pathology laboratories, high-resolution MRI/CT scan centers, and round-the-clock emergency pharmacies clustered around Medical College Road, Kaladhungi Road, and Rampur Road.

Education, Colleges, Coaching Academies & Youth Development

Haldwani is the educational capital of the Kumaon region, home to thousands of ambitious students preparing for medical, engineering, defense, and civil services careers: - **Premier Degree Colleges:** Motiram Baburam Government Post Graduate College (MBPG College) and Women's Degree College providing extensive undergraduate and postgraduate humanities, commerce, and science programs. - **Competitive Coaching Ecosystem:** Highly reputed coaching academies for NEET UG, JEE Main & Advanced, UPSC Civil Services, UKPSC/UKSSSC, NDA, CDS, and Banking examinations along Kaladhungi Road and Tikonia. - **Affiliated Schooling Infrastructure:** Esteemed CBSE, ICSE, and Uttarakhand Board schools imparting value-based holistic education with modern sports and laboratory facilities.

Real Estate, Housing Colonies & Urban Expansion Trends

Driven by rapid infrastructure expansion and high quality of life, Haldwani's real estate market is expanding outward into organized residential colonies: - **Prime Residential Localities:** Highly sought-after residential sectors in Mukhani, Kusumkhera, Kaladhungi Road, Judge Farm, Daharia, and Bhotia Parao offering planned housing, green parks, and modern civic amenities. - **Commercial Property Investments:** Thriving commercial retail complexes, office spaces, and warehouse hubs developing rapidly along the proposed Haldwani Ring Road and transport corridors. - **Property Advisory & RERA Compliance:** In-depth real estate updates, circle rate revisions by the Nainital district administration, and buyer advisory guidelines for safe property acquisitions.

Strategic Transit Gateway, Tourism Routes & Kumaon Himalayan Connectivity

Haldwani-Kathgodam is the vital transit bridge connecting the plains of Delhi NCR and Uttar Pradesh with the hill stations of Uttarakhand: - **Kathgodam Railway Terminal:** Connecting Kumaon directly to New Delhi (Shatabdi Express, Ranikhet Express), Lucknow, Kolkata, Jammu, and Dehradun. - **ISBT Haldwani:** Operating round-the-clock interstate and mountain bus routes managed by Uttarakhand Transport Corporation (UTC) and private deluxe coaches. - **Pantnagar Airport (PGH):** Located just 26 km from Haldwani, offering scheduled domestic flights to New Delhi, Dehradun, Pithoragarh, and regional hubs. - **Himalayan Tourism Hub:** The primary staging point for journeys to Nainital (34 km), Bhimtal (30 km), Mukteshwar (72 km), Kainchi Dham (42 km), Almora (90 km), Ranikhet (80 km), and Jim Corbett National Park (55 km).

Gaula River Mining, Ecological Balance & The Bhabhar Economy

The Gaula River represents the undisputed economic and hydrological lifeline of Haldwani and the broader Nainital district. Originating from the Sattal-Bhimtal catchment in the lesser Himalayas, the river flows south past Kathgodam and Haldwani before merging into the Ramganga. For generations, the Gaula riverbed has provided the foundation for both regional agriculture and the construction economy across northern India: - **Regulated Minor Mineral Extraction:** During the open mining season (typically October to May), thousands of registered tractor-trolleys and heavy dumpers harvest riverbed gravel, sand, and boulders under strict surveillance by the Uttarakhand Forest Development Corporation and the Nainital district administration. - **Livelihood Support for Over 50,000 Families:** The Gaula mining economy directly and indirectly sustains vehicle owners, drivers, mechanics, diesel pump stations, roadside eateries, and local laborers, circulating over ₹500 crore into Haldwani's local markets annually. - **Environmental Safeguards & Flood Mitigation:** In strict adherence to High Court and National Green Tribunal (NGT) directives, scientific replenishment studies, satellite GPS tracking on transport vehicles, and seasonal mining bans during the monsoon protect the river's ecological balance and prevent bank erosion along low-lying residential sectors.

Culinary Landscape: From Traditional Kumaoni Rasoi to Modern Cafes

Haldwani's gastronomic scene reflects a delightful blend of rustic mountain traditions and cosmopolitan dining: - **Authentic Kumaoni Specialties:** Local restaurants and heritage dhabas serve traditional mountain delicacies cooked in iron vessels, including Bhatt ki Churkani (black soybean curry), Gahat ke Dubke (horsegram puree), Aloo ke Gutke tempered with wild Himalayan chives (Jamboo) and Jakhiya, and refreshing cucumber Raita flavored with freshly crushed mustard seeds. - **Traditional Confectioneries:** Historic sweet shops along Bada Bazaar and Nainital Road craft Almora's world-famous Bal Mithai (roasted caramelized khoya fudge coated in sugar balls) and Singaudi (sweetened khoya wrapped in wild Malu leaves). - **Vibrant Street Food & Cafe Culture:** As dusk falls, Tikonia and Nainital Road come alive with bustling street food stalls offering steaming Tibetan momos, spiced thukpa, Kathi rolls, and hot Masala Chai, alongside modern rooftop cafes serving specialty Italian coffees and continental snacks.

Cultural Festivals, Folk Heritage & The Aipan Art of Kumaon

Beyond commercial enterprise, Haldwani is the proud cultural showcase of Devbhoomi Uttarakhand: - **Aipan Folk Art Tradition:** The sacred geometrical floor and wall art handcrafted with red ochre (Geru) and white rice paste (Biswar) adorning thresholds, altars, and chowkis during auspicious ceremonies, now preserved through local women's self-help cooperatives. - **Classical Baithki & Khadi Holi:** Unique to Kumaon, musical celebrations starting as early as the month of Paush, featuring classical Hindustani ragas sung in community courtyards followed by energetic Chholiya dance performances during spring. - **Nanda Devi & Chholiya Heritage:** Grand annual fairs celebrating the patron deity Nanda Devi, accompanied by martial sword-and-shield Chholiya dancers whose rhythmic brass trumpets (Ransingha) and hurka drums resonate through the valley.

Public Amenities, Parks & Community Spaces in Haldwani

Urban lifestyle and recreational infrastructure in the city: - **Green Parks & Walking Tracks:** Walkway projects around Daharia, Judge Farm, and Awas Vikas providing lush recreational zones for families and seniors. - **Community Centers & Sports Grounds:** Multi-purpose auditoriums and grounds hosting cultural melas, badminton tournaments, and community celebrations. - **Gaula Barrage & Forest Trails:** Scenic river viewpoints and natural birdwatching areas attracting eco-tourists and local nature enthusiasts on weekends.

Frequently Asked Questions (FAQs)

How can I access live breaking news and weather alerts for Haldwani?

Haldwani Times operates a dedicated 24/7 hyperlocal newsroom providing real-time breaking bulletins, traffic alerts, and meteorological warnings. You can access live news directly from our homepage, subscribe to instant browser push notifications, or view categorical updates on Uttarakhand, Education, and Mandi Bhav. During monsoon and winter weather events, our correspondents provide live updates on NH-109 road blockages and emergency administrative orders issued by the Nainital District Magistrate.

Is Haldwani Times completely free to read for all visitors?

Yes, Haldwani Times offers completely unrestricted, open-access reading to all users without mandatory paywalls. Readers across Haldwani, Uttarakhand, and the global diaspora can freely browse all breaking news reports, investigative articles, business directory listings, and historical archives. Our public-interest mission ensures that essential civic information, emergency hospital directories, and educational circulars remain universally accessible to everyone at zero cost.

How can local business owners list their shop or service in the Haldwani directory?

Local merchants, medical practitioners, schools, and service professionals can register their business by navigating to our 'Business Directory' page and selecting 'Add Listing'. The registration process allows you to input your business name, address, contact numbers, operational hours, services offered, and high-resolution showroom photographs. Once submitted, our local verification team verifies the physical address within 24 hours to ensure high consumer trust and top ranking on Google.

Can I read Haldwani Times articles in Hindi as well as English?

Yes, Haldwani Times features a seamless, native bilingual reading experience tailored for our regional readership. With our one-click language toggle located prominently in the navigation bar, you can instantly switch between English and pure Hindi. Both versions feature carefully crafted editorial phrasing, accurate regional terminology, and culturally resonant storytelling to ensure maximum readability for students, families, and senior citizens alike.

How do I submit news tips, event notices, or press releases to the editorial team?

Our newsroom warmly welcomes verified news tips, community event notices, civic grievances, and official press releases from citizens and local organizations. You can submit your documents, photos, or video evidence directly to our central editorial desk at editorial@haldwanitimes.com or via our Help & Support page. Our senior editors review every submission for factual authenticity, multi-source verification, and public relevance prior to publication.

Where can visitors find authentic Kumaoni Bal Mithai and Singaudi in Haldwani?

Renowned traditional sweet houses clustered along Bada Bazaar, Mangal Parao, Kathgodam Station Road, and Nainital Road specialize in daily batches of authentic Bal Mithai and fragrant Singaudi prepared with pure mountain dairy khoya and natural ingredients.

What transportation options are available for traveling from Haldwani to Nainital and Bhimtal?

Continuous state transport buses (UTC), KMOU coaches, and registered taxi union sharing cabs operate 24/7 from the Haldwani Roadways Bus Station (near Tikonia) and Kathgodam Railway Station. Fares are regulated by the transport department, with mountain travel times ranging between 1 to 1.5 hours.