Metadata-Version: 2.4
Name: party-continuum
Version: 0.7.0
Summary: Change impact from Party's Continuum: what a change reaches, how risky it is, which tests reach it
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# continuum

Change impact from Party's Continuum, for people and coding agents: what a
change reaches, how risky it is, which tests reach it, and what no test reaches.
Continuum keeps a dependency graph of each repository current as its default
branch changes; this CLI asks it about your checkout.

```bash
pip install party-continuum        # or: brew install maitai-inc/continuum/continuum
continuum login                    # a browser code; saves a revocable token
```

Before an edit:

```bash
continuum dependents billing/charge.py::charge --depth 2   # what depends on it
continuum impact --plan charge --change signature          # the reach of a planned change
```

After an edit (the working tree against the default branch):

```bash
continuum impact      # reach, impact and risk grades, and what drives them
continuum tests       # every test that reaches the change, with commands to run them
continuum untested    # reached code that no test reaches: add tests here
continuum explain api/refunds.py::refund   # why the change reaches it
```

Every command takes `--json`. `--repo owner/name` overrides the checkout's GitHub
origin, and `--base` / `--head` choose what to compare.

**Impact and risk are separate.** Impact is how much behavior the change can
reach. Risk is how much of that no test would notice: reached code no test
reaches, code still using something the change removes, and changes Continuum
cannot see through. A wide, well-tested change is high impact and low risk; a
small change to untested code is the reverse. Both are graded against the
repository's own recent changes.

**What it sends.** The paths of your changed files and the contents of changed
text files (at most 4 MB); never other files, and nothing unless you run a
command. The graph lives with Continuum, so answers take about a second.

**Tokens.** `continuum login` saves a token that reads Continuum and nothing
else; logging in again or using it keeps it alive, and `continuum logout` revokes
it. For CI and agent Environments, create a fixed token and set it as
`CONTINUUM_TOKEN`:

```bash
continuum token create --name "skipper Environment" --repo maitai-inc/skipper --days 90
continuum token list
continuum token revoke <id>
```

Requirements: Python 3.11+ and git. Continuum is for members of the Party
organization; `CONTINUUM_URL` points the CLI at another Party server.

## Setup and trusted development checks

`continuum login --validation` installs missing repository agent instructions; use
`--no-skill` to opt out or `continuum init` to install later. Custom skills are
preserved. `continuum doctor` diagnoses configuration without claiming a live
execution succeeded. Headless keys can also be created in dashboard Settings.

`continuum validate run --stage build` submits the frozen working snapshot and
phase to the Continuum API, follows progress, and returns the verdict. The service
owns selection, input-based pass reuse, runner dispatch, concurrency, cancellation
and results. Agents need a validation token; they need no GitHub dispatch access,
executor credential or Docker. Source submission uploads only changed blobs and
deletions; the service verifies the resulting Git tree against the baseline.

For asynchronous execution:

```bash
continuum validate run --stage build --detach
continuum validate watch RUN_ID
continuum validate watch RUN_ID --events-json --after 42
continuum validate run-status RUN_ID
continuum validate stop RUN_ID
```

Disconnecting a watcher does not cancel execution. Requests are idempotent and
reconnect to accepted work after a lost response. Event cursors survive service
restarts. GitHub gets normal streamed logs, failure annotations, a job summary and
links to runner logs. Failed tests produce a failing verdict.

Repository policy chooses local or runner build execution. `--execution local`
explicitly launches the separate `continuum-runner` adapter in the coding
environment; it pulls work from the same service and does not start Docker.
`--execution runner` uses service-managed GitHub/Blacksmith execution. The service
enforces allowed locations and worker limits. Local passes satisfy the ledger
only when the baseline explicitly trusts them; otherwise they remain observations.
PR/merge phases require protected runner execution. Prepared runtime images own
runner dependencies. See [operator setup](../VALIDATION_LEDGER.md).

If dependency analysis cannot narrow selection safely, the service runs the
reviewed conservative suites. Responses include `selection.mode`, `reasons`,
`phase` and `suites`; the dashboard labels conservative runs and their reason.
A setup without executable suites is a configuration error, never an empty pass.

A pre-submission availability failure exits 75 so GitHub can invoke the
user-defined complete-phase fallback. Lost submission responses or interrupted
watches do not authorize duplicate fallback runs: reconnect first. If the CLI
or service cannot be used, agents can run documented repository tests themselves;
report the snapshot, commands, outcomes and skips separately from hosted evidence.
A test failure cannot become a pass through fallback.

After edits, repeat `continuum validate run --stage build`. The service retries
failed/unfinished work and invalidates passing results only when relevant inputs
changed. `reuse = "dependency-inputs"` permits verified per-test file-dependency
reuse; `exact-tree` remains the conservative boundary when dependencies cannot be
proven complete. Whole suites and unsupported reporters keep command-level receipts.

Hosted execution requires API run protocol 1, PostgreSQL migration 016 (SQLite
010), a released CLI/runner 0.6.0+, an admitted immutable runner workflow and the
GitHub App's repository-scoped Actions write permission. Index access retains its
separate read-only credential. Install the generated setup PR before activating
new callers; legacy workflows remain independently pinned during that rollout.
