Repository navigation
Revisão de conformidade: modo review do verify.sh e skill revisao-conformidade - #12
Merged
Merged
Conversation
…nd a skill The review steps lived in the root AGENTS.md, loaded in every session, and depended on the agent running git add -N on every new file: a forgotten one stayed out of the review without warning. The procedure moves to the revisao-conformidade skill, and the inputs come from `verify.sh review`, which diffs from the merge-base with every new file through a temporary index, finds the plan commit, always writes the contract drift, and fails before writing when the plan commit or the criteria file is missing. The review result is kept in revisao.md, so another session can publish it, one comment per ticket. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RgE8sJLFxENgwV47XrwDGP
Contributor
Author
Revisão de conformidade: sem ticket (skill-revisao-conformidade)
Relatório do revisor, na íntegraAchados
O que não consegui conferir
|
There was a problem hiding this comment.
🔵 Needs a closer look
An unresolved moderate finding remains, and the harness and skill changes warrant final human review.
1 open finding
What changed in this PR
Adds a dedicated conformance-review workflow and verify.sh review mode.
Changes:
- Generates review diffs, plan messages, and contract-drift reports.
- Adds harness tests for ticketed and unticketed reviews.
- Introduces the
revisao-conformidadeskill and updates related guidance.
| File | Summary |
|---|---|
scripts/verify.sh |
Implements review mode; has an unresolved moderate criteria-validation finding and a Markdown-formatting nit. |
scripts/test/verify-review.test.sh |
Adds tests for review input generation and validation. |
REVIEW.md |
Updates criteria-source guidance. |
AGENTS.md |
Delegates the workflow to the new skill. |
.claude/skills/revisao-conformidade/SKILL.md |
Documents review, triage, and publication. |
.claude/skills/revisao-conformidade/agents/openai.yaml |
Registers skill metadata. |
.claude/skills/implement/SKILL.md |
Integrates conformance review into implementation. |
.claude/skills/implement-spec/SKILL.md |
Integrates reviews into specification implementation. |
.claude/agents/revisor-conformidade.md |
Updates reviewer input instructions. |
🧠 Review effort: Lite
Comment on lines
+511
to
+513
| [[ -f "$dir/criterios.md" ]] || | ||
| abort "não há critérios para a revisão: $dir/criterios.md não existe." \ | ||
| "escreva nele os critérios de aceite da mudança, antes de revisar, e rode \`scripts/verify.sh review sem-ticket $2\` de novo." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Resumo
A revisão de conformidade tinha o passo a passo no
AGENTS.mdda raiz, lido em toda sessão, e dependia de o agente lembrar ogit add -Nde cada arquivo novo: um arquivo esquecido ficava fora da revisão sem aviso.scripts/verify.sh review <pai> <ticket>ereview sem-ticket <nome>geram os insumos do revisor na pasta do ticket. O diff vai domerge-basecom a base até a pasta de trabalho, com todo arquivo novo que o Git não ignora, por um índice temporário que não mexe no índice real. Com ticket, o modo acha o commit de plano (e falha sem ele), grava a mensagem dele e o desvio do contrato, este sempre, pela mesma régua do aviso da CI. Sem ticket, exige ocriterios.md. Confere antes de gravar que os insumos seriam ignorados pelo Git.revisao-conformidade, que o modelo pode chamar, com duas partes: Review (insumos, revisor só com caminhos,revisao.mdcom o relatório na íntegra e a tabela, triagem que para e pergunta antes de deixar sem corrigir um achado alto) e Publish (um comentário por ticket, a partir dorevisao.md).AGENTS.md: a seção fica só com a regra e aponta para a skill (290 para 253 linhas).implement, aimplement-spec, a definição dorevisor-conformidadee uma frase doREVIEW.mdpassam a apontar para a skill e para o arquivo de critérios.scripts/test/verify-review.test.sh: 47 casos no passo "Testes do harness" dofull. Conferi que reprovam três mutações (sem os arquivos novos, mensagem do HEAD no lugar da do plano, base sem omerge-base).Aceite
nenhum: mudança no harness
Guarda do harness
Este PR altera
scripts/e.claude/agents/, então a Guarda do harness reprova, e o merge só entra por override do admin. Espere oVereditoverde antes do bypass.Verificação
scripts/verify.sh fullaprovado na máquina (baseorigin/main).Para o revisor humano
push-verify.shroda oprepushna pasta doCLAUDE_PROJECT_DIR, e não no checkout de onde sai o push. Trabalhando numgit worktree, ele confere a branch errada e nega o push, que aqui foi feito pelo usuário no terminal. Fica para uma mudança à parte.LUI-173-CA9(docs/tickets/LUI-156/LUI-173/aceite.md) cita o comando do diff "como oAGENTS.mdmanda", que saiu doAGENTS.md. Descongelar é do usuário.🤖 Generated with Claude Code
https://claude.ai/code/session_01RgE8sJLFxENgwV47XrwDGP