Skip to main content

Local control plane for work with claim, evidence, receipt, and work-ledger primitives

Project description

Motus CLI

The Motus CLI is the reference local interface for the work-packet and ledger loop. It is the reference implementation of the shipped Motus packet and ledger surface.

  1. define or select a work item,
  2. claim active ownership,
  3. attach evidence while the work happens,
  4. release with a terminal receipt.

Install

pip install motusos
motus --help

First Local 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

What this proves:

  • the CLI is installed,
  • the local workspace is initialized,
  • a work item can be claimed,
  • evidence can be attached,
  • a terminal receipt can be emitted.

Reference Release Workflow

Motus now includes a bounded compiled release workflow surface:

motus release scaffold --release-id 0.3.13
motus release sync --release-id 0.3.13
motus release validate --release-id 0.3.13
motus release finalize --release-id 0.3.13

When running from the source tree instead of an installed CLI, bind to the repo package explicitly:

PYTHONPATH=src python3 -m motus.cli release scaffold --release-id 0.3.13
PYTHONPATH=src python3 -m motus.cli release sync --release-id 0.3.13
PYTHONPATH=src python3 -m motus.cli release validate --release-id 0.3.13
PYTHONPATH=src python3 -m motus.cli release finalize --release-id 0.3.13

That workflow forms the release as explicit work:

  • one authored release-source.json,
  • one generated workflow manifest,
  • six generated stage packets,
  • one generated receipt template,
  • one generated metrics template,
  • one strict final-receipt.json.

Workspace layout:

.motus/releases/{release-id}/
  release-source.json
  generated/
    workflow.json
    packets/*.json
    receipt-template.json
    metrics-template.json
  final-receipt.json

Rules:

  • release_id must be a slug using only letters, digits, ., _, or -.
  • release-source.json is the only authored release-instance surface.
  • generated outputs are disposable and are rebuilt by sync.
  • validate is no-write and fails closed on drift.
  • finalize emits one immutable final receipt.

It is a reference workflow surface, not a hidden orchestration engine. The packets route to capability classes and keep runtime-brand decisions behind the adapter boundary.

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.3.13.tar.gz (390.2 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.3.13-py3-none-any.whl (581.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for motusos-0.3.13.tar.gz
Algorithm Hash digest
SHA256 5ab9e88ea22c4b10fc3e3678594518874c805978df2b018f634ca4f80474ed7f
MD5 b85dfc3de19323d82326d6109293e6ea
BLAKE2b-256 9377a713f10f6079c80a2e32140d5d2aa90ff30c857f939468c97e9428b16db0

See more details on using hashes here.

Provenance

The following attestation bundles were made for motusos-0.3.13.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.3.13-py3-none-any.whl.

File metadata

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

File hashes

Hashes for motusos-0.3.13-py3-none-any.whl
Algorithm Hash digest
SHA256 13e7d575c52ec8b9a13b5c7845af9f288d83819663dd30211da342abf2485f0e
MD5 5b98e981db4cd0aa8253eb69f5bdbd26
BLAKE2b-256 b69b3982de65309a5f903203cf204feeec19b3f0ea3454ca56cb9b1e3b79689e

See more details on using hashes here.

Provenance

The following attestation bundles were made for motusos-0.3.13-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