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.

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.

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 stable id, a human-readable title, and non-empty text.

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

  1. Read the question literally. Do not broaden it to a nearby question the corpus happens to answer.
  2. Treat the supplied sources as exhaustive for this run. Outside knowledge can help interpret language, but it cannot support a claim.
  3. Find the smallest set of passages that directly supports the answer.
  4. Draft a concise answer. Every material statement needs a citation with the source id and an exact quotation copied from that source's text.
  5. Use unsupported when the evidence is absent or too weak. Name the missing policy, limit, procedure, or source in kb_gaps.
  6. Use conflicted when supplied sources materially disagree. Record the conflict and the evidence needed to resolve it.
  7. 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, or conflicted.
  • grounded: true only for a validated answered result.
  • 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-5dff6c81ebc5, shown as its exact bytes.

Runner
  • answer
Profile digestsha256:d9114afd9233c1bf68b8f6d164fcf1bbbce33fe63247aca83a097a748d26f656
skill: answer-from-docs
version: 0.2.1
catalog:
  kind: graph
  audience: public
  visibility: public
  role: context
  execution: read
  completion: runtime_receipt
  approval: none
  category: research
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.

This exact version passed its recorded harness run: 4 checks passed · 0 failed.

Test result

Harness resultPassed
Tested versionsha-5dff6c81ebc5
Recorded result4 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Declared cases4
Test recordOpen the recorded run
Inspect receipt referencessha256:bbfed3288159d5738467f2d4f0376082d82c60301e7a2122e821dd5486d1b835sha256:20d5dcdf4d6ee277696222db8f4af3453640e91569c7664d3bd69dfa13a8892bsha256:1418256008eeb9d8e7255fb259d3f8214562d60e5fec9e5707604f29af25c283sha256:bc5971aff6935ed960aba0ef6cf4e426952da1563228c3bc475d330d165c708d

Package identity

Published revisionsha-5dff6c81ebc5
Content digestsha256:5dff6c81ebc526d48c714f59b6bd9949f7ee4830148ba02fc152a91772f29083
SKILL.md digestsha256:ee6a6fdfb94485b17d369b857658d1c0c29378510902b5fd5b5402acb6d3e42f
Execution profile digestsha256:d9114afd9233c1bf68b8f6d164fcf1bbbce33fe63247aca83a097a748d26f656
Publisher identityUnverified publisher · zhtwangk
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · Declaredzhtwangk · 17 Oct 2026
Source provenanceNot published with this version

Version history

  1. sha-5dff6c81ebc5ViewingContent digest sha256:5dff6c81ebc526d48c714f59b6bd9949f7ee4830148ba02fc152a91772f29083
  2. sha-7603d8606041Content digest sha256:7603d86060419197e0aef9a3d29323fae9b6c80d5a732539e01e02cf8f270957
  3. sha-b8a44ebef68dContent digest sha256:b8a44ebef68d1f8e47c288de9fab8d1a5954b8d350659128e772caf8aebb1455
  4. sha-f3262911a20fContent digest sha256:f3262911a20fd5ce0e783e1e06af502fce4af9e655859d535a84d487ca5884c3