Skip to main content

Local event-backed work ledger with Store runs, append-only events, receipts, and projections

Project description

Motus CLI

The Motus CLI is the reference local interface for the Store-backed work ledger. The local Store records durable run/event facts; work packets, evidence, decisions, and receipts are projections over those facts.

  1. start or observe a bounded run,
  2. record append-only events,
  3. close with a terminal outcome,
  4. inspect packet and receipt projections,
  5. keep compatibility work loops available while the Store path matures.

Install

pip install motusos
motus --help

First Store Loop

motus wrap -- python3 -c "print('motus store run')"

What this proves:

  • the CLI can execute an observed command,
  • the Store records run and outcome events,
  • output is summarized as metadata rather than persisted as raw transcript,
  • the command path is adapter-backed rather than manually journaled.

Compatibility Work Loop

motus install
motus init --empty --path .
motus doctor
LEASE_ID=$(motus work claim ADHOC-QUICKSTART-001 --intent "First local work item" --json | python3 -c 'import json,sys; print(json.load(sys.stdin)["lease_id"])')
motus work evidence "$LEASE_ID" test_result --passed 1 --failed 0
motus work release "$LEASE_ID" success
motus work receipt "$LEASE_ID"

What this proves:

  • the CLI is installed,
  • the local workspace is initialized,
  • a work item can be claimed through the compatibility lease path,
  • evidence can be attached,
  • a terminal receipt can be emitted and inspected directly,
  • the same loop writes project-local Store run/event truth by default and receipt reads prefer the Store projection.

Light Path Vs Userland

Use the light path for routine bounded command evidence:

motus wrap -- pytest

Use the compatibility work loop only when you need claim/evidence/release ergonomics:

motus work claim ...
motus work evidence ...
motus work release ...
motus work receipt ...

Both paths create or use .motus/kernel-store.db by default. Set MOTUS_KERNEL_STORE_PATH or its compatibility alias MOTUS_STORE_PATH only when you need a different Store path. If both are set, MOTUS_KERNEL_STORE_PATH wins. Set MOTUS_WORK_STORE_BRIDGE=disabled only for explicit compatibility recovery.

Inspect Work Records

Use motus insights self-audit when you want a deterministic diagnostic report over local work records and repository artifacts:

motus insights self-audit --json

The command uses file scans and SQL only. It reports bounded findings such as closure gaps, missing handoff reasons, repeated failure patterns, and process/product imbalance. Default JSON redacts input paths and work-item titles. It does not create facts with a model and does not route work.

Add userland process only when the consequence of the work justifies extra structure, for example:

  • a release decision needs explicit scope, review, and closeout,
  • another actor must inherit the proof and acceptance boundary,
  • the work needs a stricter final receipt than the light loop provides.

Those higher-order workflows should reference Store runs, evidence, decisions, and receipt projections. They should not become a second Store or a hidden orchestration engine.

Framework Portability

The CLI is the reference implementation. The portable framework surface lives in the repository-level spec/, schemas/, semconv/, and conformance/ directories. Those artifacts define the draft Work Receipt Envelope, shared semantic attribute names, and receipt-only conformance fixtures for systems that want to emit Motus-compatible receipts without importing motusos.

Read Next

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

motusos-0.6.0.tar.gz (105.5 kB view details)

Uploaded Source

Built Distribution

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

motusos-0.6.0-py3-none-any.whl (147.4 kB view details)

Uploaded Python 3

File details

Details for the file motusos-0.6.0.tar.gz.

File metadata

  • Download URL: motusos-0.6.0.tar.gz
  • Upload date:
  • Size: 105.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for motusos-0.6.0.tar.gz
Algorithm Hash digest
SHA256 de4b22297957e2b1a7ac4f52aadac3ea719304e2312005f0b76a5f0b09ce9ad4
MD5 8176a4e71ca912f5d5468a7d0a2e0bc8
BLAKE2b-256 2e1d623c12d6fc73513a02c97756d234cfdbc8201f500d818fe9b433b463fc02

See more details on using hashes here.

Provenance

The following attestation bundles were made for motusos-0.6.0.tar.gz:

Publisher: publish.yml on motus-os/motus

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

File details

Details for the file motusos-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: motusos-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 147.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for motusos-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e8a667fcc14c1fde6e6cf0d654da951d7e329196eee748539314cd683f9c134f
MD5 51a819b29c45f0db201e6fdb1d44a4e6
BLAKE2b-256 745656e81b9af516b65d394f97b1a7711d6adb285376c95b52bcabe5a5384fc6

See more details on using hashes here.

Provenance

The following attestation bundles were made for motusos-0.6.0-py3-none-any.whl:

Publisher: publish.yml on motus-os/motus

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