-
-
Notifications
You must be signed in to change notification settings - Fork 936
fix: add Codex skill self-test mode #680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rafaelscosta
merged 5 commits into
main
from
fix/issue-622-skill-tool-self-test-20260507
May 7, 2026
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e9aed30
fix: add codex skill self-test mode [Story 123.21]
rafaelscosta 012a1fe
docs: add codex skill self-test docstrings [Story 123.21]
rafaelscosta a2ac8a7
fix: address codex skill self-test review [Story 123.21]
rafaelscosta cdcf536
fix: harden codex skill self-test validation [Story 123.21]
rafaelscosta e56353f
fix: simplify codex skill target validation [Story 123.21]
rafaelscosta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
54 changes: 54 additions & 0 deletions
54
docs/stories/epic-123/STORY-123.21-codex-skill-tool-self-test.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| # STORY-123.21: Self-test determinístico para skills Codex via Skill tool | ||
|
|
||
| ## Status | ||
|
|
||
| Done | ||
|
|
||
| ## Story | ||
|
|
||
| Como mantenedor do AIOX Core, quero um modo de self-test para skills Codex geradas a partir dos agentes core, para validar skills acionadas pelo Skill tool sem depender de protocolo ping-pong ou execução manual. | ||
|
|
||
| ## Acceptance Criteria | ||
|
|
||
| - [x] AC1. O validador de skills Codex expõe um modo `--self-test` para executar checks determinísticos além da paridade estática. | ||
| - [x] AC2. O self-test simula payloads do Skill tool e confirma que cada skill gerada resolve para o skill id esperado. | ||
| - [x] AC3. O self-test valida frontmatter, caminho source-of-truth e comando de greeting necessários para ativação do agente. | ||
| - [x] AC4. Falhas de self-test aparecem no resultado do validador com mensagens acionáveis. | ||
| - [x] AC5. Há cobertura automatizada para sucesso, falha de source path e normalização de payload Skill. | ||
| - [x] AC6. Validações locais antes de PR são concluídas. | ||
|
|
||
| ## Tasks | ||
|
|
||
| - [x] Investigar o issue #622 e localizar a superfície funcional em `codex-skills-sync/validate.js`. | ||
| - [x] Adicionar helpers de frontmatter, payload Skill e execução de self-tests. | ||
| - [x] Integrar o modo `--self-test` ao validador e ao script npm. | ||
| - [x] Documentar o novo comando no README do sync de skills Codex. | ||
| - [x] Adicionar testes unitários do self-test. | ||
| - [x] Rodar testes focados e validadores relevantes. | ||
| - [x] Preparar artefatos para PR após validação. | ||
|
|
||
| ## Dev Notes | ||
|
|
||
| - O relatório temporário citado no issue #622 não estava mais disponível em `/tmp`, então a correção foi guiada pela descrição do issue e pelas superfícies existentes de sync/validação de skills Codex. | ||
| - A correção não invoca um Skill tool real. Ela cria um harness determinístico para validar o contrato que esse tool consumiria: frontmatter, skill id, source-of-truth e greeting command. | ||
| - O escopo ficou no `aiox-core`; o submódulo `pro/` não foi alterado. | ||
|
|
||
| ## Validation | ||
|
|
||
| - `node -c .aiox-core/infrastructure/scripts/codex-skills-sync/validate.js` -> PASS. | ||
| - `npm test -- tests/unit/codex-skills-validate.test.js --runInBand --forceExit` -> PASS, 1 suite / 10 tests. | ||
| - `npm run validate:codex-skills:self-test` -> PASS, 12 skills checked / 12 self-tests passed. | ||
| - `npm run generate:manifest` -> PASS, 1.103 files, manifest v5.1.15. | ||
| - `npm run validate:manifest` -> PASS. | ||
| - `npm run lint -- --quiet` -> PASS. | ||
| - `npm run typecheck` -> PASS. | ||
| - `npm run test:ci` -> PASS, 317 suites / 7.870 tests / 149 skipped. | ||
|
|
||
| ## File List | ||
|
|
||
| - `.aiox-core/infrastructure/scripts/codex-skills-sync/validate.js` | ||
| - `.aiox-core/infrastructure/scripts/codex-skills-sync/README.md` | ||
| - `.aiox-core/install-manifest.yaml` | ||
| - `package.json` | ||
| - `tests/unit/codex-skills-validate.test.js` | ||
| - `docs/stories/epic-123/STORY-123.21-codex-skill-tool-self-test.md` |
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.