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.

Skill install integrity contract

atm_bd_console.skill_integrity.write_install_record(dest, version, commit, manifest, installed, *, source) writes dest / RECORD_NAME, where RECORD_NAME is atm-bd-install.json. The JSON record contains version, commit, source (ref and manifest_aggregate), and a sorted files list of {path, sc_sha} entries for the bytes actually installed. The source argument is the source ref string; rendered installer values mean installed file hashes can differ from the published manifest hashes.

The installed atm-hook-doctor.py checks that record. Manual mode prints one ok, modified, missing, or extra line per checked path and a final PASS/FAIL line. Doctor-hook mode accepts a JSON object with hook: doctor on stdin and returns only success, message, and findings; an unreadable record produces the install_record_unreadable error finding. A malformed request produces request_invalid and exits 2. The record describes atm-bd skill installs only; a legacy install.py install has no record and fails closed as install_record_missing.

If skill files were installed but the record could not be written, the CLI reports that partial result and gives the atm-bd skill --overwrite recovery command. Bare installs verify the packaged skill tree against the manifest shipped in the same wheel; this checks the packaged bytes, not release provenance or signatures.

Console operational logs

Launch settings

GitHub polling defaults to GraphQL every 600 seconds, with a minimum remaining quota of 50 percent. Set github_poll_interval (seconds) and github_quota_threshold (integer percent, 0–100) under [console] in .atm-bd/console.toml, or override them with --github-poll-interval and --github-quota-threshold. The status bar shows both settings. Each GitHub request checks the applicable shared gh api rate_limit resource first. Below the threshold it retains cached PRs and shows the local reset time; forced refreshes obey the same limit. GitHub's quota endpoint can be stale, so a rate-limit response also pauses requests until the reported reset. GraphQL requests paginate through all PRs and check quota before every page. The status bar shows the core and GraphQL quotas from the latest existing quota response, the earliest reset in local time, and an age when the data is older than the polling interval. A pause marker identifies a resource below the threshold. Cron emits the same quota text in a JSONL status record; --md-table remains table-only. Unavailable quota values appear as ?/?.

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.18.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.18.3
File Size Uploaded Provenance
atm_bd-0.18.3.tar.gz 846.4 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 1.5 MB

Release files / atm_bd-0.18.3.tar.gz

Download URL atm_bd-0.18.3.tar.gz
Size 846.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ceda0129cc767bb674bfa2fc753c6dd6e0ea590f0692d9524f8e941b13d79a78
BLAKE2b-256 checksum
How to use checksums
c70630fc201f9c438f6f0db5d30aee84b8250bf0e1a3c6636bae83fb0fd4272c
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.18.3-py3-none-any.whl

Download URL atm_bd-0.18.3-py3-none-any.whl
Size 695.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5927adfc785d053a962e8798d264663d8edd6ca383bfecd2b98eea5a480a9de8
BLAKE2b-256 checksum
How to use checksums
44c768fbc6f2fe4fa8e52695cc7441becf64efc254f195c75bcaff6491926471
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.18.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