Free, open source blog writer for Claude Code. Researches current sources, writes answer-first posts for Google and AI answers, has an independent reviewer score each one out of 100 and ships only after five delivery gates. 32 skills, 30 /blog commands, 5 agents. Active development at AI-Marketing-Hub/claude-blog; public releases ship here.
Python agent-skillsaiai-citationsai-contentai-marketingai-marketing-hubblogblog-writingclaude-codeclaude-code-skillclaude-pluginclaude-skillcontent-creationcontent-optimizationcontent-strategyeeatgeomultilingualopen-sourceseo
fix(install): resolve one Git executable on Windows
Agrici Danielc69f7d91e148
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 462b5c8..4ca6972 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -31,7 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Reconcile exact known public legacy installations using reviewed file hashesand manifest scopes, with transactional replacement and safe empty-directorypruning. Reject Windows reparse-point paths and unknown collisions before- mutation; native Windows lifecycle verification remains outstanding.+ mutation; exercise native Windows lifecycle scenarios in dedicated CI jobs.- Use canonical Claude Code invocation metadata and a shared safe-YAMLvalidator; resolve helpers and references from trusted installed roots whenthe caller's working directory is unrelated or untrusted.@@ -45,8 +45,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0to validated public addresses, and reject symlinked hero output ancestors.- Require shipped, hash-checked Brain excerpt artifacts with source and reviewprovenance, while separating excerpt integrity from full-capture review.-- Handle normal Git stderr correctly on PowerShell 5.1, avoid binary pipelines- in legacy Windows fixtures, and preserve Bash 3.2 standalone uninstall.+- Handle normal Git stderr correctly on PowerShell 5.1, select exactly one Git+ executable when PATH contains duplicates, isolate disposable host caches,+ avoid binary pipelines in legacy Windows fixtures, and preserve Bash 3.2+ standalone uninstall.### Changed@@ -88,7 +90,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Authenticated Google, Gemini and NotebookLM operations remain unverified.Native route selection does not execute all 30 workflows. Single-pass writingsamples require factual review and correction before delivery.-- Native Windows and macOS CI results must be checked on the updated PR.+- Native Windows and macOS acceptance depends on the exact PR revision.No release, installed-profile migration or merge is included.## [2.2.0] - 2026-08-26diff --git a/README.md b/README.mdindex 226df57..51b7930 100644--- a/README.md+++ b/README.md@@ -304,7 +304,7 @@ echo "0735d4166f9fd7d4f660cf321328e20270190d51a437799f560808102693187a install.CLAUDE_BLOG_REF=v2.2.0 bash install.sh```-The SHA-256 above is for the current `install.sh` at HEAD on `main`; `CLAUDE_BLOG_REF` pins the repository clone performed by the installer. Verify against [the canonical file](https://github.com/AgriciDaniel/claude-blog/blob/main/install.sh) before running. The `install.ps1` companion hash is `b2308ef6edcfec6463accce66bc95adc5703c1f33f032bc2c79343bd4ef1c503`.+The SHA-256 above is for the current `install.sh` at HEAD on `main`; `CLAUDE_BLOG_REF` pins the repository clone performed by the installer. Verify against [the canonical file](https://github.com/AgriciDaniel/claude-blog/blob/main/install.sh) before running. The `install.ps1` companion hash is `3ff767388b8e19bf88cd04f9c625060be2a1a4d7b1f7166a49b8fa534937099c`.Restart Claude Code after installation to activate.diff --git a/docs/AUDIT-FOLLOWUP-2026-10-07.md b/docs/AUDIT-FOLLOWUP-2026-10-07.mdindex af68c13..5e63071 100644--- a/docs/AUDIT-FOLLOWUP-2026-10-07.md+++ b/docs/AUDIT-FOLLOWUP-2026-10-07.md@@ -52,7 +52,7 @@ regressions.## Verification evidence-The root suite passes 720 tests on each of Python 3.11, 3.12 and 3.14, with+The root suite passes 721 tests on each of Python 3.11, 3.12 and 3.14, withone expected private-only skip per run. Python 3.11 uses a fresh dev-onlyenvironment matching CI; the existing isolated browser cache allows all 12new browser regressions to run. CI without that cache explicitly skips those@@ -115,8 +115,14 @@ Bash 3.2 empty-array uninstall failure on macOS and a missing dev dependency.PowerShell 7 passed that run. The repairs retain nonzero Git failure handling,replace binary pipelines with an owned archive file, keep uninstall argumentarrays nonempty and declare the exact offline authentication-test dependency.-Failed CI logs, fixture setup failures and the original independent review-remain in the evidence pack beside passing reruns. A further independent+A subsequent native run exposed multiple Git executable results being treated+as one path. The resolver now selects exactly the first application, with a+duplicate-PATH regression. Disposable PowerShell host caches stay outside the+profile under test, and both the complete profile and `.claude` receive+independent preservation assertions with safe diagnostics. The prior+PowerShell 7 snapshot failure did not identify a changed path, so the cache+explanation remains an inference. Failed CI logs, fixture setup failures and+the original independent review remain in the evidence pack beside reruns. A further independentadversarial pass reproduced transparent author decoys and split-file excerptbudgets. Both reproductions now fail, with regressions for computed visibility,independent byline agreement, unused excerpt text and active-source bindings.@@ -126,8 +132,10 @@ outside that gate; all 97 currently shipped artifacts are actively referenced.## Remaining verification boundaries-- The current native Windows and macOS installer jobs await updated-PR CI.- Linux exercises use disposable profiles and preserve user additions.+- Native platform acceptance is revision-specific. Inspect the Windows+ PowerShell 5.1/7 and macOS installer jobs in [PR 86 checks](https://github.com/AgriciDaniel/claude-blog/pull/86/checks).+ Portable PowerShell checks do not establish native Windows acceptance.+ Installer exercises use disposable profiles and preserve user additions.- Authenticated Google, Gemini and NotebookLM operations are unverified.Offline fixtures and SDK smoke checks do not establish real API operation.- The optional image MCP package still exposes retired preview IDs; use thediff --git a/install.ps1 b/install.ps1index b76f026..e21a432 100644--- a/install.ps1+++ b/install.ps1@@ -11,6 +11,14 @@ $ClaudeBlogVersion = "2.2.0"function Write-Color($Color, $Text) { Write-Host $Text -ForegroundColor $Color }+function Resolve-ClaudeBlogGitApplication {+ $applications = @(Get-Command git -CommandType Application -All -ErrorAction Stop)+ if ($applications.Count -eq 0) { throw "Git executable was not found" }+ # Get-Command -All returns commands in execution-precedence order. Keep one+ # ApplicationInfo so its Source cannot expand into concatenated paths.+ return $applications[0]+}+function Invoke-ClaudeBlogGit($GitCommand, [string[]]$Arguments, [switch]$CaptureOutput) {# Windows PowerShell 5.1 promotes redirected native stderr to an error# record. Git writes routine progress there, so use its exit code as the@@ -165,7 +173,7 @@ function Main {$BootstrapOwned = $true$CheckoutDir = Join-Path $BootstrapRoot "checkout"Assert-ClaudeBlogNoReparsePath $BootstrapRoot- $GitCommand = Get-Command git -CommandType Application -ErrorAction Stop+ $GitCommand = Resolve-ClaudeBlogGitApplication$clone = Invoke-ClaudeBlogGit $GitCommand @("clone", "--depth", "1", "--branch", $Ref, $Url, $CheckoutDir)if ($clone.ExitCode -ne 0) {$CheckoutDir = Join-Path $BootstrapRoot "checkout-fallback"diff --git a/tests/test_windows_installer_ownership.py b/tests/test_windows_installer_ownership.pyindex 239e8a8..7457443 100644--- a/tests/test_windows_installer_ownership.py+++ b/tests/test_windows_installer_ownership.py@@ -74,15 +74,18 @@ def test_cloned_ref_hands_off_to_its_own_installer() -> None:def test_bootstrap_git_uses_exit_codes_without_powershell_51_stderr_escalation() -> None:install = _read(INSTALL)+ resolve_git = _function(install, "Resolve-ClaudeBlogGitApplication")invoke_git = _function(install, "Invoke-ClaudeBlogGit")main = _function(install, "Main")+ assert "@(Get-Command git -CommandType Application -All -ErrorAction Stop)" in resolve_git+ assert "return $applications[0]" in resolve_gitassert '$previousErrorActionPreference = $ErrorActionPreference' in invoke_gitassert '$ErrorActionPreference = "Continue"' in invoke_gitassert "2>$null" in invoke_gitassert "$exitCode = $LASTEXITCODE" in invoke_gitassert "$ErrorActionPreference = $previousErrorActionPreference" in invoke_gitassert "ExitCode = $exitCode" in invoke_git- assert "Get-Command git -CommandType Application -ErrorAction Stop" in main+ assert "$GitCommand = Resolve-ClaudeBlogGitApplication" in mainassert "if ($clone.ExitCode -ne 0)" in mainassert "unable to clone repository (git exit $($clone.ExitCode))" in mainassert "unable to clone $Url" not in main@@ -123,6 +126,22 @@ def test_native_smoke_avoids_pre_74_binary_pipelines() -> None:assert 'Join-Path $RunRoot ("baseline-" + $Baseline + ".tar")' in smoke+def test_native_smoke_covers_duplicate_git_resolution_and_host_state_isolation() -> None:+ smoke = _read(SMOKE)+ assert 'Write-Host "SCENARIO: duplicate Git application resolution"' in smoke+ assert "Import-InstallerFunction $downloadedBootstrap \"Resolve-ClaudeBlogGitApplication\"" in smoke+ assert '@(Get-Command git -CommandType Application -All)' in smoke+ assert '@($resolvedGit).Count -eq 1' in smoke+ assert '"resolver selects first application in PATH"' in smoke+ assert '$env:LOCALAPPDATA = $hostState' in smoke+ assert '$env:APPDATA = $hostState' in smoke+ assert '$env:XDG_CACHE_HOME = $hostState' in smoke+ assert '$env:POWERSHELL_TELEMETRY_OPTOUT = "1"' in smoke+ assert "Compare-Object" not in _function(smoke, "Assert-SnapshotEqual")+ assert '"failed clone does not mutate .claude"' in smoke+ assert "Assert-SnapshotEqual $failureProfileBefore $failureProfileAfter" in smoke++def test_pip_log_uses_owned_full_guid_root_and_is_retained_on_failure() -> None:install = _read(INSTALL)main = _function(install, "Main")diff --git a/tests/windows/windows_installer_ownership_smoke.ps1 b/tests/windows/windows_installer_ownership_smoke.ps1index d96a29e..fbdb3c2 100644--- a/tests/windows/windows_installer_ownership_smoke.ps1+++ b/tests/windows/windows_installer_ownership_smoke.ps1@@ -15,6 +15,31 @@ function Assert-Throws($Action, $Message) {try { & $Action } catch { $threw = $true }if (-not $threw) { throw "ASSERTION FAILED: expected refusal, $Message" }}+function Assert-SnapshotEqual($Before, $After, $Message) {+ if ($After -eq $Before) { return }+ Write-Host "Disposable profile snapshot difference (relative paths and SHA-256 only):"+ $beforeEntries = @($Before -split "`n" | Where-Object { $_ })+ $afterEntries = @($After -split "`n" | Where-Object { $_ })+ foreach ($entry in $beforeEntries) {+ if ($afterEntries -notcontains $entry) { Write-Host (" <= {0}" -f $entry) }+ }+ foreach ($entry in $afterEntries) {+ if ($beforeEntries -notcontains $entry) { Write-Host (" => {0}" -f $entry) }+ }+ throw "ASSERTION FAILED: $Message"+}+function Import-InstallerFunction($Script, $Name) {+ $tokens = $null+ $errors = $null+ $ast = [System.Management.Automation.Language.Parser]::ParseFile($Script, [ref]$tokens, [ref]$errors)+ if ($errors.Count -ne 0) { throw "could not parse installer for function test" }+ $functionAst = $ast.Find({+ param($node)+ $node -is [System.Management.Automation.Language.FunctionDefinitionAst] -and $node.Name -eq $Name+ }, $true)+ if (-not $functionAst) { throw "installer function not found: $Name" }+ return $functionAst.Extent.Text+}function New-Profile($Root, $Name) {$profile = Join-Path $Root $NameNew-Item -ItemType Directory -Path $profile | Out-Null@@ -30,11 +55,24 @@ function Invoke-DownloadedBootstrap($Script, $Profile, $Url, $Ref, $Identifier)$oldUrl = $env:CLAUDE_BLOG_URL$oldRef = $env:CLAUDE_BLOG_REF$oldIdentifier = $env:CLAUDE_BLOG_TEST_BOOTSTRAP_GUID+ $oldLocalAppData = $env:LOCALAPPDATA+ $oldAppData = $env:APPDATA+ $oldXdgCacheHome = $env:XDG_CACHE_HOME+ $oldTelemetryOptOut = $env:POWERSHELL_TELEMETRY_OPTOUT+ $hostState = Join-Path (Split-Path -Parent $Profile) ("powershell-host-state-" + $Identifier)+ New-Item -ItemType Directory -Path $hostState | Out-Nulltry {$env:USERPROFILE = $Profile$env:CLAUDE_BLOG_URL = $Url$env:CLAUDE_BLOG_REF = $Ref$env:CLAUDE_BLOG_TEST_BOOTSTRAP_GUID = $Identifier+ # PowerShell 7 writes startup and telemetry caches at process launch.+ # Keep that host state outside the profile whose installer immutability+ # this scenario verifies.+ $env:LOCALAPPDATA = $hostState+ $env:APPDATA = $hostState+ $env:XDG_CACHE_HOME = $hostState+ $env:POWERSHELL_TELEMETRY_OPTOUT = "1"$hostExecutable = (Get-Process -Id $PID).Path$process = Start-Process -FilePath $hostExecutable -ArgumentList @("-NoProfile", "-File", ('"' + $Script + '"')) -NoNewWindow -Wait -PassThrureturn $process.ExitCode@@ -43,6 +81,10 @@ function Invoke-DownloadedBootstrap($Script, $Profile, $Url, $Ref, $Identifier)if ($null -eq $oldUrl) { Remove-Item Env:CLAUDE_BLOG_URL -ErrorAction SilentlyContinue } else { $env:CLAUDE_BLOG_URL = $oldUrl }if ($null -eq $oldRef) { Remove-Item Env:CLAUDE_BLOG_REF -ErrorAction SilentlyContinue } else { $env:CLAUDE_BLOG_REF = $oldRef }if ($null -eq $oldIdentifier) { Remove-Item Env:CLAUDE_BLOG_TEST_BOOTSTRAP_GUID -ErrorAction SilentlyContinue } else { $env:CLAUDE_BLOG_TEST_BOOTSTRAP_GUID = $oldIdentifier }+ if ($null -eq $oldLocalAppData) { Remove-Item Env:LOCALAPPDATA -ErrorAction SilentlyContinue } else { $env:LOCALAPPDATA = $oldLocalAppData }+ if ($null -eq $oldAppData) { Remove-Item Env:APPDATA -ErrorAction SilentlyContinue } else { $env:APPDATA = $oldAppData }+ if ($null -eq $oldXdgCacheHome) { Remove-Item Env:XDG_CACHE_HOME -ErrorAction SilentlyContinue } else { $env:XDG_CACHE_HOME = $oldXdgCacheHome }+ if ($null -eq $oldTelemetryOptOut) { Remove-Item Env:POWERSHELL_TELEMETRY_OPTOUT -ErrorAction SilentlyContinue } else { $env:POWERSHELL_TELEMETRY_OPTOUT = $oldTelemetryOptOut }}}function Snapshot($Path) {@@ -86,6 +128,37 @@ $target = Join-Path $env:USERPROFILE "selected-ref-ran.txt"$downloadedBootstrap = Join-Path $RunRoot "downloaded-install.ps1"Copy-Item -LiteralPath (Join-Path $RepositoryRoot "install.ps1") -Destination $downloadedBootstrap+ Write-Host "SCENARIO: duplicate Git application resolution"+ Invoke-Expression (Import-InstallerFunction $downloadedBootstrap "Resolve-ClaudeBlogGitApplication")+ $firstApplicationDirectory = Join-Path $RunRoot "git-first"+ $secondApplicationDirectory = Join-Path $RunRoot "git-second"+ New-Item -ItemType Directory -Path $firstApplicationDirectory | Out-Null+ New-Item -ItemType Directory -Path $secondApplicationDirectory | Out-Null+ if ($env:OS -eq "Windows_NT") {+ $firstApplication = Join-Path $firstApplicationDirectory "git.cmd"+ $secondApplication = Join-Path $secondApplicationDirectory "git.cmd"+ Set-Content -LiteralPath $firstApplication -Value "@exit /b 0" -Encoding ASCII+ Set-Content -LiteralPath $secondApplication -Value "@exit /b 0" -Encoding ASCII+ } else {+ $firstApplication = Join-Path $firstApplicationDirectory "git"+ $secondApplication = Join-Path $secondApplicationDirectory "git"+ Set-Content -LiteralPath $firstApplication -Value "#!/bin/sh`nexit 0" -Encoding UTF8+ Set-Content -LiteralPath $secondApplication -Value "#!/bin/sh`nexit 0" -Encoding UTF8+ chmod u+x $firstApplication $secondApplication+ if ($LASTEXITCODE -ne 0) { throw "could not prepare duplicate Git applications" }+ }+ $oldPath = $env:PATH+ try {+ $env:PATH = $firstApplicationDirectory + [System.IO.Path]::PathSeparator + $secondApplicationDirectory + [System.IO.Path]::PathSeparator + $oldPath+ $gitApplications = @(Get-Command git -CommandType Application -All)+ Assert-True ($gitApplications.Count -ge 2) "duplicate Git applications are discoverable"+ $resolvedGit = Resolve-ClaudeBlogGitApplication+ Assert-True (@($resolvedGit).Count -eq 1) "resolver returns exactly one application"+ Assert-True ([System.IO.Path]::GetFullPath($resolvedGit.Source) -eq [System.IO.Path]::GetFullPath($firstApplication)) "resolver selects first application in PATH"+ } finally {+ $env:PATH = $oldPath+ }+Write-Host "SCENARIO: bootstrap creation collision preservation"$collisionIdentifier = [Guid]::NewGuid().ToString("N")$collisionRoot = Join-Path ([System.IO.Path]::GetTempPath()) ("claude-blog-install-" + $collisionIdentifier)@@ -108,11 +181,15 @@ $target = Join-Path $env:USERPROFILE "selected-ref-ran.txt"Set-Content -LiteralPath $failureSentinel -Value "preserve"$failureProfile = New-Profile $RunRoot "bootstrap-failure-profile"$failureProfileBefore = Snapshot $failureProfile+ $failureClaudeBefore = Snapshot (ClaudeRoot $failureProfile)$failureExit = Invoke-DownloadedBootstrap $downloadedBootstrap $failureProfile (Join-Path $RunRoot "missing-repository") "v2.2.0" $failureIdentifierAssert-True ($failureExit -ne 0) "failed clone returns nonzero"Assert-True (-not (Test-Path -LiteralPath $failureRoot)) "owned failed-clone root is cleaned"Assert-True ((Get-Content -LiteralPath $failureSentinel -Raw).Trim() -eq "preserve") "external clone-failure sentinel survives"- Assert-True ((Snapshot $failureProfile) -eq $failureProfileBefore) "failed clone does not mutate profile"+ $failureProfileAfter = Snapshot $failureProfile+ $failureClaudeAfter = Snapshot (ClaudeRoot $failureProfile)+ Assert-SnapshotEqual $failureClaudeBefore $failureClaudeAfter "failed clone does not mutate .claude"+ Assert-SnapshotEqual $failureProfileBefore $failureProfileAfter "failed clone does not mutate profile"Write-Host "SCENARIO: selected ref installer handoff"$bootstrapProfile = New-Profile $RunRoot "selected-ref-profile"