Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
0246f9c
✨ add dotnet-csrun skill for executable csharp evidence
aicia-bot Nov 16, 2026
640bdec
✅ add validation for dotnet-csrun skill
aicia-bot Nov 16, 2026
c22a216
📝 document dotnet-csrun in readme
aicia-bot Nov 16, 2026
f675031
🐛 set console output encoding in csrun validator
aicia-bot Nov 16, 2026
c5251be
✅ add net11 fixture for dotnet-csrun eval
aicia-bot Nov 16, 2026
b428f58
🔨 extend csrun validator with feasibility fixtures
aicia-bot Nov 16, 2026
7edb7e7
♻️ clarify csrun feasibility and recovery rules
aicia-bot Nov 16, 2026
ee1265e
✅ add csrun feasibility eval fixtures
aicia-bot Nov 16, 2026
fea4a15
🔨 add csrun sample artifact helpers
aicia-bot Nov 16, 2026
05fbde0
🔨 extend csrun validation for lifecycle checks
aicia-bot Nov 16, 2026
53582ac
✨ add csrun verify, repair, and audit lifecycle
aicia-bot Nov 16, 2026
045d8bc
✅ add csrun lifecycle eval cases and fixtures
aicia-bot Nov 16, 2026
ec9ac05
♻️ compose docfx digest with csrun runtime evidence
aicia-bot Nov 16, 2026
68494d4
📝 update readme for csrun lifecycle
aicia-bot Nov 16, 2026
38efddf
✨ add changelog entry for dotnet-csrun and docfx integration
gimlichael Nov 16, 2026
56b5075
♻️ update docker image inspection order for sdk and runtime inventory
gimlichael Nov 16, 2026
66d86e8
📝 document source-bound sample context in docfx readme
aicia-bot Nov 17, 2026
a44b50f
♻️ document source-bound csrun examples in docfx skill
aicia-bot Nov 17, 2026
396f903
✨ validate source-bound docfx sample contexts
aicia-bot Nov 17, 2026
8da9f39
✅ cover source-bound sample and entry-point checks
aicia-bot Nov 17, 2026
7d1b234
✅ add managed application example eval fixtures
aicia-bot Nov 17, 2026
aab0952
🦺 validate bound samples against native build evidence
aicia-bot Nov 17, 2026
143bd67
✅ add bound-context regressions for docfx samples
aicia-bot Nov 17, 2026
d3aaacf
📝 document native sample evidence in docfx references
aicia-bot Nov 17, 2026
6a9a7a9
📝 describe bound sample context validation in readme
aicia-bot Nov 17, 2026
beed471
📝 update changelog for dotnet-csrun and docfx enhancements
gimlichael Nov 17, 2026
c9fef7e
📝 add verified standalone host example
aicia-bot Nov 17, 2026
da8e67a
♻️ defer repository-backed examples to docfx
aicia-bot Nov 17, 2026
b5968c5
✨ add repository-backed one-shot docfx examples
aicia-bot Nov 17, 2026
ccf5923
✅ run one-shot docfx example checks in validator
aicia-bot Nov 17, 2026
23adc34
♻️ link docfx api examples to one-shot references
aicia-bot Nov 17, 2026
4ca9f01
📝 add optional contextual source reference guidance
aicia-bot Nov 17, 2026
d770964
✅ add contextual reference eval cases for docfx
aicia-bot Nov 17, 2026
27981a9
🐛 exit cleanly after expected integration negative controls
aicia-bot Nov 17, 2026
0617f6f
✅ add contextual reference checks to docfx validation
aicia-bot Nov 17, 2026
5a7b22a
📝 mention contextual source references in readme
aicia-bot Nov 17, 2026
a977762
✨ add contextual source references and one-shot examples to docfx
gimlichael Nov 17, 2026
18490d1
🐛 keep docker build output removable on linux
aicia-bot Nov 17, 2026
03274ab
✅ cover linux docker uid and gid branches
aicia-bot Nov 17, 2026
b0a0d38
♻️ generalize repository example pair generation
aicia-bot Nov 17, 2026
184b7b8
✨ add run action inventory export to docfx validator
aicia-bot Nov 17, 2026
9459b74
✨ add copy controls for generated run actions
aicia-bot Nov 17, 2026
e0edb71
✨ add generate-run-actions script and tests
aicia-bot Nov 17, 2026
49e8378
📝 document opt-in run actions in skill instructions
aicia-bot Nov 17, 2026
a0ea534
📚 mention run actions in readme
aicia-bot Nov 17, 2026
811fb74
📝 require paired native and docker run delivery
aicia-bot Nov 17, 2026
4503d56
✅ assert paired run action delivery and status
aicia-bot Nov 17, 2026
f85eda6
🐛 reject csrun test runs without passing summaries
aicia-bot Nov 17, 2026
1c2ad2c
🐛 preserve line endings and exact repo path casing in run actions
aicia-bot Nov 17, 2026
455e968
📝 document passing test requirement for run action verification
aicia-bot Nov 17, 2026
a396b3c
🐛 reap docker sdk build processes after integration runs
aicia-bot Nov 17, 2026
7815ed0
✨ add harness and coverage states to run actions
aicia-bot Nov 17, 2026
650e5a4
✅ run action coverage test in docfx suite
aicia-bot Nov 17, 2026
be45f43
♻️ restructure run action contract around coverage
aicia-bot Nov 17, 2026
aef5d97
📝 describe coverage-driven run actions in readme
aicia-bot Nov 17, 2026
0dedba8
💄 update run action copy controls with preview
aicia-bot Nov 17, 2026
1050908
✅ check run action clipboard, preview and touch behavior
aicia-bot Nov 17, 2026
b573934
📝 document run action preview and browser checks
aicia-bot Nov 17, 2026
8e20c5e
♻️ delegate csrun test verification to the engine
aicia-bot Nov 17, 2026
265c461
♻️ request strict test verification only for test examples
aicia-bot Nov 17, 2026
4e77705
🐛 keep recipe explanation visible when toolbar attaches
aicia-bot Nov 18, 2026
101facc
✅ resolve first matching tool in run action checks
aicia-bot Nov 18, 2026
e6fa325
🔒️ pin csrun engine to verified v0.2.1 release
aicia-bot Nov 18, 2026
e95b0f6
♻️ adapt run action test checks to pinned csrun
aicia-bot Nov 18, 2026
d6dbb93
🐛 split comma-separated skill names in sync script
aicia-bot Nov 18, 2026
190ae06
🐛 wrap csrun run action scripts as one paste unit
aicia-bot Nov 18, 2026
7717e44
✅ verify complete run action script copy
aicia-bot Nov 18, 2026
6c8b5ba
🐛 fix sample compile attribution and split comma-separated skill names
gimlichael Nov 18, 2026
9eb83de
🔧 fix skill parameter handling for pwsh invocation
gimlichael Nov 18, 2026
c3eb6de
📝 resolve compatible scaffold dependencies across major versions
aicia-bot Nov 18, 2026
65b8c4f
🔨 discover listed stable package candidates
aicia-bot Nov 18, 2026
75a8ab6
🍱 update scaffold testing guidance
aicia-bot Nov 18, 2026
370b44f
✅ update scaffold validation for current runtimes
aicia-bot Nov 18, 2026
fb84fb7
👷 install SDKs for template validation
aicia-bot Nov 18, 2026
0f5bb90
🍱 clarify tracked scaffold bot guidance
aicia-bot Nov 18, 2026
0747dae
✅ verify scaffold bot guidance
aicia-bot Nov 18, 2026
1cc30c0
📝 update changelog for v0.13.0 release details and enhancements
gimlichael Nov 20, 2026
320ac88
🔨 resolve latest csrun release for native run actions
aicia-bot Nov 20, 2026
c73b250
📝 document latest csrun release resolution
aicia-bot Nov 20, 2026
bb90e0d
♻️ rename docfx run actions command to csrun
aicia-bot Nov 20, 2026
b011d9d
📝 update readme for csrun run actions command
aicia-bot Nov 20, 2026
440d21a
♻️ update description for dotnet-docfx-digest run actions
gimlichael Nov 20, 2026
c3d189a
♻️ remove hidden harness recipes from run action generation
aicia-bot Nov 20, 2026
c014b68
📝 document visible sample contract for run actions
aicia-bot Nov 20, 2026
13a9e45
♻️ verify latest csrun release in docker wrapper
aicia-bot Nov 20, 2026
dba806f
📝 document csrun latest release verification
aicia-bot Nov 20, 2026
e8ecd50
📝 describe csrun run action coverage in readme
aicia-bot Nov 20, 2026
1d206e0
📝 require explicit xunit imports in run action recipes
aicia-bot Nov 20, 2026
08ceca6
✅ update run action sample test for explicit xunit import
aicia-bot Nov 20, 2026
e75fb3a
💄 show check icon after run action copy
aicia-bot Nov 20, 2026
5659584
📝 document toolbar-only refresh for existing sites
aicia-bot Nov 20, 2026
b29ae0f
✅ verify toolbar refresh keeps run action payloads
aicia-bot Nov 20, 2026
ab581d6
💄 match run action checkmark to docfx clipboard
aicia-bot Nov 20, 2026
0d1a667
✅ verify run action checkmark matches docfx in both themes
aicia-bot Nov 20, 2026
cac159f
💄 update contextual source references and rename generate-run-actions…
gimlichael Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/validate-skill-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install .NET LTS and STS SDKs
if: matrix.name == 'templates'
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
10.0.x
11.0.x

- name: Install DocFX CLI
if: matrix.name == 'docfx'
shell: pwsh
Expand Down
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,29 @@ 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.0] - 2026-11-20

This is a minor release that adds the `dotnet-csrun` skill for executable C# evidence, adds source-bound samples, contextual source references, repository-backed one-shot examples, and opt-in run actions to `dotnet-docfx-digest`, changes its example authoring to match the execution context, updates the .NET scaffolds to resolve current compatible test packages across major lines, and fixes sample compile attribution and comma-separated `-Skill` lists in the sync script.

### Added

- `dotnet-csrun` skill for creating, verifying, repairing, and auditing small standalone C# console examples and genuine xUnit v3 tests, executed through native or Docker transports with independent verified, compiled only, or unverified status per transport, together with its validator and eval fixtures,
- `dotnet-docfx-digest` source-bound sample contexts that bind each C# fence to a maintained project and source file, and reject bindings that are not evaluated Compile items for the selected framework and configuration,
- `dotnet-docfx-digest` rejection of a `ManagedApplicationFixture` entry point collapsed into a test-owned source unit, and of displayed excerpts excluded by conditional compilation for the selected framework and configuration,
- `dotnet-docfx-digest` repository-backed one-shot examples that pin a maintained test or application project when an API requires an actual application, runner, or distinct assembly identity instead of a standalone program,
- `dotnet-docfx-digest` optional contextual source references that link maintained source after each example's outcome and execution guidance,
- `dotnet-docfx-digest` `csrun` command (also accepted as `generate-run-actions`) that inventories documentation examples, resolves their published dependencies or maintained integration tests, and generates paired Native and Docker PowerShell assets with a coverage report.

### Changed

- `dotnet-docfx-digest` example authoring chooses standalone programs, library usage, multi-project scenarios, framework integrations, or labelled partial excerpts from the actual execution context instead of requiring every generated `csharp` fence to be a complete compilation unit, and composes with `dotnet-csrun` for compatible standalone runtime examples while keeping its discovery, placement, project-aware compilation, and DocFX build gates authoritative,
- `dotnet-new-app-slnx` and `dotnet-new-lib-slnx` resolve package versions to the newest listed stable candidate that is compatible with each selected target framework, instead of pinning the Codebelt 12.x and xUnit 4.x test-stack lines, and `dotnet-new-app-slnx` no longer aligns ASP.NET Core packages to the target framework major.

### Fixed

- `dotnet-docfx-digest` attributes sample compile failures to each project from the native MSBuild binary log instead of the shared batch exit code, so a shared batch failure no longer marks unrelated projects as failed,
- `scripts/sync-skill-install.ps1` splits comma-separated `-Skill` values, so `pwsh -File` invocations with `a,b` sync each named skill instead of treating the whole list as one name.

## [0.12.1] - 2026-11-15

This is a minor release that adds initial-release support, verified new-contributor recognition, and Markdown file delivery to `git-remote-release`, and makes Codex CLI with `gpt-6-luna` the Codebelt Reference evaluation configuration after removing the GitHub Copilot CLI eval runner.
Expand Down Expand Up @@ -810,6 +833,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.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
[0.12.0]: https://github.com/codebeltnet/agentic/compare/v0.11.2...v0.12.0
[0.11.2]: https://github.com/codebeltnet/agentic/compare/v0.11.1...v0.11.2
Expand Down
12 changes: 11 additions & 1 deletion README.md

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion scripts/sync-skill-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,14 @@ function Test-SkillTree {
$repoRoot = Get-RepoRoot
$skillsRoot = Join-Path $repoRoot 'skills'

if (-not $Skill -or $Skill.Count -eq 0) {
if ($PSBoundParameters.ContainsKey('Skill')) {
# `pwsh -File` passes `-Skill a,b` as one string. Split it before validating each name below.
$Skill = @($Skill | ForEach-Object { $_ -split ',' } | ForEach-Object { $_.Trim() } | Where-Object { $_ })
if ($Skill.Count -eq 0) {
throw 'Specify at least one skill name with -Skill.'
}
}
else {
$Skill = @(Get-ChildItem -LiteralPath $skillsRoot -Directory | ForEach-Object { $_.Name })
}

Expand Down
100 changes: 41 additions & 59 deletions scripts/tests/test-scaffold-mtp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,61 +29,64 @@ function Invoke-DotNet {
return ($output -join [Environment]::NewLine)
}

function Assert-DotNetFailure {
param([string[]]$Arguments, [string]$ExpectedError)
$output = @(& dotnet @Arguments 2>&1)
$exitCode = $LASTEXITCODE
$diagnostics = $output -join [Environment]::NewLine
if ($exitCode -eq 0 -or $diagnostics -notmatch $ExpectedError) {
throw "dotnet $($Arguments -join ' ') must fail with '$ExpectedError' (exit $exitCode):`n$diagnostics"
}
}

try {
[void][System.IO.Directory]::CreateDirectory($workspace)
# Test version-line selection with a newer future major, prereleases, and mismatched ASP.NET majors.
# Verify candidate discovery across major lines, excluding unlisted releases and prereleases.
& {
function Invoke-RestMethod {
param([string]$Uri)
if ($Uri.EndsWith('/v3/index.json')) {
return @{ resources = @(@{ '@type' = 'PackageBaseAddress/3.0.0'; '@id' = 'https://fixture.invalid/' }) }
return @{ resources = @(@{ '@type' = 'RegistrationsBaseUrl/3.6.0'; '@id' = 'https://fixture.invalid/' }) }
}
if ($Uri.EndsWith('/older-page.json')) {
return @{ items = @(@{ catalogEntry = @{ version = '11.2.1'; listed = $true } }) }
}
$versions = switch -Regex ($Uri) {
'/codebelt.extensions.xunit.app/' { @('11.2.1', '12.0.0', '12.0.1', '12.1.0-preview.1', '13.0.0'); break }
'/codebelt.extensions.xunit.app/' { @('12.0.2', '12.0.10', '12.1.0-preview.1', '13.0.0+build-1', '14.0.0'); break }
'/xunit.v3(?:.runner.console)?/' { @('3.2.2', '4.0.0', '4.0.1', '4.1.0-preview.1', '5.0.0'); break }
'/microsoft.aspnetcore.' { @('8.0.31', '9.0.14', '10.0.12', '11.0.0'); break }
'/microsoft.aspnetcore.' { @('10.0.12', '11.0.0'); break }
default { @('1.0.0', '1.0.1', '2.0.0-preview.1') }
}
return @{ versions = $versions }
$leaves = @($versions | ForEach-Object {
@{ catalogEntry = @{ version = $_; listed = ($_ -ne '14.0.0') } }
})
$pages = @([pscustomobject]@{ items = $leaves })
if ($Uri -like '*/codebelt.extensions.xunit.app/*') {
$pages += [pscustomobject]@{ '@id' = 'https://fixture.invalid/older-page.json' }
}
return @{ items = $pages }
}
$resolved = & (Join-Path $repoRoot 'skills/dotnet-new-app-slnx/scripts/resolve-package-versions.ps1') -TargetFramework net10.0 | ConvertFrom-Json
foreach ($pair in @(
@('{CODEBELT_EXTENSIONS_XUNIT_APP_VERSION}', '12.0.1'),
@('{XUNIT_V3_VERSION}', '4.0.1'),
@('{XUNIT_V3_RUNNER_CONSOLE_VERSION}', '4.0.1'),
@('{MICROSOFT_ASPNETCORE_OPENAPI_VERSION}', '10.0.12')
@('{CODEBELT_EXTENSIONS_XUNIT_APP_VERSION}', '13.0.0+build-1'),
@('{XUNIT_V3_VERSION}', '5.0.0'),
@('{XUNIT_V3_RUNNER_CONSOLE_VERSION}', '5.0.0'),
@('{MICROSOFT_ASPNETCORE_OPENAPI_VERSION}', '11.0.0')
)) {
if ($resolved.($pair[0]).version -ne $pair[1]) { throw "Resolver selected the wrong API line for $($pair[0])." }
if ($resolved.($pair[0]).version -ne $pair[1]) { throw "Resolver returned the wrong newest candidate for $($pair[0])." }
}
if (($resolved.'{CODEBELT_EXTENSIONS_XUNIT_APP_VERSION}'.candidate_versions -join ',') -ne '13.0.0+build-1,12.0.10,12.0.2,11.2.1') {
throw 'The resolver must return stable listed candidates from all registration pages in descending version order.'
}
foreach ($entry in $resolved.PSObject.Properties.Value) {
if ($entry.compatibility_status -ne 'provisional' -or $entry.target_framework -ne 'net10.0') {
throw 'Version-index lookup must not claim verified compatibility.'
}
}
$olderRuntime = & (Join-Path $repoRoot 'skills/dotnet-new-app-slnx/scripts/resolve-package-versions.ps1') -TargetFramework net8.0 | ConvertFrom-Json
if ($olderRuntime.'{CODEBELT_EXTENSIONS_XUNIT_APP_VERSION}'.compatibility_status -ne 'provisional' -or
$olderRuntime.'{CODEBELT_EXTENSIONS_XUNIT_APP_VERSION}'.target_framework -ne 'net8.0') {
throw 'The resolver must preserve provisional status for an unsupported test runtime.'
$stsRuntime = & (Join-Path $repoRoot 'skills/dotnet-new-app-slnx/scripts/resolve-package-versions.ps1') -TargetFramework net11.0 | ConvertFrom-Json
if ($stsRuntime.'{CODEBELT_EXTENSIONS_XUNIT_APP_VERSION}'.compatibility_status -ne 'provisional' -or
$stsRuntime.'{CODEBELT_EXTENSIONS_XUNIT_APP_VERSION}'.target_framework -ne 'net11.0') {
throw 'The resolver must preserve provisional status for the requested test runtime.'
}
Write-Host '[PASS] Resolver preserves authorized test-stack majors and excludes prereleases.'
Write-Host '[PASS] Resolver returns stable listed candidates across major lines.'
}

$sdkVersions = @(& dotnet --list-sdks)
if ($LASTEXITCODE -ne 0) { throw 'Unable to enumerate installed SDKs.' }
$sdk = @($sdkVersions | ForEach-Object {
if ($_ -match '^(\d+\.\d+\.\d+)\s' -and [version]$Matches[1] -ge [version]'10.0.100') { $Matches[1] }
if ($_ -match '^(\d+\.\d+\.\d+)\s' -and [version]$Matches[1] -ge [version]'11.0.100') { $Matches[1] }
} | Sort-Object { [version]$_ } -Descending | Select-Object -First 1)
if ($sdk.Count -ne 1) { throw 'A supported non-preview .NET 10+ SDK is required for scaffold MTP tests.' }
if ($sdk.Count -ne 1) { throw 'A supported non-preview .NET 11+ SDK is required for scaffold MTP tests.' }

# Fixed package versions are reproducible regression fixtures, not generated scaffold defaults.
$versions = @{
Expand All @@ -105,17 +108,14 @@ try {
'{BENCHMARKDOTNET_DIAGNOSTICS_WINDOWS_VERSION}' = '0.15.8'
'{CODEBELT_EXTENSIONS_BENCHMARKDOTNET_CONSOLE_VERSION}' = '1.3.4'
}
# net8 is an incompatibility regression for the fixed v12 stack, not an older-stack workaround.
# Only libraries support multiple source TFMs, including source-only netstandard.
$cases = @(
@{ Variant = 'app'; HostType = 'web'; AppType = 'Web'; Tfm = 'net10.0' },
@{ Variant = 'app'; HostType = 'console'; AppType = 'Console'; Tfm = 'net9.0' },
@{ Variant = 'app'; HostType = 'worker'; AppType = 'Worker'; Tfm = 'net10.0' },
@{ Variant = 'app'; HostType = 'console'; AppType = 'Console'; Tfm = 'net8.0' },
@{ Variant = 'app'; HostType = 'console'; AppType = 'Console'; Tfm = 'net10.0' },
@{ Variant = 'app'; HostType = 'worker'; AppType = 'Worker'; Tfm = 'net11.0' },
@{ Variant = 'lib'; Tfm = 'net10.0' },
@{ Variant = 'lib'; Tfm = 'net9.0' },
@{ Variant = 'lib'; Tfm = 'net8.0' },
@{ Variant = 'lib'; Tfm = 'netstandard2.0;net9.0;net10.0' }
@{ Variant = 'lib'; Tfm = 'net11.0' },
@{ Variant = 'lib'; Tfm = 'netstandard2.0;net10.0;net11.0' }
)
foreach ($case in $cases) {
$variant = $case.Variant
Expand All @@ -136,9 +136,8 @@ try {
$map['{EXECUTABLE_TARGET_FRAMEWORKS}'] = $runtimeTfms -join ';'
$map['{BENCHMARK_RUNNER_TARGET_FRAMEWORK}'] = $runtimeTfms[-1]
$map['{BENCHMARK_RUNNER_NAMESPACE}'] = 'benchmark_runner'
$benchmarkRuntimes = @{ 'net8.0' = 'Core80'; 'net9.0' = 'Core90'; 'net10.0' = 'Core10_0' }
$map['{BENCHMARK_RUNTIME_JOBS}'] = ($runtimeTfms | ForEach-Object {
" .AddJob(slimJob.WithRuntime(CoreRuntime.$($benchmarkRuntimes[$_])))"
" .AddJob(slimJob.WithRuntime(CoreRuntime.CreateForNewVersion(`"$_`", `"$_`")))"
}) -join [Environment]::NewLine
$map['{AUTHOR}'] = 'Scaffold Regression'
$map['{AUTHOR_EMAIL}'] = 'fixture@example.invalid'
Expand All @@ -165,8 +164,12 @@ try {
throw "$caseName must keep the functional-test namespace rule exactly once."
}
$bot = [System.IO.File]::ReadAllText((Join-Path $caseRoot '.bot/README.md'))
if (-not $bot.Contains('into root `AGENTS.md`.') -or $bot -match '(?i)Copilot') {
throw "$caseName .bot guidance must point only to root AGENTS.md."
if (-not $agents.Contains('`.bot/README.md` is intentionally tracked. Include it in the initial scaffold commit.') -or
-not $agents.Contains('Never stage or commit any other file under `.bot/`.')) {
throw "$caseName AGENTS.md must explicitly allow the .bot README and prohibit staging or committing other .bot files."
}
if (-not $bot.Contains('Move only finalized, non-confidential guidance into `AGENTS.md`.') -or $bot -match '(?i)Copilot') {
throw "$caseName .bot guidance must direct finalized, non-confidential guidance to AGENTS.md."
}
Write-Host "[PASS] $caseName emits the complete shared inventory with vendor-neutral root AGENTS.md."
# Select a stable installed SDK only in this isolated regression workspace.
Expand Down Expand Up @@ -286,27 +289,6 @@ public class PriceCalculatorBenchmark
if ($runnerTfm.Trim() -ne $runtimeTfms[-1]) { throw "$caseName benchmark runner must target the highest executable TFM." }
Write-Host "[PASS] ${caseName}: source matrix retained; tests, benchmarks and runner use executable TFMs only."
}
if ($case.Tfm -eq 'net8.0') {
if ($variant -eq 'lib') {
[void](Invoke-DotNet -Arguments @('build', $benchmarkProject, '-c', 'Release', '-p:SkipSignAssembly=true', '--nologo'))
Assert-DotNetFailure -Arguments @('build', $runnerProject, '-c', 'Release', '-p:SkipSignAssembly=true', '--nologo') -ExpectedError 'error NU1202: Package Codebelt.Extensions.BenchmarkDotNet.Console'
}
$expectedError = if ($variant -eq 'app') { 'error NU1202: Package Codebelt.Bootstrapper.Console' } else { "error CS0246: The type or namespace name 'Codebelt'" }
Assert-DotNetFailure -Arguments @('build', $testProject, '-c', 'Release', '-p:SkipSignAssembly=true', '--nologo') -ExpectedError $expectedError
$testAssetsPath = Join-Path $caseRoot (Join-Path (Split-Path $testProject) 'obj/project.assets.json')
$testAssets = [System.IO.File]::ReadAllText($testAssetsPath) | ConvertFrom-Json
$nuspecPaths = @($testAssets.packageFolders.PSObject.Properties.Name | ForEach-Object {
Join-Path $_ 'codebelt.extensions.xunit.app/12.0.1/codebelt.extensions.xunit.app.nuspec'
} | Where-Object { Test-Path -LiteralPath $_ -PathType Leaf })
if ($nuspecPaths.Count -ne 1) { throw "$caseName could not locate the restored Codebelt app meta-package metadata." }
[xml]$nuspec = [System.IO.File]::ReadAllText($nuspecPaths[0])
$groups = @($nuspec.package.metadata.dependencies.group.targetFramework)
if ($groups -contains 'net8.0' -or $groups.Count -ne 2 -or $groups -notcontains 'net9.0' -or $groups -notcontains 'net10.0') {
throw "$caseName expected only net9/net10 dependency groups in the fixed Codebelt app meta-package."
}
Write-Host "[PASS] ${caseName}: incompatible net8 stack fails explicitly; Codebelt app meta-package has no net8 dependency group."
continue
}
[void](Invoke-DotNet -Arguments @('build', 'MtpScaffold.slnx', '-c', 'Release', '-p:SkipSignAssembly=true', '--nologo'))
foreach ($runtimeTfm in $runtimeTfms) {
$help = Invoke-DotNet -Arguments @('test', '--project', $testProject, '--framework', $runtimeTfm, '-c', 'Release', '--no-build', '--help')
Expand Down
Loading
Loading