Skip to content

fix(uno-build-app): keep the default MVUX and Uno Navigation stack; allow -platforms for named targets - #173

Merged
kazo0 merged 2 commits into
mainfrom
dev/steve/uno-build-app-keep-architecture
Oct 7, 2026
Merged

kazo0 merged 2 commits into
mainfrom
dev/steve/uno-build-app-keep-architecture

Conversation

@kazo0

@kazo0 kazo0 commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

PR Type

  • Bugfix

What is the current behavior?

In FieldCheck skill-ab runs (a six-screen app from a functional spec, Android and Windows (Desktop) targets), uno-build-app scaffolds the recommended MVUX template, and then the agent strips it:

  • On main, all three runs removed MVUX, Navigation, Hosting and most other UnoFeatures right after scaffolding, wrote their own view models and navigation, and wrote no blueprint.
  • The recorded thinking shows the decision is made before uno-mvux or uno-navigation is loaded, because MVUX and regions look risky or complex: "skip MVUX in favor of plain MVVM for simplicity… build my own lightweight navigation service". The blueprint template offered MVUX / MVVM as equal choices.
  • new-app.md said never to pass -platforms, so a brief that names its targets got the four default targets, and agents removed the extras by editing the project.

What is the new behavior?

Commit 1 (06e2817): keep the template's architecture; allow -platforms

  • Rule 7 forbids removing a target or an UnoFeatures entry to make a check pass or to simplify a scaffold.
  • The blueprint comes after scaffolding and before any app source.
  • new-app.md: keep every UnoFeatures entry and the host and route wiring the template sets up. -platforms is documented (verified with Uno.Templates 6.7.30: -platforms android desktop gives net10.0-android, net10.0-desktop and plain net10.0 with the same features). It must come last because it takes every value after it, and it is used only when the brief names its targets.

Commit 2 (7c37f02): make the stack MVUX and Uno Navigation in code, not just in the project file

  • An A/B of commit 1 against main (3 runs each) kept the features in 2 of 3 runs, but no run on either side wrote an MVUX model or navigated with INavigator. One run reasoned that "pruning unused dependencies is my call as the developer".
  • The blueprint step loads uno-mvux and uno-navigation before the blueprint is filled in.
  • The developer is defined as the person whose request is being carried out, never the agent.
  • new-app.md says what the stack means in code: <Name>Model with feeds, states and commands; RegisterRoutes, INavigator, uen:Navigation.Request; regions for tabs, which keep each tab's state. It also says:
    • an open brief, or one that says the architecture is the agent's choice, gets this stack;
    • app size, effort or perceived complexity are not reasons to choose another;
    • keeping the features while hand-writing view models or a navigator is not the default stack.
  • The blueprint template's Stack line is MVUX, Uno.Extensions Navigation, and another choice must say who asked for it.

skills/ mirrors the plugin's skill. Test-Plugin.ps1 and agentskills validate pass.

PR Checklist

  • Documentation has been added/updated
  • Associated with an issue (GitHub or internal)

Additional Information

Commit 2 has not yet been measured. The FieldCheck prompt also told the agent the architecture was its choice, which the skill defers to, so the A/B above understates any skill change; that line is being removed in the harness repo. A rerun of main against this branch follows once that change is merged.

🤖 Generated with Claude Code

https://claude.ai/code/session_015uM85zVmAj8ykKZEWV4KEr

kazo0 and others added 2 commits October 6, 2026 18:47
…s for named targets

In a FieldCheck run (skill-ab fieldcheck-20261006-140139, A1) the agent
scaffolded the MVUX template as new-app.md says, then, trimming it to the
brief's two targets, rewrote the .csproj with UnoFeatures reduced to
SkiaRenderer and hand-wrote a code-behind app with no models, no host and
its own navigator. It never wrote the blueprint and never loaded uno-mvux
or uno-navigation.

- new-app.md: when the brief names its targets, pass them with -platforms
  (last, since it takes every value after it) instead of trimming by hand.
  Verified on Uno.Templates 6.7.30.
- new-app.md: keep every UnoFeatures entry and the App.xaml.cs host,
  registration and routes; delete samples, not features. Dropping MVUX,
  Navigation, Hosting or Toolkit needs an explicit instruction, and a brief
  that leaves the architecture open is not one.
- SKILL.md: rule 7 covers feature removals and simplifying a scaffold; the
  blueprint comes before any app source; a new app loads uno-mvux before
  its first model and uno-navigation before its first route.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015uM85zVmAj8ykKZEWV4KEr
…ot just in features

In skill-ab runs with the previous fix, agents kept the template's UnoFeatures
but wrote INotifyPropertyChanged view models and their own navigator, deciding
before loading uno-mvux or uno-navigation. One reasoned that pruning features
was "my call as the developer".

- Blueprint: load uno-mvux and uno-navigation before filling it in; the
  template's Stack line no longer offers MVVM as a peer of MVUX.
- Define the developer as the person whose request is being carried out.
- new-app.md: say what MVUX and Uno Navigation mean in code, that an open
  brief or "your choice" gets this stack, and that size, effort or perceived
  complexity are not reasons to pick another.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015uM85zVmAj8ykKZEWV4KEr
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