Skip to content
This repository was archived by the owner on Mar 22, 2026. It is now read-only.

Latest commit

 

History

History
53 lines (43 loc) · 3.65 KB

File metadata and controls

53 lines (43 loc) · 3.65 KB
name generating-execution-spec
description Fill the Execution-Spec template for a engineering-log task: read TASK_DIR/03-solution-hld.md (must contain === RESULT FOR EXECUTION-SPEC ===) and TASK_DIR/04-execution-spec.md (template), ask only factual clarifying questions if needed, then overwrite 04-execution-spec.md with a complete unambiguous spec and (optionally) save chat transcript to TASK_DIR/chats/03-execution-spec-chat-1.md.

Process step: engineering-log execution spec

Input

  • TASK_DIR is the task base directory (a repo-relative path or an absolute path).
  • These files must exist:
    • TASK_DIR/03-solution-hld.md (must include === RESULT FOR EXECUTION-SPEC ===).
    • TASK_DIR/04-execution-spec.md (the template that must be fully filled and overwritten).

If TASK_DIR is not provided, ask for it. If the required files are missing, stop and ask for the correct path. If the template is missing, ask the user to run the task init step first.

Output

  • Overwritten TASK_DIR/04-execution-spec.md as a single complete document (English).
  • The same final text printed to chat (no additions).
  • Optional: saved chat transcript to TASK_DIR/chats/03-execution-spec-chat-1.md.

Algorithm

  1. Determine TASK_DIR and validate the working files exist.
  2. Read TASK_DIR/03-solution-hld.md and extract the === RESULT FOR EXECUTION-SPEC === block.
  3. Read TASK_DIR/04-execution-spec.md (template) and prepare to fill it completely.
  4. If any section cannot be filled with facts from inputs:
    • ask clarifying questions without proposing solutions;
    • stop and end the message with:
=== WAITING FOR ANSWERS (EXECUTION-SPEC) ===
  1. After answers (or if inputs are sufficient), follow the prompt in references/exec-spec-prompt.md strictly.
  2. Hard requirement for the filled spec: in the template section ## 9. Testing there must be either a list of acceptance test cases or a link to an artifact that contains them.
  3. Hard requirement for the filled spec: explicitly state that the executor must work by TDD using those acceptance test cases.
  4. Hard requirement for the filled spec: include a test definition of done that states “all acceptance test cases are implemented and pass”.
  5. Conventions rule: do not duplicate test coding rules in the spec.
  6. Conventions rule: provide links to the relevant conventions instead.
  7. Default requirement: if the task impacts any public API (HTTP, RPC, events, DB contracts, or other externally consumed interfaces), explicitly require backward compatibility in TASK_DIR/04-execution-spec.md unless the inputs explicitly approve a breaking change.
  8. Hard requirement for the filled spec: instruct the executor to stop and ask the user for clarification/approval if, during implementation, it turns out the spec cannot be followed literally.
  9. Hard requirement for the filled spec: instruct the executor to append to the implementation chat transcript as they go (after each completed step) and not fabricate it if saving is not possible.
  10. If a required link or acceptance cases cannot be provided factually from inputs, ask for it as a clarifying question and stop with === WAITING FOR ANSWERS (EXECUTION-SPEC) ===.
  11. Write the final document to TASK_DIR/04-execution-spec.md in English and output the exact same text to chat.
  12. Ask whether the current chat transcript may be saved.
  13. If yes, append to the transcript as you go, after each completed step, instead of saving only at the end.
  14. Save the transcript to TASK_DIR/chats/03-execution-spec-chat-1.md.
  15. If you cannot save the transcript automatically, do not fabricate it.
  16. Ask the user for help or use $exporting-chat-artifacts.