Repository navigation
Stop stating template-specific facts as Reactor invariants - #1138
Merged
Alexandre Zollinger Chohfi (azchohfi) merged 3 commits intoAug 27, 2026
Conversation
The skill states 'WindowsPackageType MUST be None' as if it were an invariant of Reactor, but it is a property of the current dotnet new reactorapp template. An agent handed a packaged Reactor project therefore edits it back to unpackaged; adding WindowsPackageType=None to a project with a Package.appxmanifest silently drops its package identity while the build still succeeds, so nothing surfaces the mistake. Stop mandating a packaging mode. Describe both shapes, tell the agent to keep whatever the scaffold produced, and warn about the downgrade. This is correct against the current unpackaged template and against a packaged one, so it does not have to land in lockstep with a template change. Also drops the adjacent 'exactly two source files' claim, which is false for a packaged scaffold and would contradict the same change.
Alexandre Zollinger Chohfi (azchohfi)
requested a review
from Chris Anderson (codemonkeychris)
as a code owner
August 27, 2026 04:43
Review follow-up. The packaging-neutral rewrite named `EnableMsixTooling` as the packaged marker and told the agent never to set `WindowsPackageType`. Both were wrong in ways that matter: - `EnableMsixTooling` only enables the single-project MSIX tooling. A project with `WindowsPackageType=None` *and* `EnableMsixTooling=true` builds unpackaged -- `None` wins. Verified live: that combination emits no `AppxManifest.xml` / `resources.pri` / `.build.appxrecipe`, while the same csproj with the property absent emits all three. - Packaged does not require `WindowsPackageType=MSIX`. Omitting the property entirely also yields a packaged app off the default, which is what the templates in microsoft/WindowsAppSDK#6620 do. Mandating `MSIX` would have described that scaffold as broken. - "Don't set `WindowsPackageType` yourself" contradicted `docs/guide/packaging.md`, which tells you to set it to `MSIX` -- and this skill routes readers to that guide two paragraphs later. Both shapes are now described with the property precedence stated, and the rule is scoped to the actual hazard (don't flip the mode of a project you didn't scaffold) rather than to the property. `Package.appxmanifest` stays the discriminator; it is true today and after #6620, so neither change waits on the other. Also drops `app.manifest` as a packaged marker -- the repo's only one belongs to an unpackaged project (`tests/startup_perf/BlankWinUI3`) -- and the present-tense claim about a packaged template's file list. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 784c77a5-bfd2-40f4-96a5-ce447df7c3e2
Companion to the packaging fix in 525efc2, same defect class: a property of `dotnet new reactorapp` stated as a property of Reactor. The skill claimed the `.csproj` does **not** enable implicit usings. That is true of the shipped template, which sets no `ImplicitUsings` property, and false of the templates in microsoft/WindowsAppSDK#6620 -- `ReactorBlankApp/ProjectTemplate.csproj` sets `<ImplicitUsings>enable</ImplicitUsings>`. The divergence is observable in the scaffolded source: #6620's `App.cs` opens with six usings and no `using System;`, against the seven in `tools/Templates/templates/WinUIApp-CSharp/App.cs:1-7`, which leads with it. That also made the sentence's own worked example misfire, since `System.Linq` is in the implicit set -- an agent told to add `using System.Linq;` before `.Select(...)` finds it already in scope. Reworded so it holds for both: `App.cs` keeps its `using` block and that is still where you add namespaces, with a note that some templates enable implicit usings. The "seven-line using block" count in "Starting a new app" goes with it, for the same reason. The *Required imports* list is left as-is -- spelling `using System;` out explicitly is redundant under implicit usings, not wrong. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 784c77a5-bfd2-40f4-96a5-ce447df7c3e2
2 tasks done
Alexandre Zollinger Chohfi (azchohfi)
merged commit Aug 27, 2026
0bfae8c
into
microsoft:main
17 checks passed
Alexandre Zollinger Chohfi (azchohfi)
deleted the
azchohfi-reactor-skill-packaging-neutral
branch
August 27, 2026 06:13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
reactor-getting-started/SKILL.mdstates template-specific facts as if they were invariants of Reactor. The headline case:That is a property of the current
dotnet new reactorapptemplate, not of Reactor. The practical effect is that an agent handed a packaged Reactor project edits it back to unpackaged, because the skill tells it to. Adding<WindowsPackageType>None</WindowsPackageType>to a project that has aPackage.appxmanifestsilently drops its package identity — and the build still succeeds, so nothing surfaces the mistake.This matters now that packaged Reactor templates are being added in microsoft/WindowsAppSDK#6620: with this line in place, that template change cannot land on its own.
Approach
This PR does not flip the mandate to "packaged". The shipped template is still unpackaged, and a skill that contradicts its own template causes the same class of failure in the other direction. Instead the skill stops mandating a mode at all: it describes both shapes, and tells the agent to keep whatever the scaffold produced.
That is correct against today's template and against a packaged one, so there is no ordering dependency with #6620.
Packaging semantics, verified experimentally
Both shapes built from a clean tree on the same SDK:
WindowsPackageTypeabsent +EnableMsixTooling=trueAppxManifest.xml,resources.pri,*.build.appxrecipeWindowsPackageType=None+EnableMsixTooling=trueTwo conclusions, both reflected in the wording:
NoneoverridesEnableMsixTooling— a project with both builds unpackaged.WindowsPackageType=MSIXis not required. Omitting the property entirely yields a packaged app off the default, and that is the shape #6620's own template uses (EnableMsixTooling=true, noWindowsPackageType). Wording that madeMSIXmandatory would have described that scaffold as broken.Neither mode is signalled by one property alone.
Package.appxmanifestis the discriminator —app.manifestis not, since it also appears in unpackaged projects (e.g.tests/startup_perf/BlankWinUI3).Also: the same defect, one sentence away
The same paragraph asserts:
True for
dotnet new reactorapp; false for #6620, which sets<ImplicitUsings>enable</ImplicitUsings>— itsApp.csopens with six usings rather than seven, droppingusing System;. The sentence's own example misfires too: an agent told to addusing System.Linq;finds it already in scope.Reworded to be template-neutral, so it needs no follow-up when #6620 lands. The adjacent "exactly two source files" claim is dropped for the same reason — a packaged scaffold additionally emits
Package.appxmanifest,app.manifestandAssets\.Why this is worth doing
Measured on the win-dev-skills benchmark harness, comparing unpackaged and packaged Reactor arms on identical scenarios:
projectsubscoreEvery packaged observation sits above the entire unpackaged range. On the one clean same-run pair the total score moved 72 → 75, with the whole delta coming from
project5 → 8.The reverse failure is also observed: in a trial where the agent ignored the scaffold and hand-authored a packaged-looking
.csproj, the result would not launch —winapp runreported "The manifest contains a placeholder for the executable but no .exe files were found in the input folder". Guidance that disagrees with the template is what produces that outcome.Scope
One file, docs only. No code, no template, no behaviour change.