fix(task): standardize blocked precondition receipts - #654
Merged
Conversation
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.
Pull Request
Resumo
Padroniza recibos fail-closed de precondições bloqueadas do
task --dry-run-task --json, incluindo schemas versionados, roteamento acionável e diagnósticos somente em stderr. O mesmo contrato agora cobre artefatos Mapper ausentes/stale, handoff/contexto, seleção de target e bloqueios de provider/execution mode.Task relacionada
Tipo de mudança
Definition of Done
Pergunta de invariante
blocked_preconditionsé normalizada uma única vez por_task_result; os diagnósticos consomem exatamente as entradas já normalizadas, preservando a mesma granularidade, ordem e roteamento.Evidências
py -3.14 -m ruff check simplicio/commands/task.py simplicio/pipeline.py simplicio/pipeline_task_result.py tests/python/test_task_json_contract.py tests/python/test_pipeline_task_result_module_coverage_gap.py→All checks passed!py -3.14 -m ruff format --check ...→5 files already formattedpy -3.14 -m pytest tests/python/test_pipeline_task_result.py tests/python/test_pipeline_task_result_module_coverage_gap.py --cov=simplicio.pipeline_task_result --cov-branch --cov-fail-under=85 -q→55 passed,95.94%44 passedmodel_invoked=false, reasonsartifacts_missing/no_handoff_targets, dois diagnósticos em stderr;next_surface=task_target, reasontarget_outside_root;simplicio contracts smoke --json --repo .→ todos os checks obrigatórios passaram.Limitações de baseline observadas
pytest -qcompleto não produziu resultado final antes do timeout de 604,1 s; os processos pertencentes a esse basetemp foram encerrados.test_task_json_contract_over_real_mapper_fixtureporMAPPER_CONTEXT_IDENTITY_REQUIRED.skills/simplicio-prism/scripts/generate_capability_inventory.py; format global lista 7 arquivos não alterados.simplicio/mapper.py:423-425(union-attr).Matriz AC → receipt
{"schema":"simplicio.dev-cli.evidence-ledger/v1","claims":{"structured_schema":{"status":"measured","evidence":"55 focused tests; 95.94% branch-aware coverage"},"fail_closed":{"status":"measured","evidence":"three real CLI blocked scenarios; exit 1; applied false; model_invoked false"},"diagnostics":{"status":"measured","evidence":"single JSON stdout plus BLOCKED diagnostics on stderr"},"documentation":{"status":"measured","evidence":"docs/blocked-preconditions.md and CHANGELOG.md updated"}},"watcher":{"revalidated":true}}Cenários E2E cobertos
Breaking changes
N/A. O contrato é aditivo e versionado.
Notas de deploy
N/A.