From 5be0445297b6a2e9d9343493b7a04bcfc88ee34d Mon Sep 17 00:00:00 2001 From: gimlichael Date: Sat, 21 Nov 2026 15:56:28 +0100 Subject: [PATCH 01/28] =?UTF-8?q?=E2=9C=A8=20add=20caching=20and=20verific?= =?UTF-8?q?ation=20improvements=20for=20csrun=20and=20docfx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c6b7619c..b39524d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.13.2] - 2026-11-22 + +This is a minor release that adds local SHA-256-verified `csrun.ps1` caching with ETag revalidation and rate-limit fallback in `dotnet-csrun`, integrates one-time cached engine resolution and `-EnginePath` support into `dotnet-docfx-digest` standalone verification, and updates both skills' guidance, catalog entry, and offline tests so verification sweeps avoid exhausting GitHub's unauthenticated REST rate limit while published artifacts continue fetching from GitHub. + +### Added + +- `dotnet-csrun` `Resolve-CsrunEngine` helper in `scripts/sample-tools.ps1` that fetches the latest stable `csrun.ps1` release once, verifies its SHA-256 digest, caches it in a private user-owned directory (`%LOCALAPPDATA%/codebeltnet/csrun-cache` on Windows, `$HOME/.cache/codebeltnet/csrun-cache` on Unix, or `CSRUN_CACHE_DIR`) with ownership, reparse-point, and lock-file checks, revalidates expired entries via `If-None-Match` (`304 Not Modified`), and falls back to the verified cache on HTTP `403`/`429` rate-limit responses, +- `dotnet-docfx-digest` `generate-run-actions.ps1` `-EnginePath` parameter and one-time `Resolve-CsrunEngine` caching during `-Verify` for standalone examples, recording `engineSha256` and `engineTag` in verification evidence while keeping `run-actions.manifest.json`, `BuildRunActions.ps1`, materialized `native.ps1`/`docker.ps1` artifacts, and cache hashes bound to the GitHub-referencing scripts. + +### Changed + +- `dotnet-csrun` and `dotnet-docfx-digest` skill guidance, `README.md` catalog entry, and offline PowerShell test suites (`test-sample-tools.ps1` and `test-run-actions.ps1`) now direct verification and multi-example sweeps to reuse the locally cached verified `csrun.ps1` via `-EnginePath` while keeping delivered artifacts fetching and verifying from GitHub. + ## [0.13.1] - 2026-11-21 This is a minor release that adds a standalone run-action materializer to `dotnet-docfx-digest`, so the generated Native and Docker wrapper scripts are rebuilt at DocFX build time from a committed manifest instead of being committed themselves, and it adds validator gates for API include placement and redundant example headings, together with fixes to run-action toolbar fallback and sample build parallelism. @@ -856,6 +869,7 @@ This is a minor release that introduces two complementary git workflow skills, e - Improved scaffold fidelity with hidden `.bot` asset preservation, explicit UTF-8 and BOM handling, and checks aimed at preventing mojibake or incomplete generated output. +[0.13.2]: https://github.com/codebeltnet/agentic/compare/v0.13.1...v0.13.2 [0.13.1]: https://github.com/codebeltnet/agentic/compare/v0.13.0...v0.13.1 [0.13.0]: https://github.com/codebeltnet/agentic/compare/v0.12.1...v0.13.0 [0.12.1]: https://github.com/codebeltnet/agentic/compare/v0.12.0...v0.12.1 From 872dfd98e2ebfeb6f4e9b5efc6bc44884c94195b Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sat, 21 Nov 2026 15:59:10 +0100 Subject: [PATCH 02/28] =?UTF-8?q?=E2=9C=A8=20add=20cached=20csrun=20engine?= =?UTF-8?q?=20resolution=20to=20dotnet-csrun?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add Resolve-CsrunEngine to cache and SHA-256-verify csrun.ps1 in a private user-owned directory with ETag revalidation and rate-limit fallback so multi-example verification sweeps avoid exhausting GitHub unauthenticated REST quota while published blocks continue fetching from GitHub. --- skills/dotnet-csrun/SKILL.md | 4 +- skills/dotnet-csrun/references/execution.md | 13 ++ skills/dotnet-csrun/references/lifecycle.md | 2 +- .../dotnet-csrun/references/presentation.md | 2 +- skills/dotnet-csrun/scripts/sample-tools.ps1 | 208 ++++++++++++++++++ .../scripts/test-sample-tools.ps1 | 110 ++++++++- 6 files changed, 334 insertions(+), 5 deletions(-) diff --git a/skills/dotnet-csrun/SKILL.md b/skills/dotnet-csrun/SKILL.md index 3bcc2f4b..bd9353d5 100644 --- a/skills/dotnet-csrun/SKILL.md +++ b/skills/dotnet-csrun/SKILL.md @@ -28,9 +28,9 @@ These are agent intentions, not binary commands or manifest fields. Infer a bare 3. Before manifest construction, assess feasibility: **Compatible**, **Adaptable** through a justified semantics-preserving change, **Unsupported** by the current execution model, or **Undetermined** pending inspection/execution. Trivial console programs and ordinary facts proceed directly. Inspect explicit `Main`, top-level test statements, application-entrypoint fixtures, project/assembly dependencies, platform and service prerequisites using [feasibility and recovery](references/feasibility.md). DI and hosting APIs alone are compatible; needing the identity or startup of a separate application assembly is the distinction. Avoid predictable unsupported attempts unless requested or needed for diagnosis; an inconclusive assessment may proceed to execution. 4. Choose the compatible execution path. For `create` or authorized `repair`, write complete source, including imports and an entry point or discoverable public xUnit test class; for `verify`, retain supplied source unchanged. Use async tests returning `Task` when appropriate. Do not simulate assertions or test results with printed messages. Read [manifest construction](references/manifest.md) before constructing the schema version 1 manifest. Verify package versions in repository pins and the package's authoritative published feed; never invent or silently change them. 5. Read [execution environments](references/execution.md). Select the available compatible native or Docker transport; neither requires the other's prerequisites. When both are available, verify both where practical, especially for quoting, Unicode, and transport parity. Preserve the requested framework. If neither can execute it, name the concrete missing prerequisites and deliver both runnable templates as **Unverified**. Never silently retarget, install a different engine, or fabricate output. -6. Execute the exact manifest through the actual engine. Capture stdout, stderr, exit code immediately, framework, SDK/runtime environment, engine identity, and package pins. For console examples compare actual output with the declared expectation. For tests require positive discovery/execution evidence, meaningful assertions, and matching MTP status; exit zero alone is insufficient. Zero tests is never a passing test run. +6. Execute the exact manifest through the actual engine. For skill-driven verification or multi-example sweeps, resolve and cache the SHA-256-verified `csrun.ps1` once with `Resolve-CsrunEngine` from [artifact helpers](scripts/sample-tools.ps1) and execute via `New-CsrunExecutionPair -EnginePath` so batch runs do not exhaust GitHub's unauthenticated REST rate limit. Capture stdout, stderr, exit code immediately, framework, SDK/runtime environment, engine identity, and package pins. For console examples compare actual output with the declared expectation. For tests require positive discovery/execution evidence, meaningful assertions, and matching MTP status; exit zero alone is insufficient. Zero tests is never a passing test run. 7. Classify the cause before repair: example-owned defect, environment problem, execution-model limitation, or insufficient evidence. Preserve diagnostics; edit only when repair is authorized, then rerun every changed example. A `verify` request never becomes a silent edit. Preserve source/framework for environment problems; explain model limitations and investigate uncertain package behavior before concluding unsupported. A deliberate negative is verified only when both the expected failure diagnostics and exit status match; describe the test itself as failing. -8. Follow [presentation and evidence](references/presentation.md): every compatible completed sample includes **two fully self-contained PowerShell blocks**, native and disposable Docker, generated from one canonical manifest. Use [artifact helpers](scripts/sample-tools.ps1) to prevent drift. Report each transport's verification status independently. Derive separately displayed C# from the manifest source; never publish a verification claim for different code. +8. Follow [presentation and evidence](references/presentation.md): every compatible completed sample includes **two fully self-contained PowerShell blocks**, native and disposable Docker, generated from one canonical manifest. Use [artifact helpers](scripts/sample-tools.ps1) without `-EnginePath` for delivered artifacts so published blocks always fetch and SHA-256-verify the latest stable release from GitHub. Report each transport's verification status independently. Derive separately displayed C# from the manifest source; never publish a verification claim for different code. **Never make a sample pass by changing what it was supposed to prove.** Preserve supplied code when explaining limitations. Distinguish exact behavior, semantics-preserving adaptation, reduced demonstration, and alternative behavior; only the first two support the original verification claim. Removing `Main`, selecting a startup object, replacing an entrypoint fixture with a manually built host, or switching to console mode is not an equivalent repair without evidence. diff --git a/skills/dotnet-csrun/references/execution.md b/skills/dotnet-csrun/references/execution.md index ef3e2971..b6094048 100644 --- a/skills/dotnet-csrun/references/execution.md +++ b/skills/dotnet-csrun/references/execution.md @@ -13,6 +13,19 @@ Never fix a mismatch by changing the target. The engine validates support agains The paired wrappers fetch the latest stable csrun release from GitHub and check the asset SHA-256 digest before execution. The Docker wrapper streams the verified asset and UTF-8 manifest over stdin and runs the asset in a Linux image that provides PowerShell and the target SDK. Metadata and uncached NuGet restores need network access. +## Cached engine resolution for skill verification + +During skill-driven verification, repairs, and multi-example or parallel sweeps, do not execute the GitHub-fetching wrapper repeatedly per example: `GET https://api.github.com/repos/codebeltnet/csrun/releases/latest` is subject to GitHub's 60-requests/hour unauthenticated REST rate limit and burst abuse detection. Instead, resolve the verified engine once with `Resolve-CsrunEngine` from `scripts/sample-tools.ps1`, then pass `-EnginePath $engine.Path` to `New-CsrunExecutionPair` for verification execution only: + +```powershell +. '/scripts/sample-tools.ps1' +$engine = Resolve-CsrunEngine +$verifyPair = New-CsrunExecutionPair -ManifestJson $manifest -Image 'codebeltnet/csrun:10' -EnginePath $engine.Path +$publishedPair = New-CsrunExecutionPair -ManifestJson $manifest -Image 'codebeltnet/csrun:10' +``` + +`Resolve-CsrunEngine` fetches the latest stable `csrun.ps1`, verifies its SHA-256 digest against the release asset metadata, and caches it with its tag, digest, ETag, and timestamp in a private user-owned cache outside any repository (`%LOCALAPPDATA%/codebeltnet/csrun-cache` on Windows, `$HOME/.cache/codebeltnet/csrun-cache` on Unix; override with `-CacheDirectory` or `CSRUN_CACHE_DIR`). Subsequent calls within the freshness window (default 60 minutes) re-verify the local file's SHA-256 and reuse it with zero GitHub calls. Expired entries revalidate with `If-None-Match` (`304 Not Modified` does not consume GitHub REST quota), concurrent callers serialize on a cache lock, and rate-limited (`403`/`429`) revalidations fall back to an existing SHA-256-verified cached copy with a warning citing the cached tag and digest. Always generate final developer-facing and published artifacts **without** `-EnginePath` so they remain self-contained and continue to fetch and verify from GitHub. + Record `docker image inspect codebeltnet/csrun:10 --format '{{json .Config.Labels}}'` and `docker image inspect codebeltnet/csrun:10 --format '{{json .RepoDigests}}'` where reproducibility matters. Tags are mutable and cached images persist until updated. A registry-confirmed digest pin improves identity; never invent one. Engine release/hash labels and SDK/runtime inventories are separate identities. Use `docker run --rm --entrypoint dotnet codebeltnet/csrun:10 --list-sdks` and `--list-runtimes` to inspect them. ## Independent environment selection diff --git a/skills/dotnet-csrun/references/lifecycle.md b/skills/dotnet-csrun/references/lifecycle.md index 92307f43..292c361c 100644 --- a/skills/dotnet-csrun/references/lifecycle.md +++ b/skills/dotnet-csrun/references/lifecycle.md @@ -24,6 +24,6 @@ Respect the requested directory/files and parent authorization. Discover candida Use these outcomes independently of feasibility: **Verified executable**, **Compiled only**, **Repairable defect**, **Unsupported execution topology**, **Missing environment or dependency**, **Intentionally partial**, or **Already verified with current matching evidence**. A missing published package pin can be a repairable defect; missing private infrastructure may instead be a prerequisite. Report discovery counts and unresolved rows; do not imply all examples passed when some are partial, unsupported, or unexecuted. -Keep the inventory, manifests, logs, and evidence under an OS temporary task directory or ignored `.bot/`, never alongside tracked docs. Process `audit --fix` in manageable batches of eligible source defects; preserve unsupported/partial examples and unrelated content. Verify each corrected canonical identity and summarize changed files and remaining failures. +Keep the inventory, manifests, logs, and evidence under an OS temporary task directory or ignored `.bot/`, never alongside tracked docs. For multi-example or parallel verification sweeps, resolve the verified `csrun.ps1` once with `Resolve-CsrunEngine` and run verification pairs through `-EnginePath` rather than batch-executing materialized GitHub-fetching scripts; delivered artifacts still omit `-EnginePath` so they continue referencing GitHub. Process `audit --fix` in manageable batches of eligible source defects; preserve unsupported/partial examples and unrelated content. Verify each corrected canonical identity and summarize changed files and remaining failures. Reuse evidence only when the user's verification policy permits it and **all** relevant inputs match: exact source, canonical manifest including dependencies/framework/sdk/references, engine hash or image digest, actual SDK/runtime/platform/architecture, resolved package assets/transitive dependencies, expected-observation contract, and relevant external inputs. Record timestamp and evidence provenance. Mutable tags, `latest`, unavailable environment identity, or unknown external state cannot establish a cache match. After any relevant change, execute again. Matching source alone never verifies another transport; previously matched evidence must name that transport. An inventory status or model statement is not execution evidence. diff --git a/skills/dotnet-csrun/references/presentation.md b/skills/dotnet-csrun/references/presentation.md index 3b7fe24f..c4838f2a 100644 --- a/skills/dotnet-csrun/references/presentation.md +++ b/skills/dotnet-csrun/references/presentation.md @@ -13,7 +13,7 @@ $pair.Native $pair.Docker ``` -Pass `-EnginePath ''` to use a reviewed local engine. By default, the generated native block queries GitHub at runtime for the latest stable release and verifies the downloaded script against the SHA-256 digest in that release's asset metadata. Both this release selection and SDK-oriented Docker tags can change over time. The helper generates the blocks without making network requests or executing samples. Its JSON literal preserves multiline C#, Unicode, quotes, raw strings, dollars, and PowerShell here-string terminators. [csrun source and releases](https://github.com/codebeltnet/csrun) +Pass `-EnginePath ''` (or `-EnginePath (Resolve-CsrunEngine).Path` during skill verification sweeps) to execute against a locally verified engine without hitting GitHub per example. Always omit `-EnginePath` when generating delivered or published blocks: by default, the generated Native and Docker blocks query GitHub at runtime for the latest stable release and verify the downloaded script against the SHA-256 digest in that release's asset metadata. Both this release selection and SDK-oriented Docker tags can change over time. The helper generates the blocks without making network requests or executing samples. Its JSON literal preserves multiline C#, Unicode, quotes, raw strings, dollars, and PowerShell here-string terminators. [csrun source and releases](https://github.com/codebeltnet/csrun) Use `Get-CsrunSampleIdentity` to obtain exact UTF-8 source SHA-256 and the canonical JSON manifest SHA-256. Canonicalization sorts object keys and preserves arrays and every value, including source line endings; JSON whitespace/property order alone does not invalidate identity. `Get-CsrunWrapperManifest` safely reads a generated block's literal assignment through the PowerShell AST without running it. Compare both decoded manifests and the documented source before publication; reject divergence, including dependencies, SDK or framework references. Other wrapper formats need manual inspection rather than execution for extraction. Ordinary interactive developers do not manage hashes themselves. diff --git a/skills/dotnet-csrun/scripts/sample-tools.ps1 b/skills/dotnet-csrun/scripts/sample-tools.ps1 index c6f7440d..9817cd47 100644 --- a/skills/dotnet-csrun/scripts/sample-tools.ps1 +++ b/skills/dotnet-csrun/scripts/sample-tools.ps1 @@ -220,3 +220,211 @@ function Set-CsrunSourceRegion { if ([Convert]::ToBase64String($bytes) -cne [Convert]::ToBase64String($roundTrip)) { throw 'Encoding is not losslessly supported.' } [IO.File]::WriteAllBytes($full, $output) } + +function Resolve-CsrunEngine { + [CmdletBinding()] + param( + [string] $CacheDirectory, + [ValidateRange(0, 10080)][int] $MaxAgeMinutes = 60, + [switch] $ForceRefresh, + [string] $ReleaseApiUrl = 'https://api.github.com/repos/codebeltnet/csrun/releases/latest' + ) + if (-not $CacheDirectory) { + if ($env:CSRUN_CACHE_DIR) { + $CacheDirectory = $env:CSRUN_CACHE_DIR + } elseif ($IsWindows) { + $base = [Environment]::GetFolderPath('LocalApplicationData') + if (-not $base) { throw 'LocalApplicationData is unavailable for the csrun engine cache.' } + $CacheDirectory = Join-Path $base 'codebeltnet/csrun-cache' + } else { + if (-not $HOME) { throw 'HOME is unavailable for the csrun engine cache.' } + $CacheDirectory = Join-Path $HOME '.cache/codebeltnet/csrun-cache' + } + } + if (-not [IO.Path]::IsPathFullyQualified($CacheDirectory)) { + throw "csrun engine cache directory must be an absolute path: $CacheDirectory" + } + $CacheDirectory = [IO.Path]::TrimEndingDirectorySeparator([IO.Path]::GetFullPath($CacheDirectory)) + $currentOwner = if ($IsWindows) { [Security.Principal.WindowsIdentity]::GetCurrent().User.Value } else { (& id -u).Trim() } + + function Get-UnixItemMetadata([string] $Path) { + $statArgs = if ($IsMacOS) { @('-f', '%u %l %p', $Path) } else { @('-c', '%u %h %f', '--', $Path) } + $metadata = & stat @statArgs 2>$null + if ($LASTEXITCODE -ne 0 -or $metadata -notmatch '\A(\d+) (\d+) ([0-9a-f]+)\z') { return $null } + $radix = if ($IsMacOS) { 8 } else { 16 } + return @{ Owner = $Matches[1]; Links = [int]$Matches[2]; Mode = [Convert]::ToInt32($Matches[3], $radix) } + } + + function Test-PrivateCachePath([string] $Path, [switch] $Directory) { + $item = Get-Item -LiteralPath $Path -Force -ErrorAction SilentlyContinue + if (-not $item -or $item.PSIsContainer -ne $Directory.IsPresent) { return $false } + $linkProp = $item.PSObject.Properties['LinkType'] + if (($linkProp -and $linkProp.Value) -or ($item.Attributes -band [IO.FileAttributes]::ReparsePoint)) { return $false } + if ($IsWindows) { + try { return (Get-Acl -LiteralPath $Path).GetOwner([Security.Principal.SecurityIdentifier]).Value -eq $currentOwner } + catch { return $false } + } + $metadata = Get-UnixItemMetadata $Path + if (-not $metadata) { return $false } + return $metadata.Owner -eq $currentOwner -and ($metadata.Mode -band 63) -eq 0 -and + ($Directory -or (($metadata.Mode -band 0xF000) -eq 0x8000 -and $metadata.Links -eq 1)) + } + + if (-not (Get-Item -LiteralPath $CacheDirectory -Force -ErrorAction SilentlyContinue)) { + $null = [IO.Directory]::CreateDirectory($CacheDirectory) + if (-not $IsWindows) { & chmod 700 -- $CacheDirectory } + } + if (-not (Test-PrivateCachePath $CacheDirectory -Directory)) { + throw "csrun engine cache directory failed ownership or symlink checks: $CacheDirectory" + } + + $scriptPath = Join-Path $CacheDirectory 'csrun.ps1' + $metaPath = Join-Path $CacheDirectory 'engine.json' + $lockPath = Join-Path $CacheDirectory 'engine.lock' + $utf8NoBom = [Text.UTF8Encoding]::new($false) + + function Read-VerifiedCache { + if (-not (Test-PrivateCachePath $scriptPath) -or -not (Test-PrivateCachePath $metaPath)) { return $null } + try { + $meta = [IO.File]::ReadAllText($metaPath) | ConvertFrom-Json -AsHashtable + if (-not $meta -or -not $meta.ContainsKey('sha256') -or -not $meta.ContainsKey('fetchedUtc') -or -not $meta.ContainsKey('tag')) { return $null } + $expectedSha = [string] $meta['sha256'] + if ($expectedSha -notmatch '^[0-9A-Fa-f]{64}$') { return $null } + $fetched = [DateTimeOffset]::Parse([string] $meta['fetchedUtc'], [Globalization.CultureInfo]::InvariantCulture, [Globalization.DateTimeStyles]::RoundtripKind) + $actualSha = (Get-FileHash -LiteralPath $scriptPath -Algorithm SHA256).Hash + if ($actualSha -ine $expectedSha) { return $null } + return [pscustomobject]@{ + Path = $scriptPath + Tag = [string] $meta['tag'] + Sha256 = $actualSha.ToUpperInvariant() + ETag = if ($meta.ContainsKey('etag')) { [string] $meta['etag'] } else { $null } + DownloadUrl = if ($meta.ContainsKey('downloadUrl')) { [string] $meta['downloadUrl'] } else { $null } + FetchedUtc = $fetched + } + } catch { + return $null + } + } + + function Write-CacheMetadata([string] $Tag, [string] $Sha256, [string] $ETag, [string] $DownloadUrl, [DateTimeOffset] $FetchedUtc) { + $tmpMeta = Join-Path $CacheDirectory ('engine-' + [guid]::NewGuid().ToString('N') + '.tmp') + try { + $payload = [ordered]@{ + tag = $Tag + sha256 = $Sha256.ToUpperInvariant() + etag = $ETag + downloadUrl = $DownloadUrl + fetchedUtc = $FetchedUtc.ToUniversalTime().ToString('O') + } | ConvertTo-Json -Compress + [IO.File]::WriteAllText($tmpMeta, $payload, $utf8NoBom) + if (-not $IsWindows) { & chmod 600 -- $tmpMeta } + [IO.File]::Move($tmpMeta, $metaPath, $true) + } finally { + if (Test-Path -LiteralPath $tmpMeta) { Remove-Item -LiteralPath $tmpMeta -Force } + } + } + + $lockStream = $null + $deadline = [DateTimeOffset]::UtcNow.AddSeconds(30) + while ($null -eq $lockStream) { + try { + $lockStream = [IO.FileStream]::new($lockPath, [IO.FileMode]::OpenOrCreate, [IO.FileAccess]::ReadWrite, [IO.FileShare]::None) + } catch [IO.IOException] { + if ([DateTimeOffset]::UtcNow -ge $deadline) { + throw "Timed out waiting for csrun engine cache lock: $lockPath" + } + Start-Sleep -Milliseconds 100 + } + } + + $tmpScript = $null + try { + if (-not $IsWindows) { & chmod 600 -- $lockPath 2>$null } + $now = [DateTimeOffset]::UtcNow + $cached = Read-VerifiedCache + if ($cached -and -not $ForceRefresh -and $MaxAgeMinutes -gt 0 -and ($now - $cached.FetchedUtc).TotalMinutes -lt $MaxAgeMinutes) { + return [pscustomobject]@{ + Path = $cached.Path + Tag = $cached.Tag + Sha256 = $cached.Sha256 + FetchedUtc = $cached.FetchedUtc.ToUniversalTime().ToString('O') + Source = 'Cache' + } + } + + $headers = @{ Accept = 'application/vnd.github+json' } + if ($cached -and $cached.ETag) { $headers['If-None-Match'] = $cached.ETag } + + $response = Invoke-WebRequest -Uri $ReleaseApiUrl -Headers $headers -SkipHttpErrorCheck + $statusCode = [int] $response.StatusCode + $responseEtag = $null + if ($response.Headers -and $response.Headers.ContainsKey('ETag')) { + $responseEtag = @($response.Headers['ETag']) | Select-Object -First 1 + } + + if ($statusCode -eq 304) { + if (-not $cached) { throw 'Received HTTP 304 Not Modified without a verified cached csrun engine.' } + $effectiveEtag = if ($responseEtag) { $responseEtag } else { $cached.ETag } + Write-CacheMetadata -Tag $cached.Tag -Sha256 $cached.Sha256 -ETag $effectiveEtag -DownloadUrl $cached.DownloadUrl -FetchedUtc $now + $reverified = (Get-FileHash -LiteralPath $scriptPath -Algorithm SHA256).Hash + if ($reverified -ine $cached.Sha256) { throw "Cached csrun engine checksum changed unexpectedly: $reverified" } + return [pscustomobject]@{ + Path = $scriptPath + Tag = $cached.Tag + Sha256 = $reverified.ToUpperInvariant() + FetchedUtc = $now.ToString('O') + Source = 'NotModified' + } + } + + if ($statusCode -in @(403, 429)) { + if ($cached) { + Write-Warning "GitHub API returned HTTP $statusCode while checking csrun releases; reusing locally verified cached engine $($cached.Tag) (SHA256 $($cached.Sha256), fetched $($cached.FetchedUtc.ToUniversalTime().ToString('O')))." + return [pscustomobject]@{ + Path = $cached.Path + Tag = $cached.Tag + Sha256 = $cached.Sha256 + FetchedUtc = $cached.FetchedUtc.ToUniversalTime().ToString('O') + Source = 'StaleCacheFallback' + } + } + throw "GitHub API returned HTTP $statusCode while resolving csrun release and no verified cached engine is available." + } + + if ($statusCode -ne 200) { + throw "Failed to resolve csrun release from $ReleaseApiUrl (HTTP $statusCode)." + } + + $release = $response.Content | ConvertFrom-Json + $assets = @($release.assets | Where-Object name -CEQ 'csrun.ps1') + if ($assets.Count -ne 1 -or $assets[0].digest -notmatch '^sha256:[0-9a-f]{64}$') { + throw "csrun release $($release.tag_name) must publish one csrun.ps1 asset with a SHA-256 digest." + } + $asset = $assets[0] + $expectedSha = $asset.digest.Substring(7).ToUpperInvariant() + + if (-not $cached -or $cached.Sha256 -ine $expectedSha) { + $tmpScript = Join-Path $CacheDirectory ('csrun-' + [guid]::NewGuid().ToString('N') + '.tmp') + Invoke-WebRequest -Uri $asset.browser_download_url -OutFile $tmpScript + $actualHash = (Get-FileHash -LiteralPath $tmpScript -Algorithm SHA256).Hash + if ("sha256:$actualHash" -ne $asset.digest) { + throw "csrun asset checksum mismatch: $actualHash" + } + if (-not $IsWindows) { & chmod 600 -- $tmpScript } + [IO.File]::Move($tmpScript, $scriptPath, $true) + $tmpScript = $null + } + + Write-CacheMetadata -Tag ([string] $release.tag_name) -Sha256 $expectedSha -ETag $responseEtag -DownloadUrl ([string] $asset.browser_download_url) -FetchedUtc $now + return [pscustomobject]@{ + Path = $scriptPath + Tag = [string] $release.tag_name + Sha256 = $expectedSha + FetchedUtc = $now.ToString('O') + Source = 'GitHub' + } + } finally { + if ($tmpScript -and (Test-Path -LiteralPath $tmpScript)) { Remove-Item -LiteralPath $tmpScript -Force } + if ($lockStream) { $lockStream.Dispose() } + } +} diff --git a/skills/dotnet-csrun/scripts/test-sample-tools.ps1 b/skills/dotnet-csrun/scripts/test-sample-tools.ps1 index 29e635dd..6c8c17ca 100644 --- a/skills/dotnet-csrun/scripts/test-sample-tools.ps1 +++ b/skills/dotnet-csrun/scripts/test-sample-tools.ps1 @@ -1,4 +1,4 @@ -#requires -Version 7.0 +#requires -Version 7.0 $ErrorActionPreference = 'Stop' . (Join-Path $PSScriptRoot 'sample-tools.ps1') $root = Split-Path $PSScriptRoot -Parent @@ -132,4 +132,112 @@ try { if (-not $resolved.StartsWith([IO.Path]::GetFullPath([IO.Path]::GetTempPath()), [StringComparison]::OrdinalIgnoreCase)) { throw 'Unsafe cleanup path.' } Remove-Item -LiteralPath $resolved -Recurse -Force } + +# Offline tests for Resolve-CsrunEngine: single-fetch caching, TTL hit, ETag 304, tamper rejection, checksum mismatch, rate-limit fallback, and symlink rejection. +$cacheTemp = Join-Path ([IO.Path]::GetTempPath()) ('csrun-cache-test-' + [guid]::NewGuid().ToString('N')) +$null = New-Item -ItemType Directory -Path $cacheTemp +try { + $cacheDir = Join-Path $cacheTemp 'cache' + $enginePayloadV1 = "param([string]`$ManifestJson)`n# v0.2.1`n[Console]::Write(`$ManifestJson)" + $engineShaV1 = [Convert]::ToHexString([Security.Cryptography.SHA256]::HashData([Text.Encoding]::UTF8.GetBytes($enginePayloadV1))).ToLowerInvariant() + $script:mockApiCalls = 0 + $script:mockDownloadCalls = 0 + $script:mockLastIfNoneMatch = $null + $script:mockMode = 'ok' + $script:mockPayload = $enginePayloadV1 + $script:mockDigest = "sha256:$engineShaV1" + $script:mockTag = 'v0.2.1' + $script:mockEtag = '"etag-v0.2.1"' + + function Invoke-WebRequest { + param([string] $Uri, [hashtable] $Headers, [switch] $SkipHttpErrorCheck, [string] $OutFile) + if ($OutFile) { + $script:mockDownloadCalls++ + [IO.File]::WriteAllText($OutFile, $script:mockPayload, [Text.UTF8Encoding]::new($false)) + return + } + $script:mockApiCalls++ + $script:mockLastIfNoneMatch = if ($Headers -and $Headers.ContainsKey('If-None-Match')) { $Headers['If-None-Match'] } else { $null } + if ($script:mockMode -eq '304') { + return [pscustomobject]@{ StatusCode = 304; Headers = @{ ETag = @($script:mockEtag) }; Content = '' } + } + if ($script:mockMode -eq '403' -or $script:mockMode -eq '429') { + return [pscustomobject]@{ StatusCode = [int] $script:mockMode; Headers = @{}; Content = '{"message":"API rate limit exceeded"}' } + } + $body = @{ + tag_name = $script:mockTag + assets = @(@{ + name = 'csrun.ps1' + digest = $script:mockDigest + browser_download_url = 'https://example.invalid/csrun.ps1' + }) + } | ConvertTo-Json -Depth 5 + return [pscustomobject]@{ StatusCode = 200; Headers = @{ ETag = @($script:mockEtag) }; Content = $body } + } + + try { + $first = Resolve-CsrunEngine -CacheDirectory $cacheDir + Assert-True ($first.Source -eq 'GitHub' -and $first.Tag -eq 'v0.2.1' -and $first.Sha256 -ceq $engineShaV1.ToUpperInvariant()) 'Initial Resolve-CsrunEngine did not fetch and verify release.' + Assert-True ($script:mockApiCalls -eq 1 -and $script:mockDownloadCalls -eq 1) 'Initial Resolve-CsrunEngine made unexpected network calls.' + + # Subsequent call within TTL reuses local verified cache without hitting GitHub. + $second = Resolve-CsrunEngine -CacheDirectory $cacheDir + Assert-True ($second.Source -eq 'Cache' -and $second.Path -ceq $first.Path -and $second.Sha256 -ceq $first.Sha256) 'Warm cache call did not reuse verified engine.' + Assert-True ($script:mockApiCalls -eq 1 -and $script:mockDownloadCalls -eq 1) 'Warm cache call still hit GitHub.' + + # Execution pair with cached -EnginePath skips GitHub while preserving manifest parity with the published GitHub-referencing artifact. + $verifyPair = New-CsrunExecutionPair $console -Image 'codebeltnet/csrun:10' -EnginePath $second.Path + $publishedPair = New-CsrunExecutionPair $console -Image 'codebeltnet/csrun:10' + foreach ($transport in @('Native', 'Docker')) { + Assert-True (-not $verifyPair.$transport.Contains('releases/latest') -and $verifyPair.$transport.Contains($second.Path)) "$transport verification block did not use cached engine." + Assert-True ($publishedPair.$transport.Contains('releases/latest')) "$transport published block lost GitHub reference." + Assert-True ((Get-CsrunWrapperManifest $verifyPair.$transport) -ceq (Get-CsrunWrapperManifest $publishedPair.$transport)) "$transport verification and published manifests diverged." + } + + # Revalidation sends ETag and handles 304 Not Modified without re-downloading. + $script:mockMode = '304' + $revalidated = Resolve-CsrunEngine -CacheDirectory $cacheDir -ForceRefresh + Assert-True ($revalidated.Source -eq 'NotModified' -and $script:mockLastIfNoneMatch -ceq $script:mockEtag) 'ForceRefresh did not revalidate with cached ETag.' + Assert-True ($script:mockApiCalls -eq 2 -and $script:mockDownloadCalls -eq 1) 'HTTP 304 re-downloaded csrun.ps1 unnecessarily.' + + # Rate-limit responses (403/429) reuse the verified local cache with a warning. + foreach ($code in @('403', '429')) { + $script:mockMode = $code + $warnings = $null + $fallback = Resolve-CsrunEngine -CacheDirectory $cacheDir -ForceRefresh -WarningVariable warnings -WarningAction SilentlyContinue + Assert-True ($fallback.Source -eq 'StaleCacheFallback' -and $fallback.Sha256 -ceq $first.Sha256 -and @($warnings).Count -ge 1) "HTTP $code did not fall back cleanly to verified cache." + } + + # Rate-limit response with no cached engine fails clearly. + $emptyCacheDir = Join-Path $cacheTemp 'empty-cache' + $script:mockMode = '403' + Assert-Throws { Resolve-CsrunEngine -CacheDirectory $emptyCacheDir } 'Rate-limited cold cache succeeded unexpectedly.' + + # Tampering with cached csrun.ps1 invalidates the cache and forces a fresh verified download. + $script:mockMode = 'ok' + [IO.File]::WriteAllText($first.Path, '# tampered', [Text.UTF8Encoding]::new($false)) + $repaired = Resolve-CsrunEngine -CacheDirectory $cacheDir + Assert-True ($repaired.Source -eq 'GitHub' -and $script:mockDownloadCalls -eq 2 -and ([IO.File]::ReadAllText($repaired.Path) -ceq $enginePayloadV1)) 'Tampered cache file was trusted instead of re-fetched.' + + # Checksum mismatch on download throws without corrupting existing verified cache. + $badCacheDir = Join-Path $cacheTemp 'bad-digest' + $script:mockDigest = 'sha256:' + ('0' * 64) + Assert-Throws { Resolve-CsrunEngine -CacheDirectory $badCacheDir } 'Checksum mismatch was accepted.' + Assert-True (-not (Test-Path -LiteralPath (Join-Path $badCacheDir 'csrun.ps1'))) 'Failed checksum download left csrun.ps1 behind.' + $script:mockDigest = "sha256:$engineShaV1" + + # Reparse-point / symlinked cache directory is rejected before trusting or writing scripts. + $linkedCacheDir = Join-Path $cacheTemp 'linked-cache' + $linkType = if ($IsWindows) { 'Junction' } else { 'SymbolicLink' } + $null = New-Item -ItemType $linkType -Path $linkedCacheDir -Target $cacheDir + Assert-Throws { Resolve-CsrunEngine -CacheDirectory $linkedCacheDir } 'Linked cache directory was accepted.' + } finally { + Remove-Item Function:\Invoke-WebRequest -ErrorAction SilentlyContinue + } +} finally { + $resolvedCacheTemp = [IO.Path]::GetFullPath($cacheTemp) + if (-not $resolvedCacheTemp.StartsWith([IO.Path]::GetFullPath([IO.Path]::GetTempPath()), [StringComparison]::OrdinalIgnoreCase)) { throw 'Unsafe cleanup path.' } + Remove-Item -LiteralPath $resolvedCacheTemp -Recurse -Force +} + Write-Host "dotnet-csrun sample tools passed: $checks checks (offline transport doubles are not sample verification)." From 8b277433c1126e59e46d1e001d0dfcd871b09e3d Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sat, 21 Nov 2026 15:59:10 +0100 Subject: [PATCH 03/28] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20use=20cached=20csrun?= =?UTF-8?q?=20engine=20in=20docfx-digest=20verification?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolve and cache csrun.ps1 once per verification sweep via Resolve-CsrunEngine or an explicit -EnginePath in generate-run-actions.ps1 while keeping published run-action scripts, manifests, and cache hashes bound to the GitHub-referencing artifacts. --- skills/dotnet-docfx-digest/SKILL.md | 2 +- .../references/run-actions.md | 2 +- .../scripts/generate-run-actions.ps1 | 38 +++++++- .../scripts/test-run-actions.ps1 | 86 ++++++++++++++++++- 4 files changed, 120 insertions(+), 8 deletions(-) diff --git a/skills/dotnet-docfx-digest/SKILL.md b/skills/dotnet-docfx-digest/SKILL.md index 99f23465..9cfaa1b9 100644 --- a/skills/dotnet-docfx-digest/SKILL.md +++ b/skills/dotnet-docfx-digest/SKILL.md @@ -14,7 +14,7 @@ Create and maintain developer-friendly DocFX documentation digests for .NET publ ## Opt-in run actions -For `dotnet-docfx-digest csrun` (also accepted as `dotnet-docfx-digest generate-run-actions`), read [run actions](references/run-actions.md). Run the deterministic generator across the active DocFX repository, then resolve its outstanding examples in bounded project batches within the same skill invocation. Inspect source projects, evaluated references, published package assets and maintained tests, persist source-bound recipes, and regenerate until every example is paired or has a demonstrated technical limitation. Keep C#, source links and template customizations readable. Runtime verification is opt-in and independent for each transport. The generator uses the existing csrun contract and runs without model calls. +For `dotnet-docfx-digest csrun` (also accepted as `dotnet-docfx-digest generate-run-actions`), read [run actions](references/run-actions.md). Run the deterministic generator across the active DocFX repository, then resolve its outstanding examples in bounded project batches within the same skill invocation. Inspect source projects, evaluated references, published package assets and maintained tests, persist source-bound recipes, and regenerate until every example is paired or has a demonstrated technical limitation. Keep C#, source links and template customizations readable. Runtime verification is opt-in and independent for each transport; verify standalone examples through `generate-run-actions.ps1 -Verify` (or `Resolve-CsrunEngine` plus `-EnginePath`) so `csrun.ps1` is resolved and cached locally once per sweep rather than batch-executing materialized GitHub-fetching `native.ps1`/`docker.ps1` scripts, while published artifacts keep referencing GitHub. The generator uses the existing csrun contract and runs without model calls. For an existing site, always run the current skill's generator, including for toolbar-only updates. An `unchanged` example status applies to its PowerShell scripts. Verify the template's refreshed `public/run-actions.js` against the skill asset, then rebuild and verify the JavaScript in the site output. For a UI-only refresh, preserve existing examples, recipes and script verification evidence. diff --git a/skills/dotnet-docfx-digest/references/run-actions.md b/skills/dotnet-docfx-digest/references/run-actions.md index d01393ef..e5cc04e3 100644 --- a/skills/dotnet-docfx-digest/references/run-actions.md +++ b/skills/dotnet-docfx-digest/references/run-actions.md @@ -68,7 +68,7 @@ Each supported C# fence is followed by an association with its Native and Docker Each JSON result includes `coverage`, generation `status`, and independent Native and Docker verification states. `Paired` means both scripts were generated. `Partially supported` requires a documented transport limitation. `Unresolved` includes missing dependency evidence, invalid recipes and source context errors. `Intrinsically non-executable` requires a limitation bound to the source. Exit 2 means unresolved coverage remains. Exit 1 takes precedence for recipe, generation or runtime failures. Verification records and logs live in a private `.docfx-run-verification` directory under the current user's home on Unix or Local AppData on Windows. Reruns reuse a transport's state and log path when its script SHA-256 matches and both cache files pass ownership and link checks. -Explicitly pass `-Verify Native`, `-Verify Docker` or `-Verify Both` to run the selected scripts in separate PowerShell processes and record exit outcomes and log paths under OS temp. Standalone tests require an executed-test summary with every test passing and zero skips. Unrun transports stay `Unverified`. Changes to source, recipe or generator invalidate previous verification. Regular DocFX completion requirements still apply when editing documentation. +Explicitly pass `-Verify Native`, `-Verify Docker` or `-Verify Both` (and optionally `-EnginePath `) to run the selected scripts in separate PowerShell processes and record exit outcomes and log paths under OS temp or the private verification cache. For standalone examples, `generate-run-actions.ps1` resolves and caches the SHA-256-verified `csrun.ps1` once via `Resolve-CsrunEngine` (or uses the supplied `-EnginePath`) and executes verification against that local verified script, while keeping `run-actions.manifest.json`, `BuildRunActions.ps1`, materialized `native.ps1`/`docker.ps1` artifacts, and cache hashes bound to the GitHub-referencing scripts. Do not run batch or parallel verification sweeps directly against materialized `run-actions//{native,docker}.ps1` files, because each materialized script queries GitHub's unauthenticated REST API (`releases/latest`) and quickly hits the 60-requests/hour IP rate limit and abuse detection. Standalone tests require an executed-test summary with every test passing and zero skips. Unrun transports stay `Unverified`. Changes to source, recipe or generator invalidate previous verification. Regular DocFX completion requirements still apply when editing documentation. Run the focused deterministic regression with `pwsh -NoProfile -File /scripts/test-run-actions.ps1`. It builds the shared inventory once, checks the direct paired-delivery rule, complete Native/Docker reference scripts, same-sample links and copy controls, independent verification status, source/pin parity, unsupported cases, second-run bytes/timestamps, stale cleanup and a real DocFX modern render in OS temp. Existing `test-integration-example.ps1` checks exact execution/failure semantics with offline doubles. These checks do not assert live native/Docker integration execution. Normal authoring and the `agents.cs` plus `docfx.cs --build-api-model --validate-samples --verify-docfx-build` completion requirements remain unchanged when editing an actual documentation repository. diff --git a/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 b/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 index bb605e25..63cb46e4 100644 --- a/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 +++ b/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 @@ -6,7 +6,8 @@ param( [string] $Settings, [string] $Framework = 'net10.0', [string] $CsrunImage = 'codebeltnet/csrun:10', - [ValidateSet('None','Native','Docker','Both')][string] $Verify = 'None' + [ValidateSet('None','Native','Docker','Both')][string] $Verify = 'None', + [string] $EnginePath ) $ErrorActionPreference = 'Stop' $PSNativeCommandUseErrorActionPreference = $false @@ -119,6 +120,19 @@ foreach ($recipe in $recipes) { if ($recipeBySource.ContainsKey($key)) { throw "Duplicate recipe for $key" } $recipeBySource[$key] = $recipe } +$resolvedVerificationEngine = $null +if ($EnginePath) { + $fullEnginePath = [IO.Path]::GetFullPath($EnginePath) + if (-not (Test-Path -LiteralPath $fullEnginePath -PathType Leaf)) { + throw "csrun engine asset not found: $fullEnginePath" + } + $resolvedVerificationEngine = [pscustomobject]@{ + Path = $fullEnginePath + Tag = $null + Sha256 = (Get-FileHash -LiteralPath $fullEnginePath -Algorithm SHA256).Hash.ToUpperInvariant() + Source = 'Explicit' + } +} foreach ($example in $inventory.examples) { $displayedSource = Normalize $example.code $source = $displayedSource @@ -183,8 +197,10 @@ foreach ($example in $inventory.examples) { if ($strategy -eq 'repository') { $pair = New-RepositoryExamplePair -Repository $recipe.repository -Commit $recipe.commit -Project $recipe.project -Test $recipe.test -Framework $recipe.framework -Image $recipe.image } else { - $pair = New-CsrunExecutionPair -ManifestJson ($manifestObject | ConvertTo-Json -Depth 30) -Image $image + $manifestJson = $manifestObject | ConvertTo-Json -Depth 30 + $pair = New-CsrunExecutionPair -ManifestJson $manifestJson -Image $image } + $verifyPair = $null foreach ($transport in $transports) { $script = Normalize $pair.$transport $tokens=$null; $errors=$null @@ -195,18 +211,32 @@ foreach ($example in $inventory.examples) { $evidencePath = if ($evidenceDirectory) { Join-Path $evidenceDirectory "$configHash-$id-$transport-$scriptHash.json" } if ($Verify -eq 'Both' -or $Verify -eq $transport) { if (-not $evidencePath) { throw 'A private, user-owned directory is required to record run-action verification.' } + $executionScript = $script + if ($strategy -eq 'standalone') { + if (-not $resolvedVerificationEngine) { + $resolvedVerificationEngine = Resolve-CsrunEngine + } + if (-not $verifyPair) { + $verifyPair = New-CsrunExecutionPair -ManifestJson $manifestJson -Image $image -EnginePath $resolvedVerificationEngine.Path + } + $executionScript = Normalize $verifyPair.$transport + } $runName = "docfx-run-$id-$transport-" + [guid]::NewGuid().ToString('N') $tempScript = Join-Path $evidenceDirectory "$runName.ps1" $log = Join-Path $evidenceDirectory "$runName.log" try { - [IO.File]::WriteAllText($tempScript, $script, [Text.UTF8Encoding]::new($false)) + [IO.File]::WriteAllText($tempScript, $executionScript, [Text.UTF8Encoding]::new($false)) [IO.File]::WriteAllText($log, '') & pwsh -NoProfile -NonInteractive -File $tempScript *> $log $result[$transport] = if ($LASTEXITCODE -eq 0) { 'Verified' } else { 'Failed' } $result["${transport}Evidence"] = $log $pendingEvidence = Join-Path $evidenceDirectory "$runName.tmp" try { - $evidence = @{ state = $result[$transport]; log = "$runName.log" } + $evidence = [ordered]@{ state = $result[$transport]; log = "$runName.log" } + if ($strategy -eq 'standalone' -and $resolvedVerificationEngine) { + $evidence.engineSha256 = $resolvedVerificationEngine.Sha256 + if ($resolvedVerificationEngine.Tag) { $evidence.engineTag = $resolvedVerificationEngine.Tag } + } [IO.File]::WriteAllText($pendingEvidence, ($evidence | ConvertTo-Json -Compress)) if (-not $IsWindows) { & chmod 600 -- $pendingEvidence $log } [IO.File]::Move($pendingEvidence, $evidencePath, $true) diff --git a/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 b/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 index f52f6cdf..8abc5c5c 100644 --- a/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 +++ b/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 @@ -207,16 +207,68 @@ if (@($second | Where-Object status -eq 'unchanged').Count -ne 5) { throw 'Incre foreach ($file in Get-ChildItem $work -Recurse -File) { if ($before[$file.FullName][0] -cne (Get-FileHash $file.FullName).Hash -or $before[$file.FullName][1] -ne $file.LastWriteTimeUtc.Ticks) { throw "Second run changed $($file.FullName)" } } -# Mock only the fresh-process result to exercise independent status bookkeeping without running generated code. +# Mock only the fresh-process result and GitHub HTTP responses to exercise independent status bookkeeping and single-fetch engine caching offline. +$mockCacheDir = Join-Path $work 'mock-csrun-cache' +$previousCacheEnv = $env:CSRUN_CACHE_DIR +$env:CSRUN_CACHE_DIR = $mockCacheDir +$mockEngineContent = "param([string]`$ManifestJson)`n[Console]::Write(`$ManifestJson)" +$mockEngineSha = [Convert]::ToHexString([Security.Cryptography.SHA256]::HashData([Text.Encoding]::UTF8.GetBytes($mockEngineContent))).ToLowerInvariant() +$mockVerifyState = @{ + ApiCalls = 0 + AssetCalls = 0 + StandaloneScripts = [Collections.Generic.List[string]]::new() +} +function Invoke-WebRequest { + param([string] $Uri, [hashtable] $Headers, [switch] $SkipHttpErrorCheck, [string] $OutFile) + if ($OutFile) { + $mockVerifyState.AssetCalls++ + [IO.File]::WriteAllText($OutFile, $mockEngineContent, [Text.UTF8Encoding]::new($false)) + return + } + $mockVerifyState.ApiCalls++ + $body = @{ + tag_name = 'v0.2.1' + assets = @(@{ + name = 'csrun.ps1' + digest = "sha256:$mockEngineSha" + browser_download_url = 'https://example.invalid/csrun.ps1' + }) + } | ConvertTo-Json -Depth 5 + return [pscustomobject]@{ StatusCode = 200; Headers = @{ ETag = @('"mock-etag"') }; Content = $body } +} function pwsh { $fileIndex = [Array]::IndexOf($args, '-File') if ($fileIndex -lt 0 -or [string]$args[$fileIndex + 1] -notmatch '-native-[a-f0-9]{32}\.ps1$') { throw 'The focused verification should invoke Native only.' } + $executedText = [IO.File]::ReadAllText([string]$args[$fileIndex + 1]) + if ($executedText.Contains('Assert-CsrunTestOutput')) { + $mockVerifyState.StandaloneScripts.Add($executedText) + } $global:LASTEXITCODE = 0 } try { $nativeOnly = (& $generator -RepoRoot $work -Verify Native) | ConvertFrom-Json } -finally { Remove-Item Function:\pwsh -ErrorAction SilentlyContinue } +finally { + Remove-Item Function:\pwsh -ErrorAction SilentlyContinue + Remove-Item Function:\Invoke-WebRequest -ErrorAction SilentlyContinue + $env:CSRUN_CACHE_DIR = $previousCacheEnv + if (Test-Path -LiteralPath $mockCacheDir) { Remove-Item -LiteralPath $mockCacheDir -Recurse -Force } +} +if ($mockVerifyState.ApiCalls -ne 1 -or $mockVerifyState.AssetCalls -ne 1) { + throw "Expected exactly one GitHub release lookup and one asset download across all standalone examples; got api=$($mockVerifyState.ApiCalls), asset=$($mockVerifyState.AssetCalls)." +} +if ($mockVerifyState.StandaloneScripts.Count -lt 3) { + throw "Expected at least 3 standalone verification executions; got $($mockVerifyState.StandaloneScripts.Count)." +} +foreach ($executedStandalone in $mockVerifyState.StandaloneScripts) { + if ($executedStandalone.Contains('api.github.com/repos/codebeltnet/csrun/releases/latest') -or -not $executedStandalone.Contains('csrun.ps1')) { + throw 'Standalone verification script should execute the cached local csrun.ps1 rather than querying GitHub per example.' + } +} +$publishedConsoleScript = Get-Content "$work/run-actions/$(($nativeOnly | Where-Object { $_.file -like '*console.md' }).id)/native.ps1" -Raw +if (-not $publishedConsoleScript.Contains('https://api.github.com/repos/codebeltnet/csrun/releases/latest')) { + throw 'Published run-action script must still reference GitHub.' +} $nativeOnlyEntry = $nativeOnly | Where-Object id -eq $entry.id if ($nativeOnlyEntry.native -ne 'Verified' -or $nativeOnlyEntry.docker -ne 'Unverified') { throw 'Successful Native verification must not mark the unexecuted Docker transport Verified.' @@ -240,6 +292,14 @@ $cacheRecord = Get-ChildItem -LiteralPath $cacheDirectory -Filter "*-$($entry.id Where-Object { ([IO.File]::ReadAllText($_.FullName) | ConvertFrom-Json).log -eq (Split-Path $refreshEntry.nativeEvidence -Leaf) } | Select-Object -First 1 if (-not $cacheRecord) { throw 'Verification record and log must share the private cache.' } +$consoleVerifiedEntry = $refresh | Where-Object { $_.file -like '*console.md' } +$consoleCacheRecord = Get-ChildItem -LiteralPath $cacheDirectory -Filter "*-$($consoleVerifiedEntry.id)-native-$($consoleVerifiedEntry.nativeSha256).json" | + Where-Object { ([IO.File]::ReadAllText($_.FullName) | ConvertFrom-Json).log -eq (Split-Path $consoleVerifiedEntry.nativeEvidence -Leaf) } | + Select-Object -First 1 +$consoleEvidenceMeta = if ($consoleCacheRecord) { [IO.File]::ReadAllText($consoleCacheRecord.FullName) | ConvertFrom-Json } else { $null } +if (-not $consoleEvidenceMeta -or $consoleEvidenceMeta.engineTag -cne 'v0.2.1' -or $consoleEvidenceMeta.engineSha256 -cne $mockEngineSha.ToUpperInvariant()) { + throw 'Standalone verification evidence must record the verified cached engine tag and SHA-256.' +} $originalRecord = [IO.File]::ReadAllText($cacheRecord.FullName) $outsideLog = Join-Path $work (Split-Path $refreshEntry.nativeEvidence -Leaf) [IO.File]::WriteAllText($outsideLog, 'untrusted verification log') @@ -256,6 +316,28 @@ try { if ($untrusted.native -ne 'Unverified' -or $untrusted.nativeEvidence) { throw 'Verification trusted a hard-linked log.' } } finally { [IO.File]::Delete($linkedLog) } } finally { [IO.File]::WriteAllText($cacheRecord.FullName, $originalRecord) } +# Explicit -EnginePath runs standalone verification with zero GitHub API calls. +$explicitEnginePath = Join-Path $work 'explicit-csrun.ps1' +[IO.File]::WriteAllText($explicitEnginePath, $mockEngineContent, [Text.UTF8Encoding]::new($false)) +$explicitVerifyState = @{ ApiCalls = 0 } +function Invoke-WebRequest { $explicitVerifyState.ApiCalls++; throw 'Explicit -EnginePath must not contact GitHub.' } +function pwsh { + $fileIndex = [Array]::IndexOf($args, '-File') + $executedText = [IO.File]::ReadAllText([string]$args[$fileIndex + 1]) + if ($executedText.Contains('Assert-CsrunTestOutput') -and -not $executedText.Contains($explicitEnginePath)) { + throw 'Explicit -EnginePath was not passed to standalone verification.' + } + $global:LASTEXITCODE = 0 +} +try { + $null = (& $generator -RepoRoot $work -Verify Native -EnginePath $explicitEnginePath) | ConvertFrom-Json +} +finally { + Remove-Item Function:\pwsh -ErrorAction SilentlyContinue + Remove-Item Function:\Invoke-WebRequest -ErrorAction SilentlyContinue + if (Test-Path -LiteralPath $explicitEnginePath) { Remove-Item -LiteralPath $explicitEnginePath -Force } +} +if ($explicitVerifyState.ApiCalls -ne 0) { throw 'Explicit -EnginePath contacted GitHub.' } foreach ($script in Get-ChildItem "$work/run-actions" -Filter '*.ps1' -Recurse -File) { if ($before[$script.FullName][0] -cne (Get-FileHash $script.FullName).Hash -or $before[$script.FullName][1] -ne $script.LastWriteTimeUtc.Ticks) { From 9d6fbfb19418dfeaeba3e594eed6145529573ea2 Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sat, 21 Nov 2026 15:59:11 +0100 Subject: [PATCH 04/28] =?UTF-8?q?=F0=9F=93=9D=20document=20cached=20csrun?= =?UTF-8?q?=20verification=20in=20readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update the dotnet-csrun summary row in README.md to describe the local cached engine resolution used during skill verification sweeps. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ad23ecb..f23d4f01 100644 --- a/README.md +++ b/README.md @@ -161,7 +161,7 @@ When repo-managed skills author Markdown, each prose paragraph and list item sta | [dotnet-nuget-update](skills/dotnet-nuget-update/SKILL.md) | Audits and updates NuGet dependencies in .NET repositories with complete declaration accounting before any edit. It supports both `Directory.Packages.props` and project-level `PackageReference` versions, preserves XML structure and line endings, deduplicates package IDs, resolves independent live or offline flat-container version feeds with bounded parallel lookups and per-process memoization, uses bounded network timeouts, and merges results deterministically. Its single-process update runner keeps the audit, in-memory safe-update plan, and structural apply together for fast yolo passes. It keeps stable pins on stable candidates unless prerelease intent is explicit, and applies the TFM-band rule so conditional `net9`/`net10` package declarations stay within their matching major when that major is the compatibility signal rather than jumping to the newest overall release. Normal mode auto-applies revision/patch/minor and same-major prerelease updates, then batches majors for one approval decision; yolo mode applies only the auto classes and reports held majors without asking. | | [dotnet-docfx-digest](skills/dotnet-docfx-digest/SKILL.md) | Create and maintain developer-friendly DocFX documentation for .NET public APIs, including repo-wide no-input audits that inspect source, tests, DocFX config, DocFX `build.content` and `build.overwrite` Markdown inputs, namespace pages, and availability includes before asking for clarification, while treating bare direct skill invocations as autonomous repo-wide runs rather than human-driven checkpoint sessions. Enforces the workflow with two bundled .NET 10 file-based scripts resolved from the loaded skill directory, falling back to the repo-managed source path only when present: `scripts/agents.cs` writes an idempotent, marker-bounded DocFX maintenance block into the repository `AGENTS.md`; `scripts/docfx.cs` is **fast and build-free by default** — it validates Markdown, prose, DocFX overwrite layout, namespace overview pages, `Extension Members` tables, decorated receiver signatures such as `IDecorator`, generic method displays such as `As`, purpose-first summaries, and required per-type/extension examples without invoking `dotnet`, `msbuild`, `docfx`, or `gh`, discovering the public API from existing DocFX YAML metadata or a conservative source scan and ending every run with a `[processes] dotnet=0 msbuild=0 docfx=0 gh=0` summary plus per-phase timings. Compilation and network access are strictly opt-in: `--validate-samples` compiles each C# sample in an isolated project while batching all sample projects into one temporary `.slnx` graph build with bounded MSBuild parallelism and scoped references, `--build-api-model` (alias `--strict-api-discovery`) does reflection-backed discovery from compiled metadata via `MetadataLoadContext` through a single scoped `.slnx` graph build, `--verify-docfx-build` runs the DocFX CLI in a temp copy, and `--search-examples` runs `gh` code search. Final verification adapts to available processors and memory, overlaps isolated DocFX work on high-capacity machines, uses a 30-minute child timeout, and emits 10-second `stderr` heartbeats with active phase, workload, runner count, PID, elapsed time, last-output age, and current child output while preserving machine-readable JSON on `stdout`. Honors a single DocFX metadata `TargetFramework` when `--framework` is omitted, collapses C# 14 extension-block compiler containers such as `$...` back to the authored outer static class in both fast DocFX-YAML discovery and build-backed reflection discovery, validates namespace fly-ins that explain the problem solved/when to use/where to start plus example fly-ins before every C# fence, the Codebelt namespace-and-type-folder overwrite layout (`.docfx/api/namespaces/**/*.md` and `.docfx/api/types/**/*.md` under `build.overwrite` only), keeps `--changed-only` validation scoped to affected docs and APIs while still including brand-new untracked overwrite Markdown, uses the root Codebelt `.snk` when present and falls back to `-p:SkipSignAssembly=true` for keyless strong-name build verification, drains child stdout and stderr concurrently to avoid verbose-build deadlocks, writes deterministic `--assessment-queue` Markdown work queues for noisy audits, preserves working URL references unless a verified HTTP 404 justifies removal, treats unexpected new repo-root or DocFX-workspace files that are not known `dotnet-docfx-digest` deliverables as blocking cleanup diagnostics, keeps assessment/manifests/captured output/helper scripts in temp or session storage instead of the target repository, requires a namespace-first pass across the active queue before net-new type/example authoring during full audits, keeps deeper `EXTENSION_METHOD_MISSING` and `EXTENSION_METHOD_SIGNATURE_MISSING` follow-on diagnostics in that same namespace-layer table-repair phase when they appear after `EXTENSION_SECTION_MISSING` drops, preserves existing BOM and line-ending state while flagging actual mojibake instead of creating encoding-only diffs, and leaves generated DocFX YAML metadata untouched unless `--clean-generated-metadata` is explicitly requested (which runs only after the API model is built, never deleting metadata the run relied on). Documents public API only, uses bundled reference docs for overwrite rules, workflow details, and script behavior, keeps authored API overwrite Markdown under `.docfx/api/namespaces/` and `.docfx/api/types/`, moves legacy authored `.docfx/api/*.md` overwrite files there instead of widening the glob to `api/**/*.md`, teaches namespace and API prose to orient newcomers around purpose instead of inventorying contents, prefers inline or small sibling-batch prose repairs over slow per-page worker fan-out, makes examples start from package-ID usage evidence before type/member-only searches and requires each example to introduce the consumer task before the code, allows multi-type Microsoft Learn-style scenario samples when they better explain the consumer workflow, keeps extension-method examples on readable declaring-class type pages under `.docfx/api/types/` instead of synthetic method-UID filenames or namespace pages that mix extra `uid:` / `example:` blocks into the overview, flags weak skip-compile reasons, requires deterministic `.docfx/skip-compile-allowlist.json` entries for any pre-existing approved skip waivers, treats newly introduced or unallowlisted skip markers as fail-level diagnostics that do not suppress compilation, establishes reflection-backed packets with `--build-api-model --project-manifest` before full-run authoring, forces mid-audit continuations to name that manifest or the sequential assessment/namespace-first fallback explicitly, requires those continuations to restate the fast `docfx.cs --json` rerun cadence, the exact final `docfx.cs --build-api-model --validate-samples --verify-docfx-build --json` gate, and the clean JSON completion contract instead of generic “verify later” prose, treats batch size only as rerun cadence rather than permission to stop, runs a completion repair loop that treats every diagnostic as active work regardless of age or volume, treats newly surfaced follow-on diagnostics as the next repair queue instead of a stop point, reruns packet discovery with `--build-api-model --project-manifest` when fast source-scan packets are unnamed or zero-project, falls back to sequential namespace-first or assessment work queue order when packet discovery is still unusable, treats `EXAMPLE_MISSING`, `EXAMPLE_LEAD_MISSING`, `EXAMPLE_ADVANCED_LEAD_MISSING`, `FAMILY_ANCHOR_EXAMPLE_MISSING`, `SAMPLE_STRUCTURE_INVALID`, `FAIL_NEW_SKIP_MARKER_INTRODUCED`, `SAMPLE_SKIP_NOT_ALLOWLISTED`, and `INTERIM_ARTIFACT_IN_WORKTREE` queues as core work rather than checkpoints or quality backlog, drives large example and lead queues through a concrete fast-path micro-loop (next item or next 3-5 items → rerun → continue), suppresses progress-table/checkpoint output until the completion contract is clean or a real external blocker is reported, treats premature completion-shaped handoffs as execution-protocol failures while the queue is still dirty, reserves the final `--build-api-model --validate-samples --verify-docfx-build` verification for the real end of the queue, exposes `summary.fullVerificationRan`, `summary.canClaimCompletion`, `summary.remainingWorkItems`, `summary.remainingDiagnosticsByCode`, `summary.newlyIntroducedSkipMarkers`, and `summary.interimArtifacts` as machine-readable final gates, reruns the fast `docfx.cs --json` after edits until the queue is empty, then runs the build-backed verification before completion, preserves manual edits and authored Markdown during cleanup, skips recursive generated-output cleanup when a target directory contains documentation or source files, and returns deterministic exit codes plus `--json` reports (including process counts, phase timings, warning counts, and skip-marker accounting) so CI can gate on real failures instead of AI claims. | | [dotnet-test](skills/dotnet-test/SKILL.md) | Moves xUnit projects onto Codebelt's entrypoint-owned test hosts, replacing Microsoft's ASP.NET-only `WebApplicationFactory`—and the hand-rolled `HostBuilder` that console and worker tests reach for because Microsoft ships no equivalent—with one family of abstractions where the application's own entry point owns startup. Invocation is the request: it inspects and refactors immediately instead of opening with a menu or a questionnaire. It deterministically inspects project roles, target frameworks, xUnit generation, package ownership, inheritance, application entry points—including Bootstrapper `MinimalConsoleProgram`, `MinimalWorkerProgram`, and `MinimalWebProgram` hosts—and every selected `WebApplicationFactory` usage; classifies ordinary unit, ASP.NET Core functional, and console/worker functional tests; modernizes xUnit v2 projects to xUnit v3 plus Microsoft Testing Platform without moving package ownership or changing frameworks; and resolves current stable compatible packages through NuGet-backed isolated compatibility-project restores, including the selected combined package set. Focused web tests use `WebApplicationTestFactory` with an explicit entrypoint-owned `ManagedWebApplicationFixture`, directly or through a narrow `Test`-derived harness; shared web fixtures use `WebApplicationTest` with `ManagedWebApplicationFixture`; focused console/worker tests use `ApplicationTestFactory` with `ManagedApplicationFixture`; and shared non-web fixtures use `ApplicationTest` with `ManagedApplicationFixture`. Deprecated blocking fixtures are migration inputs only and are never emitted because they are scheduled for removal. Functional migrations fail closed unless the chosen Codebelt pattern and managed fixture are present, the legacy or blocking fixture is absent, and test code does not reconstruct the production composition root with its own `WebApplication`, `TestServer`, or `HostBuilder`. Migrations preserve entrypoint-owned startup, host configuration, lazy start, clients, services, configuration, sync/async disposal, isolation, and existing test names, while fresh bootstraps add source-grounded behavior tests. Non-web tests stay in-process and require a resolvable Generic Host; test-only scope reports the exact production adaptation instead of silently rewriting startup or launching a process. | -| [dotnet-csrun](skills/dotnet-csrun/SKILL.md) | Creates, verifies, repairs, and audits C# examples and genuine xUnit v3 tests, with paired Native and Docker commands from one manifest, exact package pins, and source-linked execution evidence. Both commands verify and run the latest stable csrun release. | +| [dotnet-csrun](skills/dotnet-csrun/SKILL.md) | Creates, verifies, repairs, and audits C# examples and genuine xUnit v3 tests, with paired Native and Docker commands from one manifest, exact package pins, and source-linked execution evidence. Published commands verify and run the latest stable csrun release from GitHub, while skill-driven verification and multi-example sweeps resolve and cache the SHA-256-verified `csrun.ps1` locally once (`Resolve-CsrunEngine` + `-EnginePath`) with ETag revalidation and rate-limit fallback to avoid exhausting GitHub's unauthenticated REST quota. | | [dotnet-benchmark](skills/dotnet-benchmark/SKILL.md) | Discovers, prioritizes, and authors trustworthy BenchmarkDotNet experiments for a .NET type following codebelt conventions and using the `Codebelt.Extensions.BenchmarkDotNet.Console` runner. It inspects implementation code, call sites, tests, existing benchmarks, and available profiles instead of benchmarking every public member; ranks likely high-impact operations; selects representative typical, boundary, scaling, and adverse cases; and rejects external-I/O or service-level questions that need profiling, macrobenchmarks, or load tests. It creates fair current-versus-candidate comparisons only when observable work is equivalent, uses baseline-free single-operation characterization when no honest comparator exists, prevents unrelated construction/formatting/equality/hash ratios, requires exact per-case correctness oracles plus a semantic preflight for truthful workload labels, hard-gates interpretation on a complete valid BenchmarkDotNet summary, preserves workload invariants such as selectivity and hit/miss ratios as sizes scale, distinguishes deferred pipeline creation from terminal/materialization work, and performs Release build, discovery listing, and dry execution before any explicit full run. Explicit `yolo` mode auto-accepts routine repo-derived defaults and the proposed plan, then proceeds through build/list/dry validation without confirmation churn; only a separate explicit human instruction can start a full performance run. Its runner preflight recognizes the standard Slim/runtime setup and explains when `SkipBenchmarksWithReports = true` plus a matching `reports/tuning/` artifact deliberately filters a benchmark, preventing needless class renames, disassembly, or tool thrash; after the first valid full result it stops unless deeper diagnostics could change a real engineering decision. Harness setup remains adaptive: it detects `.slnx`/`.sln`, CPM, existing `tuning/` projects, and a reusable `tooling/` runner, onboards only missing pieces, resolves package versions dynamically, and keeps the benchmark class in the SUT namespace. | | [dotnet-remote-testing](skills/dotnet-remote-testing/SKILL.md) | Run .NET tests inside a resolved remote Docker environment and return concise, structured results — Visual Studio's Remote Testing experience (choose an environment → run tests → see results) with the container plumbing hidden behind a deterministic runner (`scripts/remote-test.cs`) the skill orchestrates instead of composing ad-hoc `docker run` commands. Invoking it is the request: with one applicable Docker environment it runs immediately — no capability menu, no parameter questionnaire, no confirmation — and when several channels are derived, the repository's own highest target framework selects the matching one and the choice is reported. The runner decides when a question is unavoidable, exiting `SelectionRequired` (16) with the exact candidates, and every exit code maps to exactly one next action so behavior is identical across models. It honors Microsoft's existing `testenvironments.json` version-1 contract (`name`, `localRoot`, `dockerImage`, `dockerFile`, with the either/or Docker-source rule), treats that file as authoritative when present, and reports WSL/SSH/unknown types as unsupported rather than converting or silently ignoring them. When no `testenvironments.json` exists it provides a zero-configuration experience built exclusively on official `mcr.microsoft.com/dotnet/sdk` images, discovering the currently supported LTS and STS channels plus the current preview from Microsoft's live `releases-index.json` using `support-phase`/`release-type` (never hardcoded version numbers or even/odd assumptions) and caching that metadata outside the repository for offline reuse. It prefers an exact `latest-sdk` image tag (stripping preview build metadata), validates the tag against Microsoft's registry, and pins each execution to the resolved immutable digest so results are reproducible across environment, image, digest, SDK, and architecture. Execution stages the source into an isolated workspace so container builds never leave Linux `bin`/`obj` in the working tree, mounts a persistent NuGet cache outside the repo, runs restore → build → test with structured TRX collection, classifies failures into distinct kinds (configuration, unsupported environment, Docker unavailable, image resolution, SDK incompatibility, staging, restore, compilation, test-host, test failure, result-processing, cleanup, cancellation, release-metadata) so infrastructure problems are never reported as failing unit tests, and always cleans up transient Docker resources. It never generates a `Dockerfile`, dev container, compose file, or editor configuration (an existing configured `dockerFile` is honored, never created), never runs privileged containers or mounts the Docker socket, and never silently falls back to running tests on the host. Docker is the only transport for now, designed so WSL/SSH can be added later without disturbing the deterministic Docker path, which is covered by a comprehensive built-in `--self-test` plus a PowerShell harness. | | [dotnet-segregated-assets](skills/dotnet-segregated-assets/SKILL.md) | Migrate or configure ASP.NET Core static delivery with `codebeltnet/web-cdn-origin:2.0.0` while keeping `wwwroot` as the authoring root. The deterministic runner inspects and verifies topology, publish exclusion, Static Web Assets risks, Cuemon signals, competing `AppAssetOptions`-style abstractions, actual `app-*`/`cdn-*` markup, and scheme-safe local origins; the agent performs semantic edits. For an existing Cuemon package reference, its plan resolves the highest stable version from NuGet.org at execution time, preserves Central Package Management versus inline ownership, excludes prereleases, and fails rather than copying an old fixture or example version. It reuses Cuemon `AppTagHelperOptions`/`CdnTagHelperOptions`, `BaseUrlMode`, and the public `app-link`, `app-script`, `app-img`, `cdn-link`, `cdn-script`, and `cdn-img` helpers when already available, otherwise reuses a suitable project abstraction without adding Cuemon. It keeps App and shared CDN ownership separate, preserves ordinary Project-based Development, adds opt-in segregated Development through a root Docker Compose profile, and makes `compose.assets.yml` directly build artifact-first `LocalDevelopment.Dockerfile` and `Assets.Dockerfile` images. Every generated file comes from a literal template in `assets/` and lands in one fixed location — the three Dockerfiles beside the web `.csproj`, orchestration at the repository root — and `verify --check-local` proves that placement along with the artifact-first contract: no SDK stage or `dotnet publish` inside an application image, a `.dockerignore` that still carries `artifacts/`, `LocalPublishDirectory` behind a guarded post-build target, Compose host ports derived from the ordinary Project profile, and a CI job that produces the artifact those images copy. Production CI publishes the same application artifact for the shell-less runtime `Dockerfile`. The skill excludes app-owned `wwwroot` with targeted MSBuild metadata, preserves `_content`/`_framework` and generated Static Web Assets, and proves publish/local invariants deterministically and idempotently. | From b1714712285c534e631482c2ebbee200c9d9c13a Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sat, 21 Nov 2026 18:05:36 +0100 Subject: [PATCH 05/28] =?UTF-8?q?=F0=9F=94=A8=20add=20deterministic=20run-?= =?UTF-8?q?action=20planning=20and=20validation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add Roslyn-backed run-action classification, dependency resolution, recipe health checks, temp-workspace candidate validation, host-mode support, and atomic manifest writes. --- .../assets/BuildRunActions.ps1 | 177 ++ skills/dotnet-docfx-digest/scripts/docfx.cs | 1268 +++++++++++- .../scripts/generate-run-actions.ps1 | 1801 +++++++++++++++-- .../scripts/integration-example.ps1 | 164 ++ 4 files changed, 3253 insertions(+), 157 deletions(-) diff --git a/skills/dotnet-docfx-digest/assets/BuildRunActions.ps1 b/skills/dotnet-docfx-digest/assets/BuildRunActions.ps1 index 7a2680bd..daf88790 100644 --- a/skills/dotnet-docfx-digest/assets/BuildRunActions.ps1 +++ b/skills/dotnet-docfx-digest/assets/BuildRunActions.ps1 @@ -229,6 +229,167 @@ $dockerUser = @() } } +function New-HostPair { + param( + [Parameter(Mandatory)][string] $Source, + [string] $Framework = 'net10.0', + [string] $Sdk = 'Microsoft.NET.Sdk.Web', + [string[]] $DependsOn = @(), + [string] $ProbePath = '/', + [string] $ProbeMethod = 'GET', + [int] $TimeoutSeconds = 15, + [int] $ExpectedStatusCode = 0, + [string] $ExpectedBodyContains = '', + [int] $StartupDelayMs = 1000, + [string] $Image = 'codebeltnet/csrun:10' + ) + if ($Framework -notmatch '^net\d+\.\d+$') { throw "Invalid host framework: $Framework" } + if ($Sdk -notmatch '^[A-Za-z0-9_.]+$') { throw "Invalid host SDK: $Sdk" } + if ($ProbeMethod -notmatch '^(GET|HEAD|POST|PUT|DELETE|OPTIONS|PATCH)$') { throw "Invalid host probeMethod: $ProbeMethod" } + if ($TimeoutSeconds -lt 3 -or $TimeoutSeconds -gt 300) { throw "Host timeoutSeconds must be between 3 and 300." } + $cleanDependsOn = @($DependsOn | Where-Object { -not [string]::IsNullOrWhiteSpace([string]$_) }) + foreach ($pin in $cleanDependsOn) { + if ($pin -notmatch '^[A-Za-z0-9_.-]+@[A-Za-z0-9_.-]+$') { throw "Invalid host dependsOn pin: $pin" } + } + $pkgLines = @($cleanDependsOn | ForEach-Object { + $parts = $_ -split '@', 2 + " " + }) + $itemGroup = if ($pkgLines.Count) { "`n `n" + ($pkgLines -join "`n") + "`n " } else { '' } + $csproj = "`n `n Exe`n $Framework`n enable`n enable`n $itemGroup`n`n" + $payloadJson = ([ordered]@{ + csproj = $csproj + source = $Source.Replace("`r`n", "`n").TrimEnd("`r", "`n") + "`n" + probePath = $ProbePath + probeMethod = $ProbeMethod + timeoutSeconds = $TimeoutSeconds + expectedStatusCode = $ExpectedStatusCode + expectedBodyContains = $ExpectedBodyContains + startupDelayMs = $StartupDelayMs + } | ConvertTo-Json -Depth 10).Replace("`r`n", "`n") + $payloadB64 = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($payloadJson)) + $runnerBody = @' +$payload = [Text.Encoding]::UTF8.GetString([Convert]::FromBase64String($payloadB64)) | ConvertFrom-Json +$work = Join-Path ([IO.Path]::GetTempPath()) ('dx-host-' + [guid]::NewGuid().ToString('N').Substring(0, 8)) +$null = New-Item -ItemType Directory -Path $work +$hostProcess = $null +try { + $utf8NoBom = [Text.UTF8Encoding]::new($false) + [IO.File]::WriteAllText((Join-Path $work 'HostSample.csproj'), $payload.csproj, $utf8NoBom) + [IO.File]::WriteAllText((Join-Path $work 'Program.cs'), $payload.source, $utf8NoBom) + $buildLog = Join-Path $work 'build.log' + & dotnet build (Join-Path $work 'HostSample.csproj') -c Release --nologo -v quiet *> $buildLog + if ($LASTEXITCODE -ne 0) { + $buildText = Get-Content -LiteralPath $buildLog -Raw -ErrorAction SilentlyContinue + throw "Host sample build failed (exit $LASTEXITCODE): $buildText" + } + $listener = [Net.Sockets.TcpListener]::new([Net.IPAddress]::Loopback, 0) + $listener.Start() + $port = $listener.LocalEndpoint.Port + $listener.Stop() + $baseUrl = "http://127.0.0.1:$port" + $startInfo = [Diagnostics.ProcessStartInfo]::new('dotnet') + foreach ($a in @('run','--no-build','-c','Release','--project',(Join-Path $work 'HostSample.csproj'))) { $startInfo.ArgumentList.Add($a) } + $startInfo.Environment['ASPNETCORE_URLS'] = $baseUrl + $startInfo.Environment['DOTNET_ENVIRONMENT'] = 'Development' + $startInfo.RedirectStandardOutput = $true + $startInfo.RedirectStandardError = $true + $startInfo.UseShellExecute = $false + $hostProcess = [Diagnostics.Process]::new() + $hostProcess.StartInfo = $startInfo + if (-not $hostProcess.Start()) { throw 'Could not start host process.' } + $stdoutTask = $hostProcess.StandardOutput.ReadToEndAsync() + $stderrTask = $hostProcess.StandardError.ReadToEndAsync() + $deadline = [DateTimeOffset]::UtcNow.AddSeconds([int]$payload.timeoutSeconds) + if ($payload.probePath) { + $probeUrl = $baseUrl + $payload.probePath + $probed = $false + $lastError = '' + $httpClient = [Net.Http.HttpClient]::new() + $httpClient.Timeout = [TimeSpan]::FromSeconds(3) + try { + while ([DateTimeOffset]::UtcNow -lt $deadline) { + if ($hostProcess.HasExited) { + $stdOut = $stdoutTask.GetAwaiter().GetResult() + $errOut = $stderrTask.GetAwaiter().GetResult() + throw "Host exited before probe succeeded (exit $($hostProcess.ExitCode)). $stdOut $errOut" + } + try { + $req = [Net.Http.HttpRequestMessage]::new([Net.Http.HttpMethod]::new([string]$payload.probeMethod), $probeUrl) + $resp = $httpClient.Send($req) + $statusCode = [int]$resp.StatusCode + $body = $resp.Content.ReadAsStringAsync().GetAwaiter().GetResult() + if ([int]$payload.expectedStatusCode -gt 0 -and $statusCode -ne [int]$payload.expectedStatusCode) { + throw "Expected HTTP $($payload.expectedStatusCode) from $($payload.probePath), got HTTP $statusCode. Body: $body" + } + if ($payload.expectedBodyContains -and -not $body.Contains([string]$payload.expectedBodyContains, [StringComparison]::Ordinal)) { + throw "Expected response body to contain '$($payload.expectedBodyContains)'. Body: $body" + } + Write-Output "HTTP $statusCode $($payload.probeMethod) $($payload.probePath)" + if ($body) { Write-Output $body } + $probed = $true + break + } catch [Net.Http.HttpRequestException] { + $lastError = $_.Exception.Message + Start-Sleep -Milliseconds 200 + } catch [Threading.Tasks.TaskCanceledException] { + $lastError = $_.Exception.Message + Start-Sleep -Milliseconds 200 + } + } + } finally { + $httpClient.Dispose() + } + if (-not $probed) { throw "Host probe '$($payload.probeMethod) $($payload.probePath)' timed out after $($payload.timeoutSeconds)s. Last error: $lastError" } + } else { + Start-Sleep -Milliseconds ([int]$payload.startupDelayMs) + if ($hostProcess.HasExited -and $hostProcess.ExitCode -ne 0) { + $stdOut = $stdoutTask.GetAwaiter().GetResult() + $errOut = $stderrTask.GetAwaiter().GetResult() + throw "Host exited with code $($hostProcess.ExitCode). $stdOut $errOut" + } + Write-Output "Host started cleanly and ran for $($payload.startupDelayMs)ms." + } +} finally { + if ($hostProcess) { + try { + if (-not $hostProcess.HasExited) { $hostProcess.Kill($true) } + $null = $hostProcess.WaitForExit(5000) + } catch {} + $hostProcess.Dispose() + } + $resolved = [IO.Path]::GetFullPath($work) + $temp = [IO.Path]::GetFullPath([IO.Path]::GetTempPath()).TrimEnd('/','\') + [IO.Path]::DirectorySeparatorChar + if ($resolved.StartsWith($temp, [StringComparison]::OrdinalIgnoreCase) -and (Test-Path -LiteralPath $resolved)) { + Remove-Item -LiteralPath $resolved -Recurse -Force -ErrorAction SilentlyContinue + } +} +'@ + $runnerNorm = $runnerBody.Replace("`r`n", "`n").TrimEnd() + $native = "& {`n#requires -Version 7.0`n`$ErrorActionPreference = 'Stop'`n`$PSNativeCommandUseErrorActionPreference = `$false`n`$OutputEncoding = [Text.UTF8Encoding]::new(`$false)`n[Console]::OutputEncoding = `$OutputEncoding`n`$null = Get-Command dotnet -ErrorAction Stop`n`$payloadB64 = '$payloadB64'`n" + $runnerNorm + "`n}`n" + $runnerB64 = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes("`$ErrorActionPreference = 'Stop'`n`$PSNativeCommandUseErrorActionPreference = `$false`n`$payloadB64 = '$payloadB64'`n" + $runnerNorm + "`n")) + $quotedImage = Quote-Literal $Image + $docker = @" +& { +#requires -Version 7.0 + `$ErrorActionPreference = 'Stop' + `$PSNativeCommandUseErrorActionPreference = `$false + `$OutputEncoding = [Text.UTF8Encoding]::new(`$false) + [Console]::OutputEncoding = `$OutputEncoding + `$null = Get-Command docker -ErrorAction Stop + docker info *> `$null + if (`$LASTEXITCODE -ne 0) { throw 'Docker daemon unavailable.' } + `$runnerB64 = '$runnerB64' + `$command = '`$ErrorActionPreference = "Stop"; `$s = [Text.Encoding]::UTF8.GetString([Convert]::FromBase64String([Console]::In.ReadToEnd())); `$p = Join-Path ([IO.Path]::GetTempPath()) ("dx-host-runner-" + [guid]::NewGuid().ToString("N") + ".ps1"); [IO.File]::WriteAllText(`$p, `$s); try { & pwsh -NoProfile -NonInteractive -File `$p; exit `$LASTEXITCODE } finally { Remove-Item -LiteralPath `$p -Force -ErrorAction SilentlyContinue }' + `$output = (@(`$runnerB64 | & docker run --rm -i --init --entrypoint pwsh $quotedImage -NoProfile -NonInteractive -Command `$command) -join [Environment]::NewLine) + `$code = `$LASTEXITCODE + Write-Output `$output + if (`$code -ne 0) { throw "Host execution failed in Docker with exit code `$code." } +} +"@ + "`n" + return @{ native = $native; docker = $docker } +} + $doc = Get-Content -LiteralPath $ManifestPath -Raw | ConvertFrom-Json -AsHashtable if ($doc.schemaVersion -ne 1) { throw "Unsupported run-actions manifest schemaVersion: $($doc.schemaVersion)" } $examples = @($doc.examples) @@ -243,6 +404,22 @@ foreach ($example in $examples) { New-RepositoryPair -Repository $example.repository -Commit $example.commit -Project $example.project -Test $example.test -Framework $example.framework -Image $example.image } elseif ($example.strategy -ceq 'standalone') { New-StandalonePair -Manifest $example.manifest -Image $example.image + } elseif ($example.strategy -ceq 'host') { + $hh = if ($example.ContainsKey('hostHarness') -and $example.hostHarness) { $example.hostHarness } else { @{} } + $hostParams = @{ + Source = [string]$example.source + Framework = if ($hh.ContainsKey('framework') -and $hh.framework) { [string]$hh.framework } elseif ($example.ContainsKey('framework') -and $example.framework) { [string]$example.framework } else { 'net10.0' } + Sdk = if ($hh.ContainsKey('sdk') -and $hh.sdk) { [string]$hh.sdk } else { 'Microsoft.NET.Sdk.Web' } + DependsOn = if ($hh.ContainsKey('dependsOn') -and $hh.dependsOn) { [string[]]@($hh.dependsOn) } else { @() } + ProbePath = if ($hh.ContainsKey('probePath')) { [string]$hh.probePath } else { '/' } + ProbeMethod = if ($hh.ContainsKey('probeMethod') -and $hh.probeMethod) { [string]$hh.probeMethod } else { 'GET' } + TimeoutSeconds = if ($hh.ContainsKey('timeoutSeconds') -and $hh.timeoutSeconds) { [int]$hh.timeoutSeconds } else { 15 } + ExpectedStatusCode = if ($hh.ContainsKey('expectedStatusCode') -and $hh.expectedStatusCode) { [int]$hh.expectedStatusCode } else { 0 } + ExpectedBodyContains = if ($hh.ContainsKey('expectedBodyContains') -and $hh.expectedBodyContains) { [string]$hh.expectedBodyContains } else { '' } + StartupDelayMs = if ($hh.ContainsKey('startupDelayMs') -and $hh.startupDelayMs) { [int]$hh.startupDelayMs } else { 1000 } + Image = if ($example.ContainsKey('image') -and $example.image) { [string]$example.image } else { 'codebeltnet/csrun:10' } + } + New-HostPair @hostParams } else { throw "Unsupported run-action strategy '$($example.strategy)' for $id" } diff --git a/skills/dotnet-docfx-digest/scripts/docfx.cs b/skills/dotnet-docfx-digest/scripts/docfx.cs index f48804bf..94394a00 100644 --- a/skills/dotnet-docfx-digest/scripts/docfx.cs +++ b/skills/dotnet-docfx-digest/scripts/docfx.cs @@ -114,21 +114,47 @@ public static int Run(string[] args) MarkdownTextByPath = new(StringComparer.OrdinalIgnoreCase), OverwriteSections = [], SkipAllowlistEntries = [] }; EnsureNamespaceProjectMap(workspace); - var platformReferences = ((string)AppContext.GetData("TRUSTED_PLATFORM_ASSEMBLIES")!).Split(Path.PathSeparator) + var platformAssemblyPaths = ((string)AppContext.GetData("TRUSTED_PLATFORM_ASSEMBLIES")!).Split(Path.PathSeparator) .Where(p => Path.GetFileName(p).StartsWith("System.", StringComparison.Ordinal) || Path.GetFileName(p) is "netstandard.dll" or "mscorlib.dll") + .ToArray(); + var platformReferences = platformAssemblyPaths .Select(p => MetadataReference.CreateFromFile(p)).ToArray(); + var dependencyIndex = BuildRunActionDependencyIndex(root, projects, platformAssemblyPaths); var associatedPages = files.Where(file => workspace.ReadMarkdown(file).Contains("", StringComparison.Ordinal)); var examples = files.SelectMany(file => { var sections = ExtractOverwriteSections(file); - return ExtractFences(file).Select(sample => + var rawLines = workspace.ReadMarkdown(file).Replace("\r\n", "\n").Replace("\r", "\n").Split('\n'); + var fences = ExtractFences(file); + var resolvedOwners = fences.Select(sample => (Sample: sample, Owner: ResolveSampleOwner(sections, sample))).ToList(); + var totalByUid = resolvedOwners + .GroupBy(x => x.Owner.Uid ?? Rel(root, x.Sample.File), StringComparer.Ordinal) + .ToDictionary(g => g.Key, g => g.Count(), StringComparer.Ordinal); + var seenByUid = new Dictionary(StringComparer.Ordinal); + return resolvedOwners.Select(item => { - var owner = ResolveSampleOwner(sections, sample); + var sample = item.Sample; + var owner = item.Owner; + var uidKey = owner.Uid ?? Rel(root, sample.File); + seenByUid.TryGetValue(uidKey, out var ordinal); + ordinal++; + seenByUid[uidKey] = ordinal; + var fenceCountOnUid = totalByUid[uidKey]; + var exampleId = $"{uidKey}#{ordinal}"; + var endLine = sample.StartLine; + while (endLine < rawLines.Length && !rawLines[endLine].TrimStart().StartsWith("```", StringComparison.Ordinal)) + { + endLine++; + } + var closingLine = Math.Min(endLine + 1, rawLines.Length); var error = ResolveSampleContext(sample, root, out var context); var code = context is null ? sample.Code : string.Join("\n", sample.Code.Split('\n').Skip(2)); var tree = CSharpSyntaxTree.ParseText(code); var syntax = tree.GetCompilationUnitRoot(); - var sourceHash = Convert.ToHexString(System.Security.Cryptography.SHA256.HashData(Encoding.UTF8.GetBytes(code.Replace("\r\n", "\n").TrimEnd('\r', '\n')))); + var normalizedCode = code.Replace("\r\n", "\n").TrimEnd('\r', '\n'); + var sourceHash = Convert.ToHexString(System.Security.Cryptography.SHA256.HashData(Encoding.UTF8.GetBytes(normalizedCode))); + var wsCanonical = CanonicalizeWhitespaceForDiff(normalizedCode); + var whitespaceHash = Convert.ToHexString(System.Security.Cryptography.SHA256.HashData(Encoding.UTF8.GetBytes(wsCanonical))); var ns = LongestNamespacePrefix(owner.Uid ?? Path.GetFileNameWithoutExtension(file), workspace); var standalone = !tree.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error) && (syntax.Members.OfType().Any() || syntax.DescendantNodes().OfType().Any(m => m.Identifier.ValueText == "Main")); @@ -139,19 +165,50 @@ public static int Run(string[] args) var eligible = compilation.GetDiagnostics().Where(d => d.Severity == DiagnosticSeverity.Error).All(d => isTest && d.Location.IsInSource && d.Id is "CS0246" or "CS0103" && tree.GetText().ToString(d.Location.SourceSpan) is "Xunit" or "Fact" or "Theory" or "Assert"); - return new { sample.File, sample.StartLine, sample.Code, owner.Uid, - Source = context?.Source, Project = context?.Project, ContextError = error, Standalone = standalone, - Eligible = eligible, IsTest = isTest, SourceSha256 = sourceHash, + var classification = ClassifyRunActionExample(syntax, tree, normalizedCode, isTest, eligible, dependencyIndex); + var dependencies = ResolveRunActionDependencies(syntax, dependencyIndex, owner.Uid, isTest, classification.SuggestedMode == "host"); + return new + { + sample.File, + sample.StartLine, + EndLine = closingLine, + FileFenceOrdinal = sample.FenceIndex, + FenceOrdinal = ordinal, + FenceCountOnUid = fenceCountOnUid, + ExampleId = exampleId, + sample.Code, + owner.Uid, + Source = context?.Source, + Project = context?.Project, + ContextError = error, + Standalone = standalone, + Eligible = eligible, + IsTest = isTest, + SourceSha256 = sourceHash, + WhitespaceSha256 = whitespaceHash, OwnerProjects = ns is null ? [] : workspace.NamespaceProjects[ns].Select(p => Rel(root, p.Path)).ToArray(), - Imports = syntax.DescendantNodes().OfType().Select(u => u.Name?.ToString()).ToArray() }; + Imports = syntax.DescendantNodes().OfType().Select(u => u.Name?.ToString()).Where(s => !string.IsNullOrEmpty(s)).ToArray(), + Classification = classification, + Dependencies = dependencies + }; }); }).ToArray(); - var projectEvidence = projects.Select(p => new + var projectEvidence = projects.Select(p => { - Path = Rel(root, p.Path), p.PackageId, p.AssemblyName, p.TargetFrameworks, - MetadataFrameworks = groups.Where(g => g.ProjectPaths.Any(path => PathsEqual(path, p.Path))) - .Select(g => g.Properties.GetValueOrDefault("TargetFramework")).Where(f => f is not null).Distinct(), - BuildInputs = RunActionProjectInputs(root, p.Path) + dependencyIndex.ProjectsByPath.TryGetValue(Path.GetFullPath(p.Path), out var meta); + return new + { + Path = Rel(root, p.Path), + p.PackageId, + p.AssemblyName, + p.TargetFrameworks, + IsPackable = meta?.IsPackable ?? !p.IsTest, + Version = meta?.Version, + Sdk = meta?.Sdk ?? "Microsoft.NET.Sdk", + MetadataFrameworks = groups.Where(g => g.ProjectPaths.Any(path => PathsEqual(path, p.Path))) + .Select(g => g.Properties.GetValueOrDefault("TargetFramework")).Where(f => f is not null).Distinct(), + BuildInputs = RunActionProjectInputs(root, p.Path) + }; }); Console.WriteLine(JsonSerializer.Serialize(new { config, examples, associatedPages, projects = projectEvidence, warnings = report.Warnings }, JsonOptions)); return 0; @@ -198,6 +255,1191 @@ private static IEnumerable RunActionProjectInputs(string root, string pr } } + private sealed class RunActionProjectMeta + { + public required string FullPath { get; init; } + public required string RelPath { get; init; } + public required string AssemblyName { get; init; } + public required string PackageId { get; init; } + public bool IsPackable { get; set; } = true; + public bool IsTest { get; init; } + public string? Version { get; set; } + public string Sdk { get; set; } = "Microsoft.NET.Sdk"; + public List<(string Id, string? Version)> PackageReferences { get; } = new(); + public List ProjectReferences { get; } = new(); + public List FrameworkReferences { get; } = new(); + } + + private sealed record RunActionTypeOwner( + string SimpleName, + string Namespace, + string FullName, + RunActionProjectMeta Project); + + private sealed record RunActionExtensionOwner( + string MethodName, + string Namespace, + string DeclaringType, + RunActionProjectMeta Project); + + private sealed class RunActionDependencyIndex + { + public Dictionary ProjectsByPath { get; } = new(StringComparer.OrdinalIgnoreCase); + public Dictionary CentralPackageVersions { get; } = new(StringComparer.OrdinalIgnoreCase); + public HashSet BclNamespaces { get; } = new(StringComparer.Ordinal); + public Dictionary> BclTypesBySimpleName { get; } = new(StringComparer.Ordinal); + public Dictionary> RepoTypesBySimpleName { get; } = new(StringComparer.Ordinal); + public Dictionary> RepoNamespaces { get; } = new(StringComparer.Ordinal); + public Dictionary> RepoExtensionMethods { get; } = new(StringComparer.Ordinal); + } + + private sealed record RunActionEntryPoint( + string Type, + string Method, + bool IsStatic, + bool IsAsync, + string ReturnType, + bool HasReturnValue); + + private sealed record RunActionClassification( + string Category, + string ReasonCode, + bool Convertible, + string SuggestedMode, + RunActionEntryPoint? EntryPoint, + string? BlockingConstruct, + int? BlockingLine, + string? ManualHarness, + string? CandidateSource); + + private static readonly HashSet HostParameterizedTypes = new(StringComparer.Ordinal) + { + "IServiceCollection", "IApplicationBuilder", "IEndpointRouteBuilder", "IHostBuilder", + "IWebHostBuilder", "WebApplicationBuilder", "HostApplicationBuilder", "HttpContext", + "MvcOptions", "IConfiguration", "ILoggingBuilder", "WebApplication", "IHost", + "IServiceProvider", "IMvcBuilder", "IRouteBuilder", "IWebHostEnvironment", + "IHostEnvironment", "WebHostBuilderContext", "HostBuilderContext", "IMiddleware", + "RequestDelegate", "IApplicationLifetime", "IHostApplicationLifetime", "IHttpClientBuilder" + }; + + private static readonly string[] PreferredEntryMethodNames = + [ + "Demonstrate", "DemonstrateAsync", "Run", "RunAsync", "Execute", "ExecuteAsync", + "Example", "ExampleAsync", "Invoke", "InvokeAsync", "Show", "ShowAsync" + ]; + + private static string CanonicalizeWhitespaceForDiff(string text) + { + var lines = text.Replace("\r\n", "\n").Replace("\r", "\n").Split('\n') + .Select(l => l.TrimEnd(' ', '\t')); + return string.Join("\n", lines).TrimEnd('\n'); + } + + private static RunActionDependencyIndex BuildRunActionDependencyIndex( + string root, + List discoveredProjects, + string[] platformAssemblyPaths) + { + var index = new RunActionDependencyIndex(); + + // 1. Index BCL public types and namespaces from TRUSTED_PLATFORM_ASSEMBLIES. + try + { + var resolver = new PathAssemblyResolver(platformAssemblyPaths); + using var mlc = new MetadataLoadContext(resolver); + foreach (var asmPath in platformAssemblyPaths) + { + try + { + var asm = mlc.LoadFromAssemblyPath(asmPath); + Type[] types; + try + { + types = asm.GetExportedTypes(); + } + catch (ReflectionTypeLoadException rtle) + { + types = rtle.Types.Where(t => t is not null).ToArray()!; + } + + foreach (var t in types) + { + if (string.IsNullOrEmpty(t.Namespace)) { continue; } + index.BclNamespaces.Add(t.Namespace); + var name = t.Name; + var tick = name.IndexOf('`'); + if (tick >= 0) { name = name[..tick]; } + if (!index.BclTypesBySimpleName.TryGetValue(name, out var nsSet)) + { + nsSet = new HashSet(StringComparer.Ordinal); + index.BclTypesBySimpleName[name] = nsSet; + } + nsSet.Add(t.Namespace); + } + } + catch + { + // Skip unloadable platform assemblies. + } + } + } + catch + { + // Fall back to empty BCL index if MetadataLoadContext fails. + } + + // 2. Collect all relevant projects: docfx.json metadata projects + any src/**/*.csproj. + var allProjectPaths = new HashSet(StringComparer.OrdinalIgnoreCase); + foreach (var p in discoveredProjects) + { + allProjectPaths.Add(Path.GetFullPath(p.Path)); + } + var srcDir = Path.Combine(root, "src"); + if (Directory.Exists(srcDir)) + { + foreach (var csproj in EnumerateFiles(srcDir, "*.csproj")) + { + allProjectPaths.Add(Path.GetFullPath(csproj)); + } + } + + // 3. Parse Directory.Packages.props and Directory.Build.props up to root. + var propDirs = new HashSet(StringComparer.OrdinalIgnoreCase) { root }; + foreach (var projPath in allProjectPaths) + { + for (var dir = Path.GetDirectoryName(projPath); + dir is not null && (PathsEqual(dir, root) || IsPathUnderDirectory(dir, root)); + dir = Path.GetDirectoryName(dir)) + { + propDirs.Add(dir); + } + } + + string? rootBuildVersion = null; + bool? rootBuildIsPackable = null; + foreach (var dir in propDirs.OrderBy(d => d.Length)) + { + var pkgProps = Path.Combine(dir, "Directory.Packages.props"); + if (File.Exists(pkgProps)) + { + try + { + var xdoc = XDocument.Load(pkgProps); + foreach (var el in xdoc.Descendants().Where(e => e.Name.LocalName == "PackageVersion")) + { + var id = el.Attribute("Include")?.Value?.Trim(); + var ver = el.Attribute("Version")?.Value?.Trim(); + if (!string.IsNullOrEmpty(id) && !string.IsNullOrEmpty(ver)) + { + index.CentralPackageVersions[id] = ver; + } + } + } + catch { } + } + + var buildProps = Path.Combine(dir, "Directory.Build.props"); + if (File.Exists(buildProps)) + { + try + { + var xdoc = XDocument.Load(buildProps); + foreach (var el in xdoc.Descendants()) + { + if (el.Name.LocalName is "Version" or "PackageVersion" or "VersionPrefix" && + !string.IsNullOrWhiteSpace(el.Value) && !el.Value.Contains("$(")) + { + rootBuildVersion ??= el.Value.Trim(); + } + else if (el.Name.LocalName == "IsPackable" && bool.TryParse(el.Value.Trim(), out var b)) + { + rootBuildIsPackable = b; + } + } + } + catch { } + } + } + + // 4. Parse every project's metadata, references, packability, and declared C# types/extensions. + foreach (var projPath in allProjectPaths.OrderBy(p => p, StringComparer.OrdinalIgnoreCase)) + { + var info = discoveredProjects.FirstOrDefault(p => PathsEqual(p.Path, projPath)) ?? ReadProject(projPath); + var meta = new RunActionProjectMeta + { + FullPath = projPath, + RelPath = Rel(root, projPath), + AssemblyName = info.AssemblyName, + PackageId = string.IsNullOrWhiteSpace(info.PackageId) ? info.AssemblyName : info.PackageId!, + IsPackable = !info.IsTest && (rootBuildIsPackable ?? true), + IsTest = info.IsTest, + Version = rootBuildVersion + }; + + try + { + var xdoc = XDocument.Load(projPath); + var sdkAttr = xdoc.Root?.Attribute("Sdk")?.Value?.Trim(); + if (!string.IsNullOrEmpty(sdkAttr)) { meta.Sdk = sdkAttr; } + foreach (var el in xdoc.Descendants()) + { + switch (el.Name.LocalName) + { + case "IsPackable": + if (bool.TryParse(el.Value.Trim(), out var packable)) { meta.IsPackable = packable; } + break; + case "OutputType": + if (el.Value.Trim().Equals("Exe", StringComparison.OrdinalIgnoreCase) || + el.Value.Trim().Equals("WinExe", StringComparison.OrdinalIgnoreCase)) + { + meta.IsPackable = false; + } + break; + case "Version": + case "PackageVersion": + case "VersionPrefix": + if (!string.IsNullOrWhiteSpace(el.Value) && !el.Value.Contains("$(")) + { + meta.Version = el.Value.Trim(); + } + break; + case "PackageReference": + var pkgId = el.Attribute("Include")?.Value?.Trim(); + var pkgVer = el.Attribute("Version")?.Value?.Trim() ?? el.Element(el.Name.Namespace + "Version")?.Value?.Trim(); + if (!string.IsNullOrEmpty(pkgId)) + { + if (string.IsNullOrEmpty(pkgVer) && index.CentralPackageVersions.TryGetValue(pkgId, out var cver)) + { + pkgVer = cver; + } + meta.PackageReferences.Add((pkgId, pkgVer)); + } + break; + case "ProjectReference": + var relRef = el.Attribute("Include")?.Value?.Trim(); + if (!string.IsNullOrEmpty(relRef)) + { + var normalizedRef = relRef.Replace('\\', Path.DirectorySeparatorChar).Replace('/', Path.DirectorySeparatorChar); + var fullRef = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(projPath)!, normalizedRef)); + meta.ProjectReferences.Add(fullRef); + } + break; + case "FrameworkReference": + var fw = el.Attribute("Include")?.Value?.Trim(); + if (!string.IsNullOrEmpty(fw)) + { + meta.FrameworkReferences.Add(fw); + if (fw.Equals("Microsoft.AspNetCore.App", StringComparison.OrdinalIgnoreCase)) + { + meta.Sdk = "Microsoft.NET.Sdk.Web"; + } + } + break; + } + } + } + catch { } + + index.ProjectsByPath[projPath] = meta; + + if (info.IsTest) { continue; } + + foreach (var csFile in EnumerateProjectSourceFiles(info)) + { + string sourceText; + try { sourceText = File.ReadAllText(csFile); } + catch { continue; } + + var tree = CSharpSyntaxTree.ParseText(sourceText); + var cu = tree.GetCompilationUnitRoot(); + + foreach (var nsDecl in cu.DescendantNodes().OfType()) + { + var nsName = nsDecl.Name.ToString(); + if (!index.RepoNamespaces.TryGetValue(nsName, out var projList)) + { + projList = new List(); + index.RepoNamespaces[nsName] = projList; + } + if (!projList.Any(p => PathsEqual(p.FullPath, meta.FullPath))) + { + projList.Add(meta); + } + } + + foreach (var typeDecl in cu.DescendantNodes().OfType()) + { + if (!typeDecl.Modifiers.Any(m => m.IsKind(SyntaxKind.PublicKeyword))) { continue; } + var nsName = GetEnclosingNamespace(typeDecl); + if (string.IsNullOrEmpty(nsName)) { continue; } + var simpleName = typeDecl.Identifier.ValueText; + var fullName = $"{nsName}.{simpleName}"; + if (!index.RepoTypesBySimpleName.TryGetValue(simpleName, out var owners)) + { + owners = new List(); + index.RepoTypesBySimpleName[simpleName] = owners; + } + if (!owners.Any(o => o.FullName == fullName && PathsEqual(o.Project.FullPath, meta.FullPath))) + { + owners.Add(new RunActionTypeOwner(simpleName, nsName, fullName, meta)); + } + + if (!index.RepoNamespaces.TryGetValue(nsName, out var projList)) + { + projList = new List(); + index.RepoNamespaces[nsName] = projList; + } + if (!projList.Any(p => PathsEqual(p.FullPath, meta.FullPath))) + { + projList.Add(meta); + } + + if (typeDecl is ClassDeclarationSyntax classDecl && + classDecl.Modifiers.Any(m => m.IsKind(SyntaxKind.StaticKeyword))) + { + foreach (var method in classDecl.Members.OfType()) + { + if (!method.Modifiers.Any(m => m.IsKind(SyntaxKind.PublicKeyword)) || + !method.Modifiers.Any(m => m.IsKind(SyntaxKind.StaticKeyword))) + { + continue; + } + if (method.ParameterList.Parameters.Count > 0 && + method.ParameterList.Parameters[0].Modifiers.Any(m => m.IsKind(SyntaxKind.ThisKeyword))) + { + var mName = method.Identifier.ValueText; + if (!index.RepoExtensionMethods.TryGetValue(mName, out var extList)) + { + extList = new List(); + index.RepoExtensionMethods[mName] = extList; + } + if (!extList.Any(e => e.Namespace == nsName && PathsEqual(e.Project.FullPath, meta.FullPath))) + { + extList.Add(new RunActionExtensionOwner(mName, nsName, simpleName, meta)); + } + } + } + } + } + } + } + + return index; + } + + private static string GetEnclosingNamespace(SyntaxNode node) + { + var parts = new Stack(); + for (var cur = node.Parent; cur is not null; cur = cur.Parent) + { + if (cur is BaseNamespaceDeclarationSyntax ns) + { + parts.Push(ns.Name.ToString()); + } + } + return string.Join(".", parts); + } + + private static int GetOneBasedLine(SyntaxTree tree, SyntaxNode node) + => tree.GetLineSpan(node.Span).StartLinePosition.Line + 1; + + private static bool HasBlockingHostRun(CompilationUnitSyntax syntax, out SyntaxNode? runNode) + { + runNode = null; + var text = syntax.ToFullString(); + var mentionsHostBuilder = + text.Contains("WebApplication.CreateBuilder", StringComparison.Ordinal) || + text.Contains("WebApplication.CreateSlimBuilder", StringComparison.Ordinal) || + text.Contains("Host.CreateDefaultBuilder", StringComparison.Ordinal) || + text.Contains("Host.CreateApplicationBuilder", StringComparison.Ordinal) || + text.Contains("WebHost.CreateDefaultBuilder", StringComparison.Ordinal) || + text.Contains("IWebHostBuilder", StringComparison.Ordinal) || + text.Contains("IHostBuilder", StringComparison.Ordinal); + + if (!mentionsHostBuilder) { return false; } + + foreach (var inv in syntax.DescendantNodes().OfType()) + { + if (inv.Expression is MemberAccessExpressionSyntax ma && + ma.Name.Identifier.ValueText is "Run" or "RunAsync" && + inv.ArgumentList.Arguments.Count == 0) + { + runNode = inv; + return true; + } + } + return false; + } + + private static string FormatTypeHeader(BaseTypeDeclarationSyntax typeDecl) + { + var mods = typeDecl.Modifiers.ToString(); + var keyword = typeDecl switch + { + ClassDeclarationSyntax => "class", + StructDeclarationSyntax => "struct", + InterfaceDeclarationSyntax => "interface", + RecordDeclarationSyntax r => r.ClassOrStructKeyword.IsKind(SyntaxKind.StructKeyword) ? "record struct" : "record", + EnumDeclarationSyntax => "enum", + _ => "type" + }; + var generic = typeDecl is TypeDeclarationSyntax td && td.TypeParameterList is not null + ? td.TypeParameterList.ToString() + : string.Empty; + return string.IsNullOrWhiteSpace(mods) + ? $"{keyword} {typeDecl.Identifier.ValueText}{generic}" + : $"{mods} {keyword} {typeDecl.Identifier.ValueText}{generic}"; + } + + private static string FormatMethodSignature(MethodDeclarationSyntax method) + { + var mods = method.Modifiers.ToString(); + var generic = method.TypeParameterList?.ToString() ?? string.Empty; + var sig = $"{method.ReturnType} {method.Identifier.ValueText}{generic}{method.ParameterList}"; + return string.IsNullOrWhiteSpace(mods) ? sig : $"{mods} {sig}"; + } + + private static string FormatMemberHeader(MemberDeclarationSyntax member) + { + return member switch + { + FieldDeclarationSyntax f => f.ToString().Split('\n')[0].Trim(), + PropertyDeclarationSyntax p => $"{p.Modifiers} {p.Type} {p.Identifier.ValueText}".Trim(), + ConstructorDeclarationSyntax c => $"{c.Modifiers} {c.Identifier.ValueText}{c.ParameterList}".Trim(), + MethodDeclarationSyntax m => FormatMethodSignature(m), + BaseTypeDeclarationSyntax t => FormatTypeHeader(t), + _ => member.ToString().Split('\n')[0].Trim() + }; + } + + private static bool IsAsyncReturnType(string returnType) + => returnType is "Task" or "ValueTask" || + returnType.StartsWith("Task<", StringComparison.Ordinal) || + returnType.StartsWith("ValueTask<", StringComparison.Ordinal) || + returnType.EndsWith(".Task", StringComparison.Ordinal) || + returnType.Contains(".Task<", StringComparison.Ordinal) || + returnType.EndsWith(".ValueTask", StringComparison.Ordinal) || + returnType.Contains(".ValueTask<", StringComparison.Ordinal); + + private static bool MethodReturnsValue(string returnType) + => returnType is not ("void" or "Task" or "ValueTask" or "System.Threading.Tasks.Task" or "System.Threading.Tasks.ValueTask"); + + private static RunActionClassification ClassifyRunActionExample( + CompilationUnitSyntax syntax, + SyntaxTree tree, + string normalizedCode, + bool isTest, + bool eligible, + RunActionDependencyIndex index) + { + var firstSyntaxError = tree.GetDiagnostics().FirstOrDefault(d => d.Severity == DiagnosticSeverity.Error); + if (firstSyntaxError is not null) + { + var errLine = firstSyntaxError.Location.GetLineSpan().StartLinePosition.Line + 1; + return new RunActionClassification( + Category: "syntax-error", + ReasonCode: "syntax-error", + Convertible: false, + SuggestedMode: "console", + EntryPoint: null, + BlockingConstruct: firstSyntaxError.GetMessage(), + BlockingLine: errLine, + ManualHarness: "Fix the C# syntax error or supply a complete compilable example.", + CandidateSource: null); + } + + if (HasBlockingHostRun(syntax, out var hostRunNode) && hostRunNode is not null) + { + return new RunActionClassification( + Category: "host-blocking", + ReasonCode: "blocking-host-run", + Convertible: true, + SuggestedMode: "host", + EntryPoint: null, + BlockingConstruct: hostRunNode.ToString().Trim(), + BlockingLine: GetOneBasedLine(tree, hostRunNode), + ManualHarness: "Use a mode: host / hostHarness recipe that starts the host, probes or performs the demonstrated action, and shuts down within a timeout.", + CandidateSource: normalizedCode); + } + + if (isTest) + { + return new RunActionClassification( + Category: "already-standalone", + ReasonCode: "xunit-test", + Convertible: true, + SuggestedMode: "test", + EntryPoint: null, + BlockingConstruct: null, + BlockingLine: null, + ManualHarness: null, + CandidateSource: normalizedCode); + } + + var mainMethod = syntax.DescendantNodes().OfType() + .FirstOrDefault(m => m.Identifier.ValueText == "Main" && m.Modifiers.Any(mod => mod.IsKind(SyntaxKind.StaticKeyword))); + if (mainMethod is not null) + { + return new RunActionClassification( + Category: "already-standalone", + ReasonCode: "has-main", + Convertible: true, + SuggestedMode: "console", + EntryPoint: new RunActionEntryPoint( + (mainMethod.Parent as TypeDeclarationSyntax)?.Identifier.ValueText ?? "Program", + "Main", + true, + IsAsyncReturnType(mainMethod.ReturnType.ToString()), + mainMethod.ReturnType.ToString(), + false), + BlockingConstruct: null, + BlockingLine: null, + ManualHarness: null, + CandidateSource: normalizedCode); + } + + if (syntax.Members.OfType().Any()) + { + return new RunActionClassification( + Category: eligible ? "already-standalone" : "top-level", + ReasonCode: eligible ? "top-level-program" : "top-level-statements", + Convertible: true, + SuggestedMode: "console", + EntryPoint: null, + BlockingConstruct: null, + BlockingLine: null, + ManualHarness: null, + CandidateSource: normalizedCode); + } + + var allTypes = syntax.DescendantNodes().OfType() + .Where(t => t.Parent is CompilationUnitSyntax or BaseNamespaceDeclarationSyntax) + .ToList(); + + // Find parameterless entry method candidates on instantiable or static types. + var entryCandidates = new List<(TypeDeclarationSyntax Type, MethodDeclarationSyntax Method, int Priority)>(); + foreach (var td in allTypes.OfType()) + { + if (td is InterfaceDeclarationSyntax) { continue; } + if (td.TypeParameterList is not null && td.TypeParameterList.Parameters.Count > 0) { continue; } + var isStaticType = td.Modifiers.Any(m => m.IsKind(SyntaxKind.StaticKeyword)); + var isAbstractType = td.Modifiers.Any(m => m.IsKind(SyntaxKind.AbstractKeyword)) && !isStaticType; + var ctors = td.Members.OfType() + .Where(c => !c.Modifiers.Any(m => m.IsKind(SyntaxKind.StaticKeyword))).ToList(); + var hasDefaultCtor = !isAbstractType && !isStaticType && ( + ctors.Count == 0 || + ctors.Any(c => c.ParameterList.Parameters.All(p => p.Default is not null) && + !c.Modifiers.Any(m => m.IsKind(SyntaxKind.PrivateKeyword) || m.IsKind(SyntaxKind.ProtectedKeyword)))); + // Also check primary constructor parameters on C# 12 classes/records. + if (td.ParameterList is not null && td.ParameterList.Parameters.Any(p => p.Default is null)) + { + hasDefaultCtor = false; + } + + foreach (var m in td.Members.OfType()) + { + if (m.Modifiers.Any(mod => mod.IsKind(SyntaxKind.AbstractKeyword))) { continue; } + if (m.Modifiers.Any(mod => mod.IsKind(SyntaxKind.PrivateKeyword) || mod.IsKind(SyntaxKind.ProtectedKeyword))) { continue; } + if (m.TypeParameterList is not null && m.TypeParameterList.Parameters.Count > 0) { continue; } + if (m.ParameterList.Parameters.Any(p => p.Default is null)) { continue; } + + var isStaticMethod = m.Modifiers.Any(mod => mod.IsKind(SyntaxKind.StaticKeyword)); + if (!isStaticMethod && !hasDefaultCtor) { continue; } + + var prefIdx = Array.IndexOf(PreferredEntryMethodNames, m.Identifier.ValueText); + var priority = prefIdx >= 0 ? prefIdx : 100; + entryCandidates.Add((td, m, priority)); + } + } + + if (entryCandidates.Count > 0) + { + var chosen = entryCandidates + .OrderBy(c => c.Priority) + .ThenBy(c => c.Method.SpanStart) + .First(); + var ownerType = chosen.Type; + var entryMethod = chosen.Method; + var isStaticMethod = entryMethod.Modifiers.Any(m => m.IsKind(SyntaxKind.StaticKeyword)); + var retType = entryMethod.ReturnType.ToString(); + var isAsync = entryMethod.Modifiers.Any(m => m.IsKind(SyntaxKind.AsyncKeyword)) || IsAsyncReturnType(retType); + var hasRet = MethodReturnsValue(retType); + + var hasThisRef = entryMethod.DescendantNodes().OfType().Any(); + var otherMembers = ownerType.Members.Where(m => !ReferenceEquals(m, entryMethod)).ToList(); + var isClean = allTypes.Count == 1 && + ownerType.BaseList is null && + otherMembers.Count == 0 && + !hasThisRef; + + var entryInfo = new RunActionEntryPoint( + ownerType.Identifier.ValueText, + entryMethod.Identifier.ValueText, + isStaticMethod, + isAsync, + retType, + hasRet); + + var candidate = BuildConvertedConsoleSource(syntax, ownerType, entryMethod, entryInfo, isClean, index); + + if (isClean) + { + return new RunActionClassification( + Category: "wrapper-clean", + ReasonCode: "clean-wrapper-entry-method", + Convertible: true, + SuggestedMode: "console", + EntryPoint: entryInfo, + BlockingConstruct: FormatTypeHeader(ownerType), + BlockingLine: GetOneBasedLine(tree, ownerType), + ManualHarness: null, + CandidateSource: candidate); + } + + SyntaxNode blockerNode = otherMembers.Count > 0 + ? otherMembers[0] + : allTypes.FirstOrDefault(t => !ReferenceEquals(t, ownerType)) as SyntaxNode + ?? (SyntaxNode?)ownerType.BaseList + ?? ownerType; + var blockerText = blockerNode switch + { + MemberDeclarationSyntax mem => FormatMemberHeader(mem), + BaseListSyntax bl => $"{FormatTypeHeader(ownerType)} {bl}", + _ => FormatTypeHeader(ownerType) + }; + + return new RunActionClassification( + Category: "wrapper-members", + ReasonCode: "wrapper-requires-member-hoisting", + Convertible: true, + SuggestedMode: "console", + EntryPoint: entryInfo, + BlockingConstruct: blockerText, + BlockingLine: GetOneBasedLine(tree, blockerNode), + ManualHarness: null, + CandidateSource: candidate); + } + + // Check for parameterized host/DI methods (ConfigureServices(IServiceCollection), Configure(IApplicationBuilder), etc.). + var allMethods = syntax.DescendantNodes().OfType().ToList(); + var hostMethod = allMethods.FirstOrDefault(m => + m.ParameterList.Parameters.Any(p => + { + var pType = p.Type?.ToString() ?? string.Empty; + var simpleType = pType.Split('.').Last().Split('<')[0].TrimEnd('?'); + return HostParameterizedTypes.Contains(simpleType); + })); + + if (hostMethod is not null) + { + var sig = FormatMethodSignature(hostMethod); + return new RunActionClassification( + Category: "host-parameterized", + ReasonCode: "parameterized-host-method", + Convertible: false, + SuggestedMode: "host", + EntryPoint: null, + BlockingConstruct: sig, + BlockingLine: GetOneBasedLine(tree, hostMethod), + ManualHarness: $"Requires a host/DI harness invoking '{sig}' (use a mode: host / hostHarness recipe or build ServiceCollection/WebApplication to execute it).", + CandidateSource: null); + } + + // Otherwise classify why there is no usable entry point. + if (allTypes.Count > 0) + { + var firstType = allTypes[0]; + var allAbstractOrInterface = allTypes.All(t => + t is InterfaceDeclarationSyntax or EnumDeclarationSyntax || + (t is TypeDeclarationSyntax td && td.Modifiers.Any(m => m.IsKind(SyntaxKind.AbstractKeyword)) && !td.Modifiers.Any(m => m.IsKind(SyntaxKind.StaticKeyword)))); + var allGeneric = allTypes.OfType().All(td => td.TypeParameterList is not null && td.TypeParameterList.Parameters.Count > 0); + + string reasonCode; + SyntaxNode blocker = firstType; + string blockerText = FormatTypeHeader(firstType); + + if (allAbstractOrInterface) + { + reasonCode = "abstract-or-interface-only"; + } + else if (allGeneric && allTypes.OfType().Any()) + { + reasonCode = "generic-type-only"; + } + else if (allMethods.Count > 0) + { + reasonCode = "parameterized-methods-only"; + blocker = allMethods[0]; + blockerText = FormatMethodSignature(allMethods[0]); + } + else + { + reasonCode = "no-entry-point"; + } + + return new RunActionClassification( + Category: "no-entry", + ReasonCode: reasonCode, + Convertible: false, + SuggestedMode: "console", + EntryPoint: null, + BlockingConstruct: blockerText, + BlockingLine: GetOneBasedLine(tree, blocker), + ManualHarness: "Author a concrete invocation or driver exercising the documented API and writing an observable result.", + CandidateSource: null); + } + + return new RunActionClassification( + Category: "no-entry", + ReasonCode: "no-entry-point", + Convertible: false, + SuggestedMode: "console", + EntryPoint: null, + BlockingConstruct: normalizedCode.Split('\n').FirstOrDefault()?.Trim(), + BlockingLine: 1, + ManualHarness: "Author a complete standalone program or xUnit v3 test demonstrating the API.", + CandidateSource: null); + } + + private static string BuildConvertedConsoleSource( + CompilationUnitSyntax syntax, + TypeDeclarationSyntax ownerType, + MethodDeclarationSyntax entryMethod, + RunActionEntryPoint entry, + bool isClean, + RunActionDependencyIndex index) + { + var usings = syntax.Usings.Select(u => u.ToString().Trim()).ToList(); + var declaredNs = GetEnclosingNamespace(ownerType); + + void EnsureUsing(string ns) + { + var directive = $"using {ns};"; + if (!usings.Any(u => string.Equals(u, directive, StringComparison.Ordinal))) + { + usings.Add(directive); + } + } + + // Unwrap clean wrapper directly to top-level statements when safe (no return statements inside block). + if (isClean && entryMethod.Body is not null && + !entryMethod.Body.DescendantNodes().OfType().Any()) + { + if (!string.IsNullOrEmpty(declaredNs) && index.RepoNamespaces.ContainsKey(declaredNs)) + { + EnsureUsing(declaredNs); + } + + var rawBody = entryMethod.Body.Statements.ToFullString().Replace("\r\n", "\n").Trim('\r', '\n'); + var bodyLines = rawBody.Split('\n'); + var nonEmptyIndents = bodyLines + .Where(l => !string.IsNullOrWhiteSpace(l)) + .Select(l => l.TakeWhile(c => c is ' ' or '\t').Count()) + .ToList(); + var minIndent = nonEmptyIndents.Count > 0 ? nonEmptyIndents.Min() : 0; + var dedented = string.Join("\n", bodyLines.Select(l => + l.Length >= minIndent ? l[minIndent..] : l.TrimStart())); + + var sb = new StringBuilder(); + foreach (var u in usings) { sb.AppendLine(u); } + if (usings.Count > 0) { sb.AppendLine(); } + sb.Append(dedented.TrimEnd()); + return sb.ToString().Replace("\r\n", "\n").TrimEnd('\r', '\n'); + } + + if (isClean && entryMethod.ExpressionBody is not null) + { + if (!string.IsNullOrEmpty(declaredNs) && index.RepoNamespaces.ContainsKey(declaredNs)) + { + EnsureUsing(declaredNs); + } + if (entry.HasReturnValue) { EnsureUsing("System"); } + var expr = entryMethod.ExpressionBody.Expression.ToString().Trim(); + var sb = new StringBuilder(); + foreach (var u in usings) { sb.AppendLine(u); } + if (usings.Count > 0) { sb.AppendLine(); } + if (entry.HasReturnValue) + { + var call = entry.IsAsync ? $"await {expr}" : expr; + sb.Append($"Console.WriteLine({call});"); + } + else + { + sb.Append(entry.IsAsync ? $"await {expr};" : $"{expr};"); + } + return sb.ToString().Replace("\r\n", "\n").TrimEnd('\r', '\n'); + } + + // Preserve types/members and hoist a top-level driver statement before type/namespace declarations. + if (entry.HasReturnValue) { EnsureUsing("System"); } + if (!string.IsNullOrEmpty(declaredNs)) { EnsureUsing(declaredNs); } + + var invokeExpr = entry.IsStatic + ? $"{entry.Type}.{entry.Method}()" + : $"new {entry.Type}().{entry.Method}()"; + if (entry.IsAsync) { invokeExpr = $"await {invokeExpr}"; } + var driverLine = entry.HasReturnValue + ? $"Console.WriteLine({invokeExpr});" + : $"{invokeExpr};"; + + var sbHoist = new StringBuilder(); + foreach (var u in usings) { sbHoist.AppendLine(u); } + if (usings.Count > 0) { sbHoist.AppendLine(); } + sbHoist.AppendLine(driverLine); + sbHoist.AppendLine(); + + foreach (var member in syntax.Members) + { + if (member is FileScopedNamespaceDeclarationSyntax fsns) + { + sbHoist.AppendLine($"namespace {fsns.Name}"); + sbHoist.AppendLine("{"); + foreach (var inner in fsns.Members) + { + var innerLines = inner.ToFullString().Replace("\r\n", "\n").Trim('\r', '\n').Split('\n'); + foreach (var line in innerLines) + { + sbHoist.AppendLine(string.IsNullOrWhiteSpace(line) ? string.Empty : " " + line); + } + } + sbHoist.AppendLine("}"); + } + else + { + sbHoist.AppendLine(member.ToFullString().Replace("\r\n", "\n").Trim('\r', '\n')); + } + } + + return sbHoist.ToString().Replace("\r\n", "\n").TrimEnd('\r', '\n'); + } + + private sealed record RunActionMissingPackage( + string Type, + string Package, + string? Project, + string Reason, + string Diagnostic); + + private sealed record RunActionAmbiguousType( + string Type, + string[] Candidates, + string Diagnostic); + + private static object ResolveRunActionDependencies( + CompilationUnitSyntax syntax, + RunActionDependencyIndex index, + string? ownerUid, + bool isTest, + bool isHostMode) + { + var importedNamespaces = new HashSet(StringComparer.Ordinal); + var aliasedNames = new HashSet(StringComparer.Ordinal); + foreach (var u in syntax.DescendantNodes().OfType()) + { + if (u.Alias is not null) + { + aliasedNames.Add(u.Alias.Name.Identifier.ValueText); + continue; + } + var nsName = u.Name?.ToString(); + if (!string.IsNullOrEmpty(nsName)) + { + importedNamespaces.Add(nsName); + } + } + + var localNamespaces = new HashSet( + syntax.DescendantNodes().OfType().Select(n => n.Name.ToString()), + StringComparer.Ordinal); + var localTypes = new HashSet( + syntax.DescendantNodes().OfType().Select(t => t.Identifier.ValueText), + StringComparer.Ordinal); + + // Collect unqualified type identifiers and static-access type identifiers referenced in the fence. + var referencedSimpleTypes = new HashSet(StringComparer.Ordinal); + foreach (var node in syntax.DescendantNodes()) + { + switch (node) + { + case ObjectCreationExpressionSyntax obj when obj.Type is SimpleNameSyntax s: + referencedSimpleTypes.Add(s.Identifier.ValueText); + break; + case VariableDeclarationSyntax vd when vd.Type is SimpleNameSyntax s && !s.IsVar: + referencedSimpleTypes.Add(s.Identifier.ValueText); + break; + case ParameterSyntax p when p.Type is SimpleNameSyntax s: + referencedSimpleTypes.Add(s.Identifier.ValueText); + break; + case BaseTypeSyntax bt when bt.Type is SimpleNameSyntax s: + referencedSimpleTypes.Add(s.Identifier.ValueText); + break; + case TypeOfExpressionSyntax to when to.Type is SimpleNameSyntax s: + referencedSimpleTypes.Add(s.Identifier.ValueText); + break; + case CastExpressionSyntax cast when cast.Type is SimpleNameSyntax s: + referencedSimpleTypes.Add(s.Identifier.ValueText); + break; + case GenericNameSyntax gn: + referencedSimpleTypes.Add(gn.Identifier.ValueText); + break; + case AttributeSyntax attr: + var aName = attr.Name.GetLastToken().ValueText; + referencedSimpleTypes.Add(aName); + if (!aName.EndsWith("Attribute", StringComparison.Ordinal)) + { + referencedSimpleTypes.Add(aName + "Attribute"); + } + break; + case MemberAccessExpressionSyntax ma when ma.Expression is IdentifierNameSyntax id && + id.Identifier.ValueText.Length > 0 && char.IsUpper(id.Identifier.ValueText[0]): + referencedSimpleTypes.Add(id.Identifier.ValueText); + break; + } + } + referencedSimpleTypes.ExceptWith(localTypes); + + var invokedMethodNames = new HashSet( + syntax.DescendantNodes().OfType() + .Select(i => i.Expression is MemberAccessExpressionSyntax ma ? ma.Name.Identifier.ValueText : null) + .Where(n => !string.IsNullOrEmpty(n))!, + StringComparer.Ordinal); + + var requiredProjects = new Dictionary(StringComparer.OrdinalIgnoreCase); + var typeOwnership = new List(); + var missingPackages = new List(); + var ambiguousTypes = new List(); + var unresolvedUsings = new List(); + var unversionedPackages = new HashSet(StringComparer.OrdinalIgnoreCase); + var externalPins = new Dictionary(StringComparer.OrdinalIgnoreCase); + var frameworkReferences = new HashSet(StringComparer.OrdinalIgnoreCase); + var sdk = isHostMode ? "Microsoft.NET.Sdk.Web" : "Microsoft.NET.Sdk"; + var resolvedNamespacesByType = new HashSet(StringComparer.Ordinal); + + void AddProjectRequirement(RunActionProjectMeta proj, string? matchedType, string? matchedNs) + { + if (!proj.IsPackable) + { + var label = matchedType ?? matchedNs ?? proj.PackageId; + var diag = $"missing-package: {label} -> {proj.PackageId} (unpublished project {proj.RelPath})"; + if (!missingPackages.Any(m => m.Diagnostic == diag)) + { + missingPackages.Add(new RunActionMissingPackage(label, proj.PackageId, proj.RelPath, "unpublished-project", diag)); + } + return; + } + + requiredProjects[proj.FullPath] = proj; + if (proj.Sdk.Equals("Microsoft.NET.Sdk.Web", StringComparison.OrdinalIgnoreCase)) + { + sdk = "Microsoft.NET.Sdk.Web"; + frameworkReferences.Add("Microsoft.AspNetCore.App"); + } + foreach (var fw in proj.FrameworkReferences) + { + frameworkReferences.Add(fw); + } + if (string.IsNullOrEmpty(proj.Version)) + { + unversionedPackages.Add(proj.PackageId); + } + } + + // 1. Resolve referenced simple types against repo type ownership. + var searchNamespaces = new HashSet(importedNamespaces, StringComparer.Ordinal); + foreach (var lns in localNamespaces) { searchNamespaces.Add(lns); } + + foreach (var typeName in referencedSimpleTypes.OrderBy(t => t, StringComparer.Ordinal)) + { + if (index.RepoTypesBySimpleName.TryGetValue(typeName, out var owners)) + { + var matchingOwners = owners.Where(o => searchNamespaces.Contains(o.Namespace)).ToList(); + if (matchingOwners.Count == 0 && owners.Count == 1 && !string.IsNullOrEmpty(ownerUid) && + ownerUid.StartsWith(owners[0].Namespace, StringComparison.Ordinal)) + { + matchingOwners = owners; + } + + foreach (var owner in matchingOwners) + { + resolvedNamespacesByType.Add(owner.Namespace); + typeOwnership.Add(new + { + type = owner.SimpleName, + @namespace = owner.Namespace, + package = owner.Project.PackageId, + project = owner.Project.RelPath, + packable = owner.Project.IsPackable, + version = owner.Project.Version + }); + AddProjectRequirement(owner.Project, owner.SimpleName, owner.Namespace); + } + } + } + + // 2. Resolve extension method calls against repo extension ownership. + foreach (var mName in invokedMethodNames) + { + if (index.RepoExtensionMethods.TryGetValue(mName, out var extOwners)) + { + foreach (var ext in extOwners.Where(e => searchNamespaces.Contains(e.Namespace))) + { + resolvedNamespacesByType.Add(ext.Namespace); + AddProjectRequirement(ext.Project, $"{ext.DeclaringType}.{ext.MethodName}", ext.Namespace); + } + } + } + + // 3. Detect CS0104 ambiguities for unqualified referenced types across BCL + Repo types in imported namespaces. + foreach (var typeName in referencedSimpleTypes.OrderBy(t => t, StringComparer.Ordinal)) + { + if (aliasedNames.Contains(typeName)) { continue; } + var candidates = new SortedSet(StringComparer.Ordinal); + if (index.BclTypesBySimpleName.TryGetValue(typeName, out var bclNs)) + { + foreach (var ns in bclNs.Where(importedNamespaces.Contains)) + { + candidates.Add($"{ns}.{typeName}"); + } + } + if (index.RepoTypesBySimpleName.TryGetValue(typeName, out var repoOwners)) + { + foreach (var o in repoOwners.Where(o => importedNamespaces.Contains(o.Namespace))) + { + candidates.Add(o.FullName); + } + } + if (candidates.Count > 1) + { + var list = candidates.ToArray(); + ambiguousTypes.Add(new RunActionAmbiguousType( + typeName, + list, + $"ambiguous-type: {typeName} -> {string.Join(" | ", list)}")); + } + } + + // 4. Resolve remaining `using` directives (external packages, ASP.NET Core, xUnit, single-owner repo namespaces). + var allExternalPkgRefs = index.ProjectsByPath.Values + .SelectMany(p => p.PackageReferences) + .Where(r => !string.IsNullOrEmpty(r.Version)) + .GroupBy(r => r.Id, StringComparer.OrdinalIgnoreCase) + .ToDictionary(g => g.Key, g => g.First().Version!, StringComparer.OrdinalIgnoreCase); + foreach (var kvp in index.CentralPackageVersions) + { + allExternalPkgRefs.TryAdd(kvp.Key, kvp.Value); + } + + foreach (var ns in importedNamespaces.OrderBy(n => n, StringComparer.Ordinal)) + { + if (localNamespaces.Contains(ns)) { continue; } + if (ns == "Xunit" || ns.StartsWith("Xunit.", StringComparison.Ordinal)) + { + externalPins.TryAdd("xunit.v3", "4.0.3"); + continue; + } + if (ns == "Microsoft.AspNetCore" || ns.StartsWith("Microsoft.AspNetCore.", StringComparison.Ordinal)) + { + sdk = "Microsoft.NET.Sdk.Web"; + frameworkReferences.Add("Microsoft.AspNetCore.App"); + continue; + } + if (index.BclNamespaces.Contains(ns) || ns == "System" || ns.StartsWith("System.", StringComparison.Ordinal)) + { + if (!index.BclNamespaces.Contains(ns) && allExternalPkgRefs.TryGetValue(ns, out var sysPkgVer)) + { + externalPins[ns] = sysPkgVer; + } + continue; + } + if (resolvedNamespacesByType.Contains(ns)) { continue; } + + if (index.RepoNamespaces.TryGetValue(ns, out var repoProjs) && repoProjs.Count > 0) + { + if (repoProjs.Count == 1) + { + AddProjectRequirement(repoProjs[0], null, ns); + } + else + { + var matched = repoProjs.Where(p => !string.IsNullOrEmpty(ownerUid) && ownerUid.StartsWith(p.PackageId, StringComparison.OrdinalIgnoreCase)).ToList(); + foreach (var p in (matched.Count > 0 ? matched : repoProjs.Where(p => p.IsPackable).Take(1).ToList())) + { + AddProjectRequirement(p, null, ns); + } + } + continue; + } + + var bestPkg = allExternalPkgRefs.Keys + .Where(pkg => (ns.Equals(pkg, StringComparison.OrdinalIgnoreCase) || ns.StartsWith(pkg + ".", StringComparison.OrdinalIgnoreCase)) && + !pkg.Equals("xunit.v3.assert", StringComparison.OrdinalIgnoreCase)) + .OrderByDescending(pkg => pkg.Length) + .FirstOrDefault(); + + if (bestPkg is not null) + { + externalPins[bestPkg] = allExternalPkgRefs[bestPkg]; + continue; + } + + var prefixRoot = ns.Split('.')[0]; + var relatedExternal = allExternalPkgRefs.Keys + .Where(pkg => pkg.StartsWith(prefixRoot + ".", StringComparison.OrdinalIgnoreCase) && + !pkg.Equals("xunit.v3.assert", StringComparison.OrdinalIgnoreCase)) + .OrderBy(pkg => pkg.Length) + .FirstOrDefault(); + if (relatedExternal is not null) + { + externalPins[relatedExternal] = allExternalPkgRefs[relatedExternal]; + continue; + } + + unresolvedUsings.Add(ns); + missingPackages.Add(new RunActionMissingPackage( + ns, + "unknown", + null, + "unresolved-using", + $"missing-package: {ns} -> ")); + } + + if (isTest) + { + externalPins.TryAdd("xunit.v3", "4.0.3"); + } + + var dependsOn = new List(); + foreach (var proj in requiredProjects.Values.OrderBy(p => p.PackageId, StringComparer.OrdinalIgnoreCase)) + { + dependsOn.Add(string.IsNullOrEmpty(proj.Version) ? proj.PackageId : $"{proj.PackageId}@{proj.Version}"); + } + foreach (var kvp in externalPins.OrderBy(k => k.Key, StringComparer.OrdinalIgnoreCase)) + { + if (!requiredProjects.Values.Any(p => p.PackageId.Equals(kvp.Key, StringComparison.OrdinalIgnoreCase))) + { + dependsOn.Add($"{kvp.Key}@{kvp.Value}"); + } + } + + var errors = missingPackages.Select(m => m.Diagnostic) + .Concat(ambiguousTypes.Select(a => a.Diagnostic)) + .ToArray(); + + return new + { + dependsOn = dependsOn.Distinct(StringComparer.OrdinalIgnoreCase).ToArray(), + sdk, + frameworkReferences = frameworkReferences.OrderBy(f => f, StringComparer.OrdinalIgnoreCase).ToArray(), + typeOwnership = typeOwnership.ToArray(), + missingPackages = missingPackages.ToArray(), + ambiguousTypes = ambiguousTypes.ToArray(), + unresolvedUsings = unresolvedUsings.ToArray(), + unversionedPackages = unversionedPackages.OrderBy(p => p, StringComparer.OrdinalIgnoreCase).ToArray(), + preflightPassed = errors.Length == 0, + errors + }; + } + private static int Validate(Options options) { var report = new Report { Script = ScriptId }; diff --git a/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 b/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 index 63cb46e4..dd7cd506 100644 --- a/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 +++ b/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 @@ -1,13 +1,25 @@ #requires -Version 7.0 -[CmdletBinding()] +[CmdletBinding(PositionalBinding = $false)] param( - [Parameter(Mandatory)][string] $RepoRoot, + [string] $RepoRoot, [string] $Docfx, [string] $Settings, [string] $Framework = 'net10.0', [string] $CsrunImage = 'codebeltnet/csrun:10', [ValidateSet('None','Native','Docker','Both')][string] $Verify = 'None', - [string] $EnginePath + [string] $EnginePath, + [switch] $RunActionPlan, + [switch] $CheckRecipes, + [string] $ResolveDependencies, + [string] $ValidateRunAction, + [string] $ApplyRunAction, + [string] $Explain, + [switch] $Json, + [switch] $SummaryJson, + [switch] $VerifyChanged, + [Alias('Id')][string[]] $TargetId, + [int] $TimeoutSeconds = 60, + [Parameter(ValueFromRemainingArguments = $true)][string[]] $CliArgs ) $ErrorActionPreference = 'Stop' $PSNativeCommandUseErrorActionPreference = $false @@ -16,8 +28,96 @@ $helpers = Join-Path $PSScriptRoot '../../dotnet-csrun/scripts/sample-tools.ps1' if (-not (Test-Path $helpers)) { throw "Install dotnet-csrun beside this skill: $helpers" } . $helpers Set-StrictMode -Off + +# Parse GNU/CLI-style --flags alongside native PowerShell -Parameters. +$idList = [Collections.Generic.List[string]]::new() +if ($TargetId) { foreach ($item in $TargetId) { if ($item) { $idList.Add($item) } } } +if ($CliArgs -and $CliArgs.Count -gt 0) { + $i = 0 + while ($i -lt $CliArgs.Count) { + $arg = [string]$CliArgs[$i] + switch ($arg) { + '--repo-root' { + if (($i + 1) -ge $CliArgs.Count) { [Console]::Error.WriteLine('Missing value for --repo-root'); exit 3 } + $RepoRoot = [string]$CliArgs[++$i] + } + '--docfx' { + if (($i + 1) -ge $CliArgs.Count) { [Console]::Error.WriteLine('Missing value for --docfx'); exit 3 } + $Docfx = [string]$CliArgs[++$i] + } + '--settings' { + if (($i + 1) -ge $CliArgs.Count) { [Console]::Error.WriteLine('Missing value for --settings'); exit 3 } + $Settings = [string]$CliArgs[++$i] + } + '--framework' { + if (($i + 1) -ge $CliArgs.Count) { [Console]::Error.WriteLine('Missing value for --framework'); exit 3 } + $Framework = [string]$CliArgs[++$i] + } + '--csrun-image' { + if (($i + 1) -ge $CliArgs.Count) { [Console]::Error.WriteLine('Missing value for --csrun-image'); exit 3 } + $CsrunImage = [string]$CliArgs[++$i] + } + '--engine-path' { + if (($i + 1) -ge $CliArgs.Count) { [Console]::Error.WriteLine('Missing value for --engine-path'); exit 3 } + $EnginePath = [string]$CliArgs[++$i] + } + '--verify' { + if (($i + 1) -lt $CliArgs.Count -and [string]$CliArgs[$i + 1] -in @('None','Native','Docker','Both','none','native','docker','both')) { + $val = [string]$CliArgs[++$i] + $Verify = $val.Substring(0,1).ToUpperInvariant() + $val.Substring(1).ToLowerInvariant() + } else { + $Verify = 'Native' + } + } + '--verify-changed' { + $VerifyChanged = $true + } + '--id' { + if (($i + 1) -ge $CliArgs.Count) { [Console]::Error.WriteLine('Missing value for --id'); exit 3 } + $idList.Add([string]$CliArgs[++$i]) + } + '--run-action-plan' { $RunActionPlan = $true } + '--check-recipes' { $CheckRecipes = $true } + '--resolve-dependencies' { + if (($i + 1) -ge $CliArgs.Count) { [Console]::Error.WriteLine('Missing value for --resolve-dependencies'); exit 3 } + $ResolveDependencies = [string]$CliArgs[++$i] + } + '--validate-run-action' { + if (($i + 1) -ge $CliArgs.Count) { [Console]::Error.WriteLine('Missing value for --validate-run-action'); exit 3 } + $ValidateRunAction = [string]$CliArgs[++$i] + } + '--apply-run-action' { + if (($i + 1) -ge $CliArgs.Count) { [Console]::Error.WriteLine('Missing value for --apply-run-action'); exit 3 } + $ApplyRunAction = [string]$CliArgs[++$i] + } + '--explain' { + if (($i + 1) -ge $CliArgs.Count) { [Console]::Error.WriteLine('Missing value for --explain'); exit 3 } + $Explain = [string]$CliArgs[++$i] + } + '--json' { $Json = $true } + '--summary-json' { $SummaryJson = $true } + '--timeout-seconds' { + if (($i + 1) -ge $CliArgs.Count) { [Console]::Error.WriteLine('Missing value for --timeout-seconds'); exit 3 } + $TimeoutSeconds = [int]$CliArgs[++$i] + } + default { + [Console]::Error.WriteLine("Unknown argument: $arg") + exit 3 + } + } + $i++ + } +} +if ($VerifyChanged -and $Verify -eq 'None') { $Verify = 'Native' } +if (-not $RepoRoot) { [Console]::Error.WriteLine('Missing required parameter: -RepoRoot / --repo-root'); exit 3 } +if ($TimeoutSeconds -lt 3 -or $TimeoutSeconds -gt 600) { [Console]::Error.WriteLine('--timeout-seconds must be between 3 and 600.'); exit 3 } + function Hash([string] $Text) { [Convert]::ToHexString([Security.Cryptography.SHA256]::HashData([Text.Encoding]::UTF8.GetBytes($Text))) } function Normalize([string] $Text) { $Text.Replace("`r`n", "`n").TrimEnd("`n", "`r") } +function Canonicalize-Whitespace([string] $Text) { + $lines = @($Text.Replace("`r`n", "`n").Replace("`r", "`n") -split "`n" | ForEach-Object { $_.TrimEnd(' ', "`t") }) + ($lines -join "`n").TrimEnd("`n") +} function Get-UnixCacheMetadata([string] $Path) { $statArgs = if ($IsMacOS) { @('-f', '%u %l %p', $Path) } else { @('-c', '%u %h %f', '--', $Path) } $metadata = & stat @statArgs 2>$null @@ -37,7 +137,7 @@ function Test-PrivateCacheItem([string] $Path, [switch] $Directory) { return $metadata.Owner -eq $cacheOwner -and ($metadata.Mode -band 63) -eq 0 -and ($Directory -or (($metadata.Mode -band 0xF000) -eq 0x8000 -and $metadata.Links -eq 1)) } -function Get-PrivateCacheDirectory([string] $BasePath) { +function Get-PrivateCacheDirectory([string] $BasePath, [switch] $EnsureCreated) { if (-not $BasePath -or -not [IO.Path]::IsPathFullyQualified($BasePath)) { return } for ($ancestor = [IO.DirectoryInfo]::new($BasePath); $ancestor; $ancestor = $ancestor.Parent) { $item = Get-Item -LiteralPath $ancestor.FullName -Force -ErrorAction SilentlyContinue @@ -48,7 +148,7 @@ function Get-PrivateCacheDirectory([string] $BasePath) { } } $path = Join-Path $BasePath '.docfx-run-verification' - if ($Verify -ne 'None' -and -not (Get-Item -LiteralPath $path -Force -ErrorAction SilentlyContinue)) { + if ($EnsureCreated -and -not (Get-Item -LiteralPath $path -Force -ErrorAction SilentlyContinue)) { if ($IsWindows) { $null = [IO.Directory]::CreateDirectory($path) } else { & (Get-Command mkdir -CommandType Application | Select-Object -First 1).Source -m 700 -- $path 2>$null } } @@ -61,7 +161,21 @@ function Write-Changed([string] $Path, [string] $Text) { [IO.File]::WriteAllText($Path, $Text, [Text.UTF8Encoding]::new($false)) return $true } -# Preserve the original encoding/BOM and line endings when adding/removing owned HTML. +function Write-AtomicChanged([string] $Path, [string] $Text) { + Assert-RepositoryPath $Path + if ((Test-Path -LiteralPath $Path) -and [IO.File]::ReadAllText($Path) -ceq $Text) { return $false } + $dir = [IO.Path]::GetDirectoryName($Path) + $null = [IO.Directory]::CreateDirectory($dir) + $tmp = Join-Path $dir ('.' + [IO.Path]::GetFileName($Path) + '.tmp.' + [guid]::NewGuid().ToString('N')) + try { + [IO.File]::WriteAllText($tmp, $Text, [Text.UTF8Encoding]::new($false)) + [IO.File]::Move($tmp, $Path, $true) + } finally { + if (Test-Path -LiteralPath $tmp) { [IO.File]::Delete($tmp) } + } + return $true +} +# Preserve the original encoding/BOM and line endings when adding/removing owned HTML or updating a fence. function Write-Page([string] $Path, [string] $Original, [string] $Updated) { if ($Original -ceq $Updated) { return } $bytes = [IO.File]::ReadAllBytes($Path) @@ -84,6 +198,44 @@ function Assert-RepositoryPath([string] $Path) { if ((Test-Path -LiteralPath $current) -and ((Get-Item -LiteralPath $current -Force).Attributes -band [IO.FileAttributes]::ReparsePoint)) { throw "Linked output path: $current" } } } +function Get-EngineFailureReason([string] $Message) { + if ($Message -match 'HTTP 403' -and $Message -match 'no verified cached engine') { return 'github-403-no-cached-engine' } + if ($Message -match 'HTTP 429' -and $Message -match 'no verified cached engine') { return 'github-429-no-cached-engine' } + if ($Message -match 'csrun engine asset not found') { return 'engine-path-not-found' } + return 'engine-resolution-failed' +} +function Resolve-LocalNuGetPackageVersion([string] $PackageId) { + if (-not $PackageId) { return $null } + $nugetRoot = if ($env:NUGET_PACKAGES) { $env:NUGET_PACKAGES } else { Join-Path $HOME '.nuget/packages' } + $pkgDir = Join-Path $nugetRoot $PackageId.ToLowerInvariant() + if (-not (Test-Path -LiteralPath $pkgDir -PathType Container)) { return $null } + $stable = @(Get-ChildItem -LiteralPath $pkgDir -Directory | Where-Object { $_.Name -match '^\d+\.\d+\.\d+$' } | Sort-Object { [version]$_.Name } -Descending) + if ($stable.Count -gt 0) { return $stable[0].Name } + return $null +} +function Get-GitLatestSemVerTag([string] $RepositoryRoot) { + try { + $git = Get-Command git -CommandType Application -ErrorAction SilentlyContinue | Select-Object -First 1 + if (-not $git) { return $null } + $tags = & $git.Source -C $RepositoryRoot tag --sort=-v:refname 2>$null + if ($LASTEXITCODE -ne 0) { return $null } + foreach ($tag in @($tags)) { + if ($tag -match '^v?(\d+\.\d+\.\d+)$') { return $Matches[1] } + } + } catch {} + return $null +} +function Get-GitHeadFileText([string] $RepositoryRoot, [string] $FullPath) { + try { + $git = Get-Command git -CommandType Application -ErrorAction SilentlyContinue | Select-Object -First 1 + if (-not $git) { return $null } + $rel = [IO.Path]::GetRelativePath($RepositoryRoot, $FullPath).Replace('\', '/') + $out = & $git.Source -C $RepositoryRoot show "HEAD:$rel" 2>$null + if ($LASTEXITCODE -eq 0 -and $null -ne $out) { return ($out -join "`n") } + } catch {} + return $null +} + $arguments = @('--repo-root', $root, '--run-action-inventory') if ($Docfx) { $arguments += @('--docfx', $Docfx) } # One inventory process per repository, never one model/process per document. @@ -96,34 +248,1202 @@ Assert-RepositoryPath $configPath $manifestPath = Join-Path $workspace 'run-actions.manifest.json' $cacheOwner = if ($IsWindows) { [Security.Principal.WindowsIdentity]::GetCurrent().User.Value } else { & id -u } $cacheBase = if ($IsWindows) { [Environment]::GetFolderPath('LocalApplicationData') } else { $HOME } -$evidenceDirectory = Get-PrivateCacheDirectory $cacheBase +$needsCacheDir = ($Verify -ne 'None') -or [bool]$ValidateRunAction -or [bool]$ApplyRunAction +$evidenceDirectory = Get-PrivateCacheDirectory $cacheBase -EnsureCreated:$needsCacheDir $configHash = Hash $configPath + +$oldManifestRaw = $null $oldManifestById = @{} +$oldManifestObjectsById = @{} +$oldManifestByUidAndHash = @{} if (Test-Path -LiteralPath $manifestPath) { - $oldManifestDoc = Get-Content $manifestPath -Raw | ConvertFrom-Json + $oldManifestRaw = [IO.File]::ReadAllText($manifestPath) + $oldManifestDoc = $oldManifestRaw | ConvertFrom-Json foreach ($entry in @($oldManifestDoc.examples)) { - if ($entry.id) { $oldManifestById[$entry.id] = ($entry | ConvertTo-Json -Depth 30 -Compress) } + if ($entry.id) { + $oldManifestById[$entry.id] = ($entry | ConvertTo-Json -Depth 30 -Compress) + $oldManifestObjectsById[$entry.id] = $entry + } + $entrySource = $null + if ($entry.PSObject.Properties['manifest'] -and $entry.manifest -and $entry.manifest.PSObject.Properties['source']) { + $entrySource = Normalize ([string]$entry.manifest.source) + } elseif ($entry.PSObject.Properties['source'] -and $entry.source) { + $entrySource = Normalize ([string]$entry.source) + } + if ($entrySource) { + $ehash = Hash $entrySource + $euid = if ($entry.PSObject.Properties['uid'] -and $entry.uid) { [string]$entry.uid } else { '' } + $oldManifestByUidAndHash["$euid|$ehash"] = $entry + $oldManifestByUidAndHash["|$ehash"] = $entry + } } } + $recipes = @() if (-not $Settings) { $Settings = Join-Path $workspace 'run-actions.settings.json' } if (Test-Path $Settings) { $recipes = @((Get-Content $Settings -Raw | ConvertFrom-Json).examples) } + +# Collect known package version pins from existing recipes so unversioned MinVer packages can inherit pinned versions. +$knownPackageVersions = [hashtable]::new([StringComparer]::OrdinalIgnoreCase) +foreach ($r in $recipes) { + $pins = @() + if ($r.manifest -and $r.manifest.dependsOn) { $pins += @($r.manifest.dependsOn) } + if ($r.hostHarness -and $r.hostHarness.dependsOn) { $pins += @($r.hostHarness.dependsOn) } + foreach ($pin in $pins) { + if ($pin -match '^([^@]+)@(.+)$') { $knownPackageVersions[$Matches[1]] = $Matches[2] } + } +} +$gitSemVerTag = $null +$gitTagChecked = $false + +# Build normalized example records with stable exampleId (uid#), fenceOrdinal, id, classification, and enriched dependencies. +$normalizedExamples = [Collections.Generic.List[object]]::new() +$seenOrdinalByUid = [hashtable]::new([StringComparer]::Ordinal) +$totalOrdinalByUid = [hashtable]::new([StringComparer]::Ordinal) +foreach ($ex in @($inventory.examples)) { + $uKey = if ($ex.uid) { [string]$ex.uid } else { [IO.Path]::GetRelativePath($root, $ex.file).Replace('\', '/') } + if (-not $totalOrdinalByUid.ContainsKey($uKey)) { $totalOrdinalByUid[$uKey] = 0 } + $totalOrdinalByUid[$uKey]++ +} +$seenIdSet = [Collections.Generic.HashSet[string]]::new([StringComparer]::Ordinal) + +foreach ($ex in @($inventory.examples)) { + $uKey = if ($ex.uid) { [string]$ex.uid } else { [IO.Path]::GetRelativePath($root, $ex.file).Replace('\', '/') } + if (-not $seenOrdinalByUid.ContainsKey($uKey)) { $seenOrdinalByUid[$uKey] = 0 } + $seenOrdinalByUid[$uKey]++ + $ordinal = if ($ex.PSObject.Properties['fenceOrdinal'] -and $ex.fenceOrdinal) { [int]$ex.fenceOrdinal } else { $seenOrdinalByUid[$uKey] } + $fenceCount = if ($ex.PSObject.Properties['fenceCountOnUid'] -and $ex.fenceCountOnUid) { [int]$ex.fenceCountOnUid } else { $totalOrdinalByUid[$uKey] } + $exampleId = if ($ex.PSObject.Properties['exampleId'] -and $ex.exampleId) { [string]$ex.exampleId } else { "$uKey#$ordinal" } + + $displayedSource = Normalize ([string]$ex.code) + $source = $displayedSource + if ($ex.source) { $source = Normalize (($source -split "`n" | Select-Object -Skip 2) -join "`n") } + $sourceHash = Hash $source + $wsHash = if ($ex.PSObject.Properties['whitespaceSha256'] -and $ex.whitespaceSha256) { [string]$ex.whitespaceSha256 } else { Hash (Canonicalize-Whitespace $source) } + $identity = if ($ex.source) { [IO.Path]::GetRelativePath($root, $ex.source).Replace('\','/') + '|' + $sourceHash } else { $sourceHash } + $baseId = (Hash ("$($ex.uid)|$([IO.Path]::GetRelativePath($root, $ex.file).Replace('\','/'))|$identity")).Substring(0,24).ToLowerInvariant() + $id = $baseId + if (-not $seenIdSet.Add($id)) { + $id = (Hash ("$($ex.uid)|$([IO.Path]::GetRelativePath($root, $ex.file).Replace('\','/'))|$identity|#$ordinal")).Substring(0,24).ToLowerInvariant() + $null = $seenIdSet.Add($id) + } + + # Classification fallback for mocked inventories that omit Roslyn metadata. + $classification = if ($ex.PSObject.Properties['classification'] -and $ex.classification) { + $ex.classification + } else { + $cat = if ($ex.standalone -or $ex.isTest) { 'already-standalone' } else { 'no-entry' } + $rc = if ($ex.isTest) { 'xunit-test' } elseif ($ex.standalone) { 'top-level-program' } else { 'no-entry-point' } + [pscustomobject]@{ + category = $cat + reasonCode = $rc + convertible = [bool]($ex.standalone -or $ex.isTest) + suggestedMode = if ($ex.isTest) { 'test' } else { 'console' } + entryPoint = $null + blockingConstruct = $null + blockingLine = $null + manualHarness = $null + candidateSource = if ($ex.standalone -or $ex.isTest) { $source } else { $null } + } + } + + # Dependency enrichment (fill unversioned repo packages from settings/NuGet cache/git tags). + $rawDeps = if ($ex.PSObject.Properties['dependencies'] -and $ex.dependencies) { $ex.dependencies } else { $null } + $resolvedDependsOn = [Collections.Generic.List[string]]::new() + $depErrors = [Collections.Generic.List[string]]::new() + $missingPkgs = [Collections.Generic.List[object]]::new() + $ambiguousTypes = [Collections.Generic.List[object]]::new() + $unresolvedUsings = [Collections.Generic.List[string]]::new() + $typeOwnership = [Collections.Generic.List[object]]::new() + $fwRefs = [Collections.Generic.List[string]]::new() + $depSdk = if ($rawDeps -and $rawDeps.sdk) { [string]$rawDeps.sdk } else { 'Microsoft.NET.Sdk' } + + if ($rawDeps) { + foreach ($item in @($rawDeps.typeOwnership)) { $typeOwnership.Add($item) } + foreach ($item in @($rawDeps.missingPackages)) { $missingPkgs.Add($item) } + foreach ($item in @($rawDeps.ambiguousTypes)) { $ambiguousTypes.Add($item) } + foreach ($item in @($rawDeps.unresolvedUsings)) { $unresolvedUsings.Add([string]$item) } + foreach ($item in @($rawDeps.frameworkReferences)) { $fwRefs.Add([string]$item) } + foreach ($item in @($rawDeps.errors)) { $depErrors.Add([string]$item) } + foreach ($dep in @($rawDeps.dependsOn)) { + if ($dep -match '^[^@]+@.+$') { + $resolvedDependsOn.Add([string]$dep) + } else { + $pkgName = [string]$dep + $ver = $null + if ($knownPackageVersions.ContainsKey($pkgName)) { + $ver = $knownPackageVersions[$pkgName] + } else { + # Check sibling package with same root prefix in known versions. + $rootPrefixPkg = ($pkgName -split '\.')[0] + '.' + foreach ($k in $knownPackageVersions.Keys) { + if ($k.StartsWith($rootPrefixPkg, [StringComparison]::OrdinalIgnoreCase)) { $ver = $knownPackageVersions[$k]; break } + } + } + if (-not $ver) { $ver = Resolve-LocalNuGetPackageVersion $pkgName } + if (-not $ver) { + if (-not $gitTagChecked) { $gitSemVerTag = Get-GitLatestSemVerTag $root; $gitTagChecked = $true } + $ver = $gitSemVerTag + } + if ($ver) { + $resolvedDependsOn.Add("$pkgName@$ver") + } else { + $resolvedDependsOn.Add($pkgName) + $diag = "missing-package: $pkgName -> $pkgName@" + $missingPkgs.Add([pscustomobject]@{ type = $pkgName; package = $pkgName; project = $null; reason = 'unversioned-package'; diagnostic = $diag }) + $depErrors.Add($diag) + } + } + } + } + $enrichedDeps = [ordered]@{ + dependsOn = @($resolvedDependsOn | Select-Object -Unique) + sdk = $depSdk + frameworkReferences = @($fwRefs | Select-Object -Unique) + typeOwnership = @($typeOwnership) + missingPackages = @($missingPkgs) + ambiguousTypes = @($ambiguousTypes) + unresolvedUsings = @($unresolvedUsings) + preflightPassed = ($depErrors.Count -eq 0) + errors = @($depErrors) + } + + $normalizedExamples.Add([pscustomobject]@{ + raw = $ex + id = $id + exampleId = $exampleId + uid = $ex.uid + fenceOrdinal = $ordinal + fenceCountOnUid = $fenceCount + file = $ex.file + startLine = [int]$ex.startLine + endLine = if ($ex.PSObject.Properties['endLine'] -and $ex.endLine) { [int]$ex.endLine } else { 0 } + displayedSource = $displayedSource + source = $source + sourceSha256 = $sourceHash + whitespaceSha256 = $wsHash + isTest = [bool]$ex.isTest + standalone = [bool]$ex.standalone + eligible = [bool]$ex.eligible + contextError = $ex.contextError + classification = $classification + dependencies = [pscustomobject]$enrichedDeps + }) +} + +# Build recipe lookup maps with multi-fence safety (exact exampleId/ordinal first, legacy uid+hash fallback). +$recipeByExactOrdinal = [hashtable]::new([StringComparer]::Ordinal) +$recipeByUidHash = [hashtable]::new([StringComparer]::Ordinal) +$duplicateRecipeKeys = [Collections.Generic.List[string]]::new() +foreach ($recipe in $recipes) { + $rHash = if ($recipe.sourceSha256) { ([string]$recipe.sourceSha256).ToUpperInvariant() } else { '' } + $rUid = [string]$recipe.uid + $rOrdinal = $null + if ($recipe.PSObject.Properties['fenceOrdinal'] -and $null -ne $recipe.fenceOrdinal) { + $rOrdinal = [int]$recipe.fenceOrdinal + } elseif ($recipe.PSObject.Properties['exampleId'] -and ([string]$recipe.exampleId) -match '#(\d+)$') { + $rOrdinal = [int]$Matches[1] + } + if ($null -ne $rOrdinal) { + $exactKey = "$rUid#$rOrdinal|$rHash" + if ($recipeByExactOrdinal.ContainsKey($exactKey)) { $duplicateRecipeKeys.Add($exactKey) } + else { $recipeByExactOrdinal[$exactKey] = $recipe } + } else { + $legacyKey = "$rUid|$rHash" + if ($recipeByUidHash.ContainsKey($legacyKey)) { $duplicateRecipeKeys.Add($legacyKey) } + else { $recipeByUidHash[$legacyKey] = $recipe } + } +} + +function Find-MatchingRecipe($ExampleObj) { + $exactKey = "$($ExampleObj.uid)#$($ExampleObj.fenceOrdinal)|$($ExampleObj.sourceSha256)" + if ($recipeByExactOrdinal.ContainsKey($exactKey)) { return $recipeByExactOrdinal[$exactKey] } + $legacyKey = "$($ExampleObj.uid)|$($ExampleObj.sourceSha256)" + if ($recipeByUidHash.ContainsKey($legacyKey)) { return $recipeByUidHash[$legacyKey] } + return $null +} + +function Select-TargetExamples([string[]] $Selectors) { + $matched = [Collections.Generic.List[object]]::new() + $seen = [Collections.Generic.HashSet[string]]::new([StringComparer]::Ordinal) + foreach ($sel in $Selectors) { + foreach ($ex in $normalizedExamples) { + if ($ex.exampleId -ceq $sel -or $ex.uid -ceq $sel -or $ex.id -ceq $sel) { + if ($seen.Add($ex.exampleId)) { $matched.Add($ex) } + } + } + } + return $matched +} + +function Get-EffectivePlanEntry($ExampleObj) { + $recipe = Find-MatchingRecipe $ExampleObj + $cat = [string]$ExampleObj.classification.category + $rc = [string]$ExampleObj.classification.reasonCode + $conv = [bool]$ExampleObj.classification.convertible + $sMode = [string]$ExampleObj.classification.suggestedMode + $bConstruct = $ExampleObj.classification.blockingConstruct + $bLine = $ExampleObj.classification.blockingLine + $mHarness = $ExampleObj.classification.manualHarness + $recipeStatus = 'unresolved' + + if ($recipe -and $recipe.intrinsicLimitation) { + $cat = 'intrinsic' + $rc = 'intrinsic-limitation' + $conv = $false + $bConstruct = [string]$recipe.intrinsicLimitation + $recipeStatus = 'intrinsic' + } elseif ($recipe) { + $recipeStatus = 'paired' + if ($recipe.mode -eq 'host' -or $recipe.PSObject.Properties['hostHarness']) { $sMode = 'host' } + } elseif ($ExampleObj.sourceSha256 -ceq '47B0C1FBA94E7B43C8753D0A8242801B328E6B463B6EEDAEB640D4F8A262633E') { + $recipeStatus = 'paired' + } elseif (-not $ExampleObj.raw.source -and $ExampleObj.eligible -and $ExampleObj.standalone -ne $ExampleObj.isTest -and $ExampleObj.source -notmatch '(?m)^#:') { + $recipeStatus = 'paired' + } + + return [ordered]@{ + exampleId = $ExampleObj.exampleId + uid = $ExampleObj.uid + fenceOrdinal = $ExampleObj.fenceOrdinal + fenceCountOnUid = $ExampleObj.fenceCountOnUid + id = $ExampleObj.id + file = $ExampleObj.file + startLine = $ExampleObj.startLine + endLine = $ExampleObj.endLine + sourceSha256 = $ExampleObj.sourceSha256 + category = $cat + reasonCode = $rc + convertible = $conv + suggestedMode = $sMode + entryPoint = $ExampleObj.classification.entryPoint + blockingConstruct = $bConstruct + blockingLine = $bLine + manualHarness = $mHarness + recipeStatus = $recipeStatus + dependencies = $ExampleObj.dependencies + } +} + +function Get-ValidationReceiptPath([string] $ExampleId, [string] $CandidateSourceSha256, [string] $RecipeSha256) { + if (-not $evidenceDirectory) { return $null } + $key = (Hash "$configHash|$ExampleId|$CandidateSourceSha256|$RecipeSha256").Substring(0, 24).ToLowerInvariant() + return (Join-Path $evidenceDirectory "validation-$configHash-$key.json") +} + +function Build-CandidateRecipeAndSource($ExampleObj) { + $existing = Find-MatchingRecipe $ExampleObj + $cat = [string]$ExampleObj.classification.category + $isHost = ($cat -eq 'host-blocking') -or ($existing -and ($existing.mode -eq 'host' -or $existing.PSObject.Properties['hostHarness'])) + $candidateSource = if ($isHost) { + $ExampleObj.source + } elseif ($ExampleObj.classification.candidateSource) { + Normalize ([string]$ExampleObj.classification.candidateSource) + } else { + $ExampleObj.source + } + $candidateHash = Hash $candidateSource + $candidateWsHash = Hash (Canonicalize-Whitespace $candidateSource) + $converted = ($candidateSource -cne $ExampleObj.source) + $deps = @($ExampleObj.dependencies.dependsOn) + + if ($isHost) { + $hh = if ($existing -and $existing.PSObject.Properties['hostHarness'] -and $existing.hostHarness) { + $existing.hostHarness + } else { + [ordered]@{ + sdk = if ($ExampleObj.dependencies.sdk) { $ExampleObj.dependencies.sdk } else { 'Microsoft.NET.Sdk.Web' } + framework = $Framework + dependsOn = $deps + probePath = '/' + probeMethod = 'GET' + timeoutSeconds = [Math]::Min([Math]::Max($TimeoutSeconds, 5), 30) + } + } + $recipeObj = [ordered]@{ + uid = $ExampleObj.uid + exampleId = $ExampleObj.exampleId + fenceOrdinal = $ExampleObj.fenceOrdinal + sourceSha256 = $candidateHash + whitespaceSha256 = $candidateWsHash + mode = 'host' + hostHarness = $hh + } + $mode = 'host' + } else { + $mode = if ($ExampleObj.isTest -or $ExampleObj.classification.suggestedMode -eq 'test') { 'test' } else { 'console' } + if ($mode -eq 'test' -and -not ($deps | Where-Object { $_ -like 'xunit.v3@*' })) { + $deps = @($deps + 'xunit.v3@4.0.3') + } + $recipeObj = [ordered]@{ + uid = $ExampleObj.uid + exampleId = $ExampleObj.exampleId + fenceOrdinal = $ExampleObj.fenceOrdinal + sourceSha256 = $candidateHash + whitespaceSha256 = $candidateWsHash + manifest = [ordered]@{ + schemaVersion = 1 + mode = $mode + framework = $Framework + dependsOn = @($deps) + } + } + } + + $recipeCanonical = $recipeObj | ConvertTo-Json -Depth 30 -Compress + $recipeSha256 = Hash $recipeCanonical + return [pscustomobject]@{ + mode = $mode + isHost = $isHost + converted = $converted + candidateSource = $candidateSource + candidateSourceSha256 = $candidateHash + candidateWhitespaceSha256 = $candidateWsHash + dependsOn = @($deps) + sdk = if ($ExampleObj.dependencies.sdk) { [string]$ExampleObj.dependencies.sdk } else { 'Microsoft.NET.Sdk' } + recipe = $recipeObj + recipeSha256 = $recipeSha256 + } +} + +# --------------------------------------------------------------------------- +# MODE 1: --run-action-plan [--json] +# --------------------------------------------------------------------------- +if ($RunActionPlan) { + $planItems = [Collections.Generic.List[object]]::new() + $byCategory = [ordered]@{} + $convertibleCount = 0; $nonConvertibleCount = 0; $pairedCount = 0; $unresolvedCount = 0; $intrinsicCount = 0 + foreach ($ex in $normalizedExamples) { + $item = Get-EffectivePlanEntry $ex + $planItems.Add($item) + if (-not $byCategory.Contains($item.category)) { $byCategory[$item.category] = 0 } + $byCategory[$item.category]++ + if ($item.convertible) { $convertibleCount++ } else { $nonConvertibleCount++ } + switch ($item.recipeStatus) { + 'paired' { $pairedCount++ } + 'intrinsic' { $intrinsicCount++ } + default { $unresolvedCount++ } + } + } + $plan = [ordered]@{ + schemaVersion = 2 + config = $configPath + summary = [ordered]@{ + total = $planItems.Count + convertible = $convertibleCount + nonConvertible = $nonConvertibleCount + paired = $pairedCount + unresolved = $unresolvedCount + intrinsic = $intrinsicCount + byCategory = $byCategory + } + examples = @($planItems) + } + if ($Json -or $SummaryJson) { + $plan | ConvertTo-Json -Depth 30 + } else { + Write-Output "Run-action plan for $configPath ($($planItems.Count) examples: $pairedCount paired, $unresolvedCount unresolved, $intrinsicCount intrinsic)" + foreach ($k in $byCategory.Keys) { Write-Output " $k : $($byCategory[$k])" } + foreach ($item in $planItems) { + $blocker = if ($item.blockingConstruct) { " | blocker line $($item.blockingLine): $($item.blockingConstruct)" } else { '' } + Write-Output "- $($item.exampleId) [$($item.category)/$($item.reasonCode)] convertible=$($item.convertible) status=$($item.recipeStatus)$blocker" + } + } + exit 0 +} + +# --------------------------------------------------------------------------- +# MODE 2: --explain +# --------------------------------------------------------------------------- +if ($Explain) { + $targets = Select-TargetExamples @($Explain) + if ($targets.Count -eq 0) { + if ($Json) { ([ordered]@{ schemaVersion = 2; error = 'example-not-found'; selector = $Explain } | ConvertTo-Json -Depth 10) } + else { [Console]::Error.WriteLine("Example not found: $Explain") } + exit 3 + } + $entries = @($targets | ForEach-Object { Get-EffectivePlanEntry $_ }) + if ($Json) { + ([ordered]@{ schemaVersion = 2; selector = $Explain; examples = $entries } | ConvertTo-Json -Depth 30) + } else { + foreach ($e in $entries) { + Write-Output "Example: $($e.exampleId) (id: $($e.id))" + Write-Output " File: $($e.file):$($e.startLine)" + Write-Output " Category: $($e.category) (reason: $($e.reasonCode))" + Write-Output " Convertible: $($e.convertible) | Suggested mode: $($e.suggestedMode) | Recipe status: $($e.recipeStatus)" + if ($e.blockingConstruct) { + $lineNote = if ($e.blockingLine) { " (fence line $($e.blockingLine))" } else { '' } + Write-Output " Blocking construct: $($e.blockingConstruct)$lineNote" + } + if ($e.entryPoint) { + Write-Output " Entry point: $($e.entryPoint.type).$($e.entryPoint.method) (static=$($e.entryPoint.isStatic), async=$($e.entryPoint.isAsync), return=$($e.entryPoint.returnType))" + } + $depsText = if (@($e.dependencies.dependsOn).Count) { (@($e.dependencies.dependsOn) -join ', ') } else { '(none)' } + Write-Output " Dependencies: $depsText (preflightPassed=$($e.dependencies.preflightPassed))" + foreach ($err in @($e.dependencies.errors)) { Write-Output " Dependency issue: $err" } + if ($e.manualHarness) { Write-Output " Manual harness / guidance: $($e.manualHarness)" } + } + } + exit 0 +} + +# --------------------------------------------------------------------------- +# MODE 3: --check-recipes [--json] +# --------------------------------------------------------------------------- +if ($CheckRecipes) { + $issues = [Collections.Generic.List[object]]::new() + $recipeStatuses = [Collections.Generic.List[object]]::new() + $matchedCount = 0; $movedCount = 0; $dupCount = 0; $orphanCount = 0; $wsOrphanCount = 0; $semOrphanCount = 0 + + $byUid = [hashtable]::new([StringComparer]::Ordinal) + foreach ($ex in $normalizedExamples) { + $k = [string]$ex.uid + if (-not $byUid.ContainsKey($k)) { $byUid[$k] = [Collections.Generic.List[object]]::new() } + $byUid[$k].Add($ex) + } + + # Check duplicate recipes (same exampleId, same uid+hash, or multiple un-indexed recipes targeting same uid). + $seenExact = [hashtable]::new([StringComparer]::Ordinal) + $seenUidHash = [hashtable]::new([StringComparer]::Ordinal) + $unindexedCountByUid = [hashtable]::new([StringComparer]::Ordinal) + for ($idx = 0; $idx -lt $recipes.Count; $idx++) { + $r = $recipes[$idx] + $rUid = [string]$r.uid + $rHash = if ($r.sourceSha256) { ([string]$r.sourceSha256).ToUpperInvariant() } else { '' } + $rOrd = $null + if ($r.PSObject.Properties['fenceOrdinal'] -and $null -ne $r.fenceOrdinal) { $rOrd = [int]$r.fenceOrdinal } + elseif ($r.PSObject.Properties['exampleId'] -and ([string]$r.exampleId) -match '#(\d+)$') { $rOrd = [int]$Matches[1] } + + if ($null -ne $rOrd) { + $ek = "$rUid#$rOrd" + if ($seenExact.ContainsKey($ek)) { + $dupCount++ + $issues.Add([ordered]@{ + kind = 'duplicate-uid' + uid = $rUid + exampleId = $ek + recipeIndex = $idx + sourceSha256 = $rHash + reason = "Multiple recipes target the same stable exampleId '$ek'." + }) + } else { $seenExact[$ek] = $idx } + } else { + if (-not $unindexedCountByUid.ContainsKey($rUid)) { $unindexedCountByUid[$rUid] = 0 } + $unindexedCountByUid[$rUid]++ + } + + $uhKey = "$rUid|$rHash" + if ($seenUidHash.ContainsKey($uhKey)) { + $dupCount++ + $issues.Add([ordered]@{ + kind = 'duplicate-uid' + uid = $rUid + exampleId = if ($null -ne $rOrd) { "$rUid#$rOrd" } else { $rUid } + recipeIndex = $idx + sourceSha256 = $rHash + reason = "Duplicate recipe for '$uhKey'." + }) + } else { $seenUidHash[$uhKey] = $idx } + } + + foreach ($uKey in $unindexedCountByUid.Keys) { + if ($unindexedCountByUid[$uKey] -gt 1) { + $dupCount++ + $issues.Add([ordered]@{ + kind = 'duplicate-uid' + uid = $uKey + exampleId = $uKey + reason = "Multiple recipes target UID '$uKey' without distinguishing fenceOrdinal/exampleId." + }) + } + } + + # Check every recipe for matched / moved / orphaned (whitespace-only vs semantic). + for ($idx = 0; $idx -lt $recipes.Count; $idx++) { + $r = $recipes[$idx] + $rUid = [string]$r.uid + $rHash = if ($r.sourceSha256) { ([string]$r.sourceSha256).ToUpperInvariant() } else { '' } + $rWsHash = if ($r.PSObject.Properties['whitespaceSha256'] -and $r.whitespaceSha256) { ([string]$r.whitespaceSha256).ToUpperInvariant() } else { $null } + $rOrd = $null + if ($r.PSObject.Properties['fenceOrdinal'] -and $null -ne $r.fenceOrdinal) { $rOrd = [int]$r.fenceOrdinal } + elseif ($r.PSObject.Properties['exampleId'] -and ([string]$r.exampleId) -match '#(\d+)$') { $rOrd = [int]$Matches[1] } + + $uidFences = if ($byUid.ContainsKey($rUid)) { @($byUid[$rUid]) } else { @() } + $hashMatch = @($uidFences | Where-Object { $_.sourceSha256 -ceq $rHash }) + + if ($hashMatch.Count -gt 0) { + $matchedFence = $hashMatch[0] + $prevManifestEntry = $oldManifestByUidAndHash["$rUid|$rHash"] + $prevOrd = if ($prevManifestEntry -and $prevManifestEntry.PSObject.Properties['fenceOrdinal'] -and $prevManifestEntry.fenceOrdinal) { [int]$prevManifestEntry.fenceOrdinal } else { $null } + + if (($null -ne $rOrd -and $matchedFence.fenceOrdinal -ne $rOrd) -or + ($null -eq $rOrd -and $null -ne $prevOrd -and $matchedFence.fenceOrdinal -ne $prevOrd)) { + $expectedOrd = if ($null -ne $rOrd) { $rOrd } else { $prevOrd } + $movedCount++ + $issue = [ordered]@{ + kind = 'moved' + uid = $rUid + expectedExampleId = "$rUid#$expectedOrd" + matchedExampleId = $matchedFence.exampleId + expectedFenceOrdinal = $expectedOrd + matchedFenceOrdinal = $matchedFence.fenceOrdinal + sourceSha256 = $rHash + file = $matchedFence.file + suggestedUpdate = [ordered]@{ + action = 'confirm-or-update-ordinal' + exampleId = $matchedFence.exampleId + fenceOrdinal = $matchedFence.fenceOrdinal + sourceSha256 = $rHash + } + } + $issues.Add($issue) + $recipeStatuses.Add([ordered]@{ uid = $rUid; exampleId = $matchedFence.exampleId; status = 'moved'; sourceSha256 = $rHash }) + } else { + $matchedCount++ + $recipeStatuses.Add([ordered]@{ uid = $rUid; exampleId = $matchedFence.exampleId; status = 'matched'; sourceSha256 = $rHash }) + } + continue + } + + # Recipe did not match any current fence hash -> orphaned! + $orphanCount++ + $candidateFence = $null + if ($null -ne $rOrd) { + $candidateFence = $uidFences | Where-Object { $_.fenceOrdinal -eq $rOrd } | Select-Object -First 1 + } + if (-not $candidateFence -and $uidFences.Count -eq 1) { + $candidateFence = $uidFences[0] + } elseif (-not $candidateFence -and $uidFences.Count -gt 1) { + # Prefer a fence whose whitespace hash matches! + if ($rWsHash) { + $candidateFence = $uidFences | Where-Object { $_.whitespaceSha256 -ceq $rWsHash } | Select-Object -First 1 + } + if (-not $candidateFence) { $candidateFence = $uidFences[0] } + } + + $diffKind = 'unknown' + $oldSourceText = $null + if ($r.manifest -and $r.manifest.PSObject.Properties['source'] -and $r.manifest.source) { + $oldSourceText = Normalize ([string]$r.manifest.source) + } elseif ($oldManifestByUidAndHash.ContainsKey("$rUid|$rHash")) { + $om = $oldManifestByUidAndHash["$rUid|$rHash"] + if ($om.PSObject.Properties['manifest'] -and $om.manifest -and $om.manifest.PSObject.Properties['source']) { + $oldSourceText = Normalize ([string]$om.manifest.source) + } elseif ($om.PSObject.Properties['source'] -and $om.source) { + $oldSourceText = Normalize ([string]$om.source) + } + } elseif ($oldManifestByUidAndHash.ContainsKey("|$rHash")) { + $om = $oldManifestByUidAndHash["|$rHash"] + if ($om.PSObject.Properties['manifest'] -and $om.manifest -and $om.manifest.PSObject.Properties['source']) { + $oldSourceText = Normalize ([string]$om.manifest.source) + } elseif ($om.PSObject.Properties['source'] -and $om.source) { + $oldSourceText = Normalize ([string]$om.source) + } + } + + if (-not $candidateFence) { + $diffKind = 'uid-removed' + $semOrphanCount++ + } else { + if (-not $oldSourceText -and $candidateFence.file) { + $headText = Get-GitHeadFileText $root $candidateFence.file + if ($headText) { + $fenceMatches = [regex]::Matches($headText, '(?ms)^[ \t]*```(?:csharp|cs)[ \t]*\r?\n(.*?)\r?\n[ \t]*```') + foreach ($fm in $fenceMatches) { + $candOld = Normalize $fm.Groups[1].Value + if ((Hash $candOld) -ceq $rHash) { $oldSourceText = $candOld; break } + } + } + } + + if ($rWsHash -and $rWsHash -ceq $candidateFence.whitespaceSha256) { + $diffKind = 'whitespace-only' + $wsOrphanCount++ + } elseif ($oldSourceText) { + $oldWs = Canonicalize-Whitespace $oldSourceText + $newWs = Canonicalize-Whitespace $candidateFence.source + $oldNoWs = [regex]::Replace($oldSourceText, '\s+', '') + $newNoWs = [regex]::Replace($candidateFence.source, '\s+', '') + if ($oldWs -ceq $newWs -or $oldNoWs -ceq $newNoWs) { + $diffKind = 'whitespace-only' + $wsOrphanCount++ + } else { + $diffKind = 'semantic' + $semOrphanCount++ + } + } else { + $diffKind = 'unknown' + $semOrphanCount++ + } + } + + $suggestedAction = switch ($diffKind) { + 'whitespace-only' { 'update-source-sha256' } + 'uid-removed' { 'remove-recipe' } + default { 're-validate-and-apply' } + } + $suggestedUpdate = if ($candidateFence) { + [ordered]@{ + action = $suggestedAction + uid = $rUid + exampleId = $candidateFence.exampleId + fenceOrdinal = $candidateFence.fenceOrdinal + oldSourceSha256 = $rHash + newSourceSha256 = $candidateFence.sourceSha256 + newWhitespaceSha256 = $candidateFence.whitespaceSha256 + } + } else { + [ordered]@{ + action = 'remove-recipe' + uid = $rUid + oldSourceSha256 = $rHash + } + } + + $issues.Add([ordered]@{ + kind = 'orphaned' + diffKind = $diffKind + uid = $rUid + exampleId = if ($candidateFence) { $candidateFence.exampleId } elseif ($null -ne $rOrd) { "$rUid#$rOrd" } else { $rUid } + file = if ($candidateFence) { $candidateFence.file } else { $null } + recipeSha256 = $rHash + currentSourceSha256 = if ($candidateFence) { $candidateFence.sourceSha256 } else { $null } + suggestedUpdate = $suggestedUpdate + }) + $recipeStatuses.Add([ordered]@{ + uid = $rUid + exampleId = if ($candidateFence) { $candidateFence.exampleId } else { $rUid } + status = 'orphaned' + diffKind = $diffKind + recipeSha256 = $rHash + currentSourceSha256 = if ($candidateFence) { $candidateFence.sourceSha256 } else { $null } + }) + } + + $report = [ordered]@{ + schemaVersion = 2 + settingsPath = $Settings + normalization = [ordered]@{ + lineEndings = 'LF' + trimTrailingNewlines = $true + preservesLineTrailingWhitespace = $true + whitespaceDiffCanonicalization = 'LF + trim trailing spaces/tabs per line + trim trailing newlines' + } + summary = [ordered]@{ + total = $recipes.Count + matched = $matchedCount + moved = $movedCount + duplicateUid = $dupCount + orphaned = $orphanCount + whitespaceOnlyOrphans = $wsOrphanCount + semanticOrphans = $semOrphanCount + } + issues = @($issues) + recipes = @($recipeStatuses) + } + if ($Json -or $SummaryJson) { + $report | ConvertTo-Json -Depth 30 + } else { + Write-Output "Recipe check ($($recipes.Count) total): matched=$matchedCount moved=$movedCount duplicate-uid=$dupCount orphaned=$orphanCount (whitespace-only=$wsOrphanCount, semantic=$semOrphanCount)" + foreach ($iss in $issues) { + Write-Output "- [$($iss.kind)] $($iss.exampleId) diff=$($iss.diffKind) current=$($iss.currentSourceSha256)" + } + } + if ($issues.Count -gt 0) { exit 1 } + exit 0 +} + +# --------------------------------------------------------------------------- +# MODE 4: --resolve-dependencies +# --------------------------------------------------------------------------- +if ($ResolveDependencies) { + $targets = Select-TargetExamples @($ResolveDependencies) + if ($targets.Count -eq 0) { + ([ordered]@{ schemaVersion = 2; error = 'example-not-found'; selector = $ResolveDependencies } | ConvertTo-Json -Depth 10) + exit 3 + } + $resolvedList = @($targets | ForEach-Object { + $planEntry = Get-EffectivePlanEntry $_ + [ordered]@{ + exampleId = $_.exampleId + uid = $_.uid + fenceOrdinal = $_.fenceOrdinal + id = $_.id + file = $_.file + category = $planEntry.category + reasonCode = $planEntry.reasonCode + dependsOn = @($_.dependencies.dependsOn) + sdk = $_.dependencies.sdk + frameworkReferences = @($_.dependencies.frameworkReferences) + typeOwnership = @($_.dependencies.typeOwnership) + missingPackages = @($_.dependencies.missingPackages) + ambiguousTypes = @($_.dependencies.ambiguousTypes) + unresolvedUsings = @($_.dependencies.unresolvedUsings) + preflightPassed = [bool]$_.dependencies.preflightPassed + errors = @($_.dependencies.errors) + } + }) + $allPassed = (@($resolvedList | Where-Object { -not $_.preflightPassed }).Count -eq 0) + $payload = if ($resolvedList.Count -eq 1) { + $single = $resolvedList[0] + [ordered]@{ + schemaVersion = 2 + exampleId = $single.exampleId + uid = $single.uid + fenceOrdinal = $single.fenceOrdinal + id = $single.id + file = $single.file + category = $single.category + reasonCode = $single.reasonCode + dependsOn = $single.dependsOn + sdk = $single.sdk + frameworkReferences = $single.frameworkReferences + typeOwnership = $single.typeOwnership + missingPackages = $single.missingPackages + ambiguousTypes = $single.ambiguousTypes + unresolvedUsings = $single.unresolvedUsings + preflightPassed = $single.preflightPassed + errors = $single.errors + examples = $resolvedList + } + } else { + [ordered]@{ + schemaVersion = 2 + selector = $ResolveDependencies + preflightPassed = $allPassed + examples = $resolvedList + } + } + $payload | ConvertTo-Json -Depth 30 + if (-not $allPassed) { exit 1 } + exit 0 +} + +# --------------------------------------------------------------------------- +# MODE 5: --validate-run-action +# --------------------------------------------------------------------------- +if ($ValidateRunAction) { + $targets = Select-TargetExamples @($ValidateRunAction) + if ($targets.Count -eq 0) { + ([ordered]@{ schemaVersion = 2; validated = $false; reasonCode = 'example-not-found'; selector = $ValidateRunAction } | ConvertTo-Json -Depth 10) + exit 3 + } + if ($targets.Count -gt 1) { + ([ordered]@{ + schemaVersion = 2 + validated = $false + reasonCode = 'ambiguous-multi-fence-uid' + selector = $ValidateRunAction + candidates = @($targets | ForEach-Object { $_.exampleId }) + message = "Multiple fences share UID '$ValidateRunAction'. Pass an explicit stable exampleId such as '$($targets[0].exampleId)'." + } | ConvertTo-Json -Depth 10) + exit 3 + } + $target = $targets[0] + $planEntry = Get-EffectivePlanEntry $target + if (-not $planEntry.convertible -and $planEntry.suggestedMode -ne 'host') { + ([ordered]@{ + schemaVersion = 2 + validated = $false + exampleId = $target.exampleId + uid = $target.uid + fenceOrdinal = $target.fenceOrdinal + id = $target.id + category = $planEntry.category + reasonCode = $planEntry.reasonCode + convertible = $false + blockingConstruct = $planEntry.blockingConstruct + blockingLine = $planEntry.blockingLine + manualHarness = $planEntry.manualHarness + } | ConvertTo-Json -Depth 20) + exit 1 + } + if (-not $target.dependencies.preflightPassed) { + ([ordered]@{ + schemaVersion = 2 + validated = $false + exampleId = $target.exampleId + uid = $target.uid + fenceOrdinal = $target.fenceOrdinal + id = $target.id + category = $planEntry.category + reasonCode = 'dependency-preflight-failed' + dependsOn = @($target.dependencies.dependsOn) + errors = @($target.dependencies.errors) + } | ConvertTo-Json -Depth 20) + exit 1 + } + + $candidate = Build-CandidateRecipeAndSource $target + $receiptPath = Get-ValidationReceiptPath $target.exampleId $candidate.candidateSourceSha256 $candidate.recipeSha256 + if ($receiptPath -and (Test-Path -LiteralPath $receiptPath)) { Remove-Item -LiteralPath $receiptPath -Force -ErrorAction SilentlyContinue } + + $tempDir = Join-Path ([IO.Path]::GetTempPath()) ('docfx-validate-' + [guid]::NewGuid().ToString('N').Substring(0, 10)) + $null = [IO.Directory]::CreateDirectory($tempDir) + $stdout = ''; $stderr = ''; $exitCode = -1; $timedOut = $false; $failReason = $null + try { + if ($candidate.isHost) { + $hh = $candidate.recipe.hostHarness + $hostPair = New-HostExamplePair ` + -Source $candidate.candidateSource ` + -Framework $(if ($hh.framework) { [string]$hh.framework } else { $Framework }) ` + -Sdk $(if ($hh.sdk) { [string]$hh.sdk } else { 'Microsoft.NET.Sdk.Web' }) ` + -DependsOn $(if ($hh.dependsOn) { [string[]]@($hh.dependsOn) } else { @() }) ` + -ProbePath $(if ($null -ne $hh.probePath) { [string]$hh.probePath } else { '/' }) ` + -ProbeMethod $(if ($hh.probeMethod) { [string]$hh.probeMethod } else { 'GET' }) ` + -TimeoutSeconds $(if ($hh.timeoutSeconds) { [int]$hh.timeoutSeconds } else { [Math]::Min($TimeoutSeconds, 30) }) ` + -ExpectedStatusCode $(if ($hh.expectedStatusCode) { [int]$hh.expectedStatusCode } else { 0 }) ` + -ExpectedBodyContains $(if ($hh.expectedBodyContains) { [string]$hh.expectedBodyContains } else { '' }) ` + -StartupDelayMs $(if ($hh.startupDelayMs) { [int]$hh.startupDelayMs } else { 1000 }) ` + -Image $CsrunImage + $hostScript = Join-Path $tempDir 'validate-host.ps1' + [IO.File]::WriteAllText($hostScript, (Normalize $hostPair.Native), [Text.UTF8Encoding]::new($false)) + $psi = [Diagnostics.ProcessStartInfo]::new('pwsh') + foreach ($a in @('-NoProfile', '-NonInteractive', '-File', $hostScript)) { $psi.ArgumentList.Add($a) } + $psi.WorkingDirectory = $tempDir + $psi.RedirectStandardOutput = $true + $psi.RedirectStandardError = $true + $psi.UseShellExecute = $false + $proc = [Diagnostics.Process]::new() + $proc.StartInfo = $psi + try { + if (-not $proc.Start()) { throw 'Could not start host validation process.' } + $outTask = $proc.StandardOutput.ReadToEndAsync() + $errTask = $proc.StandardError.ReadToEndAsync() + if (-not $proc.WaitForExit($TimeoutSeconds * 1000)) { + $timedOut = $true + try { $proc.Kill($true) } catch {} + $null = $proc.WaitForExit(5000) + } + $exitCode = if ($timedOut) { 124 } else { $proc.ExitCode } + $stdout = $outTask.GetAwaiter().GetResult() + $stderr = $errTask.GetAwaiter().GetResult() + } finally { + $proc.Dispose() + } + if ($timedOut) { $failReason = 'execution-timeout' } + elseif ($exitCode -ne 0) { $failReason = 'host-execution-failed' } + elseif ([string]::IsNullOrWhiteSpace($stdout)) { $failReason = 'empty-host-output' } + } else { + # Build file-based app separately from execution so compiler warnings never masquerade as program stdout. + $headerLines = [Collections.Generic.List[string]]::new() + $headerLines.Add("#:property TargetFramework=$Framework") + $headerLines.Add('#:property PublishAot=false') + if ($candidate.sdk -eq 'Microsoft.NET.Sdk.Web') { $headerLines.Add('#:sdk Microsoft.NET.Sdk.Web') } + foreach ($pin in @($candidate.dependsOn)) { $headerLines.Add("#:package $pin") } + $appText = ($headerLines -join "`n") + "`n`n" + $candidate.candidateSource + "`n" + $appPath = Join-Path $tempDir 'candidate.cs' + $artifactsDir = Join-Path $tempDir 'artifacts' + [IO.File]::WriteAllText($appPath, $appText, [Text.UTF8Encoding]::new($false)) + $dotnetExe = (Get-Command dotnet -CommandType Application -ErrorAction Stop | Select-Object -First 1).Source + + $buildPsi = [Diagnostics.ProcessStartInfo]::new($dotnetExe) + foreach ($a in @('build', $appPath, '--artifacts-path', $artifactsDir, '--nologo', '-v', 'quiet')) { $buildPsi.ArgumentList.Add($a) } + $buildPsi.WorkingDirectory = $tempDir + $buildPsi.RedirectStandardOutput = $true + $buildPsi.RedirectStandardError = $true + $buildPsi.UseShellExecute = $false + $buildProc = [Diagnostics.Process]::new() + $buildProc.StartInfo = $buildPsi + $buildOut = ''; $buildErr = ''; $buildExit = -1 + try { + if (-not $buildProc.Start()) { throw 'Could not start dotnet build for file-based candidate.' } + $bOutTask = $buildProc.StandardOutput.ReadToEndAsync() + $bErrTask = $buildProc.StandardError.ReadToEndAsync() + if (-not $buildProc.WaitForExit([Math]::Max($TimeoutSeconds, 60) * 1000)) { + $timedOut = $true + try { $buildProc.Kill($true) } catch {} + $null = $buildProc.WaitForExit(5000) + } + $buildExit = if ($timedOut) { 124 } else { $buildProc.ExitCode } + $buildOut = $bOutTask.GetAwaiter().GetResult() + $buildErr = $bErrTask.GetAwaiter().GetResult() + } finally { + $buildProc.Dispose() + } + + if ($timedOut) { + $exitCode = 124 + $stderr = ($buildOut + "`n" + $buildErr).Trim() + $failReason = 'execution-timeout' + } elseif ($buildExit -ne 0) { + $exitCode = $buildExit + $stderr = ($buildOut + "`n" + $buildErr).Trim() + $failReason = 'build-failed' + } else { + $builtDll = Get-ChildItem -LiteralPath $artifactsDir -Recurse -File -Filter 'candidate.dll' -ErrorAction SilentlyContinue | + Sort-Object FullName | Select-Object -First 1 + if (-not $builtDll) { + $exitCode = 1 + $failReason = 'build-output-missing' + } else { + $psi = [Diagnostics.ProcessStartInfo]::new($dotnetExe) + $psi.ArgumentList.Add($builtDll.FullName) + $psi.WorkingDirectory = $tempDir + $psi.RedirectStandardOutput = $true + $psi.RedirectStandardError = $true + $psi.UseShellExecute = $false + $proc = [Diagnostics.Process]::new() + $proc.StartInfo = $psi + try { + if (-not $proc.Start()) { throw 'Could not start candidate assembly.' } + $outTask = $proc.StandardOutput.ReadToEndAsync() + $errTask = $proc.StandardError.ReadToEndAsync() + if (-not $proc.WaitForExit($TimeoutSeconds * 1000)) { + $timedOut = $true + try { $proc.Kill($true) } catch {} + $null = $proc.WaitForExit(5000) + } + $exitCode = if ($timedOut) { 124 } else { $proc.ExitCode } + $stdout = $outTask.GetAwaiter().GetResult() + $stderr = $errTask.GetAwaiter().GetResult() + } finally { + $proc.Dispose() + } + if ($timedOut) { + $failReason = 'execution-timeout' + } elseif ($exitCode -ne 0) { + $failReason = 'run-failed' + } elseif ($candidate.mode -eq 'console' -and [string]::IsNullOrWhiteSpace($stdout)) { + $failReason = 'empty-console-output' + } elseif ($candidate.mode -eq 'test') { + try { + Invoke-Expression $script:CsrunTestVerificationTemplate + Assert-CsrunTestOutput $stdout + } catch { + $failReason = 'test-assertion-failed' + $stderr = ($stderr + "`n" + $_.Exception.Message).Trim() + } + } + } + } + } + } finally { + if (Test-Path -LiteralPath $tempDir) { Remove-Item -LiteralPath $tempDir -Recurse -Force -ErrorAction SilentlyContinue } + } + + $passed = ($null -eq $failReason) + if ($passed -and $receiptPath) { + $receipt = [ordered]@{ + schemaVersion = 2 + validatedUtc = [DateTimeOffset]::UtcNow.ToString('O') + exampleId = $target.exampleId + uid = $target.uid + fenceOrdinal = $target.fenceOrdinal + originalSourceSha256 = $target.sourceSha256 + candidateSourceSha256 = $candidate.candidateSourceSha256 + recipeSha256 = $candidate.recipeSha256 + mode = $candidate.mode + framework = $Framework + passed = $true + } + $tmpReceipt = $receiptPath + '.tmp.' + [guid]::NewGuid().ToString('N') + try { + [IO.File]::WriteAllText($tmpReceipt, ($receipt | ConvertTo-Json -Depth 10 -Compress), [Text.UTF8Encoding]::new($false)) + if (-not $IsWindows) { & chmod 600 -- $tmpReceipt 2>$null } + [IO.File]::Move($tmpReceipt, $receiptPath, $true) + } finally { + if (Test-Path -LiteralPath $tmpReceipt) { [IO.File]::Delete($tmpReceipt) } + } + } + + $resultObj = [ordered]@{ + schemaVersion = 2 + validated = $passed + exampleId = $target.exampleId + uid = $target.uid + fenceOrdinal = $target.fenceOrdinal + id = $target.id + category = $planEntry.category + reasonCode = if ($passed) { 'validated' } else { $failReason } + mode = $candidate.mode + framework = $Framework + converted = $candidate.converted + sourceSha256 = $target.sourceSha256 + candidateSourceSha256 = $candidate.candidateSourceSha256 + recipeSha256 = $candidate.recipeSha256 + dependsOn = @($candidate.dependsOn) + exitCode = $exitCode + timedOut = $timedOut + stdout = $stdout.TrimEnd("`r", "`n") + stderr = $stderr.TrimEnd("`r", "`n") + } + $resultObj | ConvertTo-Json -Depth 20 + if (-not $passed) { exit 1 } + exit 0 +} + +# --------------------------------------------------------------------------- +# MODE 6: --apply-run-action +# --------------------------------------------------------------------------- +if ($ApplyRunAction) { + $targets = Select-TargetExamples @($ApplyRunAction) + if ($targets.Count -eq 0) { + ([ordered]@{ schemaVersion = 2; applied = $false; reasonCode = 'example-not-found'; selector = $ApplyRunAction } | ConvertTo-Json -Depth 10) + exit 3 + } + if ($targets.Count -gt 1) { + ([ordered]@{ + schemaVersion = 2 + applied = $false + reasonCode = 'ambiguous-multi-fence-uid' + selector = $ApplyRunAction + candidates = @($targets | ForEach-Object { $_.exampleId }) + message = "Multiple fences share UID '$ApplyRunAction'. Pass an explicit stable exampleId such as '$($targets[0].exampleId)'." + } | ConvertTo-Json -Depth 10) + exit 3 + } + $target = $targets[0] + Assert-RepositoryPath $target.file + $candidate = Build-CandidateRecipeAndSource $target + $receiptPath = Get-ValidationReceiptPath $target.exampleId $candidate.candidateSourceSha256 $candidate.recipeSha256 + $validReceipt = $false + if ($receiptPath -and (Test-PrivateCacheItem $receiptPath)) { + try { + $rec = [IO.File]::ReadAllText($receiptPath) | ConvertFrom-Json + if ($rec.passed -eq $true -and + $rec.exampleId -ceq $target.exampleId -and + $rec.candidateSourceSha256 -ceq $candidate.candidateSourceSha256 -and + $rec.recipeSha256 -ceq $candidate.recipeSha256) { + $validReceipt = $true + } + } catch {} + } + + if (-not $validReceipt) { + ([ordered]@{ + schemaVersion = 2 + applied = $false + reasonCode = 'validation-required' + exampleId = $target.exampleId + uid = $target.uid + fenceOrdinal = $target.fenceOrdinal + expectedRecipeSha256 = $candidate.recipeSha256 + message = "Refusing to apply before validation passes. Run --validate-run-action $($target.exampleId) first." + } | ConvertTo-Json -Depth 10) + exit 1 + } + + # Surgically update ONLY the target fence if conversion changed the source. + $fenceUpdated = $false + if ($candidate.converted) { + $originalText = [IO.File]::ReadAllText($target.file) + $lineMatches = [regex]::Matches($originalText, '(?[^\r\n]*)(?\r\n|\n|\r|$)') + $openIdx = $target.startLine - 1 + $closeIdx = $openIdx + 1 + while ($closeIdx -lt $lineMatches.Count -and $lineMatches[$closeIdx].Groups['text'].Value -notmatch '^\s*```') { $closeIdx++ } + if ($closeIdx -ge $lineMatches.Count) { throw "Unclosed C# fence in $($target.file) starting at line $($target.startLine)." } + $nl = $lineMatches[$openIdx].Groups['ending'].Value + if (-not $nl) { $nl = "`n" } + $bodyStart = $lineMatches[$openIdx].Index + $lineMatches[$openIdx].Length + $bodyEnd = $lineMatches[$closeIdx].Index + $replacementBody = $candidate.candidateSource.Replace("`r`n", "`n").Replace("`n", $nl) + $nl + $updatedText = $originalText.Remove($bodyStart, $bodyEnd - $bodyStart).Insert($bodyStart, $replacementBody) + Write-Page $target.file $originalText $updatedText + $fenceUpdated = $true + } + + # Atomically upsert the recipe in run-actions.settings.json without touching recipes matching other fences! + $otherFenceHashes = [Collections.Generic.HashSet[string]]::new([StringComparer]::Ordinal) + foreach ($other in $normalizedExamples) { + if ($other.uid -ceq $target.uid -and $other.fenceOrdinal -ne $target.fenceOrdinal) { + $null = $otherFenceHashes.Add($other.sourceSha256) + } + } + + $settingsList = [Collections.Generic.List[object]]::new() + $replaced = $false + foreach ($r in $recipes) { + $rUid = [string]$r.uid + $rHash = if ($r.sourceSha256) { ([string]$r.sourceSha256).ToUpperInvariant() } else { '' } + $rOrd = $null + if ($r.PSObject.Properties['fenceOrdinal'] -and $null -ne $r.fenceOrdinal) { $rOrd = [int]$r.fenceOrdinal } + elseif ($r.PSObject.Properties['exampleId'] -and ([string]$r.exampleId) -match '#(\d+)$') { $rOrd = [int]$Matches[1] } + + # Never overwrite an existing recipe that still matches a different fence! + if ($rUid -ceq $target.uid -and $null -ne $rOrd -and $rOrd -ne $target.fenceOrdinal) { + $settingsList.Add($r) + continue + } + if ($rUid -ceq $target.uid -and $null -eq $rOrd -and $otherFenceHashes.Contains($rHash) -and $rHash -cne $target.sourceSha256) { + $settingsList.Add($r) + continue + } + if ($rUid -ceq $target.uid -and (($null -ne $rOrd -and $rOrd -eq $target.fenceOrdinal) -or $rHash -ceq $target.sourceSha256 -or $rHash -ceq $candidate.candidateSourceSha256)) { + if (-not $replaced) { + $settingsList.Add($candidate.recipe) + $replaced = $true + } + continue + } + $settingsList.Add($r) + } + if (-not $replaced) { $settingsList.Add($candidate.recipe) } + + $settingsDoc = [ordered]@{ examples = @($settingsList) } + $null = Write-AtomicChanged $Settings (($settingsDoc | ConvertTo-Json -Depth 30) + "`n") + + ([ordered]@{ + schemaVersion = 2 + applied = $true + exampleId = $target.exampleId + uid = $target.uid + fenceOrdinal = $target.fenceOrdinal + file = $target.file + settingsPath = $Settings + fenceUpdated = $fenceUpdated + sourceSha256 = $candidate.candidateSourceSha256 + recipeSha256 = $candidate.recipeSha256 + } | ConvertTo-Json -Depth 20) + exit 0 +} + +# --------------------------------------------------------------------------- +# MODE 7: Generation & Verification +# --------------------------------------------------------------------------- +if ($duplicateRecipeKeys.Count -gt 0) { + throw "Duplicate recipe for $($duplicateRecipeKeys[0])" +} + +$verifyTargetIds = $null +if ($idList.Count -gt 0) { + $matchedTargets = Select-TargetExamples @($idList) + if ($matchedTargets.Count -eq 0) { + $msg = "No examples matched --id selector(s): $($idList -join ', ')" + if ($SummaryJson -or $Json) { + ([ordered]@{ schemaVersion = 2; exitCode = 3; failureReason = 'example-not-found'; error = $msg } | ConvertTo-Json -Depth 10) + } else { + [Console]::Error.WriteLine($msg) + } + exit 3 + } + $verifyTargetIds = [Collections.Generic.HashSet[string]]::new([StringComparer]::Ordinal) + foreach ($mt in $matchedTargets) { $null = $verifyTargetIds.Add($mt.exampleId) } +} + $toolHash = Hash ((Get-Content $PSCommandPath -Raw) + (Get-Content (Join-Path $PSScriptRoot 'docfx.cs') -Raw) + (Get-Content (Join-Path $PSScriptRoot 'integration-example.ps1') -Raw) + (Get-Content $helpers -Raw) + $script:Csrun021Asset + $script:Csrun021Sha256 + $script:CsrunTestVerificationTemplate) $results = [Collections.Generic.List[object]]::new() $manifestEntries = [Collections.Generic.List[object]]::new() $associations = [hashtable]::new([StringComparer]::Ordinal) $pages = @((@($inventory.examples.file) + @($inventory.associatedPages)) | Where-Object { $_ } | Sort-Object -CaseSensitive -Unique) foreach ($page in $pages) { Assert-RepositoryPath $page } -$recipeBySource = [hashtable]::new([StringComparer]::Ordinal) -foreach ($recipe in $recipes) { - $key = "$($recipe.uid)|$($recipe.sourceSha256.ToUpperInvariant())" - if ($recipeBySource.ContainsKey($key)) { throw "Duplicate recipe for $key" } - $recipeBySource[$key] = $recipe -} + +# Preflight verification engine BEFORE mutating any file or manifest! $resolvedVerificationEngine = $null if ($EnginePath) { $fullEnginePath = [IO.Path]::GetFullPath($EnginePath) if (-not (Test-Path -LiteralPath $fullEnginePath -PathType Leaf)) { + if ($Verify -ne 'None') { + $errPayload = [ordered]@{ + schemaVersion = 2 + exitCode = 1 + failureReason = 'engine-path-not-found' + manifestPreserved = (Test-Path -LiteralPath $manifestPath) + error = "csrun engine asset not found: $fullEnginePath" + } + $errPayload | ConvertTo-Json -Depth 10 + exit 1 + } throw "csrun engine asset not found: $fullEnginePath" } $resolvedVerificationEngine = [pscustomobject]@{ @@ -133,19 +1453,74 @@ if ($EnginePath) { Source = 'Explicit' } } -foreach ($example in $inventory.examples) { - $displayedSource = Normalize $example.code - $source = $displayedSource - if ($example.source) { $source = Normalize (($source -split "`n" | Select-Object -Skip 2) -join "`n") } - $sourceHash = Hash $source - $identity = if ($example.source) { [IO.Path]::GetRelativePath($root, $example.source).Replace('\','/') + '|' + $sourceHash } else { $sourceHash } - $id = (Hash ("$($example.uid)|$([IO.Path]::GetRelativePath($root, $example.file).Replace('\','/'))|$identity")).Substring(0,24).ToLowerInvariant() - $result = [ordered]@{ id=$id; file=$example.file; uid=$example.uid; sourceSha256=$sourceHash; status='unresolved'; coverage='Unresolved'; reason=$null; native='Unverified'; docker='Unverified' } + +$needsStandaloneEnginePreflight = $false +if ($Verify -ne 'None' -and -not $resolvedVerificationEngine) { + foreach ($ex in $normalizedExamples) { + if ($verifyTargetIds -and -not $verifyTargetIds.Contains($ex.exampleId)) { continue } + $r = Find-MatchingRecipe $ex + if ($r -and ($r.intrinsicLimitation -or $r.PSObject.Properties['repository'] -or $r.mode -eq 'host' -or $r.PSObject.Properties['hostHarness'])) { continue } + if (-not $r -and $ex.sourceSha256 -ceq '47B0C1FBA94E7B43C8753D0A8242801B328E6B463B6EEDAEB640D4F8A262633E') { continue } + if ($r -and $r.manifest) { $needsStandaloneEnginePreflight = $true; break } + if (-not $r -and -not $ex.raw.source -and $ex.eligible -and $ex.standalone -ne $ex.isTest -and $ex.source -notmatch '(?m)^#:') { $needsStandaloneEnginePreflight = $true; break } + } +} + +if ($needsStandaloneEnginePreflight) { + try { + $resolvedVerificationEngine = Resolve-CsrunEngine + } catch { + $failureReason = Get-EngineFailureReason $_.Exception.Message + $errPayload = [ordered]@{ + schemaVersion = 2 + mode = 'verify' + exitCode = 1 + failureReason = $failureReason + manifestPreserved = (Test-Path -LiteralPath $manifestPath) + error = $_.Exception.Message + generated = 0 + unchanged = 0 + verified = 0 + failed = 1 + unresolved = 0 + intrinsic = 0 + 'skipped-by-category' = [ordered]@{} + } + $errPayload | ConvertTo-Json -Depth 10 + exit 1 + } +} + +$verificationExecuted = 0 +$verificationReused = 0 +$verificationFailedCount = 0 + +foreach ($exObj in $normalizedExamples) { + $example = $exObj.raw + $displayedSource = $exObj.displayedSource + $source = $exObj.source + $sourceHash = $exObj.sourceSha256 + $id = $exObj.id + $result = [ordered]@{ + id = $id + exampleId = $exObj.exampleId + fenceOrdinal = $exObj.fenceOrdinal + file = $example.file + uid = $example.uid + sourceSha256 = $sourceHash + status = 'unresolved' + coverage = 'Unresolved' + category = $exObj.classification.category + reasonCode = $exObj.classification.reasonCode + reason = $null + native = 'Unverified' + docker = 'Unverified' + } try { if ($example.contextError) { $result.reason = $example.contextError; continue } if ($example.sourceSha256 -and $example.sourceSha256 -cne $sourceHash) { throw 'The inventory and generator disagree on the displayed source hash.' } - $recipe = $recipeBySource["$($example.uid)|$sourceHash"] + $recipe = Find-MatchingRecipe $exObj if ($recipe -and $recipe.PSObject.Properties['harness']) { throw 'Move the executable C# into the displayed sample and update its recipe hash.' } @@ -156,12 +1531,13 @@ foreach ($example in $inventory.examples) { } $isTest = $example.isTest if ($recipe.intrinsicLimitation) { - if ($recipe.manifest -or $recipe.repository) { throw 'An intrinsic limitation cannot also supply an execution recipe.' } - $result.status = 'unsupported'; $result.coverage = 'Intrinsically non-executable'; $result.reason = $recipe.intrinsicLimitation + if ($recipe.manifest -or $recipe.repository -or $recipe.hostHarness) { throw 'An intrinsic limitation cannot also supply an execution recipe.' } + $result.status = 'unsupported'; $result.coverage = 'Intrinsically non-executable'; $result.category = 'intrinsic'; $result.reasonCode = 'intrinsic-limitation'; $result.reason = $recipe.intrinsicLimitation $result.native = 'Unsupported'; $result.docker = 'Unsupported' continue } if ($recipe -and $recipe.PSObject.Properties['repository']) { $strategy = 'repository' } + elseif ($recipe -and ($recipe.mode -eq 'host' -or $recipe.PSObject.Properties['hostHarness'] -or ($recipe.manifest -and $recipe.manifest.mode -eq 'host'))) { $strategy = 'host' } elseif ($example.source -and -not ($recipe -and $recipe.PSObject.Properties['manifest'])) { $result.reason = 'Inspect the maintained project and source for exact published dependencies or a pinned repository test.' continue @@ -170,7 +1546,7 @@ foreach ($example in $inventory.examples) { $result.reason = 'Resolve the dependencies and entry point from the source project, published assets, and maintained tests.' continue } - if ($recipe -and -not $recipe.manifest -and $strategy -ne 'repository') { throw 'A recipe must supply a standalone manifest or a pinned repository test.' } + if ($recipe -and -not $recipe.manifest -and $strategy -notin @('repository', 'host')) { throw 'A recipe must supply a standalone manifest, hostHarness, or pinned repository test.' } $transports = @('native','docker') foreach ($transport in @('native','docker')) { if ($recipe -and $recipe.unsupportedTransports.$transport) { @@ -185,22 +1561,96 @@ foreach ($example in $inventory.examples) { continue } $result.strategy = $strategy - if ($strategy -eq 'standalone') { $result.executionSourceSha256 = Hash $displayedSource } + if ($strategy -in @('standalone', 'host')) { $result.executionSourceSha256 = Hash $displayedSource } $image = if ($recipe.csrunImage) { $recipe.csrunImage } else { $CsrunImage } $fingerprint = Hash ("$toolHash|$sourceHash|$strategy|$Framework|$image|$($result.executionSourceSha256)|" + ($recipe | ConvertTo-Json -Depth 30 -Compress)) $manifestObject = $null + $hostHarnessObj = $null if ($strategy -eq 'standalone') { $manifestObject = if ($recipe) { $recipe.manifest | Select-Object * } else { [pscustomobject]@{ schemaVersion=1; mode=$(if ($isTest) {'test'} else {'console'}); framework=$Framework; dependsOn=@($(if ($isTest) {'xunit.v3@4.0.3'})) } } if ($manifestObject.PSObject.Properties['source'] -and (Normalize $manifestObject.source) -cne $displayedSource) { throw 'Manifest source differs from displayed C#.' } $manifestObject | Add-Member -NotePropertyName source -NotePropertyValue $displayedSource -Force + } elseif ($strategy -eq 'host') { + $hh = if ($recipe.PSObject.Properties['hostHarness'] -and $recipe.hostHarness) { $recipe.hostHarness } else { [pscustomobject]@{} } + $hostFw = if ($hh.PSObject.Properties['framework'] -and $hh.framework) { [string]$hh.framework } elseif ($recipe.manifest -and $recipe.manifest.framework) { [string]$recipe.manifest.framework } else { $Framework } + $hostDeps = if ($hh.PSObject.Properties['dependsOn'] -and $hh.dependsOn) { [string[]]@($hh.dependsOn) } elseif ($recipe.manifest -and $recipe.manifest.dependsOn) { [string[]]@($recipe.manifest.dependsOn) } else { @() } + $hostHarnessObj = [ordered]@{ + sdk = if ($hh.PSObject.Properties['sdk'] -and $hh.sdk) { [string]$hh.sdk } else { 'Microsoft.NET.Sdk.Web' } + framework = $hostFw + dependsOn = @($hostDeps) + probePath = if ($hh.PSObject.Properties['probePath']) { [string]$hh.probePath } else { '/' } + probeMethod = if ($hh.PSObject.Properties['probeMethod'] -and $hh.probeMethod) { [string]$hh.probeMethod } else { 'GET' } + timeoutSeconds = if ($hh.PSObject.Properties['timeoutSeconds'] -and $hh.timeoutSeconds) { [int]$hh.timeoutSeconds } else { 15 } + expectedStatusCode = if ($hh.PSObject.Properties['expectedStatusCode'] -and $hh.expectedStatusCode) { [int]$hh.expectedStatusCode } else { 0 } + expectedBodyContains = if ($hh.PSObject.Properties['expectedBodyContains'] -and $hh.expectedBodyContains) { [string]$hh.expectedBodyContains } else { '' } + startupDelayMs = if ($hh.PSObject.Properties['startupDelayMs'] -and $hh.startupDelayMs) { [int]$hh.startupDelayMs } else { 1000 } + } } if ($strategy -eq 'repository') { $pair = New-RepositoryExamplePair -Repository $recipe.repository -Commit $recipe.commit -Project $recipe.project -Test $recipe.test -Framework $recipe.framework -Image $recipe.image + } elseif ($strategy -eq 'host') { + $pair = New-HostExamplePair ` + -Source $displayedSource ` + -Framework $hostHarnessObj.framework ` + -Sdk $hostHarnessObj.sdk ` + -DependsOn $hostHarnessObj.dependsOn ` + -ProbePath $hostHarnessObj.probePath ` + -ProbeMethod $hostHarnessObj.probeMethod ` + -TimeoutSeconds $hostHarnessObj.timeoutSeconds ` + -ExpectedStatusCode $hostHarnessObj.expectedStatusCode ` + -ExpectedBodyContains $hostHarnessObj.expectedBodyContains ` + -StartupDelayMs $hostHarnessObj.startupDelayMs ` + -Image $image } else { $manifestJson = $manifestObject | ConvertTo-Json -Depth 30 $pair = New-CsrunExecutionPair -ManifestJson $manifestJson -Image $image } + + $manifestEntry = if ($strategy -eq 'repository') { + [ordered]@{ + id = $id + exampleId = $exObj.exampleId + uid = $example.uid + fenceOrdinal = $exObj.fenceOrdinal + strategy = 'repository' + transports = @($transports) + repository = $recipe.repository + commit = $recipe.commit + project = $recipe.project + test = $recipe.test + framework = $recipe.framework + image = $recipe.image + } + } elseif ($strategy -eq 'host') { + [ordered]@{ + id = $id + exampleId = $exObj.exampleId + uid = $example.uid + fenceOrdinal = $exObj.fenceOrdinal + strategy = 'host' + transports = @($transports) + framework = $hostHarnessObj.framework + image = $image + source = $displayedSource + hostHarness = $hostHarnessObj + } + } else { + [ordered]@{ + id = $id + exampleId = $exObj.exampleId + uid = $example.uid + fenceOrdinal = $exObj.fenceOrdinal + strategy = 'standalone' + transports = @($transports) + image = $image + manifest = $manifestObject + } + } + $manifestEntryJson = $manifestEntry | ConvertTo-Json -Depth 30 -Compress + $changed = -not $oldManifestById.ContainsKey($id) -or ($oldManifestById[$id] -cne $manifestEntryJson) + $verifyPair = $null + $inVerifyScope = (-not $verifyTargetIds) -or $verifyTargetIds.Contains($exObj.exampleId) foreach ($transport in $transports) { $script = Normalize $pair.$transport $tokens=$null; $errors=$null @@ -209,7 +1659,36 @@ foreach ($example in $inventory.examples) { $scriptHash = Hash $script $result["${transport}Sha256"] = $scriptHash $evidencePath = if ($evidenceDirectory) { Join-Path $evidenceDirectory "$configHash-$id-$transport-$scriptHash.json" } - if ($Verify -eq 'Both' -or $Verify -eq $transport) { + + # Read existing cached evidence first (supports both unverified runs and --verify-changed reuse). + $cachedState = $null + $cachedLog = $null + if ($evidencePath -and (Test-PrivateCacheItem $evidencePath)) { + try { + $evidence = [IO.File]::ReadAllText($evidencePath) | ConvertFrom-Json + if ($evidence.state -in @('Verified', 'Failed') -and + $evidence.log -cmatch "\Adocfx-run-$id-$transport-[a-f0-9]{32}\.log\z") { + $log = Join-Path $evidenceDirectory $evidence.log + if (Test-PrivateCacheItem $log) { + $cachedState = $evidence.state + $cachedLog = $log + } + } + } catch { + Write-Verbose "Could not read $transport verification evidence for $id" + } + } + + $shouldRunVerify = $inVerifyScope -and ($Verify -eq 'Both' -or $Verify -eq $transport) + if ($shouldRunVerify -and $VerifyChanged -and -not $changed -and $cachedState -eq 'Verified') { + $shouldRunVerify = $false + $verificationReused++ + $result[$transport] = $cachedState + $result["${transport}Evidence"] = $cachedLog + continue + } + + if ($shouldRunVerify) { if (-not $evidencePath) { throw 'A private, user-owned directory is required to record run-action verification.' } $executionScript = $script if ($strategy -eq 'standalone') { @@ -228,7 +1707,9 @@ foreach ($example in $inventory.examples) { [IO.File]::WriteAllText($tempScript, $executionScript, [Text.UTF8Encoding]::new($false)) [IO.File]::WriteAllText($log, '') & pwsh -NoProfile -NonInteractive -File $tempScript *> $log + $verificationExecuted++ $result[$transport] = if ($LASTEXITCODE -eq 0) { 'Verified' } else { 'Failed' } + if ($result[$transport] -eq 'Failed') { $verificationFailedCount++ } $result["${transport}Evidence"] = $log $pendingEvidence = Join-Path $evidenceDirectory "$runName.tmp" try { @@ -246,46 +1727,13 @@ foreach ($example in $inventory.examples) { } finally { if (Test-Path -LiteralPath $tempScript) { Remove-Item -LiteralPath $tempScript -Force } } - } elseif ($evidencePath) { - try { - if (-not (Test-PrivateCacheItem $evidencePath)) { continue } - $evidence = [IO.File]::ReadAllText($evidencePath) | ConvertFrom-Json - if ($evidence.state -in @('Verified', 'Failed') -and - $evidence.log -cmatch "\Adocfx-run-$id-$transport-[a-f0-9]{32}\.log\z") { - $log = Join-Path $evidenceDirectory $evidence.log - if (Test-PrivateCacheItem $log) { - $result[$transport] = $evidence.state - $result["${transport}Evidence"] = $log - } - } - } catch { - Write-Verbose "Could not read $transport verification evidence for $id" - } + } elseif ($cachedState) { + $result[$transport] = $cachedState + $result["${transport}Evidence"] = $cachedLog + if ($Verify -ne 'None') { $verificationReused++ } } } - $manifestEntry = if ($strategy -eq 'repository') { - [ordered]@{ - id = $id - strategy = 'repository' - transports = @($transports) - repository = $recipe.repository - commit = $recipe.commit - project = $recipe.project - test = $recipe.test - framework = $recipe.framework - image = $recipe.image - } - } else { - [ordered]@{ - id = $id - strategy = 'standalone' - transports = @($transports) - image = $image - manifest = $manifestObject - } - } - $manifestEntryJson = $manifestEntry | ConvertTo-Json -Depth 30 -Compress - $changed = -not $oldManifestById.ContainsKey($id) -or ($oldManifestById[$id] -cne $manifestEntryJson) + $result.status = if ($changed) { 'generated' } else { 'unchanged' } $result.coverage = if ($transports.Count -eq 2) { 'Paired' } else { 'Partially supported' } if ($recipe.explanation) { $result.explanation = $recipe.explanation } @@ -295,7 +1743,9 @@ foreach ($example in $inventory.examples) { $label = if ($_ -eq 'native') { 'Native' } else { 'Docker' } 'View ' + $label + ' Script' }) - $note = if ($strategy -eq 'repository') { '

Runs the pinned repository test ' + [Net.WebUtility]::HtmlEncode($recipe.test) + '.

' } else { '' } + $note = if ($strategy -eq 'repository') { '

Runs the pinned repository test ' + [Net.WebUtility]::HtmlEncode($recipe.test) + '.

' } + elseif ($strategy -eq 'host') { '

Starts the host with a timeout, performs the demonstrated action, and shuts down cleanly.

' } + else { '' } $note += if ($recipe.explanation) { '

' + [Net.WebUtility]::HtmlEncode($recipe.explanation) + '

' } else { '' } $link = '
' + ($links -join ' · ') + $note + '
' if (-not $associations.ContainsKey($example.file)) { $associations[$example.file] = @{} } @@ -303,76 +1753,87 @@ foreach ($example in $inventory.examples) { } catch { $result.status='failed'; $result.reason=$_.Exception.Message } finally { $results.Add([pscustomobject]$result) } } -# Apply edits by offset in the original text so each existing line ending is preserved. -foreach ($page in $pages) { - if (-not (Test-Path -LiteralPath $page)) { continue } - $original = [IO.File]::ReadAllText($page) - $edits = [Collections.Generic.List[object]]::new() - foreach ($block in [regex]::Matches($original, '(?s)(?:\A|(?:\r\n|\n|\r){1,2}).*?')) { - $edits.Add(@{ Offset = $block.Index; Length = $block.Length; Text = '' }) - } - if ($associations.ContainsKey($page)) { - $lines = [regex]::Matches($original, '(?[^\r\n]*)(?\r\n|\n|\r|$)') - foreach ($line in $associations[$page].Keys) { - $end = $line - while ($end -lt $lines.Count -and $lines[$end].Groups['text'].Value -notmatch '^\s*```') { $end++ } - if ($end -ge $lines.Count) { throw "Unclosed fence in $page" } - $fence = $lines[$end] - $newline = $fence.Groups['ending'].Value - if (-not $newline) { $newline = $lines[$end - 1].Groups['ending'].Value } - $edits.Add(@{ - Offset = $fence.Index + $fence.Groups['text'].Length - Length = 0 - Text = $newline + $newline + $associations[$page][$line].Replace("`n", $newline) - }) + +$hasHardFailure = (@($results | Where-Object { $_.status -eq 'failed' -or $_.native -eq 'Failed' -or $_.docker -eq 'Failed' }).Count -gt 0) +$manifestPreserved = $false +# Never destroy a previous non-empty manifest as a side effect of a failed verification! +if ($Verify -ne 'None' -and $hasHardFailure -and $manifestEntries.Count -eq 0 -and $oldManifestById.Count -gt 0) { + $manifestPreserved = $true +} + +if (-not $manifestPreserved) { + # Apply edits by offset in the original text so each existing line ending is preserved. + foreach ($page in $pages) { + if (-not (Test-Path -LiteralPath $page)) { continue } + $original = [IO.File]::ReadAllText($page) + $edits = [Collections.Generic.List[object]]::new() + foreach ($block in [regex]::Matches($original, '(?s)(?:\A|(?:\r\n|\n|\r){1,2}).*?')) { + $edits.Add(@{ Offset = $block.Index; Length = $block.Length; Text = '' }) } + if ($associations.ContainsKey($page)) { + $lines = [regex]::Matches($original, '(?[^\r\n]*)(?\r\n|\n|\r|$)') + foreach ($line in $associations[$page].Keys) { + $end = $line + while ($end -lt $lines.Count -and $lines[$end].Groups['text'].Value -notmatch '^\s*```') { $end++ } + if ($end -ge $lines.Count) { throw "Unclosed fence in $page" } + $fence = $lines[$end] + $newline = $fence.Groups['ending'].Value + if (-not $newline) { $newline = $lines[$end - 1].Groups['ending'].Value } + $edits.Add(@{ + Offset = $fence.Index + $fence.Groups['text'].Length + Length = 0 + Text = $newline + $newline + $associations[$page][$line].Replace("`n", $newline) + }) + } + } + $updated = $original + # At a shared offset remove the previous association before inserting its replacement. + foreach ($edit in $edits | Sort-Object -Property Offset, Length -Descending) { + $updated = $updated.Remove($edit.Offset, $edit.Length).Insert($edit.Offset, $edit.Text) + } + Write-Page $page $original $updated } - $updated = $original - # At a shared offset remove the previous association before inserting its replacement. - foreach ($edit in $edits | Sort-Object -Property Offset, Length -Descending) { - $updated = $updated.Remove($edit.Offset, $edit.Length).Insert($edit.Offset, $edit.Text) + $config = Get-Content $configPath -Raw | ConvertFrom-Json -AsHashtable + if (-not $config.build) { throw 'docfx.json requires build configuration.' } + $resources = @($config.build.resource) + if (-not @($resources | Where-Object { ($_ | ConvertTo-Json -Compress) -match 'run-actions/\*\*' }).Count) { + $config.build.resource = @($resources | Where-Object { $null -ne $_ }) + @(@{ files=@('run-actions/**') }) + } + # Compose with an existing modern main.js rather than overriding its default export/start hook (e.g. Context7). + $templates = @($config.build.template) + $main = $null + foreach ($template in $templates) { + $candidate = Join-Path $workspace "$template/public/main.js" + if (Test-Path $candidate) { $main=$candidate } + } + $templatesChanged = $false + if (-not $main) { + $main = Join-Path $workspace 'templates/modern/public/main.js' + $null = Write-Changed $main "export default {};`n" + if ('templates/modern' -notin $templates) { + $templates = $templates + @('templates/modern') + $templatesChanged = $true + } + } + $msStyleTemplates = @($templates | Where-Object { $_ -eq 'templates/ms-style' }) + if ($msStyleTemplates.Count -gt 0) { + $reorderedTemplates = @($templates | Where-Object { $_ -ne 'templates/ms-style' }) + $msStyleTemplates + if (($reorderedTemplates -join "`0") -ne ($templates -join "`0")) { + $templates = $reorderedTemplates + $templatesChanged = $true + } } - Write-Page $page $original $updated -} -$config = Get-Content $configPath -Raw | ConvertFrom-Json -AsHashtable -if (-not $config.build) { throw 'docfx.json requires build configuration.' } -$resources = @($config.build.resource) -if (-not @($resources | Where-Object { ($_ | ConvertTo-Json -Compress) -match 'run-actions/\*\*' }).Count) { - $config.build.resource = @($resources | Where-Object { $null -ne $_ }) + @(@{ files=@('run-actions/**') }) -} -# Compose with an existing modern main.js rather than overriding its default export/start hook (e.g. Context7). -$templates = @($config.build.template) -$main = $null -foreach ($template in $templates) { - $candidate = Join-Path $workspace "$template/public/main.js" - if (Test-Path $candidate) { $main=$candidate } -} -$templatesChanged = $false -if (-not $main) { - $main = Join-Path $workspace 'templates/modern/public/main.js' - $null = Write-Changed $main "export default {};`n" - if ('templates/modern' -notin $templates) { - $templates = $templates + @('templates/modern') - $templatesChanged = $true - } -} -$msStyleTemplates = @($templates | Where-Object { $_ -eq 'templates/ms-style' }) -if ($msStyleTemplates.Count -gt 0) { - $reorderedTemplates = @($templates | Where-Object { $_ -ne 'templates/ms-style' }) + $msStyleTemplates - if (($reorderedTemplates -join "`0") -ne ($templates -join "`0")) { - $templates = $reorderedTemplates - $templatesChanged = $true - } -} -if ($templatesChanged) { $config.build.template = $templates } -Assert-RepositoryPath $main -$mainText = [IO.File]::ReadAllText($main) -if (-not $mainText.Contains("import './run-actions.js';")) { $null = Write-Changed $main ($mainText + "`nimport './run-actions.js';`n") } -$null = Write-Changed (Join-Path (Split-Path $main -Parent) 'run-actions.js') ([IO.File]::ReadAllText((Join-Path $PSScriptRoot '../assets/run-actions.js'))) -$null = Write-Changed $configPath (($config | ConvertTo-Json -Depth 100) + "`n") -$sortedManifest = @($manifestEntries | Sort-Object { $_.id }) -$null = Write-Changed $manifestPath (([ordered]@{ schemaVersion = 1; examples = $sortedManifest } | ConvertTo-Json -Depth 30) + "`n") -$null = Write-Changed (Join-Path $workspace 'BuildRunActions.ps1') ([IO.File]::ReadAllText((Join-Path $PSScriptRoot '../assets/BuildRunActions.ps1'))) + if ($templatesChanged) { $config.build.template = $templates } + Assert-RepositoryPath $main + $mainText = [IO.File]::ReadAllText($main) + if (-not $mainText.Contains("import './run-actions.js';")) { $null = Write-Changed $main ($mainText + "`nimport './run-actions.js';`n") } + $null = Write-Changed (Join-Path (Split-Path $main -Parent) 'run-actions.js') ([IO.File]::ReadAllText((Join-Path $PSScriptRoot '../assets/run-actions.js'))) + $null = Write-Changed $configPath (($config | ConvertTo-Json -Depth 100) + "`n") + $sortedManifest = @($manifestEntries | Sort-Object { $_.id }) + $null = Write-AtomicChanged $manifestPath (([ordered]@{ schemaVersion = 1; examples = $sortedManifest } | ConvertTo-Json -Depth 30) + "`n") + $null = Write-Changed (Join-Path $workspace 'BuildRunActions.ps1') ([IO.File]::ReadAllText((Join-Path $PSScriptRoot '../assets/BuildRunActions.ps1'))) +} + function Test-DockerBuildCommand($CommandAst) { if ($CommandAst.CommandElements.Count -lt 2) { return $false } $cmdName = $CommandAst.GetCommandName() @@ -589,13 +2050,65 @@ function Update-BuildDocfxImageScript([string] $Original) { if ($verifyErrors.Count) { return $Original } return $updated } -$buildImagePath = Join-Path $workspace 'BuildDocfxImage.ps1' -if (Test-Path -LiteralPath $buildImagePath) { - Assert-RepositoryPath $buildImagePath - $buildImageOriginal = [IO.File]::ReadAllText($buildImagePath) - $buildImageUpdated = Update-BuildDocfxImageScript $buildImageOriginal - Write-Page $buildImagePath $buildImageOriginal $buildImageUpdated +if (-not $manifestPreserved) { + $buildImagePath = Join-Path $workspace 'BuildDocfxImage.ps1' + if (Test-Path -LiteralPath $buildImagePath) { + Assert-RepositoryPath $buildImagePath + $buildImageOriginal = [IO.File]::ReadAllText($buildImagePath) + $buildImageUpdated = Update-BuildDocfxImageScript $buildImageOriginal + Write-Page $buildImagePath $buildImageOriginal $buildImageUpdated + } +} + +$failedTotal = @($results | Where-Object { $_.status -eq 'failed' -or $_.native -eq 'Failed' -or $_.docker -eq 'Failed' }).Count +$unresolvedTotal = @($results | Where-Object coverage -eq 'Unresolved').Count +$exitCodeOut = if ($failedTotal -gt 0) { 1 } elseif ($unresolvedTotal -gt 0) { 2 } else { 0 } + +if ($SummaryJson) { + $skippedByCategory = [ordered]@{} + foreach ($r in $results) { + if ($r.coverage -eq 'Unresolved' -and $r.category) { + if (-not $skippedByCategory.Contains($r.category)) { $skippedByCategory[$r.category] = 0 } + $skippedByCategory[$r.category]++ + } + } + $nativeVerified = @($results | Where-Object native -eq 'Verified').Count + $dockerVerified = @($results | Where-Object docker -eq 'Verified').Count + $verifiedCount = switch ($Verify) { + 'Native' { $nativeVerified } + 'Docker' { $dockerVerified } + default { @($results | Where-Object { $_.native -eq 'Verified' -or $_.docker -eq 'Verified' }).Count } + } + $verifyScope = if ($Verify -eq 'None') { 'none' } + elseif ($verifyTargetIds) { 'id' } + elseif ($VerifyChanged) { 'changed' } + else { 'all' } + $summaryDoc = [ordered]@{ + schemaVersion = 2 + mode = if ($Verify -ne 'None') { 'verify' } else { 'generate' } + exitCode = $exitCodeOut + failureReason = $null + verifyScope = $verifyScope + manifestPreserved = $manifestPreserved + total = $results.Count + generated = @($results | Where-Object status -eq 'generated').Count + unchanged = @($results | Where-Object status -eq 'unchanged').Count + verified = $verifiedCount + failed = $failedTotal + unresolved = $unresolvedTotal + intrinsic = @($results | Where-Object coverage -eq 'Intrinsically non-executable').Count + 'skipped-by-category' = $skippedByCategory + verification = [ordered]@{ + nativeVerified = $nativeVerified + dockerVerified = $dockerVerified + executed = $verificationExecuted + reused = $verificationReused + failed = $verificationFailedCount + } + examples = @($results) + } + $summaryDoc | ConvertTo-Json -Depth 30 +} else { + if ($results.Count) { $results | ConvertTo-Json -Depth 30 } else { '[]' } } -if ($results.Count) { $results | ConvertTo-Json -Depth 30 } else { '[]' } -if (@($results | Where-Object { $_.status -eq 'failed' -or $_.native -eq 'Failed' -or $_.docker -eq 'Failed' }).Count) { exit 1 } -if (@($results | Where-Object coverage -eq 'Unresolved').Count) { exit 2 } +exit $exitCodeOut diff --git a/skills/dotnet-docfx-digest/scripts/integration-example.ps1 b/skills/dotnet-docfx-digest/scripts/integration-example.ps1 index ec91e3b3..203243b5 100644 --- a/skills/dotnet-docfx-digest/scripts/integration-example.ps1 +++ b/skills/dotnet-docfx-digest/scripts/integration-example.ps1 @@ -96,3 +96,167 @@ $dockerUser = @() function New-ManagedApplicationExamplePair { New-RepositoryExamplePair -Repository 'codebeltnet/xunit' -Commit '84b13767cb9484f8f3a36a71875662edfdb3e511' -Project 'test/Codebelt.Extensions.Xunit.Hosting.FunctionalTests/Codebelt.Extensions.Xunit.Hosting.FunctionalTests.csproj' -Test 'Codebelt.Extensions.Xunit.Hosting.BootstrapperMinimalWorkerApplicationTestTest.ShouldBootstrapMinimalWorkerProgram' -Framework net11.0 -Image mcr.microsoft.com/dotnet/sdk:11.0 } + +function New-HostExamplePair { + param( + [Parameter(Mandatory)][string] $Source, + [string] $Framework = 'net10.0', + [string] $Sdk = 'Microsoft.NET.Sdk.Web', + [string[]] $DependsOn = @(), + [string] $ProbePath = '/', + [string] $ProbeMethod = 'GET', + [int] $TimeoutSeconds = 15, + [int] $ExpectedStatusCode = 0, + [string] $ExpectedBodyContains = '', + [int] $StartupDelayMs = 1000, + [string] $Image = 'codebeltnet/csrun:10' + ) + if ($Framework -notmatch '^net\d+\.\d+$') { throw "Invalid host framework: $Framework" } + if ($Sdk -notmatch '^[A-Za-z0-9_.]+$') { throw "Invalid host SDK: $Sdk" } + if ($ProbeMethod -notmatch '^(GET|HEAD|POST|PUT|DELETE|OPTIONS|PATCH)$') { throw "Invalid host probeMethod: $ProbeMethod" } + if ($TimeoutSeconds -lt 3 -or $TimeoutSeconds -gt 300) { throw "Host timeoutSeconds must be between 3 and 300." } + $cleanDependsOn = @($DependsOn | Where-Object { -not [string]::IsNullOrWhiteSpace([string]$_) }) + foreach ($pin in $cleanDependsOn) { + if ($pin -notmatch '^[A-Za-z0-9_.-]+@[A-Za-z0-9_.-]+$') { throw "Invalid host dependsOn pin: $pin" } + } + $pkgLines = @($cleanDependsOn | ForEach-Object { + $parts = $_ -split '@', 2 + " " + }) + $itemGroup = if ($pkgLines.Count) { "`n `n" + ($pkgLines -join "`n") + "`n " } else { '' } + $csproj = "`n `n Exe`n $Framework`n enable`n enable`n $itemGroup`n`n" + $payloadJson = ([ordered]@{ + csproj = $csproj + source = $Source.Replace("`r`n", "`n").TrimEnd("`r", "`n") + "`n" + probePath = $ProbePath + probeMethod = $ProbeMethod + timeoutSeconds = $TimeoutSeconds + expectedStatusCode = $ExpectedStatusCode + expectedBodyContains = $ExpectedBodyContains + startupDelayMs = $StartupDelayMs + } | ConvertTo-Json -Depth 10).Replace("`r`n", "`n") + $payloadB64 = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($payloadJson)) + $runnerBody = @' +$payload = [Text.Encoding]::UTF8.GetString([Convert]::FromBase64String($payloadB64)) | ConvertFrom-Json +$work = Join-Path ([IO.Path]::GetTempPath()) ('dx-host-' + [guid]::NewGuid().ToString('N').Substring(0, 8)) +$null = New-Item -ItemType Directory -Path $work +$hostProcess = $null +try { + $utf8NoBom = [Text.UTF8Encoding]::new($false) + [IO.File]::WriteAllText((Join-Path $work 'HostSample.csproj'), $payload.csproj, $utf8NoBom) + [IO.File]::WriteAllText((Join-Path $work 'Program.cs'), $payload.source, $utf8NoBom) + $buildLog = Join-Path $work 'build.log' + & dotnet build (Join-Path $work 'HostSample.csproj') -c Release --nologo -v quiet *> $buildLog + if ($LASTEXITCODE -ne 0) { + $buildText = Get-Content -LiteralPath $buildLog -Raw -ErrorAction SilentlyContinue + throw "Host sample build failed (exit $LASTEXITCODE): $buildText" + } + $listener = [Net.Sockets.TcpListener]::new([Net.IPAddress]::Loopback, 0) + $listener.Start() + $port = $listener.LocalEndpoint.Port + $listener.Stop() + $baseUrl = "http://127.0.0.1:$port" + $startInfo = [Diagnostics.ProcessStartInfo]::new('dotnet') + foreach ($a in @('run','--no-build','-c','Release','--project',(Join-Path $work 'HostSample.csproj'))) { $startInfo.ArgumentList.Add($a) } + $startInfo.Environment['ASPNETCORE_URLS'] = $baseUrl + $startInfo.Environment['DOTNET_ENVIRONMENT'] = 'Development' + $startInfo.RedirectStandardOutput = $true + $startInfo.RedirectStandardError = $true + $startInfo.UseShellExecute = $false + $hostProcess = [Diagnostics.Process]::new() + $hostProcess.StartInfo = $startInfo + if (-not $hostProcess.Start()) { throw 'Could not start host process.' } + $stdoutTask = $hostProcess.StandardOutput.ReadToEndAsync() + $stderrTask = $hostProcess.StandardError.ReadToEndAsync() + $deadline = [DateTimeOffset]::UtcNow.AddSeconds([int]$payload.timeoutSeconds) + if ($payload.probePath) { + $probeUrl = $baseUrl + $payload.probePath + $probed = $false + $lastError = '' + $httpClient = [Net.Http.HttpClient]::new() + $httpClient.Timeout = [TimeSpan]::FromSeconds(3) + try { + while ([DateTimeOffset]::UtcNow -lt $deadline) { + if ($hostProcess.HasExited) { + $stdOut = $stdoutTask.GetAwaiter().GetResult() + $errOut = $stderrTask.GetAwaiter().GetResult() + throw "Host exited before probe succeeded (exit $($hostProcess.ExitCode)). $stdOut $errOut" + } + try { + $req = [Net.Http.HttpRequestMessage]::new([Net.Http.HttpMethod]::new([string]$payload.probeMethod), $probeUrl) + $resp = $httpClient.Send($req) + $statusCode = [int]$resp.StatusCode + $body = $resp.Content.ReadAsStringAsync().GetAwaiter().GetResult() + if ([int]$payload.expectedStatusCode -gt 0 -and $statusCode -ne [int]$payload.expectedStatusCode) { + throw "Expected HTTP $($payload.expectedStatusCode) from $($payload.probePath), got HTTP $statusCode. Body: $body" + } + if ($payload.expectedBodyContains -and -not $body.Contains([string]$payload.expectedBodyContains, [StringComparison]::Ordinal)) { + throw "Expected response body to contain '$($payload.expectedBodyContains)'. Body: $body" + } + Write-Output "HTTP $statusCode $($payload.probeMethod) $($payload.probePath)" + if ($body) { Write-Output $body } + $probed = $true + break + } catch [Net.Http.HttpRequestException] { + $lastError = $_.Exception.Message + Start-Sleep -Milliseconds 200 + } catch [Threading.Tasks.TaskCanceledException] { + $lastError = $_.Exception.Message + Start-Sleep -Milliseconds 200 + } + } + } finally { + $httpClient.Dispose() + } + if (-not $probed) { throw "Host probe '$($payload.probeMethod) $($payload.probePath)' timed out after $($payload.timeoutSeconds)s. Last error: $lastError" } + } else { + Start-Sleep -Milliseconds ([int]$payload.startupDelayMs) + if ($hostProcess.HasExited -and $hostProcess.ExitCode -ne 0) { + $stdOut = $stdoutTask.GetAwaiter().GetResult() + $errOut = $stderrTask.GetAwaiter().GetResult() + throw "Host exited with code $($hostProcess.ExitCode). $stdOut $errOut" + } + Write-Output "Host started cleanly and ran for $($payload.startupDelayMs)ms." + } +} finally { + if ($hostProcess) { + try { + if (-not $hostProcess.HasExited) { $hostProcess.Kill($true) } + $null = $hostProcess.WaitForExit(5000) + } catch {} + $hostProcess.Dispose() + } + $resolved = [IO.Path]::GetFullPath($work) + $temp = [IO.Path]::GetFullPath([IO.Path]::GetTempPath()).TrimEnd('/','\') + [IO.Path]::DirectorySeparatorChar + if ($resolved.StartsWith($temp, [StringComparison]::OrdinalIgnoreCase) -and (Test-Path -LiteralPath $resolved)) { + Remove-Item -LiteralPath $resolved -Recurse -Force -ErrorAction SilentlyContinue + } +} +'@ + $runnerNorm = $runnerBody.Replace("`r`n", "`n").TrimEnd() + $native = "& {`n#requires -Version 7.0`n`$ErrorActionPreference = 'Stop'`n`$PSNativeCommandUseErrorActionPreference = `$false`n`$OutputEncoding = [Text.UTF8Encoding]::new(`$false)`n[Console]::OutputEncoding = `$OutputEncoding`n`$null = Get-Command dotnet -ErrorAction Stop`n`$payloadB64 = '$payloadB64'`n" + $runnerNorm + "`n}`n" + $runnerB64 = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes("`$ErrorActionPreference = 'Stop'`n`$PSNativeCommandUseErrorActionPreference = `$false`n`$payloadB64 = '$payloadB64'`n" + $runnerNorm + "`n")) + $quotedImage = "'" + $Image.Replace("'", "''") + "'" + $docker = @" +& { +#requires -Version 7.0 + `$ErrorActionPreference = 'Stop' + `$PSNativeCommandUseErrorActionPreference = `$false + `$OutputEncoding = [Text.UTF8Encoding]::new(`$false) + [Console]::OutputEncoding = `$OutputEncoding + `$null = Get-Command docker -ErrorAction Stop + docker info *> `$null + if (`$LASTEXITCODE -ne 0) { throw 'Docker daemon unavailable.' } + `$runnerB64 = '$runnerB64' + `$command = '`$ErrorActionPreference = "Stop"; `$s = [Text.Encoding]::UTF8.GetString([Convert]::FromBase64String([Console]::In.ReadToEnd())); `$p = Join-Path ([IO.Path]::GetTempPath()) ("dx-host-runner-" + [guid]::NewGuid().ToString("N") + ".ps1"); [IO.File]::WriteAllText(`$p, `$s); try { & pwsh -NoProfile -NonInteractive -File `$p; exit `$LASTEXITCODE } finally { Remove-Item -LiteralPath `$p -Force -ErrorAction SilentlyContinue }' + `$output = (@(`$runnerB64 | & docker run --rm -i --init --entrypoint pwsh $quotedImage -NoProfile -NonInteractive -Command `$command) -join [Environment]::NewLine) + `$code = `$LASTEXITCODE + Write-Output `$output + if (`$code -ne 0) { throw "Host execution failed in Docker with exit code `$code." } +} +"@ + "`n" + [pscustomobject]@{ + Native = $native + Docker = $docker + } +} From 6b680ea13e461c9f9d2b253605e348fbbc955b07 Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sat, 21 Nov 2026 18:05:36 +0100 Subject: [PATCH 06/28] =?UTF-8?q?=E2=9C=85=20add=20deterministic=20run-act?= =?UTF-8?q?ion=20workflow=20regression=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cover all eight deterministic run-action workflow cases, recipe health classification, dependency resolution, host mode, and offline verification. --- .../scripts/test-run-actions.ps1 | 492 +++++++++++++++++- 1 file changed, 491 insertions(+), 1 deletion(-) diff --git a/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 b/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 index 8abc5c5c..e8144552 100644 --- a/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 +++ b/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 @@ -718,4 +718,494 @@ foreach ($case in $templateOrderCases) { } finally { $inventoryOverride = $null } } -Write-Host "Run-action delivery passed: paired console, test, dependency-backed test and repository test; exact pins and source, coverage classifications, independent verification state, incremental assets, stale cleanup, standalone BuildRunActions.ps1 materialization and modern DocFX render. Fixture: $work" +# =========================================================================== +# Deterministic run-action workflow regression (all 8 blockers & CLI surface) +# =========================================================================== +$detRoot = Join-Path $work 'deterministic-workflow' +$null = [IO.Directory]::CreateDirectory("$detRoot/docs") +$null = [IO.Directory]::CreateDirectory("$detRoot/src/Acme.Net") +$null = [IO.Directory]::CreateDirectory("$detRoot/src/Acme.Internal") +$null = [IO.Directory]::CreateDirectory("$detRoot/src/Acme.Xml") + +[IO.File]::WriteAllText("$detRoot/src/Acme.Net/Acme.Net.csproj", @' + + + net10.0 + Acme.Net + 11.0.0 + + +'@) +[IO.File]::WriteAllText("$detRoot/src/Acme.Net/HttpManager.cs", @' +namespace Acme.Net.Http; +public sealed class HttpManager { } +'@) + +[IO.File]::WriteAllText("$detRoot/src/Acme.Internal/Acme.Internal.csproj", @' + + + net10.0 + false + + +'@) +[IO.File]::WriteAllText("$detRoot/src/Acme.Internal/SecretHelper.cs", @' +namespace Acme.Internal; +public sealed class SecretHelper { } +'@) + +[IO.File]::WriteAllText("$detRoot/src/Acme.Xml/Acme.Xml.csproj", @' + + + net10.0 + Acme.Xml + 11.0.0 + + +'@) +[IO.File]::WriteAllText("$detRoot/src/Acme.Xml/XmlConvert.cs", @' +namespace Acme.Xml.Serialization; +public static class XmlConvert { } +'@) + +[IO.File]::WriteAllText("$detRoot/docfx.json", (@{ + metadata = @(@{ + src = @(@{ files = @('src/Acme.Net/Acme.Net.csproj', 'src/Acme.Internal/Acme.Internal.csproj', 'src/Acme.Xml/Acme.Xml.csproj') }) + properties = @{ TargetFramework = 'net10.0' } + }) + build = @{ + content = @(@{ files = @('docs/*.md') }) + template = @('default', 'modern') + dest = '_site' + } +} | ConvertTo-Json -Depth 10)) + +$cleanWrapperMd = @" +--- +uid: Demo.WrapperClean +--- +# Clean wrapper + +``````csharp +using System; + +public sealed class CleanExample +{ + public void Demonstrate() + { + Console.WriteLine("clean-ok"); + } +} +`````` +"@ +[IO.File]::WriteAllText("$detRoot/docs/WrapperClean.md", $cleanWrapperMd) + +$membersWrapperMd = @" +--- +uid: Demo.WrapperMembers +--- +# Wrapper with members + +``````csharp +using System; + +namespace Demo; + +public sealed class MemberExample +{ + private readonly string _msg = "members-ok"; + public void Demonstrate() => Console.WriteLine(Format()); + private string Format() => _msg; +} +`````` +"@ +[IO.File]::WriteAllText("$detRoot/docs/WrapperMembers.md", $membersWrapperMd) + +$hostParamMd = @" +--- +uid: Demo.HostParam +--- +# Parameterized host method + +``````csharp +using Microsoft.Extensions.DependencyInjection; + +public sealed class StartupExample +{ + public void ConfigureServices(IServiceCollection services) + { + } +} +`````` +"@ +[IO.File]::WriteAllText("$detRoot/docs/HostParam.md", $hostParamMd) + +$noEntryMd = @" +--- +uid: Demo.NoEntry +--- +# Options model without entry + +``````csharp +public sealed class JustOptions +{ + public int Timeout { get; set; } = 30; +} +`````` +"@ +[IO.File]::WriteAllText("$detRoot/docs/NoEntry.md", $noEntryMd) + +$silentConsoleMd = @" +--- +uid: Demo.SilentConsole +--- +# Silent console + +``````csharp +var x = 1 + 1; +`````` +"@ +[IO.File]::WriteAllText("$detRoot/docs/SilentConsole.md", $silentConsoleMd) + +$hostBlockingMd = @" +--- +uid: Demo.AppTagHelperOptions +--- +# Blocking ASP.NET Core host + +``````csharp +var builder = WebApplication.CreateBuilder(args); +var app = builder.Build(); +app.MapGet("/", () => "host-harness-ok"); +app.Run(); +`````` +"@ +[IO.File]::WriteAllText("$detRoot/docs/HostBlocking.md", $hostBlockingMd) + +$splitPkgMd = @" +--- +uid: Acme.Net.Http.HttpManager +--- +# Split package type ownership + +``````csharp +using Acme.Net.Http; + +var mgr = new HttpManager(); +`````` +"@ +[IO.File]::WriteAllText("$detRoot/docs/SplitPkg.md", $splitPkgMd) + +$unpublishedMd = @" +--- +uid: Acme.Internal.SecretHelper +--- +# Unpublished project ownership + +``````csharp +using Acme.Internal; + +var helper = new SecretHelper(); +`````` +"@ +[IO.File]::WriteAllText("$detRoot/docs/Unpublished.md", $unpublishedMd) + +$ambiguousMd = @" +--- +uid: Acme.Xml.Serialization.XmlConvert +--- +# Ambiguous type collision + +``````csharp +using System.Xml; +using Acme.Xml.Serialization; + +var t = typeof(XmlConvert); +`````` +"@ +[IO.File]::WriteAllText("$detRoot/docs/Ambiguous.md", $ambiguousMd) + +$multiFenceMd = @" +--- +uid: Demo.MultiFence +--- +# Multi-fence page + +First example: + +``````csharp +using System; +Console.WriteLine("fence-one"); +`````` + +Second example: + +``````csharp +using System; +Console.WriteLine("fence-two"); +`````` +"@ +[IO.File]::WriteAllText("$detRoot/docs/MultiFence.md", $multiFenceMd) + +$intrinsicMd = @" +--- +uid: Demo.IntrinsicOnly +--- +# Intrinsic only + +``````csharp +public interface IMarkerOnly { } +`````` +"@ +[IO.File]::WriteAllText("$detRoot/docs/Intrinsic.md", $intrinsicMd) +$intrinsicHash = [Convert]::ToHexString([Security.Cryptography.SHA256]::HashData([Text.Encoding]::UTF8.GetBytes('public interface IMarkerOnly { }'))) +$fenceTwoHash = [Convert]::ToHexString([Security.Cryptography.SHA256]::HashData([Text.Encoding]::UTF8.GetBytes("using System;`nConsole.WriteLine(`"fence-two`");"))) +[IO.File]::WriteAllText("$detRoot/run-actions.settings.json", (@{ + examples = @( + @{ uid = 'Demo.IntrinsicOnly'; exampleId = 'Demo.IntrinsicOnly#1'; fenceOrdinal = 1; sourceSha256 = $intrinsicHash; intrinsicLimitation = 'Marker interface with no observable runtime behavior.' } + @{ uid = 'Demo.MultiFence'; exampleId = 'Demo.MultiFence#2'; fenceOrdinal = 2; sourceSha256 = $fenceTwoHash; manifest = @{ schemaVersion = 1; mode = 'console'; framework = 'net10.0'; dependsOn = @() } } + ) +} | ConvertTo-Json -Depth 15)) + +# 1. --run-action-plan --json and --explain +$planJson = (& $generator -RepoRoot $detRoot --run-action-plan --json) | ConvertFrom-Json +if ($LASTEXITCODE -ne 0 -or $planJson.schemaVersion -ne 2) { throw 'Expected --run-action-plan --json to succeed with schemaVersion 2.' } +$planById = @{} +foreach ($item in $planJson.examples) { $planById[$item.exampleId] = $item } +if ($planById['Demo.WrapperClean#1'].category -ne 'wrapper-clean' -or -not $planById['Demo.WrapperClean#1'].convertible -or $planById['Demo.WrapperClean#1'].blockingConstruct -notlike '*CleanExample*') { + throw "wrapper-clean classification failed: $($planById['Demo.WrapperClean#1'] | ConvertTo-Json -Compress)" +} +if ($planById['Demo.WrapperMembers#1'].category -ne 'wrapper-members' -or -not $planById['Demo.WrapperMembers#1'].convertible -or $planById['Demo.WrapperMembers#1'].blockingConstruct -notlike '*_msg*') { + throw "wrapper-members classification failed: $($planById['Demo.WrapperMembers#1'] | ConvertTo-Json -Compress)" +} +if ($planById['Demo.HostParam#1'].category -ne 'host-parameterized' -or $planById['Demo.HostParam#1'].convertible -or $planById['Demo.HostParam#1'].blockingConstruct -notlike '*ConfigureServices*') { + throw "host-parameterized classification failed: $($planById['Demo.HostParam#1'] | ConvertTo-Json -Compress)" +} +if ($planById['Demo.NoEntry#1'].category -ne 'no-entry' -or $planById['Demo.NoEntry#1'].convertible) { + throw "no-entry classification failed: $($planById['Demo.NoEntry#1'] | ConvertTo-Json -Compress)" +} +if ($planById['Demo.AppTagHelperOptions#1'].category -ne 'host-blocking' -or -not $planById['Demo.AppTagHelperOptions#1'].convertible -or $planById['Demo.AppTagHelperOptions#1'].suggestedMode -ne 'host') { + throw "host-blocking classification failed: $($planById['Demo.AppTagHelperOptions#1'] | ConvertTo-Json -Compress)" +} +if ($planById['Demo.IntrinsicOnly#1'].category -ne 'intrinsic' -or $planById['Demo.IntrinsicOnly#1'].convertible) { + throw "intrinsic classification failed: $($planById['Demo.IntrinsicOnly#1'] | ConvertTo-Json -Compress)" +} +if (-not $planById.ContainsKey('Demo.MultiFence#1') -or -not $planById.ContainsKey('Demo.MultiFence#2')) { + throw 'Multi-fence page must emit stable uid#1 and uid#2 exampleIds.' +} +$explainText = (& $generator -RepoRoot $detRoot --explain Demo.HostParam) -join "`n" +if ($LASTEXITCODE -ne 0 -or $explainText -notlike '*host-parameterized*' -or $explainText -notlike '*ConfigureServices*') { + throw "--explain prose output was incomplete: $explainText" +} + +# 2. --resolve-dependencies (split package, unpublished project, CS0104 ambiguity) +$splitDep = (& $generator -RepoRoot $detRoot --resolve-dependencies Acme.Net.Http.HttpManager) | ConvertFrom-Json +if ($LASTEXITCODE -ne 0 -or -not $splitDep.preflightPassed -or ($splitDep.dependsOn -notcontains 'Acme.Net@11.0.0') -or ($splitDep.dependsOn -contains 'Acme.Net.Http@11.0.0')) { + throw "Split-package dependency resolution failed: $($splitDep | ConvertTo-Json -Compress)" +} +$unpubDep = (& $generator -RepoRoot $detRoot --resolve-dependencies Acme.Internal.SecretHelper) | ConvertFrom-Json +if ($LASTEXITCODE -ne 1 -or $unpubDep.preflightPassed -or -not (@($unpubDep.errors | Where-Object { $_ -like 'missing-package: SecretHelper -> Acme.Internal*' }).Count)) { + throw "Unpublished project preflight must fail with missing-package: $($unpubDep | ConvertTo-Json -Compress)" +} +$ambigDep = (& $generator -RepoRoot $detRoot --resolve-dependencies Acme.Xml.Serialization.XmlConvert) | ConvertFrom-Json +if ($LASTEXITCODE -ne 1 -or $ambigDep.preflightPassed -or -not (@($ambigDep.errors | Where-Object { $_ -like 'ambiguous-type: XmlConvert ->*System.Xml.XmlConvert*' -and $_ -like '*Acme.Xml.Serialization.XmlConvert*' }).Count)) { + throw "Ambiguous type preflight must fail with ambiguous-type: $($ambigDep | ConvertTo-Json -Compress)" +} + +# 3. --validate-run-action and guarded --apply-run-action (with real dotnet run --file and host harness!) +$refusedApply = (& $generator -RepoRoot $detRoot --apply-run-action Demo.WrapperClean) | ConvertFrom-Json +if ($LASTEXITCODE -ne 1 -or $refusedApply.applied -or $refusedApply.reasonCode -ne 'validation-required') { + throw "--apply-run-action must refuse when validation has not passed: $($refusedApply | ConvertTo-Json -Compress)" +} +if ([IO.File]::ReadAllText("$detRoot/docs/WrapperClean.md") -cne $cleanWrapperMd) { + throw 'Refused --apply-run-action must not modify the Markdown file.' +} +$silentVal = (& $generator -RepoRoot $detRoot --validate-run-action Demo.SilentConsole) | ConvertFrom-Json +if ($LASTEXITCODE -ne 1 -or $silentVal.validated -or $silentVal.reasonCode -ne 'empty-console-output') { + throw "Console validation must reject empty stdout: $($silentVal | ConvertTo-Json -Compress)" +} +$cleanVal = (& $generator -RepoRoot $detRoot --validate-run-action Demo.WrapperClean) | ConvertFrom-Json +if ($LASTEXITCODE -ne 0 -or -not $cleanVal.validated -or -not $cleanVal.converted -or $cleanVal.stdout -notlike '*clean-ok*' -or -not $cleanVal.recipeSha256) { + throw "wrapper-clean validation failed: $($cleanVal | ConvertTo-Json -Compress)" +} +if ([IO.File]::ReadAllText("$detRoot/docs/WrapperClean.md") -cne $cleanWrapperMd) { + throw '--validate-run-action must not edit repository files.' +} +$cleanApplied = (& $generator -RepoRoot $detRoot --apply-run-action Demo.WrapperClean) | ConvertFrom-Json +if ($LASTEXITCODE -ne 0 -or -not $cleanApplied.applied -or -not $cleanApplied.fenceUpdated -or $cleanApplied.recipeSha256 -cne $cleanVal.recipeSha256) { + throw "--apply-run-action failed after validation: $($cleanApplied | ConvertTo-Json -Compress)" +} +$membersVal = (& $generator -RepoRoot $detRoot --validate-run-action Demo.WrapperMembers) | ConvertFrom-Json +if ($LASTEXITCODE -ne 0 -or -not $membersVal.validated -or $membersVal.stdout -notlike '*members-ok*') { + throw "wrapper-members validation failed: $($membersVal | ConvertTo-Json -Compress)" +} +$membersApplied = (& $generator -RepoRoot $detRoot --apply-run-action Demo.WrapperMembers) | ConvertFrom-Json +if ($LASTEXITCODE -ne 0 -or -not $membersApplied.applied) { + throw "--apply-run-action failed for wrapper-members: $($membersApplied | ConvertTo-Json -Compress)" +} + +# 4. Multi-fence apply safety & --check-recipes --json (moved, duplicate-uid, whitespace-only vs semantic orphan) +$ambigFenceVal = (& $generator -RepoRoot $detRoot --validate-run-action Demo.MultiFence) | ConvertFrom-Json +if ($LASTEXITCODE -ne 3 -or $ambigFenceVal.reasonCode -ne 'ambiguous-multi-fence-uid') { + throw 'Bare multi-fence UID must exit 3 with explicit uid#ordinal candidates.' +} +$mf1Val = (& $generator -RepoRoot $detRoot --validate-run-action Demo.MultiFence#1) | ConvertFrom-Json +if ($LASTEXITCODE -ne 0 -or -not $mf1Val.validated) { throw "MultiFence#1 validation failed: $($mf1Val | ConvertTo-Json -Compress)" } +$mf1Applied = (& $generator -RepoRoot $detRoot --apply-run-action Demo.MultiFence#1) | ConvertFrom-Json +if ($LASTEXITCODE -ne 0 -or -not $mf1Applied.applied) { throw "MultiFence#1 apply failed: $($mf1Applied | ConvertTo-Json -Compress)" } +$settingsAfterMf1 = (Get-Content "$detRoot/run-actions.settings.json" -Raw | ConvertFrom-Json).examples +if (-not (@($settingsAfterMf1 | Where-Object { $_.uid -eq 'Demo.MultiFence' -and $_.sourceSha256 -ceq $fenceTwoHash }).Count)) { + throw 'Applying a recipe for fence #1 must NEVER overwrite an existing recipe matching fence #2.' +} + +# 5. Host harness (Blocker 8): real ASP.NET Core host validation, apply, generation, and BuildRunActions.ps1 parity +$hostVal = (& $generator -RepoRoot $detRoot --validate-run-action Demo.AppTagHelperOptions) | ConvertFrom-Json +if ($LASTEXITCODE -ne 0 -or -not $hostVal.validated -or $hostVal.mode -ne 'host' -or $hostVal.stdout -notlike '*host-harness-ok*') { + throw "Host harness validation failed: $($hostVal | ConvertTo-Json -Compress)" +} +$hostApplied = (& $generator -RepoRoot $detRoot --apply-run-action Demo.AppTagHelperOptions) | ConvertFrom-Json +if ($LASTEXITCODE -ne 0 -or -not $hostApplied.applied) { throw "Host harness apply failed: $($hostApplied | ConvertTo-Json -Compress)" } + +# Clean recipe check before mutating fences for negative tests +$cleanCheck = (& $generator -RepoRoot $detRoot --check-recipes --json) | ConvertFrom-Json +if ($LASTEXITCODE -ne 0 -or $cleanCheck.issues.Count -ne 0 -or $cleanCheck.normalization.lineEndings -ne 'LF') { + throw "Expected clean --check-recipes --json: $($cleanCheck | ConvertTo-Json -Depth 10)" +} + +# Generate manifest & materialize BuildRunActions.ps1 (including host strategy!) +$detGenSummary = (& $generator -RepoRoot $detRoot --summary-json) | ConvertFrom-Json +if ($LASTEXITCODE -ne 2 -or $detGenSummary.schemaVersion -ne 2 -or $detGenSummary.intrinsic -ne 1 -or $detGenSummary.unresolved -lt 1 -or -not $detGenSummary.'skipped-by-category') { + throw "Unexpected --summary-json output: $($detGenSummary | ConvertTo-Json -Depth 5)" +} +$hostGenEntry = $detGenSummary.examples | Where-Object exampleId -ceq 'Demo.AppTagHelperOptions#1' +if (-not $hostGenEntry -or $hostGenEntry.strategy -ne 'host' -or $hostGenEntry.coverage -ne 'Paired') { + throw "Expected paired host strategy entry: $($hostGenEntry | ConvertTo-Json -Compress)" +} +$global:LASTEXITCODE = 0 +& "$detRoot/BuildRunActions.ps1" | Out-Null +if ($LASTEXITCODE -ne 0) { throw 'BuildRunActions.ps1 failed for host strategy manifest.' } +foreach ($t in @('native', 'docker')) { + $hostScriptPath = "$detRoot/run-actions/$($hostGenEntry.id)/$t.ps1" + if (-not (Test-Path -LiteralPath $hostScriptPath)) { throw "BuildRunActions.ps1 did not materialize host $t.ps1" } + $actualHostHash = (Get-FileHash -LiteralPath $hostScriptPath -Algorithm SHA256).Hash + if ($actualHostHash -cne $hostGenEntry."${t}Sha256") { throw "BuildRunActions.ps1 host $t.ps1 hash drifted from generator." } +} + +# 6. Negative recipe health checks: moved, duplicate-uid, whitespace-only orphan, semantic orphan +$savedSettingsRaw = [IO.File]::ReadAllText("$detRoot/run-actions.settings.json") +$savedMultiRaw = [IO.File]::ReadAllText("$detRoot/docs/MultiFence.md") +$savedCleanRaw = [IO.File]::ReadAllText("$detRoot/docs/WrapperClean.md") +try { + # Moved: swap fence-one and fence-two in MultiFence.md + [IO.File]::WriteAllText("$detRoot/docs/MultiFence.md", $savedMultiRaw.Replace('fence-one', '__TMP__').Replace('fence-two', 'fence-one').Replace('__TMP__', 'fence-two')) + $movedCheck = (& $generator -RepoRoot $detRoot --check-recipes --json) | ConvertFrom-Json + if ($LASTEXITCODE -ne 1 -or -not (@($movedCheck.issues | Where-Object kind -eq 'moved').Count)) { + throw "Expected moved recipe detection: $($movedCheck | ConvertTo-Json -Depth 10)" + } + [IO.File]::WriteAllText("$detRoot/docs/MultiFence.md", $savedMultiRaw) + + # Whitespace-only orphan: append trailing spaces to Console.WriteLine("clean-ok"); + [IO.File]::WriteAllText("$detRoot/docs/WrapperClean.md", $savedCleanRaw.Replace('Console.WriteLine("clean-ok");', 'Console.WriteLine("clean-ok"); ')) + $wsCheck = (& $generator -RepoRoot $detRoot --check-recipes --json) | ConvertFrom-Json + $wsIssue = $wsCheck.issues | Where-Object { $_.kind -eq 'orphaned' -and $_.uid -eq 'Demo.WrapperClean' } | Select-Object -First 1 + if ($LASTEXITCODE -ne 1 -or -not $wsIssue -or $wsIssue.diffKind -ne 'whitespace-only' -or -not $wsIssue.currentSourceSha256 -or $wsIssue.suggestedUpdate.action -ne 'update-source-sha256') { + throw "Expected whitespace-only orphan classification: $($wsCheck | ConvertTo-Json -Depth 10)" + } + + # Semantic orphan: change printed string + [IO.File]::WriteAllText("$detRoot/docs/WrapperClean.md", $savedCleanRaw.Replace('clean-ok', 'changed-semantics')) + $semCheck = (& $generator -RepoRoot $detRoot --check-recipes --json) | ConvertFrom-Json + $semIssue = $semCheck.issues | Where-Object { $_.kind -eq 'orphaned' -and $_.uid -eq 'Demo.WrapperClean' } | Select-Object -First 1 + if ($LASTEXITCODE -ne 1 -or -not $semIssue -or $semIssue.diffKind -ne 'semantic' -or $semIssue.suggestedUpdate.action -ne 're-validate-and-apply') { + throw "Expected semantic orphan classification: $($semCheck | ConvertTo-Json -Depth 10)" + } + [IO.File]::WriteAllText("$detRoot/docs/WrapperClean.md", $savedCleanRaw) + + # Duplicate-uid check + $dupDoc = $savedSettingsRaw | ConvertFrom-Json + $dupExamples = @($dupDoc.examples) + @($dupDoc.examples | Where-Object uid -eq 'Demo.WrapperClean' | Select-Object -First 1) + [IO.File]::WriteAllText("$detRoot/run-actions.settings.json", (@{ examples = $dupExamples } | ConvertTo-Json -Depth 20)) + $dupCheck = (& $generator -RepoRoot $detRoot --check-recipes --json) | ConvertFrom-Json + if ($LASTEXITCODE -ne 1 -or -not (@($dupCheck.issues | Where-Object kind -eq 'duplicate-uid').Count)) { + throw "Expected duplicate-uid detection: $($dupCheck | ConvertTo-Json -Depth 10)" + } +} finally { + [IO.File]::WriteAllText("$detRoot/run-actions.settings.json", $savedSettingsRaw) + [IO.File]::WriteAllText("$detRoot/docs/MultiFence.md", $savedMultiRaw) + [IO.File]::WriteAllText("$detRoot/docs/WrapperClean.md", $savedCleanRaw) +} + +# 7. Blocker 6: Verification failure (GitHub 403, no cached engine) preserves previous manifest and pages atomically! +$manifestBefore403 = [IO.File]::ReadAllText("$detRoot/run-actions.manifest.json") +$pageBefore403 = [IO.File]::ReadAllText("$detRoot/docs/WrapperClean.md") +$emptyCache403 = Join-Path $work 'empty-cache-403' +$prevCache403 = $env:CSRUN_CACHE_DIR +$env:CSRUN_CACHE_DIR = $emptyCache403 +function Invoke-WebRequest { + param([string] $Uri, [hashtable] $Headers, [switch] $SkipHttpErrorCheck, [string] $OutFile) + return [pscustomobject]@{ StatusCode = 403; Headers = @{}; Content = '{"message":"API rate limit exceeded"}' } +} +try { + $fail403 = (& $generator -RepoRoot $detRoot --verify Native --summary-json) | ConvertFrom-Json + $exit403 = $LASTEXITCODE +} finally { + Remove-Item Function:\Invoke-WebRequest -ErrorAction SilentlyContinue + $env:CSRUN_CACHE_DIR = $prevCache403 + if (Test-Path -LiteralPath $emptyCache403) { Remove-Item -LiteralPath $emptyCache403 -Recurse -Force } +} +if ($exit403 -ne 1 -or $fail403.failureReason -ne 'github-403-no-cached-engine' -or -not $fail403.manifestPreserved) { + throw "GitHub 403 verification failure must exit 1 with github-403-no-cached-engine: $($fail403 | ConvertTo-Json -Compress)" +} +if ([IO.File]::ReadAllText("$detRoot/run-actions.manifest.json") -cne $manifestBefore403 -or + [IO.File]::ReadAllText("$detRoot/docs/WrapperClean.md") -cne $pageBefore403) { + throw 'Failed verification destroyed or mutated the previous manifest or Markdown associations!' +} + +# 8. Blocker 7: --verify Native --engine-path, --verify-changed reuse, and --verify --id +$detEngine = Join-Path $work 'det-csrun.ps1' +[IO.File]::WriteAllText($detEngine, $mockEngineContent, [Text.UTF8Encoding]::new($false)) +$detVerifyCalls = [Collections.Generic.List[string]]::new() +function pwsh { + $fileIndex = [Array]::IndexOf($args, '-File') + $detVerifyCalls.Add([string]$args[$fileIndex + 1]) + $global:LASTEXITCODE = 0 +} +try { + $vAll = (& $generator -RepoRoot $detRoot --verify Native --engine-path $detEngine --summary-json) | ConvertFrom-Json + $vAllCount = $detVerifyCalls.Count + $detVerifyCalls.Clear() + + $vChanged = (& $generator -RepoRoot $detRoot --verify-changed --engine-path $detEngine --summary-json) | ConvertFrom-Json + $vChangedCount = $detVerifyCalls.Count + $detVerifyCalls.Clear() + + $vSingle = (& $generator -RepoRoot $detRoot --verify --id Demo.WrapperMembers#1 --engine-path $detEngine --summary-json) | ConvertFrom-Json + $vSingleCount = $detVerifyCalls.Count + $detVerifyCalls.Clear() + + $vMissing = (& $generator -RepoRoot $detRoot --verify --id Does.Not.Exist --engine-path $detEngine --summary-json) + $vMissingExit = $LASTEXITCODE +} finally { + Remove-Item Function:\pwsh -ErrorAction SilentlyContinue + if (Test-Path -LiteralPath $detEngine) { Remove-Item -LiteralPath $detEngine -Force } +} +if ($vAllCount -lt 5 -or $vAll.verified -lt 5) { + throw "Expected full --verify Native run to execute >=5 examples; executed=$vAllCount verified=$($vAll.verified)" +} +if ($vChangedCount -ne 0 -or $vChanged.verification.reused -lt 5 -or $vChanged.verifyScope -ne 'changed') { + throw "Expected --verify-changed to reuse all unchanged verified examples; executed=$vChangedCount reused=$($vChanged.verification.reused)" +} +if ($vSingleCount -ne 1 -or $vSingle.verifyScope -ne 'id') { + throw "Expected --verify --id to execute exactly 1 example; executed=$vSingleCount scope=$($vSingle.verifyScope)" +} +$manifestAfterSingle = (Get-Content "$detRoot/run-actions.manifest.json" -Raw | ConvertFrom-Json).examples +if ($manifestAfterSingle.Count -lt 5) { + throw 'Scoped --verify --id must preserve all other entries in run-actions.manifest.json.' +} +if ($vMissingExit -ne 3) { + throw "Expected unmatched --id selector to exit 3; got $vMissingExit" +} + +$global:LASTEXITCODE = 0 +Write-Host "Run-action delivery passed: paired console, test, dependency-backed test, repository test and host harness; deterministic plan/explain, type-owned dependency resolution/preflight, validation-gated apply, multi-fence uid#ordinal identity, whitespace/semantic recipe check, atomic manifest preservation, --summary-json/--verify-changed/--verify --id, exact pins and source, coverage classifications, independent verification state, incremental assets, stale cleanup, standalone BuildRunActions.ps1 materialization and modern DocFX render. Fixture: $work" +exit 0 From 88db22986ba9102769769c2c7a4e1e3a5bb18262 Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sat, 21 Nov 2026 18:05:37 +0100 Subject: [PATCH 07/28] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20update=20dotnet-docf?= =?UTF-8?q?x-digest=20docs=20and=20evals=20for=20deterministic=20csrun?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Document the deterministic csrun planning, validation, and offline verification workflow and add eval coverage for large multi-package repositories. --- skills/dotnet-docfx-digest/SKILL.md | 2 +- skills/dotnet-docfx-digest/evals/evals.json | 13 ++ .../references/run-actions.md | 121 ++++++++++++++++-- 3 files changed, 123 insertions(+), 13 deletions(-) diff --git a/skills/dotnet-docfx-digest/SKILL.md b/skills/dotnet-docfx-digest/SKILL.md index 9cfaa1b9..6be5cd08 100644 --- a/skills/dotnet-docfx-digest/SKILL.md +++ b/skills/dotnet-docfx-digest/SKILL.md @@ -14,7 +14,7 @@ Create and maintain developer-friendly DocFX documentation digests for .NET publ ## Opt-in run actions -For `dotnet-docfx-digest csrun` (also accepted as `dotnet-docfx-digest generate-run-actions`), read [run actions](references/run-actions.md). Run the deterministic generator across the active DocFX repository, then resolve its outstanding examples in bounded project batches within the same skill invocation. Inspect source projects, evaluated references, published package assets and maintained tests, persist source-bound recipes, and regenerate until every example is paired or has a demonstrated technical limitation. Keep C#, source links and template customizations readable. Runtime verification is opt-in and independent for each transport; verify standalone examples through `generate-run-actions.ps1 -Verify` (or `Resolve-CsrunEngine` plus `-EnginePath`) so `csrun.ps1` is resolved and cached locally once per sweep rather than batch-executing materialized GitHub-fetching `native.ps1`/`docker.ps1` scripts, while published artifacts keep referencing GitHub. The generator uses the existing csrun contract and runs without model calls. +For `dotnet-docfx-digest csrun` (also accepted as `dotnet-docfx-digest generate-run-actions`), read [run actions](references/run-actions.md). Use the deterministic workflow in `scripts/generate-run-actions.ps1` without guessing: run `--run-action-plan --json` (and `--explain `) to classify every fence by Roslyn AST (`already-standalone`, `top-level`, `wrapper-clean`, `wrapper-members`, `host-blocking`, `host-parameterized`, `no-entry`, `syntax-error`, `intrinsic`) with `convertible`, exact blocking construct/line, and stable `uid#` IDs; run `--check-recipes --json` to detect `moved`, `duplicate-uid`, and `orphaned` (`whitespace-only` vs `semantic`) recipes; run `--resolve-dependencies ` for assembly/type-ownership `dependsOn` pins and `missing-package` / `ambiguous-type` preflight checks; run `--validate-run-action ` to convert, compile, and run with a timeout in OS temp (requiring exit 0 and non-empty stdout for `console` mode) before `--apply-run-action ` (which refuses unless validation passed and never overwrites a recipe matching another fence). Use `mode: host` / `hostHarness` for blocking ASP.NET Core or Generic Host examples, reserving `intrinsicLimitation` strictly for code with no observable behavior at all. Runtime verification is opt-in and independent per transport via `--verify Native|Docker|Both`, `--verify-changed`, or `--verify --id ` with `--engine-path ` (or cached `Resolve-CsrunEngine`) so zero GitHub calls occur per example; `--summary-json` reports schema-versioned counts and exit codes (`0` clean, `1` failure, `2` unresolved, `3` invalid args/selector), and manifest writes are atomic and preserve the last good manifest on verification failure. Keep C#, source links and template customizations readable. The generator uses the existing csrun contract for standalone samples and runs without model calls. For an existing site, always run the current skill's generator, including for toolbar-only updates. An `unchanged` example status applies to its PowerShell scripts. Verify the template's refreshed `public/run-actions.js` against the skill asset, then rebuild and verify the JavaScript in the site output. For a UI-only refresh, preserve existing examples, recipes and script verification evidence. diff --git a/skills/dotnet-docfx-digest/evals/evals.json b/skills/dotnet-docfx-digest/evals/evals.json index 8c53b315..f0b5475b 100644 --- a/skills/dotnet-docfx-digest/evals/evals.json +++ b/skills/dotnet-docfx-digest/evals/evals.json @@ -1339,6 +1339,19 @@ "Source, overwrite UIDs, template customizations and no-JavaScript fallback remain intact", "Repeated generation is incremental, source changes invalidate assets and generation does not claim Verified" ] + }, + { + "id": 125, + "prompt": "Use dotnet-docfx-digest csrun deterministically on a large multi-package DocFX repository with unresolved wrapper classes (`wrapper-clean` and `wrapper-members`), parameterized DI setup methods (`ConfigureServices(IServiceCollection)`), a multi-fence page (`ServiceCollectionExtensions.md`), an orphaned recipe whose fence only had trailing whitespace trimmed, a split-package namespace where types live in a different package or collide with `System.Xml.XmlConvert`, and a blocking ASP.NET Core host example (`AppTagHelperOptions`). Verify offline with a cached `csrun.ps1` without risking the last good manifest.", + "expected_output": "Runs `--run-action-plan --json` and `--explain ` to get deterministic Roslyn categories, convertibility, blocking constructs/lines, and stable `uid#` IDs; runs `--check-recipes --json` to classify `moved`, `duplicate-uid`, and `orphaned` (`whitespace-only` vs `semantic`) recipes with suggested updates; runs `--resolve-dependencies ` to get assembly/type-owned `dependsOn` pins and `missing-package`/`ambiguous-type` preflight diagnostics; validates convertible candidates in OS temp with `--validate-run-action ` before `--apply-run-action ` (which refuses unless validation passed and preserves sibling-fence recipes); uses `mode: host` / `hostHarness` for blocking ASP.NET Core hosts instead of `intrinsicLimitation`; and runs `--verify Native|Docker` / `--verify-changed` / `--verify --id ` with `--engine-path` and `--summary-json` so verification runs offline and preserves `run-actions.manifest.json` atomically on failure.", + "expectations": [ + "Uses `--run-action-plan --json` (and `--explain `) rather than regex heuristics to classify `wrapper-clean`, `wrapper-members`, `host-blocking`, `host-parameterized`, `no-entry`, `top-level`, `already-standalone`, and `intrinsic` examples with exact blocking construct and line", + "Uses stable `uid#` example IDs and `--check-recipes --json` to detect `moved`, `duplicate-uid`, and `orphaned` (`whitespace-only` vs `semantic`) recipes without overwriting a recipe that matches another fence", + "Uses `--resolve-dependencies ` to resolve split-package type ownership and surface `missing-package` or `ambiguous-type` preflight diagnostics instead of guessing package IDs from namespace strings", + "Validates candidates via `--validate-run-action ` in temp workspace (requiring exit 0 and non-empty console output) before `--apply-run-action ` and reports the generated recipe hash", + "Uses a `mode: host` / `hostHarness` recipe with timeout and clean shutdown for blocking ASP.NET Core host examples, reserving `intrinsicLimitation` strictly for code with no observable behavior", + "Uses `--engine-path`, `--summary-json`, `--verify-changed`, and `--verify --id ` with atomic manifest writes that preserve the previous manifest and emit `failureReason` (e.g. `github-403-no-cached-engine`) if verification fails" + ] } ] } diff --git a/skills/dotnet-docfx-digest/references/run-actions.md b/skills/dotnet-docfx-digest/references/run-actions.md index e5cc04e3..31728031 100644 --- a/skills/dotnet-docfx-digest/references/run-actions.md +++ b/skills/dotnet-docfx-digest/references/run-actions.md @@ -6,16 +6,98 @@ The logical command `dotnet-docfx-digest csrun` covers the active DocFX reposito pwsh -NoProfile -File /scripts/generate-run-actions.ps1 -RepoRoot [-Docfx ] ``` -The command uses `docfx.cs --run-action-inventory`, sharing discovery from `build.content`/`build.overwrite`, fence extraction, UID ownership and source-context validation with compilation. It generates `run-actions.manifest.json` (the single source-of-truth config containing per-example data with no PowerShell boilerplate) and syncs the self-contained deterministic materializer `BuildRunActions.ps1` beside `docfx.json`, without physically creating `run-actions/` in the working tree. When a `BuildDocfxImage.ps1` exists beside `docfx.json`, the generator also wires `& (Join-Path $PSScriptRoot 'BuildRunActions.ps1')` before `try { docker buildx build ... }` and removes the generated `run-actions` directory in `finally`, updating uncustomized scripts into the standard `try`/`finally` shape and surgically patching customized scripts around their Docker build step without breaking existing customizations. A small HTML association immediately follows the unchanged C# fence. UID, document identity and maintained source path (or source hash for inline examples) determine its identity; fence ordinals do not. Owned associations and manifest entries are replaced when their source changes or disappears. Keep `run-actions.settings.json`, `run-actions.manifest.json`, `BuildRunActions.ps1`, the Markdown associations, `docfx.json`, and the generated template assets as committed documentation source; ignore the build-time `run-actions/` directory in `.gitignore` (for example `/.docfx/run-actions/`) and invoke `BuildRunActions.ps1` at DocFX build time (for example in `BuildDocfxImage.ps1` right before `try { docker buildx build ... }`, with no AI or skill dependency) so duplicated `.ps1` wrapper scripts are never created during authoring, committed to Git, or flagged by static analysis. The normal fast validator does not regenerate or execute them. +The command uses `docfx.cs --run-action-inventory`, sharing discovery from `build.content`/`build.overwrite`, fence extraction, UID ownership, Roslyn AST classification, type/assembly ownership resolution, and source-context validation with compilation. It generates `run-actions.manifest.json` atomically (temp file + rename, preserving the previous manifest whenever a verification run fails before completion) and syncs the self-contained deterministic materializer `BuildRunActions.ps1` beside `docfx.json`, without physically creating `run-actions/` in the working tree. When a `BuildDocfxImage.ps1` exists beside `docfx.json`, the generator also wires `& (Join-Path $PSScriptRoot 'BuildRunActions.ps1')` before `try { docker buildx build ... }` and removes the generated `run-actions` directory in `finally`, updating uncustomized scripts into the standard `try`/`finally` shape and surgically patching customized scripts around their Docker build step without breaking existing customizations. A small HTML association immediately follows the unchanged C# fence. Every fence has a stable `exampleId` including its 1-based per-UID fence ordinal (`#`, for example `My.Namespace.ServiceCollectionExtensions#2`) persisted across inventory, manifest entries, and recipes, alongside its 24-hex asset slug `id`. Owned associations and manifest entries are replaced when their source changes or disappears. Keep `run-actions.settings.json`, `run-actions.manifest.json`, `BuildRunActions.ps1`, the Markdown associations, `docfx.json`, and the generated template assets as committed documentation source; ignore the build-time `run-actions/` directory in `.gitignore` (for example `/.docfx/run-actions/`) and invoke `BuildRunActions.ps1` at DocFX build time (for example in `BuildDocfxImage.ps1` right before `try { docker buildx build ... }`, with no AI or skill dependency) so duplicated `.ps1` wrapper scripts are never created during authoring, committed to Git, or flagged by static analysis. The normal fast validator does not regenerate or execute them. ```powershell pwsh -NoProfile -File /BuildRunActions.ps1 ``` -`BuildRunActions.ps1` is 100% deterministic and self-contained: it reads `run-actions.manifest.json` and materializes `run-actions//{native,docker}.ps1` without modifying Markdown pages, `docfx.json`, or requiring any external skill installation. +`BuildRunActions.ps1` is 100% deterministic and self-contained: it reads `run-actions.manifest.json` and materializes `run-actions//{native,docker}.ps1` for `standalone`, `repository`, and `host` strategies without modifying Markdown pages, `docfx.json`, or requiring any external skill installation. Programs that resolve against the platform and simple xUnit examples can generate immediately through `New-CsrunExecutionPair` and manifest v1. Defaults are `net10.0` and `codebeltnet/csrun:10`. A recipe can set `csrunImage` for a different reviewed tag. Both wrappers download and verify the publisher's latest stable csrun release at execution time. Docker uses the selected image for its SDK and PowerShell. +## Deterministic planning, recipe health, dependency resolution, and candidate validation + +`generate-run-actions.ps1` accepts both PowerShell-style (`-RunActionPlan`, `-Json`, `-Verify Native`, `-EnginePath `) and CLI-style (`--run-action-plan`, `--json`, `--verify Native`, `--engine-path `) flags: + +```powershell +pwsh scripts/generate-run-actions.ps1 -RepoRoot . --run-action-plan --json +pwsh scripts/generate-run-actions.ps1 -RepoRoot . --explain +pwsh scripts/generate-run-actions.ps1 -RepoRoot . --check-recipes --json +pwsh scripts/generate-run-actions.ps1 -RepoRoot . --resolve-dependencies +pwsh scripts/generate-run-actions.ps1 -RepoRoot . --validate-run-action +pwsh scripts/generate-run-actions.ps1 -RepoRoot . --apply-run-action +pwsh scripts/generate-run-actions.ps1 -RepoRoot . --verify Native --engine-path --summary-json +pwsh scripts/generate-run-actions.ps1 -RepoRoot . --verify Docker --engine-path --summary-json +pwsh scripts/generate-run-actions.ps1 -RepoRoot . --verify-changed --engine-path --summary-json +pwsh scripts/generate-run-actions.ps1 -RepoRoot . --verify Native --id --engine-path +``` + +### 1. Deterministic classification (`--run-action-plan --json` and `--explain `) + +`--run-action-plan --json` emits schema version 2 JSON without mutating repository files. Every fence includes its stable `exampleId` (`#`), `category`, `reasonCode`, `convertible` (`true`/`false`), `suggestedMode` (`console`, `test`, or `host`), `entryPoint`, `blockingConstruct`, `blockingLine` (1-based line inside the fence), `manualHarness`, `recipeStatus`, and resolved `dependencies`: + +| Category | Convertible | Meaning | +| --- | --- | --- | +| `already-standalone` | `true` | Complete standalone program (`Main`, eligible top-level statements, or xUnit v3 `[Fact]`/`[Theory]`). | +| `top-level` | `true` | Top-level statements that still require resolved `dependsOn` package pins. | +| `wrapper-clean` | `true` | Single non-generic wrapper class with one parameterless entry method and no extra fields, properties, constructors, or helper members; safely convertible via Roslyn AST. | +| `wrapper-members` | `true` | Wrapper class with a parameterless entry method plus fields, properties, constructors, helper methods, or sibling types; convertible by hoisting a top-level invocation before preserved declarations rather than naively stripping the class. | +| `host-blocking` | `true` | Starts a blocking ASP.NET Core or Generic Host (`app.Run()` / `host.Run()`); convertible via a `mode: host` / `hostHarness` recipe. | +| `host-parameterized` | `false` | Contains parameterized DI/host setup methods (`ConfigureServices(IServiceCollection)`, `Configure(IApplicationBuilder)`, etc.) with no parameterless entry point; requires a host harness or driver. | +| `no-entry` | `false` | Contains type or member declarations (`abstract-or-interface-only`, `generic-type-only`, `parameterized-methods-only`, or `no-entry-point`) with no usable entry point. | +| `syntax-error` | `false` | Fence fails C# syntax parsing; `blockingConstruct` and `blockingLine` report the exact syntax error. | +| `intrinsic` | `false` | Explicit `intrinsicLimitation` recorded in `run-actions.settings.json`. | + +`--explain ` prints the same classification, blocking construct/line, dependency ownership, and recommended manual harness in readable prose (or JSON when `--json` is also passed). + +### 2. Assembly/type-ownership dependency resolution (`--resolve-dependencies `) + +`--resolve-dependencies ` resolves `dependsOn` from actual project/type/extension ownership across the repository's `.csproj` files, `Directory.Packages.props`, `Directory.Build.props`, existing recipe pins, local NuGet cache, and BCL metadata rather than guessing package IDs from namespace strings. It runs a deterministic preflight that checks every `using` directive and unqualified referenced type: + +- Split-package namespaces (for example a namespace `Acme.Net.Http` whose types are declared in package `Acme.Net`) resolve to the actual owning package. +- Types owned by unpublished projects (`false`) fail preflight with `missing-package: -> (unpublished project )`. +- Unresolved `using` namespaces fail preflight with `missing-package: -> `. +- Unqualified type collisions across imported BCL and repository namespaces (such as `System.Xml.XmlConvert` vs `Cuemon.Xml.Serialization.XmlConvert`) fail preflight with `ambiguous-type: -> | `. + +### 3. Candidate validation and guarded apply (`--validate-run-action` and `--apply-run-action`) + +`--validate-run-action ` converts a convertible candidate in an isolated OS temp workspace (never modifying the repository), runs `dotnet run --file` (with `#:property TargetFramework=...` and `#:package ...` pins) or the host harness with a hard `--timeout-seconds` timeout (default 60s), enforces exit code `0` and non-empty stdout for `console` mode (or full `Assert-CsrunTestOutput` for `test` mode), persists a hash-bound validation receipt in the private cache, and exits `0` only on success. + +`--apply-run-action ` refuses with `validation-required` (exit `1`, zero repository edits) unless a matching passing validation receipt exists for the exact `exampleId`, candidate source hash, and canonical recipe hash. On success, it surgically updates only the target fence (preserving BOM, line endings, and sibling fences), atomically updates `run-actions.settings.json` without ever overwriting an existing recipe that matches a different fence, and reports the generated `recipeSha256`. + +### 4. Multi-fence identity, recipe health, and whitespace normalization (`--check-recipes --json`) + +Source hashes are computed over **LF-normalized** fence text (`\r\n` -> `\n`) with **outer trailing newlines trimmed** (`\n`, `\r`), while **preserving trailing spaces/tabs on individual lines**. `--check-recipes --json` reports this normalization contract alongside every recipe issue: + +- `moved`: a recipe's `exampleId`/`fenceOrdinal` (or previous manifest ordinal) pointed to fence `#N`, but its `sourceSha256` now matches fence `#M`. +- `duplicate-uid`: duplicate recipes target the same `exampleId`, the same `uid|sourceSha256`, or share a `uid` without distinguishing `fenceOrdinal`/`exampleId`. +- `orphaned`: a recipe's `sourceSha256` matches no current fence. The check compares against `whitespaceSha256`, previous `run-actions.manifest.json` source, or read-only `git show HEAD:` to classify `diffKind` as `whitespace-only` (LF + per-line trailing horizontal whitespace trimmed matches), `semantic` (non-whitespace code changed), `uid-removed`, or `unknown`, and emits `currentSourceSha256` plus the exact `suggestedUpdate`. + +### 5. First-class host harness (`mode: host` / `hostHarness`) + +Use a `mode: host` / `hostHarness` recipe for blocking ASP.NET Core or Generic Host examples (such as `WebApplication.CreateBuilder` + `app.Run()`) instead of marking them `intrinsicLimitation`. Reserve `intrinsicLimitation` strictly for code with no observable runtime behavior at all. A host recipe stays outside csrun manifest v1 (using `strategy: "host"` in `run-actions.manifest.json` and `BuildRunActions.ps1`), keeps the visible C# unchanged, binds an ephemeral loopback port, starts the host, executes the configured probe/action within `timeoutSeconds`, captures output/assertions, and cleanly shuts down the host process tree on both Native and Docker transports: + +```json +{ + "uid": "Example.AppTagHelperOptions", + "exampleId": "Example.AppTagHelperOptions#1", + "fenceOrdinal": 1, + "sourceSha256": "", + "mode": "host", + "hostHarness": { + "sdk": "Microsoft.NET.Sdk.Web", + "framework": "net10.0", + "dependsOn": ["Example.AspNetCore@1.0.0"], + "probePath": "/", + "probeMethod": "GET", + "timeoutSeconds": 15, + "expectedStatusCode": 200, + "expectedBodyContains": "expected-text" + } +} +``` + ## Refresh an existing site's toolbar Use the generator from the skill revision that contains the requested UI change. Its sibling `assets/run-actions.js` is the source copied into the target's effective template. Run the command above even when the C# examples and their recipes are already current. Each example's `unchanged` status describes its PowerShell payloads. The same run still refreshes the toolbar module beside the effective template's `public/main.js`. @@ -24,20 +106,22 @@ Compare the skill asset with that generated template module, rebuild the active ## Resolve the outstanding examples -1. Review each `Unresolved` result with `docfx.cs --repo-root --run-action-inventory`. Pass the same `--docfx` if applicable. The inventory includes C#, UID, maintained source context, owner project candidates, metadata frameworks and shared build input paths. -2. Work in small batches grouped by owner project and execution context. Evaluate the project references and target framework with MSBuild, including central package management, conditional imports and shared framework references. Check published NuGet metadata and compatible assets for the exact version implementing the documented operation. Use imports as leads for investigation. -3. Persist a source-bound recipe in `run-actions.settings.json`. Prefer published dependencies with unchanged C#. Make a library excerpt runnable by putting its invocation and inputs in the visible C# fence. Print a demonstration result or include a visible test and its assertions. Import xUnit with `using Xunit;` and use `[Fact]` or `[Theory]` and `Assert` in the test. Check the maintained source and tests when execution needs the original application assembly, runner or unpublished implementation. -4. Regenerate after each project batch. Continue in this invocation until every example is paired or its technical limitation has evidence. For each exception report the UID, specific limitation and recommended documentation treatment. The generator has no model execution or per-file sessions. +1. Start with `generate-run-actions.ps1 -RepoRoot --run-action-plan --json` and `--check-recipes --json` to get an exact, deterministic queue of convertible vs non-convertible fences and any orphaned/moved/duplicate recipes. +2. Work in small batches grouped by owner project and execution context. Run `--resolve-dependencies ` to verify exact assembly/type ownership and catch `missing-package` / `ambiguous-type` issues before building. +3. For convertible examples, run `--validate-run-action ` and then `--apply-run-action `. For blocking host examples, author a `mode: host` / `hostHarness` recipe. For examples requiring the original application assembly/runner, use a pinned `repository` recipe. For `no-entry` or `host-parameterized` examples, inspect the source/tests and author a concrete driver or manual harness. +4. Regenerate and verify with `--summary-json` (and `--verify-changed` or `--verify --id ` with `--engine-path `). Continue until every example is paired or has a demonstrated limitation with no observable behavior. For repository-backed execution, the generalized `New-RepositoryExamplePair` accepts a commit-pinned GitHub repository, project, exact xUnit v3/MTP method, framework and official SDK image. It downloads the original graph and requires an XML report proving exactly that method passed. It never synthesizes an application or test host. The inspected ManagedApplicationFixture source fingerprint has a bundled recipe for the original pinned worker functional test. A changed assertion invalidates that recipe, preserving the C# and source links while removing stale controls. -Optional `run-actions.settings.json` beside docfx.json (or `-Settings `) supplies inspected recipes for other examples. Each entry matches both `uid` and the uppercase SHA-256 of LF-normalized C# without outer trailing newlines or the two source-context lines. The generator reports that hash for unsupported cases. This is DocFX generation configuration, not an extension to the csrun manifest: +Optional `run-actions.settings.json` beside docfx.json (or `-Settings `) supplies inspected recipes for other examples. Each entry matches `uid` (plus optional `exampleId` and `fenceOrdinal` for multi-fence pages) and the uppercase SHA-256 of LF-normalized C# without outer trailing newlines or the two source-context lines, plus optional `whitespaceSha256` for whitespace-only orphan detection. This is DocFX generation configuration, not an extension to the csrun manifest: ```json { "examples": [ { "uid": "Example.Api", + "exampleId": "Example.Api#1", + "fenceOrdinal": 1, "sourceSha256": "", "repository": "owner/repository", "commit": "<40 hex commit>", @@ -48,6 +132,8 @@ Optional `run-actions.settings.json` beside docfx.json (or `-Settings `) s }, { "uid": "Example.OtherApi", + "exampleId": "Example.OtherApi#1", + "fenceOrdinal": 1, "sourceSha256": "", "manifest": { "schemaVersion": 1, @@ -62,14 +148,25 @@ Optional `run-actions.settings.json` beside docfx.json (or `-Settings `) s The generator uses the visible C# as the standalone manifest source, including source-context comments. A supplied `manifest.source` must match the fence after newline normalization. Legacy `harness` recipes fail generation until the executable code is moved into the fence and its recipe hash is updated. -Use the pinned repository path for the original application startup or assembly graph. Check the maintained runner, report switches and exact test. For a recipe backed by a different maintained test, explain the relationship to the displayed source and link to the original. A recipe can declare `"unsupportedTransports": { "docker": "" }` (or `native`) to deliver the other transport. Use `"intrinsicLimitation": ""` without an execution recipe only after demonstrating that faithful one-shot execution is impossible. A missing local SDK or Docker installation affects runtime verification. +Use the pinned repository path for the original application startup or assembly graph. Check the maintained runner, report switches and exact test. For a recipe backed by a different maintained test, explain the relationship to the displayed source and link to the original. A recipe can declare `"unsupportedTransports": { "docker": "" }` (or `native`) to deliver the other transport. Use `"intrinsicLimitation": ""` without an execution recipe only when the code has no observable runtime behavior at all and neither standalone, host, nor repository execution can faithfully demonstrate it. A missing local SDK or Docker installation affects runtime verification. + +Each supported C# fence is followed by an association with its Native and Docker assets. Repository-backed associations explicitly name the pinned test; host-harness associations note the bounded host lifecycle. In the modern template, `assets/run-actions.js` places **Copy Native run script** and **Copy Docker run script** beside DocFX's copy icon. The controls appear on hover and keyboard focus and stay visible on touch devices. Activating either control fetches the complete PowerShell script and copies it to the clipboard. Shift-click, right-click or Shift+Enter opens the full script in an in-page preview. The fallback asset links are visible until the toolbar is enhanced. A genuinely unsupported transport is omitted from the association with its reason retained in the manifest. Generated imports compose with the last existing modern template `public/main.js`, retaining its exports, start hook and Context7 behavior. If none exists, the command adds a small template layer. Clipboard writes require a secure browser context and permission. + +## Exit codes, `--summary-json`, verification reuse, and manifest safety + +| Exit code | Meaning | +| ---: | --- | +| `0` | Success: every in-scope example is paired (or documented `intrinsic`), all requested validations/verifications passed, and `--check-recipes` reported zero issues. | +| `1` | Failure: recipe error, generation error, verification failure (including engine preflight failures such as `github-403-no-cached-engine`), candidate validation failure, `--apply-run-action` refusal (`validation-required`), dependency preflight failure (`missing-package` / `ambiguous-type`), or `--check-recipes` issues (`moved`, `duplicate-uid`, `orphaned`). | +| `2` | Incomplete coverage: no hard failures occurred, but one or more examples remain `Unresolved`. | +| `3` | Invalid CLI arguments, unmatched `--id`/`` selector, or ambiguous multi-fence UID without `#`. | -Each supported C# fence is followed by an association with its Native and Docker assets. Repository-backed associations explicitly name the pinned test. In the modern template, `assets/run-actions.js` places **Copy Native run script** and **Copy Docker run script** beside DocFX's copy icon. The controls appear on hover and keyboard focus and stay visible on touch devices. Activating either control fetches the complete PowerShell script and copies it to the clipboard. Shift-click, right-click or Shift+Enter opens the full script in an in-page preview. The fallback asset links are visible until the toolbar is enhanced. A genuinely unsupported transport is omitted from the association with its reason retained in `index.json`. Generated imports compose with the last existing modern template `public/main.js`, retaining its exports, start hook and Context7 behavior. If none exists, the command adds a small template layer. Clipboard writes require a secure browser context and permission. +Pass `--summary-json` to receive a schema-versioned (`schemaVersion: 2`) JSON summary with `generated`, `unchanged`, `verified`, `failed`, `unresolved`, `intrinsic`, `skipped-by-category`, `failureReason`, `verifyScope` (`none`, `all`, `changed`, `id`), `manifestPreserved`, `verification` (`nativeVerified`, `dockerVerified`, `executed`, `reused`, `failed`), and the full `examples` array. -Each JSON result includes `coverage`, generation `status`, and independent Native and Docker verification states. `Paired` means both scripts were generated. `Partially supported` requires a documented transport limitation. `Unresolved` includes missing dependency evidence, invalid recipes and source context errors. `Intrinsically non-executable` requires a limitation bound to the source. Exit 2 means unresolved coverage remains. Exit 1 takes precedence for recipe, generation or runtime failures. Verification records and logs live in a private `.docfx-run-verification` directory under the current user's home on Unix or Local AppData on Windows. Reruns reuse a transport's state and log path when its script SHA-256 matches and both cache files pass ownership and link checks. +Each example result includes `exampleId`, `fenceOrdinal`, `coverage`, generation `status` (`generated` when its manifest entry changed vs previous `run-actions.manifest.json`, `unchanged` when identical), `category`, `reasonCode`, and independent Native and Docker verification states. Verification records and logs live in a private `.docfx-run-verification` directory under the current user's home on Unix or Local AppData on Windows. Reruns reuse a transport's cached state and log path when its script SHA-256 matches and both cache files pass ownership and link checks. -Explicitly pass `-Verify Native`, `-Verify Docker` or `-Verify Both` (and optionally `-EnginePath `) to run the selected scripts in separate PowerShell processes and record exit outcomes and log paths under OS temp or the private verification cache. For standalone examples, `generate-run-actions.ps1` resolves and caches the SHA-256-verified `csrun.ps1` once via `Resolve-CsrunEngine` (or uses the supplied `-EnginePath`) and executes verification against that local verified script, while keeping `run-actions.manifest.json`, `BuildRunActions.ps1`, materialized `native.ps1`/`docker.ps1` artifacts, and cache hashes bound to the GitHub-referencing scripts. Do not run batch or parallel verification sweeps directly against materialized `run-actions//{native,docker}.ps1` files, because each materialized script queries GitHub's unauthenticated REST API (`releases/latest`) and quickly hits the 60-requests/hour IP rate limit and abuse detection. Standalone tests require an executed-test summary with every test passing and zero skips. Unrun transports stay `Unverified`. Changes to source, recipe or generator invalidate previous verification. Regular DocFX completion requirements still apply when editing documentation. +Explicitly pass `--verify Native`, `--verify Docker`, or `--verify Both` (or PowerShell `-Verify`) — optionally scoped with `--verify-changed` (skips re-executing transports that already have valid cached `Verified` evidence for an unchanged manifest entry) or `--id ` (verifies only the targeted example(s) while preserving the rest of the manifest) — plus `--engine-path ` (or `-EnginePath`). For standalone examples, `generate-run-actions.ps1` preflights and resolves the SHA-256-verified `csrun.ps1` once before touching any file or manifest. If engine resolution fails (for example GitHub HTTP 403/429 with no cached engine), the generator exits `1`, emits `failureReason` (`github-403-no-cached-engine` / `github-429-no-cached-engine` / `engine-path-not-found`), and leaves the previous `run-actions.manifest.json` and Markdown pages untouched. `run-actions.manifest.json` is always written atomically via temp file + rename and is never replaced with an empty manifest as a side effect of a failed verification. Do not run batch or parallel verification sweeps directly against materialized `run-actions//{native,docker}.ps1` files, because each materialized script queries GitHub's unauthenticated REST API (`releases/latest`) and quickly hits the 60-requests/hour IP rate limit and abuse detection. Standalone tests require an executed-test summary with every test passing and zero skips. Unrun transports stay `Unverified`. Changes to source, recipe or generator invalidate previous verification. Regular DocFX completion requirements still apply when editing documentation. -Run the focused deterministic regression with `pwsh -NoProfile -File /scripts/test-run-actions.ps1`. It builds the shared inventory once, checks the direct paired-delivery rule, complete Native/Docker reference scripts, same-sample links and copy controls, independent verification status, source/pin parity, unsupported cases, second-run bytes/timestamps, stale cleanup and a real DocFX modern render in OS temp. Existing `test-integration-example.ps1` checks exact execution/failure semantics with offline doubles. These checks do not assert live native/Docker integration execution. Normal authoring and the `agents.cs` plus `docfx.cs --build-api-model --validate-samples --verify-docfx-build` completion requirements remain unchanged when editing an actual documentation repository. +Run the focused deterministic regression with `pwsh -NoProfile -File /scripts/test-run-actions.ps1`. It builds the shared inventory once, checks the direct paired-delivery rule, complete Native/Docker reference scripts, same-sample links and copy controls, independent verification status, source/pin parity, unsupported cases, second-run bytes/timestamps, stale cleanup, deterministic planning/explain, dependency ownership/ambiguity preflight, validation-gated apply, multi-fence identity and recipe health (`moved`, `duplicate-uid`, `orphaned` whitespace vs semantic), atomic manifest preservation on GitHub 403, `--summary-json` / `--verify-changed` / `--verify --id`, `mode: host` / `hostHarness`, and a real DocFX modern render in OS temp. Existing `test-integration-example.ps1` checks exact execution/failure semantics with offline doubles. These checks do not assert live native/Docker integration execution. Normal authoring and the `agents.cs` plus `docfx.cs --build-api-model --validate-samples --verify-docfx-build` completion requirements remain unchanged when editing an actual documentation repository. For the browser check, install Playwright through your usual development environment, optionally set `PLAYWRIGHT_MODULE` to its module path, and run `node /scripts/test-run-actions-browser.cjs /_site` against the fixture path printed by the deterministic regression. The check covers alignment, the C# and PowerShell clipboard payloads, pointer and keyboard interactions, touch, preview, feedback, Context7 startup, idempotence and the no-JavaScript fallback. It detects navigation, new pages and downloads even when the server marks the scripts as attachments. Pass an additional built xUnit site directory to check the `TestOutputHelperAccessor` API example and set `DOCFX_ACTIONS_SCREENSHOT` to capture its toolbar. From 843841e855993d6b10003d3d76bfd72b090ceeb5 Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sat, 21 Nov 2026 18:05:37 +0100 Subject: [PATCH 08/28] =?UTF-8?q?=F0=9F=93=9D=20update=20dotnet-docfx-dige?= =?UTF-8?q?st=20summary=20in=20readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sync the repository README summary with the deterministic csrun workflow in dotnet-docfx-digest. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f23d4f01..3ed5f69d 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,7 @@ When repo-managed skills author Markdown, each prose paragraph and list item sta | [git-remote-pr](skills/git-remote-pr/SKILL.md) | Create or refresh a GitHub PR from the complete committed `base...head` changeset. Read-only preparation links a Markdown preview containing the exact proposed title and complete description, assignee, push need, and planned writes before approval; normal execution requires the exact displayed `approve APR-...` phrase and rechecks the write intent, approval-bound normalized review hash, and final preview hash. Material drift ends the approval transaction without regeneration; an explicit refresh starts a new workspace and approval ID. Same-request `yolo`/`auto` still shows the preview but skips the approval wait, executing only the just-presented ID. Existing PR bodies are rebuilt from the current final text diff into concise thematic summaries, with binary assets represented only by paths, statuses, and metadata. Case-insensitive theme coverage reports all mismatches together, and failures remain visible in noninteractive hosts. Draft corrections reuse one workspace. Untracked branches preview publication to GitHub origin (or the sole GitHub remote) under the current branch name, then establish tracking during execution. Dirty worktrees, ambiguous remotes, incomplete or mismatched tracking, divergent branches, and failed post-write checks block completion. Uses Git and `gh`, without Copilot or a browser. | | [dotnet-change-impact](skills/dotnet-change-impact/SKILL.md) | Classify .NET library or NuGet package changes and recommend the correct release bump — `Major`, `Minor`, or `Patch` — for both Semantic Versioning (`MAJOR.MINOR.PATCH`) and .NET assembly/file versioning (`Major.Minor.Build.Revision`), grounded in Microsoft's official .NET compatibility rules. Uses the current Git branch by default when no explicit change details or compare range are provided, resolving it against the upstream/default base branch with local read-only git state. Always returns structured behavioral/binary/source/design-time/backwards compatibility reasoning with the recommendation, even when the bump is clear. | | [dotnet-nuget-update](skills/dotnet-nuget-update/SKILL.md) | Audits and updates NuGet dependencies in .NET repositories with complete declaration accounting before any edit. It supports both `Directory.Packages.props` and project-level `PackageReference` versions, preserves XML structure and line endings, deduplicates package IDs, resolves independent live or offline flat-container version feeds with bounded parallel lookups and per-process memoization, uses bounded network timeouts, and merges results deterministically. Its single-process update runner keeps the audit, in-memory safe-update plan, and structural apply together for fast yolo passes. It keeps stable pins on stable candidates unless prerelease intent is explicit, and applies the TFM-band rule so conditional `net9`/`net10` package declarations stay within their matching major when that major is the compatibility signal rather than jumping to the newest overall release. Normal mode auto-applies revision/patch/minor and same-major prerelease updates, then batches majors for one approval decision; yolo mode applies only the auto classes and reports held majors without asking. | -| [dotnet-docfx-digest](skills/dotnet-docfx-digest/SKILL.md) | Create and maintain developer-friendly DocFX documentation for .NET public APIs, including repo-wide no-input audits that inspect source, tests, DocFX config, DocFX `build.content` and `build.overwrite` Markdown inputs, namespace pages, and availability includes before asking for clarification, while treating bare direct skill invocations as autonomous repo-wide runs rather than human-driven checkpoint sessions. Enforces the workflow with two bundled .NET 10 file-based scripts resolved from the loaded skill directory, falling back to the repo-managed source path only when present: `scripts/agents.cs` writes an idempotent, marker-bounded DocFX maintenance block into the repository `AGENTS.md`; `scripts/docfx.cs` is **fast and build-free by default** — it validates Markdown, prose, DocFX overwrite layout, namespace overview pages, `Extension Members` tables, decorated receiver signatures such as `IDecorator`, generic method displays such as `As`, purpose-first summaries, and required per-type/extension examples without invoking `dotnet`, `msbuild`, `docfx`, or `gh`, discovering the public API from existing DocFX YAML metadata or a conservative source scan and ending every run with a `[processes] dotnet=0 msbuild=0 docfx=0 gh=0` summary plus per-phase timings. Compilation and network access are strictly opt-in: `--validate-samples` compiles each C# sample in an isolated project while batching all sample projects into one temporary `.slnx` graph build with bounded MSBuild parallelism and scoped references, `--build-api-model` (alias `--strict-api-discovery`) does reflection-backed discovery from compiled metadata via `MetadataLoadContext` through a single scoped `.slnx` graph build, `--verify-docfx-build` runs the DocFX CLI in a temp copy, and `--search-examples` runs `gh` code search. Final verification adapts to available processors and memory, overlaps isolated DocFX work on high-capacity machines, uses a 30-minute child timeout, and emits 10-second `stderr` heartbeats with active phase, workload, runner count, PID, elapsed time, last-output age, and current child output while preserving machine-readable JSON on `stdout`. Honors a single DocFX metadata `TargetFramework` when `--framework` is omitted, collapses C# 14 extension-block compiler containers such as `$...` back to the authored outer static class in both fast DocFX-YAML discovery and build-backed reflection discovery, validates namespace fly-ins that explain the problem solved/when to use/where to start plus example fly-ins before every C# fence, the Codebelt namespace-and-type-folder overwrite layout (`.docfx/api/namespaces/**/*.md` and `.docfx/api/types/**/*.md` under `build.overwrite` only), keeps `--changed-only` validation scoped to affected docs and APIs while still including brand-new untracked overwrite Markdown, uses the root Codebelt `.snk` when present and falls back to `-p:SkipSignAssembly=true` for keyless strong-name build verification, drains child stdout and stderr concurrently to avoid verbose-build deadlocks, writes deterministic `--assessment-queue` Markdown work queues for noisy audits, preserves working URL references unless a verified HTTP 404 justifies removal, treats unexpected new repo-root or DocFX-workspace files that are not known `dotnet-docfx-digest` deliverables as blocking cleanup diagnostics, keeps assessment/manifests/captured output/helper scripts in temp or session storage instead of the target repository, requires a namespace-first pass across the active queue before net-new type/example authoring during full audits, keeps deeper `EXTENSION_METHOD_MISSING` and `EXTENSION_METHOD_SIGNATURE_MISSING` follow-on diagnostics in that same namespace-layer table-repair phase when they appear after `EXTENSION_SECTION_MISSING` drops, preserves existing BOM and line-ending state while flagging actual mojibake instead of creating encoding-only diffs, and leaves generated DocFX YAML metadata untouched unless `--clean-generated-metadata` is explicitly requested (which runs only after the API model is built, never deleting metadata the run relied on). Documents public API only, uses bundled reference docs for overwrite rules, workflow details, and script behavior, keeps authored API overwrite Markdown under `.docfx/api/namespaces/` and `.docfx/api/types/`, moves legacy authored `.docfx/api/*.md` overwrite files there instead of widening the glob to `api/**/*.md`, teaches namespace and API prose to orient newcomers around purpose instead of inventorying contents, prefers inline or small sibling-batch prose repairs over slow per-page worker fan-out, makes examples start from package-ID usage evidence before type/member-only searches and requires each example to introduce the consumer task before the code, allows multi-type Microsoft Learn-style scenario samples when they better explain the consumer workflow, keeps extension-method examples on readable declaring-class type pages under `.docfx/api/types/` instead of synthetic method-UID filenames or namespace pages that mix extra `uid:` / `example:` blocks into the overview, flags weak skip-compile reasons, requires deterministic `.docfx/skip-compile-allowlist.json` entries for any pre-existing approved skip waivers, treats newly introduced or unallowlisted skip markers as fail-level diagnostics that do not suppress compilation, establishes reflection-backed packets with `--build-api-model --project-manifest` before full-run authoring, forces mid-audit continuations to name that manifest or the sequential assessment/namespace-first fallback explicitly, requires those continuations to restate the fast `docfx.cs --json` rerun cadence, the exact final `docfx.cs --build-api-model --validate-samples --verify-docfx-build --json` gate, and the clean JSON completion contract instead of generic “verify later” prose, treats batch size only as rerun cadence rather than permission to stop, runs a completion repair loop that treats every diagnostic as active work regardless of age or volume, treats newly surfaced follow-on diagnostics as the next repair queue instead of a stop point, reruns packet discovery with `--build-api-model --project-manifest` when fast source-scan packets are unnamed or zero-project, falls back to sequential namespace-first or assessment work queue order when packet discovery is still unusable, treats `EXAMPLE_MISSING`, `EXAMPLE_LEAD_MISSING`, `EXAMPLE_ADVANCED_LEAD_MISSING`, `FAMILY_ANCHOR_EXAMPLE_MISSING`, `SAMPLE_STRUCTURE_INVALID`, `FAIL_NEW_SKIP_MARKER_INTRODUCED`, `SAMPLE_SKIP_NOT_ALLOWLISTED`, and `INTERIM_ARTIFACT_IN_WORKTREE` queues as core work rather than checkpoints or quality backlog, drives large example and lead queues through a concrete fast-path micro-loop (next item or next 3-5 items → rerun → continue), suppresses progress-table/checkpoint output until the completion contract is clean or a real external blocker is reported, treats premature completion-shaped handoffs as execution-protocol failures while the queue is still dirty, reserves the final `--build-api-model --validate-samples --verify-docfx-build` verification for the real end of the queue, exposes `summary.fullVerificationRan`, `summary.canClaimCompletion`, `summary.remainingWorkItems`, `summary.remainingDiagnosticsByCode`, `summary.newlyIntroducedSkipMarkers`, and `summary.interimArtifacts` as machine-readable final gates, reruns the fast `docfx.cs --json` after edits until the queue is empty, then runs the build-backed verification before completion, preserves manual edits and authored Markdown during cleanup, skips recursive generated-output cleanup when a target directory contains documentation or source files, and returns deterministic exit codes plus `--json` reports (including process counts, phase timings, warning counts, and skip-marker accounting) so CI can gate on real failures instead of AI claims. | +| [dotnet-docfx-digest](skills/dotnet-docfx-digest/SKILL.md) | Create and maintain developer-friendly DocFX documentation for .NET public APIs, including repo-wide no-input audits that inspect source, tests, DocFX config, DocFX `build.content` and `build.overwrite` Markdown inputs, namespace pages, and availability includes before asking for clarification, while treating bare direct skill invocations as autonomous repo-wide runs rather than human-driven checkpoint sessions. Enforces the workflow with two bundled .NET 10 file-based scripts resolved from the loaded skill directory, falling back to the repo-managed source path only when present: `scripts/agents.cs` writes an idempotent, marker-bounded DocFX maintenance block into the repository `AGENTS.md`; `scripts/docfx.cs` is **fast and build-free by default** — it validates Markdown, prose, DocFX overwrite layout, namespace overview pages, `Extension Members` tables, decorated receiver signatures such as `IDecorator`, generic method displays such as `As`, purpose-first summaries, and required per-type/extension examples without invoking `dotnet`, `msbuild`, `docfx`, or `gh`, discovering the public API from existing DocFX YAML metadata or a conservative source scan and ending every run with a `[processes] dotnet=0 msbuild=0 docfx=0 gh=0` summary plus per-phase timings. Compilation and network access are strictly opt-in: `--validate-samples` compiles each C# sample in an isolated project while batching all sample projects into one temporary `.slnx` graph build with bounded MSBuild parallelism and scoped references, `--build-api-model` (alias `--strict-api-discovery`) does reflection-backed discovery from compiled metadata via `MetadataLoadContext` through a single scoped `.slnx` graph build, `--verify-docfx-build` runs the DocFX CLI in a temp copy, and `--search-examples` runs `gh` code search. Final verification adapts to available processors and memory, overlaps isolated DocFX work on high-capacity machines, uses a 30-minute child timeout, and emits 10-second `stderr` heartbeats with active phase, workload, runner count, PID, elapsed time, last-output age, and current child output while preserving machine-readable JSON on `stdout`. Honors a single DocFX metadata `TargetFramework` when `--framework` is omitted, collapses C# 14 extension-block compiler containers such as `$...` back to the authored outer static class in both fast DocFX-YAML discovery and build-backed reflection discovery, validates namespace fly-ins that explain the problem solved/when to use/where to start plus example fly-ins before every C# fence, the Codebelt namespace-and-type-folder overwrite layout (`.docfx/api/namespaces/**/*.md` and `.docfx/api/types/**/*.md` under `build.overwrite` only), keeps `--changed-only` validation scoped to affected docs and APIs while still including brand-new untracked overwrite Markdown, uses the root Codebelt `.snk` when present and falls back to `-p:SkipSignAssembly=true` for keyless strong-name build verification, drains child stdout and stderr concurrently to avoid verbose-build deadlocks, writes deterministic `--assessment-queue` Markdown work queues for noisy audits, preserves working URL references unless a verified HTTP 404 justifies removal, treats unexpected new repo-root or DocFX-workspace files that are not known `dotnet-docfx-digest` deliverables as blocking cleanup diagnostics, keeps assessment/manifests/captured output/helper scripts in temp or session storage instead of the target repository, requires a namespace-first pass across the active queue before net-new type/example authoring during full audits, keeps deeper `EXTENSION_METHOD_MISSING` and `EXTENSION_METHOD_SIGNATURE_MISSING` follow-on diagnostics in that same namespace-layer table-repair phase when they appear after `EXTENSION_SECTION_MISSING` drops, preserves existing BOM and line-ending state while flagging actual mojibake instead of creating encoding-only diffs, and leaves generated DocFX YAML metadata untouched unless `--clean-generated-metadata` is explicitly requested (which runs only after the API model is built, never deleting metadata the run relied on). Documents public API only, uses bundled reference docs for overwrite rules, workflow details, and script behavior, keeps authored API overwrite Markdown under `.docfx/api/namespaces/` and `.docfx/api/types/`, moves legacy authored `.docfx/api/*.md` overwrite files there instead of widening the glob to `api/**/*.md`, teaches namespace and API prose to orient newcomers around purpose instead of inventorying contents, prefers inline or small sibling-batch prose repairs over slow per-page worker fan-out, makes examples start from package-ID usage evidence before type/member-only searches and requires each example to introduce the consumer task before the code, allows multi-type Microsoft Learn-style scenario samples when they better explain the consumer workflow, keeps extension-method examples on readable declaring-class type pages under `.docfx/api/types/` instead of synthetic method-UID filenames or namespace pages that mix extra `uid:` / `example:` blocks into the overview, flags weak skip-compile reasons, requires deterministic `.docfx/skip-compile-allowlist.json` entries for any pre-existing approved skip waivers, treats newly introduced or unallowlisted skip markers as fail-level diagnostics that do not suppress compilation, establishes reflection-backed packets with `--build-api-model --project-manifest` before full-run authoring, forces mid-audit continuations to name that manifest or the sequential assessment/namespace-first fallback explicitly, requires those continuations to restate the fast `docfx.cs --json` rerun cadence, the exact final `docfx.cs --build-api-model --validate-samples --verify-docfx-build --json` gate, and the clean JSON completion contract instead of generic “verify later” prose, treats batch size only as rerun cadence rather than permission to stop, runs a completion repair loop that treats every diagnostic as active work regardless of age or volume, treats newly surfaced follow-on diagnostics as the next repair queue instead of a stop point, reruns packet discovery with `--build-api-model --project-manifest` when fast source-scan packets are unnamed or zero-project, falls back to sequential namespace-first or assessment work queue order when packet discovery is still unusable, treats `EXAMPLE_MISSING`, `EXAMPLE_LEAD_MISSING`, `EXAMPLE_ADVANCED_LEAD_MISSING`, `FAMILY_ANCHOR_EXAMPLE_MISSING`, `SAMPLE_STRUCTURE_INVALID`, `FAIL_NEW_SKIP_MARKER_INTRODUCED`, `SAMPLE_SKIP_NOT_ALLOWLISTED`, and `INTERIM_ARTIFACT_IN_WORKTREE` queues as core work rather than checkpoints or quality backlog, drives large example and lead queues through a concrete fast-path micro-loop (next item or next 3-5 items → rerun → continue), suppresses progress-table/checkpoint output until the completion contract is clean or a real external blocker is reported, treats premature completion-shaped handoffs as execution-protocol failures while the queue is still dirty, reserves the final `--build-api-model --validate-samples --verify-docfx-build` verification for the real end of the queue, exposes `summary.fullVerificationRan`, `summary.canClaimCompletion`, `summary.remainingWorkItems`, `summary.remainingDiagnosticsByCode`, `summary.newlyIntroducedSkipMarkers`, and `summary.interimArtifacts` as machine-readable final gates, reruns the fast `docfx.cs --json` after edits until the queue is empty, then runs the build-backed verification before completion, preserves manual edits and authored Markdown during cleanup, skips recursive generated-output cleanup when a target directory contains documentation or source files, and returns deterministic exit codes plus `--json` reports (including process counts, phase timings, warning counts, and skip-marker accounting) so CI can gate on real failures instead of AI claims. For opt-in run actions (`dotnet-docfx-digest csrun`), `scripts/generate-run-actions.ps1` provides deterministic Roslyn-backed classification (`--run-action-plan --json`, `--explain `), stable `#` multi-fence identity and recipe health checks (`--check-recipes --json` detecting `moved`, `duplicate-uid`, and `whitespace-only` vs `semantic` `orphaned` recipes), assembly/type-ownership dependency resolution and preflight (`--resolve-dependencies ` surfacing `missing-package` and `ambiguous-type` diagnostics), isolated temp-workspace candidate validation (`--validate-run-action `) gating `--apply-run-action `, first-class `mode: host` / `hostHarness` execution for blocking hosts, atomic manifest writes that preserve the last good manifest on verification failures such as `github-403-no-cached-engine`, and `--summary-json`, `--verify-changed`, `--verify --id `, and `--engine-path` offline verification with documented exit codes (`0` clean, `1` failure, `2` unresolved, `3` invalid arguments/selector). | | [dotnet-test](skills/dotnet-test/SKILL.md) | Moves xUnit projects onto Codebelt's entrypoint-owned test hosts, replacing Microsoft's ASP.NET-only `WebApplicationFactory`—and the hand-rolled `HostBuilder` that console and worker tests reach for because Microsoft ships no equivalent—with one family of abstractions where the application's own entry point owns startup. Invocation is the request: it inspects and refactors immediately instead of opening with a menu or a questionnaire. It deterministically inspects project roles, target frameworks, xUnit generation, package ownership, inheritance, application entry points—including Bootstrapper `MinimalConsoleProgram`, `MinimalWorkerProgram`, and `MinimalWebProgram` hosts—and every selected `WebApplicationFactory` usage; classifies ordinary unit, ASP.NET Core functional, and console/worker functional tests; modernizes xUnit v2 projects to xUnit v3 plus Microsoft Testing Platform without moving package ownership or changing frameworks; and resolves current stable compatible packages through NuGet-backed isolated compatibility-project restores, including the selected combined package set. Focused web tests use `WebApplicationTestFactory` with an explicit entrypoint-owned `ManagedWebApplicationFixture`, directly or through a narrow `Test`-derived harness; shared web fixtures use `WebApplicationTest` with `ManagedWebApplicationFixture`; focused console/worker tests use `ApplicationTestFactory` with `ManagedApplicationFixture`; and shared non-web fixtures use `ApplicationTest` with `ManagedApplicationFixture`. Deprecated blocking fixtures are migration inputs only and are never emitted because they are scheduled for removal. Functional migrations fail closed unless the chosen Codebelt pattern and managed fixture are present, the legacy or blocking fixture is absent, and test code does not reconstruct the production composition root with its own `WebApplication`, `TestServer`, or `HostBuilder`. Migrations preserve entrypoint-owned startup, host configuration, lazy start, clients, services, configuration, sync/async disposal, isolation, and existing test names, while fresh bootstraps add source-grounded behavior tests. Non-web tests stay in-process and require a resolvable Generic Host; test-only scope reports the exact production adaptation instead of silently rewriting startup or launching a process. | | [dotnet-csrun](skills/dotnet-csrun/SKILL.md) | Creates, verifies, repairs, and audits C# examples and genuine xUnit v3 tests, with paired Native and Docker commands from one manifest, exact package pins, and source-linked execution evidence. Published commands verify and run the latest stable csrun release from GitHub, while skill-driven verification and multi-example sweeps resolve and cache the SHA-256-verified `csrun.ps1` locally once (`Resolve-CsrunEngine` + `-EnginePath`) with ETag revalidation and rate-limit fallback to avoid exhausting GitHub's unauthenticated REST quota. | | [dotnet-benchmark](skills/dotnet-benchmark/SKILL.md) | Discovers, prioritizes, and authors trustworthy BenchmarkDotNet experiments for a .NET type following codebelt conventions and using the `Codebelt.Extensions.BenchmarkDotNet.Console` runner. It inspects implementation code, call sites, tests, existing benchmarks, and available profiles instead of benchmarking every public member; ranks likely high-impact operations; selects representative typical, boundary, scaling, and adverse cases; and rejects external-I/O or service-level questions that need profiling, macrobenchmarks, or load tests. It creates fair current-versus-candidate comparisons only when observable work is equivalent, uses baseline-free single-operation characterization when no honest comparator exists, prevents unrelated construction/formatting/equality/hash ratios, requires exact per-case correctness oracles plus a semantic preflight for truthful workload labels, hard-gates interpretation on a complete valid BenchmarkDotNet summary, preserves workload invariants such as selectivity and hit/miss ratios as sizes scale, distinguishes deferred pipeline creation from terminal/materialization work, and performs Release build, discovery listing, and dry execution before any explicit full run. Explicit `yolo` mode auto-accepts routine repo-derived defaults and the proposed plan, then proceeds through build/list/dry validation without confirmation churn; only a separate explicit human instruction can start a full performance run. Its runner preflight recognizes the standard Slim/runtime setup and explains when `SkipBenchmarksWithReports = true` plus a matching `reports/tuning/` artifact deliberately filters a benchmark, preventing needless class renames, disassembly, or tool thrash; after the first valid full result it stops unless deeper diagnostics could change a real engineering decision. Harness setup remains adaptive: it detects `.slnx`/`.sln`, CPM, existing `tuning/` projects, and a reusable `tooling/` runner, onboards only missing pieces, resolves package versions dynamically, and keeps the benchmark class in the SUT namespace. | From 8e38406068709eafcd5244d2ecaaf0b2aa4234fe Mon Sep 17 00:00:00 2001 From: gimlichael Date: Sat, 21 Nov 2026 18:11:59 +0100 Subject: [PATCH 09/28] =?UTF-8?q?=F0=9F=94=A8=20update=20changelog=20for?= =?UTF-8?q?=20v0.13.2=20with=20new=20features=20and=20improvements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b39524d0..de0ab100 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,16 +6,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ## [0.13.2] - 2026-11-22 -This is a minor release that adds local SHA-256-verified `csrun.ps1` caching with ETag revalidation and rate-limit fallback in `dotnet-csrun`, integrates one-time cached engine resolution and `-EnginePath` support into `dotnet-docfx-digest` standalone verification, and updates both skills' guidance, catalog entry, and offline tests so verification sweeps avoid exhausting GitHub's unauthenticated REST rate limit while published artifacts continue fetching from GitHub. +This is a minor release that adds local SHA-256-verified `csrun.ps1` caching with ETag revalidation and rate-limit fallback in `dotnet-csrun`, extends `dotnet-docfx-digest` with deterministic Roslyn AST run-action planning, assembly/type-ownership dependency resolution, multi-fence `uid#` recipe health checks, validation-gated candidate application, first-class `mode: host` / `hostHarness` execution, atomic manifest writes, and scoped offline verification, and updates both skills' guidance, catalog entries, evals, and offline test suites. ### Added -- `dotnet-csrun` `Resolve-CsrunEngine` helper in `scripts/sample-tools.ps1` that fetches the latest stable `csrun.ps1` release once, verifies its SHA-256 digest, caches it in a private user-owned directory (`%LOCALAPPDATA%/codebeltnet/csrun-cache` on Windows, `$HOME/.cache/codebeltnet/csrun-cache` on Unix, or `CSRUN_CACHE_DIR`) with ownership, reparse-point, and lock-file checks, revalidates expired entries via `If-None-Match` (`304 Not Modified`), and falls back to the verified cache on HTTP `403`/`429` rate-limit responses, -- `dotnet-docfx-digest` `generate-run-actions.ps1` `-EnginePath` parameter and one-time `Resolve-CsrunEngine` caching during `-Verify` for standalone examples, recording `engineSha256` and `engineTag` in verification evidence while keeping `run-actions.manifest.json`, `BuildRunActions.ps1`, materialized `native.ps1`/`docker.ps1` artifacts, and cache hashes bound to the GitHub-referencing scripts. +- `dotnet-csrun` `Resolve-CsrunEngine` helper in `scripts/sample-tools.ps1` that fetches the latest stable `csrun.ps1` release once, verifies its SHA-256 digest, caches it with `engine.json` metadata in a private user-owned directory (`%LOCALAPPDATA%/codebeltnet/csrun-cache` on Windows, `$HOME/.cache/codebeltnet/csrun-cache` on Unix, or `CSRUN_CACHE_DIR`) with ownership, reparse-point, and `engine.lock` checks, revalidates expired entries via `If-None-Match` (`304 Not Modified`), and falls back to the verified cache on HTTP `403`/`429` rate-limit responses, +- `dotnet-docfx-digest` `generate-run-actions.ps1` `-EnginePath` / `--engine-path` parameter and one-time `Resolve-CsrunEngine` verification preflight for standalone examples, recording `engineSha256` and optional `engineTag` in verification evidence and failing with `failureReason` (`github-403-no-cached-engine`, `github-429-no-cached-engine`, `engine-path-not-found`, or `engine-resolution-failed`) while keeping `run-actions.manifest.json`, `BuildRunActions.ps1`, materialized `native.ps1`/`docker.ps1` artifacts, and cache hashes bound to the GitHub-referencing scripts, +- `dotnet-docfx-digest` deterministic Roslyn AST run-action classification and planning via `docfx.cs --run-action-inventory` (`ClassifyRunActionExample`, `BuildConvertedConsoleSource`) and `generate-run-actions.ps1` `--run-action-plan` (`-RunActionPlan`) / `--explain ` (`-Explain`) with `--json`, categorizing fences (`already-standalone`, `top-level`, `wrapper-clean`, `wrapper-members`, `host-blocking`, `host-parameterized`, `no-entry`, `syntax-error`, `intrinsic`) and reporting `convertible`, `suggestedMode`, `entryPoint`, 1-based `blockingConstruct`/`blockingLine`, `manualHarness`, and convertible `candidateSource`, +- `dotnet-docfx-digest` assembly and type-ownership dependency resolution (`BuildRunActionDependencyIndex`, `ResolveRunActionDependencies`) and `--resolve-dependencies ` (`-ResolveDependencies`), resolving `dependsOn` pins, `sdk`, and `frameworkReferences` from `.csproj`, `Directory.Packages.props`, `Directory.Build.props`, existing recipe pins, local NuGet cache, git SemVer tags, and `TRUSTED_PLATFORM_ASSEMBLIES` BCL metadata while surfacing `missing-package` and `ambiguous-type` preflight diagnostics, +- `dotnet-docfx-digest` stable multi-fence `#` identity (`exampleId`, `fenceOrdinal`, `whitespaceSha256`) and `--check-recipes` (`-CheckRecipes`) health checks detecting `moved`, `duplicate-uid`, and `orphaned` (`whitespace-only` vs `semantic`, `uid-removed`, or `unknown`) recipes, +- `dotnet-docfx-digest` validation-gated candidate workflow via `--validate-run-action ` (`-ValidateRunAction`), which builds and runs convertible candidates in an isolated OS temp workspace with `--timeout-seconds` (default `60`) and stores a hash-bound validation receipt, paired with `--apply-run-action ` (`-ApplyRunAction`), which refuses unvalidated edits with `validation-required` before surgically updating only the target fence and atomically updating `run-actions.settings.json` without overwriting recipes matching sibling fences, +- `dotnet-docfx-digest` first-class `mode: host` / `hostHarness` execution (`strategy: "host"`) in `scripts/integration-example.ps1` (`New-HostExamplePair`), `assets/BuildRunActions.ps1` (`New-HostPair`), and `generate-run-actions.ps1`, binding an ephemeral loopback port, building and launching the host, executing an HTTP probe or startup delay within `timeoutSeconds`, and shutting down the host process tree across Native and Docker transports, +- `dotnet-docfx-digest` `generate-run-actions.ps1` GNU-style `--*` CLI flag parsing, schema v2 `--summary-json` reporting, `--verify-changed` reuse of cached `Verified` evidence for unchanged manifest entries, `--id ` (`-TargetId`) scoped verification, atomic `Write-AtomicChanged` manifest writes preserving `run-actions.manifest.json` (`manifestPreserved`) on verification failure, and documented exit codes (`0` clean, `1` failure, `2` unresolved, `3` invalid arguments/selector). ### Changed -- `dotnet-csrun` and `dotnet-docfx-digest` skill guidance, `README.md` catalog entry, and offline PowerShell test suites (`test-sample-tools.ps1` and `test-run-actions.ps1`) now direct verification and multi-example sweeps to reuse the locally cached verified `csrun.ps1` via `-EnginePath` while keeping delivered artifacts fetching and verifying from GitHub. +- `dotnet-csrun` and `dotnet-docfx-digest` skill guidance (`SKILL.md` and `references/`), `README.md` catalog summaries, `dotnet-docfx-digest` evals (`evals/evals.json` case `125`), and offline PowerShell regression suites (`test-sample-tools.ps1` and `test-run-actions.ps1`) now cover one-time cached `csrun.ps1` resolution via `-EnginePath`, deterministic run-action planning, type-owned dependency preflight, multi-fence `uid#` recipe checks, validation-gated apply, `mode: host` harnesses, atomic manifest preservation, and scoped verification while restricting `intrinsicLimitation` strictly to code with no observable runtime behavior. ## [0.13.1] - 2026-11-21 From a190ba6873bc9a57e5ca7f6b22ecd994645d0b35 Mon Sep 17 00:00:00 2001 From: gimlichael Date: Sat, 21 Nov 2026 18:21:52 +0100 Subject: [PATCH 10/28] =?UTF-8?q?=F0=9F=93=9D=20update=20comment=20for=20c?= =?UTF-8?q?larity=20in=20generate-run-actions.ps1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 b/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 index dd7cd506..f99054a3 100644 --- a/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 +++ b/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 @@ -29,7 +29,7 @@ if (-not (Test-Path $helpers)) { throw "Install dotnet-csrun beside this skill: . $helpers Set-StrictMode -Off -# Parse GNU/CLI-style --flags alongside native PowerShell -Parameters. +# Parse GNU/CLI-style --flags alongside native PowerShell parameters. $idList = [Collections.Generic.List[string]]::new() if ($TargetId) { foreach ($item in $TargetId) { if ($item) { $idList.Add($item) } } } if ($CliArgs -and $CliArgs.Count -gt 0) { From 289eddf01f1a02ea96dd7ba5601ff6f621c18074 Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sat, 21 Nov 2026 19:29:15 +0100 Subject: [PATCH 11/28] =?UTF-8?q?=F0=9F=94=92=EF=B8=8F=20enforce=20private?= =?UTF-8?q?=20windows=20acls=20on=20csrun=20cache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Protect the Windows csrun engine cache directory and cached files with explicit owner, LocalSystem, and Administrators ACLs so untrusted accounts cannot tamper with cached scripts. --- skills/dotnet-csrun/scripts/sample-tools.ps1 | 85 ++++++++++++++++++-- 1 file changed, 78 insertions(+), 7 deletions(-) diff --git a/skills/dotnet-csrun/scripts/sample-tools.ps1 b/skills/dotnet-csrun/scripts/sample-tools.ps1 index 9817cd47..ed49eb98 100644 --- a/skills/dotnet-csrun/scripts/sample-tools.ps1 +++ b/skills/dotnet-csrun/scripts/sample-tools.ps1 @@ -246,6 +246,69 @@ function Resolve-CsrunEngine { } $CacheDirectory = [IO.Path]::TrimEndingDirectorySeparator([IO.Path]::GetFullPath($CacheDirectory)) $currentOwner = if ($IsWindows) { [Security.Principal.WindowsIdentity]::GetCurrent().User.Value } else { (& id -u).Trim() } + $windowsTrustedSids = if ($IsWindows) { + [Collections.Generic.HashSet[string]]::new( + [string[]]@( + $currentOwner, + [Security.Principal.SecurityIdentifier]::new([Security.Principal.WellKnownSidType]::LocalSystemSid, $null).Value, + [Security.Principal.SecurityIdentifier]::new([Security.Principal.WellKnownSidType]::BuiltinAdministratorsSid, $null).Value + ), + [StringComparer]::OrdinalIgnoreCase + ) + } else { $null } + $windowsWriteMask = if ($IsWindows) { + [int64]( + [Security.AccessControl.FileSystemRights]::WriteData -bor + [Security.AccessControl.FileSystemRights]::AppendData -bor + [Security.AccessControl.FileSystemRights]::WriteExtendedAttributes -bor + [Security.AccessControl.FileSystemRights]::DeleteSubdirectoriesAndFiles -bor + [Security.AccessControl.FileSystemRights]::WriteAttributes -bor + [Security.AccessControl.FileSystemRights]::Delete -bor + [Security.AccessControl.FileSystemRights]::ChangePermissions -bor + [Security.AccessControl.FileSystemRights]::TakeOwnership + ) -bor [int64]0x10000000 -bor [int64]0x40000000 + } else { [int64]0 } + + function New-PrivateWindowsDirectorySecurity { + $ds = [Security.AccessControl.DirectorySecurity]::new() + $ds.SetAccessRuleProtection($true, $false) + $inherit = [Security.AccessControl.InheritanceFlags]::ContainerInherit -bor [Security.AccessControl.InheritanceFlags]::ObjectInherit + $prop = [Security.AccessControl.PropagationFlags]::None + $full = [Security.AccessControl.FileSystemRights]::FullControl + $allow = [Security.AccessControl.AccessControlType]::Allow + foreach ($sidValue in $windowsTrustedSids) { + $sid = [Security.Principal.SecurityIdentifier]::new($sidValue) + $ds.AddAccessRule([Security.AccessControl.FileSystemAccessRule]::new($sid, $full, $inherit, $prop, $allow)) + } + return $ds + } + + function Set-PrivateWindowsFileAcl([string] $Path) { + $fs = [Security.AccessControl.FileSecurity]::new() + $fs.SetAccessRuleProtection($true, $false) + $full = [Security.AccessControl.FileSystemRights]::FullControl + $allow = [Security.AccessControl.AccessControlType]::Allow + foreach ($sidValue in $windowsTrustedSids) { + $sid = [Security.Principal.SecurityIdentifier]::new($sidValue) + $fs.AddAccessRule([Security.AccessControl.FileSystemAccessRule]::new($sid, $full, $allow)) + } + [IO.FileSystemAclExtensions]::SetAccessControl([IO.FileInfo]::new($Path), $fs) + } + + function Test-PrivateWindowsAcl([string] $Path) { + $acl = Get-Acl -LiteralPath $Path + if ($acl.GetOwner([Security.Principal.SecurityIdentifier]).Value -ne $currentOwner) { return $false } + $rules = $acl.GetAccessRules($true, $true, [Security.Principal.SecurityIdentifier]) + foreach ($rule in $rules) { + if ($rule.AccessControlType -ne [Security.AccessControl.AccessControlType]::Allow) { continue } + $sid = $rule.IdentityReference.Value + if ($windowsTrustedSids.Contains($sid)) { continue } + if ($sid -eq 'S-1-3-0' -and ($rule.PropagationFlags -band [Security.AccessControl.PropagationFlags]::InheritOnly) -ne 0) { continue } + $rights = [int64]$rule.FileSystemRights.value__ + if (($rights -band $windowsWriteMask) -ne 0) { return $false } + } + return $true + } function Get-UnixItemMetadata([string] $Path) { $statArgs = if ($IsMacOS) { @('-f', '%u %l %p', $Path) } else { @('-c', '%u %h %f', '--', $Path) } @@ -261,7 +324,7 @@ function Resolve-CsrunEngine { $linkProp = $item.PSObject.Properties['LinkType'] if (($linkProp -and $linkProp.Value) -or ($item.Attributes -band [IO.FileAttributes]::ReparsePoint)) { return $false } if ($IsWindows) { - try { return (Get-Acl -LiteralPath $Path).GetOwner([Security.Principal.SecurityIdentifier]).Value -eq $currentOwner } + try { return (Test-PrivateWindowsAcl $Path) } catch { return $false } } $metadata = Get-UnixItemMetadata $Path @@ -271,11 +334,19 @@ function Resolve-CsrunEngine { } if (-not (Get-Item -LiteralPath $CacheDirectory -Force -ErrorAction SilentlyContinue)) { - $null = [IO.Directory]::CreateDirectory($CacheDirectory) - if (-not $IsWindows) { & chmod 700 -- $CacheDirectory } + if ($IsWindows) { + $parentDir = [IO.Path]::GetDirectoryName($CacheDirectory) + if ($parentDir -and -not (Test-Path -LiteralPath $parentDir)) { + $null = [IO.Directory]::CreateDirectory($parentDir) + } + $null = [IO.FileSystemAclExtensions]::CreateDirectory((New-PrivateWindowsDirectorySecurity), $CacheDirectory) + } else { + $null = [IO.Directory]::CreateDirectory($CacheDirectory) + & chmod 700 -- $CacheDirectory + } } if (-not (Test-PrivateCachePath $CacheDirectory -Directory)) { - throw "csrun engine cache directory failed ownership or symlink checks: $CacheDirectory" + throw "csrun engine cache directory failed ownership, ACL, or symlink checks: $CacheDirectory" } $scriptPath = Join-Path $CacheDirectory 'csrun.ps1' @@ -317,7 +388,7 @@ function Resolve-CsrunEngine { fetchedUtc = $FetchedUtc.ToUniversalTime().ToString('O') } | ConvertTo-Json -Compress [IO.File]::WriteAllText($tmpMeta, $payload, $utf8NoBom) - if (-not $IsWindows) { & chmod 600 -- $tmpMeta } + if ($IsWindows) { Set-PrivateWindowsFileAcl $tmpMeta } else { & chmod 600 -- $tmpMeta } [IO.File]::Move($tmpMeta, $metaPath, $true) } finally { if (Test-Path -LiteralPath $tmpMeta) { Remove-Item -LiteralPath $tmpMeta -Force } @@ -339,7 +410,7 @@ function Resolve-CsrunEngine { $tmpScript = $null try { - if (-not $IsWindows) { & chmod 600 -- $lockPath 2>$null } + if ($IsWindows) { Set-PrivateWindowsFileAcl $lockPath } else { & chmod 600 -- $lockPath 2>$null } $now = [DateTimeOffset]::UtcNow $cached = Read-VerifiedCache if ($cached -and -not $ForceRefresh -and $MaxAgeMinutes -gt 0 -and ($now - $cached.FetchedUtc).TotalMinutes -lt $MaxAgeMinutes) { @@ -410,7 +481,7 @@ function Resolve-CsrunEngine { if ("sha256:$actualHash" -ne $asset.digest) { throw "csrun asset checksum mismatch: $actualHash" } - if (-not $IsWindows) { & chmod 600 -- $tmpScript } + if ($IsWindows) { Set-PrivateWindowsFileAcl $tmpScript } else { & chmod 600 -- $tmpScript } [IO.File]::Move($tmpScript, $scriptPath, $true) $tmpScript = $null } From 8d49bb8168c77017eb9c09a424b05b2a4a2afdbe Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sat, 21 Nov 2026 19:29:16 +0100 Subject: [PATCH 12/28] =?UTF-8?q?=E2=9C=85=20add=20windows=20acl=20tests?= =?UTF-8?q?=20for=20csrun=20cache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add Windows regression tests verifying that Resolve-CsrunEngine disables ACL inheritance on new cache directories, rejects inherited write access, and invalidates cache hits if untrusted write permissions are added. --- .../scripts/test-sample-tools.ps1 | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/skills/dotnet-csrun/scripts/test-sample-tools.ps1 b/skills/dotnet-csrun/scripts/test-sample-tools.ps1 index 6c8c17ca..a362648f 100644 --- a/skills/dotnet-csrun/scripts/test-sample-tools.ps1 +++ b/skills/dotnet-csrun/scripts/test-sample-tools.ps1 @@ -231,6 +231,47 @@ try { $linkType = if ($IsWindows) { 'Junction' } else { 'SymbolicLink' } $null = New-Item -ItemType $linkType -Path $linkedCacheDir -Target $cacheDir Assert-Throws { Resolve-CsrunEngine -CacheDirectory $linkedCacheDir } 'Linked cache directory was accepted.' + + if ($IsWindows) { + # Newly created cache directory must have protected ACL without untrusted write access. + $createdAcl = Get-Acl -LiteralPath $cacheDir + Assert-True ($createdAcl.AreAccessRulesProtected) 'Newly created Windows cache directory did not disable ACL inheritance.' + + # A pre-existing cache directory inheriting write access for another untrusted account (e.g. BUILTIN\Users) must be rejected. + $sharedParent = Join-Path $cacheTemp 'shared-parent' + $inheritedCacheDir = Join-Path $sharedParent 'inherited-cache' + $null = [IO.Directory]::CreateDirectory($inheritedCacheDir) + $usersSid = [Security.Principal.SecurityIdentifier]::new([Security.Principal.WellKnownSidType]::BuiltinUsersSid, $null) + $inheritFlags = [Security.AccessControl.InheritanceFlags]::ContainerInherit -bor [Security.AccessControl.InheritanceFlags]::ObjectInherit + $usersWriteRule = [Security.AccessControl.FileSystemAccessRule]::new( + $usersSid, + [Security.AccessControl.FileSystemRights]::Modify, + $inheritFlags, + [Security.AccessControl.PropagationFlags]::None, + [Security.AccessControl.AccessControlType]::Allow + ) + $parentInfo = [IO.DirectoryInfo]::new($sharedParent) + $parentAcl = [IO.FileSystemAclExtensions]::GetAccessControl($parentInfo, [Security.AccessControl.AccessControlSections]::Access) + $parentAcl.AddAccessRule($usersWriteRule) + [IO.FileSystemAclExtensions]::SetAccessControl($parentInfo, $parentAcl) + Assert-Throws { Resolve-CsrunEngine -CacheDirectory $inheritedCacheDir } 'Windows cache directory inheriting write access for BUILTIN\Users was accepted.' + + # Adding write access for an untrusted account on cached csrun.ps1 invalidates the cache hit rather than trusting it. + $fileAclTestDir = Join-Path $cacheTemp 'file-acl-cache' + $fileAclFirst = Resolve-CsrunEngine -CacheDirectory $fileAclTestDir + $fileInfo = [IO.FileInfo]::new($fileAclFirst.Path) + $fileAcl = [IO.FileSystemAclExtensions]::GetAccessControl($fileInfo, [Security.AccessControl.AccessControlSections]::Access) + $fileWriteRule = [Security.AccessControl.FileSystemAccessRule]::new( + $usersSid, + [Security.AccessControl.FileSystemRights]::Write, + [Security.AccessControl.AccessControlType]::Allow + ) + $fileAcl.AddAccessRule($fileWriteRule) + [IO.FileSystemAclExtensions]::SetAccessControl($fileInfo, $fileAcl) + $callsBeforeFileAcl = $script:mockApiCalls + $fileAclSecond = Resolve-CsrunEngine -CacheDirectory $fileAclTestDir + Assert-True ($fileAclSecond.Source -eq 'GitHub' -and $script:mockApiCalls -gt $callsBeforeFileAcl) 'Cached csrun.ps1 writable by BUILTIN\Users was trusted on cache hit.' + } } finally { Remove-Item Function:\Invoke-WebRequest -ErrorAction SilentlyContinue } From 357e54bf8a0ed39a1d8d7a3ab01052c1afe9aba4 Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sat, 21 Nov 2026 19:29:16 +0100 Subject: [PATCH 13/28] =?UTF-8?q?=F0=9F=90=9B=20enforce=20timeout=20deadli?= =?UTF-8?q?ne=20on=20host=20sample=20builds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Share a single timeout deadline across host sample build, probe, and startup phases and kill stalled dotnet build process trees on expiration. --- .../assets/BuildRunActions.ps1 | 61 +++++++++++++++---- .../scripts/integration-example.ps1 | 61 +++++++++++++++---- 2 files changed, 100 insertions(+), 22 deletions(-) diff --git a/skills/dotnet-docfx-digest/assets/BuildRunActions.ps1 b/skills/dotnet-docfx-digest/assets/BuildRunActions.ps1 index daf88790..539c2c39 100644 --- a/skills/dotnet-docfx-digest/assets/BuildRunActions.ps1 +++ b/skills/dotnet-docfx-digest/assets/BuildRunActions.ps1 @@ -272,16 +272,39 @@ function New-HostPair { $payload = [Text.Encoding]::UTF8.GetString([Convert]::FromBase64String($payloadB64)) | ConvertFrom-Json $work = Join-Path ([IO.Path]::GetTempPath()) ('dx-host-' + [guid]::NewGuid().ToString('N').Substring(0, 8)) $null = New-Item -ItemType Directory -Path $work +$buildProcess = $null $hostProcess = $null +$deadline = [DateTimeOffset]::UtcNow.AddSeconds([int]$payload.timeoutSeconds) try { $utf8NoBom = [Text.UTF8Encoding]::new($false) - [IO.File]::WriteAllText((Join-Path $work 'HostSample.csproj'), $payload.csproj, $utf8NoBom) + $csprojPath = Join-Path $work 'HostSample.csproj' + [IO.File]::WriteAllText($csprojPath, $payload.csproj, $utf8NoBom) [IO.File]::WriteAllText((Join-Path $work 'Program.cs'), $payload.source, $utf8NoBom) - $buildLog = Join-Path $work 'build.log' - & dotnet build (Join-Path $work 'HostSample.csproj') -c Release --nologo -v quiet *> $buildLog - if ($LASTEXITCODE -ne 0) { - $buildText = Get-Content -LiteralPath $buildLog -Raw -ErrorAction SilentlyContinue - throw "Host sample build failed (exit $LASTEXITCODE): $buildText" + $buildStartInfo = [Diagnostics.ProcessStartInfo]::new('dotnet') + foreach ($a in @('build', $csprojPath, '-c', 'Release', '--nologo', '-v', 'quiet')) { $buildStartInfo.ArgumentList.Add($a) } + $buildStartInfo.WorkingDirectory = $work + $buildStartInfo.RedirectStandardOutput = $true + $buildStartInfo.RedirectStandardError = $true + $buildStartInfo.UseShellExecute = $false + $buildProcess = [Diagnostics.Process]::new() + $buildProcess.StartInfo = $buildStartInfo + if (-not $buildProcess.Start()) { throw 'Could not start host sample build.' } + $buildStdoutTask = $buildProcess.StandardOutput.ReadToEndAsync() + $buildStderrTask = $buildProcess.StandardError.ReadToEndAsync() + $buildRemainingMs = [int][Math]::Ceiling(($deadline - [DateTimeOffset]::UtcNow).TotalMilliseconds) + if ($buildRemainingMs -le 0 -or -not $buildProcess.WaitForExit($buildRemainingMs)) { + try { if (-not $buildProcess.HasExited) { $buildProcess.Kill($true) } } catch {} + $null = $buildProcess.WaitForExit(5000) + throw "Host sample build timed out after $($payload.timeoutSeconds)s." + } + $buildOut = $buildStdoutTask.GetAwaiter().GetResult() + $buildErr = $buildStderrTask.GetAwaiter().GetResult() + if ($buildProcess.ExitCode -ne 0) { + $buildText = ($buildOut + "`n" + $buildErr).Trim() + throw "Host sample build failed (exit $($buildProcess.ExitCode)): $buildText" + } + if ([DateTimeOffset]::UtcNow -ge $deadline) { + throw "Host sample timed out after $($payload.timeoutSeconds)s before starting host." } $listener = [Net.Sockets.TcpListener]::new([Net.IPAddress]::Loopback, 0) $listener.Start() @@ -289,7 +312,7 @@ try { $listener.Stop() $baseUrl = "http://127.0.0.1:$port" $startInfo = [Diagnostics.ProcessStartInfo]::new('dotnet') - foreach ($a in @('run','--no-build','-c','Release','--project',(Join-Path $work 'HostSample.csproj'))) { $startInfo.ArgumentList.Add($a) } + foreach ($a in @('run','--no-build','-c','Release','--project',$csprojPath)) { $startInfo.ArgumentList.Add($a) } $startInfo.Environment['ASPNETCORE_URLS'] = $baseUrl $startInfo.Environment['DOTNET_ENVIRONMENT'] = 'Development' $startInfo.RedirectStandardOutput = $true @@ -300,7 +323,6 @@ try { if (-not $hostProcess.Start()) { throw 'Could not start host process.' } $stdoutTask = $hostProcess.StandardOutput.ReadToEndAsync() $stderrTask = $hostProcess.StandardError.ReadToEndAsync() - $deadline = [DateTimeOffset]::UtcNow.AddSeconds([int]$payload.timeoutSeconds) if ($payload.probePath) { $probeUrl = $baseUrl + $payload.probePath $probed = $false @@ -314,11 +336,14 @@ try { $errOut = $stderrTask.GetAwaiter().GetResult() throw "Host exited before probe succeeded (exit $($hostProcess.ExitCode)). $stdOut $errOut" } + $probeRemainingMs = [int][Math]::Ceiling(($deadline - [DateTimeOffset]::UtcNow).TotalMilliseconds) + if ($probeRemainingMs -le 0) { break } + $cts = [Threading.CancellationTokenSource]::new([Math]::Min(3000, $probeRemainingMs)) try { $req = [Net.Http.HttpRequestMessage]::new([Net.Http.HttpMethod]::new([string]$payload.probeMethod), $probeUrl) - $resp = $httpClient.Send($req) + $resp = $httpClient.Send($req, $cts.Token) $statusCode = [int]$resp.StatusCode - $body = $resp.Content.ReadAsStringAsync().GetAwaiter().GetResult() + $body = $resp.Content.ReadAsStringAsync($cts.Token).GetAwaiter().GetResult() if ([int]$payload.expectedStatusCode -gt 0 -and $statusCode -ne [int]$payload.expectedStatusCode) { throw "Expected HTTP $($payload.expectedStatusCode) from $($payload.probePath), got HTTP $statusCode. Body: $body" } @@ -335,6 +360,11 @@ try { } catch [Threading.Tasks.TaskCanceledException] { $lastError = $_.Exception.Message Start-Sleep -Milliseconds 200 + } catch [OperationCanceledException] { + $lastError = $_.Exception.Message + Start-Sleep -Milliseconds 200 + } finally { + $cts.Dispose() } } } finally { @@ -342,7 +372,9 @@ try { } if (-not $probed) { throw "Host probe '$($payload.probeMethod) $($payload.probePath)' timed out after $($payload.timeoutSeconds)s. Last error: $lastError" } } else { - Start-Sleep -Milliseconds ([int]$payload.startupDelayMs) + $delayRemainingMs = [int][Math]::Ceiling(($deadline - [DateTimeOffset]::UtcNow).TotalMilliseconds) + $sleepMs = [Math]::Min([int]$payload.startupDelayMs, [Math]::Max($delayRemainingMs, 0)) + if ($sleepMs -gt 0) { Start-Sleep -Milliseconds $sleepMs } if ($hostProcess.HasExited -and $hostProcess.ExitCode -ne 0) { $stdOut = $stdoutTask.GetAwaiter().GetResult() $errOut = $stderrTask.GetAwaiter().GetResult() @@ -351,6 +383,13 @@ try { Write-Output "Host started cleanly and ran for $($payload.startupDelayMs)ms." } } finally { + if ($buildProcess) { + try { + if (-not $buildProcess.HasExited) { $buildProcess.Kill($true) } + $null = $buildProcess.WaitForExit(5000) + } catch {} + $buildProcess.Dispose() + } if ($hostProcess) { try { if (-not $hostProcess.HasExited) { $hostProcess.Kill($true) } diff --git a/skills/dotnet-docfx-digest/scripts/integration-example.ps1 b/skills/dotnet-docfx-digest/scripts/integration-example.ps1 index 203243b5..14e5e7af 100644 --- a/skills/dotnet-docfx-digest/scripts/integration-example.ps1 +++ b/skills/dotnet-docfx-digest/scripts/integration-example.ps1 @@ -140,16 +140,39 @@ function New-HostExamplePair { $payload = [Text.Encoding]::UTF8.GetString([Convert]::FromBase64String($payloadB64)) | ConvertFrom-Json $work = Join-Path ([IO.Path]::GetTempPath()) ('dx-host-' + [guid]::NewGuid().ToString('N').Substring(0, 8)) $null = New-Item -ItemType Directory -Path $work +$buildProcess = $null $hostProcess = $null +$deadline = [DateTimeOffset]::UtcNow.AddSeconds([int]$payload.timeoutSeconds) try { $utf8NoBom = [Text.UTF8Encoding]::new($false) - [IO.File]::WriteAllText((Join-Path $work 'HostSample.csproj'), $payload.csproj, $utf8NoBom) + $csprojPath = Join-Path $work 'HostSample.csproj' + [IO.File]::WriteAllText($csprojPath, $payload.csproj, $utf8NoBom) [IO.File]::WriteAllText((Join-Path $work 'Program.cs'), $payload.source, $utf8NoBom) - $buildLog = Join-Path $work 'build.log' - & dotnet build (Join-Path $work 'HostSample.csproj') -c Release --nologo -v quiet *> $buildLog - if ($LASTEXITCODE -ne 0) { - $buildText = Get-Content -LiteralPath $buildLog -Raw -ErrorAction SilentlyContinue - throw "Host sample build failed (exit $LASTEXITCODE): $buildText" + $buildStartInfo = [Diagnostics.ProcessStartInfo]::new('dotnet') + foreach ($a in @('build', $csprojPath, '-c', 'Release', '--nologo', '-v', 'quiet')) { $buildStartInfo.ArgumentList.Add($a) } + $buildStartInfo.WorkingDirectory = $work + $buildStartInfo.RedirectStandardOutput = $true + $buildStartInfo.RedirectStandardError = $true + $buildStartInfo.UseShellExecute = $false + $buildProcess = [Diagnostics.Process]::new() + $buildProcess.StartInfo = $buildStartInfo + if (-not $buildProcess.Start()) { throw 'Could not start host sample build.' } + $buildStdoutTask = $buildProcess.StandardOutput.ReadToEndAsync() + $buildStderrTask = $buildProcess.StandardError.ReadToEndAsync() + $buildRemainingMs = [int][Math]::Ceiling(($deadline - [DateTimeOffset]::UtcNow).TotalMilliseconds) + if ($buildRemainingMs -le 0 -or -not $buildProcess.WaitForExit($buildRemainingMs)) { + try { if (-not $buildProcess.HasExited) { $buildProcess.Kill($true) } } catch {} + $null = $buildProcess.WaitForExit(5000) + throw "Host sample build timed out after $($payload.timeoutSeconds)s." + } + $buildOut = $buildStdoutTask.GetAwaiter().GetResult() + $buildErr = $buildStderrTask.GetAwaiter().GetResult() + if ($buildProcess.ExitCode -ne 0) { + $buildText = ($buildOut + "`n" + $buildErr).Trim() + throw "Host sample build failed (exit $($buildProcess.ExitCode)): $buildText" + } + if ([DateTimeOffset]::UtcNow -ge $deadline) { + throw "Host sample timed out after $($payload.timeoutSeconds)s before starting host." } $listener = [Net.Sockets.TcpListener]::new([Net.IPAddress]::Loopback, 0) $listener.Start() @@ -157,7 +180,7 @@ try { $listener.Stop() $baseUrl = "http://127.0.0.1:$port" $startInfo = [Diagnostics.ProcessStartInfo]::new('dotnet') - foreach ($a in @('run','--no-build','-c','Release','--project',(Join-Path $work 'HostSample.csproj'))) { $startInfo.ArgumentList.Add($a) } + foreach ($a in @('run','--no-build','-c','Release','--project',$csprojPath)) { $startInfo.ArgumentList.Add($a) } $startInfo.Environment['ASPNETCORE_URLS'] = $baseUrl $startInfo.Environment['DOTNET_ENVIRONMENT'] = 'Development' $startInfo.RedirectStandardOutput = $true @@ -168,7 +191,6 @@ try { if (-not $hostProcess.Start()) { throw 'Could not start host process.' } $stdoutTask = $hostProcess.StandardOutput.ReadToEndAsync() $stderrTask = $hostProcess.StandardError.ReadToEndAsync() - $deadline = [DateTimeOffset]::UtcNow.AddSeconds([int]$payload.timeoutSeconds) if ($payload.probePath) { $probeUrl = $baseUrl + $payload.probePath $probed = $false @@ -182,11 +204,14 @@ try { $errOut = $stderrTask.GetAwaiter().GetResult() throw "Host exited before probe succeeded (exit $($hostProcess.ExitCode)). $stdOut $errOut" } + $probeRemainingMs = [int][Math]::Ceiling(($deadline - [DateTimeOffset]::UtcNow).TotalMilliseconds) + if ($probeRemainingMs -le 0) { break } + $cts = [Threading.CancellationTokenSource]::new([Math]::Min(3000, $probeRemainingMs)) try { $req = [Net.Http.HttpRequestMessage]::new([Net.Http.HttpMethod]::new([string]$payload.probeMethod), $probeUrl) - $resp = $httpClient.Send($req) + $resp = $httpClient.Send($req, $cts.Token) $statusCode = [int]$resp.StatusCode - $body = $resp.Content.ReadAsStringAsync().GetAwaiter().GetResult() + $body = $resp.Content.ReadAsStringAsync($cts.Token).GetAwaiter().GetResult() if ([int]$payload.expectedStatusCode -gt 0 -and $statusCode -ne [int]$payload.expectedStatusCode) { throw "Expected HTTP $($payload.expectedStatusCode) from $($payload.probePath), got HTTP $statusCode. Body: $body" } @@ -203,6 +228,11 @@ try { } catch [Threading.Tasks.TaskCanceledException] { $lastError = $_.Exception.Message Start-Sleep -Milliseconds 200 + } catch [OperationCanceledException] { + $lastError = $_.Exception.Message + Start-Sleep -Milliseconds 200 + } finally { + $cts.Dispose() } } } finally { @@ -210,7 +240,9 @@ try { } if (-not $probed) { throw "Host probe '$($payload.probeMethod) $($payload.probePath)' timed out after $($payload.timeoutSeconds)s. Last error: $lastError" } } else { - Start-Sleep -Milliseconds ([int]$payload.startupDelayMs) + $delayRemainingMs = [int][Math]::Ceiling(($deadline - [DateTimeOffset]::UtcNow).TotalMilliseconds) + $sleepMs = [Math]::Min([int]$payload.startupDelayMs, [Math]::Max($delayRemainingMs, 0)) + if ($sleepMs -gt 0) { Start-Sleep -Milliseconds $sleepMs } if ($hostProcess.HasExited -and $hostProcess.ExitCode -ne 0) { $stdOut = $stdoutTask.GetAwaiter().GetResult() $errOut = $stderrTask.GetAwaiter().GetResult() @@ -219,6 +251,13 @@ try { Write-Output "Host started cleanly and ran for $($payload.startupDelayMs)ms." } } finally { + if ($buildProcess) { + try { + if (-not $buildProcess.HasExited) { $buildProcess.Kill($true) } + $null = $buildProcess.WaitForExit(5000) + } catch {} + $buildProcess.Dispose() + } if ($hostProcess) { try { if (-not $hostProcess.HasExited) { $hostProcess.Kill($true) } From cd89013f306c8f3e54bec4d077913a69fa2a48a3 Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sat, 21 Nov 2026 19:29:17 +0100 Subject: [PATCH 14/28] =?UTF-8?q?=F0=9F=90=9B=20fix=20docfx=20props=20scop?= =?UTF-8?q?ing=20and=20async=20wrappers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolve Directory.Build.props and Directory.Packages.props strictly along each project ancestor chain, prioritize required project package versions, and avoid emitting double await in async expression-bodied wrappers. --- skills/dotnet-docfx-digest/scripts/docfx.cs | 153 ++++++++++++++------ 1 file changed, 111 insertions(+), 42 deletions(-) diff --git a/skills/dotnet-docfx-digest/scripts/docfx.cs b/skills/dotnet-docfx-digest/scripts/docfx.cs index 94394a00..a22df480 100644 --- a/skills/dotnet-docfx-digest/scripts/docfx.cs +++ b/skills/dotnet-docfx-digest/scripts/docfx.cs @@ -268,6 +268,7 @@ private sealed class RunActionProjectMeta public List<(string Id, string? Version)> PackageReferences { get; } = new(); public List ProjectReferences { get; } = new(); public List FrameworkReferences { get; } = new(); + public Dictionary CentralPackageVersions { get; } = new(StringComparer.OrdinalIgnoreCase); } private sealed record RunActionTypeOwner( @@ -403,22 +404,45 @@ private static RunActionDependencyIndex BuildRunActionDependencyIndex( } } - // 3. Parse Directory.Packages.props and Directory.Build.props up to root. - var propDirs = new HashSet(StringComparer.OrdinalIgnoreCase) { root }; - foreach (var projPath in allProjectPaths) + // 3. Parse Directory.Packages.props and Directory.Build.props per directory, then resolve strictly along each project's own parent chain. + var dirBuildPropsCache = new Dictionary(StringComparer.OrdinalIgnoreCase); + var dirPackageVersionsCache = new Dictionary>(StringComparer.OrdinalIgnoreCase); + + (string? Version, bool? IsPackable) ReadDirectoryBuildProps(string dir) { - for (var dir = Path.GetDirectoryName(projPath); - dir is not null && (PathsEqual(dir, root) || IsPathUnderDirectory(dir, root)); - dir = Path.GetDirectoryName(dir)) + if (dirBuildPropsCache.TryGetValue(dir, out var cached)) { return cached; } + string? version = null; + bool? isPackable = null; + var buildProps = Path.Combine(dir, "Directory.Build.props"); + if (File.Exists(buildProps)) { - propDirs.Add(dir); + try + { + var xdoc = XDocument.Load(buildProps); + foreach (var el in xdoc.Descendants()) + { + if (el.Name.LocalName is "Version" or "PackageVersion" or "VersionPrefix" && + !string.IsNullOrWhiteSpace(el.Value) && !el.Value.Contains("$(")) + { + version = el.Value.Trim(); + } + else if (el.Name.LocalName == "IsPackable" && bool.TryParse(el.Value.Trim(), out var b)) + { + isPackable = b; + } + } + } + catch { } } + var parsed = (version, isPackable); + dirBuildPropsCache[dir] = parsed; + return parsed; } - string? rootBuildVersion = null; - bool? rootBuildIsPackable = null; - foreach (var dir in propDirs.OrderBy(d => d.Length)) + Dictionary ReadDirectoryPackagesProps(string dir) { + if (dirPackageVersionsCache.TryGetValue(dir, out var cached)) { return cached; } + var versions = new Dictionary(StringComparer.OrdinalIgnoreCase); var pkgProps = Path.Combine(dir, "Directory.Packages.props"); if (File.Exists(pkgProps)) { @@ -431,50 +455,70 @@ private static RunActionDependencyIndex BuildRunActionDependencyIndex( var ver = el.Attribute("Version")?.Value?.Trim(); if (!string.IsNullOrEmpty(id) && !string.IsNullOrEmpty(ver)) { - index.CentralPackageVersions[id] = ver; + versions[id] = ver; } } } catch { } } + dirPackageVersionsCache[dir] = versions; + return versions; + } - var buildProps = Path.Combine(dir, "Directory.Build.props"); - if (File.Exists(buildProps)) + List GetAncestorChain(string startDir) + { + var chain = new List(); + for (var dir = startDir; + dir is not null && (PathsEqual(dir, root) || IsPathUnderDirectory(dir, root)); + dir = Path.GetDirectoryName(dir)) { - try - { - var xdoc = XDocument.Load(buildProps); - foreach (var el in xdoc.Descendants()) - { - if (el.Name.LocalName is "Version" or "PackageVersion" or "VersionPrefix" && - !string.IsNullOrWhiteSpace(el.Value) && !el.Value.Contains("$(")) - { - rootBuildVersion ??= el.Value.Trim(); - } - else if (el.Name.LocalName == "IsPackable" && bool.TryParse(el.Value.Trim(), out var b)) - { - rootBuildIsPackable = b; - } - } - } - catch { } + chain.Add(dir); } + chain.Reverse(); + return chain; + } + + foreach (var kvp in ReadDirectoryPackagesProps(root)) + { + index.CentralPackageVersions[kvp.Key] = kvp.Value; } // 4. Parse every project's metadata, references, packability, and declared C# types/extensions. foreach (var projPath in allProjectPaths.OrderBy(p => p, StringComparer.OrdinalIgnoreCase)) { var info = discoveredProjects.FirstOrDefault(p => PathsEqual(p.Path, projPath)) ?? ReadProject(projPath); + string? inheritedVersion = null; + bool? inheritedIsPackable = null; + var projectCentralVersions = new Dictionary(StringComparer.OrdinalIgnoreCase); + var projDir = Path.GetDirectoryName(projPath); + if (projDir is not null) + { + foreach (var dir in GetAncestorChain(projDir)) + { + var bp = ReadDirectoryBuildProps(dir); + if (bp.Version is not null) { inheritedVersion = bp.Version; } + if (bp.IsPackable.HasValue) { inheritedIsPackable = bp.IsPackable.Value; } + foreach (var kvp in ReadDirectoryPackagesProps(dir)) + { + projectCentralVersions[kvp.Key] = kvp.Value; + } + } + } + var meta = new RunActionProjectMeta { FullPath = projPath, RelPath = Rel(root, projPath), AssemblyName = info.AssemblyName, PackageId = string.IsNullOrWhiteSpace(info.PackageId) ? info.AssemblyName : info.PackageId!, - IsPackable = !info.IsTest && (rootBuildIsPackable ?? true), + IsPackable = !info.IsTest && (inheritedIsPackable ?? true), IsTest = info.IsTest, - Version = rootBuildVersion + Version = inheritedVersion }; + foreach (var kvp in projectCentralVersions) + { + meta.CentralPackageVersions[kvp.Key] = kvp.Value; + } try { @@ -508,7 +552,7 @@ private static RunActionDependencyIndex BuildRunActionDependencyIndex( var pkgVer = el.Attribute("Version")?.Value?.Trim() ?? el.Element(el.Name.Namespace + "Version")?.Value?.Trim(); if (!string.IsNullOrEmpty(pkgId)) { - if (string.IsNullOrEmpty(pkgVer) && index.CentralPackageVersions.TryGetValue(pkgId, out var cver)) + if (string.IsNullOrEmpty(pkgVer) && meta.CentralPackageVersions.TryGetValue(pkgId, out var cver)) { pkgVer = cver; } @@ -1054,18 +1098,25 @@ void EnsureUsing(string ns) EnsureUsing(declaredNs); } if (entry.HasReturnValue) { EnsureUsing("System"); } - var expr = entryMethod.ExpressionBody.Expression.ToString().Trim(); + var exprNode = entryMethod.ExpressionBody.Expression; + var expr = exprNode.ToString().Trim(); + var hasAsyncModifier = entryMethod.Modifiers.Any(m => m.IsKind(SyntaxKind.AsyncKeyword)); + var needsAwait = entry.IsAsync && !hasAsyncModifier; + var awaitedExpr = needsAwait + ? (exprNode is InvocationExpressionSyntax or MemberAccessExpressionSyntax or IdentifierNameSyntax or ParenthesizedExpressionSyntax or ObjectCreationExpressionSyntax + ? $"await {expr}" + : $"await ({expr})") + : expr; var sb = new StringBuilder(); foreach (var u in usings) { sb.AppendLine(u); } if (usings.Count > 0) { sb.AppendLine(); } if (entry.HasReturnValue) { - var call = entry.IsAsync ? $"await {expr}" : expr; - sb.Append($"Console.WriteLine({call});"); + sb.Append($"Console.WriteLine({awaitedExpr});"); } else { - sb.Append(entry.IsAsync ? $"await {expr};" : $"{expr};"); + sb.Append($"{awaitedExpr};"); } return sb.ToString().Replace("\r\n", "\n").TrimEnd('\r', '\n'); } @@ -1319,11 +1370,29 @@ void AddProjectRequirement(RunActionProjectMeta proj, string? matchedType, strin } // 4. Resolve remaining `using` directives (external packages, ASP.NET Core, xUnit, single-owner repo namespaces). - var allExternalPkgRefs = index.ProjectsByPath.Values - .SelectMany(p => p.PackageReferences) - .Where(r => !string.IsNullOrEmpty(r.Version)) - .GroupBy(r => r.Id, StringComparer.OrdinalIgnoreCase) - .ToDictionary(g => g.Key, g => g.First().Version!, StringComparer.OrdinalIgnoreCase); + var allExternalPkgRefs = new Dictionary(StringComparer.OrdinalIgnoreCase); + // Prefer versions from the example's own required projects first, then other packable projects, then non-packable projects, then root Directory.Packages.props. + foreach (var proj in requiredProjects.Values.OrderBy(p => p.FullPath, StringComparer.OrdinalIgnoreCase)) + { + foreach (var r in proj.PackageReferences.Where(r => !string.IsNullOrEmpty(r.Version))) + { + allExternalPkgRefs.TryAdd(r.Id, r.Version!); + } + foreach (var kvp in proj.CentralPackageVersions) + { + allExternalPkgRefs.TryAdd(kvp.Key, kvp.Value); + } + } + foreach (var proj in index.ProjectsByPath.Values + .OrderByDescending(p => p.IsPackable) + .ThenBy(p => p.IsTest) + .ThenBy(p => p.FullPath, StringComparer.OrdinalIgnoreCase)) + { + foreach (var r in proj.PackageReferences.Where(r => !string.IsNullOrEmpty(r.Version))) + { + allExternalPkgRefs.TryAdd(r.Id, r.Version!); + } + } foreach (var kvp in index.CentralPackageVersions) { allExternalPkgRefs.TryAdd(kvp.Key, kvp.Value); From d33da6d042285167acf3e1855945f4d19d300e0f Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sat, 21 Nov 2026 19:29:18 +0100 Subject: [PATCH 15/28] =?UTF-8?q?=F0=9F=90=9B=20fix=20run-action=20manifes?= =?UTF-8?q?t=20handling=20and=20verify=20reuse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Preserve sdk and frameworkReferences in standalone manifests, treat string-literal whitespace edits as semantic changes, invalidate cached verification when the engine hash changes, and preserve the previous manifest on hard verification failures. --- .../scripts/generate-run-actions.ps1 | 276 +++++++++++------- 1 file changed, 176 insertions(+), 100 deletions(-) diff --git a/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 b/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 index f99054a3..088f8d49 100644 --- a/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 +++ b/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 @@ -575,18 +575,35 @@ function Build-CandidateRecipeAndSource($ExampleObj) { if ($mode -eq 'test' -and -not ($deps | Where-Object { $_ -like 'xunit.v3@*' })) { $deps = @($deps + 'xunit.v3@4.0.3') } + $resolvedSdk = if ($ExampleObj.dependencies.sdk) { [string]$ExampleObj.dependencies.sdk } else { 'Microsoft.NET.Sdk' } + $resolvedFwRefs = @($ExampleObj.dependencies.frameworkReferences | Where-Object { -not [string]::IsNullOrWhiteSpace([string]$_) } | Select-Object -Unique) + if ($existing -and $existing.manifest) { + if ($existing.manifest.PSObject.Properties['sdk'] -and $existing.manifest.sdk) { + $resolvedSdk = [string]$existing.manifest.sdk + } + if ($existing.manifest.PSObject.Properties['frameworkReferences'] -and $existing.manifest.frameworkReferences) { + $resolvedFwRefs = @($existing.manifest.frameworkReferences | Where-Object { -not [string]::IsNullOrWhiteSpace([string]$_) } | Select-Object -Unique) + } + } + $manifestObj = [ordered]@{ + schemaVersion = 1 + mode = $mode + framework = $Framework + dependsOn = @($deps) + } + if ($resolvedSdk -and $resolvedSdk -ne 'Microsoft.NET.Sdk') { + $manifestObj['sdk'] = $resolvedSdk + } + if ($resolvedFwRefs.Count -gt 0) { + $manifestObj['frameworkReferences'] = @($resolvedFwRefs) + } $recipeObj = [ordered]@{ uid = $ExampleObj.uid exampleId = $ExampleObj.exampleId fenceOrdinal = $ExampleObj.fenceOrdinal sourceSha256 = $candidateHash whitespaceSha256 = $candidateWsHash - manifest = [ordered]@{ - schemaVersion = 1 - mode = $mode - framework = $Framework - dependsOn = @($deps) - } + manifest = $manifestObj } } @@ -600,7 +617,8 @@ function Build-CandidateRecipeAndSource($ExampleObj) { candidateSourceSha256 = $candidateHash candidateWhitespaceSha256 = $candidateWsHash dependsOn = @($deps) - sdk = if ($ExampleObj.dependencies.sdk) { [string]$ExampleObj.dependencies.sdk } else { 'Microsoft.NET.Sdk' } + sdk = if ($isHost) { if ($ExampleObj.dependencies.sdk) { [string]$ExampleObj.dependencies.sdk } else { 'Microsoft.NET.Sdk.Web' } } else { $resolvedSdk } + frameworkReferences = if ($isHost) { @() } else { @($resolvedFwRefs) } recipe = $recipeObj recipeSha256 = $recipeSha256 } @@ -862,9 +880,7 @@ if ($CheckRecipes) { } elseif ($oldSourceText) { $oldWs = Canonicalize-Whitespace $oldSourceText $newWs = Canonicalize-Whitespace $candidateFence.source - $oldNoWs = [regex]::Replace($oldSourceText, '\s+', '') - $newNoWs = [regex]::Replace($candidateFence.source, '\s+', '') - if ($oldWs -ceq $newWs -or $oldNoWs -ceq $newNoWs) { + if ($oldWs -ceq $newWs) { $diffKind = 'whitespace-only' $wsOrphanCount++ } else { @@ -1125,94 +1141,135 @@ if ($ValidateRunAction) { elseif ($exitCode -ne 0) { $failReason = 'host-execution-failed' } elseif ([string]::IsNullOrWhiteSpace($stdout)) { $failReason = 'empty-host-output' } } else { - # Build file-based app separately from execution so compiler warnings never masquerade as program stdout. - $headerLines = [Collections.Generic.List[string]]::new() - $headerLines.Add("#:property TargetFramework=$Framework") - $headerLines.Add('#:property PublishAot=false') - if ($candidate.sdk -eq 'Microsoft.NET.Sdk.Web') { $headerLines.Add('#:sdk Microsoft.NET.Sdk.Web') } - foreach ($pin in @($candidate.dependsOn)) { $headerLines.Add("#:package $pin") } - $appText = ($headerLines -join "`n") + "`n`n" + $candidate.candidateSource + "`n" - $appPath = Join-Path $tempDir 'candidate.cs' - $artifactsDir = Join-Path $tempDir 'artifacts' - [IO.File]::WriteAllText($appPath, $appText, [Text.UTF8Encoding]::new($false)) - $dotnetExe = (Get-Command dotnet -CommandType Application -ErrorAction Stop | Select-Object -First 1).Source - - $buildPsi = [Diagnostics.ProcessStartInfo]::new($dotnetExe) - foreach ($a in @('build', $appPath, '--artifacts-path', $artifactsDir, '--nologo', '-v', 'quiet')) { $buildPsi.ArgumentList.Add($a) } - $buildPsi.WorkingDirectory = $tempDir - $buildPsi.RedirectStandardOutput = $true - $buildPsi.RedirectStandardError = $true - $buildPsi.UseShellExecute = $false - $buildProc = [Diagnostics.Process]::new() - $buildProc.StartInfo = $buildPsi - $buildOut = ''; $buildErr = ''; $buildExit = -1 - try { - if (-not $buildProc.Start()) { throw 'Could not start dotnet build for file-based candidate.' } - $bOutTask = $buildProc.StandardOutput.ReadToEndAsync() - $bErrTask = $buildProc.StandardError.ReadToEndAsync() - if (-not $buildProc.WaitForExit([Math]::Max($TimeoutSeconds, 60) * 1000)) { - $timedOut = $true - try { $buildProc.Kill($true) } catch {} - $null = $buildProc.WaitForExit(5000) + # Validate strictly from the saved recipe manifest so validation matches what csrun will execute. + $manifestSpec = $candidate.recipe.manifest + $manifestMode = [string]$manifestSpec['mode'] + $manifestFramework = if ($manifestSpec.Contains('framework') -and $manifestSpec['framework']) { [string]$manifestSpec['framework'] } else { $Framework } + $manifestSdk = if ($manifestSpec.Contains('sdk') -and $manifestSpec['sdk']) { [string]$manifestSpec['sdk'] } else { 'Microsoft.NET.Sdk' } + $manifestDeps = if ($manifestSpec.Contains('dependsOn') -and $manifestSpec['dependsOn']) { @($manifestSpec['dependsOn']) } else { @() } + $manifestFwRefs = if ($manifestSpec.Contains('frameworkReferences') -and $manifestSpec['frameworkReferences']) { @($manifestSpec['frameworkReferences']) } else { @() } + + $invalidManifestError = $null + if ($manifestSdk -notin @('Microsoft.NET.Sdk', 'Microsoft.NET.Sdk.Web')) { + $invalidManifestError = "Unsupported csrun manifest sdk: $manifestSdk" + } elseif ($manifestMode -eq 'console' -and $manifestFwRefs.Count -gt 0) { + $unsupportedFwRefs = @($manifestFwRefs | Where-Object { $_ -ine 'Microsoft.AspNetCore.App' }) + if ($unsupportedFwRefs.Count -gt 0 -or $manifestSdk -ine 'Microsoft.NET.Sdk.Web') { + $invalidManifestError = "Console manifest frameworkReferences only supports Microsoft.AspNetCore.App with sdk Microsoft.NET.Sdk.Web." } - $buildExit = if ($timedOut) { 124 } else { $buildProc.ExitCode } - $buildOut = $bOutTask.GetAwaiter().GetResult() - $buildErr = $bErrTask.GetAwaiter().GetResult() - } finally { - $buildProc.Dispose() } - if ($timedOut) { - $exitCode = 124 - $stderr = ($buildOut + "`n" + $buildErr).Trim() - $failReason = 'execution-timeout' - } elseif ($buildExit -ne 0) { - $exitCode = $buildExit - $stderr = ($buildOut + "`n" + $buildErr).Trim() - $failReason = 'build-failed' + if ($invalidManifestError) { + $exitCode = 1 + $stderr = $invalidManifestError + $failReason = 'invalid-manifest' } else { - $builtDll = Get-ChildItem -LiteralPath $artifactsDir -Recurse -File -Filter 'candidate.dll' -ErrorAction SilentlyContinue | - Sort-Object FullName | Select-Object -First 1 - if (-not $builtDll) { - $exitCode = 1 - $failReason = 'build-output-missing' + $dotnetExe = (Get-Command dotnet -CommandType Application -ErrorAction Stop | Select-Object -First 1).Source + $artifactsDir = Join-Path $tempDir 'artifacts' + $useTempProject = ($manifestMode -eq 'test' -and $manifestFwRefs.Count -gt 0) + if ($useTempProject) { + $pkgLines = @($manifestDeps | ForEach-Object { + $parts = [string]$_ -split '@', 2 + " " + }) + $fwLines = @($manifestFwRefs | ForEach-Object { + " " + }) + $itemLines = @($pkgLines + $fwLines) + $itemGroup = if ($itemLines.Count -gt 0) { "`n `n" + ($itemLines -join "`n") + "`n " } else { '' } + $csprojText = "`n `n Exe`n $manifestFramework`n enable`n enable`n false`n $itemGroup`n`n" + $buildTargetPath = Join-Path $tempDir 'candidate.csproj' + [IO.File]::WriteAllText($buildTargetPath, $csprojText, [Text.UTF8Encoding]::new($false)) + [IO.File]::WriteAllText((Join-Path $tempDir 'Program.cs'), $candidate.candidateSource + "`n", [Text.UTF8Encoding]::new($false)) } else { - $psi = [Diagnostics.ProcessStartInfo]::new($dotnetExe) - $psi.ArgumentList.Add($builtDll.FullName) - $psi.WorkingDirectory = $tempDir - $psi.RedirectStandardOutput = $true - $psi.RedirectStandardError = $true - $psi.UseShellExecute = $false - $proc = [Diagnostics.Process]::new() - $proc.StartInfo = $psi - try { - if (-not $proc.Start()) { throw 'Could not start candidate assembly.' } - $outTask = $proc.StandardOutput.ReadToEndAsync() - $errTask = $proc.StandardError.ReadToEndAsync() - if (-not $proc.WaitForExit($TimeoutSeconds * 1000)) { - $timedOut = $true - try { $proc.Kill($true) } catch {} - $null = $proc.WaitForExit(5000) - } - $exitCode = if ($timedOut) { 124 } else { $proc.ExitCode } - $stdout = $outTask.GetAwaiter().GetResult() - $stderr = $errTask.GetAwaiter().GetResult() - } finally { - $proc.Dispose() + # Build file-based app separately from execution so compiler warnings never masquerade as program stdout. + $headerLines = [Collections.Generic.List[string]]::new() + $headerLines.Add("#:property TargetFramework=$manifestFramework") + $headerLines.Add('#:property PublishAot=false') + if ($manifestSdk -eq 'Microsoft.NET.Sdk.Web') { $headerLines.Add('#:sdk Microsoft.NET.Sdk.Web') } + foreach ($pin in @($manifestDeps)) { $headerLines.Add("#:package $pin") } + $appText = ($headerLines -join "`n") + "`n`n" + $candidate.candidateSource + "`n" + $buildTargetPath = Join-Path $tempDir 'candidate.cs' + [IO.File]::WriteAllText($buildTargetPath, $appText, [Text.UTF8Encoding]::new($false)) + } + + $buildPsi = [Diagnostics.ProcessStartInfo]::new($dotnetExe) + foreach ($a in @('build', $buildTargetPath, '--artifacts-path', $artifactsDir, '--nologo', '-v', 'quiet')) { $buildPsi.ArgumentList.Add($a) } + $buildPsi.WorkingDirectory = $tempDir + $buildPsi.RedirectStandardOutput = $true + $buildPsi.RedirectStandardError = $true + $buildPsi.UseShellExecute = $false + $buildProc = [Diagnostics.Process]::new() + $buildProc.StartInfo = $buildPsi + $buildOut = ''; $buildErr = ''; $buildExit = -1 + try { + if (-not $buildProc.Start()) { throw 'Could not start dotnet build for candidate manifest.' } + $bOutTask = $buildProc.StandardOutput.ReadToEndAsync() + $bErrTask = $buildProc.StandardError.ReadToEndAsync() + if (-not $buildProc.WaitForExit([Math]::Max($TimeoutSeconds, 60) * 1000)) { + $timedOut = $true + try { $buildProc.Kill($true) } catch {} + $null = $buildProc.WaitForExit(5000) } - if ($timedOut) { - $failReason = 'execution-timeout' - } elseif ($exitCode -ne 0) { - $failReason = 'run-failed' - } elseif ($candidate.mode -eq 'console' -and [string]::IsNullOrWhiteSpace($stdout)) { - $failReason = 'empty-console-output' - } elseif ($candidate.mode -eq 'test') { + $buildExit = if ($timedOut) { 124 } else { $buildProc.ExitCode } + $buildOut = $bOutTask.GetAwaiter().GetResult() + $buildErr = $bErrTask.GetAwaiter().GetResult() + } finally { + $buildProc.Dispose() + } + + if ($timedOut) { + $exitCode = 124 + $stderr = ($buildOut + "`n" + $buildErr).Trim() + $failReason = 'execution-timeout' + } elseif ($buildExit -ne 0) { + $exitCode = $buildExit + $stderr = ($buildOut + "`n" + $buildErr).Trim() + $failReason = 'build-failed' + } else { + $builtDll = Get-ChildItem -LiteralPath $artifactsDir -Recurse -File -Filter 'candidate.dll' -ErrorAction SilentlyContinue | + Sort-Object FullName | Select-Object -First 1 + if (-not $builtDll) { + $exitCode = 1 + $failReason = 'build-output-missing' + } else { + $psi = [Diagnostics.ProcessStartInfo]::new($dotnetExe) + $psi.ArgumentList.Add($builtDll.FullName) + $psi.WorkingDirectory = $tempDir + $psi.RedirectStandardOutput = $true + $psi.RedirectStandardError = $true + $psi.UseShellExecute = $false + $proc = [Diagnostics.Process]::new() + $proc.StartInfo = $psi try { - Invoke-Expression $script:CsrunTestVerificationTemplate - Assert-CsrunTestOutput $stdout - } catch { - $failReason = 'test-assertion-failed' - $stderr = ($stderr + "`n" + $_.Exception.Message).Trim() + if (-not $proc.Start()) { throw 'Could not start candidate assembly.' } + $outTask = $proc.StandardOutput.ReadToEndAsync() + $errTask = $proc.StandardError.ReadToEndAsync() + if (-not $proc.WaitForExit($TimeoutSeconds * 1000)) { + $timedOut = $true + try { $proc.Kill($true) } catch {} + $null = $proc.WaitForExit(5000) + } + $exitCode = if ($timedOut) { 124 } else { $proc.ExitCode } + $stdout = $outTask.GetAwaiter().GetResult() + $stderr = $errTask.GetAwaiter().GetResult() + } finally { + $proc.Dispose() + } + if ($timedOut) { + $failReason = 'execution-timeout' + } elseif ($exitCode -ne 0) { + $failReason = 'run-failed' + } elseif ($manifestMode -eq 'console' -and [string]::IsNullOrWhiteSpace($stdout)) { + $failReason = 'empty-console-output' + } elseif ($manifestMode -eq 'test') { + try { + Invoke-Expression $script:CsrunTestVerificationTemplate + Assert-CsrunTestOutput $stdout + } catch { + $failReason = 'test-assertion-failed' + $stderr = ($stderr + "`n" + $_.Exception.Message).Trim() + } } } } @@ -1567,7 +1624,18 @@ foreach ($exObj in $normalizedExamples) { $manifestObject = $null $hostHarnessObj = $null if ($strategy -eq 'standalone') { - $manifestObject = if ($recipe) { $recipe.manifest | Select-Object * } else { [pscustomobject]@{ schemaVersion=1; mode=$(if ($isTest) {'test'} else {'console'}); framework=$Framework; dependsOn=@($(if ($isTest) {'xunit.v3@4.0.3'})) } } + if ($recipe) { + $manifestObject = $recipe.manifest | Select-Object * + } else { + $manifestObject = [pscustomobject]@{ schemaVersion=1; mode=$(if ($isTest) {'test'} else {'console'}); framework=$Framework; dependsOn=@($(if ($isTest) {'xunit.v3@4.0.3'})) } + if ($exObj.dependencies.sdk -and $exObj.dependencies.sdk -ne 'Microsoft.NET.Sdk') { + $manifestObject | Add-Member -NotePropertyName sdk -NotePropertyValue ([string]$exObj.dependencies.sdk) -Force + } + $autoFwRefs = @($exObj.dependencies.frameworkReferences | Where-Object { -not [string]::IsNullOrWhiteSpace([string]$_) } | Select-Object -Unique) + if ($autoFwRefs.Count -gt 0) { + $manifestObject | Add-Member -NotePropertyName frameworkReferences -NotePropertyValue $autoFwRefs -Force + } + } if ($manifestObject.PSObject.Properties['source'] -and (Normalize $manifestObject.source) -cne $displayedSource) { throw 'Manifest source differs from displayed C#.' } $manifestObject | Add-Member -NotePropertyName source -NotePropertyValue $displayedSource -Force } elseif ($strategy -eq 'host') { @@ -1663,6 +1731,7 @@ foreach ($exObj in $normalizedExamples) { # Read existing cached evidence first (supports both unverified runs and --verify-changed reuse). $cachedState = $null $cachedLog = $null + $cachedEngineSha = $null if ($evidencePath -and (Test-PrivateCacheItem $evidencePath)) { try { $evidence = [IO.File]::ReadAllText($evidencePath) | ConvertFrom-Json @@ -1672,6 +1741,9 @@ foreach ($exObj in $normalizedExamples) { if (Test-PrivateCacheItem $log) { $cachedState = $evidence.state $cachedLog = $log + if ($evidence.PSObject.Properties['engineSha256'] -and $evidence.engineSha256) { + $cachedEngineSha = ([string]$evidence.engineSha256).ToUpperInvariant() + } } } } catch { @@ -1680,7 +1752,13 @@ foreach ($exObj in $normalizedExamples) { } $shouldRunVerify = $inVerifyScope -and ($Verify -eq 'Both' -or $Verify -eq $transport) - if ($shouldRunVerify -and $VerifyChanged -and -not $changed -and $cachedState -eq 'Verified') { + $engineMatchesEvidence = ($strategy -ne 'standalone') -or ( + $resolvedVerificationEngine -and + $resolvedVerificationEngine.Sha256 -and + $cachedEngineSha -and + $cachedEngineSha -ceq ([string]$resolvedVerificationEngine.Sha256).ToUpperInvariant() + ) + if ($shouldRunVerify -and $VerifyChanged -and -not $changed -and $cachedState -eq 'Verified' -and $engineMatchesEvidence) { $shouldRunVerify = $false $verificationReused++ $result[$transport] = $cachedState @@ -1755,13 +1833,11 @@ foreach ($exObj in $normalizedExamples) { } $hasHardFailure = (@($results | Where-Object { $_.status -eq 'failed' -or $_.native -eq 'Failed' -or $_.docker -eq 'Failed' }).Count -gt 0) -$manifestPreserved = $false -# Never destroy a previous non-empty manifest as a side effect of a failed verification! -if ($Verify -ne 'None' -and $hasHardFailure -and $manifestEntries.Count -eq 0 -and $oldManifestById.Count -gt 0) { - $manifestPreserved = $true -} +$skipMutations = ($Verify -ne 'None' -and $hasHardFailure) +# Never replace or destroy a previous manifest or page associations as a side effect of any hard verification failure. +$manifestPreserved = $skipMutations -and (Test-Path -LiteralPath $manifestPath) -if (-not $manifestPreserved) { +if (-not $skipMutations) { # Apply edits by offset in the original text so each existing line ending is preserved. foreach ($page in $pages) { if (-not (Test-Path -LiteralPath $page)) { continue } @@ -2050,7 +2126,7 @@ function Update-BuildDocfxImageScript([string] $Original) { if ($verifyErrors.Count) { return $Original } return $updated } -if (-not $manifestPreserved) { +if (-not $skipMutations) { $buildImagePath = Join-Path $workspace 'BuildDocfxImage.ps1' if (Test-Path -LiteralPath $buildImagePath) { Assert-RepositoryPath $buildImagePath From 5dd2adbd93f3163c1e5467117bce315d830cc75d Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sat, 21 Nov 2026 19:29:19 +0100 Subject: [PATCH 16/28] =?UTF-8?q?=E2=9C=85=20add=20docfx=20run-action=20re?= =?UTF-8?q?gression=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add regression tests for subtree props isolation, async expression-bodied wrappers, Web SDK standalone console manifests, string-literal semantic diffs, engine-hash verify invalidation, manifest preservation, and host build timeout cleanup. --- .../scripts/test-run-actions.ps1 | 220 ++++++++++++++++-- 1 file changed, 207 insertions(+), 13 deletions(-) diff --git a/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 b/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 index e8144552..17212cba 100644 --- a/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 +++ b/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 @@ -726,6 +726,47 @@ $null = [IO.Directory]::CreateDirectory("$detRoot/docs") $null = [IO.Directory]::CreateDirectory("$detRoot/src/Acme.Net") $null = [IO.Directory]::CreateDirectory("$detRoot/src/Acme.Internal") $null = [IO.Directory]::CreateDirectory("$detRoot/src/Acme.Xml") +$null = [IO.Directory]::CreateDirectory("$detRoot/src/Acme.AppSubtree") + +[IO.File]::WriteAllText("$detRoot/Directory.Packages.props", @' + + true + + + + +'@) + +[IO.File]::WriteAllText("$detRoot/src/Acme.AppSubtree/Directory.Build.props", @' + + + false + 99.0.0 + + +'@) +[IO.File]::WriteAllText("$detRoot/src/Acme.AppSubtree/Directory.Packages.props", @' + + true + + + + +'@) +[IO.File]::WriteAllText("$detRoot/src/Acme.AppSubtree/Acme.AppSubtree.csproj", @' + + + net10.0 + + + + + +'@) +[IO.File]::WriteAllText("$detRoot/src/Acme.AppSubtree/AppOnlyHelper.cs", @' +namespace Acme.AppSubtree; +public sealed class AppOnlyHelper { } +'@) [IO.File]::WriteAllText("$detRoot/src/Acme.Net/Acme.Net.csproj", @' @@ -734,6 +775,9 @@ $null = [IO.Directory]::CreateDirectory("$detRoot/src/Acme.Xml") Acme.Net 11.0.0 + + + '@) [IO.File]::WriteAllText("$detRoot/src/Acme.Net/HttpManager.cs", @' @@ -793,13 +837,48 @@ public sealed class CleanExample { public void Demonstrate() { - Console.WriteLine("clean-ok"); + Console.WriteLine("clean ok"); } } `````` "@ [IO.File]::WriteAllText("$detRoot/docs/WrapperClean.md", $cleanWrapperMd) +$asyncExprWrapperMd = @" +--- +uid: Demo.AsyncExprWrapper +--- +# Async expression-bodied wrapper + +``````csharp +using System; +using System.Threading.Tasks; + +public sealed class AsyncExprExample +{ + public async Task DemonstrateAsync() => await Task.FromResult(42); +} +`````` +"@ +[IO.File]::WriteAllText("$detRoot/docs/AsyncExprWrapper.md", $asyncExprWrapperMd) + +$webConsoleMd = @" +--- +uid: Demo.WebConsole +--- +# Non-blocking ASP.NET Core console sample + +``````csharp +using System; +using Microsoft.AspNetCore.Http; + +var context = new DefaultHttpContext(); +context.Request.Method = HttpMethods.Get; +Console.WriteLine(context.Request.Method); +`````` +"@ +[IO.File]::WriteAllText("$detRoot/docs/WebConsole.md", $webConsoleMd) + $membersWrapperMd = @" --- uid: Demo.WrapperMembers @@ -890,6 +969,7 @@ uid: Acme.Net.Http.HttpManager ``````csharp using Acme.Net.Http; +using Shared.Telemetry; var mgr = new HttpManager(); `````` @@ -998,10 +1078,12 @@ if ($LASTEXITCODE -ne 0 -or $explainText -notlike '*host-parameterized*' -or $ex throw "--explain prose output was incomplete: $explainText" } -# 2. --resolve-dependencies (split package, unpublished project, CS0104 ambiguity) +# 2. --resolve-dependencies (split package, subtree Directory.Build.props / Directory.Packages.props isolation, unpublished project, CS0104 ambiguity) $splitDep = (& $generator -RepoRoot $detRoot --resolve-dependencies Acme.Net.Http.HttpManager) | ConvertFrom-Json -if ($LASTEXITCODE -ne 0 -or -not $splitDep.preflightPassed -or ($splitDep.dependsOn -notcontains 'Acme.Net@11.0.0') -or ($splitDep.dependsOn -contains 'Acme.Net.Http@11.0.0')) { - throw "Split-package dependency resolution failed: $($splitDep | ConvertTo-Json -Compress)" +if ($LASTEXITCODE -ne 0 -or -not $splitDep.preflightPassed -or + ($splitDep.dependsOn -notcontains 'Acme.Net@11.0.0') -or ($splitDep.dependsOn -contains 'Acme.Net.Http@11.0.0') -or + ($splitDep.dependsOn -notcontains 'Shared.Telemetry@2.1.0') -or ($splitDep.dependsOn -contains 'Shared.Telemetry@9.9.9')) { + throw "Split-package or subtree-scoped dependency resolution failed: $($splitDep | ConvertTo-Json -Compress)" } $unpubDep = (& $generator -RepoRoot $detRoot --resolve-dependencies Acme.Internal.SecretHelper) | ConvertFrom-Json if ($LASTEXITCODE -ne 1 -or $unpubDep.preflightPassed -or -not (@($unpubDep.errors | Where-Object { $_ -like 'missing-package: SecretHelper -> Acme.Internal*' }).Count)) { @@ -1025,7 +1107,7 @@ if ($LASTEXITCODE -ne 1 -or $silentVal.validated -or $silentVal.reasonCode -ne ' throw "Console validation must reject empty stdout: $($silentVal | ConvertTo-Json -Compress)" } $cleanVal = (& $generator -RepoRoot $detRoot --validate-run-action Demo.WrapperClean) | ConvertFrom-Json -if ($LASTEXITCODE -ne 0 -or -not $cleanVal.validated -or -not $cleanVal.converted -or $cleanVal.stdout -notlike '*clean-ok*' -or -not $cleanVal.recipeSha256) { +if ($LASTEXITCODE -ne 0 -or -not $cleanVal.validated -or -not $cleanVal.converted -or $cleanVal.stdout -notlike '*clean ok*' -or -not $cleanVal.recipeSha256) { throw "wrapper-clean validation failed: $($cleanVal | ConvertTo-Json -Compress)" } if ([IO.File]::ReadAllText("$detRoot/docs/WrapperClean.md") -cne $cleanWrapperMd) { @@ -1035,6 +1117,26 @@ $cleanApplied = (& $generator -RepoRoot $detRoot --apply-run-action Demo.Wrapper if ($LASTEXITCODE -ne 0 -or -not $cleanApplied.applied -or -not $cleanApplied.fenceUpdated -or $cleanApplied.recipeSha256 -cne $cleanVal.recipeSha256) { throw "--apply-run-action failed after validation: $($cleanApplied | ConvertTo-Json -Compress)" } +$asyncExprVal = (& $generator -RepoRoot $detRoot --validate-run-action Demo.AsyncExprWrapper) | ConvertFrom-Json +if ($LASTEXITCODE -ne 0 -or -not $asyncExprVal.validated -or -not $asyncExprVal.converted -or $asyncExprVal.stdout.Trim() -cne '42') { + throw "Async expression-bodied wrapper validation failed (must not emit double await): $($asyncExprVal | ConvertTo-Json -Compress)" +} +$asyncExprApplied = (& $generator -RepoRoot $detRoot --apply-run-action Demo.AsyncExprWrapper) | ConvertFrom-Json +if ($LASTEXITCODE -ne 0 -or -not $asyncExprApplied.applied -or ([IO.File]::ReadAllText("$detRoot/docs/AsyncExprWrapper.md") -match 'await\s+await')) { + throw "Async expression-bodied wrapper apply failed or emitted double await: $($asyncExprApplied | ConvertTo-Json -Compress)" +} +$webConsoleVal = (& $generator -RepoRoot $detRoot --validate-run-action Demo.WebConsole) | ConvertFrom-Json +if ($LASTEXITCODE -ne 0 -or -not $webConsoleVal.validated -or $webConsoleVal.stdout.Trim() -cne 'GET') { + throw "Web SDK standalone console validation failed: $($webConsoleVal | ConvertTo-Json -Compress)" +} +$webConsoleApplied = (& $generator -RepoRoot $detRoot --apply-run-action Demo.WebConsole) | ConvertFrom-Json +if ($LASTEXITCODE -ne 0 -or -not $webConsoleApplied.applied) { + throw "Web SDK standalone console apply failed: $($webConsoleApplied | ConvertTo-Json -Compress)" +} +$webSavedRecipe = ((Get-Content "$detRoot/run-actions.settings.json" -Raw | ConvertFrom-Json).examples | Where-Object uid -eq 'Demo.WebConsole' | Select-Object -First 1) +if (-not $webSavedRecipe -or $webSavedRecipe.manifest.sdk -cne 'Microsoft.NET.Sdk.Web' -or ($webSavedRecipe.manifest.frameworkReferences -notcontains 'Microsoft.AspNetCore.App')) { + throw "Saved standalone recipe dropped sdk or frameworkReferences: $($webSavedRecipe | ConvertTo-Json -Depth 10 -Compress)" +} $membersVal = (& $generator -RepoRoot $detRoot --validate-run-action Demo.WrapperMembers) | ConvertFrom-Json if ($LASTEXITCODE -ne 0 -or -not $membersVal.validated -or $membersVal.stdout -notlike '*members-ok*') { throw "wrapper-members validation failed: $($membersVal | ConvertTo-Json -Compress)" @@ -1091,7 +1193,17 @@ foreach ($t in @('native', 'docker')) { if ($actualHostHash -cne $hostGenEntry."${t}Sha256") { throw "BuildRunActions.ps1 host $t.ps1 hash drifted from generator." } } -# 6. Negative recipe health checks: moved, duplicate-uid, whitespace-only orphan, semantic orphan +$webGenEntry = $detGenSummary.examples | Where-Object exampleId -ceq 'Demo.WebConsole#1' +if (-not $webGenEntry -or $webGenEntry.strategy -ne 'standalone') { + throw "Expected standalone WebConsole entry: $($webGenEntry | ConvertTo-Json -Compress)" +} +$webNativeScript = Get-Content "$detRoot/run-actions/$($webGenEntry.id)/native.ps1" -Raw +$webNativeManifest = (Get-CsrunWrapperManifest $webNativeScript) | ConvertFrom-Json +if ($webNativeManifest.sdk -cne 'Microsoft.NET.Sdk.Web' -or ($webNativeManifest.frameworkReferences -notcontains 'Microsoft.AspNetCore.App')) { + throw "Materialized csrun manifest dropped sdk or frameworkReferences: $($webNativeManifest | ConvertTo-Json -Compress)" +} + +# 6. Negative recipe health checks: moved, duplicate-uid, whitespace-only orphan, string-literal whitespace change (semantic!), semantic orphan $savedSettingsRaw = [IO.File]::ReadAllText("$detRoot/run-actions.settings.json") $savedMultiRaw = [IO.File]::ReadAllText("$detRoot/docs/MultiFence.md") $savedCleanRaw = [IO.File]::ReadAllText("$detRoot/docs/WrapperClean.md") @@ -1104,16 +1216,24 @@ try { } [IO.File]::WriteAllText("$detRoot/docs/MultiFence.md", $savedMultiRaw) - # Whitespace-only orphan: append trailing spaces to Console.WriteLine("clean-ok"); - [IO.File]::WriteAllText("$detRoot/docs/WrapperClean.md", $savedCleanRaw.Replace('Console.WriteLine("clean-ok");', 'Console.WriteLine("clean-ok"); ')) + # Whitespace-only orphan: append trailing spaces to Console.WriteLine("clean ok"); + [IO.File]::WriteAllText("$detRoot/docs/WrapperClean.md", $savedCleanRaw.Replace('Console.WriteLine("clean ok");', 'Console.WriteLine("clean ok"); ')) $wsCheck = (& $generator -RepoRoot $detRoot --check-recipes --json) | ConvertFrom-Json $wsIssue = $wsCheck.issues | Where-Object { $_.kind -eq 'orphaned' -and $_.uid -eq 'Demo.WrapperClean' } | Select-Object -First 1 if ($LASTEXITCODE -ne 1 -or -not $wsIssue -or $wsIssue.diffKind -ne 'whitespace-only' -or -not $wsIssue.currentSourceSha256 -or $wsIssue.suggestedUpdate.action -ne 'update-source-sha256') { throw "Expected whitespace-only orphan classification: $($wsCheck | ConvertTo-Json -Depth 10)" } + # String-literal whitespace change ("clean ok" -> "cleanok") MUST be classified as semantic, NOT whitespace-only! + [IO.File]::WriteAllText("$detRoot/docs/WrapperClean.md", $savedCleanRaw.Replace('clean ok', 'cleanok')) + $litWsCheck = (& $generator -RepoRoot $detRoot --check-recipes --json) | ConvertFrom-Json + $litWsIssue = $litWsCheck.issues | Where-Object { $_.kind -eq 'orphaned' -and $_.uid -eq 'Demo.WrapperClean' } | Select-Object -First 1 + if ($LASTEXITCODE -ne 1 -or -not $litWsIssue -or $litWsIssue.diffKind -ne 'semantic' -or $litWsIssue.suggestedUpdate.action -ne 're-validate-and-apply') { + throw "Whitespace change inside a string literal must be classified as semantic: $($litWsCheck | ConvertTo-Json -Depth 10)" + } + # Semantic orphan: change printed string - [IO.File]::WriteAllText("$detRoot/docs/WrapperClean.md", $savedCleanRaw.Replace('clean-ok', 'changed-semantics')) + [IO.File]::WriteAllText("$detRoot/docs/WrapperClean.md", $savedCleanRaw.Replace('clean ok', 'changed-semantics')) $semCheck = (& $generator -RepoRoot $detRoot --check-recipes --json) | ConvertFrom-Json $semIssue = $semCheck.issues | Where-Object { $_.kind -eq 'orphaned' -and $_.uid -eq 'Demo.WrapperClean' } | Select-Object -First 1 if ($LASTEXITCODE -ne 1 -or -not $semIssue -or $semIssue.diffKind -ne 'semantic' -or $semIssue.suggestedUpdate.action -ne 're-validate-and-apply') { @@ -1161,14 +1281,21 @@ if ([IO.File]::ReadAllText("$detRoot/run-actions.manifest.json") -cne $manifestB throw 'Failed verification destroyed or mutated the previous manifest or Markdown associations!' } -# 8. Blocker 7: --verify Native --engine-path, --verify-changed reuse, and --verify --id +# 8. Blocker 7: --verify Native --engine-path, --verify-changed reuse + engine hash invalidation, runtime-failure manifest preservation, and --verify --id $detEngine = Join-Path $work 'det-csrun.ps1' +$detEngineB = Join-Path $work 'det-csrun-b.ps1' [IO.File]::WriteAllText($detEngine, $mockEngineContent, [Text.UTF8Encoding]::new($false)) +[IO.File]::WriteAllText($detEngineB, ($mockEngineContent + "`n# engine-b"), [Text.UTF8Encoding]::new($false)) $detVerifyCalls = [Collections.Generic.List[string]]::new() +$detFailFirst = $false function pwsh { $fileIndex = [Array]::IndexOf($args, '-File') $detVerifyCalls.Add([string]$args[$fileIndex + 1]) - $global:LASTEXITCODE = 0 + if ($detFailFirst -and $detVerifyCalls.Count -eq 1) { + $global:LASTEXITCODE = 1 + } else { + $global:LASTEXITCODE = 0 + } } try { $vAll = (& $generator -RepoRoot $detRoot --verify Native --engine-path $detEngine --summary-json) | ConvertFrom-Json @@ -1179,15 +1306,43 @@ try { $vChangedCount = $detVerifyCalls.Count $detVerifyCalls.Clear() - $vSingle = (& $generator -RepoRoot $detRoot --verify --id Demo.WrapperMembers#1 --engine-path $detEngine --summary-json) | ConvertFrom-Json + # Switching to a different engine (different SHA-256) must re-execute standalone examples under --verify-changed! + $vChangedEngineB = (& $generator -RepoRoot $detRoot --verify-changed --engine-path $detEngineB --summary-json) | ConvertFrom-Json + $vChangedEngineBCount = $detVerifyCalls.Count + $detVerifyCalls.Clear() + + # A runtime verification failure with non-zero manifest entries must preserve the previous manifest and page associations! + $manifestBeforeRuntimeFail = [IO.File]::ReadAllText("$detRoot/run-actions.manifest.json") + $pageBeforeRuntimeFail = [IO.File]::ReadAllText("$detRoot/docs/WrapperClean.md") + $savedCleanBeforeRuntimeFail = $pageBeforeRuntimeFail + try { + [IO.File]::WriteAllText("$detRoot/docs/WrapperClean.md", $pageBeforeRuntimeFail.Replace('Console.WriteLine("clean ok");', 'Console.WriteLine("failing-update");')) + $detFailFirst = $true + $vRuntimeFail = (& $generator -RepoRoot $detRoot --verify Native --engine-path $detEngineB --summary-json) | ConvertFrom-Json + $vRuntimeFailExit = $LASTEXITCODE + $detFailFirst = $false + $detVerifyCalls.Clear() + if ($vRuntimeFailExit -ne 1 -or -not $vRuntimeFail.manifestPreserved) { + throw "Runtime verification failure must exit 1 and preserve manifest: $($vRuntimeFail | ConvertTo-Json -Depth 5 -Compress)" + } + if ([IO.File]::ReadAllText("$detRoot/run-actions.manifest.json") -cne $manifestBeforeRuntimeFail) { + throw 'Runtime verification failure overwrote the last good run-actions.manifest.json!' + } + } finally { + $detFailFirst = $false + [IO.File]::WriteAllText("$detRoot/docs/WrapperClean.md", $savedCleanBeforeRuntimeFail) + } + + $vSingle = (& $generator -RepoRoot $detRoot --verify --id Demo.WrapperMembers#1 --engine-path $detEngineB --summary-json) | ConvertFrom-Json $vSingleCount = $detVerifyCalls.Count $detVerifyCalls.Clear() - $vMissing = (& $generator -RepoRoot $detRoot --verify --id Does.Not.Exist --engine-path $detEngine --summary-json) + $vMissing = (& $generator -RepoRoot $detRoot --verify --id Does.Not.Exist --engine-path $detEngineB --summary-json) $vMissingExit = $LASTEXITCODE } finally { Remove-Item Function:\pwsh -ErrorAction SilentlyContinue if (Test-Path -LiteralPath $detEngine) { Remove-Item -LiteralPath $detEngine -Force } + if (Test-Path -LiteralPath $detEngineB) { Remove-Item -LiteralPath $detEngineB -Force } } if ($vAllCount -lt 5 -or $vAll.verified -lt 5) { throw "Expected full --verify Native run to execute >=5 examples; executed=$vAllCount verified=$($vAll.verified)" @@ -1195,6 +1350,9 @@ if ($vAllCount -lt 5 -or $vAll.verified -lt 5) { if ($vChangedCount -ne 0 -or $vChanged.verification.reused -lt 5 -or $vChanged.verifyScope -ne 'changed') { throw "Expected --verify-changed to reuse all unchanged verified examples; executed=$vChangedCount reused=$($vChanged.verification.reused)" } +if ($vChangedEngineBCount -lt 4) { + throw "Expected --verify-changed with a different engine SHA-256 to re-execute all standalone examples; executed=$vChangedEngineBCount" +} if ($vSingleCount -ne 1 -or $vSingle.verifyScope -ne 'id') { throw "Expected --verify --id to execute exactly 1 example; executed=$vSingleCount scope=$($vSingle.verifyScope)" } @@ -1206,6 +1364,42 @@ if ($vMissingExit -ne 3) { throw "Expected unmatched --id selector to exit 3; got $vMissingExit" } +# 9. Issue 7: Host harness build deadline bounds stalled dotnet build and kills its process tree. +. (Join-Path $PSScriptRoot 'integration-example.ps1') +$stalledPair = New-HostExamplePair -Source 'Console.WriteLine("never");' -Framework 'net10.0' -Sdk 'Microsoft.NET.Sdk.Web' -TimeoutSeconds 3 +$pwshExe = (Get-Command pwsh -CommandType Application | Select-Object -First 1).Source +$childPidFile = Join-Path $work 'stalled-child.pid' +$buildArgsPattern = "foreach (`$a in @('build', `$csprojPath, '-c', 'Release', '--nologo', '-v', 'quiet')) { `$buildStartInfo.ArgumentList.Add(`$a) }" +if (-not $stalledPair.Native.Contains($buildArgsPattern)) { + throw 'Host runner script no longer launches dotnet build via bounded ProcessStartInfo.' +} +$escapedPwsh = $pwshExe.Replace("'", "''") +$escapedPidFile = $childPidFile.Replace("'", "''") +$stallCmd = "`$c = Start-Process -FilePath '$escapedPwsh' -ArgumentList @('-NoProfile','-NonInteractive','-Command','Start-Sleep -Seconds 30') -PassThru; [IO.File]::WriteAllText('$escapedPidFile', [string]`$c.Id); Start-Sleep -Seconds 30" +$escapedStallCmd = $stallCmd.Replace("'", "''") +$stalledScript = $stalledPair.Native.Replace( + $buildArgsPattern, + "`$buildStartInfo.FileName = '$escapedPwsh'; foreach (`$a in @('-NoProfile', '-NonInteractive', '-Command', '$escapedStallCmd')) { `$buildStartInfo.ArgumentList.Add(`$a) }" +) +$stalledScriptPath = Join-Path $work 'stalled-host.ps1' +[IO.File]::WriteAllText($stalledScriptPath, $stalledScript, [Text.UTF8Encoding]::new($false)) +$sw = [Diagnostics.Stopwatch]::StartNew() +$stalledOut = & $pwshExe -NoProfile -NonInteractive -File $stalledScriptPath 2>&1 | Out-String +$stalledExit = $LASTEXITCODE +$sw.Stop() +if ($stalledExit -eq 0 -or $stalledOut -notlike '*Host sample build timed out after 3s*' -or $sw.Elapsed.TotalSeconds -ge 15) { + throw "Stalled host build was not bounded by timeoutSeconds (exit=$stalledExit, elapsed=$([Math]::Round($sw.Elapsed.TotalSeconds,2))s): $stalledOut" +} +if (Test-Path -LiteralPath $childPidFile) { + $childPid = [int]([IO.File]::ReadAllText($childPidFile).Trim()) + Start-Sleep -Milliseconds 300 + $stillRunning = Get-Process -Id $childPid -ErrorAction SilentlyContinue + if ($stillRunning) { + try { Stop-Process -Id $childPid -Force -ErrorAction SilentlyContinue } catch {} + throw "Timed-out host build did not kill its child process tree (PID $childPid survived)." + } +} + $global:LASTEXITCODE = 0 Write-Host "Run-action delivery passed: paired console, test, dependency-backed test, repository test and host harness; deterministic plan/explain, type-owned dependency resolution/preflight, validation-gated apply, multi-fence uid#ordinal identity, whitespace/semantic recipe check, atomic manifest preservation, --summary-json/--verify-changed/--verify --id, exact pins and source, coverage classifications, independent verification state, incremental assets, stale cleanup, standalone BuildRunActions.ps1 materialization and modern DocFX render. Fixture: $work" exit 0 From a93d03b21b80d3e2582f454511a57c537d9f76fe Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sat, 21 Nov 2026 19:44:05 +0100 Subject: [PATCH 17/28] =?UTF-8?q?=F0=9F=8D=B1=20add=20hero=20image=20asset?= =?UTF-8?q?=20for=20dotnet-csrun=20skill?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the hero image asset for the dotnet-csrun skill. --- skills/dotnet-csrun/assets/hero.jpg | Bin 0 -> 178040 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 skills/dotnet-csrun/assets/hero.jpg diff --git a/skills/dotnet-csrun/assets/hero.jpg b/skills/dotnet-csrun/assets/hero.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e31e2c3cc771a959cc769ac24ef88f5153fc7dcc GIT binary patch literal 178040 zcma&N2UL?y&?x-S6c7~pdf@05FrT&ir)C%uiW#W``z>JImvml&&=%1?99&Y%;wL>KVJa88!^EF0AOk= z4X^_L-TrI=T!sipXe_`0Fw?uW0pQOUrtu&+{1#Y2Ap$1v;|KNimxn;Z6=HmDDJaP+ zDgfHoVs80BLjB>wzW#y15jvtfJp-b`!G1cT&T5v5mbb3^2L+oTBmM1>Rt^wkC^6E|xaJ*P)UA z!b*zrigFM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2tH;!^XI{Cm? zn0qbx0a;N2RHdyIC*+eQcH&=G+q@o2;emg=78!>((_R~IYyJ~|{~LzEsV8gTpL@?n zeCD*;ldPk*$7}t+C=GH-4a)v$#EEsq|3>cGrGO4-U`}HB-9H5~crVsn)6igLj6cj7 z2y!imm(&>b8Ve$0&<2dv;VpVpcDbPNgOW0&E0G!H8@t{q_Ha5Sc;U}Fz|9f^5)m*# z=(l)sC-G10^b!=|fav0#oJE?tL8eszmtB z8e^=v%`_chR;7PxL}@c~rzY5c&42{}JGk?-gsk5J46wR=qZh9bXaPwj(}X3!#JuYp z_24L$icm%WK~fBOKqm>Jyep9N>4XBacj!{d6n&8JF7Wn?(|_HsqJ0e+u)m(;C`B{( zPz4v4u1mw?ZSY!=SDV)v%Yf}38Hmx>H&CI-;0Ps_=p^Sl=US?xMZ{7GpU!ixrh)yV z)Xm|l(0D{)F~4Sjz_Bz*iU1g<<{+WaT<#Ops8-z10e&Pq0xrWy#CWX20NjYiFQ}=E zH&9|UYA~>P$Du7WHf}>qcIKQM-SRSUJWDbOZR(A?pIdGKqFGN)8Un z+(nF&K=dc)H2^roP-OU|44_jJ?mmY33gzx_Yg-jE0Y literal 0 HcmV?d00001 From 1103432e53902531bed45a127ef7fb2bd775fe02 Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sat, 21 Nov 2026 20:05:36 +0100 Subject: [PATCH 18/28] =?UTF-8?q?=F0=9F=90=9B=20fail=20on=20truncated=20ho?= =?UTF-8?q?st=20startup=20delay=20timeout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Throw a timeout error when an empty-probe host runner hits its deadline before the full startupDelayMs observation window completes, and wait on the host process directly instead of sleeping. --- .../dotnet-docfx-digest/assets/BuildRunActions.ps1 | 12 ++++++++---- .../scripts/integration-example.ps1 | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/skills/dotnet-docfx-digest/assets/BuildRunActions.ps1 b/skills/dotnet-docfx-digest/assets/BuildRunActions.ps1 index 539c2c39..c82b506d 100644 --- a/skills/dotnet-docfx-digest/assets/BuildRunActions.ps1 +++ b/skills/dotnet-docfx-digest/assets/BuildRunActions.ps1 @@ -372,15 +372,19 @@ try { } if (-not $probed) { throw "Host probe '$($payload.probeMethod) $($payload.probePath)' timed out after $($payload.timeoutSeconds)s. Last error: $lastError" } } else { - $delayRemainingMs = [int][Math]::Ceiling(($deadline - [DateTimeOffset]::UtcNow).TotalMilliseconds) - $sleepMs = [Math]::Min([int]$payload.startupDelayMs, [Math]::Max($delayRemainingMs, 0)) - if ($sleepMs -gt 0) { Start-Sleep -Milliseconds $sleepMs } + $requiredDelayMs = [Math]::Max([int]$payload.startupDelayMs, 0) + $delayRemainingMs = [int][Math]::Floor(($deadline - [DateTimeOffset]::UtcNow).TotalMilliseconds) + $sleepMs = [Math]::Min($requiredDelayMs, [Math]::Max($delayRemainingMs, 0)) + if ($sleepMs -gt 0) { $null = $hostProcess.WaitForExit($sleepMs) } if ($hostProcess.HasExited -and $hostProcess.ExitCode -ne 0) { $stdOut = $stdoutTask.GetAwaiter().GetResult() $errOut = $stderrTask.GetAwaiter().GetResult() throw "Host exited with code $($hostProcess.ExitCode). $stdOut $errOut" } - Write-Output "Host started cleanly and ran for $($payload.startupDelayMs)ms." + if ($delayRemainingMs -lt $requiredDelayMs) { + throw "Host startup observation (${requiredDelayMs}ms) timed out after $($payload.timeoutSeconds)s with only $([Math]::Max($delayRemainingMs, 0))ms remaining." + } + Write-Output "Host started cleanly and ran for ${requiredDelayMs}ms." } } finally { if ($buildProcess) { diff --git a/skills/dotnet-docfx-digest/scripts/integration-example.ps1 b/skills/dotnet-docfx-digest/scripts/integration-example.ps1 index 14e5e7af..19c97292 100644 --- a/skills/dotnet-docfx-digest/scripts/integration-example.ps1 +++ b/skills/dotnet-docfx-digest/scripts/integration-example.ps1 @@ -240,15 +240,19 @@ try { } if (-not $probed) { throw "Host probe '$($payload.probeMethod) $($payload.probePath)' timed out after $($payload.timeoutSeconds)s. Last error: $lastError" } } else { - $delayRemainingMs = [int][Math]::Ceiling(($deadline - [DateTimeOffset]::UtcNow).TotalMilliseconds) - $sleepMs = [Math]::Min([int]$payload.startupDelayMs, [Math]::Max($delayRemainingMs, 0)) - if ($sleepMs -gt 0) { Start-Sleep -Milliseconds $sleepMs } + $requiredDelayMs = [Math]::Max([int]$payload.startupDelayMs, 0) + $delayRemainingMs = [int][Math]::Floor(($deadline - [DateTimeOffset]::UtcNow).TotalMilliseconds) + $sleepMs = [Math]::Min($requiredDelayMs, [Math]::Max($delayRemainingMs, 0)) + if ($sleepMs -gt 0) { $null = $hostProcess.WaitForExit($sleepMs) } if ($hostProcess.HasExited -and $hostProcess.ExitCode -ne 0) { $stdOut = $stdoutTask.GetAwaiter().GetResult() $errOut = $stderrTask.GetAwaiter().GetResult() throw "Host exited with code $($hostProcess.ExitCode). $stdOut $errOut" } - Write-Output "Host started cleanly and ran for $($payload.startupDelayMs)ms." + if ($delayRemainingMs -lt $requiredDelayMs) { + throw "Host startup observation (${requiredDelayMs}ms) timed out after $($payload.timeoutSeconds)s with only $([Math]::Max($delayRemainingMs, 0))ms remaining." + } + Write-Output "Host started cleanly and ran for ${requiredDelayMs}ms." } } finally { if ($buildProcess) { From 112d6d028e99dcf565ee3b772e814a0fcc9ebf74 Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sat, 21 Nov 2026 20:05:42 +0100 Subject: [PATCH 19/28] =?UTF-8?q?=E2=9C=85=20add=20empty-probe=20host=20st?= =?UTF-8?q?artup=20delay=20regression=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cover truncated startupDelayMs timeout failures, clean full-delay runs, and BuildRunActions.ps1 parity for empty-probePath host examples. --- .../scripts/test-run-actions.ps1 | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 b/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 index 17212cba..1cc7c3af 100644 --- a/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 +++ b/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 @@ -1400,6 +1400,79 @@ if (Test-Path -LiteralPath $childPidFile) { } } +# 10. Empty probePath must fail with timeout when full startupDelayMs cannot finish before deadline (and match BuildRunActions.ps1). +$runArgsPattern = "foreach (`$a in @('run','--no-build','-c','Release','--project',`$csprojPath)) { `$startInfo.ArgumentList.Add(`$a) }" +$truncatedDelayPair = New-HostExamplePair -Source 'Console.WriteLine("worker");' -Framework 'net10.0' -Sdk 'Microsoft.NET.Sdk.Worker' -ProbePath '' -TimeoutSeconds 3 -StartupDelayMs 10000 +if (-not $truncatedDelayPair.Native.Contains($runArgsPattern)) { + throw 'Host runner script no longer launches dotnet run via ProcessStartInfo.' +} +$truncatedDelayScript = $truncatedDelayPair.Native.Replace( + $buildArgsPattern, + "`$buildStartInfo.FileName = '$escapedPwsh'; foreach (`$a in @('-NoProfile', '-NonInteractive', '-Command', 'Start-Sleep -Milliseconds 500')) { `$buildStartInfo.ArgumentList.Add(`$a) }" +).Replace( + $runArgsPattern, + "`$startInfo.FileName = '$escapedPwsh'; foreach (`$a in @('-NoProfile', '-NonInteractive', '-Command', 'Start-Sleep -Seconds 30')) { `$startInfo.ArgumentList.Add(`$a) }" +) +$truncatedDelayScriptPath = Join-Path $work 'truncated-delay-host.ps1' +[IO.File]::WriteAllText($truncatedDelayScriptPath, $truncatedDelayScript, [Text.UTF8Encoding]::new($false)) +$swDelay = [Diagnostics.Stopwatch]::StartNew() +$truncatedDelayOut = & $pwshExe -NoProfile -NonInteractive -File $truncatedDelayScriptPath 2>&1 | Out-String +$truncatedDelayExit = $LASTEXITCODE +$swDelay.Stop() +if ($truncatedDelayExit -eq 0 -or $truncatedDelayOut -notlike '*Host startup observation (10000ms) timed out after 3s*' -or $truncatedDelayOut -like '*Host started cleanly*' -or $swDelay.Elapsed.TotalSeconds -ge 15) { + throw "Truncated startupDelayMs observation window did not fail with timeout (exit=$truncatedDelayExit, elapsed=$([Math]::Round($swDelay.Elapsed.TotalSeconds,2))s): $truncatedDelayOut" +} + +$fullDelayPair = New-HostExamplePair -Source 'Console.WriteLine("worker");' -Framework 'net10.0' -Sdk 'Microsoft.NET.Sdk.Worker' -ProbePath '' -TimeoutSeconds 5 -StartupDelayMs 200 +$fullDelayScript = $fullDelayPair.Native.Replace( + $buildArgsPattern, + "`$buildStartInfo.FileName = '$escapedPwsh'; foreach (`$a in @('-NoProfile', '-NonInteractive', '-Command', 'exit 0')) { `$buildStartInfo.ArgumentList.Add(`$a) }" +).Replace( + $runArgsPattern, + "`$startInfo.FileName = '$escapedPwsh'; foreach (`$a in @('-NoProfile', '-NonInteractive', '-Command', 'Start-Sleep -Seconds 30')) { `$startInfo.ArgumentList.Add(`$a) }" +) +$fullDelayScriptPath = Join-Path $work 'full-delay-host.ps1' +[IO.File]::WriteAllText($fullDelayScriptPath, $fullDelayScript, [Text.UTF8Encoding]::new($false)) +$fullDelayOut = & $pwshExe -NoProfile -NonInteractive -File $fullDelayScriptPath 2>&1 | Out-String +$fullDelayExit = $LASTEXITCODE +if ($fullDelayExit -ne 0 -or $fullDelayOut -notlike '*Host started cleanly and ran for 200ms.*') { + throw "Full startupDelayMs observation window did not succeed cleanly (exit=$fullDelayExit): $fullDelayOut" +} + +$emptyProbeDir = Join-Path $work 'empty-probe-parity' +$null = [IO.Directory]::CreateDirectory($emptyProbeDir) +$emptyProbeManifest = [ordered]@{ + schemaVersion = 1 + examples = @([ordered]@{ + id = 'abcdef0123456789abcdef01' + strategy = 'host' + source = 'Console.WriteLine("worker");' + image = 'codebeltnet/csrun:10' + transports = @('native', 'docker') + hostHarness = [ordered]@{ + sdk = 'Microsoft.NET.Sdk.Worker' + framework = 'net10.0' + probePath = '' + timeoutSeconds = 3 + startupDelayMs = 10000 + } + }) +} +$emptyProbeManifestPath = Join-Path $emptyProbeDir 'run-actions.manifest.json' +$emptyProbeOutRoot = Join-Path $emptyProbeDir 'run-actions' +[IO.File]::WriteAllText($emptyProbeManifestPath, ($emptyProbeManifest | ConvertTo-Json -Depth 10), [Text.UTF8Encoding]::new($false)) +$global:LASTEXITCODE = 0 +& (Join-Path $PSScriptRoot '../assets/BuildRunActions.ps1') -ManifestPath $emptyProbeManifestPath -OutputRoot $emptyProbeOutRoot | Out-Null +if ($LASTEXITCODE -ne 0) { throw 'BuildRunActions.ps1 failed for empty-probePath host parity check.' } +foreach ($t in @('native', 'docker')) { + $expectedProp = if ($t -eq 'native') { 'Native' } else { 'Docker' } + $expectedNorm = $truncatedDelayPair.$expectedProp.Replace("`r`n", "`n").TrimEnd("`n", "`r") + $actualNorm = ([IO.File]::ReadAllText((Join-Path $emptyProbeOutRoot "abcdef0123456789abcdef01/$t.ps1"))).Replace("`r`n", "`n").TrimEnd("`n", "`r") + if ($actualNorm -cne $expectedNorm) { + throw "BuildRunActions.ps1 drifted from integration-example.ps1 for empty-probePath host $t transport." + } +} + $global:LASTEXITCODE = 0 Write-Host "Run-action delivery passed: paired console, test, dependency-backed test, repository test and host harness; deterministic plan/explain, type-owned dependency resolution/preflight, validation-gated apply, multi-fence uid#ordinal identity, whitespace/semantic recipe check, atomic manifest preservation, --summary-json/--verify-changed/--verify --id, exact pins and source, coverage classifications, independent verification state, incremental assets, stale cleanup, standalone BuildRunActions.ps1 materialization and modern DocFX render. Fixture: $work" exit 0 From ecd68808548c11e4ce2d9aded9d7572264fc4e06 Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sun, 22 Nov 2026 01:25:56 +0100 Subject: [PATCH 20/28] =?UTF-8?q?=F0=9F=93=9D=20add=20tool=20observability?= =?UTF-8?q?=20and=20concurrency=20guidelines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Document repository-wide expectations for append-only stderr progress, bounded concurrency, atomic manifest writes, and deterministic test coverage. --- AGENTS.md | 9 +++++++++ README.md | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 1ddd2e5c..28abfd2d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -296,6 +296,15 @@ A .NET file-based app (`dotnet run --file .cs`) re-runs SDK, restore, and M - When the helper cannot prepare or locate a cached build it falls back to `dotnet run --file`, so behavior is never worse than the unoptimized path, only slower. - Do not reintroduce per-call `dotnet run --file` in a deterministic suite. Measure the suite before and after any change to how it invokes a file-based app. +## Complementary Tool Observability and Concurrency + +Repository and skill complementary tools (validators, generators, verifiers, audit/update runners, and other bundled scripts) must be observable during long runs and optimized for bounded concurrency wherever independent work would otherwise run slowly in sequence. + +- **Append-only `stderr` progress and heartbeats:** Emit append-only, plain-text progress lines (such as `[12/425] ... -> Verified (1.8s)`) and/or periodic heartbeats (for example every 10 seconds when an item or phase is still running) to `stderr` without cursor rewriting or ANSI-dependent formatting. Keep `stdout` strictly reserved for clean, parseable structured output (`--json`, `--summary-json`) so pipelines never break. Support `--quiet` and/or `--no-heartbeat` when callers need reduced `stderr` output. +- **Bounded concurrency by default:** Where work items are independent (multi-example verification, package/feed lookups, isolated builds, or multi-target audits), execute them concurrently with bounded parallelism rather than slow sequential loops. Derive sensible CPU-aware defaults with a hard upper bound (configurable via flags such as `--max-parallel`), and keep heavier shared resources such as Docker containers or external APIs conservatively capped (or separately configurable). +- **Thread-safe aggregation and atomic writes:** Isolate per-worker temp files and logs, collect results deterministically, and write shared outputs or manifests atomically (temp file + rename) once workers finish, preserving the last good state on failure. +- **Deterministic test coverage:** Cover bounded parallel execution, cache reuse where applicable, and clean `stdout` vs append-only `stderr` progress output in the tool's deterministic test suite. + ## Scaffold Invariants For repo-managed .NET scaffolding skills, preserve semantic versioning infrastructure unless you are replacing it end-to-end in the same change. diff --git a/README.md b/README.md index 3ed5f69d..3d99f496 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,7 @@ When repo-managed skills author Markdown, each prose paragraph and list item sta | [git-remote-pr](skills/git-remote-pr/SKILL.md) | Create or refresh a GitHub PR from the complete committed `base...head` changeset. Read-only preparation links a Markdown preview containing the exact proposed title and complete description, assignee, push need, and planned writes before approval; normal execution requires the exact displayed `approve APR-...` phrase and rechecks the write intent, approval-bound normalized review hash, and final preview hash. Material drift ends the approval transaction without regeneration; an explicit refresh starts a new workspace and approval ID. Same-request `yolo`/`auto` still shows the preview but skips the approval wait, executing only the just-presented ID. Existing PR bodies are rebuilt from the current final text diff into concise thematic summaries, with binary assets represented only by paths, statuses, and metadata. Case-insensitive theme coverage reports all mismatches together, and failures remain visible in noninteractive hosts. Draft corrections reuse one workspace. Untracked branches preview publication to GitHub origin (or the sole GitHub remote) under the current branch name, then establish tracking during execution. Dirty worktrees, ambiguous remotes, incomplete or mismatched tracking, divergent branches, and failed post-write checks block completion. Uses Git and `gh`, without Copilot or a browser. | | [dotnet-change-impact](skills/dotnet-change-impact/SKILL.md) | Classify .NET library or NuGet package changes and recommend the correct release bump — `Major`, `Minor`, or `Patch` — for both Semantic Versioning (`MAJOR.MINOR.PATCH`) and .NET assembly/file versioning (`Major.Minor.Build.Revision`), grounded in Microsoft's official .NET compatibility rules. Uses the current Git branch by default when no explicit change details or compare range are provided, resolving it against the upstream/default base branch with local read-only git state. Always returns structured behavioral/binary/source/design-time/backwards compatibility reasoning with the recommendation, even when the bump is clear. | | [dotnet-nuget-update](skills/dotnet-nuget-update/SKILL.md) | Audits and updates NuGet dependencies in .NET repositories with complete declaration accounting before any edit. It supports both `Directory.Packages.props` and project-level `PackageReference` versions, preserves XML structure and line endings, deduplicates package IDs, resolves independent live or offline flat-container version feeds with bounded parallel lookups and per-process memoization, uses bounded network timeouts, and merges results deterministically. Its single-process update runner keeps the audit, in-memory safe-update plan, and structural apply together for fast yolo passes. It keeps stable pins on stable candidates unless prerelease intent is explicit, and applies the TFM-band rule so conditional `net9`/`net10` package declarations stay within their matching major when that major is the compatibility signal rather than jumping to the newest overall release. Normal mode auto-applies revision/patch/minor and same-major prerelease updates, then batches majors for one approval decision; yolo mode applies only the auto classes and reports held majors without asking. | -| [dotnet-docfx-digest](skills/dotnet-docfx-digest/SKILL.md) | Create and maintain developer-friendly DocFX documentation for .NET public APIs, including repo-wide no-input audits that inspect source, tests, DocFX config, DocFX `build.content` and `build.overwrite` Markdown inputs, namespace pages, and availability includes before asking for clarification, while treating bare direct skill invocations as autonomous repo-wide runs rather than human-driven checkpoint sessions. Enforces the workflow with two bundled .NET 10 file-based scripts resolved from the loaded skill directory, falling back to the repo-managed source path only when present: `scripts/agents.cs` writes an idempotent, marker-bounded DocFX maintenance block into the repository `AGENTS.md`; `scripts/docfx.cs` is **fast and build-free by default** — it validates Markdown, prose, DocFX overwrite layout, namespace overview pages, `Extension Members` tables, decorated receiver signatures such as `IDecorator`, generic method displays such as `As`, purpose-first summaries, and required per-type/extension examples without invoking `dotnet`, `msbuild`, `docfx`, or `gh`, discovering the public API from existing DocFX YAML metadata or a conservative source scan and ending every run with a `[processes] dotnet=0 msbuild=0 docfx=0 gh=0` summary plus per-phase timings. Compilation and network access are strictly opt-in: `--validate-samples` compiles each C# sample in an isolated project while batching all sample projects into one temporary `.slnx` graph build with bounded MSBuild parallelism and scoped references, `--build-api-model` (alias `--strict-api-discovery`) does reflection-backed discovery from compiled metadata via `MetadataLoadContext` through a single scoped `.slnx` graph build, `--verify-docfx-build` runs the DocFX CLI in a temp copy, and `--search-examples` runs `gh` code search. Final verification adapts to available processors and memory, overlaps isolated DocFX work on high-capacity machines, uses a 30-minute child timeout, and emits 10-second `stderr` heartbeats with active phase, workload, runner count, PID, elapsed time, last-output age, and current child output while preserving machine-readable JSON on `stdout`. Honors a single DocFX metadata `TargetFramework` when `--framework` is omitted, collapses C# 14 extension-block compiler containers such as `$...` back to the authored outer static class in both fast DocFX-YAML discovery and build-backed reflection discovery, validates namespace fly-ins that explain the problem solved/when to use/where to start plus example fly-ins before every C# fence, the Codebelt namespace-and-type-folder overwrite layout (`.docfx/api/namespaces/**/*.md` and `.docfx/api/types/**/*.md` under `build.overwrite` only), keeps `--changed-only` validation scoped to affected docs and APIs while still including brand-new untracked overwrite Markdown, uses the root Codebelt `.snk` when present and falls back to `-p:SkipSignAssembly=true` for keyless strong-name build verification, drains child stdout and stderr concurrently to avoid verbose-build deadlocks, writes deterministic `--assessment-queue` Markdown work queues for noisy audits, preserves working URL references unless a verified HTTP 404 justifies removal, treats unexpected new repo-root or DocFX-workspace files that are not known `dotnet-docfx-digest` deliverables as blocking cleanup diagnostics, keeps assessment/manifests/captured output/helper scripts in temp or session storage instead of the target repository, requires a namespace-first pass across the active queue before net-new type/example authoring during full audits, keeps deeper `EXTENSION_METHOD_MISSING` and `EXTENSION_METHOD_SIGNATURE_MISSING` follow-on diagnostics in that same namespace-layer table-repair phase when they appear after `EXTENSION_SECTION_MISSING` drops, preserves existing BOM and line-ending state while flagging actual mojibake instead of creating encoding-only diffs, and leaves generated DocFX YAML metadata untouched unless `--clean-generated-metadata` is explicitly requested (which runs only after the API model is built, never deleting metadata the run relied on). Documents public API only, uses bundled reference docs for overwrite rules, workflow details, and script behavior, keeps authored API overwrite Markdown under `.docfx/api/namespaces/` and `.docfx/api/types/`, moves legacy authored `.docfx/api/*.md` overwrite files there instead of widening the glob to `api/**/*.md`, teaches namespace and API prose to orient newcomers around purpose instead of inventorying contents, prefers inline or small sibling-batch prose repairs over slow per-page worker fan-out, makes examples start from package-ID usage evidence before type/member-only searches and requires each example to introduce the consumer task before the code, allows multi-type Microsoft Learn-style scenario samples when they better explain the consumer workflow, keeps extension-method examples on readable declaring-class type pages under `.docfx/api/types/` instead of synthetic method-UID filenames or namespace pages that mix extra `uid:` / `example:` blocks into the overview, flags weak skip-compile reasons, requires deterministic `.docfx/skip-compile-allowlist.json` entries for any pre-existing approved skip waivers, treats newly introduced or unallowlisted skip markers as fail-level diagnostics that do not suppress compilation, establishes reflection-backed packets with `--build-api-model --project-manifest` before full-run authoring, forces mid-audit continuations to name that manifest or the sequential assessment/namespace-first fallback explicitly, requires those continuations to restate the fast `docfx.cs --json` rerun cadence, the exact final `docfx.cs --build-api-model --validate-samples --verify-docfx-build --json` gate, and the clean JSON completion contract instead of generic “verify later” prose, treats batch size only as rerun cadence rather than permission to stop, runs a completion repair loop that treats every diagnostic as active work regardless of age or volume, treats newly surfaced follow-on diagnostics as the next repair queue instead of a stop point, reruns packet discovery with `--build-api-model --project-manifest` when fast source-scan packets are unnamed or zero-project, falls back to sequential namespace-first or assessment work queue order when packet discovery is still unusable, treats `EXAMPLE_MISSING`, `EXAMPLE_LEAD_MISSING`, `EXAMPLE_ADVANCED_LEAD_MISSING`, `FAMILY_ANCHOR_EXAMPLE_MISSING`, `SAMPLE_STRUCTURE_INVALID`, `FAIL_NEW_SKIP_MARKER_INTRODUCED`, `SAMPLE_SKIP_NOT_ALLOWLISTED`, and `INTERIM_ARTIFACT_IN_WORKTREE` queues as core work rather than checkpoints or quality backlog, drives large example and lead queues through a concrete fast-path micro-loop (next item or next 3-5 items → rerun → continue), suppresses progress-table/checkpoint output until the completion contract is clean or a real external blocker is reported, treats premature completion-shaped handoffs as execution-protocol failures while the queue is still dirty, reserves the final `--build-api-model --validate-samples --verify-docfx-build` verification for the real end of the queue, exposes `summary.fullVerificationRan`, `summary.canClaimCompletion`, `summary.remainingWorkItems`, `summary.remainingDiagnosticsByCode`, `summary.newlyIntroducedSkipMarkers`, and `summary.interimArtifacts` as machine-readable final gates, reruns the fast `docfx.cs --json` after edits until the queue is empty, then runs the build-backed verification before completion, preserves manual edits and authored Markdown during cleanup, skips recursive generated-output cleanup when a target directory contains documentation or source files, and returns deterministic exit codes plus `--json` reports (including process counts, phase timings, warning counts, and skip-marker accounting) so CI can gate on real failures instead of AI claims. For opt-in run actions (`dotnet-docfx-digest csrun`), `scripts/generate-run-actions.ps1` provides deterministic Roslyn-backed classification (`--run-action-plan --json`, `--explain `), stable `#` multi-fence identity and recipe health checks (`--check-recipes --json` detecting `moved`, `duplicate-uid`, and `whitespace-only` vs `semantic` `orphaned` recipes), assembly/type-ownership dependency resolution and preflight (`--resolve-dependencies ` surfacing `missing-package` and `ambiguous-type` diagnostics), isolated temp-workspace candidate validation (`--validate-run-action `) gating `--apply-run-action `, first-class `mode: host` / `hostHarness` execution for blocking hosts, atomic manifest writes that preserve the last good manifest on verification failures such as `github-403-no-cached-engine`, and `--summary-json`, `--verify-changed`, `--verify --id `, and `--engine-path` offline verification with documented exit codes (`0` clean, `1` failure, `2` unresolved, `3` invalid arguments/selector). | +| [dotnet-docfx-digest](skills/dotnet-docfx-digest/SKILL.md) | Create and maintain developer-friendly DocFX documentation for .NET public APIs, including repo-wide no-input audits that inspect source, tests, DocFX config, DocFX `build.content` and `build.overwrite` Markdown inputs, namespace pages, and availability includes before asking for clarification, while treating bare direct skill invocations as autonomous repo-wide runs rather than human-driven checkpoint sessions. Enforces the workflow with two bundled .NET 10 file-based scripts resolved from the loaded skill directory, falling back to the repo-managed source path only when present: `scripts/agents.cs` writes an idempotent, marker-bounded DocFX maintenance block into the repository `AGENTS.md`; `scripts/docfx.cs` is **fast and build-free by default** — it validates Markdown, prose, DocFX overwrite layout, namespace overview pages, `Extension Members` tables, decorated receiver signatures such as `IDecorator`, generic method displays such as `As`, purpose-first summaries, and required per-type/extension examples without invoking `dotnet`, `msbuild`, `docfx`, or `gh`, discovering the public API from existing DocFX YAML metadata or a conservative source scan and ending every run with a `[processes] dotnet=0 msbuild=0 docfx=0 gh=0` summary plus per-phase timings. Compilation and network access are strictly opt-in: `--validate-samples` compiles each C# sample in an isolated project while batching all sample projects into one temporary `.slnx` graph build with bounded MSBuild parallelism and scoped references, `--build-api-model` (alias `--strict-api-discovery`) does reflection-backed discovery from compiled metadata via `MetadataLoadContext` through a single scoped `.slnx` graph build, `--verify-docfx-build` runs the DocFX CLI in a temp copy, and `--search-examples` runs `gh` code search. Final verification adapts to available processors and memory, overlaps isolated DocFX work on high-capacity machines, uses a 30-minute child timeout, and emits 10-second `stderr` heartbeats with active phase, workload, runner count, PID, elapsed time, last-output age, and current child output while preserving machine-readable JSON on `stdout`. Honors a single DocFX metadata `TargetFramework` when `--framework` is omitted, collapses C# 14 extension-block compiler containers such as `$...` back to the authored outer static class in both fast DocFX-YAML discovery and build-backed reflection discovery, validates namespace fly-ins that explain the problem solved/when to use/where to start plus example fly-ins before every C# fence, the Codebelt namespace-and-type-folder overwrite layout (`.docfx/api/namespaces/**/*.md` and `.docfx/api/types/**/*.md` under `build.overwrite` only), keeps `--changed-only` validation scoped to affected docs and APIs while still including brand-new untracked overwrite Markdown, uses the root Codebelt `.snk` when present and falls back to `-p:SkipSignAssembly=true` for keyless strong-name build verification, drains child stdout and stderr concurrently to avoid verbose-build deadlocks, writes deterministic `--assessment-queue` Markdown work queues for noisy audits, preserves working URL references unless a verified HTTP 404 justifies removal, treats unexpected new repo-root or DocFX-workspace files that are not known `dotnet-docfx-digest` deliverables as blocking cleanup diagnostics, keeps assessment/manifests/captured output/helper scripts in temp or session storage instead of the target repository, requires a namespace-first pass across the active queue before net-new type/example authoring during full audits, keeps deeper `EXTENSION_METHOD_MISSING` and `EXTENSION_METHOD_SIGNATURE_MISSING` follow-on diagnostics in that same namespace-layer table-repair phase when they appear after `EXTENSION_SECTION_MISSING` drops, preserves existing BOM and line-ending state while flagging actual mojibake instead of creating encoding-only diffs, and leaves generated DocFX YAML metadata untouched unless `--clean-generated-metadata` is explicitly requested (which runs only after the API model is built, never deleting metadata the run relied on). Documents public API only, uses bundled reference docs for overwrite rules, workflow details, and script behavior, keeps authored API overwrite Markdown under `.docfx/api/namespaces/` and `.docfx/api/types/`, moves legacy authored `.docfx/api/*.md` overwrite files there instead of widening the glob to `api/**/*.md`, teaches namespace and API prose to orient newcomers around purpose instead of inventorying contents, prefers inline or small sibling-batch prose repairs over slow per-page worker fan-out, makes examples start from package-ID usage evidence before type/member-only searches and requires each example to introduce the consumer task before the code, allows multi-type Microsoft Learn-style scenario samples when they better explain the consumer workflow, keeps extension-method examples on readable declaring-class type pages under `.docfx/api/types/` instead of synthetic method-UID filenames or namespace pages that mix extra `uid:` / `example:` blocks into the overview, flags weak skip-compile reasons, requires deterministic `.docfx/skip-compile-allowlist.json` entries for any pre-existing approved skip waivers, treats newly introduced or unallowlisted skip markers as fail-level diagnostics that do not suppress compilation, establishes reflection-backed packets with `--build-api-model --project-manifest` before full-run authoring, forces mid-audit continuations to name that manifest or the sequential assessment/namespace-first fallback explicitly, requires those continuations to restate the fast `docfx.cs --json` rerun cadence, the exact final `docfx.cs --build-api-model --validate-samples --verify-docfx-build --json` gate, and the clean JSON completion contract instead of generic “verify later” prose, treats batch size only as rerun cadence rather than permission to stop, runs a completion repair loop that treats every diagnostic as active work regardless of age or volume, treats newly surfaced follow-on diagnostics as the next repair queue instead of a stop point, reruns packet discovery with `--build-api-model --project-manifest` when fast source-scan packets are unnamed or zero-project, falls back to sequential namespace-first or assessment work queue order when packet discovery is still unusable, treats `EXAMPLE_MISSING`, `EXAMPLE_LEAD_MISSING`, `EXAMPLE_ADVANCED_LEAD_MISSING`, `FAMILY_ANCHOR_EXAMPLE_MISSING`, `SAMPLE_STRUCTURE_INVALID`, `FAIL_NEW_SKIP_MARKER_INTRODUCED`, `SAMPLE_SKIP_NOT_ALLOWLISTED`, and `INTERIM_ARTIFACT_IN_WORKTREE` queues as core work rather than checkpoints or quality backlog, drives large example and lead queues through a concrete fast-path micro-loop (next item or next 3-5 items → rerun → continue), suppresses progress-table/checkpoint output until the completion contract is clean or a real external blocker is reported, treats premature completion-shaped handoffs as execution-protocol failures while the queue is still dirty, reserves the final `--build-api-model --validate-samples --verify-docfx-build` verification for the real end of the queue, exposes `summary.fullVerificationRan`, `summary.canClaimCompletion`, `summary.remainingWorkItems`, `summary.remainingDiagnosticsByCode`, `summary.newlyIntroducedSkipMarkers`, and `summary.interimArtifacts` as machine-readable final gates, reruns the fast `docfx.cs --json` after edits until the queue is empty, then runs the build-backed verification before completion, preserves manual edits and authored Markdown during cleanup, skips recursive generated-output cleanup when a target directory contains documentation or source files, and returns deterministic exit codes plus `--json` reports (including process counts, phase timings, warning counts, and skip-marker accounting) so CI can gate on real failures instead of AI claims. For opt-in run actions (`dotnet-docfx-digest csrun`), `scripts/generate-run-actions.ps1` provides deterministic Roslyn-backed classification (`--run-action-plan --json`, `--explain `), stable `#` multi-fence identity and recipe health checks (`--check-recipes --json` detecting `moved`, `duplicate-uid`, and `whitespace-only` vs `semantic` `orphaned` recipes), assembly/type-ownership dependency resolution and preflight (`--resolve-dependencies ` surfacing `missing-package` and `ambiguous-type` diagnostics), isolated temp-workspace candidate validation (`--validate-run-action `) gating `--apply-run-action `, first-class `mode: host` / `hostHarness` execution for blocking hosts, atomic manifest writes that preserve the last good manifest on verification failures such as `github-403-no-cached-engine`, bounded parallel verification (`--max-parallel` / `--max-docker-parallel` with conservative Docker concurrency), append-only `stderr` progress and 10-second heartbeat logging (`--no-heartbeat` / `--quiet`) keeping `--summary-json` on `stdout` clean, and `--verify-changed`, `--verify --id `, and `--engine-path` offline verification with documented exit codes (`0` clean, `1` failure, `2` unresolved, `3` invalid arguments/selector). | | [dotnet-test](skills/dotnet-test/SKILL.md) | Moves xUnit projects onto Codebelt's entrypoint-owned test hosts, replacing Microsoft's ASP.NET-only `WebApplicationFactory`—and the hand-rolled `HostBuilder` that console and worker tests reach for because Microsoft ships no equivalent—with one family of abstractions where the application's own entry point owns startup. Invocation is the request: it inspects and refactors immediately instead of opening with a menu or a questionnaire. It deterministically inspects project roles, target frameworks, xUnit generation, package ownership, inheritance, application entry points—including Bootstrapper `MinimalConsoleProgram`, `MinimalWorkerProgram`, and `MinimalWebProgram` hosts—and every selected `WebApplicationFactory` usage; classifies ordinary unit, ASP.NET Core functional, and console/worker functional tests; modernizes xUnit v2 projects to xUnit v3 plus Microsoft Testing Platform without moving package ownership or changing frameworks; and resolves current stable compatible packages through NuGet-backed isolated compatibility-project restores, including the selected combined package set. Focused web tests use `WebApplicationTestFactory` with an explicit entrypoint-owned `ManagedWebApplicationFixture`, directly or through a narrow `Test`-derived harness; shared web fixtures use `WebApplicationTest` with `ManagedWebApplicationFixture`; focused console/worker tests use `ApplicationTestFactory` with `ManagedApplicationFixture`; and shared non-web fixtures use `ApplicationTest` with `ManagedApplicationFixture`. Deprecated blocking fixtures are migration inputs only and are never emitted because they are scheduled for removal. Functional migrations fail closed unless the chosen Codebelt pattern and managed fixture are present, the legacy or blocking fixture is absent, and test code does not reconstruct the production composition root with its own `WebApplication`, `TestServer`, or `HostBuilder`. Migrations preserve entrypoint-owned startup, host configuration, lazy start, clients, services, configuration, sync/async disposal, isolation, and existing test names, while fresh bootstraps add source-grounded behavior tests. Non-web tests stay in-process and require a resolvable Generic Host; test-only scope reports the exact production adaptation instead of silently rewriting startup or launching a process. | | [dotnet-csrun](skills/dotnet-csrun/SKILL.md) | Creates, verifies, repairs, and audits C# examples and genuine xUnit v3 tests, with paired Native and Docker commands from one manifest, exact package pins, and source-linked execution evidence. Published commands verify and run the latest stable csrun release from GitHub, while skill-driven verification and multi-example sweeps resolve and cache the SHA-256-verified `csrun.ps1` locally once (`Resolve-CsrunEngine` + `-EnginePath`) with ETag revalidation and rate-limit fallback to avoid exhausting GitHub's unauthenticated REST quota. | | [dotnet-benchmark](skills/dotnet-benchmark/SKILL.md) | Discovers, prioritizes, and authors trustworthy BenchmarkDotNet experiments for a .NET type following codebelt conventions and using the `Codebelt.Extensions.BenchmarkDotNet.Console` runner. It inspects implementation code, call sites, tests, existing benchmarks, and available profiles instead of benchmarking every public member; ranks likely high-impact operations; selects representative typical, boundary, scaling, and adverse cases; and rejects external-I/O or service-level questions that need profiling, macrobenchmarks, or load tests. It creates fair current-versus-candidate comparisons only when observable work is equivalent, uses baseline-free single-operation characterization when no honest comparator exists, prevents unrelated construction/formatting/equality/hash ratios, requires exact per-case correctness oracles plus a semantic preflight for truthful workload labels, hard-gates interpretation on a complete valid BenchmarkDotNet summary, preserves workload invariants such as selectivity and hit/miss ratios as sizes scale, distinguishes deferred pipeline creation from terminal/materialization work, and performs Release build, discovery listing, and dry execution before any explicit full run. Explicit `yolo` mode auto-accepts routine repo-derived defaults and the proposed plan, then proceeds through build/list/dry validation without confirmation churn; only a separate explicit human instruction can start a full performance run. Its runner preflight recognizes the standard Slim/runtime setup and explains when `SkipBenchmarksWithReports = true` plus a matching `reports/tuning/` artifact deliberately filters a benchmark, preventing needless class renames, disassembly, or tool thrash; after the first valid full result it stops unless deeper diagnostics could change a real engineering decision. Harness setup remains adaptive: it detects `.slnx`/`.sln`, CPM, existing `tuning/` projects, and a reusable `tooling/` runner, onboards only missing pieces, resolves package versions dynamically, and keeps the benchmark class in the SUT namespace. | From f1865b42148329a7beaa3fff9fb71bbb51288293 Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sun, 22 Nov 2026 01:25:56 +0100 Subject: [PATCH 21/28] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20add=20bounded=20para?= =?UTF-8?q?llel=20verification=20and=20progress=20logging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Speed up DocFX run-action verification with bounded worker parallelism, append-only stderr progress and heartbeat output, and atomic manifest preservation on failure. --- .../scripts/generate-run-actions.ps1 | 288 ++++++++++++++++-- .../scripts/test-run-actions.ps1 | 150 ++++++++- 2 files changed, 408 insertions(+), 30 deletions(-) diff --git a/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 b/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 index 088f8d49..50a1e456 100644 --- a/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 +++ b/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 @@ -19,10 +19,17 @@ param( [switch] $VerifyChanged, [Alias('Id')][string[]] $TargetId, [int] $TimeoutSeconds = 60, + [int] $MaxParallel = 0, + [int] $MaxDockerParallel = 0, + [switch] $Quiet, + [switch] $NoHeartbeat, + [int] $HeartbeatSeconds = 10, [Parameter(ValueFromRemainingArguments = $true)][string[]] $CliArgs ) $ErrorActionPreference = 'Stop' $PSNativeCommandUseErrorActionPreference = $false +$maxParallelExplicit = $PSBoundParameters.ContainsKey('MaxParallel') +$maxDockerParallelExplicit = $PSBoundParameters.ContainsKey('MaxDockerParallel') . (Join-Path $PSScriptRoot 'integration-example.ps1') $helpers = Join-Path $PSScriptRoot '../../dotnet-csrun/scripts/sample-tools.ps1' if (-not (Test-Path $helpers)) { throw "Install dotnet-csrun beside this skill: $helpers" } @@ -100,6 +107,34 @@ if ($CliArgs -and $CliArgs.Count -gt 0) { if (($i + 1) -ge $CliArgs.Count) { [Console]::Error.WriteLine('Missing value for --timeout-seconds'); exit 3 } $TimeoutSeconds = [int]$CliArgs[++$i] } + '--max-parallel' { + if (($i + 1) -ge $CliArgs.Count) { [Console]::Error.WriteLine('Missing value for --max-parallel'); exit 3 } + $parsedMaxParallel = 0 + if (-not [int]::TryParse([string]$CliArgs[++$i], [ref]$parsedMaxParallel)) { + [Console]::Error.WriteLine('--max-parallel must be an integer between 1 and 64.'); exit 3 + } + $MaxParallel = $parsedMaxParallel + $maxParallelExplicit = $true + } + '--max-docker-parallel' { + if (($i + 1) -ge $CliArgs.Count) { [Console]::Error.WriteLine('Missing value for --max-docker-parallel'); exit 3 } + $parsedMaxDocker = 0 + if (-not [int]::TryParse([string]$CliArgs[++$i], [ref]$parsedMaxDocker)) { + [Console]::Error.WriteLine('--max-docker-parallel must be an integer between 1 and 16.'); exit 3 + } + $MaxDockerParallel = $parsedMaxDocker + $maxDockerParallelExplicit = $true + } + '--quiet' { $Quiet = $true } + '--no-heartbeat' { $NoHeartbeat = $true } + '--heartbeat-seconds' { + if (($i + 1) -ge $CliArgs.Count) { [Console]::Error.WriteLine('Missing value for --heartbeat-seconds'); exit 3 } + $parsedHb = 0 + if (-not [int]::TryParse([string]$CliArgs[++$i], [ref]$parsedHb)) { + [Console]::Error.WriteLine('--heartbeat-seconds must be an integer between 1 and 300.'); exit 3 + } + $HeartbeatSeconds = $parsedHb + } default { [Console]::Error.WriteLine("Unknown argument: $arg") exit 3 @@ -111,6 +146,21 @@ if ($CliArgs -and $CliArgs.Count -gt 0) { if ($VerifyChanged -and $Verify -eq 'None') { $Verify = 'Native' } if (-not $RepoRoot) { [Console]::Error.WriteLine('Missing required parameter: -RepoRoot / --repo-root'); exit 3 } if ($TimeoutSeconds -lt 3 -or $TimeoutSeconds -gt 600) { [Console]::Error.WriteLine('--timeout-seconds must be between 3 and 600.'); exit 3 } +if ($maxParallelExplicit -and ($MaxParallel -lt 1 -or $MaxParallel -gt 64)) { [Console]::Error.WriteLine('--max-parallel must be between 1 and 64.'); exit 3 } +if ($maxDockerParallelExplicit -and ($MaxDockerParallel -lt 1 -or $MaxDockerParallel -gt 16)) { [Console]::Error.WriteLine('--max-docker-parallel must be between 1 and 16.'); exit 3 } +if ($HeartbeatSeconds -lt 1 -or $HeartbeatSeconds -gt 300) { [Console]::Error.WriteLine('--heartbeat-seconds must be between 1 and 300.'); exit 3 } + +$cpuCount = [Math]::Max(1, [Environment]::ProcessorCount) +$defaultNativeParallel = [Math]::Max(1, [Math]::Min($cpuCount, 8)) +$effectiveNativeParallel = if ($maxParallelExplicit) { $MaxParallel } else { $defaultNativeParallel } +$defaultDockerCap = [Math]::Max(1, [Math]::Min($effectiveNativeParallel, 2)) +$effectiveDockerParallel = if ($maxDockerParallelExplicit) { + $MaxDockerParallel +} elseif ($maxParallelExplicit -and $Verify -eq 'Docker') { + $MaxParallel +} else { + $defaultDockerCap +} function Hash([string] $Text) { [Convert]::ToHexString([Security.Cryptography.SHA256]::HashData([Text.Encoding]::UTF8.GetBytes($Text))) } function Normalize([string] $Text) { $Text.Replace("`r`n", "`n").TrimEnd("`n", "`r") } @@ -1479,7 +1529,8 @@ if ($idList.Count -gt 0) { } $toolHash = Hash ((Get-Content $PSCommandPath -Raw) + (Get-Content (Join-Path $PSScriptRoot 'docfx.cs') -Raw) + (Get-Content (Join-Path $PSScriptRoot 'integration-example.ps1') -Raw) + (Get-Content $helpers -Raw) + $script:Csrun021Asset + $script:Csrun021Sha256 + $script:CsrunTestVerificationTemplate) -$results = [Collections.Generic.List[object]]::new() +$resultMaps = [Collections.Generic.List[object]]::new() +$pendingVerifications = [Collections.Generic.List[object]]::new() $manifestEntries = [Collections.Generic.List[object]]::new() $associations = [hashtable]::new([StringComparer]::Ordinal) $pages = @((@($inventory.examples.file) + @($inventory.associatedPages)) | Where-Object { $_ } | Sort-Object -CaseSensitive -Unique) @@ -1778,33 +1829,18 @@ foreach ($exObj in $normalizedExamples) { } $executionScript = Normalize $verifyPair.$transport } - $runName = "docfx-run-$id-$transport-" + [guid]::NewGuid().ToString('N') - $tempScript = Join-Path $evidenceDirectory "$runName.ps1" - $log = Join-Path $evidenceDirectory "$runName.log" - try { - [IO.File]::WriteAllText($tempScript, $executionScript, [Text.UTF8Encoding]::new($false)) - [IO.File]::WriteAllText($log, '') - & pwsh -NoProfile -NonInteractive -File $tempScript *> $log - $verificationExecuted++ - $result[$transport] = if ($LASTEXITCODE -eq 0) { 'Verified' } else { 'Failed' } - if ($result[$transport] -eq 'Failed') { $verificationFailedCount++ } - $result["${transport}Evidence"] = $log - $pendingEvidence = Join-Path $evidenceDirectory "$runName.tmp" - try { - $evidence = [ordered]@{ state = $result[$transport]; log = "$runName.log" } - if ($strategy -eq 'standalone' -and $resolvedVerificationEngine) { - $evidence.engineSha256 = $resolvedVerificationEngine.Sha256 - if ($resolvedVerificationEngine.Tag) { $evidence.engineTag = $resolvedVerificationEngine.Tag } - } - [IO.File]::WriteAllText($pendingEvidence, ($evidence | ConvertTo-Json -Compress)) - if (-not $IsWindows) { & chmod 600 -- $pendingEvidence $log } - [IO.File]::Move($pendingEvidence, $evidencePath, $true) - } finally { - [IO.File]::Delete($pendingEvidence) - } - } finally { - if (Test-Path -LiteralPath $tempScript) { Remove-Item -LiteralPath $tempScript -Force } - } + $pendingVerifications.Add([pscustomobject]@{ + ResultIndex = $resultMaps.Count + Id = $id + ExampleId = $exObj.exampleId + Transport = $transport + TransportLabel = if ($transport -eq 'native') { 'Native' } else { 'Docker' } + Strategy = $strategy + ExecutionScript = $executionScript + EvidencePath = $evidencePath + EngineSha256 = if ($strategy -eq 'standalone' -and $resolvedVerificationEngine) { $resolvedVerificationEngine.Sha256 } else { $null } + EngineTag = if ($strategy -eq 'standalone' -and $resolvedVerificationEngine) { $resolvedVerificationEngine.Tag } else { $null } + }) } elseif ($cachedState) { $result[$transport] = $cachedState $result["${transport}Evidence"] = $cachedLog @@ -1829,9 +1865,201 @@ foreach ($exObj in $normalizedExamples) { if (-not $associations.ContainsKey($example.file)) { $associations[$example.file] = @{} } $associations[$example.file][[int]$example.startLine] = "`n$link`n" } catch { $result.status='failed'; $result.reason=$_.Exception.Message } - finally { $results.Add([pscustomobject]$result) } + finally { $resultMaps.Add($result) } +} + +if ($pendingVerifications.Count -gt 0) { + $pwshCmd = Get-Command pwsh -ErrorAction SilentlyContinue | Select-Object -First 1 + $isMockedPwsh = ($null -ne $pwshCmd -and $pwshCmd.CommandType -eq 'Function') + $pwshExe = if (-not $isMockedPwsh) { + (Get-Command pwsh -CommandType Application -ErrorAction Stop | Select-Object -First 1).Source + } else { $null } + + $totalPending = $pendingVerifications.Count + $verifySw = [Diagnostics.Stopwatch]::StartNew() + $progressLock = [object]::new() + $progressState = [hashtable]::Synchronized(@{ + Completed = 0 + InFlight = 0 + Verified = 0 + Failed = 0 + LastActivityUtc = [DateTimeOffset]::UtcNow + }) + + $nativeBatch = @($pendingVerifications | Where-Object { $_.Transport -eq 'native' }) + $dockerBatch = @($pendingVerifications | Where-Object { $_.Transport -eq 'docker' }) + $verifyBatches = [Collections.Generic.List[object]]::new() + if ($nativeBatch.Count -gt 0) { + $verifyBatches.Add([pscustomobject]@{ Transport = 'native'; Items = $nativeBatch; ThrottleLimit = $effectiveNativeParallel }) + } + if ($dockerBatch.Count -gt 0) { + $verifyBatches.Add([pscustomobject]@{ Transport = 'docker'; Items = $dockerBatch; ThrottleLimit = $effectiveDockerParallel }) + } + + foreach ($batch in $verifyBatches) { + $batchResults = @() + if ($isMockedPwsh) { + $seqList = [Collections.Generic.List[object]]::new() + foreach ($item in $batch.Items) { + $itemSw = [Diagnostics.Stopwatch]::StartNew() + $runName = "docfx-run-$($item.Id)-$($item.Transport)-" + [guid]::NewGuid().ToString('N') + $tempScript = Join-Path $evidenceDirectory "$runName.ps1" + $log = Join-Path $evidenceDirectory "$runName.log" + $state = 'Failed' + $workerError = $null + try { + [IO.File]::WriteAllText($tempScript, $item.ExecutionScript, [Text.UTF8Encoding]::new($false)) + [IO.File]::WriteAllText($log, '') + & pwsh -NoProfile -NonInteractive -File $tempScript *> $log + $state = if ($LASTEXITCODE -eq 0) { 'Verified' } else { 'Failed' } + $pendingEvidence = Join-Path $evidenceDirectory "$runName.tmp" + try { + $evidence = [ordered]@{ state = $state; log = "$runName.log" } + if ($item.Strategy -eq 'standalone' -and $item.EngineSha256) { + $evidence.engineSha256 = $item.EngineSha256 + if ($item.EngineTag) { $evidence.engineTag = $item.EngineTag } + } + [IO.File]::WriteAllText($pendingEvidence, ($evidence | ConvertTo-Json -Compress)) + if (-not $IsWindows) { & chmod 600 -- $pendingEvidence $log } + [IO.File]::Move($pendingEvidence, $item.EvidencePath, $true) + } finally { + if (Test-Path -LiteralPath $pendingEvidence) { [IO.File]::Delete($pendingEvidence) } + } + } catch { + $state = 'Failed' + $workerError = $_.Exception.Message + } finally { + if (Test-Path -LiteralPath $tempScript) { Remove-Item -LiteralPath $tempScript -Force -ErrorAction SilentlyContinue } + $itemSw.Stop() + $elapsedSec = $itemSw.Elapsed.TotalSeconds + $progressState.Completed++ + if ($state -eq 'Verified') { $progressState.Verified++ } else { $progressState.Failed++ } + $progressState.LastActivityUtc = [DateTimeOffset]::UtcNow + if (-not $Quiet) { + $elapsedText = $elapsedSec.ToString('F1', [Globalization.CultureInfo]::InvariantCulture) + [Console]::Error.WriteLine("[$($progressState.Completed)/$totalPending] Verifying $($item.ExampleId) ($($item.TransportLabel)) -> $state (${elapsedText}s)") + } + } + $seqList.Add([pscustomobject]@{ + ResultIndex = $item.ResultIndex + Transport = $item.Transport + State = $state + EvidencePath = $log + ElapsedSeconds = [Math]::Round($elapsedSec, 3) + Error = $workerError + }) + } + $batchResults = @($seqList) + } else { + $job = $batch.Items | ForEach-Object -ThrottleLimit $batch.ThrottleLimit -AsJob -Parallel { + $ErrorActionPreference = 'Stop' + $PSNativeCommandUseErrorActionPreference = $false + $item = $_ + $lockRef = $using:progressLock + $stateRef = $using:progressState + $evidenceDirRef = $using:evidenceDirectory + $pwshExeRef = $using:pwshExe + $isWinRef = $using:IsWindows + $quietRef = $using:Quiet + $totalPendingRef = $using:totalPending + $itemSw = [Diagnostics.Stopwatch]::StartNew() + [Threading.Monitor]::Enter($lockRef) + try { $stateRef.InFlight++ } finally { [Threading.Monitor]::Exit($lockRef) } + + $runName = "docfx-run-$($item.Id)-$($item.Transport)-" + [guid]::NewGuid().ToString('N') + $tempScript = Join-Path $evidenceDirRef "$runName.ps1" + $log = Join-Path $evidenceDirRef "$runName.log" + $state = 'Failed' + $workerError = $null + try { + [IO.File]::WriteAllText($tempScript, $item.ExecutionScript, [Text.UTF8Encoding]::new($false)) + [IO.File]::WriteAllText($log, '') + & $pwshExeRef -NoProfile -NonInteractive -File $tempScript *> $log + $state = if ($LASTEXITCODE -eq 0) { 'Verified' } else { 'Failed' } + $pendingEvidence = Join-Path $evidenceDirRef "$runName.tmp" + try { + $evidence = [ordered]@{ state = $state; log = "$runName.log" } + if ($item.Strategy -eq 'standalone' -and $item.EngineSha256) { + $evidence.engineSha256 = $item.EngineSha256 + if ($item.EngineTag) { $evidence.engineTag = $item.EngineTag } + } + [IO.File]::WriteAllText($pendingEvidence, ($evidence | ConvertTo-Json -Compress)) + if (-not $isWinRef) { & chmod 600 -- $pendingEvidence $log } + [IO.File]::Move($pendingEvidence, $item.EvidencePath, $true) + } finally { + if (Test-Path -LiteralPath $pendingEvidence) { [IO.File]::Delete($pendingEvidence) } + } + } catch { + $state = 'Failed' + $workerError = $_.Exception.Message + } finally { + if (Test-Path -LiteralPath $tempScript) { Remove-Item -LiteralPath $tempScript -Force -ErrorAction SilentlyContinue } + $itemSw.Stop() + $elapsedSec = $itemSw.Elapsed.TotalSeconds + [Threading.Monitor]::Enter($lockRef) + try { + $stateRef.InFlight-- + $stateRef.Completed++ + if ($state -eq 'Verified') { $stateRef.Verified++ } else { $stateRef.Failed++ } + $stateRef.LastActivityUtc = [DateTimeOffset]::UtcNow + if (-not $quietRef) { + $elapsedText = $elapsedSec.ToString('F1', [Globalization.CultureInfo]::InvariantCulture) + [Console]::Error.WriteLine("[$($stateRef.Completed)/$totalPendingRef] Verifying $($item.ExampleId) ($($item.TransportLabel)) -> $state (${elapsedText}s)") + } + } finally { + [Threading.Monitor]::Exit($lockRef) + } + } + [pscustomobject]@{ + ResultIndex = $item.ResultIndex + Transport = $item.Transport + State = $state + EvidencePath = $log + ElapsedSeconds = [Math]::Round($elapsedSec, 3) + Error = $workerError + } + } + try { + while ($job.State -in @('NotStarted', 'Running')) { + Start-Sleep -Milliseconds 250 + if (-not $Quiet -and -not $NoHeartbeat) { + $nowUtc = [DateTimeOffset]::UtcNow + [Threading.Monitor]::Enter($progressLock) + try { + if (($nowUtc - $progressState.LastActivityUtc).TotalSeconds -ge $HeartbeatSeconds) { + $totalElapsed = $verifySw.Elapsed.TotalSeconds.ToString('F1', [Globalization.CultureInfo]::InvariantCulture) + [Console]::Error.WriteLine("[heartbeat] Verification progress: $($progressState.Completed)/$totalPending completed ($($progressState.InFlight) running, $($progressState.Verified) verified, $($progressState.Failed) failed, ${totalElapsed}s elapsed)") + $progressState.LastActivityUtc = $nowUtc + } + } finally { + [Threading.Monitor]::Exit($progressLock) + } + } + } + $batchResults = @(Receive-Job -Job $job -Wait) + } finally { + Remove-Job -Job $job -Force -ErrorAction SilentlyContinue + } + } + + foreach ($vr in $batchResults) { + if ($null -eq $vr) { continue } + $targetResult = $resultMaps[$vr.ResultIndex] + $targetResult[$vr.Transport] = $vr.State + $targetResult["$($vr.Transport)Evidence"] = $vr.EvidencePath + if ($vr.Error -and -not $targetResult.reason) { + $targetResult.reason = $vr.Error + } + $verificationExecuted++ + if ($vr.State -eq 'Failed') { $verificationFailedCount++ } + } + } + $verifySw.Stop() } +$results = [Collections.Generic.List[object]]::new() +foreach ($rm in $resultMaps) { $results.Add([pscustomobject]$rm) } + $hasHardFailure = (@($results | Where-Object { $_.status -eq 'failed' -or $_.native -eq 'Failed' -or $_.docker -eq 'Failed' }).Count -gt 0) $skipMutations = ($Verify -ne 'None' -and $hasHardFailure) # Never replace or destroy a previous manifest or page associations as a side effect of any hard verification failure. @@ -2180,6 +2408,8 @@ if ($SummaryJson) { executed = $verificationExecuted reused = $verificationReused failed = $verificationFailedCount + maxParallel = $effectiveNativeParallel + maxDockerParallel = $effectiveDockerParallel } examples = @($results) } diff --git a/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 b/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 index 1cc7c3af..37ee22ba 100644 --- a/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 +++ b/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 @@ -1473,6 +1473,154 @@ foreach ($t in @('native', 'docker')) { } } +# 11. Bounded parallel verification, append-only stderr progress/heartbeat, --no-heartbeat / --quiet, --verify-changed reuse, and atomic manifest preservation on parallel failure. +$paraRoot = Join-Path $work 'parallel-verify' +$null = [IO.Directory]::CreateDirectory("$paraRoot/docs") +[IO.File]::WriteAllText("$paraRoot/docfx.json", (@{ + build = @{ + content = @(@{ files = @('docs/*.md') }) + template = @('default', 'modern') + dest = '_site' + } +} | ConvertTo-Json -Depth 10)) +foreach ($label in @('One', 'Two', 'Three', 'Four')) { + $md = "---`nuid: Para.$label`n---`n# Parallel $label`n`n``````csharp`nSystem.Console.WriteLine(`"para-$label`");`n```````n" + [IO.File]::WriteAllText("$paraRoot/docs/$label.md", $md) +} +$paraTraceDir = Join-Path $work 'parallel-trace' +$null = [IO.Directory]::CreateDirectory($paraTraceDir) +$escapedTraceDir = $paraTraceDir.Replace("'", "''") +$paraEngine = Join-Path $work 'parallel-csrun.ps1' +[IO.File]::WriteAllText($paraEngine, @" +param([string]`$ManifestJson) +`$startTicks = [DateTimeOffset]::UtcNow.UtcTicks +Start-Sleep -Milliseconds 400 +`$endTicks = [DateTimeOffset]::UtcNow.UtcTicks +`$traceFile = Join-Path '$escapedTraceDir' ([guid]::NewGuid().ToString('N') + '.txt') +[IO.File]::WriteAllText(`$traceFile, "`$startTicks|`$endTicks", [Text.UTF8Encoding]::new(`$false)) +[Console]::Write('ok') +"@, [Text.UTF8Encoding]::new($false)) + +function Invoke-GeneratorSubprocess([string[]] $ExtraArgs) { + $psi = [Diagnostics.ProcessStartInfo]::new($pwshExe) + foreach ($a in @('-NoProfile', '-NonInteractive', '-File', $generator, '-RepoRoot', $paraRoot)) { $psi.ArgumentList.Add($a) } + foreach ($a in $ExtraArgs) { $psi.ArgumentList.Add($a) } + $psi.RedirectStandardOutput = $true + $psi.RedirectStandardError = $true + $psi.UseShellExecute = $false + $proc = [Diagnostics.Process]::new() + $proc.StartInfo = $psi + try { + if (-not $proc.Start()) { throw 'Could not start generate-run-actions.ps1 subprocess.' } + $outTask = $proc.StandardOutput.ReadToEndAsync() + $errTask = $proc.StandardError.ReadToEndAsync() + if (-not $proc.WaitForExit(120000)) { + try { $proc.Kill($true) } catch {} + throw 'generate-run-actions.ps1 subprocess timed out.' + } + return [pscustomobject]@{ + ExitCode = $proc.ExitCode + Stdout = $outTask.GetAwaiter().GetResult() + Stderr = $errTask.GetAwaiter().GetResult() + } + } finally { + $proc.Dispose() + } +} + +$paraRun = Invoke-GeneratorSubprocess @('--verify', 'Native', '--max-parallel', '4', '--engine-path', $paraEngine, '--summary-json') +if ($paraRun.ExitCode -ne 0) { + throw "Parallel --verify Native failed (exit=$($paraRun.ExitCode)). Stdout: $($paraRun.Stdout)`nStderr: $($paraRun.Stderr)" +} +$paraSummary = $paraRun.Stdout | ConvertFrom-Json +if ($paraSummary.schemaVersion -ne 2 -or $paraSummary.verified -ne 4 -or $paraSummary.verification.executed -ne 4 -or $paraSummary.verification.maxParallel -ne 4) { + throw "Unexpected parallel summary JSON: $($paraRun.Stdout)" +} +$paraErrLines = @($paraRun.Stderr -split '\r?\n' | Where-Object { -not [string]::IsNullOrWhiteSpace($_) }) +$paraProgressLines = @($paraErrLines | Where-Object { $_ -cmatch '^\[\d+/4\] Verifying Para\.(One|Two|Three|Four)#1 \(Native\) -> Verified \(\d+\.\ds\)$' }) +if ($paraProgressLines.Count -ne 4) { + throw "Expected 4 append-only stderr progress lines; got $($paraProgressLines.Count). Stderr:`n$($paraRun.Stderr)" +} +$traceIntervals = @(Get-ChildItem -LiteralPath $paraTraceDir -Filter '*.txt' | ForEach-Object { + $parts = ([IO.File]::ReadAllText($_.FullName).Trim()) -split '\|' + [pscustomobject]@{ Start = [int64]$parts[0]; End = [int64]$parts[1] } +}) +if ($traceIntervals.Count -ne 4) { throw "Expected 4 parallel execution traces; got $($traceIntervals.Count)." } +$overlapFound = $false +for ($a = 0; $a -lt $traceIntervals.Count; $a++) { + for ($b = $a + 1; $b -lt $traceIntervals.Count; $b++) { + if ($traceIntervals[$a].Start -lt $traceIntervals[$b].End -and $traceIntervals[$b].Start -lt $traceIntervals[$a].End) { + $overlapFound = $true; break + } + } + if ($overlapFound) { break } +} +if (-not $overlapFound) { throw 'Parallel verification did not execute workers concurrently.' } +$paraManifestAfterGood = [IO.File]::ReadAllText("$paraRoot/run-actions.manifest.json") +if (@(($paraManifestAfterGood | ConvertFrom-Json).examples).Count -ne 4) { + throw 'Parallel verification did not write all 4 entries atomically to run-actions.manifest.json.' +} + +# --verify-changed skips all 4 cached Verified examples without re-executing or emitting progress lines. +$paraChangedRun = Invoke-GeneratorSubprocess @('--verify-changed', '--max-parallel', '4', '--engine-path', $paraEngine, '--summary-json') +if ($paraChangedRun.ExitCode -ne 0) { throw "Parallel --verify-changed failed (exit=$($paraChangedRun.ExitCode)): $($paraChangedRun.Stderr)" } +$paraChangedSummary = $paraChangedRun.Stdout | ConvertFrom-Json +if ($paraChangedSummary.verification.executed -ne 0 -or $paraChangedSummary.verification.reused -ne 4) { + throw "Expected --verify-changed to reuse all 4 cached Verified examples: $($paraChangedRun.Stdout)" +} +if ($paraChangedRun.Stderr -match 'Verifying Para\.') { + throw "Expected no Verifying lines on full cache reuse; got: $($paraChangedRun.Stderr)" +} + +# Heartbeat, --no-heartbeat, and --quiet behavior on a slow verification run. +$slowEngine = Join-Path $work 'slow-csrun.ps1' +[IO.File]::WriteAllText($slowEngine, "param([string]`$ManifestJson)`nStart-Sleep -Milliseconds 1300`n[Console]::Write('slow-ok')", [Text.UTF8Encoding]::new($false)) +$hbRun = Invoke-GeneratorSubprocess @('--verify', 'Native', '--id', 'Para.One#1', '--engine-path', $slowEngine, '--heartbeat-seconds', '1', '--summary-json') +if ($hbRun.ExitCode -ne 0) { throw "Heartbeat verification run failed: $($hbRun.Stderr)" } +$hbSummary = $hbRun.Stdout | ConvertFrom-Json +if ($hbSummary.verification.executed -ne 1 -or $hbRun.Stderr -notmatch '\[heartbeat\] Verification progress:' -or $hbRun.Stderr -notmatch '\[1/1\] Verifying Para\.One#1 \(Native\) -> Verified') { + throw "Expected both heartbeat and completion lines on stderr with clean JSON stdout. Stderr:`n$($hbRun.Stderr)" +} + +$noHbRun = Invoke-GeneratorSubprocess @('--verify', 'Native', '--id', 'Para.One#1', '--engine-path', $slowEngine, '--heartbeat-seconds', '1', '--no-heartbeat', '--summary-json') +if ($noHbRun.ExitCode -ne 0) { throw "--no-heartbeat run failed: $($noHbRun.Stderr)" } +$null = $noHbRun.Stdout | ConvertFrom-Json +if ($noHbRun.Stderr -match '\[heartbeat\]' -or $noHbRun.Stderr -notmatch '\[1/1\] Verifying Para\.One#1 \(Native\) -> Verified') { + throw "--no-heartbeat must suppress heartbeat lines while keeping completion lines. Stderr:`n$($noHbRun.Stderr)" +} + +$quietRun = Invoke-GeneratorSubprocess @('--verify', 'Native', '--id', 'Para.One#1', '--engine-path', $slowEngine, '--heartbeat-seconds', '1', '--quiet', '--summary-json') +if ($quietRun.ExitCode -ne 0) { throw "--quiet run failed: $($quietRun.Stderr)" } +$null = $quietRun.Stdout | ConvertFrom-Json +if (-not [string]::IsNullOrWhiteSpace($quietRun.Stderr)) { + throw "--quiet must suppress all stderr progress and heartbeat output. Stderr:`n$($quietRun.Stderr)" +} + +# Parallel partial failure must preserve the last good run-actions.manifest.json atomically. +$partialFailEngine = Join-Path $work 'partial-fail-csrun.ps1' +[IO.File]::WriteAllText($partialFailEngine, "param([string]`$ManifestJson)`nif (`$ManifestJson -like '*para-Two*') { exit 1 }`n[Console]::Write('ok')", [Text.UTF8Encoding]::new($false)) +$savedOneMd = [IO.File]::ReadAllText("$paraRoot/docs/One.md") +try { + [IO.File]::WriteAllText("$paraRoot/docs/One.md", $savedOneMd.Replace('para-One', 'para-One-modified')) + $paraFailRun = Invoke-GeneratorSubprocess @('--verify', 'Native', '--max-parallel', '4', '--engine-path', $partialFailEngine, '--summary-json') + if ($paraFailRun.ExitCode -ne 1) { throw "Expected parallel partial failure to exit 1; got $($paraFailRun.ExitCode)" } + $paraFailSummary = $paraFailRun.Stdout | ConvertFrom-Json + if (-not $paraFailSummary.manifestPreserved -or $paraFailSummary.verification.failed -ne 1 -or $paraFailRun.Stderr -notmatch 'Para\.Two#1 \(Native\) -> Failed') { + throw "Parallel partial failure did not report manifestPreserved/failed status cleanly. Stdout: $($paraFailRun.Stdout)`nStderr: $($paraFailRun.Stderr)" + } + if ([IO.File]::ReadAllText("$paraRoot/run-actions.manifest.json") -cne $paraManifestAfterGood) { + throw 'Parallel verification failure overwrote the last good run-actions.manifest.json!' + } +} finally { + [IO.File]::WriteAllText("$paraRoot/docs/One.md", $savedOneMd) +} + +# Invalid --max-parallel exits 3. +$invalidParallelRun = Invoke-GeneratorSubprocess @('--verify', 'Native', '--max-parallel', '0', '--engine-path', $paraEngine, '--summary-json') +if ($invalidParallelRun.ExitCode -ne 3) { + throw "Expected --max-parallel 0 to exit 3; got $($invalidParallelRun.ExitCode)" +} + $global:LASTEXITCODE = 0 -Write-Host "Run-action delivery passed: paired console, test, dependency-backed test, repository test and host harness; deterministic plan/explain, type-owned dependency resolution/preflight, validation-gated apply, multi-fence uid#ordinal identity, whitespace/semantic recipe check, atomic manifest preservation, --summary-json/--verify-changed/--verify --id, exact pins and source, coverage classifications, independent verification state, incremental assets, stale cleanup, standalone BuildRunActions.ps1 materialization and modern DocFX render. Fixture: $work" +Write-Host "Run-action delivery passed: paired console, test, dependency-backed test, repository test and host harness; deterministic plan/explain, type-owned dependency resolution/preflight, validation-gated apply, multi-fence uid#ordinal identity, whitespace/semantic recipe check, atomic manifest preservation, bounded parallel verification and append-only stderr progress/heartbeat, --summary-json/--verify-changed/--verify --id, exact pins and source, coverage classifications, independent verification state, incremental assets, stale cleanup, standalone BuildRunActions.ps1 materialization and modern DocFX render. Fixture: $work" exit 0 From 6b63d8f4d507995043c646a236dbb7f4ca45dd9c Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sun, 22 Nov 2026 01:25:57 +0100 Subject: [PATCH 22/28] =?UTF-8?q?=F0=9F=93=9D=20document=20parallel=20veri?= =?UTF-8?q?fication=20flags=20in=20dotnet-docfx-digest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update skill instructions and run-actions reference to cover --max-parallel, --max-docker-parallel, --quiet, --no-heartbeat, and --heartbeat-seconds. --- skills/dotnet-docfx-digest/SKILL.md | 2 +- skills/dotnet-docfx-digest/references/run-actions.md | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/skills/dotnet-docfx-digest/SKILL.md b/skills/dotnet-docfx-digest/SKILL.md index 6be5cd08..ba182963 100644 --- a/skills/dotnet-docfx-digest/SKILL.md +++ b/skills/dotnet-docfx-digest/SKILL.md @@ -14,7 +14,7 @@ Create and maintain developer-friendly DocFX documentation digests for .NET publ ## Opt-in run actions -For `dotnet-docfx-digest csrun` (also accepted as `dotnet-docfx-digest generate-run-actions`), read [run actions](references/run-actions.md). Use the deterministic workflow in `scripts/generate-run-actions.ps1` without guessing: run `--run-action-plan --json` (and `--explain `) to classify every fence by Roslyn AST (`already-standalone`, `top-level`, `wrapper-clean`, `wrapper-members`, `host-blocking`, `host-parameterized`, `no-entry`, `syntax-error`, `intrinsic`) with `convertible`, exact blocking construct/line, and stable `uid#` IDs; run `--check-recipes --json` to detect `moved`, `duplicate-uid`, and `orphaned` (`whitespace-only` vs `semantic`) recipes; run `--resolve-dependencies ` for assembly/type-ownership `dependsOn` pins and `missing-package` / `ambiguous-type` preflight checks; run `--validate-run-action ` to convert, compile, and run with a timeout in OS temp (requiring exit 0 and non-empty stdout for `console` mode) before `--apply-run-action ` (which refuses unless validation passed and never overwrites a recipe matching another fence). Use `mode: host` / `hostHarness` for blocking ASP.NET Core or Generic Host examples, reserving `intrinsicLimitation` strictly for code with no observable behavior at all. Runtime verification is opt-in and independent per transport via `--verify Native|Docker|Both`, `--verify-changed`, or `--verify --id ` with `--engine-path ` (or cached `Resolve-CsrunEngine`) so zero GitHub calls occur per example; `--summary-json` reports schema-versioned counts and exit codes (`0` clean, `1` failure, `2` unresolved, `3` invalid args/selector), and manifest writes are atomic and preserve the last good manifest on verification failure. Keep C#, source links and template customizations readable. The generator uses the existing csrun contract for standalone samples and runs without model calls. +For `dotnet-docfx-digest csrun` (also accepted as `dotnet-docfx-digest generate-run-actions`), read [run actions](references/run-actions.md). Use the deterministic workflow in `scripts/generate-run-actions.ps1` without guessing: run `--run-action-plan --json` (and `--explain `) to classify every fence by Roslyn AST (`already-standalone`, `top-level`, `wrapper-clean`, `wrapper-members`, `host-blocking`, `host-parameterized`, `no-entry`, `syntax-error`, `intrinsic`) with `convertible`, exact blocking construct/line, and stable `uid#` IDs; run `--check-recipes --json` to detect `moved`, `duplicate-uid`, and `orphaned` (`whitespace-only` vs `semantic`) recipes; run `--resolve-dependencies ` for assembly/type-ownership `dependsOn` pins and `missing-package` / `ambiguous-type` preflight checks; run `--validate-run-action ` to convert, compile, and run with a timeout in OS temp (requiring exit 0 and non-empty stdout for `console` mode) before `--apply-run-action ` (which refuses unless validation passed and never overwrites a recipe matching another fence). Use `mode: host` / `hostHarness` for blocking ASP.NET Core or Generic Host examples, reserving `intrinsicLimitation` strictly for code with no observable behavior at all. Runtime verification is opt-in, concurrent with bounded parallelism (`--max-parallel` defaulting to `min(CPU count, 8)` for Native; `--max-docker-parallel` defaulting conservatively to `min(native-parallel, 2)`), and independent per transport via `--verify Native|Docker|Both`, `--verify-changed`, or `--verify --id ` with `--engine-path ` (or cached `Resolve-CsrunEngine`) so zero GitHub calls occur per example; append-only progress lines and 10-second heartbeats write to `stderr` (respecting `--no-heartbeat` and `--quiet`) while `--summary-json` on `stdout` stays clean and reports schema-versioned counts and exit codes (`0` clean, `1` failure, `2` unresolved, `3` invalid args/selector), and manifest writes are thread-safe and atomic after all workers finish, preserving the last good manifest on verification failure. Keep C#, source links and template customizations readable. The generator uses the existing csrun contract for standalone samples and runs without model calls. For an existing site, always run the current skill's generator, including for toolbar-only updates. An `unchanged` example status applies to its PowerShell scripts. Verify the template's refreshed `public/run-actions.js` against the skill asset, then rebuild and verify the JavaScript in the site output. For a UI-only refresh, preserve existing examples, recipes and script verification evidence. diff --git a/skills/dotnet-docfx-digest/references/run-actions.md b/skills/dotnet-docfx-digest/references/run-actions.md index 31728031..48006478 100644 --- a/skills/dotnet-docfx-digest/references/run-actions.md +++ b/skills/dotnet-docfx-digest/references/run-actions.md @@ -29,8 +29,9 @@ pwsh scripts/generate-run-actions.ps1 -RepoRoot . --validate-run-action pwsh scripts/generate-run-actions.ps1 -RepoRoot . --verify Native --engine-path --summary-json pwsh scripts/generate-run-actions.ps1 -RepoRoot . --verify Docker --engine-path --summary-json +pwsh scripts/generate-run-actions.ps1 -RepoRoot . --verify Both --max-parallel 4 --max-docker-parallel 2 --engine-path --summary-json pwsh scripts/generate-run-actions.ps1 -RepoRoot . --verify-changed --engine-path --summary-json -pwsh scripts/generate-run-actions.ps1 -RepoRoot . --verify Native --id --engine-path +pwsh scripts/generate-run-actions.ps1 -RepoRoot . --verify Native --id --engine-path --quiet ``` ### 1. Deterministic classification (`--run-action-plan --json` and `--explain `) @@ -161,12 +162,12 @@ Each supported C# fence is followed by an association with its Native and Docker | `2` | Incomplete coverage: no hard failures occurred, but one or more examples remain `Unresolved`. | | `3` | Invalid CLI arguments, unmatched `--id`/`` selector, or ambiguous multi-fence UID without `#`. | -Pass `--summary-json` to receive a schema-versioned (`schemaVersion: 2`) JSON summary with `generated`, `unchanged`, `verified`, `failed`, `unresolved`, `intrinsic`, `skipped-by-category`, `failureReason`, `verifyScope` (`none`, `all`, `changed`, `id`), `manifestPreserved`, `verification` (`nativeVerified`, `dockerVerified`, `executed`, `reused`, `failed`), and the full `examples` array. +Pass `--summary-json` to receive a schema-versioned (`schemaVersion: 2`) JSON summary with `generated`, `unchanged`, `verified`, `failed`, `unresolved`, `intrinsic`, `skipped-by-category`, `failureReason`, `verifyScope` (`none`, `all`, `changed`, `id`), `manifestPreserved`, `verification` (`nativeVerified`, `dockerVerified`, `executed`, `reused`, `failed`, `maxParallel`, `maxDockerParallel`), and the full `examples` array. Each example result includes `exampleId`, `fenceOrdinal`, `coverage`, generation `status` (`generated` when its manifest entry changed vs previous `run-actions.manifest.json`, `unchanged` when identical), `category`, `reasonCode`, and independent Native and Docker verification states. Verification records and logs live in a private `.docfx-run-verification` directory under the current user's home on Unix or Local AppData on Windows. Reruns reuse a transport's cached state and log path when its script SHA-256 matches and both cache files pass ownership and link checks. -Explicitly pass `--verify Native`, `--verify Docker`, or `--verify Both` (or PowerShell `-Verify`) — optionally scoped with `--verify-changed` (skips re-executing transports that already have valid cached `Verified` evidence for an unchanged manifest entry) or `--id ` (verifies only the targeted example(s) while preserving the rest of the manifest) — plus `--engine-path ` (or `-EnginePath`). For standalone examples, `generate-run-actions.ps1` preflights and resolves the SHA-256-verified `csrun.ps1` once before touching any file or manifest. If engine resolution fails (for example GitHub HTTP 403/429 with no cached engine), the generator exits `1`, emits `failureReason` (`github-403-no-cached-engine` / `github-429-no-cached-engine` / `engine-path-not-found`), and leaves the previous `run-actions.manifest.json` and Markdown pages untouched. `run-actions.manifest.json` is always written atomically via temp file + rename and is never replaced with an empty manifest as a side effect of a failed verification. Do not run batch or parallel verification sweeps directly against materialized `run-actions//{native,docker}.ps1` files, because each materialized script queries GitHub's unauthenticated REST API (`releases/latest`) and quickly hits the 60-requests/hour IP rate limit and abuse detection. Standalone tests require an executed-test summary with every test passing and zero skips. Unrun transports stay `Unverified`. Changes to source, recipe or generator invalidate previous verification. Regular DocFX completion requirements still apply when editing documentation. +Explicitly pass `--verify Native`, `--verify Docker`, or `--verify Both` (or PowerShell `-Verify`) — optionally scoped with `--verify-changed` (skips re-executing transports that already have valid cached `Verified` evidence for an unchanged manifest entry) or `--id ` (verifies only the targeted example(s) while preserving the rest of the manifest) — plus `--engine-path ` (or `-EnginePath`). Verification runs concurrently with bounded parallelism (`ForEach-Object -Parallel`): Native concurrency defaults to `min(CPU count, 8)` and is configurable via `--max-parallel ` / `-MaxParallel` (`1`–`64`), while Docker concurrency uses a conservative cap of `min(native-parallel, 2)` by default (honoring explicit `--max-parallel` on Docker-only runs) and is separately configurable via `--max-docker-parallel ` / `-MaxDockerParallel` (`1`–`16`). Workers write isolated private-cache logs and atomic evidence records; all worker results are collected on the main thread before `run-actions.manifest.json` is written atomically once all workers finish, preserving the last good manifest and Markdown associations on any verification failure. During verification, append-only progress lines are emitted to `stderr` (`[12/425] Verifying (Native) -> Verified (1.8s)`) alongside a 10-second `[heartbeat]` line (configurable via `--heartbeat-seconds `) so `--summary-json` on `stdout` stays clean and parseable; pass `--no-heartbeat` / `-NoHeartbeat` to suppress periodic heartbeats while keeping per-item lines, or `--quiet` / `-Quiet` to suppress all `stderr` progress and heartbeat lines. For standalone examples, `generate-run-actions.ps1` preflights and resolves the SHA-256-verified `csrun.ps1` once before touching any file or manifest. If engine resolution fails (for example GitHub HTTP 403/429 with no cached engine), the generator exits `1`, emits `failureReason` (`github-403-no-cached-engine` / `github-429-no-cached-engine` / `engine-path-not-found`), and leaves the previous `run-actions.manifest.json` and Markdown pages untouched. `run-actions.manifest.json` is always written atomically via temp file + rename and is never replaced with an empty manifest as a side effect of a failed verification. Do not run batch or parallel verification sweeps directly against materialized `run-actions//{native,docker}.ps1` files, because each materialized script queries GitHub's unauthenticated REST API (`releases/latest`) and quickly hits the 60-requests/hour IP rate limit and abuse detection. Standalone tests require an executed-test summary with every test passing and zero skips. Unrun transports stay `Unverified`. Changes to source, recipe or generator invalidate previous verification. Regular DocFX completion requirements still apply when editing documentation. -Run the focused deterministic regression with `pwsh -NoProfile -File /scripts/test-run-actions.ps1`. It builds the shared inventory once, checks the direct paired-delivery rule, complete Native/Docker reference scripts, same-sample links and copy controls, independent verification status, source/pin parity, unsupported cases, second-run bytes/timestamps, stale cleanup, deterministic planning/explain, dependency ownership/ambiguity preflight, validation-gated apply, multi-fence identity and recipe health (`moved`, `duplicate-uid`, `orphaned` whitespace vs semantic), atomic manifest preservation on GitHub 403, `--summary-json` / `--verify-changed` / `--verify --id`, `mode: host` / `hostHarness`, and a real DocFX modern render in OS temp. Existing `test-integration-example.ps1` checks exact execution/failure semantics with offline doubles. These checks do not assert live native/Docker integration execution. Normal authoring and the `agents.cs` plus `docfx.cs --build-api-model --validate-samples --verify-docfx-build` completion requirements remain unchanged when editing an actual documentation repository. +Run the focused deterministic regression with `pwsh -NoProfile -File /scripts/test-run-actions.ps1`. It builds the shared inventory once, checks the direct paired-delivery rule, complete Native/Docker reference scripts, same-sample links and copy controls, independent verification status, source/pin parity, unsupported cases, second-run bytes/timestamps, stale cleanup, deterministic planning/explain, dependency ownership/ambiguity preflight, validation-gated apply, multi-fence identity and recipe health (`moved`, `duplicate-uid`, `orphaned` whitespace vs semantic), atomic manifest preservation on GitHub 403 and parallel runtime failures, bounded parallel verification with append-only `stderr` progress/heartbeat logging (`--max-parallel`, `--no-heartbeat`, `--quiet`), `--summary-json` / `--verify-changed` / `--verify --id`, `mode: host` / `hostHarness`, and a real DocFX modern render in OS temp. Existing `test-integration-example.ps1` checks exact execution/failure semantics with offline doubles. These checks do not assert live native/Docker integration execution. Normal authoring and the `agents.cs` plus `docfx.cs --build-api-model --validate-samples --verify-docfx-build` completion requirements remain unchanged when editing an actual documentation repository. For the browser check, install Playwright through your usual development environment, optionally set `PLAYWRIGHT_MODULE` to its module path, and run `node /scripts/test-run-actions-browser.cjs /_site` against the fixture path printed by the deterministic regression. The check covers alignment, the C# and PowerShell clipboard payloads, pointer and keyboard interactions, touch, preview, feedback, Context7 startup, idempotence and the no-JavaScript fallback. It detects navigation, new pages and downloads even when the server marks the scripts as attachments. Pass an additional built xUnit site directory to check the `TestOutputHelperAccessor` API example and set `DOCFX_ACTIONS_SCREENSHOT` to capture its toolbar. From 0c296446a3a0e6aa340eee44e8a8bbecdeccee4f Mon Sep 17 00:00:00 2001 From: gimlichael Date: Sun, 22 Nov 2026 01:44:53 +0100 Subject: [PATCH 23/28] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20add=20subprocess=20s?= =?UTF-8?q?him=20for=20generator=20execution=20in=20test-run-actions.ps1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scripts/test-run-actions.ps1 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 b/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 index 37ee22ba..74f9a6c7 100644 --- a/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 +++ b/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 @@ -1501,9 +1501,26 @@ Start-Sleep -Milliseconds 400 [Console]::Write('ok') "@, [Text.UTF8Encoding]::new($false)) +$resolvedAppExe = (Get-Command $app.Executable -CommandType Application | Select-Object -First 1).Source +$paraSubprocessShim = Join-Path $work 'invoke-generator-shim.ps1' +$escapedAppExe = $resolvedAppExe.Replace("'", "''") +$escapedAppPrefix = (@($app.ArgumentPrefix | ForEach-Object { "'" + ([string]$_).Replace("'", "''") + "'" }) -join ', ') +$escapedGenerator = $generator.Replace("'", "''") +[IO.File]::WriteAllText($paraSubprocessShim, @" +`$ErrorActionPreference = 'Stop' +`$appExe = '$escapedAppExe' +`$appPrefix = @($escapedAppPrefix) +function dotnet { + & `$appExe @(`$appPrefix + @(`$args | Select-Object -Skip ([Array]::IndexOf(`$args, '--repo-root')))) + `$global:LASTEXITCODE = `$LASTEXITCODE +} +& '$escapedGenerator' @args +exit `$LASTEXITCODE +"@, [Text.UTF8Encoding]::new($false)) + function Invoke-GeneratorSubprocess([string[]] $ExtraArgs) { $psi = [Diagnostics.ProcessStartInfo]::new($pwshExe) - foreach ($a in @('-NoProfile', '-NonInteractive', '-File', $generator, '-RepoRoot', $paraRoot)) { $psi.ArgumentList.Add($a) } + foreach ($a in @('-NoProfile', '-NonInteractive', '-File', $paraSubprocessShim, '-RepoRoot', $paraRoot)) { $psi.ArgumentList.Add($a) } foreach ($a in $ExtraArgs) { $psi.ArgumentList.Add($a) } $psi.RedirectStandardOutput = $true $psi.RedirectStandardError = $true From 07b903e0e6fe828f9d08016cd0596dab1bd84e5e Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sun, 22 Nov 2026 14:08:19 +0100 Subject: [PATCH 24/28] =?UTF-8?q?=F0=9F=93=9D=20scope=20docfx=20markdown?= =?UTF-8?q?=20rule=20to=20api=20and=20csrun=20context?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clarify in the dotnet-docfx-digest skill docs and the AGENTS.md managed block emitted by agents.cs that limiting Markdown edits to .docfx/api/ applies only during DocFX API documentation maintenance and csrun run-action updates, so normal repository updates to README.md or CHANGELOG.md are not flagged as out of scope. --- skills/dotnet-docfx-digest/SKILL.md | 4 ++-- .../dotnet-docfx-digest/references/docfx-overwrite-files.md | 2 +- skills/dotnet-docfx-digest/scripts/agents.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/skills/dotnet-docfx-digest/SKILL.md b/skills/dotnet-docfx-digest/SKILL.md index ba182963..8f37bea1 100644 --- a/skills/dotnet-docfx-digest/SKILL.md +++ b/skills/dotnet-docfx-digest/SKILL.md @@ -91,7 +91,7 @@ Read the reflection-backed packets from that manifest or from `scope.packets`. I - Passing compilation is necessary but not sufficient. `EXAMPLE_PLACEHOLDER`, `EXAMPLE_REFLECTION_ONLY`, `EXAMPLE_TARGET_NOT_USED`, `EXTENSION_EXAMPLE_NOT_INVOKED`, `EXAMPLE_DEFAULT_PLACEHOLDER`, `EXAMPLE_NO_OBSERVABLE_OUTCOME`, `EXAMPLE_RUNTIME_TYPE_NAME_OUTCOME`, `EXAMPLE_EMPTY_ENTRY_POINT_STUB`, `EXAMPLE_FORWARDING_SCAFFOLD`, `EXAMPLE_TEMPLATE_REPETITION`, `EXAMPLE_LEAD_MISSING`, `EXAMPLE_ADVANCED_LEAD_MISSING`, `EXAMPLE_UID_DUPLICATE`, and `EXAMPLE_REDUNDANT_HEADING` are blocking quality failures. Never satisfy the inventory with `Type.GetType`, assembly metadata inspection, runtime implementation names, an empty local `Program` stub, `DocumentedTypeExample`, `DocumentedExtensionExample`, generic `Describe()` helpers, repeated UID sections, manual `## Example`/`### Example`/`### Examples` headings inside `example:`-mapped bodies, prose that merely names the target, a missing or placeholder-only example fly-in, a `default!`/`null!` holder property that only parks the type, a class that just constructs or returns the target with no observable result, a mass-forwarding shell of one-line pass-through members, or one normalized code skeleton reused across unrelated types. - Namespace prose must be decision-useful. `NAMESPACE_PROSE_INVENTORY_ONLY`, `NAMESPACE_APPEND_ONLY_REPAIR`, `NAMESPACE_PROSE_TEMPLATE_REPETITION`, `NAMESPACE_USAGE_GUIDANCE_MISSING`, and `NAMESPACE_START_HERE_MISSING` mean the page still needs a problem/outcome opening, a cohesively rewritten lead instead of a weak inventory sentence with guidance appended below it, an opening written from the namespace's own purpose rather than a shared template, concrete "when to use" guidance, and a named starting API when the namespace has multiple entry points. - Namespace overview files are single-UID deliverables. `NAMESPACE_EMBEDDED_OVERWRITE_SECTION` means the page mixed namespace guidance with secondary `uid:` / `example:` mappings after the overview, often below `Extension Members`. Move those type/member examples to readable type-targeted files under `.docfx/api/types/`, usually the declaring extension class page, and keep the namespace page limited to the namespace fly-in, availability, related links, and optional `Extension Members` table. -- Under `.docfx/api/`, Markdown `[!INCLUDE ...]` directives (including availability includes such as `../../includes/availability-*.md`) are **only allowed on namespace overview pages under `.docfx/api/namespaces/*`** — never on type pages (`.docfx/api/types/*`), never in any other file under `.docfx/api/`, and never after examples (`API_INCLUDE_OUTSIDE_NAMESPACES`). Only modify DocFX Markdown files under `.docfx/api/`; do not edit Markdown files outside `.docfx/api/` (such as guides, articles, or conceptual docs), where includes are allowed to follow different conventions. +- Under `.docfx/api/`, Markdown `[!INCLUDE ...]` directives (including availability includes such as `../../includes/availability-*.md`) are **only allowed on namespace overview pages under `.docfx/api/namespaces/*`** — never on type pages (`.docfx/api/types/*`), never in any other file under `.docfx/api/`, and never after examples (`API_INCLUDE_OUTSIDE_NAMESPACES`). When authoring DocFX API documentation or applying `csrun` run actions, limit DocFX Markdown edits to `.docfx/api/` and do not edit Markdown files outside `.docfx/api/` (such as `README.md`, `CHANGELOG.md`, guides, articles, or conceptual docs), where different conventions and workflows apply. - Never combine an `example:` front-matter mapping (`example: *content`, `example: [*content]`, or `example:\n- *content`) with a manual `## Example`, `### Example`, or `### Examples` heading in the Markdown body (`EXAMPLE_REDUNDANT_HEADING`). DocFX renders the `Examples` section heading automatically from the front matter; adding a manual heading produces duplicate `Examples` / `Example` headings on the rendered page. Place only the complementary explanatory prose directly before the C# fence. - Use the JSON completion contract as the final authority: completion requires `summary.fullVerificationRan` to be `true`, `summary.canClaimCompletion` to be `true`, `summary.remainingWorkItems` to be `0`, `summary.remainingGates` and `summary.remainingDiagnosticsByCode` to be empty, `summary.newlyIntroducedSkipMarkers` to be `0`, `summary.interimArtifacts` to be `0`, and the build-backed command to succeed. A clean fast run reports `completionState: verification-required`; it is an iteration checkpoint, not completion. Never describe `status: failed`, `completionState: incomplete`, or `completionState: verification-required` as completed work. - Warnings are reported separately from the completion contract, but unresolved ownership is not a warning escape hatch. `SYMBOL_COLLISION_UNRESOLVED` blocks until every colliding type has a C# example mapped to its exact type UID. `EXTENSION_OWNER_AMBIGUOUS` blocks until every affected extension example targets its exact declaring-type or method UID and invokes the method through receiver syntax rather than `Extensions.Method(receiver)`. These diagnostics clear when that evidence exists; do not chase the collision itself or invent a different owner. Residual informational warnings such as `TYPE_FORWARDING_UNRESOLVED` may be reported after a build-backed final run succeeds with `summary.canClaimCompletion = true`. @@ -267,7 +267,7 @@ Apply this skill to: - public types and delegates - public constructors, properties, methods, fields, events, and enum members - public extension methods -- DocFX overwrite Markdown files under `.docfx/api/` (`api/namespaces/` and `api/types/` only; never edit Markdown files outside `.docfx/api/`) +- DocFX overwrite Markdown files under `.docfx/api/` (`api/namespaces/` and `api/types/` only; during DocFX API documentation or `csrun` runs, leave Markdown files outside `.docfx/api/` untouched) - namespace overview pages - XML documentation comments - API examples diff --git a/skills/dotnet-docfx-digest/references/docfx-overwrite-files.md b/skills/dotnet-docfx-digest/references/docfx-overwrite-files.md index c6baffda..26f9b7a5 100644 --- a/skills/dotnet-docfx-digest/references/docfx-overwrite-files.md +++ b/skills/dotnet-docfx-digest/references/docfx-overwrite-files.md @@ -89,7 +89,7 @@ If a public non-abstraction type lacks an example, create a matching type-UID ov - Keep examples and remarks close to the API item or namespace they explain. - Create per-type overwrite files for missing concrete-type examples even when the repository currently has only namespace overview files. - Keep namespace overview Markdown under `.docfx/api/namespaces/` and type overwrite Markdown under `.docfx/api/types/`. Move legacy `.docfx/api/*.md` files into the appropriate subdirectory: namespace UIDs go to `api/namespaces/`, type UIDs go to `api/types/`. -- Under `.docfx/api/`, `[!INCLUDE ...]` directives (such as availability includes) are only allowed in `.docfx/api/namespaces/*` — never in `.docfx/api/types/*` or after examples. Only modify DocFX Markdown files under `.docfx/api/`; leave Markdown files outside `.docfx/api/` untouched. +- Under `.docfx/api/`, `[!INCLUDE ...]` directives (such as availability includes) are only allowed in `.docfx/api/namespaces/*` — never in `.docfx/api/types/*` or after examples. During DocFX API documentation or `csrun` runs, limit DocFX Markdown edits to `.docfx/api/` and leave Markdown files outside `.docfx/api/` untouched. - Keep `api/namespaces/**/*.md` and `api/types/**/*.md` under `build.overwrite` only; do not use `api/**/*.md` under `build.content` or `build.overwrite`. - Add examples through overwrite sections when XML comments or generated metadata do not already provide developer-friendly examples. - Preserve existing hand-written overwrite sections unless they are stale or contradictory. diff --git a/skills/dotnet-docfx-digest/scripts/agents.cs b/skills/dotnet-docfx-digest/scripts/agents.cs index cc4e4677..f685bc2d 100644 --- a/skills/dotnet-docfx-digest/scripts/agents.cs +++ b/skills/dotnet-docfx-digest/scripts/agents.cs @@ -52,7 +52,7 @@ Both namespace overwrite files and type overwrite files are required deliverable `docfx.json` must keep namespace and type overwrite files in separate subdirectories. `build.overwrite` must include both `api/namespaces/**/*.md` (for namespace pages) and `api/types/**/*.md` (for type pages). `build.content` must exclude both `api/namespaces/**` and `api/types/**` to prevent overwrite Markdown from being treated as conceptual content. Do not use `api/**/*.md` under `build.overwrite` or `build.content`. - Availability must be documented on namespace overview pages under `.docfx/api/namespaces/*` by referencing the appropriate `[!INCLUDE ...]` file when one exists, or by adding explicit availability text when no suitable include exists. Under `.docfx/api/`, `[!INCLUDE ...]` directives are only allowed in `.docfx/api/namespaces/*` — never on type pages (`.docfx/api/types/*`), never in other files under `.docfx/api/`, and never after examples. Only modify DocFX Markdown files under `.docfx/api/`; leave Markdown files outside `.docfx/api/` untouched. Availability must reflect the actual target frameworks, conditional compilation, and project configuration. + Availability must be documented on namespace overview pages under `.docfx/api/namespaces/*` by referencing the appropriate `[!INCLUDE ...]` file when one exists, or by adding explicit availability text when no suitable include exists. Under `.docfx/api/`, `[!INCLUDE ...]` directives are only allowed in `.docfx/api/namespaces/*` — never on type pages (`.docfx/api/types/*`), never in other files under `.docfx/api/`, and never after examples. When performing DocFX API documentation maintenance or applying `dotnet-docfx-digest` / `csrun` run-action updates, limit DocFX Markdown edits to `.docfx/api/` and leave unrelated Markdown files outside `.docfx/api/` (such as `README.md`, `CHANGELOG.md`, guides, articles, or conceptual docs) untouched; this DocFX scope rule does not restrict normal repository documentation updates in other changes. Availability must reflect the actual target frameworks, conditional compilation, and project configuration. For conditionally compiled APIs, choose the executable test framework from the asset that contains the API. Inspect the preprocessor condition, project TFMs, package `lib/` assets, and resolved consumer asset before changing a sample. For APIs under `NETSTANDARD2_0` or `NETSTANDARD2_0_OR_GREATER`, when modern `lib/netX.0/` assets also exist, use `net48` (or another supported .NET Framework target from `net462` onward) so the consumer selects `lib/netstandard2.0/`. Never use `netstandard*` as an executable target, and never use a modern `netX.0` target when it selects an asset where the API is absent. For other TFM guards, select a runnable consumer TFM that resolves to the containing asset and confirm that selection from restore or build evidence. From 028a6fa0cbfedd24c8456b90165e8b7cb383007c Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sun, 22 Nov 2026 15:10:11 +0100 Subject: [PATCH 25/28] =?UTF-8?q?=E2=9C=A8=20add=20net48=20native-only=20r?= =?UTF-8?q?un-action=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Support legacy .NET Framework (net48) run-action recipes as Native-only assets with automatic docker: Unsupported handling and Windows host validation guards. --- skills/dotnet-docfx-digest/SKILL.md | 2 +- .../assets/BuildRunActions.ps1 | 24 ++- .../references/one-shot-examples.md | 2 +- .../references/run-actions.md | 23 ++ skills/dotnet-docfx-digest/scripts/docfx.cs | 5 +- .../scripts/generate-run-actions.ps1 | 201 +++++++++++++----- .../scripts/integration-example.ps1 | 11 +- 7 files changed, 204 insertions(+), 64 deletions(-) diff --git a/skills/dotnet-docfx-digest/SKILL.md b/skills/dotnet-docfx-digest/SKILL.md index 8f37bea1..a5124ef9 100644 --- a/skills/dotnet-docfx-digest/SKILL.md +++ b/skills/dotnet-docfx-digest/SKILL.md @@ -14,7 +14,7 @@ Create and maintain developer-friendly DocFX documentation digests for .NET publ ## Opt-in run actions -For `dotnet-docfx-digest csrun` (also accepted as `dotnet-docfx-digest generate-run-actions`), read [run actions](references/run-actions.md). Use the deterministic workflow in `scripts/generate-run-actions.ps1` without guessing: run `--run-action-plan --json` (and `--explain `) to classify every fence by Roslyn AST (`already-standalone`, `top-level`, `wrapper-clean`, `wrapper-members`, `host-blocking`, `host-parameterized`, `no-entry`, `syntax-error`, `intrinsic`) with `convertible`, exact blocking construct/line, and stable `uid#` IDs; run `--check-recipes --json` to detect `moved`, `duplicate-uid`, and `orphaned` (`whitespace-only` vs `semantic`) recipes; run `--resolve-dependencies ` for assembly/type-ownership `dependsOn` pins and `missing-package` / `ambiguous-type` preflight checks; run `--validate-run-action ` to convert, compile, and run with a timeout in OS temp (requiring exit 0 and non-empty stdout for `console` mode) before `--apply-run-action ` (which refuses unless validation passed and never overwrites a recipe matching another fence). Use `mode: host` / `hostHarness` for blocking ASP.NET Core or Generic Host examples, reserving `intrinsicLimitation` strictly for code with no observable behavior at all. Runtime verification is opt-in, concurrent with bounded parallelism (`--max-parallel` defaulting to `min(CPU count, 8)` for Native; `--max-docker-parallel` defaulting conservatively to `min(native-parallel, 2)`), and independent per transport via `--verify Native|Docker|Both`, `--verify-changed`, or `--verify --id ` with `--engine-path ` (or cached `Resolve-CsrunEngine`) so zero GitHub calls occur per example; append-only progress lines and 10-second heartbeats write to `stderr` (respecting `--no-heartbeat` and `--quiet`) while `--summary-json` on `stdout` stays clean and reports schema-versioned counts and exit codes (`0` clean, `1` failure, `2` unresolved, `3` invalid args/selector), and manifest writes are thread-safe and atomic after all workers finish, preserving the last good manifest on verification failure. Keep C#, source links and template customizations readable. The generator uses the existing csrun contract for standalone samples and runs without model calls. +For `dotnet-docfx-digest csrun` (also accepted as `dotnet-docfx-digest generate-run-actions`), read [run actions](references/run-actions.md). Use the deterministic workflow in `scripts/generate-run-actions.ps1` without guessing: run `--run-action-plan --json` (and `--explain `) to classify every fence by Roslyn AST (`already-standalone`, `top-level`, `wrapper-clean`, `wrapper-members`, `host-blocking`, `host-parameterized`, `no-entry`, `syntax-error`, `intrinsic`) with `convertible`, exact blocking construct/line, and stable `uid#` IDs; run `--check-recipes --json` to detect `moved`, `duplicate-uid`, and `orphaned` (`whitespace-only` vs `semantic`) recipes; run `--resolve-dependencies ` for assembly/type-ownership `dependsOn` pins and `missing-package` / `ambiguous-type` preflight checks; run `--validate-run-action ` to convert, compile, and run with a timeout in OS temp (requiring exit 0 and non-empty stdout for `console` mode) before `--apply-run-action ` (which refuses unless validation passed and never overwrites a recipe matching another fence). Use `mode: host` / `hostHarness` for blocking ASP.NET Core or Generic Host examples, and use a legacy `.NET Framework` TFM (`net471`–`net481`, typically `net48`) with Native-only delivery (`docker: Unsupported`) for conditionally compiled `netstandard2.0` / `!NETCOREAPP3_0_OR_GREATER` APIs rather than falling back to `net10.0` (which selects `lib/net10.0` and resolves the BCL type instead) or `intrinsicLimitation`; reserve `intrinsicLimitation` strictly for code with no observable behavior at all. Runtime verification is opt-in, concurrent with bounded parallelism (`--max-parallel` defaulting to `min(CPU count, 8)` for Native; `--max-docker-parallel` defaulting conservatively to `min(native-parallel, 2)`), and independent per transport via `--verify Native|Docker|Both`, `--verify-changed`, or `--verify --id ` with `--engine-path ` (or cached `Resolve-CsrunEngine`) so zero GitHub calls occur per example; append-only progress lines and 10-second heartbeats write to `stderr` (respecting `--no-heartbeat` and `--quiet`) while `--summary-json` on `stdout` stays clean and reports schema-versioned counts and exit codes (`0` clean, `1` failure, `2` unresolved, `3` invalid args/selector), and manifest writes are thread-safe and atomic after all workers finish, preserving the last good manifest on verification failure. Keep C#, source links and template customizations readable. The generator uses the existing csrun contract for standalone samples and runs without model calls. For an existing site, always run the current skill's generator, including for toolbar-only updates. An `unchanged` example status applies to its PowerShell scripts. Verify the template's refreshed `public/run-actions.js` against the skill asset, then rebuild and verify the JavaScript in the site output. For a UI-only refresh, preserve existing examples, recipes and script verification evidence. diff --git a/skills/dotnet-docfx-digest/assets/BuildRunActions.ps1 b/skills/dotnet-docfx-digest/assets/BuildRunActions.ps1 index c82b506d..0f7f257c 100644 --- a/skills/dotnet-docfx-digest/assets/BuildRunActions.ps1 +++ b/skills/dotnet-docfx-digest/assets/BuildRunActions.ps1 @@ -40,6 +40,7 @@ function Assert-CsrunTestOutput([string] $Output) { function Normalize([string] $Text) { $Text.Replace("`r`n", "`n").TrimEnd("`n", "`r") } function Quote-Literal([string] $Value) { "'" + $Value.Replace("'", "''") + "'" } +function Test-NetFrameworkTfm([string] $Framework) { return (-not [string]::IsNullOrWhiteSpace($Framework) -and $Framework -match '^net4\d+$') } function Sort-ManifestValue($Value) { if ($Value -is [System.Collections.IDictionary]) { @@ -56,8 +57,9 @@ function Sort-ManifestValue($Value) { function New-StandalonePair { param( [Parameter(Mandatory)][hashtable] $Manifest, - [Parameter(Mandatory)][string] $Image + [string] $Image = 'codebeltnet/csrun:10' ) + if ([string]::IsNullOrWhiteSpace($Image)) { $Image = 'codebeltnet/csrun:10' } $ordered = Sort-ManifestValue $Manifest $manifestJson = ConvertTo-Json -InputObject $ordered -Depth 100 $verifyTests = $ordered.mode -eq 'test' @@ -150,7 +152,7 @@ function New-RepositoryPair { ) if ($Repository -notmatch '^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$' -or $Commit -notmatch '^[a-fA-F0-9]{40}$' -or $Project -notmatch '^[A-Za-z0-9_./-]+\.csproj$' -or $Project.Split('/') -contains '..' -or $Project.StartsWith('/') -or - $Test -notmatch '^[A-Za-z0-9_.+]+$' -or $Framework -notmatch '^net\d+\.\d+$' -or + $Test -notmatch '^[A-Za-z0-9_.+]+$' -or $Framework -notmatch '^(?:net\d+\.\d+|net4\d+)$' -or $Image -notmatch '^mcr\.microsoft\.com/dotnet/sdk:[A-Za-z0-9_.-]+$') { throw 'Expected a pinned GitHub repository, relative project, exact xUnit method, TFM and official SDK image.' } @@ -243,10 +245,11 @@ function New-HostPair { [int] $StartupDelayMs = 1000, [string] $Image = 'codebeltnet/csrun:10' ) - if ($Framework -notmatch '^net\d+\.\d+$') { throw "Invalid host framework: $Framework" } + if ($Framework -notmatch '^(?:net\d+\.\d+|net4\d+)$') { throw "Invalid host framework: $Framework" } if ($Sdk -notmatch '^[A-Za-z0-9_.]+$') { throw "Invalid host SDK: $Sdk" } if ($ProbeMethod -notmatch '^(GET|HEAD|POST|PUT|DELETE|OPTIONS|PATCH)$') { throw "Invalid host probeMethod: $ProbeMethod" } if ($TimeoutSeconds -lt 3 -or $TimeoutSeconds -gt 300) { throw "Host timeoutSeconds must be between 3 and 300." } + $isNetFramework = Test-NetFrameworkTfm $Framework $cleanDependsOn = @($DependsOn | Where-Object { -not [string]::IsNullOrWhiteSpace([string]$_) }) foreach ($pin in $cleanDependsOn) { if ($pin -notmatch '^[A-Za-z0-9_.-]+@[A-Za-z0-9_.-]+$') { throw "Invalid host dependsOn pin: $pin" } @@ -255,8 +258,12 @@ function New-HostPair { $parts = $_ -split '@', 2 " " }) + if ($isNetFramework -and -not ($cleanDependsOn | Where-Object { $_ -like 'Microsoft.NETFramework.ReferenceAssemblies@*' })) { + $pkgLines += ' ' + } $itemGroup = if ($pkgLines.Count) { "`n `n" + ($pkgLines -join "`n") + "`n " } else { '' } - $csproj = "`n `n Exe`n $Framework`n enable`n enable`n $itemGroup`n`n" + $langVersionLine = if ($isNetFramework) { "`n latest" } else { '' } + $csproj = "`n `n Exe`n $Framework`n enable`n enable$langVersionLine`n $itemGroup`n`n" $payloadJson = ([ordered]@{ csproj = $csproj source = $Source.Replace("`r`n", "`n").TrimEnd("`r", "`n") + "`n" @@ -466,9 +473,18 @@ foreach ($example in $examples) { } else { throw "Unsupported run-action strategy '$($example.strategy)' for $id" } + $effectiveFramework = if ($example.strategy -ceq 'standalone' -and $example.ContainsKey('manifest') -and $example.manifest -and $example.manifest.ContainsKey('framework') -and $example.manifest.framework) { + [string]$example.manifest.framework + } elseif ($example.strategy -ceq 'host' -and $example.ContainsKey('hostHarness') -and $example.hostHarness -and $example.hostHarness.ContainsKey('framework') -and $example.hostHarness.framework) { + [string]$example.hostHarness.framework + } elseif ($example.ContainsKey('framework') -and $example.framework) { + [string]$example.framework + } else { '' } + $isNetFrameworkExample = Test-NetFrameworkTfm $effectiveFramework $dir = Join-Path $OutputRoot $id foreach ($transport in @($example.transports)) { if ($transport -notin @('native', 'docker')) { throw "Unsupported transport '$transport' for $id" } + if ($isNetFrameworkExample -and $transport -ceq 'docker') { continue } $scriptText = Normalize $pair[$transport] $tokens = $null; $errors = $null $null = [Management.Automation.Language.Parser]::ParseInput($scriptText, [ref]$tokens, [ref]$errors) diff --git a/skills/dotnet-docfx-digest/references/one-shot-examples.md b/skills/dotnet-docfx-digest/references/one-shot-examples.md index cee03ac8..7a07fce2 100644 --- a/skills/dotnet-docfx-digest/references/one-shot-examples.md +++ b/skills/dotnet-docfx-digest/references/one-shot-examples.md @@ -8,7 +8,7 @@ Whenever DocFX Digest delivers a runnable example, deliver the complete Native a ## Select and verify -1. Prefer a complete standalone console program or genuine xUnit v3 test. Use `dotnet-csrun`'s existing manifest and `New-CsrunExecutionPair`; publish both independent PowerShell 7 native and disposable Docker blocks. Both decode to identical source and dependencies. Verify each available transport separately; if a supported transport was not run, label only that transport Unverified with its precise prerequisite. Use Unsupported only for a genuine source/platform incompatibility, with its reason. +1. Prefer a complete standalone console program or genuine xUnit v3 test. Use `dotnet-csrun`'s existing manifest and `New-CsrunExecutionPair`; publish both independent PowerShell 7 native and disposable Docker blocks. Both decode to identical source and dependencies. Verify each available transport separately; if a supported transport was not run, label only that transport Unverified with its precise prerequisite. Use Unsupported only for a genuine source/platform incompatibility, with its reason. For conditionally compiled `netstandard2.0` / `!NETCOREAPP3_0_OR_GREATER` APIs (such as polyfills omitted from `lib/net10.0`), target a legacy `.NET Framework` TFM (`net471`–`net481`, typically `net48`) natively on Windows with `Docker` marked `Unsupported` (`.NET Framework targets require Windows and cannot execute in the Linux csrun container.`) rather than retargeting to `net10.0` (which resolves the wrong assembly/type) or falling back to `intrinsicLimitation` / unverified prose. 2. For intrinsic integration/assembly identity, locate the maintained application/example and associated functional test, inspect project references, shared build settings, SDK, runner and package pins, infrastructure, signing and feeds. Select an exact test that proves the documented claim. Generate one block that downloads a commit-pinned repository snapshot to OS temp, builds/runs its original graph, verifies the intended test actually passed, and cleans up. No generated application, replacement test host, new test runner or multi-project manifest. 3. Use the runner's actual filtering/reporting conventions, inspected from its help and official documentation. MTP/xUnit v3 `--filter-method` is not VSTest `--filter FullyQualifiedName=...`. Report switches vary by version: xUnit v3 4.0.3 uses `--report-xunit-xml`. Require a fresh result report containing the exact intended test, positive executed/passed counts, no skips or runner errors, and matching process status. Exit zero or listing a discovered name alone never proves execution. 4. Verify the entire published block in a fresh PowerShell process, including download, quoting, result checks and cleanup. Offer an independent Docker block using a compatible official .NET SDK image when practical, with no host SDK dependency. Reuse `dotnet-test` for fixture/lifecycle guidance and `dotnet-remote-testing` for existing managed remote workloads; these blocks directly invoke the maintained native runner, not another test engine. The user-requested native path never requires Docker. diff --git a/skills/dotnet-docfx-digest/references/run-actions.md b/skills/dotnet-docfx-digest/references/run-actions.md index 48006478..8b9dd446 100644 --- a/skills/dotnet-docfx-digest/references/run-actions.md +++ b/skills/dotnet-docfx-digest/references/run-actions.md @@ -16,6 +16,29 @@ pwsh -NoProfile -File /BuildRunActions.ps1 Programs that resolve against the platform and simple xUnit examples can generate immediately through `New-CsrunExecutionPair` and manifest v1. Defaults are `net10.0` and `codebeltnet/csrun:10`. A recipe can set `csrunImage` for a different reviewed tag. Both wrappers download and verify the publisher's latest stable csrun release at execution time. Docker uses the selected image for its SDK and PowerShell. +### Legacy `.NET Framework` (`net48`) Native-only recipes for conditional `netstandard2.0` APIs + +In multi-targeted libraries (for example `net11.0;net10.0;netstandard2.0`), some public types or members are compiled only when `NETSTANDARD2_0` is defined or `NETCOREAPP3_0_OR_GREATER` is absent (such as polyfills like `System.Runtime.CompilerServices.CallerArgumentExpressionAttribute`). Do **not** fall back to `net10.0` for these examples — `net10.0` selects `lib/net10.0`, omits the library's conditional type, and resolves the .NET BCL type instead — and do **not** mark them `intrinsicLimitation` when a legacy `.NET Framework` Native run action can execute them. + +Instead, set `manifest.framework` (or `hostHarness.framework`) to a `csrun`-supported `.NET Framework` TFM (`net471`, `net472`, `net48`, or `net481`, typically `net48`), which consumes the package's `lib/netstandard2.0` asset natively on Windows (`csrun` v0.3.0+ falls back to an isolated temporary SDK-style `.csproj` with `LangVersion=latest` and `Microsoft.NETFramework.ReferenceAssemblies`, without changing manifest `schemaVersion` 1): + +```json +{ + "uid": "System.Runtime.CompilerServices.CallerArgumentExpressionAttribute", + "exampleId": "System.Runtime.CompilerServices.CallerArgumentExpressionAttribute#1", + "fenceOrdinal": 1, + "sourceSha256": "", + "manifest": { + "schemaVersion": 1, + "mode": "console", + "framework": "net48", + "dependsOn": ["Cuemon.Kernel@11.0.0"] + } +} +``` + +When `manifest.framework` or `hostHarness.framework` matches `^net4\d+$`, `generate-run-actions.ps1` and `BuildRunActions.ps1` automatically treat `docker` as `Unsupported` (`.NET Framework targets require Windows and cannot execute in the Linux csrun container.`) unless `unsupportedTransports.docker` already supplies a more specific reason. `run-actions.manifest.json` records `transports: ["native"]`, `BuildRunActions.ps1` materializes only `native.ps1` (no `docker.ps1`), the Markdown association renders only the Native link, and `--summary-json` reports `docker: "Unsupported"` with exit code `0`. On Windows, `--validate-run-action` and `--verify Native` compile and execute the `.NET Framework` binary natively; on non-Windows hosts, `--verify Native` skips `.NET Framework` recipes cleanly (recording `native: "Unverified"` with the Windows platform prerequisite instead of failing or corrupting the manifest), and `--validate-run-action` fails fast with `windows-required-for-netframework`. + ## Deterministic planning, recipe health, dependency resolution, and candidate validation `generate-run-actions.ps1` accepts both PowerShell-style (`-RunActionPlan`, `-Json`, `-Verify Native`, `-EnginePath `) and CLI-style (`--run-action-plan`, `--json`, `--verify Native`, `--engine-path `) flags: diff --git a/skills/dotnet-docfx-digest/scripts/docfx.cs b/skills/dotnet-docfx-digest/scripts/docfx.cs index a22df480..b600d3dd 100644 --- a/skills/dotnet-docfx-digest/scripts/docfx.cs +++ b/skills/dotnet-docfx-digest/scripts/docfx.cs @@ -10794,8 +10794,9 @@ only the documented project graph (dotnet). Alias: --strict-api-discovery. --configuration Build configuration (only used by build/sample paths). Default: Release. --framework Optional runnable consumer TFM to validate against. Choose the TFM that selects the asset containing a conditional API; use net48 - for NETSTANDARD2_0 assets when modern assets omit the API. Never - use netstandard* as an executable target. + for NETSTANDARD2_0 assets when modern assets omit the API + (Native-only; Docker is Unsupported for .NET Framework targets). + Never use netstandard* as an executable target. --validate-samples Compile C# samples (opt-in). Default: disabled. --no-validate-samples Explicitly disable sample compilation (already the default). --sample-reference-mode diff --git a/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 b/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 index 50a1e456..dc86b409 100644 --- a/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 +++ b/skills/dotnet-docfx-digest/scripts/generate-run-actions.ps1 @@ -28,8 +28,12 @@ param( ) $ErrorActionPreference = 'Stop' $PSNativeCommandUseErrorActionPreference = $false +$frameworkExplicit = $PSBoundParameters.ContainsKey('Framework') $maxParallelExplicit = $PSBoundParameters.ContainsKey('MaxParallel') $maxDockerParallelExplicit = $PSBoundParameters.ContainsKey('MaxDockerParallel') +$isWindowsHost = $IsWindows +$NetFrameworkDockerUnsupportedReason = '.NET Framework targets require Windows and cannot execute in the Linux csrun container.' +function Test-NetFrameworkTfm([string] $Tfm) { return (-not [string]::IsNullOrWhiteSpace($Tfm) -and $Tfm -match '^net4\d+$') } . (Join-Path $PSScriptRoot 'integration-example.ps1') $helpers = Join-Path $PSScriptRoot '../../dotnet-csrun/scripts/sample-tools.ps1' if (-not (Test-Path $helpers)) { throw "Install dotnet-csrun beside this skill: $helpers" } @@ -59,6 +63,7 @@ if ($CliArgs -and $CliArgs.Count -gt 0) { '--framework' { if (($i + 1) -ge $CliArgs.Count) { [Console]::Error.WriteLine('Missing value for --framework'); exit 3 } $Framework = [string]$CliArgs[++$i] + $frameworkExplicit = $true } '--csrun-image' { if (($i + 1) -ge $CliArgs.Count) { [Console]::Error.WriteLine('Missing value for --csrun-image'); exit 3 } @@ -598,12 +603,24 @@ function Build-CandidateRecipeAndSource($ExampleObj) { $deps = @($ExampleObj.dependencies.dependsOn) if ($isHost) { + $resolvedFramework = if ($frameworkExplicit) { + $Framework + } elseif ($existing -and $existing.PSObject.Properties['hostHarness'] -and $existing.hostHarness -and $existing.hostHarness.PSObject.Properties['framework'] -and $existing.hostHarness.framework) { + [string]$existing.hostHarness.framework + } elseif ($existing -and $existing.manifest -and $existing.manifest.PSObject.Properties['framework'] -and $existing.manifest.framework) { + [string]$existing.manifest.framework + } else { + $Framework + } $hh = if ($existing -and $existing.PSObject.Properties['hostHarness'] -and $existing.hostHarness) { - $existing.hostHarness + $hhCopy = [ordered]@{} + foreach ($prop in $existing.hostHarness.PSObject.Properties) { $hhCopy[$prop.Name] = $prop.Value } + $hhCopy['framework'] = $resolvedFramework + $hhCopy } else { [ordered]@{ sdk = if ($ExampleObj.dependencies.sdk) { $ExampleObj.dependencies.sdk } else { 'Microsoft.NET.Sdk.Web' } - framework = $Framework + framework = $resolvedFramework dependsOn = $deps probePath = '/' probeMethod = 'GET' @@ -622,9 +639,19 @@ function Build-CandidateRecipeAndSource($ExampleObj) { $mode = 'host' } else { $mode = if ($ExampleObj.isTest -or $ExampleObj.classification.suggestedMode -eq 'test') { 'test' } else { 'console' } + if ($deps.Count -eq 0 -and $existing -and $existing.manifest -and $existing.manifest.PSObject.Properties['dependsOn'] -and $existing.manifest.dependsOn) { + $deps = @($existing.manifest.dependsOn) + } if ($mode -eq 'test' -and -not ($deps | Where-Object { $_ -like 'xunit.v3@*' })) { $deps = @($deps + 'xunit.v3@4.0.3') } + $resolvedFramework = if ($frameworkExplicit) { + $Framework + } elseif ($existing -and $existing.manifest -and $existing.manifest.PSObject.Properties['framework'] -and $existing.manifest.framework) { + [string]$existing.manifest.framework + } else { + $Framework + } $resolvedSdk = if ($ExampleObj.dependencies.sdk) { [string]$ExampleObj.dependencies.sdk } else { 'Microsoft.NET.Sdk' } $resolvedFwRefs = @($ExampleObj.dependencies.frameworkReferences | Where-Object { -not [string]::IsNullOrWhiteSpace([string]$_) } | Select-Object -Unique) if ($existing -and $existing.manifest) { @@ -638,7 +665,7 @@ function Build-CandidateRecipeAndSource($ExampleObj) { $manifestObj = [ordered]@{ schemaVersion = 1 mode = $mode - framework = $Framework + framework = $resolvedFramework dependsOn = @($deps) } if ($resolvedSdk -and $resolvedSdk -ne 'Microsoft.NET.Sdk') { @@ -661,6 +688,7 @@ function Build-CandidateRecipeAndSource($ExampleObj) { $recipeSha256 = Hash $recipeCanonical return [pscustomobject]@{ mode = $mode + framework = $resolvedFramework isHost = $isHost converted = $converted candidateSource = $candidateSource @@ -1150,54 +1178,62 @@ if ($ValidateRunAction) { try { if ($candidate.isHost) { $hh = $candidate.recipe.hostHarness - $hostPair = New-HostExamplePair ` - -Source $candidate.candidateSource ` - -Framework $(if ($hh.framework) { [string]$hh.framework } else { $Framework }) ` - -Sdk $(if ($hh.sdk) { [string]$hh.sdk } else { 'Microsoft.NET.Sdk.Web' }) ` - -DependsOn $(if ($hh.dependsOn) { [string[]]@($hh.dependsOn) } else { @() }) ` - -ProbePath $(if ($null -ne $hh.probePath) { [string]$hh.probePath } else { '/' }) ` - -ProbeMethod $(if ($hh.probeMethod) { [string]$hh.probeMethod } else { 'GET' }) ` - -TimeoutSeconds $(if ($hh.timeoutSeconds) { [int]$hh.timeoutSeconds } else { [Math]::Min($TimeoutSeconds, 30) }) ` - -ExpectedStatusCode $(if ($hh.expectedStatusCode) { [int]$hh.expectedStatusCode } else { 0 }) ` - -ExpectedBodyContains $(if ($hh.expectedBodyContains) { [string]$hh.expectedBodyContains } else { '' }) ` - -StartupDelayMs $(if ($hh.startupDelayMs) { [int]$hh.startupDelayMs } else { 1000 }) ` - -Image $CsrunImage - $hostScript = Join-Path $tempDir 'validate-host.ps1' - [IO.File]::WriteAllText($hostScript, (Normalize $hostPair.Native), [Text.UTF8Encoding]::new($false)) - $psi = [Diagnostics.ProcessStartInfo]::new('pwsh') - foreach ($a in @('-NoProfile', '-NonInteractive', '-File', $hostScript)) { $psi.ArgumentList.Add($a) } - $psi.WorkingDirectory = $tempDir - $psi.RedirectStandardOutput = $true - $psi.RedirectStandardError = $true - $psi.UseShellExecute = $false - $proc = [Diagnostics.Process]::new() - $proc.StartInfo = $psi - try { - if (-not $proc.Start()) { throw 'Could not start host validation process.' } - $outTask = $proc.StandardOutput.ReadToEndAsync() - $errTask = $proc.StandardError.ReadToEndAsync() - if (-not $proc.WaitForExit($TimeoutSeconds * 1000)) { - $timedOut = $true - try { $proc.Kill($true) } catch {} - $null = $proc.WaitForExit(5000) + $hostFramework = if ($hh.framework) { [string]$hh.framework } else { $candidate.framework } + if ((Test-NetFrameworkTfm $hostFramework) -and -not $isWindowsHost) { + $exitCode = 1 + $stderr = "Framework '$hostFramework' targets .NET Framework and is only supported natively on Windows." + $failReason = 'windows-required-for-netframework' + } else { + $hostPair = New-HostExamplePair ` + -Source $candidate.candidateSource ` + -Framework $hostFramework ` + -Sdk $(if ($hh.sdk) { [string]$hh.sdk } else { 'Microsoft.NET.Sdk.Web' }) ` + -DependsOn $(if ($hh.dependsOn) { [string[]]@($hh.dependsOn) } else { @() }) ` + -ProbePath $(if ($null -ne $hh.probePath) { [string]$hh.probePath } else { '/' }) ` + -ProbeMethod $(if ($hh.probeMethod) { [string]$hh.probeMethod } else { 'GET' }) ` + -TimeoutSeconds $(if ($hh.timeoutSeconds) { [int]$hh.timeoutSeconds } else { [Math]::Min($TimeoutSeconds, 30) }) ` + -ExpectedStatusCode $(if ($hh.expectedStatusCode) { [int]$hh.expectedStatusCode } else { 0 }) ` + -ExpectedBodyContains $(if ($hh.expectedBodyContains) { [string]$hh.expectedBodyContains } else { '' }) ` + -StartupDelayMs $(if ($hh.startupDelayMs) { [int]$hh.startupDelayMs } else { 1000 }) ` + -Image $CsrunImage + $hostScript = Join-Path $tempDir 'validate-host.ps1' + [IO.File]::WriteAllText($hostScript, (Normalize $hostPair.Native), [Text.UTF8Encoding]::new($false)) + $psi = [Diagnostics.ProcessStartInfo]::new('pwsh') + foreach ($a in @('-NoProfile', '-NonInteractive', '-File', $hostScript)) { $psi.ArgumentList.Add($a) } + $psi.WorkingDirectory = $tempDir + $psi.RedirectStandardOutput = $true + $psi.RedirectStandardError = $true + $psi.UseShellExecute = $false + $proc = [Diagnostics.Process]::new() + $proc.StartInfo = $psi + try { + if (-not $proc.Start()) { throw 'Could not start host validation process.' } + $outTask = $proc.StandardOutput.ReadToEndAsync() + $errTask = $proc.StandardError.ReadToEndAsync() + if (-not $proc.WaitForExit($TimeoutSeconds * 1000)) { + $timedOut = $true + try { $proc.Kill($true) } catch {} + $null = $proc.WaitForExit(5000) + } + $exitCode = if ($timedOut) { 124 } else { $proc.ExitCode } + $stdout = $outTask.GetAwaiter().GetResult() + $stderr = $errTask.GetAwaiter().GetResult() + } finally { + $proc.Dispose() } - $exitCode = if ($timedOut) { 124 } else { $proc.ExitCode } - $stdout = $outTask.GetAwaiter().GetResult() - $stderr = $errTask.GetAwaiter().GetResult() - } finally { - $proc.Dispose() + if ($timedOut) { $failReason = 'execution-timeout' } + elseif ($exitCode -ne 0) { $failReason = 'host-execution-failed' } + elseif ([string]::IsNullOrWhiteSpace($stdout)) { $failReason = 'empty-host-output' } } - if ($timedOut) { $failReason = 'execution-timeout' } - elseif ($exitCode -ne 0) { $failReason = 'host-execution-failed' } - elseif ([string]::IsNullOrWhiteSpace($stdout)) { $failReason = 'empty-host-output' } } else { # Validate strictly from the saved recipe manifest so validation matches what csrun will execute. $manifestSpec = $candidate.recipe.manifest $manifestMode = [string]$manifestSpec['mode'] - $manifestFramework = if ($manifestSpec.Contains('framework') -and $manifestSpec['framework']) { [string]$manifestSpec['framework'] } else { $Framework } + $manifestFramework = if ($manifestSpec.Contains('framework') -and $manifestSpec['framework']) { [string]$manifestSpec['framework'] } else { $candidate.framework } $manifestSdk = if ($manifestSpec.Contains('sdk') -and $manifestSpec['sdk']) { [string]$manifestSpec['sdk'] } else { 'Microsoft.NET.Sdk' } $manifestDeps = if ($manifestSpec.Contains('dependsOn') -and $manifestSpec['dependsOn']) { @($manifestSpec['dependsOn']) } else { @() } $manifestFwRefs = if ($manifestSpec.Contains('frameworkReferences') -and $manifestSpec['frameworkReferences']) { @($manifestSpec['frameworkReferences']) } else { @() } + $isNetFramework = Test-NetFrameworkTfm $manifestFramework $invalidManifestError = $null if ($manifestSdk -notin @('Microsoft.NET.Sdk', 'Microsoft.NET.Sdk.Web')) { @@ -1213,21 +1249,39 @@ if ($ValidateRunAction) { $exitCode = 1 $stderr = $invalidManifestError $failReason = 'invalid-manifest' + } elseif ($isNetFramework -and -not $isWindowsHost) { + $exitCode = 1 + $stderr = "Framework '$manifestFramework' targets .NET Framework and is only supported natively on Windows." + $failReason = 'windows-required-for-netframework' } else { $dotnetExe = (Get-Command dotnet -CommandType Application -ErrorAction Stop | Select-Object -First 1).Source $artifactsDir = Join-Path $tempDir 'artifacts' - $useTempProject = ($manifestMode -eq 'test' -and $manifestFwRefs.Count -gt 0) + $useTempProject = $isNetFramework -or ($manifestMode -eq 'test' -and $manifestFwRefs.Count -gt 0) if ($useTempProject) { $pkgLines = @($manifestDeps | ForEach-Object { $parts = [string]$_ -split '@', 2 - " " + " " }) + if ($isNetFramework -and -not ($manifestDeps | Where-Object { $_ -like 'Microsoft.NETFramework.ReferenceAssemblies@*' })) { + $pkgLines += ' ' + } $fwLines = @($manifestFwRefs | ForEach-Object { " " }) $itemLines = @($pkgLines + $fwLines) $itemGroup = if ($itemLines.Count -gt 0) { "`n `n" + ($itemLines -join "`n") + "`n " } else { '' } - $csprojText = "`n `n Exe`n $manifestFramework`n enable`n enable`n false`n $itemGroup`n`n" + $extraProps = [Collections.Generic.List[string]]::new() + if ($isNetFramework) { + $extraProps.Add(' latest') + $extraProps.Add(' NU1603;NU1605') + } else { + $extraProps.Add(' false') + } + if ($manifestMode -eq 'test') { + $extraProps.Add(' true') + } + $extraPropsText = if ($extraProps.Count -gt 0) { "`n" + ($extraProps -join "`n") } else { '' } + $csprojText = "`n `n Exe`n $manifestFramework`n enable`n enable$extraPropsText`n $itemGroup`n`n" $buildTargetPath = Join-Path $tempDir 'candidate.csproj' [IO.File]::WriteAllText($buildTargetPath, $csprojText, [Text.UTF8Encoding]::new($false)) [IO.File]::WriteAllText((Join-Path $tempDir 'Program.cs'), $candidate.candidateSource + "`n", [Text.UTF8Encoding]::new($false)) @@ -1277,14 +1331,27 @@ if ($ValidateRunAction) { $stderr = ($buildOut + "`n" + $buildErr).Trim() $failReason = 'build-failed' } else { - $builtDll = Get-ChildItem -LiteralPath $artifactsDir -Recurse -File -Filter 'candidate.dll' -ErrorAction SilentlyContinue | - Sort-Object FullName | Select-Object -First 1 - if (-not $builtDll) { + $builtTarget = if ($isNetFramework) { + Get-ChildItem -LiteralPath $artifactsDir -Recurse -File -Filter 'candidate.exe' -ErrorAction SilentlyContinue | + Sort-Object FullName | Select-Object -First 1 + } else { + Get-ChildItem -LiteralPath $artifactsDir -Recurse -File -Filter 'candidate.dll' -ErrorAction SilentlyContinue | + Sort-Object FullName | Select-Object -First 1 + } + if (-not $builtTarget) { $exitCode = 1 $failReason = 'build-output-missing' } else { - $psi = [Diagnostics.ProcessStartInfo]::new($dotnetExe) - $psi.ArgumentList.Add($builtDll.FullName) + $psi = if ($isNetFramework) { + [Diagnostics.ProcessStartInfo]::new($builtTarget.FullName) + } else { + $p = [Diagnostics.ProcessStartInfo]::new($dotnetExe) + $p.ArgumentList.Add($builtTarget.FullName) + $p + } + if ($manifestMode -eq 'test') { + foreach ($a in @('--show-live-output', 'on', '--progress', 'off', '--no-banner')) { $psi.ArgumentList.Add($a) } + } $psi.WorkingDirectory = $tempDir $psi.RedirectStandardOutput = $true $psi.RedirectStandardError = $true @@ -1341,13 +1408,13 @@ if ($ValidateRunAction) { candidateSourceSha256 = $candidate.candidateSourceSha256 recipeSha256 = $candidate.recipeSha256 mode = $candidate.mode - framework = $Framework + framework = $candidate.framework passed = $true } $tmpReceipt = $receiptPath + '.tmp.' + [guid]::NewGuid().ToString('N') try { [IO.File]::WriteAllText($tmpReceipt, ($receipt | ConvertTo-Json -Depth 10 -Compress), [Text.UTF8Encoding]::new($false)) - if (-not $IsWindows) { & chmod 600 -- $tmpReceipt 2>$null } + if (-not $isWindowsHost) { & chmod 600 -- $tmpReceipt 2>$null } [IO.File]::Move($tmpReceipt, $receiptPath, $true) } finally { if (Test-Path -LiteralPath $tmpReceipt) { [IO.File]::Delete($tmpReceipt) } @@ -1364,7 +1431,7 @@ if ($ValidateRunAction) { category = $planEntry.category reasonCode = if ($passed) { 'validated' } else { $failReason } mode = $candidate.mode - framework = $Framework + framework = $candidate.framework converted = $candidate.converted sourceSha256 = $target.sourceSha256 candidateSourceSha256 = $candidate.candidateSourceSha256 @@ -1569,6 +1636,10 @@ if ($Verify -ne 'None' -and -not $resolvedVerificationEngine) { $r = Find-MatchingRecipe $ex if ($r -and ($r.intrinsicLimitation -or $r.PSObject.Properties['repository'] -or $r.mode -eq 'host' -or $r.PSObject.Properties['hostHarness'])) { continue } if (-not $r -and $ex.sourceSha256 -ceq '47B0C1FBA94E7B43C8753D0A8242801B328E6B463B6EEDAEB640D4F8A262633E') { continue } + $preflightFramework = if ($r -and $r.manifest -and $r.manifest.PSObject.Properties['framework'] -and $r.manifest.framework) { [string]$r.manifest.framework } else { $Framework } + if (Test-NetFrameworkTfm $preflightFramework) { + if ($Verify -eq 'Docker' -or -not $isWindowsHost) { continue } + } if ($r -and $r.manifest) { $needsStandaloneEnginePreflight = $true; break } if (-not $r -and -not $ex.raw.source -and $ex.eligible -and $ex.standalone -ne $ex.isTest -and $ex.source -notmatch '(?m)^#:') { $needsStandaloneEnginePreflight = $true; break } } @@ -1655,6 +1726,16 @@ foreach ($exObj in $normalizedExamples) { continue } if ($recipe -and -not $recipe.manifest -and $strategy -notin @('repository', 'host')) { throw 'A recipe must supply a standalone manifest, hostHarness, or pinned repository test.' } + $effectiveFramework = if ($strategy -eq 'repository') { + if ($recipe -and $recipe.PSObject.Properties['framework'] -and $recipe.framework) { [string]$recipe.framework } else { $Framework } + } elseif ($strategy -eq 'host') { + if ($recipe -and $recipe.PSObject.Properties['hostHarness'] -and $recipe.hostHarness -and $recipe.hostHarness.PSObject.Properties['framework'] -and $recipe.hostHarness.framework) { [string]$recipe.hostHarness.framework } + elseif ($recipe -and $recipe.manifest -and $recipe.manifest.PSObject.Properties['framework'] -and $recipe.manifest.framework) { [string]$recipe.manifest.framework } + else { $Framework } + } else { + if ($recipe -and $recipe.manifest -and $recipe.manifest.PSObject.Properties['framework'] -and $recipe.manifest.framework) { [string]$recipe.manifest.framework } else { $Framework } + } + $isNetFrameworkTarget = Test-NetFrameworkTfm $effectiveFramework $transports = @('native','docker') foreach ($transport in @('native','docker')) { if ($recipe -and $recipe.unsupportedTransports.$transport) { @@ -1663,6 +1744,11 @@ foreach ($exObj in $normalizedExamples) { $transports = @($transports | Where-Object { $_ -ne $transport }) } } + if ($isNetFrameworkTarget -and 'docker' -in $transports) { + $result['docker'] = 'Unsupported' + $result['dockerReason'] = $NetFrameworkDockerUnsupportedReason + $transports = @($transports | Where-Object { $_ -ne 'docker' }) + } if (-not $transports.Count) { $result.status = 'unsupported'; $result.coverage = 'Intrinsically non-executable' $result.reason = "Native: $($result.nativeReason) Docker: $($result.dockerReason)" @@ -1803,6 +1889,15 @@ foreach ($exObj in $normalizedExamples) { } $shouldRunVerify = $inVerifyScope -and ($Verify -eq 'Both' -or $Verify -eq $transport) + if ($shouldRunVerify -and $transport -eq 'native' -and $isNetFrameworkTarget -and -not $isWindowsHost) { + $shouldRunVerify = $false + $result['native'] = 'Unverified' + $result['nativeReason'] = "Framework '$effectiveFramework' targets .NET Framework and requires Windows for Native verification." + if (-not $Quiet) { + [Console]::Error.WriteLine("[skip] $($exObj.exampleId) (Native) -> Unverified ($effectiveFramework requires Windows)") + } + continue + } $engineMatchesEvidence = ($strategy -ne 'standalone') -or ( $resolvedVerificationEngine -and $resolvedVerificationEngine.Sha256 -and diff --git a/skills/dotnet-docfx-digest/scripts/integration-example.ps1 b/skills/dotnet-docfx-digest/scripts/integration-example.ps1 index 19c97292..be14da6f 100644 --- a/skills/dotnet-docfx-digest/scripts/integration-example.ps1 +++ b/skills/dotnet-docfx-digest/scripts/integration-example.ps1 @@ -11,7 +11,7 @@ function New-RepositoryExamplePair { ) if ($Repository -notmatch '^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$' -or $Commit -notmatch '^[a-fA-F0-9]{40}$' -or $Project -notmatch '^[A-Za-z0-9_./-]+\.csproj$' -or $Project.Split('/') -contains '..' -or $Project.StartsWith('/') -or - $Test -notmatch '^[A-Za-z0-9_.+]+$' -or $Framework -notmatch '^net\d+\.\d+$' -or + $Test -notmatch '^[A-Za-z0-9_.+]+$' -or $Framework -notmatch '^(?:net\d+\.\d+|net4\d+)$' -or $Image -notmatch '^mcr\.microsoft\.com/dotnet/sdk:[A-Za-z0-9_.-]+$') { throw 'Expected a pinned GitHub repository, relative project, exact xUnit method, TFM and official SDK image.' } @@ -111,10 +111,11 @@ function New-HostExamplePair { [int] $StartupDelayMs = 1000, [string] $Image = 'codebeltnet/csrun:10' ) - if ($Framework -notmatch '^net\d+\.\d+$') { throw "Invalid host framework: $Framework" } + if ($Framework -notmatch '^(?:net\d+\.\d+|net4\d+)$') { throw "Invalid host framework: $Framework" } if ($Sdk -notmatch '^[A-Za-z0-9_.]+$') { throw "Invalid host SDK: $Sdk" } if ($ProbeMethod -notmatch '^(GET|HEAD|POST|PUT|DELETE|OPTIONS|PATCH)$') { throw "Invalid host probeMethod: $ProbeMethod" } if ($TimeoutSeconds -lt 3 -or $TimeoutSeconds -gt 300) { throw "Host timeoutSeconds must be between 3 and 300." } + $isNetFramework = ($Framework -match '^net4\d+$') $cleanDependsOn = @($DependsOn | Where-Object { -not [string]::IsNullOrWhiteSpace([string]$_) }) foreach ($pin in $cleanDependsOn) { if ($pin -notmatch '^[A-Za-z0-9_.-]+@[A-Za-z0-9_.-]+$') { throw "Invalid host dependsOn pin: $pin" } @@ -123,8 +124,12 @@ function New-HostExamplePair { $parts = $_ -split '@', 2 " " }) + if ($isNetFramework -and -not ($cleanDependsOn | Where-Object { $_ -like 'Microsoft.NETFramework.ReferenceAssemblies@*' })) { + $pkgLines += ' ' + } $itemGroup = if ($pkgLines.Count) { "`n `n" + ($pkgLines -join "`n") + "`n " } else { '' } - $csproj = "`n `n Exe`n $Framework`n enable`n enable`n $itemGroup`n`n" + $langVersionLine = if ($isNetFramework) { "`n latest" } else { '' } + $csproj = "`n `n Exe`n $Framework`n enable`n enable$langVersionLine`n $itemGroup`n`n" $payloadJson = ([ordered]@{ csproj = $csproj source = $Source.Replace("`r`n", "`n").TrimEnd("`r", "`n") + "`n" From 4dc136be680cdf49175abf014429a7ebace4f8c3 Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sun, 22 Nov 2026 15:10:18 +0100 Subject: [PATCH 26/28] =?UTF-8?q?=E2=9C=85=20add=20net48=20native-only=20r?= =?UTF-8?q?un-action=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add end-to-end test coverage for net48 Native-only run actions, BuildRunActions.ps1 materialization, explicit docker reason preservation, and non-Windows host guards. --- .../scripts/test-run-actions.ps1 | 116 +++++++++++++++++- 1 file changed, 115 insertions(+), 1 deletion(-) diff --git a/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 b/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 index 74f9a6c7..4918ee87 100644 --- a/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 +++ b/skills/dotnet-docfx-digest/scripts/test-run-actions.ps1 @@ -1638,6 +1638,120 @@ if ($invalidParallelRun.ExitCode -ne 3) { throw "Expected --max-parallel 0 to exit 3; got $($invalidParallelRun.ExitCode)" } +# 12. Legacy .NET Framework (net48) standalone recipes: automatic Native-only delivery (docker: Unsupported), --validate-run-action on Windows, BuildRunActions.ps1 materialization, Markdown association, --summary-json exit 0, explicit docker reason preservation, and non-Windows verification/validation guards. +$net48Root = Join-Path $work 'net48-native-only' +$null = [IO.Directory]::CreateDirectory("$net48Root/docs") +[IO.File]::WriteAllText("$net48Root/docfx.json", (@{ + build = @{ + content = @(@{ files = @('docs/*.md') }) + template = @('default', 'modern') + dest = '_site' + } +} | ConvertTo-Json -Depth 10)) +$net48Source = @' +using System; +using System.Runtime.InteropServices; + +Console.WriteLine("NET48_OK:" + RuntimeInformation.FrameworkDescription); +'@.Replace("`r`n", "`n").TrimEnd("`n") +$net48ExplicitSource = @' +using System; + +Console.WriteLine("NET48_EXPLICIT_OK"); +'@.Replace("`r`n", "`n").TrimEnd("`n") +$net48Md = "---`nuid: Polyfill.CallerArgumentExpressionAttribute`n---`n# Polyfill`n`n``````csharp`n$net48Source`n```````n" +$net48ExplicitMd = "---`nuid: Polyfill.ExplicitDockerReason`n---`n# Explicit reason`n`n``````csharp`n$net48ExplicitSource`n```````n" +[IO.File]::WriteAllText("$net48Root/docs/Polyfill.md", $net48Md) +[IO.File]::WriteAllText("$net48Root/docs/ExplicitReason.md", $net48ExplicitMd) +$net48Hash = [Convert]::ToHexString([Security.Cryptography.SHA256]::HashData([Text.Encoding]::UTF8.GetBytes($net48Source))) +$net48ExplicitHash = [Convert]::ToHexString([Security.Cryptography.SHA256]::HashData([Text.Encoding]::UTF8.GetBytes($net48ExplicitSource))) +[IO.File]::WriteAllText("$net48Root/run-actions.settings.json", (@{ + examples = @( + @{ + uid = 'Polyfill.CallerArgumentExpressionAttribute' + exampleId = 'Polyfill.CallerArgumentExpressionAttribute#1' + fenceOrdinal = 1 + sourceSha256 = $net48Hash + manifest = @{ schemaVersion = 1; mode = 'console'; framework = 'net48'; dependsOn = @() } + } + @{ + uid = 'Polyfill.ExplicitDockerReason' + exampleId = 'Polyfill.ExplicitDockerReason#1' + fenceOrdinal = 1 + sourceSha256 = $net48ExplicitHash + manifest = @{ schemaVersion = 1; mode = 'console'; framework = 'net48'; dependsOn = @() } + unsupportedTransports = @{ docker = 'Custom explicit .NET Framework Docker limitation.' } + } + ) +} | ConvertTo-Json -Depth 15)) + +if ($IsWindows) { + $net48Val = (& $generator -RepoRoot $net48Root --validate-run-action Polyfill.CallerArgumentExpressionAttribute#1) | ConvertFrom-Json + if ($LASTEXITCODE -ne 0 -or -not $net48Val.validated -or $net48Val.framework -cne 'net48' -or $net48Val.stdout -notlike '*NET48_OK:.NET Framework*') { + throw "Windows --validate-run-action failed for net48 standalone recipe: $($net48Val | ConvertTo-Json -Compress)" + } +} + +$net48Engine = Join-Path $work 'net48-csrun.ps1' +[IO.File]::WriteAllText($net48Engine, "param([string]`$ManifestJson)`n`$m = `$ManifestJson | ConvertFrom-Json`nif (`$m.framework -cne 'net48') { throw `"Expected net48 framework, got `$(`$m.framework)`" }`n[Console]::Write('net48-verified')", [Text.UTF8Encoding]::new($false)) +$net48VerifySummary = (& $generator -RepoRoot $net48Root --verify Native --engine-path $net48Engine --summary-json) | ConvertFrom-Json +$net48VerifyExit = $LASTEXITCODE +if ($net48VerifyExit -ne 0 -or $net48VerifySummary.exitCode -ne 0 -or $net48VerifySummary.failed -ne 0 -or $net48VerifySummary.unresolved -ne 0) { + throw "net48 --verify Native --summary-json must exit 0 cleanly: $($net48VerifySummary | ConvertTo-Json -Depth 5 -Compress)" +} +$net48Entry = $net48VerifySummary.examples | Where-Object exampleId -ceq 'Polyfill.CallerArgumentExpressionAttribute#1' +$net48ExplicitEntry = $net48VerifySummary.examples | Where-Object exampleId -ceq 'Polyfill.ExplicitDockerReason#1' +$expectedNet48NativeState = if ($IsWindows) { 'Verified' } else { 'Unverified' } +if (-not $net48Entry -or $net48Entry.native -ne $expectedNet48NativeState -or $net48Entry.docker -ne 'Unsupported' -or $net48Entry.dockerReason -notlike '*.NET Framework*') { + throw "net48 entry must report native=$expectedNet48NativeState and docker=Unsupported with a clear reason: $($net48Entry | ConvertTo-Json -Compress)" +} +if (-not $net48ExplicitEntry -or $net48ExplicitEntry.docker -ne 'Unsupported' -or $net48ExplicitEntry.dockerReason -cne 'Custom explicit .NET Framework Docker limitation.') { + throw "Explicit unsupportedTransports.docker reason must be preserved on net48 recipes: $($net48ExplicitEntry | ConvertTo-Json -Compress)" +} + +$net48ManifestDoc = Get-Content "$net48Root/run-actions.manifest.json" -Raw | ConvertFrom-Json +$net48ManifestEntry = $net48ManifestDoc.examples | Where-Object exampleId -ceq 'Polyfill.CallerArgumentExpressionAttribute#1' +if (-not $net48ManifestEntry -or (@($net48ManifestEntry.transports) -join ',') -cne 'native' -or $net48ManifestEntry.manifest.framework -cne 'net48') { + throw "run-actions.manifest.json must record transports=['native'] and manifest.framework='net48': $($net48ManifestEntry | ConvertTo-Json -Depth 10 -Compress)" +} + +$global:LASTEXITCODE = 0 +& "$net48Root/BuildRunActions.ps1" | Out-Null +if ($LASTEXITCODE -ne 0) { throw 'BuildRunActions.ps1 failed for net48 manifest.' } +$net48NativePath = "$net48Root/run-actions/$($net48Entry.id)/native.ps1" +$net48DockerPath = "$net48Root/run-actions/$($net48Entry.id)/docker.ps1" +if (-not (Test-Path -LiteralPath $net48NativePath) -or (Test-Path -LiteralPath $net48DockerPath)) { + throw 'BuildRunActions.ps1 must materialize only native.ps1 (no docker.ps1) for net48 recipes.' +} +if ((Get-FileHash -LiteralPath $net48NativePath -Algorithm SHA256).Hash -cne $net48Entry.nativeSha256) { + throw 'Materialized net48 native.ps1 hash drifted from generator.' +} +$net48PageText = Get-Content "$net48Root/docs/Polyfill.md" -Raw +if (-not $net48PageText.Contains('View Native Script') -or $net48PageText.Contains('View Docker Script')) { + throw 'Markdown association for net48 recipe must render only the Native run action.' +} + +# Simulated non-Windows host guard: --verify Native skips net48 cleanly without corrupting the manifest, and --validate-run-action fails fast. +$nonWinGenPath = Join-Path $work 'generate-run-actions-nonwin.ps1' +$escapedSkillScriptsDir = $PSScriptRoot.Replace("'", "''") +$nonWinGenText = ([IO.File]::ReadAllText($generator)).Replace('$isWindowsHost = $IsWindows', '$isWindowsHost = $false').Replace('Join-Path $PSScriptRoot ', "Join-Path '$escapedSkillScriptsDir' ") +if ($nonWinGenText -ceq [IO.File]::ReadAllText($generator)) { throw 'Could not construct non-Windows generator simulation.' } +[IO.File]::WriteAllText($nonWinGenPath, $nonWinGenText, [Text.UTF8Encoding]::new($false)) +$net48ManifestBeforeNonWin = [IO.File]::ReadAllText("$net48Root/run-actions.manifest.json") +$nonWinSummary = (& $nonWinGenPath -RepoRoot $net48Root --verify Native --summary-json 2>$null) | ConvertFrom-Json +$nonWinExit = $LASTEXITCODE +$nonWinEntry = $nonWinSummary.examples | Where-Object exampleId -ceq 'Polyfill.CallerArgumentExpressionAttribute#1' +if ($nonWinExit -ne 0 -or $nonWinSummary.failed -ne 0 -or -not $nonWinEntry -or $nonWinEntry.native -ne 'Unverified' -or $nonWinEntry.docker -ne 'Unsupported' -or $nonWinEntry.nativeReason -notlike '*Windows*') { + throw "Non-Windows --verify Native must skip net48 cleanly and surface Windows prerequisite: $($nonWinSummary | ConvertTo-Json -Depth 5 -Compress)" +} +if ([IO.File]::ReadAllText("$net48Root/run-actions.manifest.json") -cne $net48ManifestBeforeNonWin) { + throw 'Non-Windows --verify Native corrupted run-actions.manifest.json.' +} +$nonWinVal = (& $nonWinGenPath -RepoRoot $net48Root --validate-run-action Polyfill.CallerArgumentExpressionAttribute#1) | ConvertFrom-Json +if ($LASTEXITCODE -ne 1 -or $nonWinVal.validated -or $nonWinVal.reasonCode -cne 'windows-required-for-netframework') { + throw "Non-Windows --validate-run-action for net48 must fail fast with windows-required-for-netframework: $($nonWinVal | ConvertTo-Json -Compress)" +} + $global:LASTEXITCODE = 0 -Write-Host "Run-action delivery passed: paired console, test, dependency-backed test, repository test and host harness; deterministic plan/explain, type-owned dependency resolution/preflight, validation-gated apply, multi-fence uid#ordinal identity, whitespace/semantic recipe check, atomic manifest preservation, bounded parallel verification and append-only stderr progress/heartbeat, --summary-json/--verify-changed/--verify --id, exact pins and source, coverage classifications, independent verification state, incremental assets, stale cleanup, standalone BuildRunActions.ps1 materialization and modern DocFX render. Fixture: $work" +Write-Host "Run-action delivery passed: paired console, test, dependency-backed test, repository test, host harness and net48 Native-only legacy .NET Framework recipes; deterministic plan/explain, type-owned dependency resolution/preflight, validation-gated apply, multi-fence uid#ordinal identity, whitespace/semantic recipe check, atomic manifest preservation, bounded parallel verification and append-only stderr progress/heartbeat, --summary-json/--verify-changed/--verify --id, exact pins and source, coverage classifications, independent verification state, incremental assets, stale cleanup, standalone BuildRunActions.ps1 materialization and modern DocFX render. Fixture: $work" exit 0 From 61a5c98ec83e42544fd9b696993a022e50c060a5 Mon Sep 17 00:00:00 2001 From: aicia-bot Date: Sun, 22 Nov 2026 15:10:19 +0100 Subject: [PATCH 27/28] =?UTF-8?q?=F0=9F=93=9D=20document=20net48=20native-?= =?UTF-8?q?only=20run=20actions=20in=20readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Note Native-only .NET Framework (net48) run-action support and automatic docker: Unsupported handling in the dotnet-docfx-digest overview. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3d99f496..b58f8dd7 100644 --- a/README.md +++ b/README.md @@ -690,7 +690,7 @@ Dependency updates look simple until a repository encodes compatibility in its p ### Why dotnet-docfx-digest? -Opt in with `dotnet-docfx-digest csrun` to inventory documentation examples, resolve their published dependencies or maintained integration tests, and generate paired Native and Docker PowerShell assets. Standalone run scripts execute the C# shown on the page. Each visible sample includes its entry point or test, required inputs, and any assertions. Pinned repository tests are identified by name. The coverage report identifies examples that still need investigation, and verification remains independent for each transport. Generated copy controls and fallback links compose with existing template startup code, including Context7. See [run actions](skills/dotnet-docfx-digest/references/run-actions.md). +Opt in with `dotnet-docfx-digest csrun` to inventory documentation examples, resolve their published dependencies or maintained integration tests, and generate paired Native and Docker PowerShell assets (plus Native-only `.NET Framework` `net48` assets with automatic `docker: Unsupported` handling for conditionally compiled `netstandard2.0` APIs). Standalone run scripts execute the C# shown on the page. Each visible sample includes its entry point or test, required inputs, and any assertions. Pinned repository tests are identified by name. The coverage report identifies examples that still need investigation, and verification remains independent for each transport. Generated copy controls and fallback links compose with existing template startup code, including Context7. See [run actions](skills/dotnet-docfx-digest/references/run-actions.md). API documentation rots the moment code changes. A new public type ships without a namespace page, an extension method never makes it into the `Extension Members` table, a copy/paste example silently stops compiling, and "availability" drifts away from the real target frameworks. The usual fix — telling an agent to "remember to update the docs" — relies on AI memory, which is exactly the thing that fails on the next change. From 7e48d677ca71fc306bff503ab614977032b53b3a Mon Sep 17 00:00:00 2001 From: gimlichael Date: Sun, 22 Nov 2026 18:04:03 +0100 Subject: [PATCH 28/28] =?UTF-8?q?=E2=9C=A8=20update=20changelog=20for=20v0?= =?UTF-8?q?.13.2=20release=20with=20new=20features=20and=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de0ab100..fde9cdfe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,22 +6,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ## [0.13.2] - 2026-11-22 -This is a minor release that adds local SHA-256-verified `csrun.ps1` caching with ETag revalidation and rate-limit fallback in `dotnet-csrun`, extends `dotnet-docfx-digest` with deterministic Roslyn AST run-action planning, assembly/type-ownership dependency resolution, multi-fence `uid#` recipe health checks, validation-gated candidate application, first-class `mode: host` / `hostHarness` execution, atomic manifest writes, and scoped offline verification, and updates both skills' guidance, catalog entries, evals, and offline test suites. +This is a minor release that adds local SHA-256-verified `csrun.ps1` caching with ETag revalidation, rate-limit fallback, and Windows ACL protection in `dotnet-csrun`, extends `dotnet-docfx-digest` with deterministic Roslyn AST run-action planning, assembly/type-ownership dependency resolution, multi-fence `uid#` recipe health checks, validation-gated candidate application, first-class `mode: host` / `hostHarness` execution, Native-only `net48` run-action support, bounded parallel verification with `stderr` progress/heartbeats, and atomic manifest writes, documents repository-wide tool observability and concurrency guidelines in `AGENTS.md`, and fixes props ancestor scoping, async wrapper `await` emission, manifest/cache preservation, and host timeout handling. ### Added -- `dotnet-csrun` `Resolve-CsrunEngine` helper in `scripts/sample-tools.ps1` that fetches the latest stable `csrun.ps1` release once, verifies its SHA-256 digest, caches it with `engine.json` metadata in a private user-owned directory (`%LOCALAPPDATA%/codebeltnet/csrun-cache` on Windows, `$HOME/.cache/codebeltnet/csrun-cache` on Unix, or `CSRUN_CACHE_DIR`) with ownership, reparse-point, and `engine.lock` checks, revalidates expired entries via `If-None-Match` (`304 Not Modified`), and falls back to the verified cache on HTTP `403`/`429` rate-limit responses, +- `dotnet-csrun` `Resolve-CsrunEngine` helper in `scripts/sample-tools.ps1` that fetches the latest stable `csrun.ps1` release once, verifies its SHA-256 digest, caches it with `engine.json` metadata in a private user-owned directory (`%LOCALAPPDATA%/codebeltnet/csrun-cache` on Windows, `$HOME/.cache/codebeltnet/csrun-cache` on Unix, or `CSRUN_CACHE_DIR`) with ownership, reparse-point, `engine.lock`, and Windows ACL inheritance and write-access checks, revalidates expired entries via `If-None-Match` (`304 Not Modified`), and falls back to the verified cache on HTTP `403`/`429` rate-limit responses, +- `dotnet-csrun` hero image asset (`skills/dotnet-csrun/assets/hero.jpg`), - `dotnet-docfx-digest` `generate-run-actions.ps1` `-EnginePath` / `--engine-path` parameter and one-time `Resolve-CsrunEngine` verification preflight for standalone examples, recording `engineSha256` and optional `engineTag` in verification evidence and failing with `failureReason` (`github-403-no-cached-engine`, `github-429-no-cached-engine`, `engine-path-not-found`, or `engine-resolution-failed`) while keeping `run-actions.manifest.json`, `BuildRunActions.ps1`, materialized `native.ps1`/`docker.ps1` artifacts, and cache hashes bound to the GitHub-referencing scripts, - `dotnet-docfx-digest` deterministic Roslyn AST run-action classification and planning via `docfx.cs --run-action-inventory` (`ClassifyRunActionExample`, `BuildConvertedConsoleSource`) and `generate-run-actions.ps1` `--run-action-plan` (`-RunActionPlan`) / `--explain ` (`-Explain`) with `--json`, categorizing fences (`already-standalone`, `top-level`, `wrapper-clean`, `wrapper-members`, `host-blocking`, `host-parameterized`, `no-entry`, `syntax-error`, `intrinsic`) and reporting `convertible`, `suggestedMode`, `entryPoint`, 1-based `blockingConstruct`/`blockingLine`, `manualHarness`, and convertible `candidateSource`, - `dotnet-docfx-digest` assembly and type-ownership dependency resolution (`BuildRunActionDependencyIndex`, `ResolveRunActionDependencies`) and `--resolve-dependencies ` (`-ResolveDependencies`), resolving `dependsOn` pins, `sdk`, and `frameworkReferences` from `.csproj`, `Directory.Packages.props`, `Directory.Build.props`, existing recipe pins, local NuGet cache, git SemVer tags, and `TRUSTED_PLATFORM_ASSEMBLIES` BCL metadata while surfacing `missing-package` and `ambiguous-type` preflight diagnostics, - `dotnet-docfx-digest` stable multi-fence `#` identity (`exampleId`, `fenceOrdinal`, `whitespaceSha256`) and `--check-recipes` (`-CheckRecipes`) health checks detecting `moved`, `duplicate-uid`, and `orphaned` (`whitespace-only` vs `semantic`, `uid-removed`, or `unknown`) recipes, - `dotnet-docfx-digest` validation-gated candidate workflow via `--validate-run-action ` (`-ValidateRunAction`), which builds and runs convertible candidates in an isolated OS temp workspace with `--timeout-seconds` (default `60`) and stores a hash-bound validation receipt, paired with `--apply-run-action ` (`-ApplyRunAction`), which refuses unvalidated edits with `validation-required` before surgically updating only the target fence and atomically updating `run-actions.settings.json` without overwriting recipes matching sibling fences, - `dotnet-docfx-digest` first-class `mode: host` / `hostHarness` execution (`strategy: "host"`) in `scripts/integration-example.ps1` (`New-HostExamplePair`), `assets/BuildRunActions.ps1` (`New-HostPair`), and `generate-run-actions.ps1`, binding an ephemeral loopback port, building and launching the host, executing an HTTP probe or startup delay within `timeoutSeconds`, and shutting down the host process tree across Native and Docker transports, -- `dotnet-docfx-digest` `generate-run-actions.ps1` GNU-style `--*` CLI flag parsing, schema v2 `--summary-json` reporting, `--verify-changed` reuse of cached `Verified` evidence for unchanged manifest entries, `--id ` (`-TargetId`) scoped verification, atomic `Write-AtomicChanged` manifest writes preserving `run-actions.manifest.json` (`manifestPreserved`) on verification failure, and documented exit codes (`0` clean, `1` failure, `2` unresolved, `3` invalid arguments/selector). +- `dotnet-docfx-digest` Native-only `.NET Framework` (`net48`) run-action support in `generate-run-actions.ps1` and `assets/BuildRunActions.ps1`, emitting `docker: Unsupported` handling and Windows host validation guards for conditionally compiled `netstandard2.0` APIs, +- `dotnet-docfx-digest` `generate-run-actions.ps1` GNU-style `--*` CLI flag parsing, bounded parallel verification (`--max-parallel`, `--max-docker-parallel`) with append-only `stderr` progress and 10-second heartbeat logging (`--quiet`, `--no-heartbeat`, `--heartbeat-seconds`), schema v2 `--summary-json` reporting on `stdout`, `--verify-changed` reuse of cached `Verified` evidence for unchanged manifest entries, `--id ` (`-TargetId`) scoped verification, atomic `Write-AtomicChanged` manifest writes preserving `run-actions.manifest.json` (`manifestPreserved`) on verification failure, and documented exit codes (`0` clean, `1` failure, `2` unresolved, `3` invalid arguments/selector). ### Changed -- `dotnet-csrun` and `dotnet-docfx-digest` skill guidance (`SKILL.md` and `references/`), `README.md` catalog summaries, `dotnet-docfx-digest` evals (`evals/evals.json` case `125`), and offline PowerShell regression suites (`test-sample-tools.ps1` and `test-run-actions.ps1`) now cover one-time cached `csrun.ps1` resolution via `-EnginePath`, deterministic run-action planning, type-owned dependency preflight, multi-fence `uid#` recipe checks, validation-gated apply, `mode: host` harnesses, atomic manifest preservation, and scoped verification while restricting `intrinsicLimitation` strictly to code with no observable runtime behavior. +- `AGENTS.md` adds the `Complementary Tool Observability and Concurrency` section requiring append-only `stderr` progress and periodic heartbeats, clean `stdout` for structured output, bounded concurrency, thread-safe aggregation with atomic writes, and deterministic test coverage, +- `dotnet-csrun` and `dotnet-docfx-digest` skill guidance (`SKILL.md`, `references/`, and `scripts/agents.cs`), `README.md` catalog summaries and overview, `dotnet-docfx-digest` evals (`evals/evals.json` case `125`), and offline PowerShell regression suites (`test-sample-tools.ps1` and `test-run-actions.ps1` with a generator subprocess shim) updated for cached `csrun.ps1` resolution with Windows cache ACLs, deterministic run-action planning, type-owned dependency preflight, multi-fence `uid#` recipe checks, validation-gated apply, `mode: host` harnesses, `net48` Native-only assets, bounded parallel verification, and scoped DocFX Markdown rules (clarifying that limiting Markdown edits to `.docfx/api/` applies only during DocFX API documentation or `csrun` maintenance) while restricting `intrinsicLimitation` strictly to code with no observable runtime behavior. + +### Fixed + +- `dotnet-docfx-digest` scopes `Directory.Build.props` and `Directory.Packages.props` resolution strictly along each project ancestor chain, prioritizes required project package versions, and avoids emitting double `await` in async expression-bodied wrappers, +- `dotnet-docfx-digest` preserves `sdk` and `frameworkReferences` in standalone manifests, treats string-literal whitespace edits as semantic changes, invalidates cached verification when the engine hash changes, and preserves the previous manifest on hard verification failures, +- `dotnet-docfx-digest` enforces a shared timeout deadline across host sample build, probe, and startup phases with stalled `dotnet build` process-tree cleanup, and fails with a timeout error when an empty-probe host runner hits its deadline before the full `startupDelayMs` observation window completes. ## [0.13.1] - 2026-11-21