Prompt file imported from yukuma236/AIAutomateCodingTest (
.github/prompts/3_task-implement.prompt.md). Copyright stays with the author.
Implement Task
Implement and validate only the explicitly approved plan.
Entry conditions
- Read the approved Research handoff, approved business specifications, approved Plan, and applicable Test Specification/Test Case from the repository or current conversation. Do not rely on chat history that was not handed over.
- If approval is missing, required artifacts are unavailable, or an implementation detail would change approved business behavior, stop implementation and return the issue to Research or Plan for resolution and approval.
- Reconfirm project requirements and only the relevant shared standards through
standards/docs/README.md. If present in the submodule, explicitly readstandards/.github/copilot-instructions.md.
Implement and validate
- Make the smallest change that fulfills the approved plan. Do not widen scope or reinterpret business behavior.
- For Power Automate cloud flow changes, use the available Power Automate skills and FlowAgent MCP tools. Retrieve the current definition again with
get_flowbefore changing an existing flow. Do not hand-edit and upload an exported JSON as an ordinary text file; useedit_flowfor surgical changes orupdate_flowwhen a full definition is appropriate. - Use
src/flows/for local exports. Runpreflight_flow/validate_flowwhere available before creation or update. If the required tools or synchronization are unavailable, report that limitation and do not make flow changes. - Prefer Developer or Sandbox. Do not use Production without explicit authorization and a documented justification.
- Validate every approved Test Case against its approved expected result. Use
run_flowfor instant/HTTP-triggered flows orget_past_trigger_inputsandresubmit_runfor event-triggered flows as appropriate; useget_run_actions,get_run_action_content, anddiagnose_runto verify the results. - Do not derive or alter expected results from the implemented flow's observed behavior. Report mismatches as failures and request a specification decision rather than silently changing the expected result.
- Record evidence per Test Specification and Case, including pass/fail, actual result, and the full Run URL. Confirm that
src/flows/is synchronized with the resulting Power Platform definition. - If validation requires a business-specification change, stop and return to Research; if the technical approach or scope must change, return to Plan and obtain approval before continuing.
Completion handoff
Report changes, target environment, validation results by case, evidence locations/Run URLs, synchronization status, and any deviations or blockers. Keep the approved specifications and plan as the durable source of truth for a later chat.
