Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
5be0445
✨ add caching and verification improvements for csrun and docfx
gimlichael Nov 21, 2026
872dfd9
✨ add cached csrun engine resolution to dotnet-csrun
aicia-bot Nov 21, 2026
8b27743
♻️ use cached csrun engine in docfx-digest verification
aicia-bot Nov 21, 2026
9d6fbfb
📝 document cached csrun verification in readme
aicia-bot Nov 21, 2026
b171471
🔨 add deterministic run-action planning and validation
aicia-bot Nov 21, 2026
6b680ea
✅ add deterministic run-action workflow regression tests
aicia-bot Nov 21, 2026
88db229
♻️ update dotnet-docfx-digest docs and evals for deterministic csrun
aicia-bot Nov 21, 2026
843841e
📝 update dotnet-docfx-digest summary in readme
aicia-bot Nov 21, 2026
8e38406
🔨 update changelog for v0.13.2 with new features and improvements
gimlichael Nov 21, 2026
a190ba6
📝 update comment for clarity in generate-run-actions.ps1
gimlichael Nov 21, 2026
289eddf
🔒️ enforce private windows acls on csrun cache
aicia-bot Nov 21, 2026
8d49bb8
✅ add windows acl tests for csrun cache
aicia-bot Nov 21, 2026
357e54b
🐛 enforce timeout deadline on host sample builds
aicia-bot Nov 21, 2026
cd89013
🐛 fix docfx props scoping and async wrappers
aicia-bot Nov 21, 2026
d33da6d
🐛 fix run-action manifest handling and verify reuse
aicia-bot Nov 21, 2026
5dd2adb
✅ add docfx run-action regression tests
aicia-bot Nov 21, 2026
a93d03b
🍱 add hero image asset for dotnet-csrun skill
aicia-bot Nov 21, 2026
1103432
🐛 fail on truncated host startup delay timeout
aicia-bot Nov 21, 2026
112d6d0
✅ add empty-probe host startup delay regression tests
aicia-bot Nov 21, 2026
ecd6880
📝 add tool observability and concurrency guidelines
aicia-bot Nov 22, 2026
f1865b4
⚡️ add bounded parallel verification and progress logging
aicia-bot Nov 22, 2026
6b63d8f
📝 document parallel verification flags in dotnet-docfx-digest
aicia-bot Nov 22, 2026
0c29644
⚡️ add subprocess shim for generator execution in test-run-actions.ps1
gimlichael Nov 22, 2026
07b903e
📝 scope docfx markdown rule to api and csrun context
aicia-bot Nov 22, 2026
028a6fa
✨ add net48 native-only run-action support
aicia-bot Nov 22, 2026
4dc136b
✅ add net48 native-only run-action tests
aicia-bot Nov 22, 2026
61a5c98
📝 document net48 native-only run actions in readme
aicia-bot Nov 22, 2026
7e48d67
✨ update changelog for v0.13.2 release with new features and fixes
gimlichael Nov 22, 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
9 changes: 9 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,15 @@ A .NET file-based app (`dotnet run --file <app>.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.
Expand Down
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,34 @@ 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, 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#<ordinal>` 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, `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 <uid>` (`-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 <uid>` (`-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 `<uid>#<ordinal>` 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 <uid>` (`-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 <uid>` (`-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` 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 <uid>` (`-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

- `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#<ordinal>` 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

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.
Expand Down Expand Up @@ -856,6 +884,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
Expand Down
Loading
Loading