Metadata-Version: 2.4
Name: party-continuum
Version: 0.5.1
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` selects impacted tests, runs a frozen
snapshot, and reports results in one command. Local is the default. The indexed baseline policy
must opt in with `evidence.local_build = true` for those results to satisfy the
ledger. This trusts authenticated developers' build receipts; CI stages still
require an approved runner. Build profiles can define a baseline-owned `local`
setup to use Python/Node and dependencies already installed in the working
environment. Native build checks never start Docker or pull images. Missing or
incompatible dependencies fail with setup instructions; CI work stays pending.
The frozen source and normal report/lease checks still apply. PR/merge execution
keeps its pinned CI images and registry access.

An operator-provided `CONTINUUM_EXECUTOR_URL` and request-only
`CONTINUUM_EXECUTOR_TOKEN` optionally delegate execution to a separate trusted
executor. Never give its signing credential or Docker access to the coding agent.
Choose `--execution local|runner` for one build run, or set
`CONTINUUM_BUILD_EXECUTION=runner` in a Party Environment. These override the
indexed `[execution.build]` default but cannot override its allowed locations or
parallel-check limits. Settings → Validation previews a policy PR to change the
repository default. Runner mode requires an already provisioned executor; it
never silently falls back to local. Prepared runner images own dependencies;
queue, upload and cold image-pull costs can outweigh a tiny local test.
See [operator setup](../VALIDATION_LEDGER.md) for provisioning and reuse semantics.

`CONTINUUM_EXECUTOR_URL=github://OWNER/REPO` instead uses the repository's reviewed
`continuum-build.yml` dispatch workflow and its immutable, admitted reusable adapter.
It requires GitHub CLI with repository write and Actions access, not an executor
token. The CLI publishes the exact dirty tree on temporary refs, dispatches build
validation, waits through `gh run watch`, and retrieves the authoritative ledger.
It never runs tests in the agent Environment. Completed runs remove their source
refs; uncertain or still-active runs retain them. PR and merge checks keep their
existing workflow. CLI 0.5.1+ is required for this transport.


Targeted pytest validation keeps individual completed results even when its batch
fails. Repeat `continuum validate run --stage build`;
Continuum assigns only unfinished/failed work. After editing, invoke the same
command: Continuum plans the new snapshot and reconciles valid evidence
according to the indexed policy. `reuse = "dependency-inputs"` permits verified
per-test file-dependency reuse; `exact-tree` remains the conservative default.
The JSON result includes per-test evidence provenance and reuse/invalidation
reasons. Whole suites and unsupported reporters retain command-level receipts.
