Skip to content

[squad] Implement #53518: WHERE inference and generated prompt output - #53745

Merged
pelikhan merged 1 commit into
mainfrom
squad/implement-53518-where-inference-prompt-40fe2ba5ef6160ec
Aug 18, 2026
Merged

[squad] Implement #53518: WHERE inference and generated prompt output#53745
pelikhan merged 1 commit into
mainfrom
squad/implement-53518-where-inference-prompt-40fe2ba5ef6160ec

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Extends the docs-side AW wizard shell (docs/src/components/Wizard.astro) with:

  • WHERE inference explanation: the destination step now explains why a destination was inferred (based on selected goal + trigger type), and clarifies when the user has manually overridden it.
  • Override support: destination overrides are tracked separately (state.destinationOverridden) from inferred defaults, so re-selecting a trigger or goal that invalidates the override resets it, but the wizard won't silently clobber a deliberate user choice.
  • Task description step: a new free-text step lets users add task-specific detail (tone, constraints, edge cases) that flows into the final prompt.
  • Generated prompt view: a new final step assembles a single self-contained, copy-ready prompt from all structured answers (WHAT/WHEN/WHERE) plus the free-text task details, with a "Copy prompt" button (clipboard API with graceful fallback messaging).

Inference rules remain fully data-driven from wizard-data-model.json (inferFromTriggerTypes on each destination option), consistent with the existing model.

Validation

  • cd docs && npm run build completes successfully (225 pages built, /wizard/index.html included, no broken links).

Closes #53518

Generated by Squad Implement Worker · auto · 89.1 AIC · ⌖ 10.1 AIC · ⊞ 11K ·

Add this agentic workflow to your repo

To install this agentic workflow, run

gh aw add bradygaster/squad/workflows/squad-implement-worker.md@a70c752010f8adfb33f06c7aafb32db09aab1060
  • expires on Sep 1, 2026, 8:04 AM UTC-08:00

…d generated prompt view

- Explain the inferred WHERE destination with reasoning based on goal/trigger
- Track explicit destination overrides separately from inferred defaults
- Add a task-description free-text step appended to the final prompt
- Add a final generated-prompt step with a copy-to-clipboard action

Closes #53518

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added the squad label Aug 18, 2026
@pelikhan
pelikhan marked this pull request as ready for review August 18, 2026 16:31
Copilot AI balanced review requested due to automatic review settings August 18, 2026 16:31
@pelikhan
pelikhan merged commit 1605170 into main Aug 18, 2026
@pelikhan
pelikhan deleted the squad/implement-53518-where-inference-prompt-40fe2ba5ef6160ec branch August 18, 2026 16:31
@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

Test Quality Sentinel completed test quality analysis.

No test files were added or modified in this PR. Test Quality Sentinel skipped.

🧪 Test quality analysis by Test Quality Sentinel

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Extends the docs wizard with destination inference explanations, override tracking, task details, and a copyable generated prompt.

Changes:

  • Adds destination inference and override handling.
  • Adds task-description and final-prompt steps.
  • Adds prompt copying and related styling.
Show a summary per file
File Description
docs/src/components/Wizard.astro Implements the expanded five-step wizard experience.

Review details

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Suppressed comments (2)

docs/src/components/Wizard.astro:212

  • A selected trigger does not necessarily supply the inference. For example, issue automation with manual dispatch has no destination matching workflow_dispatch, so the code falls back to the goal default but claims that the trigger commonly pairs with it. Check whether the selected destination actually declares the trigger type before presenting that reason.
      const reason = trigger
        ? `because the "${trigger.text.label}" trigger commonly pairs with this output`
        : 'based on the selected goal';

docs/src/components/Wizard.astro:462

  • The assembled final prompt can still omit the structured WHEN answer: most trigger options have no text.help, so selections such as Every day or manual dispatch render Trigger intent: — rather than the model's frontmatter intent. Derive a readable intent from trigger.frontmatter, or add model-authored summaries, before presenting this as the copy-ready prompt.
        'WHERE',
        `- Destination: ${destination?.text.label ?? '—'}`,
        `- Output intent: ${destination?.text.help ?? destination?.safeOutputType ?? '—'}`,
  • Files reviewed: 1/1 changed files
  • Comments generated: 4
  • Review effort level: Balanced

Comment on lines 110 to 112
state.triggerId = value;
state.destinationOverridden = false;
syncDestinationSelection();
label: 'Where',
title: 'Review the inferred output destination',
description: 'The shell preselects a destination from the model based on the selected goal and trigger type, while still allowing review.',
description: getDestinationStepDescription(),
Comment on lines +148 to +150
{
id: 'task-details',
label: 'Task',
Comment on lines +449 to 450
const lines = [
intro,
@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v0.87.1

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement WHERE inference and generated prompt output

2 participants