fix(prompts): enforce consent-gated issue filing in debug prompt v2#1687
Conversation
Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
|
Azure Pipelines: 2 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
| - **Compile before committing**: Always compile with `ado-aw compile` and commit both the `.md` source and generated `.lock.yml` together. | ||
| - **Check validation**: The compiler validates front-matter fields and emits errors for invalid configurations (e.g., conflicting filter rules, missing required fields like `comment-on-work-item.target`). Write-bearing safe outputs do **not** require `permissions.write` — the executor defaults to `$(System.AccessToken)`. | ||
| - **Lint raw task steps**: When you author `task:` steps, run `ado-aw lint <file> --json` and fix any `task-input-invalid` findings — the compiler passes those steps through unchecked, so lint is the only place invalid task inputs surface. | ||
| # Create an Azure DevOps Agentic Workflow (v2) |
There was a problem hiding this comment.
@copilot remove any mention of V2 - also remove "prompt-contract-v2.md" or rename to AGENTS.md to provide guidance for future agents.
There was a problem hiding this comment.
Done in 726e9a5. I removed the V2 naming and replaced prompts/prompt-contract-v2.md with prompts/prompt-contract.md, then updated all prompt/test/docs references accordingly.
|
@copilot remove any mention of V2 - also remove "prompt-contract-v2.md" or rename to AGENTS.md to provide guidance for future agents. |
Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
Addressed in 726e9a5: removed V2 naming from the prompt files and replaced |
|
Azure Pipelines: 2 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Summary
This PR overhauls the authoring prompts to remove unconditional external actions and make debug flows report-first by default. It addresses the #1663 class of behavior by requiring explicit in-session user approval before filing GitHub issues.
prompts/prompt-contract-v2.mdas the canonical policy for confirmation, side effects, evidence quality, and stop conditions.create,update, anddebugprompts to a compact Core + Task Module structure.src/engine.rs/DEFAULT_COPILOT_MODEL) instead of local hardcoded assumptions.tests/prompt_contract_tests.rsto enforce:Test plan
tests/prompt_contract_tests.rsfor consent-gating and banned phrase enforcement.