Trust Model · optional · deletable

Extension Lanes

How optional integrations stay optional.

An Extension Lane is an opt-in, deletable integration that attaches through an existing port, lazy-imports its concrete code, and grants no authority. Deleting a lane’s file leaves the required test suite green.

Optional power — live judges, trace backends, result exporters — must never contaminate the required path. Lanes solve that with a metadata-only framework: a lane declares what it does, and its real code is imported only when a host opts in. No required import ever loads a lane or a provider SDK.

What a lane declares

An ExtensionLane is metadata: a name and purpose, the port it attaches to, the module and factory that build its adapter, a boundary statement (what stays isolated), a deletion_rule (what removing it leaves intact), and any prerequisites. The LaneRegistry lists lanes without importing any of them; its resolve() is the only place a lane’s concrete code is lazily imported.

A lane can run, skip, or block — never score

LaneResult statusMeaning
ranThe lane executed and produced evidence or output.
skippedA prerequisite was missing — the lane stepped aside without failing the run.
blockedThe lane could not complete; it reports diagnostics, not a verdict.

A LaneResult carries diagnostics but no score and no verdict. A missing prerequisite raises MissingPrerequisite, which skips the lane — it never fails the run. So a missing API key or backend degrades gracefully instead of breaking CI.

The built-in lanes

LanePortWhat it adds
live-judgeJudgeModelAn HTTPS judge call via stdlib urllib — no provider SDK.
trace-backendTraceSourceReads traces from a configured backend file.
score-sink-exportScoreSinkPublishes a read-only Scorecard export to a local dir.
async-observationTraceSourceReads an async recording — observes, never orchestrates.
Deletion is the test Each lane’s deletion_rule states what removing its file leaves working — e.g. deleting adapters/judge_live.py leaves the required judge suite green. “Opt-in and deletable” is verified, not asserted: the required suite must pass with every lane removed.

Next steps