Logo de Provenance Signing

Provenance Signing

Organização
buriedsignals
provenance-signing

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

Visão geral

Publicado porburiedsignals
Repositóriospotlight
Nome da habilidadeprovenance-signing
Estrelas
60
Forks
11
Arquivos incluídos
Somente instruções
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por buriedsignals no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Provenance Signing no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/buriedsignals/spotlight/tree/main/skills/provenance-signing
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Provenance Signing em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Provenance Signing automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Provenance Signing não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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.

Perguntas frequentes

O que a habilidade de IA Provenance Signing faz?

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

Por que usar Provenance Signing no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Provenance Signing é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Provenance Signing no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/buriedsignals/spotlight/tree/main/skills/provenance-signing. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Provenance Signing?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Provenance Signing?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Provenance Signing com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Provenance Signing é gratuita?

A habilidade é publicada no GitHub por buriedsignals. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇