Repository navigation
file.mkdir obeys --conflict, the conflict policy has three names and one floor, and the winget driver reads winget as winget does - #901
Merged
Conversation
…one floor, and the winget driver reads winget as winget does --conflict answers one question -- what writ does when something already exists at a target it is about to write -- and file.link and file.copy answered it while file.mkdir did not: anything at its path that was not a directory was an error under every policy, and a real writ deploy stopped there on both virtual machines, on a stale symlink, invoked with --conflict=replace. Mkdir now observes the leaf and lets the policy govern a non-directory occupant: stop refuses in the seam's words, skip returns nothing and changes nothing, replace discovers the occupant as its kind, archives it to the recovery site, tells the catalog it is gone, and then claims and creates the directory, with the receipt carrying the archive id and digest. Every refusal precedes the claim. A directory at the path is the idempotent case and the policy is never consulted. compensateMakeDir restores the archived occupant once the directory it gave way to is gone. Nine cells -- a file, a live symlink, a dangling symlink, by three policies -- three round trips, and the directory pin prove it; the lifecycle scenarios that injected a failure by occupying an mkdir's path now select stop, the policy under which that is a refusal. The policy's vocabulary was drifting in six places: writ deploy's Examples and the guide named backup and overwrite, which the flag rejects, and three comments called two different defaults the floor. The three names are stop, skip and replace, everywhere; the seam's floor is replace; writ deploy's default is stop; and BackupSuffix belongs to the backup action, not to conflict resolution. Running the Windows sequence for the first lane found the winget driver's post-check matching the package id case-sensitively against winget's case-insensitive answer: winget prints the catalog's casing, vim.vim for a query of Vim.Vim, so an installed package read as absent, every install "did not reach the requested state", and the deploy stopped in the packages subgraph before its first file unit. One parser, wingetListedVersion, now reads the listing as winget does, and version and installed share it. Closes #822 Closes #899 Closes #900
This was referenced Sep 23, 2026
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.
Summary
Lanes 12 to 14 of #887.
file.mkdirobeys--conflict(#822, pulled forwardfrom #894) — a non-directory occupant of
mkdir's path isthe write seam's occupied target:
stoprefuses in the seam's words,skipreturns nothing,replacearchives theoccupant to the recovery site and creates, and the receipt restores the occupant on compensation. A directory at the
path is the idempotent case; every refusal precedes the claim. Nine cells, three round trips, the directory pin;
the lifecycle scenarios that inject a failure by occupying an
mkdir's path selectstop.writ deploy's Examples and the guide namedbackupandoverwrite, which the flag rejects; three comments calledtwo different defaults the floor. Three names and no others, everywhere; the seam's floor is
replace;writ deploy's default isstop;BackupSuffixis thebackupaction's. The script asserts the search findsnothing.
—
versionandinstalledmatched the id case-sensitively againstwinget list's output, which prints thecatalog's casing, so an installed package read as absent and every install failed the post-state check; one
parser,
wingetListedVersion, compares understrings.EqualFold, tested on every leg with the captured listing.Test plan
make checkgreen;make test-scenariogreenwrit versionnames the builddanoble-ud24-1.local(linux/arm64), snapshotted first: self install;repo unset/setby URL and by path,git-named clones;
deployunderstoprefuses 25 occupied targets;deploy --conflict=replacedeploys 127links, exit 0, where 09-18's run stopped at
file.mkdir;upgrade0danoble-wd11-3.local(windows/arm64), snapshotted first: install and everyrepostep green;deployunderstoprefuses 27 occupied targets; before lane 14,--conflict=replacefailed atpkg.install-1: winget/Vim(winget driver: version and installed match the id case-sensitively against winget's output, so an installed package reads as absent and every install "did not reach the requested state" #900); with lane 14,
deploy common noblefactor-ops --conflict=replacedeploys 56 links, exit 0 — the 2022.config\gitsymlink is archived and the directory made (file.mkdir ignores --conflict: anything that is not a directory at its path fails the deploy under every policy, while file.link and file.copy replace it #822's third box). Logs kept underbuild/e2e/Time
Computed by the algorithm of noblefactor-ops#188 at merge.
https://claude.ai/code/session_01SqQVFZz7AdiLZkGoAcUqRW