test-execution-feedback-loop
Proposes the smallest fix for each failing test in the verification evidence, anchored to file, line and acceptance criterion. Use when the verifier reports overall_status fail and the next implementation turn has not begun.
- License 许可
- MIT
- 所属仓库
- Eliyce/paqad-ai
- 最近更新
- 2026-11-13
- Stars
- ★ 8
- Forks
- 0
01 前言 Front Matter
- name
- test-execution-feedback-loop
- metadata
- { "cacheable": "false", "model_tier": "reasoning", "paqad-meta": "skill.meta.yaml", "output_format": "markdown" }
- description
- Proposes the smallest fix for each failing test in the verification evidence, anchored to file, line and acceptance criterion. Use when the verifier reports overall_status fail and the next implementation turn has not begun.
02 资源文件 6
- 参考文档agents/openai.yaml213 B
- 资产文件assets/output.template.md804 B
- 参考文档references/fix-proposal-template.md1.9 KB
- 脚本scripts/lint-output.sh1.4 KB
- 脚本scripts/load-failures.sh1.3 KB
- 参考文档skill.meta.yaml632 B
03 SKILL.md 正文
What It Does
Reads the structured verification evidence file produced by the verifier, and for every entry in gates[].failures[] proposes the smallest change that would make that test pass. Each proposal is anchored to a specific file, line, AC id, and root-cause hypothesis: no prose-only suggestions and no fixes that work around the test.
The point is to collapse the typical fix-test-rerun-repeat loop from two turns into one: the model's next implementation turn can act on a structured proposal instead of re-reading raw test output.
Use This When
Immediately after the verifier reports overall_status: "fail" and before the next implementation turn begins. Run it whenever there are at least one failure in the evidence file. Skip in the fast lane unless explicitly requested.
Inputs
- Read the verification evidence at
verification_evidence_pathfirst; reject the run ifschema_versionis not1.0.x. - Read the acceptance criteria artifact when supplied so each failure's
ac_idcan be cross-checked. - Read the changed-file list to calibrate confidence (failures pointing at files outside the change set lower confidence to
low). - Read
references/fix-proposal-template.mdbefore drafting proposals so every proposal has the required fields.
Procedure
- Run
scripts/load-failures.sh [evidence-path]: emits one JSON object per failure, exits 1 if schema_version is unsupported. Iterate over those rows. - For each failure, read an excerpt around
file:lineto confirm the cited line still exists. - Cross-check
ac_idagainst the acceptance criteria artifact; markuntracedand lower confidence when the AC is missing. - Draft one proposal per failure (or one combined proposal when failures share a root cause) per
assets/output.template.md. - Confidence:
highonly when one-line, anchored to the change set, and AC is known. - Validate with
scripts/lint-output.sh.
Output Contract
- Return a heading named
Fix Proposals. - For each failure (or combined group), emit a third-level heading
### Failure {N}and the fields fromreferences/fix-proposal-template.md. - End with a summary line:
Total failures: {N} | Combined into {M} proposals | High-confidence: {H} | Defer to human: {D}. - When the evidence file has zero failures, return
Fix Proposals: none, verification passed.exactly.
See assets/output.template.md for the canonical shape; lint enforces it.
Escalate / Stop Conditions
- Stop when the evidence file is missing or its
schema_versionis unsupported; do not attempt to derive failures from prose. - Warn when a failure's
failures[].filedoes not exist on disk: the diff may have been reverted; recommend re-running the verifier before drafting more proposals. - Recommend
defer to humanwhenever confidence falls tolow. - Do not propose changes that weaken or skip the failing test.
Resources
references/fix-proposal-template.mdscripts/load-failures.shscripts/lint-output.shassets/output.template.mdagents/openai.yaml
04 同仓库更多 Skills
sample-skill
Sample bundled skill fixture
processing-invoices
Turns a supplier invoice into one ledger line. Use when a supplier invoice arrives and needs booking.
processing-invoices
Turns a supplier invoice into one ledger line. Use when a supplier invoice arrives and needs booking.
understand-idea
Chat and Claude Code: Step 1 of the discover journey: clarifies the goal, who benefits, success and constraints into the idea block. Use when the journey directs it to step 1, not directly.
size-work
Chat and Claude Code: Suggest a size for a ticket from comparable finished work, as a labelled suggestion the team still owns. Use it when someone asks "how big is this?", "roughly how much work is ABC-12?", or wants a backlog item sized. It finds the team's sizing scale at first use, picks two to five of the closest finished tickets with links, and gives a size or range with the drivers behind it and a confidence of low, medium or high, lowered and explained when the area's documents are template text. Every result is labelled a suggested size, never a date or a commitment. It writes nothing into the size field unless the user says "set it", and it refuses to overwrite an existing size unless the user asks to replace it. Produces the sizing block of the record.
refine-ticket
Chat and Claude Code: Improve one or more existing tracker tickets without losing the author's intent. Use it when someone wants a ticket read, diagnosed and tidied up ("this ticket is vague", "fix up ABC-12", "split this, it's too big"). It reads each ticket in full and snapshots it with its last-updated time, says what is wrong with evidence, and proposes a field-by-field before and after change set limited to summary, description, labels, parent, links and new child tickets on a split. It writes nothing until an explicit "apply it" bound to that exact change set, re-checks the ticket for conflicting edits just before writing, never replaces rich descriptions with plain text, never deletes or closes a ticket, and reads each ticket back after applying. Produces the existing and changes blocks of the record.