integration guide

Overview

integration (lmctl-ai/integration) is the end-to-end verification and reusable GitHub Actions repository for published lmctl, lmscript, and lmcode host artifacts. Instead of testing an unbuilt source tree, every job installs released npm packages (@lmctl-ai/lmctl) and SHA-256-verified GitHub release binaries into a private temporary prefix and exercises them through multi-tier scenarios and negative controls.

Reusable setup action (actions/setup)

The setup action (lmctl-ai/integration/actions/setup@<full-commit-sha>) prepares a clean runner environment without touching global state:

T0 and T1 scenario tiers and hermetic isolation

Every scenario is launched through scripts/run-scenario.sh and scripts/hermetic.sh, which copy the scenario into a scratch directory, create a private HOME, LMCTL_DB, and cache, and scrub the inherited lmctl session variables such as LMCTL_SELF_SESSIONID; the scenario scripts pass --no-preflight to lmscript:

Ported mono-test tier and vacuity controls

suites/mono-test ports the mockable portion of lmctlhq/lmctl-mono-test (88 entries cataloged in inventory.tsv as ported, support, skip-host, or skip-live) and executes them against the installed lmctl binary via node suites/mono-test/run.mjs with a scrubbed PATH so host provider CLIs cannot leak in.

Known version-skew exceptions in allowlist.json require suite, match, reason, owner, and an expiration date (expires); expired or uncovered failures turn the job red, and stale allowlist entries on passing suites are flagged. Running node suites/mono-test/run.mjs --control broken-bin substitutes a no-op lmctl that exits 0 with empty output; any lmctl-driven suite that remains green is reported as VACUOUS and fails the build.