Skip to main content

openadapt-kernel

Self-contained runtime kernel (zero openadapt-flow dependencies, zero per-app code) implementing commit-boundary verification, cross-rail read-back, reversible occlusion probing, online ACI calibration, macro staging, stepwise live-DOM healing, and shadow-to-autopilot execution:

  1. Default-Deny Obligation, Capability, and Saga Ledger (ledger.py): Episodes start UNVERIFIED and emit VERIFIED only when every obligation has an independent post-commit read-back proof and zero dirty form buffers remain. Step-limit timeouts, crashes, and unverified exits deterministically return ESCALATED. Carries both cross-screen <MANDATORY_CONSTRAINTS> and <VERIFIED_CAPABILITIES> (user consent and SSA opaque-ID provenance), with durable Saga checkpointing across multi-system workflows.
  2. Wire and DOM-Effect Commit Interceptor (interceptor.py): Detects commits from actual network mutations (POST, PUT, PATCH, DELETE) or non-empty dirty form submissions instead of button-label regexes. Excludes search/filter inputs from dirty buffers and escapes escalation payloads safely.
  3. Full-DOM Macro Staging and Stepwise Live-DOM Healer (macro.py): Extracts all interactive controls across the full scrollable page (observe_schema), fills an entire form in one pre-commit batch with SSA provenance enforcement (stage_form), and heals drifted UI plans step-by-step against the live mounted DOM (handling modals and dialogs that only exist after earlier clicks).
  4. Cross-Rail Read-Back Oracles (oracles.py): Independent read-only SQLite queries (mode=ro), pure-stdlib PDF content-stream extraction (filtering 3 Tr / 7 Tr invisible text), and multi-tab / fresh-reload DOM verification.
  5. Reversible Pre-Click Probe & Online ACI Calibration (probe.py, aci.py): Hit-tests commit controls via elementsFromPoint plus an 80ms hover/focus probe to block transparent-overlay click-jacking (probe_before_click), and calibrates anomaly thresholds across shifting UI themes via SessionStartNormalizer and Gibbs-Candes OnlineACICalibrator.
  6. Shadow-to-Autopilot, 4-Mutant Offline Qualification, Micro-Handoff, Live Runner, and MCP Server (copilot.py, extension_bridge.py, runner.py, mcp_server.py, cli.py): Induces zero-PII PortalPack specs from live Chrome Co-Pilot extension_evidence.jsonl recordings, qualifies verifiers offline against four counterfactual mutants (zero staging DB), runs Draft-to-Commit or Verified Autopilot across main and child popup windows via Playwright or --cdp-url, signs openadapt.kernel.receipt/v1 Ed25519 receipts, and serves tools over stdio JSON-RPC 2.0 MCP.

CLI Quickstart

openadapt-kernel shadow-sync --dir ./recordings --pack-id portal-v1 --out pack.json
openadapt-kernel qualify --pack pack.json --evidence ./recordings/run_1/extension_evidence.jsonl
openadapt-kernel keygen --priv priv.pem --pub pub.pem
openadapt-kernel keygen --priv pack_priv.pem --pub pack_pub.pem
openadapt-kernel run --pack pack.json --dossier dossier.json --mode draft --cdp-url http://127.0.0.1:9222
openadapt-kernel publish-pack --pack promoted_pack.json --priv pack_priv.pem --registry-dir ./registry
openadapt-kernel run --pack ./registry/portal-v1-<digest>.pack.json --dossier dossier.json --mode autopilot --trusted-pack-pub pack_pub.pem --url https://portal.example --commit-selector '[data-testid="submit-btn"]' --priv priv.pem --receipt-out receipt.json
openadapt-kernel verify-receipt --receipt receipt.json --pub pub.pem
openadapt-kernel serve-mcp --output-root ./mcp-out

Autopilot needs a signed, promoted pack

--mode autopilot submits only when the pack file is a signed openadapt.kernel.pack/v1 envelope that verifies against --trusted-pack-pub and whose signed stage is VERIFIED_AUTOPILOT. An unsigned file, a pack signed by another key, an envelope edited after signing, or a SHADOW or DRAFT_TO_COMMIT stage returns ESCALATED before the browser opens, and nothing is submitted. Draft mode accepts unsigned packs because it stops before the commit control.

The signature also covers where the run may click. Autopilot refuses with autopilot_origin_not_signed unless the page has exactly the pack's portal_origin (scheme, host and port), checked before the browser opens, after navigation or CDP attach, on any popup, and right before the commit click.

Signing with publish-pack is the promotion step, so whoever holds the pack key approves autopilot. Keep that key apart from the receipt key (--priv), which the runner holds. A run never publishes or promotes its own pack.

Autopilot never repairs and commits in the same run. If staging fails or the commit control is blocked, a coding agent may propose a repair inside the zero-PHI twin; the run escalates with the proposal recorded and clicks nothing. If read-back refutes persistence after the commit click, the run escalates with readback_refuted_after_commit and never clicks or submits again. Any run that clicked commit and did not end VERIFIED records an uncertain_write_reconcile obligation in the signed receipt, so the write is reconciled rather than retried.

NonDomKernelExecutor.execute(autonomy_stage=...) can only lower a pack's stage, never raise it.

MCP server limits

The model calling the MCP tools does not set how far a run may go. Autopilot, the trusted pack key, the receipt key and the output root are serve-mcp flags (--allow-autopilot, --trusted-pack-pub, --priv, --output-root). Tool calls run in draft unless the server allows autopilot, cannot pass key paths, and can write only under the output root (default ~/.openadapt/kernel/mcp).

Metadata

Release files for openadapt-kernel 0.2.0

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

Source distribution (sdist)

Source distribution for openadapt-kernel 0.2.0
File Size Uploaded Provenance Actions
openadapt_kernel-0.2.0.tar.gz 329.9 kB With provenance Details for openadapt_kernel-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openadapt-kernel 0.2.0
File Interpreter ABI Platform Actions
openadapt_kernel-0.2.0-py3-none-any.whl Python 3 none any Details for openadapt_kernel-0.2.0-py3-none-any.whl

Total release size: 526.0 kB

Release files / openadapt_kernel-0.2.0.tar.gz

Download URL openadapt_kernel-0.2.0.tar.gz
Size 329.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f364ff7f38aa98a57a213297de5fceca7b6f5415d1cbad9775d7b7cd6d588a73
BLAKE2b-256 checksum
How to use checksums
917c70af88c99d8f63b3a93e10ec0626aa25610dfac37b4ede8a6c4835f4ccdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / openadapt_kernel-0.2.0-py3-none-any.whl

Download URL openadapt_kernel-0.2.0-py3-none-any.whl
Size 196.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52bdb0a65706b3f87296392e010baf5fc65b31eb436b2fc1ebc9c8099351b179
BLAKE2b-256 checksum
How to use checksums
66a5dd7920a6164be1d00d0b3622038a119869124bd257c0c348b5e4b83c3cd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for openadapt-kernel 0.2.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for openadapt_kernel-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

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