Logo vun Receipt Query

Receipt Query

Organisatioun
runxhq
receipt-query

Retrieve bounded receipt evidence by exact ids or explicit filters, returning native verification results for downstream review.

Iwwersiicht

Editeurrunxhq
Repositoryrunx
Skill-Nummreceipt-query
Stären
105
Forks
109
Matgeliwwert Fichieren
6
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 6 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum runxhq op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Receipt Query an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/runxhq/runx/tree/main/skills/receipt-query
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/runxhq/runx.git /tmp/runx
mkdir -p .claude/skills
cp -r /tmp/runx/skills/receipt-query .claude/skills/receipt-query
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Receipt Query an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Receipt Query automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Receipt Query net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Receipt Query

Collect the exact signed run evidence a reviewer needs, using explicit receipt ids or bounded filters. Native Runx owns receipt lookup and verification; this skill normalizes the query and returns a reusable evidence packet. It is read-only.

The question records the review purpose. It is not translated into hidden filters: amount thresholds, business totals, scope searches and arbitrary natural-language conditions are not implemented by this runner. Supply the supported filter fields, then pass the resulting evidence to the appropriate review skill.

What this skill does

receipt-query applies an explicit bounded query over receipt ids, principal, skill, outcome, and time range, then returns the receipts that satisfy it as id-keyed stubs (receipt_id, skill, outcome, created_at, verification status). Exact-id reads also return receipt_details from the native redacted inspection projection: signed authority, decisions, acts, artifact references, lineage, issuer type, seal criteria, and verification without execution bodies, credential material, or local paths. When proof asks for it, the skill returns the native tree-verification verdict and findings. A requested check is not a successful check: an unknown or failed verdict stays unknown or failed. The deterministic summary reports matched receipt count and verification status, not a synthesized business answer. Zero matches return needs_more_evidence.

Exact-id stubs preserve the native subject_uri even when no skill label is available. Detail retains issuer_type and seal_criteria: a failed output contract is still visible when a step has no act. A verified local issuer means the Runx home signed the receipt; it does not establish an independent operator or provider attestation. Missing replay fields stay unknown.

The default read runner invokes the native receipt.query service directly. The service resolves the same receipt store and signature policy as Runx's CLI, projects bounded history rows, resolves exact ids through the redacted detail reader, and optionally verifies each matched receipt tree. There is no child process, command-string construction, or package-local receipt parser. It is the in-runtime way for an agent to inspect its own sealed receipts before a gated action. The detail packet is curated in Rust and never returns execution bodies, credential material, or local paths.

The read runner accepts optional receipts and receipt_details inputs for replay or controlled evaluation. When present it uses those projections instead of the native store. Replay is labelled as supplied evidence and never becomes a live proof path.

It retrieves evidence across many runs; receipt-audit assesses governance against an exact receipt and its authority baseline. Its nearest neighbor is run-history, which also reads the ledger but returns deterministic platform outcome and catalog-coverage metrics and routes them to governance lanes. receipt-query answers one precise audit question with the receipt ids that match and a verified chain walk, not an aggregate health report.

When to use this skill

  • A reviewer needs the receipts for an exact run or a bounded skill, actor, outcome, issuer or time window.
  • A review needs the set of receipts that match a condition before drilling into any single one.
  • A compliance check needs proof that a stretch of ledger history is unbroken.

When not to use this skill

  • To audit whether one run stayed inside its grant. Use receipt-audit; that is the integrity-of-one-chain question, not the cross-run history question receipt-query answers.
  • To review a grant before narrowing it. Use least-privilege.
  • For a graded platform-health report over many runs. Use run-history.
  • To mutate, redact, export, or archive receipts. This skill is read-only and refuses any write framing.
  • To return receipt bodies, act payloads, or any secret-bearing field. Matched receipts are id stubs only.

Procedure

  1. Read the question. With no question, return needs_agent.
  2. Resolve the filter into a bounded query: principal handle, skill, outcome set, and time_range. An absent filter uses the bounded default limit; the prose question never adds a filter.
  3. Match receipts against the query and collect id-keyed stubs only. Receipt bodies, act payloads, proofs, and material refs stay out of the output.
  4. With zero matches, return needs_more_evidence and name the query that found nothing.
  5. When proof requests chain verification, take the chain verdict from the engine's tree-rooted native proof report, not a hand-rolled link walk: intact follows the report's overall validity, and each break is derived from a tree's missing parent or a verification finding, named by the receipt ids involved. The engine checks signatures against this home's own key and any configured verify key; a receipt no trusted key signed is a break, never silently intact. When the proof is bounded out, the chain is reported unverified (checked: true, intact: null). When proof is absent, set chain_verification.checked to false and leave intact null.
  6. Return the deterministic summary of matched count and native verification from the matched set and the verification result only. The question states the purpose; do not generalize from the matched slice to the whole ledger.
  7. Return the ledger_answer with decision: answered.

Edge cases and stop conditions

  • No question: return needs_agent; there is nothing to query.
  • No matching receipts: return needs_more_evidence with the resolved query, so the gap is the query, not a silent zero. Silence is a stop, not a zero.
  • Filter references an unknown principal or skill: treat as zero matches and return needs_more_evidence; do not guess a near match.
  • Chain break found: keep decision: answered but set chain_verification.intact false and list the breaking id pairs from the verify report; an intact answer set with a broken chain is still a reportable result.
  • Verify keys absent: report chain_verification.intact null with checked: true; the chain is unverified, not intact.
  • Verification requested over an empty match set: the stop is needs_more_evidence for the match, not a chain claim over nothing.
  • Write, delete, or reseal requests: this read runner cannot perform them. Its sole native query scope is receipt.read; prose does not grant a write.

Output

The whole result is the runx/receipt-query.answer.v1 packet:

  • ledger_answer: the decision (answered, needs_agent, needs_more_evidence or refused), the audit question restated in operational terms, and the resolved filter actually run, so the answer reproduces.
  • matched_receipts: id-keyed stubs only, never a receipt body.
  • receipt_details: exact-id reads only, Rust-curated, bounded and redacted.
  • chain_verification: whether verification was requested, whether the chain is intact (null when unchecked) and each break.
  • summary: one or two sentences answering the question.

Scope is receipt.read only; no gate is required because the skill cannot mutate, and a delete, redact, reseal, or reorder request is refused, not gated. The run's own receipt carries the question, the resolved query, the matched count, the list of matched receipt_id values, and the chain-verification result; it carries no matched receipt body, principal PII, or secret material. Matched receipts are always referenced by id.

Worked example

Input:

yaml
question: Collect receipt evidence for the campaign review.
receipt_ids: [rx_101, rx_102]
proof:
  verify_chain: true

The runner returns the matched id stubs, redacted native details and the native verification verdict. Missing ids remain absent; the caller must compare the requested ids with the matched set before relying on the evidence. A failed, unknown or bounded-out verification verdict cannot support a claim of intact proof. Supplying replay projections returns an unknown chain verdict even when the fixture labels its rows verified.

Inputs

  • question (optional): the audit question bounding the ledger read. Without one the runner returns needs_agent and does not query.
  • filter (optional): JSON narrowing the query by principal, skill, outcome, time_range (from/to), and limit (default 500, maximum 5000).
  • receipt_ids (optional): up to 100 exact receipt ids to resolve and verify.
  • proof (optional): JSON requesting chain verification over the matched receipts, for example { "verify_chain": true }.
  • receipts (optional): explicit ledger rows for replay or controlled evaluation; when present the read runner does not query live native history.
  • receipt_details (optional): explicit native redacted detail projections for deterministic replay only.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Receipt Query?

Retrieve bounded receipt evidence by exact ids or explicit filters, returning native verification results for downstream review.

Firwat Receipt Query op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Receipt Query besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Receipt Query an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/runxhq/runx/tree/main/skills/receipt-query an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Receipt Query benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Receipt Query benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Receipt Query domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Receipt Query gratis?

Jo. De Skill gëtt vum runxhq ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇