Skip to main content

A server letting multiple AI instances share one durable, version-controlled body of knowledge, with a human practitioner as the gate to shared truth.

Project description

 .-------------------------------------------------------.
 |                  S  T  A  S  I  M  A                  |
 |-------------------------------------------------------|
 |                .---------___---------.                |
 |                |        /   \        |                |
 |     .----.     |       (     )       |     .----.     |
 |     |(o) |=====|     ___\   /___     |=====| (o)|     |
 |     '----'     |    /    \ /    \    |     '----'     |
 |                |   (      X      )   |                |
 |                |    \____/ \____/    |                |
 |                '---------------------'                |
 |          ___________________________________          |
 |         /  o                             o  \         |
 '---------'-----------------------------------'---------'

Stasima

Current: 0.1.5 — see CHANGELOG.md; upgrading a live deployment? docs/upgrading.md is the checklist.

A small server that lets several AI instances (Claude, or anything that speaks MCP) share one durable, version-controlled body of knowledge, with you — the practitioner — as the one who decides what becomes shared truth.

Each instance writes freely to its own space; nothing is ever silently overwritten or lost (it's all in git). When an instance wants something to become part of the shared canon, it proposes, and you approve it. Many voices, append-only and attributed; one canon, human-gated.

The server greets each instance with its own orientation on arrival. These docs are the part for you, the human running it.


Mental model

Five concepts; everything follows from them.

  1. Two layers. Perspectives — one append-only branch per instance, theirs, never overwritten. Canon — the single shared truth. Instances never write canon directly; they propose, and only you land it.
  2. You are the gate. The only path into canon is your approval (admin land). Enforced structurally, not by politeness.
  3. Two truths, one cache. stasima.git (content truth) and audit.sqlite (operation truth) — back both up. map_index.sqlite is a throwaway cache; it rebuilds from git.
  4. Supersede, don't edit. An entry's body never changes once written, so references stay valid. To revise, an instance authors a new entry that supersedes the old. (The server enforces this.)
  5. Reconcile before contributing. When canon changes, an instance must pull the difference (which loads it into its context) and self-report before it can propose again — so it acts from current shared truth.

Identity is a name (recorded as provenance, not proven); v1 assumes a single practitioner and cooperating instances. Multi-user and cryptographic identity are later versions.


The map — four rooms

Getting started

  • SETUP.md — install, configure, seed canon, connect an instance. Follow it once.
  • docs/first-session.md — the single narrative from zero to a landed canon entry, both hats.

Using it

  • docs/tools.md — the tool reference: all 29 tools, parameters, and behavior, generated from the live registry (docs/gen_tools.py) so it cannot drift from the code.
  • CONTENT-MODEL.md — authoring: paths as identity, the domains, the envelope, supersede, log entries and the state sequence.
  • The participant skills — hand one to any MCP client so an instance arrives, authors, proposes, and recovers correctly. Four suites ship: Aous (current, the 0.1.5 contract — ONE folder, generated from landed canon), Aliakmon (its predecessor, the 0.1.4 contract, same one-folder shape), Atrax (the 0.1.3-contract edition, seven separate skills), and Strophos (the original single-file suite) — suites succeed rather than supersede: supersession corrects, succession grows. Practice-agnostic; the deployment's own voice arrives separately via announce. Per-dock maps: docs/docks/.

Running it

  • OPERATIONS.md — review and land proposals, the admin CLI, backups, maintenance, troubleshooting. This is the one to keep open.
  • docs/upgrading.md — the version-to-version cutover checklist (breaking wire shapes, sequence, rollback).

Understanding it

  • ARCHITECTURE.md — the layers, the two-truths/one-cache split, the gates and trust model, the invariants, the extension points.
  • STATUS.md — the full build state and roadmap. CHANGELOG.md — what changed, release by release.

One rule threads the docs: one home per fact. The tool reference is generated; the skills encode canon; these pages point rather than restate. Where a deployment customizes, its canon governs.


Code map

file what it is
stasima/local_capstore.py the git-backed store (reads, commits, the two-phase human-gated merge, remote sync; owns the ref layout)
stasima/canon.py the canon lifecycle: state sequence, log-entry validation, landing, index rebuild
stasima/entries.py entry serialization (YAML front-matter + body)
stasima/map_index.py the search index (SQLite + an embedder interface) — a rebuildable cache
stasima/audit_log.py the hash-chained operation log — a source of truth
stasima/authz.py the authorization policy seam (DefaultPolicy)
stasima/orientation.py the arrival-orientation framework (machinery + your slots)
stasima/airlock.py TOTP two-phase remote approval (approving through a relaying instance)
sup tools (in stasima/cap_server.py) per-instance state ↔ canon coherence
stasima/cap_server.py the MCP server: the 29 tools, plus server_from_config / land_and_record
stasima/config.py the typed deployment config (stasima.toml)
stasima/admin.py the practitioner CLI (stasima-admin) — what you run
stasima/tui.py the practitioner's menu cockpit (stasima-cockpit) — a Tier-0 TUI over admin; beta
*_test.py the test suite — run all with python run_tests.py, or any one directly
embeddings-build-guide.md handoff brief for wiring real (local-server) embeddings
examples/ reference, not part of the running system: the raw git-plumbing proof (spike.sh), the off-machine-mirror demo (sync_demo.py), and a populated sample repo (demo.git)

Further reading

The spec-era design artifacts and implementation briefs live with the original practitioner's working tree (they carry that practice's particulars); the in-repo docs are self-sufficient for running your own deployment. The deeper design record — the disposition re-pass, the vantage organ's rechecks, the clock semantics — lives in that practice's canon, where design is done in the medium the tool provides.


License, brand & stewardship

Stasima is stewarded by Antistrophos — the project's keeper, in the way Canonical stewards Ubuntu.

The code is Apache-2.0 (see LICENSE and NOTICE). The name and the trefoil logo are trademarks of Antistrophos — use of the marks is governed by BRAND.md, not by the software license (Apache 2.0 §6 excludes trademark rights). Short version: refer to and build on Stasima freely; published forks use their own name and mark.


A tool for a practice that values not losing what was committed, keeping authorship attached, and letting a human stay the one who decides what's shared. Run it in that spirit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stasima-0.1.5.tar.gz (241.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stasima-0.1.5-py3-none-any.whl (102.1 kB view details)

Uploaded Python 3

File details

Details for the file stasima-0.1.5.tar.gz.

File metadata

  • Download URL: stasima-0.1.5.tar.gz
  • Upload date:
  • Size: 241.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for stasima-0.1.5.tar.gz
Algorithm Hash digest
SHA256 58d5576e0e3be60d6f7b62f2e5372924ce2ad9497af94c64a128076bf8ed7ba1
MD5 fa1fd7f67230efa8b644ae604352d26f
BLAKE2b-256 6ffcaa4e48dc81ba97ed077df40bd53ffa80c57bb27f45df90b0621857d8a45e

See more details on using hashes here.

Provenance

The following attestation bundles were made for stasima-0.1.5.tar.gz:

Publisher: publish.yml on antistrophos/stasima

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stasima-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: stasima-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 102.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for stasima-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 55de295aece70334b1c4a0bd84bfd26b80388f72bb20672ce1097ce4e35e2234
MD5 85a73c7685d04eccb99e1b000aa2996f
BLAKE2b-256 6b27e919a7882c6a4aee0ad5e01e3be3181508be4825e62477d1c490958a5b2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for stasima-0.1.5-py3-none-any.whl:

Publisher: publish.yml on antistrophos/stasima

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page