Logo: Provenance Signing

Provenance Signing

Organisatioun
buriedsignals
provenance-signing

Build a Spotlight provenance manifest and optionally hand it to Noosphere C2PA signing before the final review/report artifact is delivered.

Iwwersiicht

Editeurburiedsignals
Repositoryspotlight
Skill-Nummprovenance-signing
Stären
60
Forks
11
Matgeliwwert Dateien
Nëmmen Instruktiounen
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.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

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

Installatioun

Installéiert de KI-Skill Provenance Signing an TypingMind, fir e mat all LLM ze benotzen, oder setzt 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 „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/buriedsignals/spotlight/tree/main/skills/provenance-signing
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng 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 d'Skill-Verzeechnes vun deem KI-Agent.

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

An TypingMind benotzen

Aktivéiert Provenance Signing 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 Provenance Signing automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Provenance Signing 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-Schlësselen.

  • 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.

Provenance Signing

This skill creates a portable provenance package for a completed Spotlight case. It does not replace Spotlight verification. It makes the case artifacts tamper-evident and gives Noosphere C2PA a clear signing contract.

Use it after the Investigation gate readiness criteria pass and before the final HTML review/report artifact is delivered.

What Gets Signed

Spotlight signs the investigation package, not isolated web fetches:

  • summary.md
  • data/findings.json
  • data/fact-check.json
  • data/source-expressions.json, for activated cases
  • data/evidence-bundle.json
  • data/investigation-log.json
  • review.html, when present
  • finalized report artifacts, when present

Legacy cases keep the generated manifest at:

{CASE_DIR}/data/provenance-manifest.json

For an activated findings contract (schema_version: "1.1"), that path is a derived current pointer. The immutable manifest bytes are stored at:

{CASE_DIR}/data/provenance-manifests/PM-<revision-hash>.json

Each revision records its input-set hash and parent revision/input-set hashes. Claim entries include the exact source-expression IDs, expression/finding/link fingerprints, relation, anchor hash, and original artifact hash used by the fact-check at that revision. This proves integrity and traceability, not that the passage semantically entails the finding.

Credentials Boundary

Signing needs a Noosphere API key with the sign scope, sent as the X-API-Key header from NOOSPHERE_PROVENANCE_API_KEY. The signing credential itself is configured on the Noosphere side and never reaches the case directory.

Model this distinction explicitly:

  • requires_api_key: true
  • requires_signing_credential: true
  • credential_id: optional identifier passed to the signer

Never store private keys, certificates, API keys, bearer tokens, or signing secrets in the case directory.

Build Only

For a local unsigned package:

text
execute-shell("scripts/spotlight-python scripts/build-provenance-manifest.py {CASE_DIR}")

For a legacy case this writes the existing unsigned 1.0 manifest. For an activated case it creates one immutable unsigned revision and advances the current pointer. Repeating the command with unchanged inputs reuses the same revision.

Before delivering or signing an existing manifest, check that findings, fact-check, source expressions, review, and report inputs have not changed:

text
execute-shell("scripts/spotlight-python scripts/build-provenance-manifest.py {CASE_DIR} --check-current")

The command exits non-zero and marks an activated pointer stale on any input or revision-byte mismatch. Rebuild to create a child revision; never edit a revision file in place.

Optional Noosphere Signing

If a Noosphere C2PA signer endpoint is available:

text
execute-shell("scripts/spotlight-python scripts/build-provenance-manifest.py {CASE_DIR} --sign-endpoint \"$NOOSPHERE_C2PA_URL\" --credential-id \"$NOOSPHERE_C2PA_CREDENTIAL_ID\" --artifact review.html")

The signing request carries this body. NOOSPHERE_PROVENANCE_API_KEY is sent as X-API-Key only to https://platform.noosphere.tech; with the key set, a custom endpoint is refused rather than handed the key. The key is read from the environment only, never from a command-line flag. In sensitive mode the helper does not contact the signer and writes the unsigned manifest.

json
{
  "profile": "spotlight",
  "artifact_path": "review.html",
  "provenance_manifest": {},
  "credential_id": "optional signer credential id"
}

The response follows the Noosphere provenance contract 1.x (https://platform.noosphere.tech/openapi.yaml): it returns the signed record_b64, its content_hash, the C2PA sidecar as c2pa_manifest_b64, and echoes profile and input_set_hash unchanged.

The helper checks every response before keeping it: contract_version is 1.x, status is signed, profile and input_set_hash match what was sent, content_hash matches the decoded record_b64 bytes, record_b64 decodes to record, every artifact, claim and source sent appears unchanged in the signed record, the sidecar is valid base64, and certificate_chain.grade is production. It never follows a redirect and refuses responses over 32 MB. A response that fails any check, or an HTTP error (401 key rejected, 403 missing sign scope, 413, 422, 429 with its retry delay, 503 no production chain), records signing_failed with the reason.

A response that passes is then verified locally: c2patool checks the C2PA sidecar over the record bytes against the pinned C2PA trust list (integrations/noosphere-c2pa/c2pa-trust-list.pem). Only a Trusted result marks the package signed. Otherwise, including when c2patool is not installed, the receipt is kept with receipt_status: received_unverified, the package stays unsigned, and signing.verification records why.

For activated cases receipts are immutable and content-addressed under:

{CASE_DIR}/data/provenance-signing-receipts/

The current pointer records the applicable receipt. A repeated signing command for a revision that already has a receipt does not call the signer again. Legacy cases retain data/provenance-signing-receipt.json for compatibility.

Report Language

In summaries and HTML reports, describe the result carefully:

  • Correct, once a package is signed: "The investigation package and verification trail were signed and can be checked for later tampering."
  • Correct, with receipt_status: received_unverified: "A signing receipt was received from Noosphere; it has not been verified locally."
  • Incorrect: "C2PA proves the investigation is true."

Truth still depends on Spotlight evidence, independent fact-checking, and editorial review.

Failure Handling

If signing fails, keep the unsigned immutable revision and continue the review flow. Activated cases append a deduplicated failure record under data/provenance-signing-attempts/; retrying never overwrites a revision, receipt, or earlier attempt. Report:

  • endpoint attempted,
  • whether a credential id was provided,
  • exact error string from the current pointer,
  • that the case remains editorially reviewable but unsigned.

If a signing retry succeeds, the pointer advances to the immutable receipt and prior failed-attempt records remain historical evidence. If case inputs change after signing, the signed revision and receipt remain untouched; the current pointer becomes stale until a new child revision is built.

Heefeg gestallte Froen

Wat mécht de KI-Skill Provenance Signing?

Build a Spotlight provenance manifest and optionally hand it to Noosphere C2PA signing before the final review/report artifact is delivered.

Firwat Provenance Signing op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Provenance Signing 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 en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Provenance Signing an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/buriedsignals/spotlight/tree/main/skills/provenance-signing an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Provenance Signing 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 Provenance Signing benotzen?

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

Ass de KI-Skill Provenance Signing gratis?

buriedsignals huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen 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 e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

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