Repository navigation
Purge stale duct/duct-loc naming from live docs and CLI output - #1129
Conversation
The project was renamed Duct -> Reactor and the CLI duct-loc/duct -> mur,
but stale references survived in places that describe the *current* system.
User-visible impact: every `mur loc <sub> --help` and `mur docs --help`
printed a command name that does not exist ("duct loc extract - ...").
Verified by running the built binary.
Fixed:
- src/Reactor.Cli/Loc/*.cs, Docs/DocsCommand.cs - help/usage/error text
and doc comments now say `mur`, matching ToolCommandName and the
existing `Usage: mur figma` / `mur docs new-diagram` siblings.
- docs/specs/005-localization-design.md - section 10 documented the CLI as
`duct-loc extract|translate|status|validate|prune`; now `mur loc <sub>`.
Also corrects a `--provider azure-openai` example to the real `--model`
flag, so the renamed command line is actually runnable.
- docs/specs/013-doc-system-design.md - `duct docs compile` -> `mur docs
compile`; the same doc already said `mur docs compile` elsewhere.
- docs/specs/tasks/localization-implementation.md - same CLI rename.
- docs/research/flux-ui-analysis.md - TOC anchors still pointed at
#14-where-duct-is-still-better while the headings read "Reactor", so
both links were broken.
- tests/Reactor.Tests/Localization/*.cs - `duct-*` temp dir prefixes.
- tests/.../MarkdownHtmlFixtures.cs - `duct@example.com` sample address.
Deliberately left alone (the old name is the subject matter, not a stale
reference): docs/specs/018-namespace-rename.md and
docs/specs/tasks/namespace-rename-implementation.md document the rename
itself; docs/specs/archived/cpp-*.md are a snapshot of a removed C++
prototype whose real namespace was `duct`; tools/reviewer/reports/fix-list.md
is a dated generated report.
Verified: `mur loc|docs ... --help` output, 283 Localization unit tests
pass, MdHtml selftest fixtures (1..2) pass, AppTests.Host builds clean.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Same defect class as the `duct` cleanup in the previous commit: a name that lies about what it refers to. The file declared `CopilotTranslationProvider` (`Name => "GitHub Copilot"`, `using GitHub.Copilot`, `new CopilotClient()`) with no Azure OpenAI anywhere in it, and it was the only file in Loc/ not named after its type. A filename is the first thing a reader greps. - git mv src/Reactor.Cli/Loc/AzureOpenAiProvider.cs -> CopilotTranslationProvider.cs (pure rename, contents untouched). No code referenced the old filename; C# does not couple filename to type name and nothing globs it explicitly. Stale prose describing the backend as Azure OpenAI, corrected to GitHub Copilot: - ITranslationProvider.cs - the `Name` doc comment gave "Azure OpenAI" and "Anthropic" as examples; the only implementation returns "GitHub Copilot". - docs/specs/005-localization-design.md Phase 5 - claimed a multi-provider abstraction (Azure OpenAI, OpenAI, Anthropic); shipped code has one Copilot provider behind ITranslationProvider. - tools/reviewer/prompts/security.md - hand-written reviewer agent prompt told agents Reactor.Cli "communicates with Azure OpenAI" and to "validate Azure OpenAI responses", pointing security review at a backend that does not exist. This one actively misdirects an automated reviewer. The abstraction itself is unchanged: ITranslationProvider is not renamed and no provider plumbing was restructured. Left alone: docs/specs/052-controlrod.md (Controlrod's own LLM backend, genuinely Azure OpenAI for v2 - unrelated subsystem); docs/specs/tasks/localization-implementation.md line 232 (records the decision "replaces Azure OpenAI / OpenAI / Anthropic" - the old names are the subject matter); tools/reviewer/manifest.json and reports/fix-list.md (dated generated artifacts). Verified: Reactor.Cli builds with 0 errors, 283 Localization tests pass (unchanged from before the rename), `mur loc translate --help` still correct. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
`tools/reviewer/manifest.json` still listed
`Reactor.Cli/Loc/AzureOpenAiProvider.cs` (batches at lines ~330 and ~1067)
after the previous commit renamed that file.
This is not cosmetic. `run-review.ps1` never opens the listed files itself:
it interpolates the list into an LLM prompt ("Primary files to review:",
lines 117/219/324) and then writes the report header from the manifest —
`**Files reviewed**: $($BatchObj.files.Count)` (lines 181/277/381). The
count comes from the manifest, not from what the agent actually read, so a
dead path makes a batch claim full coverage while silently reviewing one
file fewer.
There is no generator for this manifest (tools/reviewer holds only
apply-fixes.ps1, manager-review.ps1, run-review.ps1, manifest.json and
README.md; run-review.ps1:61 merely reads it), so a hand edit of the two
path strings is the only available fix. Edited as literal string
replacements rather than a JSON round-trip, to avoid reformatting the file;
re-parsed afterwards to confirm the JSON is still valid.
tools/reviewer/reports/fix-list.md still names the old path and is left
alone deliberately: it is a dated record of a past review run (an output
snapshot), not an input that any run consumes.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
📦 Build metricsArtifact sizes for Packages (compressed .nupkg)
Assemblies in Microsoft.UI.Reactor
Assemblies in Microsoft.UI.Reactor.Advanced
Assemblies in Microsoft.UI.Reactor.Devtools
No size change beyond the noise floor. ✅ ✅ smaller / |
🧪 Merged coverageCoverage for
No coverage change beyond the noise floor. ✅ ✅ higher / |
Addresses 9 github-code-quality (CodeQL) comments on this PR: 'Call to System.IO.Path.Combine may silently drop its earlier arguments'. Path.Combine resets to the later segment if that segment is rooted, so CodeQL flags every Combine whose trailing argument it cannot prove is relative. Path.Join concatenates unconditionally and has no rooted-path reset semantics, which removes the whole class of warning without adding a guard clause or sanitizer that would be dead code here (the trailing segment is a literal prefix plus a Guid 'N' string, which can never be rooted). Path.Join is already the established convention in this repo, including in tests/Reactor.Tests. Scope is exactly the 9 flagged lines, all matching Path.Combine(Path.GetTempPath(), ...); the other 56 Path.Combine calls in these files join within the temp dir, were not flagged, and are untouched. Behavior is identical: Path.GetTempPath() ends in a separator and the trailing segment is always relative and non-empty, so both produce the same path. Verified by the unchanged test count - 283 Localization tests pass before and after. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
… identifiers Findings from the repo `pr-review` skill (7 dimensions + a GPT multi-model cross-check that confirmed H1/H2 and downgraded H3 to medium). H1 — docs/research/flux-ui-analysis.md:62. TOC entry 13 still pointed at `#13-problems-from-ducts-critical-review-that-flux-solves` while the heading reads "Problems from Reactor's Critical Review That Flux Solves". The previous commit fixed entries 14 and 15 in the very same hunk and left 13 broken. H2 — src/Reactor.Cli/Loc/TranslateCommand.cs and docs/specs/005-localization-design.md. The shipped help text said `--missing-only Only translate missing or AI-draft keys`, which describes the DEFAULT behavior, not the flag. Per TranslateCommand.cs lines 119-136: with `--missing-only` every key already present in the target is skipped, AI drafts included, so only genuinely missing keys are translated; the default branch skips existing keys only when `!existingEntry.IsAiDraft`, so it is the default that re-translates drafts. Corrected the help text and the matching spec comment. Behavior is deliberately unchanged - this is a text fix, same class as the rest of this PR. H3/M1 — the survey probe itself was broken. The original cleanup grepped `\bduct\b`, which cannot match `duct`-prefixed identifiers (`ductCategory`, `ductCmd`, `ductHost`, `ductCommands`) or the possessive slug `ducts`. That blind spot is exactly why H1 survived. Re-scanned with a case-insensitive `duct` substring probe, filtering ordinary English words (production/conduct/introduce/ seductive/...), and cleaned up what it found - identifiers and doc comments only, no behavior change: - src/Reactor/Controls/PropertyGrid/ReflectionTypeMetadataProvider.cs - five locals renamed `duct*` -> `reactor*`, matching the adjacent comment that already said "Reactor-specific attributes" and the sibling `sc*` (System.ComponentModel) prefix. - src/Reactor/Core/CommandInterop.cs, src/Reactor/Hosting/ReactorHostControl.cs - XML doc-comment examples that surface in IntelliSense. - tests/cmd_perf/CmdPerf.Reactor/Program.cs, tests/Reactor.AppTests.Host/SelfTest/Fixtures/CoreCoverageFixtures2.cs - locals. - src/Reactor.Advanced/Charting/Charts.Tree.cs - pointed at `ductd3-native-chart-migration.md`, which does not exist; retargeted to the real docs/specs/016-native-chart-migration.md. - docs/specs/010-source-mapping-design.md - proposed artifact name `{assembly}.ductsourcemap.json` (nothing implements it yet). M4 — tests/Reactor.Tests/Cli/CliHelpNamingTests.cs (new). The `duct` help-text bug shipped and survived a rename because nothing asserted on CLI help output. Adds 10 tests over every `mur loc`/`mur docs` help and unknown-command surface. The expected name is read from the CLI assembly (`AssemblyName` = `mur`, same value as `ToolCommandName`) rather than hardcoded, so it fails if the help text drifts from the binary or the binary is renamed without the help text. `[Collection("ConsoleTests")]` per the repo rule for console-mutating tests. Mutation-checked rather than assumed: reintroducing `Usage: duct loc extract` in ExtractCommand.cs turns the suite red in two independent oracles (2 failed, 8 passed) with an actionable message, then green again on revert. Verified: full tests/Reactor.Tests suite 13541 passed / 0 failed / 64 skipped; Reactor.AppTests.Host and CmdPerf.Reactor build with 0 errors; `mur loc translate --help` re-run against the rebuilt binary. Remaining `duct` hits repo-wide are all intentional: the rename spec, its task list, the archived C++ prototype specs, the historical DUCT001 analyzer-id note in critical-review.md, the dated fix-list.md report, and two vendored monaco-editor JS assets. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR removes stale “duct / duct-loc” naming from current user-facing docs and CLI help/error output, aligning everything with the shipped mur tool name and “Reactor” branding so users don’t see or copy commands that no longer exist.
Changes:
- Updated
mur locandmur docsCLI help + unknown-command output to consistently printmur. - Refreshed specs/research docs to replace live references to
duct,duct-loc, and outdated paths/anchors. - Added/updated tests and fixtures to prevent command-name drift and to remove stale
duct-*temp directory / sample text references.
Reviewed changes
Copilot reviewed 31 out of 32 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tools/reviewer/prompts/security.md | Updates security-review guidance to reference GitHub Copilot/gh rather than Azure OpenAI. |
| tools/reviewer/manifest.json | Fixes manifest file paths to match the renamed Copilot translation provider filename. |
| tests/Reactor.Tests/Localization/ValidateCommandTests.cs | Updates temp directory prefix from duct-* to reactor-*. |
| tests/Reactor.Tests/Localization/TranslationTests.cs | Updates temp directory prefix from duct-* to reactor-*. |
| tests/Reactor.Tests/Localization/StatusCommandTests.cs | Updates temp directory prefix from duct-* to reactor-*. |
| tests/Reactor.Tests/Localization/SourceRewriterTests.cs | Updates temp directory prefix from duct-* to reactor-*. |
| tests/Reactor.Tests/Localization/ReswWriterTests.cs | Updates temp directory prefix from duct-* to reactor-*. |
| tests/Reactor.Tests/Localization/PruneCommandTests.cs | Updates temp directory prefix from duct-* to reactor-*. |
| tests/Reactor.Tests/Localization/ExtractIntegrationTests.cs | Updates temp directory prefix from duct-* to reactor-*. |
| tests/Reactor.Tests/Localization/AssetResolutionTests.cs | Updates temp directory prefix from duct-* to reactor-* in asset tests. |
| tests/Reactor.Tests/Cli/CliHelpNamingTests.cs | Adds regression tests to ensure help/error output matches the shipped tool name and never mentions retired duct* commands. |
| tests/Reactor.AppTests.Host/SelfTest/Fixtures/MarkdownHtmlFixtures.cs | Updates mailto example from duct@… to reactor@…. |
| tests/Reactor.AppTests.Host/SelfTest/Fixtures/CoreCoverageFixtures2.cs | Renames local variables from duct* to reactor* in fixture code. |
| tests/cmd_perf/CmdPerf.Reactor/Program.cs | Renames local variables from duct* to reactor* in perf harness. |
| src/Reactor/Hosting/ReactorHostControl.cs | Updates XML doc usage examples to use reactorHost instead of ductHost. |
| src/Reactor/Core/CommandInterop.cs | Updates XML doc snippet variable name to reactorCmd. |
| src/Reactor/Controls/PropertyGrid/ReflectionTypeMetadataProvider.cs | Renames locals from duct* to reactor* for attribute extraction variables. |
| src/Reactor.Cli/Loc/ValidateCommand.cs | Updates duct → mur in help text and doc comment. |
| src/Reactor.Cli/Loc/TranslateCommand.cs | Updates duct → mur in help text and clarifies --missing-only description. |
| src/Reactor.Cli/Loc/StatusCommand.cs | Updates duct → mur in help text and doc comment. |
| src/Reactor.Cli/Loc/PruneCommand.cs | Updates duct → mur in help text and doc comment. |
| src/Reactor.Cli/Loc/LocCommand.cs | Updates duct → mur in help text, doc comment, and unknown-command error. |
| src/Reactor.Cli/Loc/ITranslationProvider.cs | Updates doc comment example to “GitHub Copilot”. |
| src/Reactor.Cli/Loc/ExtractCommand.cs | Updates duct → mur in help text and doc comment. |
| src/Reactor.Cli/Loc/CopilotTranslationProvider.cs | Introduces Copilot-based translation provider implementation under the corrected filename. |
| src/Reactor.Cli/Docs/DocsCommand.cs | Updates duct → mur in help text, doc comment, and unknown-command error. |
| src/Reactor.Advanced/Charting/Charts.Tree.cs | Fixes doc reference path to the correct spec filename. |
| docs/specs/tasks/localization-implementation.md | Updates task/spec text to use mur loc naming. |
| docs/specs/013-doc-system-design.md | Updates doc-system spec to consistently use mur docs compile. |
| docs/specs/010-source-mapping-design.md | Updates spec example output filename from .ductsourcemap.json to .reactorsourcemap.json. |
| docs/specs/005-localization-design.md | Updates localization spec to describe the current mur loc surface and --model flag. |
| docs/research/flux-ui-analysis.md | Fixes broken TOC anchors caused by stale “duct” fragments. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Addresses two github-code-quality (CodeQL) comments on the test helper added in the previous commit: "Disposable 'StringWriter' is created but not disposed." Switched both writers to `using var`. Disposal happens at method exit, which is after the existing try/finally has already restored Console.Out/Console.Error, so the console never holds a disposed writer. The returned strings are produced by ToString() before disposal and are independent of writer lifetime, so the assertions are unaffected. 10 CliHelpNamingTests still pass. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
samples/WinFormsInterop/SampleDuctComponent.cs declares SampleReactorComponent, and tests/Reactor.WinFormsTests.Host/TestDuctComponent.cs declares TestReactorComponent. Neither file contains the string "Duct" anywhere in its contents -- the only occurrence was in the path. So each filename contradicted the type it declared, which is exactly the defect class PR #1129 fixed when it renamed AzureOpenAiProvider.cs (a file that declared CopilotTranslationProvider). Why #1129 missed these two: that sweep used git grep, which searches file *contents*. A path-only occurrence is invisible to any content regex, however sophisticated -- the corpus is wrong, not the pattern. A rename audit needs a `git ls-files` path scan alongside the content scan. Pure `git mv`: both renames are R100 with zero content change. The classes were already correctly named, so nothing inside the files needed to move. The historical rename record is deliberately untouched. docs/specs/018-namespace-rename.md and docs/specs/tasks/namespace-rename-implementation.md still name the old files because the Duct->Reactor rename is their subject matter; rewriting them would destroy the record. #1129 preserved them for the same reason. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Audits every PR merged since v0.1.0-preview.13 (56 commits) for changelog
coverage, then cuts the release section per docs/contributing/release-runbook.md.
Only 9 of those PRs updated CHANGELOG.md. Nine user-facing changes were missing
an entry and are added here:
Added - declarative window icon: icon: on ReactorApp.Run plus
Run(WindowSpec, ...) overloads (#1145, issue #1143)
Changed - dotnet new reactorapp resolves the latest Windows App SDK (#1096)
Fixed - connected animations never played across a replaced subtree (#1124)
- a controlled SelectedIndex WinUI cannot honor stranded an echo
token and ate the next real selection (issue #1090, #1091, #1097)
- legacy text-node TreeView rendered empty under NativeAOT (#1108)
- devtools DP lookups found nothing, since CsWinRT projects
DependencyProperty statics as properties (issue #1109)
- the exe-icon fallback was dead code, and WindowIcon.FromResource
silently applied a default icon in packaged apps (issue #1143)
- an installed mur was frozen at first bootstrap, and mur check
shipped without Roslyn (#1130)
- mur loc/docs help printed the non-existent "duct" command (#1129)
- a scaffolded project would not launch in Visual Studio 26 (#1084)
The three behaviour fixes were checked against v0.1.0-preview.13 rather than
assumed: the AOT skip for ControlUpdate_Collections, the
_pendingConnectedAnimationStarts list, and the drift-only SelectedIndex gates
all exist at the tag, so each shipped broken and none qualifies for the
introduced-and-fixed-in-window exemption.
Deliberately omitted: dependency bumps, docs-only and CI/test-infra work, and
#1099/#1102, whose product code was already correct (the defect was in a test
classifier and a text matcher respectively).
Bumps ReactorPublicVersion to 0.1.0-preview.14 and recompiles the guide, which
substitutes {{reactorVersion}} across 8 pages, satisfying the docs freshness gate.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Summary
The project was renamed Duct -> Reactor and the CLI
duct-loc/duct->mur, but stale references survived in places that describe the current system, not the history. The worst of them is user-visible at runtime: everymur loc <sub> --helpandmur docs --helpprinted a command name that does not exist. This PR fixes the live, misleading references and leaves the historical record intact.Six commits, in three groups.
Naming purge
src/Reactor.Cli/Loc/*.csandDocs/DocsCommand.csprintedduct loc extract - .../Usage: duct docs .../Unknown command: duct loc <x>. Nowmur, matchingToolCommandNameand the existingUsage: mur figma/mur docs new-diagramsiblings.docs/specs/005-localization-design.mdsection 10 documented the whole CLI surface asduct-loc extract|translate|status|validate|prune. Nowmur loc <sub>.docs/specs/013-doc-system-design.mdsaidduct docs compilein five places while already sayingmur docs compileat line 14, so the document contradicted itself.docs/research/flux-ui-analysis.mdTOC anchors pointed at#14-where-duct-is-still-betterwhile the headings had already been renamed to "Reactor", so the links were broken, not merely stale.AzureOpenAiProvider.csrenamed toCopilotTranslationProvider.cs. The file declaredCopilotTranslationProviderwithName => "GitHub Copilot",using GitHub.Copilot,new CopilotClient(), and no Azure OpenAI anywhere in it. Puregit mv, zero content diff. Stale "Azure OpenAI" prose corrected in three places, includingtools/reviewer/prompts/security.md, which told the security review agent that Reactor.Cli "communicates with Azure OpenAI" and to validate "Azure OpenAI responses" - aiming an automated reviewer at a backend that does not exist.tools/reviewer/manifest.jsonpaths updated. Not cosmetic:run-review.ps1never opens the listed files, it interpolates the list into an LLM prompt and then writes**Files reviewed**: $($BatchObj.files.Count)from the manifest, so a dead path makes a batch claim full coverage while silently reviewing one file fewer.duct-*temp directory prefixes, aduct@example.comsample address, andduct*local variables / XML-doc examples inReflectionTypeMetadataProvider.cs,CommandInterop.cs,ReactorHostControl.cs,CmdPerf.Reactor, andCoreCoverageFixtures2.cs.Two text-vs-behavior bugs found along the way
Both are the same defect class as the rename itself - text that asserts something the code does not do - and both were fixed as text, with no behavior change:
--missing-onlyhelp text was inverted. It said "Only translate missing or AI-draft keys", which describes the default. PerTranslateCommand.cs:119-136,--missing-onlyskips every key already present in the target (AI drafts included), while the default branch skips existing keys only when!existingEntry.IsAiDraft- so it is the default that re-translates drafts. Corrected in the shipped help and in the spec.docs/specs/005-localization-design.mddocumented--provider azure-openai, a flag that does not exist. Renaming the command while keeping it would have promoted an obviously-dead example into a plausible-looking unrunnable one. Changed to--model gpt-5.4-mini, which matches the shipped help verbatim. Same for a Phase 5 line claiming a multi-provider abstraction that was never built.The survey probe was broken, and that is the interesting part
The first pass grepped
\bduct\b. That regex cannot matchduct-prefixed identifiers (ductCategory,ductCmd,ductHost) or the possessive slugducts- which is exactly why one broken TOC anchor survived while its two siblings in the same hunk were fixed. Re-scanning with a case-insensitive substring probe, filtering ordinary English (production,conduct,introduce,seductive, ...), found roughly 26 further live instances, including local variables in the core library and XML-doc examples that surface in IntelliSense. It also turned up a dangling reference toductd3-native-chart-migration.md, a file that does not exist, now retargeted todocs/specs/016-native-chart-migration.md.tests/Reactor.Tests/Cli/CliHelpNamingTests.csis new and closes the hole that let this ship: nothing asserted on CLI help output. Ten tests cover everymur loc/mur docshelp and unknown-command surface. The expected name is read from the CLI assembly (AssemblyName=mur, the same value asToolCommandName) rather than hardcoded, so it fails if the help text drifts from the binary or the binary is renamed without the help text.Linked issue / spec
N/A - no tracking issue. Related context in
docs/specs/018-namespace-rename.md.Test plan
Usage: duct loc extractinExtractCommand.csturns the suite red in two independent oracles (2 failed / 8 passed) with an actionable message, and green again on revert.ducthits. All seven affected surfaces plus both unknown-subcommand error paths printmur.dotnet test tests/Reactor.Tests- 13541 passed, 0 failed, 64 skipped.MdHtml_HtmlGeneration/MdHtml_HtmlInWebView2-1..2, 20 checks includingMdHtml_HasLink, which covers the changed mailto sample.Reactor.AppTests.Host,CmdPerf.Reactor, andsrc/Reactor.Clibuild with 0 errors.Usageliteral insrc/Reactor.Clito confirm no other binary name had drifted. All 12 namemur.Build solution(Release, whereTreatWarningsAsErrorsapplies),Analyze (csharp)(CodeQL), Selftests, and E2E.Risk / breaking changes
Low. No public API changes and no behavior changes. Every source edit is a string literal, an XML doc comment, a local variable name, or a test temp-directory prefix; the
git mvhas a zero-line content diff. C# does not couple filename to type name, and nothing referenced the old filename.Two things worth a reviewer's attention, both documentation-semantics rather than naming: the
--provider->--modelcorrection and the--missing-onlydescription fix. Both were verified against the argument parser and the selection logic inTranslateCommand.cs; neither changes what the command does.ITranslationProviderand the provider abstraction are deliberately not refactored.Separately, and not addressed here: auditing
tools/reviewer/manifest.jsonsurfaced 147 pre-existing dead paths out of 633 entries (133 files that moved, 14 deleted), unrelated to this rename. Combined with the manifest-derivedFiles reviewedcount, a full review run would report 633 files reviewed while about 23% cannot be opened. Left for separate tracking;run-review.ps1is untouched.