a11y-toolkit: Oracle record (engine asks, someone answers)
a11y_oracleCollects observation-backed answers to manual accessibility audit questions and returns a sealed record that marks each rule passed, failed, or cantTell.
Instructions
Semi-automatic oracle: the engine asks, someone answers with evidence. Takes an audit report with questions (the three approved ACT rules no automatic engine can decide because they require judging the content: qt1vmo image name is descriptive, c4a8a4 page title is descriptive, 0va7u6 images contain no text) plus answers [{question_id, answer yes|no, observation}] and returns the sealed a11y-oracle/1 record. A result is passed or failed ONLY when the answer cites a question_id of the report and brings an observation of its own (a repeat of the accessible name does not count); anything else is cantTell. An answer carrying an expected key is rejected (it would come from the official test-case file). The record is evidence under a seal: it never decides alone, never signs conformance and never enters the score. Verify it with a11yoracle.verify_record (Python). ACT import matches the current URL, HTML hash and rule questions. An omitted image question keeps the case inconclusive unless a reviewed image already fails. — Run after a static audit that came back with questions; answer only what you actually looked at (the image, the page). The record is sealed evidence of who answered and what they saw: verify it with a11yoracle.verify_record, feed it to scripts/act_report.py --answers, and never read it as a score or a conformance claim. Returns JSON: {format: a11y-oracle/1, mode: semiAuto, answered_by, subject, questions, questions_truncated? (omitted image questions), answers, results [{question_id, rule, criterion, signal, selector, result passed|failed|cantTell, reason, answer, observation, mode, answered_by, question}], summary {passed, failed, cantTell}, rejected_answers, unmatched_answers, note, sha256}. A result is passed or failed only for an answer that cites a question_id of the report and brings its own observation; an answer carrying an expected key is rejected, and an unanswered question stays cantTell. Say agent in answered_by when an agent with vision looked at the content: the W3C has not said whether it accepts such answers.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"report": "<report>"
},
"name": "a11y_oracle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | output language | |
| report | Yes | audit report object carrying a questions list (from a11y_audit_url on HTML: the static pass asks, the rendered pass does not) | |
| answers | No | one entry per question: {question_id (from the report), answer: yes|no, observation: what you saw that justifies it}; an answer carrying an expected key is rejected | |
| answered_by | No | who looked at the content and answered: human (default), agent (an agent with vision must say so) or a name |