openadapt-kernel¶
openadapt-kernel is a minimal, self-contained runtime kernel with no
openadapt-flow dependency and no per-application code. It implements
commit-boundary detection, obligation tracking, cross-rail read-back checks,
zero-PII PortalPack induction, and Stage-Only form preparation.
Install¶
Install openadapt-kernel from PyPI:
If you also want Playwright browser automation bundled with the standalone
package, install the browser extra:
Once installed, invoke it directly as openadapt-kernel, or as
openadapt kernel when installed alongside the main openadapt CLI.
To develop against a local checkout of the OpenAdapt repository instead:
Core components¶
CommitInterceptor(interceptor.py): Detects commits from actual network mutations (POST,PUT,PATCH,DELETE) or non-empty dirty form submissions instead of matching button labels. Search and filter inputs are excluded from dirty buffers.ObligationLedger(ledger.py): Starts every episode inUNVERIFIEDand emitsVERIFIEDonly when every obligation has an independent post-commit read-back proof and no dirty form buffers remain. Step-limit timeouts, crashes, and unverified exits returnESCALATED.PortalPack(copilot.py): A zero-PII portal specification induced from live Chrome Co-Pilotextension_evidence.jsonlrecordings. Packs are qualified offline against four counterfactual mutants without needing a staging database.ShadowObserver(copilot.py): Captures shadow traces from human portal runs so the kernel can induce and updatePortalPackdefinitions.PrepareCardStage-Only loop: Stages pre-verified form bindings inDRAFT_TO_COMMITmode and stops before submitting. Any field that cannot be bound automatically is emitted as a zero-PHIPrepareCardfor human sign-off in the PREPARE Sign-Off Queue before commit.
CLI quickstart¶
Induce a PortalPack from Chrome Co-Pilot recordings, qualify it offline,
generate an Ed25519 receipt keypair, and run in draft or verified autopilot
mode:
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 run --pack pack.json --dossier dossier.json --mode draft --cdp-url http://127.0.0.1:9222
openadapt kernel run --pack pack.json --dossier dossier.json --mode autopilot \
--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
To expose kernel tools over stdio JSON-RPC 2.0 MCP:
Related guides¶
- Chrome Co-Pilot extension: record live browser sessions and stage drafts in your signed-in Chrome profile.
- PREPARE Sign-Off Queue: review and sign off
staged
PrepareCarditems across offices. - How a save is checked: why commit-boundary read-back checks refuse unverified saves.