Skip to main content

atm-bd

atm-bd provides a terminal dashboard and single-tick cron runner for ATM and Beads orchestration. It also bundles the orchestration skills for installation into a repository.

Development validation

From the repository root, just lint runs the console's lint and type gates. Pyright checks only apps/atm-bd-console/src, including the enum matches whose assert_never fallbacks make missing cases type errors. tests/ is not included in the static type-check gate; the test suite is validated by pytest at runtime. Ruff checks both src and tests. The GitHub Actions console source type-check step uses the same scope.

Run the checks directly from apps/atm-bd-console:

uv run --frozen pytest -q
uv run --frozen --group dev ruff check src tests
uv run --frozen pyright src

Installation and prerequisites

Install the package with uv tool install atm-bd (Python 3.11 or newer). The console and cron commands operate on a configured repository and require the atm, bd, and git executables on PATH. The Status graph also uses mmdflux when available.

Before running atm-bd skill, install the sc-compose CLI and ensure the host python3 on PATH can import pydantic, yaml (PyYAML), and the sc-compose Python wheel. The CLI, host wheel, and the wheel in the atm-bd environment must have matching versions within the bundled manifest's range; the installer checks these requirements before writing files. The host Python dependencies can be installed with python3 -m pip install pydantic pyyaml 'sc-compose>=1.7.0,<2'; install the matching sc-compose CLI separately.

From the repository root, run atm-bd skill to install the bundled skills without fetching a release. It reports the bundled source ref, commit SHA, and app version. Use atm-bd skill --help for release and destination options.

Console operational logs

Launch settings

Run atm-bd console --phase bh from the repository root. For one cron tick, use atm-bd cron --phase bh; add --dry-run to preview actions. The phase file .atm-bd/phase-bh.toml supplies the assignment identity and template paths:

plan = "docs/plans/phase-bh.jsonl"
root = "atm-phase-bh"
integration_branch = "integrate/phase-bh"
lead = "solar"

[templates]
dev = ".claude/skills/atm-bd-orchestration/templates/dev-template.xml.j2"
dev_fix = ".claude/skills/atm-bd-orchestration/templates/dev-fix.xml.j2"
fix = ".claude/skills/atm-bd-orchestration/templates/fix-assignment.xml.j2"
sanity = ".claude/skills/atm-bd-orchestration/templates/dev-sanity-template.xml.j2"
qa = ".claude/skills/atm-bd-orchestration/templates/qa-template.xml.j2"
plan_review = ".claude/skills/atm-bd-orchestration/templates/plan-review-template.xml.j2"
review = ".claude/skills/atm-bd-orchestration/templates/review-template.xml.j2"

All seven purposes are required. Each value must name an existing file under the installed template directory, relative to the repository root. Missing, empty, unknown, or invalid settings produce config_invalid naming the key before the console starts. Console --as is removed; lead is read only from the phase file, with no environment or repository YAML fallback. Each tick reloads these phase settings. Team and sanity/QA recipients still come from .atm.toml and .claude/project/atm-bd-orchestration.yaml, respectively.

The console automatically assigns ready sanity and QA work using templates.sanity and templates.qa. It passes the configured path to atm task assign --template and the phase lead to ATM's --as. The other purposes support orchestration workflows and do not enable additional console dispatch kinds.

Plain notifications use atm-bd@tool by default, independently of the lead used for assignments. The skill installer provisions the default tool identity. To use another sender, set tool_identity: "member@team" in .claude/project/atm-bd-orchestration.yaml and provision that identity in ATM. Environment variables and command-line flags do not select the sender; ATM subprocess identity and team are set from the selected sender. Failed sends remain visible in snapshot errors and cron error lines. Task assignments remain local to the lead's team (cross-team assignments are tracked by atm-core #1870).

Dispatch verification

Ready sanity and QA assignments require a successful merge check for their branch and target. Missing results, missing targets, timeouts, and unsupported git commands hold assignment with an actionable problem until verification succeeds. The persisted merge states remain clean (verified), conflict, and error (verification unavailable); a failed probe replaces any cached clean result. PR and CI status never hold assignment.

Each tick with a ready assignment candidate refreshes origin before pinning a commit. A fetch or remote-ref read failure appears in the snapshot and logs, holds assignment, and clears eligible cached refs so recovery retries safely. --no-fetch explicitly skips refresh and permits the saved remote refs, while still requiring a successful current merge check.

Operational events

The console owns one sc-observability logger for its repository for the life of the process. All ticks reuse it, including stopped and failed ticks. Logs live under .atm-bd/atm-bd/logs/; the console sink is disabled. Each tick flushes admitted events before saving its snapshot. Logger construction, event admission and flush failures appear in the snapshot's Errors section and in headless error output. They do not change whether a dispatch succeeded. After repairing a logger construction failure, restart the process to retry initialization.

Each proposed assignment, send or batch has an action event containing effect, recipient, all task_ids, outcome, and the complete typed delivery error (or null). Outcomes are sent, failed <error kind>, and dry_run. Dry runs never deliver an ATM effect. Events cover every action even when the dashboard's recent-action list retains only five. A logging error means the operational log may be incomplete; use the snapshot's delivery outcomes and Errors section to investigate. Source reads and git fetch/merge probes record their operation, outcome and typed error, with team, task IDs or branch context where available. hold events record the task, recipient and hold reason; they do not introduce additional dispatch rules.

The phase's .atm-bd/atm-bd/<root>/actions.jsonl is an append-only journal. Assignment/send entries record attempts, followed by a hold entry on failure; dry_run entries record previews. An attempt entry alone is not proof of delivery. Operational action events carry the explicit outcome.

Retention and rotation

The console does not enforce an age or size retention limit on either the operational log directory or actions.jsonl. Both require operator-managed rotation. Check their disk usage daily; archive at least weekly or when either reaches 100 MiB. Keep compressed archives for 30 days unless the project's audit policy requires longer. These are maintenance recommendations, not automatic limits.

To rotate safely:

  1. Pause cron launches and stop every console using the repository. Logs are shared across its phases, so stopping just one phase is insufficient.
  2. Move the entire logs/ directory and each phase's actions.jsonl to a timestamped archive outside the runtime directory. Compress the archive and expire archives older than the chosen retention window.
  3. Leave state.json, snapshot.json, merge.json, prs.json, and lock files in place. They are current runtime data, not log archives.
  4. Restart the consoles and resume cron. The logger recreates its directory; the next action recreates actions.jsonl. Check the next snapshot for logging or journal write errors.

Do not truncate or rename active logs while writers are running. A scheduled rotation job must coordinate the same stop/archive/restart sequence.

Metadata

Release files for atm-bd 0.17.3

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

Source distribution (sdist)

Source distribution for atm-bd 0.17.3
File Size Uploaded Provenance
atm_bd-0.17.3.tar.gz 705.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for atm-bd 0.17.3
File Interpreter ABI Platform
atm_bd-0.17.3-py3-none-any.whl Python 3 none any Details

Total release size: 1.3 MB

Release files / atm_bd-0.17.3.tar.gz

Download URL atm_bd-0.17.3.tar.gz
Size 705.0 kB
Tags Source
SHA-256 checksum
How to use checksums
87e8a88caa2e1afc06421a58510177ea2e449d5fd8f85e6feee1d642ef1d5329
BLAKE2b-256 checksum
How to use checksums
4bfba9e0978c63b00c7d3dcd6a2bb180ae542618a4e7c9ae94c07d1ba636e747
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.17

Release files / atm_bd-0.17.3-py3-none-any.whl

Download URL atm_bd-0.17.3-py3-none-any.whl
Size 581.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
343b8a55726d8c04b11153fa9c83842529c1a1955ca7d4c586a7ca7e0506cf60
BLAKE2b-256 checksum
How to use checksums
6345415b989db251a4934cbb2cd839037431239ff7263b9f5081c276d2007637
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.17

Security for atm-bd 0.17.3

Provenance

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page