Skip to content

Improve hero-scenarios guidelines: spec fidelity, narrative consistency, convention matching#42641

Open
deyaaeldeen wants to merge 3 commits intomainfrom
improve-hero-scenarios-guidelines
Open

Improve hero-scenarios guidelines: spec fidelity, narrative consistency, convention matching#42641
deyaaeldeen wants to merge 3 commits intomainfrom
improve-hero-scenarios-guidelines

Conversation

@deyaaeldeen
Copy link
Copy Markdown
Member

Problem

During review of hero scenario suggestions (e.g., #42605), the reviewer caught 8 issues that trace back to 3 gaps in the agent guidelines:

  1. No spec-schema validation — The agent invented plausible-looking IDs (cde-..., col-...) instead of checking that uuid-typed fields need real UUIDs. Similarly, url-typed fields got bare hostnames instead of full URLs with schemes.

  2. No narrative–step consistency check — The story said "tags both columns" but only one tagging API call appeared in the steps.

  3. No instruction to match existing document conventions — The agent used a different URL path style than the existing scenarios in the same file.

Changes

Adds three new rule sections to .github/prompts/hero-scenarios-guidelines.md:

  • Spec Fidelity Rules: Forces the agent to check spec type definitions before writing examples. uuid → valid UUID, url → includes scheme, response shapes match operation return types, no batching single-item APIs.
  • Narrative–Step Consistency: Every claim in the scenario description and success criteria must have a corresponding API call.
  • Matching Existing Document Conventions: When appending to an existing hero-scenarios.md, adopt its URL path style, ID format, and section structure.

Note: The compiled workflow lock file (hero-scenarios.lock.yml) will need to be regenerated with gh aw compile after this merges.

…es to hero-scenarios guidelines

Addresses three root causes of issues found during hero scenario review:

1. Spec Fidelity Rules: Example values must match spec types (uuid
   fields need real UUIDs, url fields need schemes, response shapes
   must match operation return types, no batching single-item APIs)

2. Narrative-Step Consistency: Every claim in the story/success criteria
   must have a corresponding API call in the steps

3. Matching Existing Document Conventions: When appending to an existing
   hero-scenarios.md, adopt its URL path style, ID format, and section
   structure instead of introducing inconsistencies

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adds a mandatory verification gate between scenario generation (Step 3)
and posting (Step 4). The agent must re-read the actual spec files and
verify each HTTP call against the definitions — not rely on memory.

Per-step checks: operation existence, request/response shape, property
type validation (uuid/url/datetime/enum), no invented batching.

Per-scenario checks: data flow continuity across steps, narrative
completeness (every claim backed by an API call), existing document
convention matching.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 24, 2026

Next Steps to Merge

Next steps that must be taken to merge this PR:
  • ❌ The required check named Protected Files has failed. Refer to the check in the PR's 'Checks' tab for details on how to fix it and consult the aka.ms/ci-fix guide


Comment generated by summarize-checks workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant