Prior art

Inspect bounded local repository and Runx catalog evidence before a design, draft, or operator decision, then produce citation-bound findings and a reuse, amendment, new-work, or stop recommendation. Use when existing tools, skills, standards, or project patterns must constrain downstream work; use research or web-fetch first for external sources.

You’re reading version sha-f89224ced7a0. Go to the current version

Overview

Ground the next decision in sources that were actually inspected.

In the manual

Runner

  • prior-art-agent

Declared by its execution profile. Read the profile

SKILL.md

Prior Art

Ground the next decision in sources that were actually inspected.

Direct use

Do the inspection and return the recommendation in the same task. Do not stop after announcing a search plan, ask the operator to enumerate obvious files, or turn bounded discovery into a repository-wide grep.

  1. Start from the operator's objective and current workspace. When exact source_paths are already supplied, reuse them.
  2. Otherwise, make one targeted discovery pass for the smallest likely owning set: repository instructions and conventions, the named product or package, exact active plans or specs implicated by the objective, and adjacent Runx skill manifests. Select at most sixteen files. Listing filenames is discovery, not the prior-art result; continue through inspection.
  3. Invoke the default runner with the objective, chosen paths, and any existing decomposition. Complete its bounded research request, resume it in memory, and return the validated prior-art report—not a narration of what you intend to read.
  4. If the selected evidence is insufficient, return one precise needs_more_evidence result naming the missing source. Do not broaden the search repeatedly or cycle through unrelated skills.

Routine local discovery and reads use the host's normal authenticated tools and need no approval. Runx adds the catalog projection, digest-bound source bundle, citation validation, reusable packet, and receipt. If Runx is unavailable, preserve the selected paths and findings in the documented output shape so the operator can continue locally without repeating discovery; do not claim a Runx receipt.

Composed use

A parent should pass its objective, decomposition, and already selected source paths. Reuse that evidence boundary exactly. Do not enumerate the repository, reacquire the catalog, or repeat a prior evidence-selection step unless the packet is missing, stale, or outside the current objective.

Executable procedure

  1. Supply a bounded objective, optional work-plan decomposition, and the repo-relative source_paths selected by direct discovery or a parent chain.
  2. Native runx.skill.inspect indexes the local Runx catalog and fs.read_bundle reads and hashes at most sixteen requested files under the workspace boundary. Missing files are recorded; escaping, duplicate, or oversized paths fail closed.
  3. Read only the indexed sources needed for the objective. State each finding as claim, source, relevance, and confidence (verified, likely, or unverified).
  4. Name adjacent catalog skills and the boundary each already owns. Recommend reuse, amend, new_work, or stop; do not create a duplicate primitive because an existing package is imperfect.
  5. The domain validator checks every verified citation and adjacent skill against those native projections. Unsupported verified claims or missing requested sources force needs_more_evidence.

External URLs are not inspected by this runner. Fetch them through a governed source skill, persist the bounded evidence in the workspace, then pass its path here.

Output

yaml
decision: ready | needs_more_evidence
findings:
  - claim: string
    source: repo-relative path
    relevance: string
    confidence: verified | likely | unverified
catalog_fit:
  decision: reuse | amend | new_work | stop
  adjacent_skills: array
  rationale: string
recommended_flow: array
quality_bar: object
sources: array
risks: array
evidence: object
validation: object

Inputs are objective, optional decomposition, graph_purpose, audience, artifact_contract, and bounded source_paths.

Agent task contracts

prior-art-research

Use the deterministic evidence index to select and read only the bounded local sources needed for the objective. Return prior_art_draft with decision, findings, catalog_fit, quality_bar, recommended_flow, sources, and risks. Cite repo-relative paths exactly. Mark a finding verified only when its source appears in inspected_sources or the catalog index. Prefer reuse or amendment over duplicate primitives. Return needs_more_evidence when requested sources are missing.

Published execution profile

The execution profile published with sha-f89224ced7a0, shown as its exact bytes.

Runner
  • prior-art-agent
Profile digestsha256:10e729833fd4fb719a786b0eec8b945b294339c7a25938188bfe61b42935435d
skill: prior-art
version: "0.2.11"
catalog:
  kind: graph
  audience: builder
  visibility: public
  category: authoring
  role: context
  execution: read
  completion: runtime_receipt
  approval: none
harness:
  files:
    - fixtures/workspace/skills/moltbook/SKILL.md
    - fixtures/workspace/skills/moltbook/run.yaml
    - fixtures/support/composed.graph
  cases:
    - name: prior-art-recommends-catalog-reuse
      operator_journeys:
        - mode: standalone
          confusors: [research, knowledge-router]
          request: Inspect prior art for this design before I create anything new.
          expected_outcome: Return bounded citation-backed findings and a reuse, amend, new-work, or stop recommendation.
        - mode: composed
          request: Continue this design decision from the supplied repository and catalog evidence.
          expected_outcome: Reuse the bounded source set and return a prior-art recommendation without broad repository rediscovery.
          prior_evidence:
            - The explicit source paths, objective, and catalog evidence supplied in the fixture.
          must_not_repeat:
            - Do not enumerate or grep the whole repository again.
            - Do not reacquire catalog evidence already included in the bounded source set.
      inputs:
        objective: Add a Moltbook opportunity scan to an existing governed pipeline.
        repo_root: fixtures/workspace
        source_paths:
          - skills/moltbook/run.yaml
        decomposition:
          objective_summary: Add a Moltbook opportunity scan step.
          orchestration_steps:
            - id: scan
              skill: ../moltbook
              runner: scan
          required_skills:
            - name: moltbook
              exists: true
      caller:
        answers:
          research:
            prior_art_draft:
              decision: ready
              findings:
                - claim: The existing Moltbook package owns the opportunity scan boundary.
                  source: skills/moltbook/run.yaml
                  relevance: Reuse avoids a duplicate public scanner.
                  confidence: verified
              catalog_fit:
                decision: reuse
                adjacent_skills:
                  - moltbook
                rationale: Compose the existing scan runner and add only pipeline glue.
              quality_bar:
                audience: Runx skill maintainers
                artifact: A source-bound reuse decision.
                evidence: Cite the inspected manifest.
                stop_conditions:
                  - Stop if the runner cannot be verified.
              recommended_flow:
                - step: scan
                  rationale: Reuse the existing Moltbook scan runner.
              sources:
                - path: skills/moltbook/run.yaml
                  kind: skill-manifest
              risks: []
      expect:
        status: sealed
        steps:
          - plan
          - catalog
          - read
          - index
          - research
          - validate
        step_outputs:
          validate:
            subset:
              decision: ready
              catalog_fit:
                decision: reuse
                adjacent_skills:
                  - moltbook
              evidence:
                cited_paths:
                  - skills/moltbook/run.yaml
              validation:
                status: pass
                findings: []
        receipt:
          schema: runx.receipt.v1
    - name: prior-art-missing-source-stops
      inputs:
        objective: Verify a nonexistent local design note.
        repo_root: fixtures/workspace
        source_paths:
          - docs/does-not-exist.md
      caller:
        answers:
          research:
            prior_art_draft:
              decision: ready
              findings:
                - claim: The missing note defines the required protocol.
                  source: docs/does-not-exist.md
                  relevance: It would constrain the design if it existed.
                  confidence: verified
              catalog_fit:
                decision: new_work
                adjacent_skills: []
                rationale: No reusable package was identified.
              quality_bar: {}
              recommended_flow: []
              sources:
                - path: docs/does-not-exist.md
                  kind: repo-document
              risks: []
      expect:
        status: sealed
        steps:
          - plan
          - catalog
          - read
          - index
          - research
          - validate
        step_outputs:
          validate:
            subset:
              decision: needs_more_evidence
              validation:
                status: hold
                findings:
                  - code: source.missing
                    path: docs/does-not-exist.md
        receipt:
          schema: runx.receipt.v1
tools:
  - fs.read

runners:
  prior-art-agent:
    default: true
    inputs:
      objective:
        type: string
        required: true
        description: Build, content, or operator objective being researched.
      decomposition:
        type: json
        required: false
        description: Structured decomposition output from work-plan.
      graph_purpose:
        type: string
        required: false
        description: Downstream purpose such as skill proposal, docs, content, issue, or release.
      audience:
        type: string
        required: false
        description: Reader or operator who will use the downstream artifact.
      artifact_contract:
        type: json
        required: false
        description: Expected downstream output shape.
      source_paths:
        type: json
        required: false
        description: Bounded repo-relative files to inspect in addition to catalog manifests derived from decomposition.
      repo_root:
        type: string
        required: false
        default: .
        description: Workspace root used for native catalog and bounded file inspection.
    result_from: [validate]
    steps:
      - id: plan
        label: derive the bounded source set
        inputs:
          decomposition: $input.decomposition
          source_paths: $input.source_paths
        tool: { module: prior-art.mjs, export: planSources }
        outputs:
          paths: array
          limits: object
        artifacts:
          named_emits:
            paths: paths
            limits: limits
      - id: catalog
        label: inspect the native skill catalog
        tool: runx.skill.inspect
        scopes:
          - fs.read
        inputs:
          repo_root: $input.repo_root
      - id: read
        label: read and digest the bounded source set
        tool: fs.read_bundle
        scopes:
          - fs.read
        inputs:
          repo_root: $input.repo_root
          max_bytes: 262144
          on_missing: report
          paths: $steps.plan.paths
      - id: index
        label: bind catalog and file evidence
        tool: { module: prior-art.mjs, export: indexSources }
        outputs:
          evidence_index: object
        inputs:
          limits: $steps.plan.limits
          authoring_context: $steps.catalog.authoring_context
          file_read_bundle: $steps.read.file_read_bundle
        artifacts:
          named_emits:
            evidence_index: evidence_index
      - id: research
        label: compare inspected prior art
        agent: { role: researcher, task: prior-art-research }
        outputs:
          prior_art_draft: object
        inputs:
          objective: $input.objective
          decomposition: $input.decomposition
          graph_purpose: $input.graph_purpose
          audience: $input.audience
          artifact_contract: $input.artifact_contract
          evidence_index: $steps.index.evidence_index
          source_paths: $input.source_paths
          repo_root: $input.repo_root
        artifacts:
          named_emits:
            prior_art_draft: prior_art_draft
      - id: validate
        label: validate citations and catalog fit
        inputs:
          evidence_index: $steps.index.evidence_index
          prior_art_draft: $steps.research.prior_art_draft
        tool: { module: prior-art.mjs, export: validatePriorArt }
        outputs:
          decision: string
          findings: array
          catalog_fit: object
          quality_bar: object
          recommended_flow: array
          sources: array
          risks: array
          evidence: object
          validation: object
        artifacts:
          wrap_as: prior_art_report
          packet: runx.builder.prior_art.v1

Published package and test evidence.

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

Test result

Harness resultPassed
Tested versionsha-f89224ced7a0
Recorded result3 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Declared cases2
Test recordOpen the recorded run
Inspect receipt referencessha256:b256f139b1fa898f55d4f03d4fdf5cf589cd063d2345d55d147c8611439e8e2dsha256:c2fdd7ea543ec772704eab1ee01ded8a0037e3101c6427a83e1f1432fca1bb1bsha256:cc65bcc68f81fd8f6e2cd512a573946921b01cc054e81c15389406c48a47b795

Package identity

Published revisionsha-f89224ced7a0
Content digestsha256:f89224ced7a0b29e39631a7f5d8d90e144b0bee4a8710086dc9a491a345eec34
SKILL.md digestsha256:bbb454fc017ecb66b6ff96913ee049c480267873948212ae30ff38e4e69fb8eb
Execution profile digestsha256:10e729833fd4fb719a786b0eec8b945b294339c7a25938188bfe61b42935435d
Publisher identityVerified publisher · runx
Trust tierVerified publisherRunx has verified this publisher. This tier is not a code assessment.
Attestations
  • Publisher · Verifiedrunx · 17 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.2.13Content digest sha256:ed78df5185964a7f4ed9021794eb6c6394f16215215d661abbc62311e72d3aa4
  2. sha-4d72932b7240Content digest sha256:4d72932b7240e2cdd924a9e7bb8d73f5eb4d98f37bfa50d043eca229f8791402
  3. sha-f89224ced7a0ViewingContent digest sha256:f89224ced7a0b29e39631a7f5d8d90e144b0bee4a8710086dc9a491a345eec34
  4. sha-d05f66dd6aa5Content digest sha256:d05f66dd6aa585ad0b1a6766670b26185f3f6173a629fd9646bfa327a81f7056
  5. sha-8af2bb4a4fb7Content digest sha256:c3fb467170c78e0d83a081e7638816f36b181ffe714b04c522771e48d29cfb80
  6. sha-cb6a6bc8ea32Content digest sha256:294f2d36df456ced453fbd2547c1439f76b7c3f87aa2fb6ee6104e851fc0f385
  7. sha-13d8f9fb7ea8Content digest sha256:97dc64dc6774b11ce6adf943bb68e336270ce58a58a749fa5749211a60eb35a3