Skip to content

V0.14.0/dotnet pure blood - #54

Open
gimlichael wants to merge 184 commits into
mainfrom
v0.14.0/dotnet-pure-blood
Open

gimlichael wants to merge 184 commits into
mainfrom
v0.14.0/dotnet-pure-blood

Conversation

@gimlichael

Copy link
Copy Markdown
Member

This pull request adds bounded work packets to the DocFX review workflow, a publication-aware release scope to the changelog skill, and a .NET tooling foundation that moves the local validation scheduler out of PowerShell. It also updates the repository agent guidance that governs these changes.

DocFX work packets:

  • Adds a bounded work queue to the DocFX digest that hands out one review packet at a time and records completed reviews back into the workspace.
  • Adds repair handling for namespace, type, and project pages, backed by a repair fixture and an eval case.
  • Moves the example architecture fixture into the skill's evaluation files and extends behavioral inventory and scope reporting.

Release scope and publication:

  • Resolves the release scope from the preceding effective release boundary, so an unpublished tag no longer decides where a corrective release starts.
  • Requires publication evidence from every distribution channel before a version is treated as released or unreleased, and fails closed when a lookup cannot be completed.
  • Documents the release lifecycle and adds eval cases for prepared, corrective, and published releases.

Release evidence collection:

  • Treats a co-author trailer without a GitHub account as an unmapped identity instead of an incomplete collection, while other lookup failures still stop collection.

Agentic tooling:

  • Introduces the agentic-tooling .NET application with a local validation scheduler that runs the CI matrix suites with bounded concurrency, per-suite timeouts, and terminal-marker verification.
  • Reports progress and heartbeats on stderr and in an atomically written progress file, so long-running validation stays observable.
  • Adds a measurement harness for comparing the cost of tool execution before and after a change.
  • Routes the existing validate-local entry point through the new scheduler and extends the validation suites and workflow coverage.
  • Adds shared Windows process ownership so child process trees are terminated on timeout or cancellation.

File-based app runtime:

  • Declares RollForward=Major on repository file-based apps so they run on newer .NET majors while still targeting .NET 10.

Agent guidance:

  • Restructures the repository agent guidelines around executable tooling standards, observability, and measurement.
  • Adds minimal repository documentation guidance and eval cases to the agent-smith skill.
  • Updates the README to describe work packets and the tooling changes.

GitHub returns HTTP 404 for a co-author login that has no account, such as a bot or unmapped identity, and the lookup aborted the whole release evidence collection. Unmapped co-authors now resolve to no user, while other lookup failures still raise.
Agentic tooling targets .NET 10 but must also run where only a newer major runtime such as .NET 11 is installed. RollForward=Major lets each file-based app start on the newest compatible major runtime.
Eval fixtures belong under evals/files so preparation can validate and stage them. The InventoryWorker architecture sample moves there and every reference to the old scripts/fixtures path follows it.
Measurement tooling needs peak commit memory, process counts and CPU time for a whole Windows job tree. The owned-process wrapper now exposes these read-only figures through QueryAccounting.
Repository infrastructure moves from ad hoc PowerShell into a .NET solution under tooling. It provides the validate-local scheduler, measurement harness and shared process helpers with central package management.
Black-box and unit tests cover the validate-local scheduler, measurement model, progress files and skill characterization for the new tooling solution.
validate-local now forwards to the .NET scheduler, which runs each CI suite in its own process with bounded concurrency and timeouts. The skill validator gains a Tooling suite that exercises the new solution.
The tooling test suite needs its own CI job so the .NET solution is verified on every pull request, with the .NET SDK installed for that job.
The success-mode delay now spans several heartbeats on loaded machines, and the quiet-heartbeat check no longer pins to the first observed counters, which raced under timer slippage.
Expected manifest and review template text was passed to the comparison unnormalized on one side, so line endings could make the assertion fail on Windows.
AGENTS.md now records the executable tooling standards, scratch and fixture locations, and the tooling test coverage. README reflects the new CI job count and runtime roll-forward behavior.
Agent Smith tended to add new documentation hierarchies and persist working artifacts in source control. The skill now extends existing documentation first, keeps plans and measurements in ignored workspaces, and requires maintainer approval for new structures.
The new documentation policy needs regression assertions and judgement scenarios so that future edits cannot silently drop it. The eval count moves from 34 to 37 to match the added cases.
The README capability summary now mentions the minimal documentation default so consumers know what agent-smith will and will not add to a repository.
A git tag marks a revision, not a publication, so a planned version that was tagged but never distributed needs a corrective continuation instead of a fresh release. The resolver now reports the release scope and publication evidence, and the lifecycle reference documents the rules.
The changelog skill must consult the lifecycle reference when the resolver reports a corrective continuation or blocks the scope, and section validation now follows the same publication rules.
New eval cases exercise corrective continuations and unpublished tags against an imported history fixture, so the publication rules are checked against realistic release history.
The template validator now asserts the lifecycle rules and the new eval case, so the skill cannot silently drop the publication wording that the resolver depends on.
The tooling test suite covers ordinary, continuation and publication-gated release scopes against a generated Git fixture, which makes the resolver contract executable rather than documentary.
The README now states that a tag does not establish publication, that corrective continuations are supported, and that ordinary changelog runs stay offline.
Large repositories exhausted the review loop in one pass. Work packets hand out the next small set of examples, save their results in the behavioral ledger, and resume after interruption, while the final gate still reconciles the whole scope.
Unit and integration tests cover packet selection, resumption and the final gate. The inventory helper in the behavioral tests follows the renamed builder, so existing assertions exercise the same path.
A repair eval over a small multi-project fixture checks that the packet workflow reaches the final gate on realistic API documentation rather than only on synthetic inventories.
The skill workflow and script references now direct agents to the packet loop before the final gate, and spell out how to pass repeated --uid selectors so each one is parsed as a single argument.
The README explains that large repositories are reviewed in small resumable packets, so consumers know what the packet command does before they run it.
@gimlichael gimlichael self-assigned this Dec 2, 2026
@greptile-apps

greptile-apps Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Confidence Score: 4/5RetriggerView in Greptile

[High impact] The PR changes shared repository tooling, release-scope decisions, and several developer workflows.

The runtime fixes look sound, but the repository's test requirements still need to be satisfied before merging.

FindingsFix All in Codex

  1. P2 Simple comparisons launch applications ▶
  2. P2 Skipped tests appear to pass ▶
  3. P2 Tests bypass required xUnit setup ▶
Fix with agent prompt
### Issue 1
tooling/test/Agentic.Tooling.Tests/Skills/NuGetUpdateAuditTest.cs:28-33
`Compare_ShouldOrderPrereleaseBuildMetadataFourPartsAndTokens` starts a separate application for every version pair. `AGENTS.md` requires business logic tests to run in-process and forbids launching an external process for logic that can be called directly.

Include the production comparison code in the test project and test these pairs with a parameterized test. Keep representative command-line checks separately. This repository requirement must be satisfied before merging.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

### Issue 2
scripts/validate-skill-templates.ps1:1094-1095
The new early return removes executable NuGet checks from `-Ref` runs. Previously this branch built the application and its tests from the requested commit. Now it checks documentation and one shared file, then reports this check as passed. The `Tooling` check also returns when `-Ref` is set, so it does not replace that coverage.

Preserve named-revision execution, or explicitly reject this unsupported check rather than reporting a pass.

### Issue 3
scripts/tests/git-remote-pr-tests.cs:25-42
`git-remote-pr-tests.cs` adds its own case list, assertion counting, scheduling, and pass/fail runner outside `tooling/`. `AGENTS.md` requires repository tests to use conventional xUnit v3 projects on Microsoft.Testing.Platform inside `tooling/` and forbids custom test runners.

Move these cases into that solution while keeping the needed command-line tests. The same pattern appears in `dotnet-nuget-update-tests.cs` and `worktree-integration.cs`. This repository requirement must be satisfied before merging.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

The PR adds DocFX review packets, publication-aware release checks, and shared .NET tooling for validation and measurement.

  • DocFX reviews now move through one recorded packet at a time.
  • Release scope follows publication evidence, not an unpublished tag.
  • Release evidence skips unmapped co-authors without hiding lookup failures.
  • Local validation runs the CI suites through a bounded .NET scheduler.
  • The .NET tooling app can measure and summarize repeatable workloads.
  • More repository skill commands now run as .NET file-based apps.
  • Repository guidance now spells out executable tooling, measurement, and documentation practices.
  • Eval runners capture more session evidence and check staged prerequisites.

Diagram

%%{init: {'theme': 'neutral', 'htmlLabels': false}}%%
flowchart LR
    Validator["Validation entry point"] --> Tooling["Tooling suite"]
    Tooling --> Xunit["xUnit tests"]
    Xunit --> Cache["Build app once"]
    Cache --> App["Run built assembly"]
    Xunit --> Fake["Local GitHub and feed fixtures"]
Loading

Reviews (22) · Last reviewed commit: "🔥 retire custom test drivers replaced b..." · Reviewed by Greptile

MinimalConsoleProgram completes RunAsync immediately and lets host.RunAsync dispose IServiceProvider before the test thread can resolve services. Verify service registration inside hostSetup and inspect application.Host and application.Environment instead of racing the disposed provider.
Await completed output pump tasks in ChildProcess.DrainAsync so log-write or pipe failures cannot silently pass as drained logs, stop the MeasuredProcess liveness observer in a finally block, and catch per-suite failures in ValidateLocalCommand while always cancelling and awaiting active suites and heartbeats before returning.
Template regression suites run through a bounded thread-job batch, so independent suites overlap while each keeps its own process and temporary workspace.
Non-docfx validation jobs now get ten minutes, because the parallel suites and their cold builds can exceed the old five-minute limit.
Comment thread scripts/validate-skill-templates.ps1 Resolved
The artifact helpers and the verified engine cache had grown large inside sample-tools.cs. Moving them into included sources keeps the command entry point readable and lets the regression tests exercise each concern directly.
The csrun regressions ran as a separate script that built sample-tools and validate and then drove them as black boxes. Moving them into the tooling test project lets xUnit run the deterministic artifact logic in-process, keeps the command-line and exit-code checks as black-box tests, and reuses one cached build of each skill app.
Scaffold app and library checks and the Agent Smith focused and ref suites each shared one work item, so the slowest member set the wall-clock time. Each now runs as its own parallel item, and the validator asserts every item pass marker so coverage cannot drop silently.
Each recorded adapter scenario ran sequentially, with its fake CLI marker written and removed around a single runner call. Scenarios now run against isolated copies of the recorded run, bounded and concurrent, with per-item progress on stderr, so they share no mutable state.
Tests are now specified as fast by design: deterministic logic runs in-process, process boundaries are reserved for real process behavior, each distributed tool is built once, and a material slowdown is a blocking regression. The README states the same expectation and the csrun row names the sample-tools resolve-engine command.
Comment thread scripts/tests/git-remote-pr-tests.cs Outdated
Comment on lines +25 to +42
(string Name, Func<Fixture, Task> Run)[] all =
[
("rules: titles, body shape, approval slots and canonical intent", Rules),
("first publication and tracking", Publication),
("tracking problems fail closed", TrackingProblems),
("base, fork and permission resolution", Resolution),
("working tree and branch preconditions", Preconditions),
("evidence: renames, deletions, binaries and line counts", Evidence),
("planning: body shape, themes and preview", Planning),
("tampering never writes", Tampering),
("approval identity", ApprovalIdentity),
("create, no-op, stale head and refresh", Lifecycle),
("post-write verification and partial state", Verification),
("drift ends the approval; an explicit refresh starts a new one", Drift),
("repository template", Template),
("diverged remote", Diverged),
("command line, streams, progress and timeout", CommandLine),
];

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Tests bypass required xUnit setup

git-remote-pr-tests.cs adds its own case list, assertion counting, scheduling, and pass/fail runner outside tooling/. AGENTS.md requires repository tests to use conventional xUnit v3 projects on Microsoft.Testing.Platform inside tooling/ and forbids custom test runners.

Move these cases into that solution while keeping the needed command-line tests. The same pattern appears in dotnet-nuget-update-tests.cs and worktree-integration.cs. This repository requirement must be satisfied before merging.

Context Used: AGENTS.md (source)

Prompt To Fix With AI
This is a comment left during a code review.
Path: scripts/tests/git-remote-pr-tests.cs
Line: 25-42

Comment:
**Tests bypass required xUnit setup**

`git-remote-pr-tests.cs` adds its own case list, assertion counting, scheduling, and pass/fail runner outside `tooling/`. `AGENTS.md` requires repository tests to use conventional xUnit v3 projects on Microsoft.Testing.Platform inside `tooling/` and forbids custom test runners.

Move these cases into that solution while keeping the needed command-line tests. The same pattern appears in `dotnet-nuget-update-tests.cs` and `worktree-integration.cs`. This repository requirement must be satisfied before merging.

**Context Used:** AGENTS.md ([source](https://github.com/codebeltnet/agentic/blob/main/AGENTS.md))

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Fix in Codex

aicia-bot and others added 15 commits December 5, 2026 22:26
Validation suites ran independent items through ad hoc PowerShell jobs, each with its own timeout and progress handling. The new run-parallel command runs work items with bounded concurrency, kills whole process trees on timeout, writes per-item logs and an atomic results file, and builds file-based apps once so items can reuse the artifact.
Each test run built every skill app from scratch with dotnet build, which costs seconds per app. The shared file-based build reuses an unchanged app, including its include sources, without a cold build, and rebuilds an app whose inputs changed.
The progress test held each feed answer for a fixed 1200 ms and hoped a heartbeat appeared in time. The feed now holds answers until the tool progress file shows a heartbeat is due, so the test waits on a real signal and stays bounded.
Validation scripts each carried a copy of the build-input fingerprint that decides when agentic-tooling must rebuild. The fingerprint and build now live in one dot-sourced helper, so the validate-local shim and its callers share a single rebuild rule.
Template checks, Agent Smith ref scenarios and runner conformance each ran concurrency with their own job code. They now pass independent items to agentic-tooling run-parallel, which owns timeouts, process trees and progress, so the scripts only describe items and map results back.
Each non-DocFX validation job now has a five-minute budget, matching the README. Parallel items inside a job carry their own timeouts, so the job limit is a backstop rather than the only bound.
AGENTS.md documents run-parallel for independent suite work items. The agent-smith testing reference and the dotnet-test skill carry the same fast-test expectations, and the README describes the validate-local scheduler.
Adds a skill that runs one explicitly requested paired evaluation of a repo-managed skill. It resolves the harness and model, prepares the package through the existing script, and hands it to a fresh evaluator, so live runs stay an explicit user request rather than a repository automation step.
The live skill evaluation flow now lives in its own skill, so AGENTS.md keeps only the handoff contract and the Priority 1 prohibition on model calls from repository automation. The wording is shorter and the explicit-request boundary is stated once.
README and CONTRIBUTING now point to the skill-evaluations entry point for one-turn paired runs, and list it in the install commands. Package preparation remains an explicit, optional step for manual handoff.
The deterministic checks now assert the condensed AGENTS.md and README wording and the skill-evaluations SKILL.md. The explicit Codex case expects xhigh, matching the documented explicit selection, instead of low.
Headless hosts can run PowerShell by absolute path while PATH does not expose pwsh, so the eval runner's Get-Command pwsh lookups failed there. Runner children now start the running PowerShell host, falling back to PSHOME and PATH, and the scripts that spawn them share Invoke-RunnerPowerShellScript, which bounds the wait and reports the child exit and output.
OpenCode v2 uses a standalone server, a model #variant selector, and a permissions array instead of the v1 flags and config layout, so the runner and model discovery now branch on the installed CLI version. Each v2 turn is accepted only after the native session export confirms its prompt, session, model, and variant. Both arms allow web search and web fetch, and v2 pre-selects the web search provider, so non-interactive runs never stop on a prompt.
The eval runner README now describes OpenCode v2 model discovery and standalone execution, and the validator asserts that wording so the documented contract stays checked.
aicia-bot and others added 4 commits December 6, 2026 04:16
A relative working directory used to throw inside a build step and end the scheduler without results or a terminal progress state, and a progress file pointed at the items, results or a log silently replaced it. Paths are now resolved and validated when the items load, overlapping progress files are rejected before the first write, and an unexpected item exception becomes that item's failure while every started item is stopped and awaited.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The assembly was found by searching the artifacts directory, so stale output of another configuration or runtime could be returned and then vouched for by the input stamp. The build now reports its own TargetPath, which is returned and recorded in the stamp so the fast path reuses exactly that file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Repository tests belong in the tooling xUnit v3 solution rather than in file-based apps with their own case lists and runners. The git-remote-pr, dotnet-nuget-update and worktree-state regressions now run there as black boxes against built tools, with the fake gh as its own small project; the PR rules are tested in-process.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The three drivers are covered by the Tooling suite now, so the validator stops running them and instead guards that the xUnit classes and project wiring stay in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment on lines +28 to +33
foreach (var (a, b, relation) in pairs)
{
var result = Ok(await f.ToolAsync(["compare", a, b], token));
Assert.True((string?)result["relation"] == relation, $"{a} vs {b}: {result}");
Assert.True((string?)result["newer"] == (relation == "lt" ? b : a), $"newer of {a} and {b}: {result}");
Assert.True((int)result["compare"]! == relation switch { "lt" => -1, "eq" => 0, _ => 1 }, $"compare of {a} and {b}: {result}");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Simple comparisons launch applications

Compare_ShouldOrderPrereleaseBuildMetadataFourPartsAndTokens starts a separate application for every version pair. AGENTS.md requires business logic tests to run in-process and forbids launching an external process for logic that can be called directly.

Include the production comparison code in the test project and test these pairs with a parameterized test. Keep representative command-line checks separately. This repository requirement must be satisfied before merging.

Context Used: AGENTS.md (source)

Prompt To Fix With AI
This is a comment left during a code review.
Path: tooling/test/Agentic.Tooling.Tests/Skills/NuGetUpdateAuditTest.cs
Line: 28-33

Comment:
**Simple comparisons launch applications**

`Compare_ShouldOrderPrereleaseBuildMetadataFourPartsAndTokens` starts a separate application for every version pair. `AGENTS.md` requires business logic tests to run in-process and forbids launching an external process for logic that can be called directly.

Include the production comparison code in the test project and test these pairs with a parameterized test. Keep representative command-line checks separately. This repository requirement must be satisfied before merging.

**Context Used:** AGENTS.md ([source](https://github.com/codebeltnet/agentic/blob/main/AGENTS.md))

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Fix in Codex

Comment on lines +1094 to +1095
if (-not [string]::IsNullOrWhiteSpace($Ref)) {
return

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Skipped tests appear to pass

The new early return removes executable NuGet checks from -Ref runs. Previously this branch built the application and its tests from the requested commit. Now it checks documentation and one shared file, then reports this check as passed. The Tooling check also returns when -Ref is set, so it does not replace that coverage.

Preserve named-revision execution, or explicitly reject this unsupported check rather than reporting a pass.

Prompt To Fix With AI
This is a comment left during a code review.
Path: scripts/validate-skill-templates.ps1
Line: 1094-1095

Comment:
**Skipped tests appear to pass**

The new early return removes executable NuGet checks from `-Ref` runs. Previously this branch built the application and its tests from the requested commit. Now it checks documentation and one shared file, then reports this check as passed. The `Tooling` check also returns when `-Ref` is set, so it does not replace that coverage.

Preserve named-revision execution, or explicitly reject this unsupported check rather than reporting a pass.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Fix in Codex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants