Resolve a playbook¶
Canonical tool: occam_playbook_resolve
Look up the saved extraction recipe (playbook/genome) for a URL or host: content selectors, knowledge schema, agent notes, and signature integrity status relative to your local key. Read-only.
Signature status is integrity vs your local key — not author identity, not a trusted registry, and not proof of recipe quality.
When to use¶
- Before transcode/extract on a known site — see whether a tuned recipe exists.
- Before
occam_extract_knowledge— confirmknowledge_schema. - Authoring →
occam_playbook_heal/occam_playbook_save.
See Playbooks for resolution order and v1 vs v2 semantics.
Parameters¶
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
url |
string | — | yes | HTTP(S) URL, search handle, or bare hostname |
schema_version |
string | 1.0 |
no | Playbook schema version |
include_lessons |
bool | false |
no | Export lessons[] from local tier (max 10) |
fetch_site_genome |
bool | false |
no | Fetch https://{host}/.well-known/agent-genome.v1.json |
Returns¶
Success envelope:
ok: true,url,matchedHost,playbookId,schemaVersion,provenance,sourcePathcontentSelectors[]?,preferredBackend?,agentNotes?,pageClass?genome?/knowledgeSchema?signature?—{present, status, sigVersion?, keyId?, score?, passesGate?}status∈unsigned|verified|invalid|wrong_key|key_mismatch|unsupported_versionsigVersion—1,2, or null when unsigned- v1: body signed; gate fields in
provenanceare unsigned - v2: body +
keyId,signedAt, gate snapshot tamper-evident — still heuristic, not quality proof
Failure envelope: ok: false, playbook_not_found, etc.
Failure codes¶
invalid_arguments, playbook_not_found. See failure codes.
Example¶
{
"ok": true,
"playbookId": "nginx.org",
"signature": {
"present": true,
"status": "verified",
"sigVersion": 2,
"keyId": "k1:…",
"passesGate": true,
"score": 86
}
}
Related¶
- Playbooks
- occam_playbook_save · occam_playbook_lint
- occam_transcode —
playbook_policy=autoapplies resolution internally