witness
O que ela faz
Esta skill mantém uma lista assinada das correções de um projeto de software e verifica cada nova versão para ver se alguma correção regrediu. Ela é para desenvolvedores que publicam software e querem uma prova de que suas correções continuam valendo.
Quando usar
- ✓Quando você registra uma correção de bug para que ela seja verificada em versões futuras.
- ✓Quando você quer confirmar que uma nova versão não desfez correções anteriores.
- ✓Quando você precisa encontrar a mudança que trouxe de volta uma correção quebrada.
Link da skill
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-core/skills/witness/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Registre minhas correções de bugs recentes e verifique a nova versão para ver se alguma delas quebrou de novo.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
Cada correção é listada com um texto de marcação curto e uma impressão digital, e a lista é assinada. Um arquivo de histórico registra as mudanças ao longo do tempo, para que um problema possa ser rastreado até a mudança que o causou.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Witness — tamper-evident fix-regression tracking
The witness toolkit lets you ship every release with a signed manifest
that lists every documented fix in your codebase along with a sha256 +
marker substring. By default the signing seed is derived from the public
git commit, so anyone can reproduce the signature: this is an integrity
checksum, not proof of authorship. For authenticity, sign with a 32-byte
RUFLO_WITNESS_SEED and verify with a pinned RUFLO_WITNESS_PUBLIC_KEY.
A temporal history (JSONL) tracks how the fix population evolves across releases — so when a regression appears, you can pinpoint the commit that introduced it, not just "it's broken now."
This skill works two ways:
- Inside ruflo — used by ruflo's own CI to gate publishes (see
.github/workflows/v3-ci.ymljobwitness-verify). - In your own project — copy
plugins/ruflo-core/scripts/witness/into your repo, runinit.mjs, register your fixes inwitness-fixes.json, and callregen.mjsfrom your release pipeline.
Quick start (any project)
# One-time bootstrap — creates verification.md.json,
# verification-history.jsonl, and witness-fixes.json template
node plugins/ruflo-core/scripts/witness/init.mjs --root .
# Edit witness-fixes.json: add { id, desc, file, marker } per fix.
# A "marker" is a distinctive substring that MUST appear in `file`
# while the fix is present. If someone reverts the fix, the marker
# disappears and `verify` reports it as `regressed`.
# Regenerate the manifest (signing requires @noble/ed25519)
npm i @noble/ed25519
node plugins/ruflo-core/scripts/witness/regen.mjs \
--manifest verification.md.json \
--history verification-history.jsonl \
--fixes witness-fixes.json
# Verify markers are present in the live tree
node plugins/ruflo-core/scripts/witness/verify.mjs \
--manifest verification.md.json
# Or authenticate the manifest and check source markers in a clean clone.
# Generated dist/ entries are explicitly reported as skipped.
node plugins/ruflo-core/scripts/witness/verify.mjs \
--manifest verification.md.json --source-only
# For a CI hash tripwire, also fail when a file changes but its marker remains.
node plugins/ruflo-core/scripts/witness/verify.mjs \
--manifest verification.md.json --source-only --strict
# Authenticity: pin a release public key (the flag wins over the env var).
node plugins/ruflo-core/scripts/witness/verify.mjs \
--manifest verification.md.json --public-key <64-hex-public-key>
Without --strict, marker-preserving SHA drift is reported but exits 0.
--strict makes that drift exit 1 without changing signature or missing-file checks.
Temporal queries (ADR-103)
# Latest snapshot vs. previous
node plugins/ruflo-core/scripts/witness/history.mjs \
--history verification-history.jsonl summary
# For each currently-regressed fix, find the commit that introduced it
node plugins/ruflo-core/scripts/witness/history.mjs \
--history verification-history.jsonl regressions
# Status timeline for a specific fix
node plugins/ruflo-core/scripts/witness/history.mjs \
--history verification-history.jsonl timeline --id F1
# Machine-readable for CI
node plugins/ruflo-core/scripts/witness/history.mjs \
--history verification-history.jsonl summary --json
summary exits non-zero if any fix newly regressed since the last
snapshot — drop it in CI as a soft pre-merge gate.
Anti-patterns
- Hand-editing
verification.md.json— always regenerate viaregen.mjs, otherwise the signature breaks. - Markers that are too generic (
'function','import') — pick something unique enough thatgrepdoesn't false-positive against unrelated code. - Skipping the history append — without
--history, you lose the ability to bisect when a regression was introduced. - Committing one without the other —
verification.md.jsonandverification-history.jsonlbelong in the same commit; the JSONL is what lets future you verify the signed manifest is the latest in the line.
Files
scripts/witness/lib.mjs— shared regenerate / history logic.scripts/witness/regen.mjs— CLI: sign + append history.scripts/witness/history.mjs— CLI: query the temporal log.scripts/witness/init.mjs— CLI: bootstrap into a fresh project.scripts/witness/verify.mjs— CLI: validate signature + markers.
In ruflo's CI
v3-ci.yml job witness-verify runs after the behavioral smoke tests
and before publish. Failur
Perguntas frequentes
A assinatura prova quem fez a versão?
Por padrão, não. Ela apenas mostra que o arquivo não foi alterado. Para provar o autor, é preciso configurar uma chave de assinatura privada.
Isso serve apenas para o projeto Ruflo?
Não. Os scripts podem ser copiados para o seu próprio projeto e executados no seu processo de publicação.
O que preciso para começar?
Execute o script de configuração uma vez no seu projeto e liste cada correção no arquivo de correções, com o nome do arquivo e o texto de marcação.
Detalhes
Descrição original do autor
Sign, verify and track fix-marker regressions over time with an Ed25519 witness manifest. Use when registering fixes or checking a release for regressed fixes. The default seed proves integrity only; set RUFLO_WITNESS_SEED/RUFLO_WITNESS_PUBLIC_KEY for authorship.
repo: ruvnet/ruflo
Popularidade
- Estrelas no GitHub
- 81 mil
- Posição no ranking
- #1589
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
agent-adaptive-coordinator
81 milAjuda seu agente a dividir e rebalancear um grupo de agentes de IA conforme a carga de trabalho muda, escolhendo um layout adequado à tarefa.
agent-agent
81 milEnsina seu agente a transformar um grande objetivo em um plano ordenado de ações e a replanejar quando as condições mudarem.
agent-agentic-payments
81 milAjuda seu agente a gerenciar mandatos de gasto para compras com IA, com tetos de valor, janelas de tempo, regras de lojistas e aprovações assinadas.
agent-analyze-code-quality
81 milAjuda seu agente a revisar código quanto à qualidade, encontrando code smells, dívida técnica e ideias de refatoração sem alterar os arquivos.
Skills parecidas
reverse-engineer-anything
422 milAjuda seu agente a analisar apps e pacotes já publicados para explicar recursos, comparar versões ou orientar uma reconstrução, usando a ferramenta REA.
1password
394 milAjuda seu agente a configurar a CLI do 1Password, fazer login e ler ou injetar segredos sem imprimir seus valores no chat.
healthcheck
394 milAjuda seu agente a auditar o computador ou servidor que roda o OpenClaw em busca de riscos como SSH, firewall, atualizações e backups, com correções seguras.