Open work only. What was refuted, retracted or decided deliberately lives in
docs/engineering-record.md. Read that first: a decision kept in a backlog reads identically to a
task once it has scrolled past, and this list carried two entries that had already been fixed, so
acting on either meant hunting a bug that was not there.
Every entry below names the file, the symbol and the measurement or repro that established it. An entry with none of those is not a finding.
Resolve an entry by its symbol, never by its file:line. Line anchors in this repo have gone
stale repeatedly and symbol names have not. If you cannot find the symbol, the entry may already be
closed - check the engineering record before re-deriving it.
Before you propose a new file deleter, state its blast radius and compare it to the prize. This box lost ~123,605 files to a maintenance script once. "Report it" beats "delete it" unless the prize justifies the category.
Repo is on main, pushed, CI green on both jobs. Gate green from an agent session:
checks=7 smoke=84/4/0 agentdiscovery=21 core=27 gatechecks=47 installer=150 render=28 smokelint=18 triage=31. The four smoke warnings in that session were the long-standing optional
ones (browse, Sysmon, USN journal size, the admin-only task read).
⚠ The smoke triple and the warning identities are PER-CHECKOUT, not repository facts - do not
cite the line above as this box's expected state. The same commit measured smoke=90/4/0 from a
different session on 2026-09-22, with a different four: cdb and poolmon (absent until a
WDK/SDK install), the build is DEGRADED in 1 component(s) line for the orphaned timm that
docs/engineering-record.md records as a decision, and the admin-only task read. Both runs were
green. The unit-suite counts (agentdiscovery through triage) and checks ARE repository facts
and should reproduce anywhere; the smoke numbers describe a workstation. Measure your own before
treating any warning as a regression.
⚠ Expect four is STALE FAILURES the first time you gate an existing box after pulling this
tag, and they are not a regression. De-vendoring the generated block so it names no single agent
host changed 85 of its 148 lines, so every already-deployed ~\CLAUDE.md, ~\.claude\CLAUDE.md,
~\AGENTS.md and ~\.codex\AGENTS.md is out of date until rewritten. Measured here 2026-09-22:
smoke=86/4/4 before, 90/4/0 after. bootstrap.ps1 fixes it, but if you want only those four
files, dot-source lib\common.ps1 and call Write-AgentDiscovery -RepoRoot <repo> under
powershell.exe - -DryRun will NOT do it, because the call site is inside if (-not $script:DryRun).
Read docs/agent-rules.md on packaged agent hosts before building anything from an agent
shell. An MSIX-packaged host redirects %LOCALAPPDATA% and %APPDATA% copy-on-write, so a
toolbox built from inside one leaves a private shadow and the two trees drift apart silently.
That had happened here since 2026-08-07: the real tree and the shadow disagreed by 25 shims and
six of the shadow's were self-referential. bootstrap.ps1 now refuses to build through a
redirected view; scripts/run-unprojected.ps1 gets you a process the host did not spawn; and
scripts/clear-host-shadow.ps1 removes an existing shadow.
The ledger now carries failure IDENTITIES, not just counts. run-gate.ps1 -Phase <label>
records a failids column and hard-fails on an identity the previous phase did not have.
Counts stay exempt from DRIFT, deliberately - see run-gate.ps1's header.
Two findings from that round had a proposed remedy that would have introduced a bug. Both are
in docs/engineering-record.md.
Repo is on main, pushed, CI green on both jobs (suites and checks). Gate green:
checks=7 smoke=87/4/0 agentdiscovery=19 core=27 gatechecks=47 installer=137 render=28 smokelint=18 triage=31, and parity green on all seven suites under CI's invocation and CI's error preference.
All seven suites also pass under Set-StrictMode -Version Latest, and the smoke test passes from
inside a git worktree.
One of those four smoke warnings is EXPECTED and is not a task. build is DEGRADED in 1 component(s) is the toolbox manifest honestly reporting a pip check failure that the owner has
decided to keep: an orphaned timm another project installed into the shared venv. That decision,
its evidence and its standing consequence are in docs/engineering-record.md - read it before
"fixing" the warning, because uninstalling timm is explicitly not wanted. The other three
warnings are the long-standing optional ones: cdb and poolmon need a WDK/SDK install, and the
weekly forensics task is admin-only to read.
The previous 29 open items are closed: fixed, refuted, or recorded as decisions in
docs/engineering-record.md. What follows is what this round surfaced, minus what was then fixed
the same day:
- The HF bearer token is off curl's command line.
Get-HFFilenow passes the header throughcurl -K <tempfile>, removed in afinally. Proved by reading the spawned process's own command line back through CIM: token present before, absent after, andcurl -svconfirms the header is still sent. markdownlint-cliis pinned to 0.48.0 incatalog.json, matching what CI installs, so a localnpm update -gcan no longer make the local gate stricter than CI.logs/growth is reported by a new smoke group rather than pruned.- The gate passes from a worktree. The agent-block comparison is re-based onto the main
checkout, derived from the
.gitfile with no git invocation, and it announces the re-base on every run. Verified from a probe worktree: four failures became four OK. - The Sysmon config check no longer fails on a fresh clone. It was comparing bytes where
core.autocrlfdecides them (LF in a long-lived working copy, CRLF in a fresh checkout of the same commit). Now three states rather than two: exact match silent, line-endings-only match passes and says so, real difference still fails. Fixed insmoke-test.ps1's own comparison, so no frozen file was touched. With the re-basing above,smoke test passedfrom a worktree for the first time - 61 passed, 5 warnings, 0 failed. - All seven suites run under StrictMode. Triage's last 20 needed one line in a frozen file and
got it, with the owner's agreement.
Get-FxTriagenow probes optional members instead of reading them blind - including on the degraded-model path, where an absent.findingswas throwing out of the one function whose contract is "nothing below may throw out of here". qpdf's shim pointed at itself and every build called that OK. Found by validating the deployed toolbox rather than the repo, which is the part worth copying: the repo was green and the workstation was not.Find-Executablenow refuses its ownnative\bin,smoke-test.ps1fails on a self-referential shim, anddocs/agent-rules.mdstates the discovery rule for the six machine-scope natives. The deployed activation helpers were also pre-fix, still putting the venvScriptson PATH - regenerated. A green gate does not mean a correct workstation; runbuild-devtoolbox.ps1and read what it resolves.- Then upgrading qpdf on purpose, to exercise the stale-shim check, found a second bug. The
upgrade did not behave as predicted:
winget upgradeinstalled 12.4.1 and left 12.3.2 in place, so nothing was stale, both targets existed, and the shim went on running the old binary after a successful upgrade. The resolver'sSelect-Object -First 1was taking the OLDEST version-stamped directory; it now sorts byLastWriteTime. Verified live: the shim re-resolved to 12.4.1. Deliberately breaking a thing to test a check is worth doing even when the check does not fire - what it does instead is the finding. - A failed build no longer writes a manifest claiming success.
Write-Manifestran beforeRun-Smoke, so a throw in the smoke step leftdegraded: []on disk for a build that died, andbootstrap.ps1gates readiness on that file existing. Now written twice, withInvoke-Checked -Softrecording probe failures into the ledger; the build still exits non-zero. Side benefit that mattered as much:pip checkis the first probe, and its throw had been hiding the other five. - The last five backlog items were then cleared, and three of them were wrong about themselves.
Two named a fix that would not have worked. Full write-up in
docs/engineering-record.md; the transferable part is that an entry's proposed remedy is a hypothesis and only its measurement is a finding. Highlights:subprocess.run'stimeout=does not bound the call when stdout is a pipe and the process leaves a grandchild holding the write end (measured: 2s asked, 20.2s elapsed; a temp file gives 0.1s and no timeout at all), so soffice was never slow and the probe was waiting onsoffice.bin. The fixture sweep now deletes on process OWNERSHIP rather than a guessed age. And the "needs dataflow analysis" null-read lint became a seventhenv-readsgate check by asking a cheaper question: not whether a null can reach a dereference, but whether the read was written in a form that cannot produce one.
The single most useful thing learned, worth applying before anything below. A test that passes locally and fails in CI is an environment divergence, and there were three, all of which had been invisible:
- Invocation.
run-gate.ps1launches each suite as apowershell.exe -Filechild;gate.ymlinvokes.\tests\X.ps1in-session. AGetNewClosure()scriptblock resolves functions through global scope, which a nested script's scope is not. - Error preference. GitHub Actions sets
$ErrorActionPreference = 'stop'forshell: powershell; the local gate's children start atContinue. - Installed tools. The
checksjob installsmarkdownlint; thesuitesjob does not.
run-gate.ps1 now re-runs every suite in-session under Stop and compares tallies, so all three
fail locally. If you add a test, ask what on this box it is quietly reading.
No open toolbox code items. Publication audits remain part of each release.
Independent post-push audit of ce021391 reproduced All,DosboxControl silently
dropping the explicitly requested control runtime in an actual no-write dry run.
The selector now unions explicit additions with the historical five-component
All set and deduplicates them using an order-preserving case-insensitive set.
A real installer dry-run regression covers All alone, both mixed orders,
repeated control and mixed-case legacy/control selection. Prior producers are
preserved under ignored logs/q105-all-explicit-control-20261022/.
Closed for component selection after independent actual mixed-case DryRuns,
11 PowerShell controls plus31 nested Python regressions in both shells, and the
complete q105-casefold-final gate:7 checks,97 smoke checks and389 tests in10
suites, exact process/in-session parity and direct phase reruns. No installs or
registry writes were needed for this fix. Exact post-push audit follows publication.
The 2026-10-22 root gate (q95-session-52866-output.txt, SHA256
fd8c4a2a44ef6cbff72e4ac7c5e60237a3dc60f5378f0371a3ef3ef0ae40f8f8 in the
decompilation project's ignored toolbox-gates directory) failed the PATH check:
8,343 expanded characters. The separately read real User hive contained 56
generated artifact .dotnet/tools entries, consuming 6,159 characters with
separators. Candidate roots were desktop-ai-companion artifacts in long and
short spellings, including gq. Other entries must remain untouched.
The reviewed scripts/repair-generated-dotnet-path.ps1 defaults to a pinned
review plan. Plan73826994 was applied through the supported action approval:
56 generated entries removed, all22 retained raw tokens unchanged, User PATH
7534 to1375 characters, raw REG_EXPAND_SZ preserved and Machine PATH unchanged.
Exclusive backupa6820bbc precedes the only User setter. The first apply refused
before backup/write on automatic PS7 JSON timestamp coercion; preserved producers
and the exact serialized-plan repair pass independent review and23 controls in
both Windows PowerShell5.1 and PowerShell7.6.6.
Full q98-path-repaired gate passes7 hygiene checks,97 smoke checks with zero
failures, and10 suites/388 tests with exact process/in-session parity plus direct
phase reruns. The four existing optional forensics/browser warnings are retained.
Independent exact ce021391 post-push source audit found the PATH repair sound;
the separate selector issue is Q105 above. The final cumulative gate retains
all PATH controls. Closed for the User PATH repair. See docs/generated-dotnet-path.md.
The root gate now calls Sync-EnvPath before checks so installed user tools are
visible even when the agent inherited an incomplete PATH.
Prevention now sets process-only DOTNET_ADD_GLOBAL_TOOLS_TO_PATH=0 beside
the existing DOTNET_CLI_HOME overrides in the sibling project's
tests/Invoke-IsolatedGate.ps1 and tools/agentbroker/Invoke-MutationShards.ps1.
No application rebuild, machine PATH change or candidate directory cleanup is
part of this repair. The existing caller environment restoration remains in place;
mutation-shard overrides belong only to each child process. Actual prevention
validation in that application remains separate from this toolbox's pure controls.
No open items. Native launcher argument preservation and N01 through N05 are closed after both full local gates, live deployment, successful CI39543485422 and independent exact-revision audit of714ef1098f34c072cc76a2906d4c374e9112e8a0. The original failures, implementation scope and closure evidence are preserved in docs/engineering-record.md. The six optional DOS tool integration findings from the 2026-10-20 post-push audit are closed after focused regressions, actual tool checks and the cumulative gate. Their causes, fixes and evidence are recorded in docs/engineering-record.md.
The nine items here on 2026-09-21 are all closed. Seven were fixed; two were closed as DECISIONS
and live in docs/engineering-record.md rather than here, because "do not do this, and here is the
measurement" reads identically to "do this" once it has scrolled past:
--scope machinemust not be added toInstall-WingetTool- REFUTED. The audit was right that-MachineScopeand-NoScopebuild identical command lines and wrong about the remedy: the WDK answers0x8A150010to that flag,install-machine-scope.ps1already owns it, and emitting it would raise UAC during an ordinary unelevated bootstrap. A test now pins its absence.- Four redundant sub-conditions - not fixed, deliberately. They are working guards and one of them protects a recursive delete. Editing a live safety guard to save a reader four seconds is the worse trade.
Read that file before re-deriving either. Two of this round's findings had a proposed remedy that would have introduced a bug, which is the same lesson the five items before them taught: an entry's proposed remedy is a hypothesis and only its measurement is a finding.
The measurement lives in docs/engineering-record.md rather than here so it is read before work
starts:
Set-StrictModeacross the suites - DONE, all seven. Was 49 failures across four suites; now 0. It was three causes, not 49: a value unrolled on the way out of a function, fixtures that did not match the shape of real data, and blind member reads over heterogeneous or deliberately-malformed objects. Read the record for what those tests were actually asserting against before StrictMode exposed it.- Relocating the three inputs out of
logs/. Touches seven files and resets the ledger baseline for every checkout at once. Copy, do not move - one of the three is the only surviving record of the pre-outage PATH order. logs/retention - DONE as reporting, no pruner. Alogs retentionsmoke group counts and sizes all four growing patterns, warning at 25 files or 10 MB. The record holds the growth table and the reason there is deliberately no deleter: under 200 KB total is at stake, and two of the four patterns are inputs.
install-machine-scope.ps1: the per-package scope override moved intocatalog.jsonthis round as a top-levelmachine_scope_overridesblock, keyed by winget id. It is keyed by id and not by atools[]field because 7 of the 10machine_scope_idshave notools[]entry at all - they are stage-1 natives frombuild-devtoolbox.ps1- so atools[]-only read would have been unreachable code. If more per-package install knobs appear, they belong in the same block.