Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: psake/PowerShellBuild
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: psake/PowerShellBuild
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: docs/159-test-migration-prompt
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 2 contributors

Commits on Aug 28, 2026

  1. docs: Fix the AI migration prompt against real consumer builds

    The migration guide's AI prompt had never been exercised. Running it
    verbatim against four real public consumer builds (three psake, one
    Invoke-Build, PowerShellBuild pins from 0.6.1 to 0.8.2) surfaced five
    defects. None produced a build file that would not parse, but two could
    silently change build behaviour.
    
    - Step 5 told the agent to change "the -Version on `task ... -FromModule
      PowerShellBuild -Version`". Most real consumers use -MinimumVersion;
      -Version is an alias for -RequiredVersion, so following the step
      literally converts a floor into an exact-version requirement. Every
      psake run flagged this as wrong and had to improvise. The step now says
      to keep whichever parameter the consumer already uses and change only
      its value.
    - Step 5 also drove agents to replace floating pins ('latest') with a
      hard pin on the unpublished 1.0.0, breaking the consumer's bootstrap
      immediately where 'latest' would have kept working. It now says to
      leave floating pins floating and report them.
    - The baseline step opened with "Before editing anything" but was
      numbered after the step that applies edits. It is now step 2.
    - The conventions section said $PSBPreference is "populated in
      build.ps1". It is set in the psake file's properties block or in
      .build.ps1; build.ps1 is only a bootstrap wrapper. The inputs section
      now points at the task file and allows for names like
      .mymodule.build.ps1.
    - The completeness self-check only verified the document's tail. One run
      computed a self-consistent but wrong entry count and still passed it.
      The check now pairs every Quick Start bullet with its heading, and
      step 8 uses that list as the reporting checklist.
    
    Also adds a non-interactive fallback for the prompt's three "ask me"
    branches, and corrects the claim about what the prompt was tested
    against.
    
    Re-running the revised prompt against the same consumer confirms each
    fix: the -MinimumVersion parameter is preserved, the floating pin is left
    floating with a review marker, and all 18 entries are paired and
    reported.
    
    Refs #159
    
    Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_011GYJrhbrDzqufaeMqD9QjT
    tablackburn and claude committed Aug 28, 2026
    Configuration menu
    Copy the full SHA
    4c35102 View commit details
    Browse the repository at this point in the history
Loading