answer-from-docs
Answer one question strictly from a small, caller-supplied documentation corpus, with exact supporting quotations or an explicit account of what the corpus cannot answer.
You’re reading version sha-f3262911a20f. Go to the current version
Overview
Use this skill when the source material is already in hand and the operator needs one answer that can be checked against it. The corpus is the complete evidence boundary for the run. The skill does not search the web, fetch current documentation, consult private state, or fill gaps from the agent's general knowledge.
The useful result is not merely fluent text. A grounded result binds the corpus through a native digest, names the source for every citation, and preserves an exact quotation that the deterministic finalizer can find in that source. An unsupported result is also useful: it says what evidence is absent instead of turning a plausible guess into product documentation.
In the manual
Runner
answer
Declared by its execution profile. Read the profile
SKILL.md
Answer From Docs
Use this skill when the source material is already in hand and the operator needs one answer that can be checked against it. The corpus is the complete evidence boundary for the run. The skill does not search the web, fetch current documentation, consult private state, or fill gaps from the agent's general knowledge.
The useful result is not merely fluent text. A grounded result binds the corpus through a native digest, names the source for every citation, and preserves an exact quotation that the deterministic finalizer can find in that source. An unsupported result is also useful: it says what evidence is absent instead of turning a plausible guess into product documentation.
Evidence boundary
Supply:
question: one concrete question.corpus: a small, bounded array of source objects. Every source needs a stableid, a human-readabletitle, and non-emptytext.
Keep only material relevant to the question in the corpus. Runner inputs are
control data, not a document store. Admit large immutable files with Runx's
artifact tools, retrieve the necessary bounded pages, and then call this skill
with the resulting small source packet. Use extract first when the material
must be cleaned or structured. Use knowledge-router, research, or
deep-research when the sources still need to be found.
Source order is not authority. Prefer direct, specific language over a vague summary. If two sources disagree, preserve the conflict and refuse a single unqualified answer unless the corpus itself establishes precedence.
Decision procedure
- Read the question literally. Do not broaden it to a nearby question the corpus happens to answer.
- Treat the supplied sources as exhaustive for this run. Outside knowledge can help interpret language, but it cannot support a claim.
- Find the smallest set of passages that directly supports the answer.
- Draft a concise answer. Every material statement needs a citation with the
source
idand an exact quotation copied from that source'stext. - Use
unsupportedwhen the evidence is absent or too weak. Name the missing policy, limit, procedure, or source inkb_gaps. - Use
conflictedwhen supplied sources materially disagree. Record the conflict and the evidence needed to resolve it. - Let the deterministic finalizer verify corpus shape, source membership, exact quotations, the native corpus digest, and terminal result shape. Invalid evidence cannot seal as a grounded answer.
Lexical overlap is not proof. A sentence that repeats words from the question but addresses a different rule, product, time period, or actor does not support the answer.
Result contract
The terminal grounded_answer contains:
decision:answered,unsupported, orconflicted.grounded: true only for a validatedansweredresult.answer.text: the supported answer, empty for a refusal.answer.citations: canonical source ids, titles, and exact quotations.kb_gaps: evidence needed before the question can be answered.conflicts: material disagreements in the supplied corpus.corpus_digest: the native digest of the exact corpus used for the run.validation: pass or fail with deterministic findings.
A sealed refusal proves the lane completed honestly. It does not mean the product lacks the requested capability; it means this corpus did not prove it.
Stop and recovery
Stop when the question is missing, the corpus is malformed, a cited quotation is not present in its named source, or the evidence cannot support the answer. Do not weaken the wording, invent a citation, or silently answer from memory.
Recover by narrowing the question, correcting malformed source objects, adding the missing authoritative material, or routing source discovery to the appropriate research skill. Rerun from the complete corrected corpus so the new digest represents the whole evidence boundary.
Agent task contract
answer-from-docs-synthesize
Return exactly one answer_draft object.
For a supported answer, set decision to answered; provide non-empty
answer.text, one or more citations, and empty kb_gaps and conflicts.
Every citation contains only source_id and quote. Copy quote verbatim
from the text of the named supplied source.
When the corpus cannot answer the question, set decision to unsupported;
leave answer.text empty, provide no citations, and name at least one specific
gap in kb_gaps. When sources materially disagree, use conflicted, leave the
answer empty, provide no citations, and describe the disagreement in
conflicts.
Do not retrieve, use outside knowledge as evidence, manufacture source ids, paraphrase quotations, claim external effects, or include fields outside the contract.
Published execution profile
The execution profile published with sha-f3262911a20f, shown as its exact bytes.
| Runner |
|
|---|---|
| Profile digest | sha256:4d831424689c7fb65a07c3a1ae03a648af4518af5762dc29e0f6a3a627d104f6 |
skill: answer-from-docs
version: 0.2.0
catalog:
kind: graph
audience: public
visibility: public
role: context
execution: read
completion: runtime_receipt
approval: none
runners:
answer:
default: true
inputs:
question:
type: string
required: true
description: One concrete question to answer from the supplied corpus.
corpus:
type: json
required: true
description: Small bounded array of source objects with stable id, title, and text fields.
result_from:
- finalize
steps:
- id: digest
tool: data.digest
inputs:
value: $input.corpus
- id: synthesize
label: draft an evidence-bound answer or refusal
agent:
role: researcher
task: answer-from-docs-synthesize
outputs:
answer_draft:
required: false
inputs:
question: $input.question
corpus: $input.corpus
corpus_digest: $steps.digest.digest_result.digest
artifacts:
named_emits:
answer_draft: answer_draft
- id: finalize
label: validate citations and package the grounded answer
tool:
module: answer-from-docs.mjs
export: finalizeGroundedAnswer
inputs:
question: $input.question
corpus: $input.corpus
corpus_digest: $steps.digest.digest_result.digest
answer_draft: $steps.synthesize.answer_draft
artifacts:
named_emits:
grounded_answer: grounded_answer
harness:
cases:
- name: answer-from-docs-grounds-supported-answer
inputs:
question: How long are audit logs retained and who can export them?
corpus:
- id: audit-logs
title: Audit Log Policy
text: Audit logs are retained for 180 days. Workspace admins can export audit logs from the compliance page.
- id: billing
title: Billing Notes
text: Billing invoices are generated monthly.
caller:
answers:
synthesize:
answer_draft:
decision: answered
answer:
text: Audit logs are retained for 180 days, and workspace admins can export them from the compliance page.
citations:
- source_id: audit-logs
quote: Audit logs are retained for 180 days.
- source_id: audit-logs
quote: Workspace admins can export audit logs from the compliance page.
kb_gaps: []
conflicts: []
expect:
status: sealed
steps:
- digest
- synthesize
- finalize
step_outputs:
finalize:
subset:
grounded_answer:
data:
decision: answered
grounded: true
validation:
status: pass
findings: []
receipt:
schema: runx.receipt.v1
operator_journeys:
- mode: standalone
confusors:
- research
- deep-research
request: Answer this question strictly from the documentation I supply.
expected_outcome: Return an answer with exact supporting quotations, or an explicit account of what the corpus cannot answer.
- mode: composed
request: Continue this answer-from-docs work from evidence already gathered upstream.
expected_outcome: Return an answer with exact supporting quotations, or an explicit account of what the corpus cannot answer.
prior_evidence:
- The documentation corpus and question already supplied.
must_not_repeat:
- Do not search beyond the supplied corpus.
- name: answer-from-docs-refuses-unsupported-question
inputs:
question: Does the product support SCIM provisioning?
corpus:
- id: audit-logs
title: Audit Log Policy
text: Audit logs are retained for 180 days.
caller:
answers:
synthesize:
answer_draft:
decision: unsupported
answer:
text: ""
citations: []
kb_gaps:
- Documentation describing identity provisioning support.
conflicts: []
expect:
status: sealed
steps:
- digest
- synthesize
- finalize
step_outputs:
finalize:
subset:
grounded_answer:
data:
decision: unsupported
grounded: false
validation:
status: pass
findings: []
receipt:
schema: runx.receipt.v1
- name: answer-from-docs-rejects-invented-quotation
inputs:
question: How long are audit logs retained?
corpus:
- id: audit-logs
title: Audit Log Policy
text: Audit logs are retained for 180 days.
caller:
answers:
synthesize:
answer_draft:
decision: answered
answer:
text: Audit logs are retained forever.
citations:
- source_id: audit-logs
quote: Audit logs are retained forever.
kb_gaps: []
conflicts: []
expect:
status: sealed
steps:
- digest
- synthesize
- finalize
step_outputs:
finalize:
subset:
grounded_answer:
data:
decision: unsupported
grounded: false
validation:
status: fail
receipt:
schema: runx.receipt.v1
- name: answer-from-docs-needs-question
inputs:
corpus:
- id: docs
title: Docs
text: The API returns JSON.
expect:
status: failure
Published package and test evidence.
The latest recorded test covers an earlier version, sha-5dff6c81ebc5. It does not establish a result for this version.
Test result
| Harness result | An earlier version was tested |
|---|---|
| Tested version | sha-5dff6c81ebc5Not this page’s version, sha-f3262911a20f |
| Recorded result | 4 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Declared cases | 4 |
Package identity
| Published revision | sha-f3262911a20f |
|---|---|
| Content digest | sha256:f3262911a20fd5ce0e783e1e06af502fce4af9e655859d535a84d487ca5884c3 |
| SKILL.md digest | sha256:ee6a6fdfb94485b17d369b857658d1c0c29378510902b5fd5b5402acb6d3e42f |
| Execution profile digest | sha256:4d831424689c7fb65a07c3a1ae03a648af4518af5762dc29e0f6a3a627d104f6 |
| Publisher identity | Unverified publisher · zhtwangk |
| Trust tier | CommunityPublished through the registry without publisher verification. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
sha-5dff6c81ebc5Content digest sha256:5dff6c81ebc526d48c714f59b6bd9949f7ee4830148ba02fc152a91772f29083sha-7603d8606041Content digest sha256:7603d86060419197e0aef9a3d29323fae9b6c80d5a732539e01e02cf8f270957sha-b8a44ebef68dContent digest sha256:b8a44ebef68d1f8e47c288de9fab8d1a5954b8d350659128e772caf8aebb1455sha-f3262911a20fViewingContent digest sha256:f3262911a20fd5ce0e783e1e06af502fce4af9e655859d535a84d487ca5884c3