Repairing an Adapter
Record the broken workflow, compare against the old adapter, and ship a versioned fix.
Adapters are repaired through the same source-controlled path used to create them.
Detect
A pipeline fails loudly:
SchemaValidationError
adapter: analytics_portal@0.2.1
operation: records.getMetrics
path: metrics[0].value
expected: number
received: stringOr a scheduled live test fails:
sitekit test analytics_portal --liveRe-record
sitekit record analytics_portal --repair --scenario record-metricsThe repair recording is smaller than first onboarding. It targets the failed operation and captures enough traffic to compare old and new behavior.
Analyze Repair
sitekit analyze analytics_portal --repairThe LLM receives:
- Old adapter IR.
- Old schema snapshot.
- Failing test output.
- New redacted capture.
- Generated client code.
- Existing known facts.
It proposes an adapter patch. It does not ship the patch.
schemas:
Metric:
- value: number
+ value: numberFromStringValidate
sitekit test analytics_portal --fixtures
sitekit test analytics_portal --live
sitekit generate analytics_portal --target typescript --target pythonIf public client behavior is compatible, bump patch:
sitekit version analytics_portal patchIf the public client contract changes, bump minor or major:
sitekit version analytics_portal minorPublish Locally
npm install @local/analytics-portal@0.2.2
pip install ./packages/analytics-portal-pyRepair produces a new adapter version. It never mutates a package silently under an existing version.