Add browser playback of recorded RDP sessions through a
protocol-agnostic Svelte player, an RDP WASM backend, and a demo with
local-file and HTTP range data sources. Consumers provide the
recordings; this does not add a recording mechanism.
Replay requires post-decryption Fast-Path captures. The HTTP demo
validates its index and bounds range requests and playback fetches.
---------
Co-authored-by: Marc-André Moreau <mamoreau@devolutions.net>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Expose native RDPSND playback through the FFI and .NET bindings so
clients can play remote audio on a selected local output device.
Register static and dynamic playback channels, and join RDPDR without
redirected devices when it is absent so Windows servers can start
playback. Stop playback on demand or when the active stage is disposed.
Linux builds require ALSA development headers and the native library
requires `libasound` at runtime. Android retains its existing API
baseline and does not support native playback.
Replace the retired macOS 14 runners with macOS 15 for NuGet native
builds and Apple Silicon release binaries.
Preserve target architectures, deployment targets, and all other build
behavior.
Regenerating the release PR on every push to master closes it and
discards the review edits it carries, and publishing from master after
the merge ships changes the release notes do not describe.
Regenerate the release PR once a day from the head of master, or on a
manual run, optionally from a given commit. Publish only when a release
PR is merged, and publish from that PR's head commit, so the published
crates match the versions and changelogs it was reviewed with. Changes
merged to master after its base commit go to the next release PR.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Every NuGet release needed a PR just to bump `<Version>` in the csproj
([#2282](https://github.com/Devolutions/IronRDP/pull/2282) was the
latest). This does what
[IronVNC#1593](https://github.com/Devolutions/IronVNC/pull/1593) did:
the **Publish NuGet package** workflow now takes a `version` input.
Leave it at `latest` to get today's date (`yyyy.M.d.0`), or type a full
`1.2.3.4`. Scheduled runs use the date and are still dry runs.
Both managed builds (`Devolutions.IronRdp` and
`Devolutions.IronRdp.iOS`) get `/p:Version=...`. Cargo and the iOS
framework plist keep the three-part version like before. The csproj
`<Version>` stays, it's just not used for publishing anymore.
Ran the version step locally: `latest` and empty give today's date,
`2026.10.28.0` passes, and `2026.10.28`, `2026.01.1.0` and a `65535`
component all fail.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Swatinem/rust-cache hashes every installed toolchain into its key,
including the runner's preinstalled stable. Runner images currently ship
either stable 1.99.0 or 1.99.1, so the key splits while master saves
only one variant: macOS Checks found no cache in about half of pull
request runs and compiled all 1164 crates (about 22 minutes instead of
11), and Linux restored a stale cache. Uninstalling every toolchain
except the one pinned in rust-toolchain.toml before the cache step makes
the key depend only on the pinned toolchain and the lockfiles. The fuzz,
agentic RDP and release binary workflows get the same step; the release
workflow inlines it because it checks out the release tag, which may
predate the shared action.
Stacked pull requests receive two `synchronize` events per push (base
and head branch), which started two full CI runs on the same commit, and
a new push left the previous run going to completion. CI now keeps only
the latest run per pull request.
The build jobs no longer wait for the formatting check, which only
delayed them; `Success` still requires it.
The cache keys change, so pull request runs build without a cache until
the first master run after merge saves the new caches.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Every pull request run saved its own Rust caches, about 4 GB per PR,
which kept the repository over the 10 GB Actions cache limit. Eviction
then removed the master caches that pull requests fall back to, so most
Checks jobs compiled all dependencies from scratch and macOS lost its
cache entirely.
Pull requests now only restore the master caches, and master runs
refresh them. A pull request that changes Cargo.lock still restores the
closest master cache through the rust-cache prefix key.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
release-plz chooses each crate's version from that crate's own commits
and API, so a crate that exposes a dependency through a `# public`
dependency gets a patch release when that dependency takes a breaking
one. Users who run `cargo update` then get the new patch release, whose
types no longer match the old dependency's.
Add `cargo xtask release check-public-deps`, which compares each
released crate's version with its latest `<crate>-v<version>` tag and
requires a breaking release when a public workspace dependency takes
one, following the chain to a fixed point. With `--fix` it applies the
bumps: the crate version, every requirement on it, the generated
changelog header and compare link, and both lockfiles.
The open-PR job runs it with `--fix` on every regenerated release PR,
before it amends the release commit.
xtask's unit tests are enabled so the version logic is tested; a binary
crate cannot be exercised from the test-suite crates.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The FFI job regenerated the C# bindings but never checked them against
the committed copy, so a bridge change without a regen, or a tool that
does not match the pin, went unnoticed.
Add the `ffi-bindings-check` job that IronVNC runs: on Windows, install
the pinned tool, regenerate, fail if anything under `Generated/` or the
config changed, then build the solution and run the smoke tests. Keep
`Generated/*.cs` as LF in every checkout, since the tool always writes
LF. Both FFI jobs restore their caches and install the tool through one
`setup-diplomat-tool` composite action.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The .NET bindings were generated by Diplomat 0.7 from a personal fork,
years behind upstream. Move to the protected `Devolutions/diplomat` tag
that IronVNC and picky-rs already use, with the same xtask pinning and
install flow.
Rust side:
- pin `diplomat` and `diplomat-runtime` to tag `0.16.1-devo.2` and drop
the `[patch.crates-io]` entry for the old fork; its zero-length slice
fix is upstream now, since slice parameters go through `DiplomatSlice`,
which maps a null pointer to an empty slice
- `opaque_mut` on the 20 types that are mutated through `&mut`, named
lifetimes on borrowed returns, `DiplomatWriteable` renamed to
`DiplomatWrite`, and no explicit `Clone`/`Copy` on bridge enums
- move `dotnet-interop-conf.toml` to the `lib_name` + `[dotnet]` layout
Tooling: xtask installs `diplomat-tool` from the tag with Rust 1.96.0,
because the tag does not build with the workspace toolchain. It records
the source and version so a tool from another tag is never reused,
checks that the tool and the ffi crate use the same tag, and calls the
tool by absolute path. The `ffi` CI job caches those records with the
binary, so a cache hit does not reinstall the tool.
The library and examples use properties instead of the removed
`GetX()`/`SetX()` methods.
`ffi/README.md` gains a migration section with these steps.
BREAKING CHANGE: for consumers of `Devolutions.IronRdp`:
- `GetX()`/`SetX()` methods that duplicated a property are removed
- the `&mut` getters on `ClientConnectorState` and
`CredsspSequenceInitResult` are methods only
- `IronRdpErrorKind.IO` and `WrongOS` are now `Io` and `WrongOs`
- `Position`, `MultitransportRequest` and `NetworkCharacteristics` are
structs with public fields instead of classes with properties
- the `Devolutions.IronRdp.Raw` namespace is internal, and the public
`AsFFI()` methods and raw-pointer constructors are removed
- `DiplomatWriteable`, `DiplomatOpaqueException` and the
`IronRdpError.ToDisplay(DiplomatWriteable)` overload are removed
- `IronRdpException` is no longer `partial`
- only the ten types listed in `ffi/README.md` are `IDisposable`; every
other type, such as `Config`, `InclusiveRectangle` and
`ClientConnector`, is released by its finalizer and no longer has
`Dispose()`
- overlapping calls on one native object now throw, such as calling
`ActiveStage` from the PDU loop and an input handler at once, or using a
`CredsspSequence` while its `CredsspProcessGenerator` is alive
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Add five optional specialists to the review pipeline, one per newly
adopted review skill, triggered as the `code-review` skill prescribes:
- `intent-drift` (`intent-drift-audit` and `intent-files`): runs when a
changed path is governed by an intent file on `master` or added by the
PR, following the `intent-files` placement rule.
- `intent-review` (`intent-review`, `intent-files`, and its pitfalls
reference): runs when an `INTENT*.md` or `*.intent*.md` is added or
modified.
- `test` (`test-reviewer`, `test-writer` with its references, and
`test-oracle-reviewer`): runs when a changed, non-removed Rust or C#
file is on a test path, or when its content at the PR's merge base or
head contains a test marker. A marker in the added lines decides without
reading either revision. Markers are matched over the whole text, so
multiline attributes work, and include `#[cfg(...)]` predicates naming
`test` other than as `not(test)`. A predicate scan stops at 4 KiB, and
an unclosed one counts as a marker. A production-only edit in a file
that also holds tests selects `test`; that is the accepted cost of not
locating edits inside tests. An unresolvable merge base, an unfetchable
head, or an unreadable file also selects `test`.
- `dependency` (`dependency-reviewer`, `dependency-pruner`, and the
repo-local `public-dependency`): runs when `Cargo.toml`, `Cargo.lock`,
`package.json`, `package-lock.json`, or a `.csproj` gains lines.
- `rust-style` (`rust-style-reviewer`, `rust-style`, and the trusted
`STYLE.md`): runs when a `.rs` file gains lines.
Deterministic analysis derives these at classification time from the PR
file list and patches, plus `git ls-files` on the trusted `master`
checkout to find intent files. Renamed files match path rules under both
their old and new names. The result is persisted in the existing `AI
classification` check state. The classifier schema and the check-state
version are unchanged, so earlier three-reviewer checks stay valid.
`protocol` and `skeptical` remain the only required reviewers; a failed
optional specialist is disclosed as reduced coverage.
The new canonical order is `protocol`, `skeptical`, `intent-drift`,
`intent-review`, `test`, `dependency`, `code-compressor`, `rust-style`.
Required and correctness reviewers start first when more than three are
selected.
Not added: `contract-review`, because the repository has no
`CONTRACT*.md` yet. It joins with the first contract (one agent JSON,
one prompt, one path rule). `test-oracle-reviewer` is not a separate
specialist because `test` runs it.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
## Summary
The manually dispatched **Agentic RDP** workflow passed, but its
screenshot showed Edge's first-run welcome dialog instead of the
requested page. The scenario also hid two weaknesses:
- **Daemon readiness probe never waited.** A failing native command does
not throw in PowerShell, so the `try/catch` loop in
`Start-AgentDaemon.ps1` returned on its first attempt and logged a
`connect to daemon ... os error 2` backtrace. It now checks
`$LASTEXITCODE`, discards the expected stderr, and fails fast if the
daemon process exits.
- **Agent input failures were ignored.** `Invoke-Agent` in the desktop
scenario now throws on a non-zero exit code, matching
`Invoke-AgentRdpdrRegression.ps1`.
The desktop scenario now proves what it rendered:
- Sets the Edge `HideFirstRunExperience` policy for the scenario and
restores the previous value afterwards.
- Opens a solid-color `data:` marker page in a maximized Edge window.
- Polls screenshots for up to 45 s and fails unless the center pixel
matches the marker color.
The PR also bumps `Swatinem/rust-cache` from v2.7.3 to v2.9.1 to match
the other workflows, which removes the Node 20 deprecation warning.
## Verification
- [Run
39642171433](https://github.com/Devolutions/IronRDP/actions/runs/39642171433)
and [run
39647100713](https://github.com/Devolutions/IronRDP/actions/runs/39647100713)
on this branch both passed.
- In both runs, the screenshot shows the blue "IronRDP agentic RDP"
marker page, and the typed command is visible in the address bar.
- The log no longer contains the daemon probe error or the cache
warnings.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
## Summary
Github standard Arm runners have an unconfigured NVMe drive. To improve
build efficiency by 10% this change configures the drive on every run
with an ReFS partition and moves the build to that drive. The intended
benefit is moving build-tree and Cargo-cache I/O from the system volume
to unused local NVMe.
The change only impacts runs that use **`windows-11-arm` job**.
**On `windows-11-arm`, the measured IronRDP job time (median) improved
by 50s (10.4%) from 481 to 431, including provisioning and cache
overhead.** The compilation time fell from 343 to 326 seconds.
This is a minimal change that touches just the one YML file. An
additional saving is possible by removing NASM install for this runner
as it is not used. I'll prep a separate PR for that.
## Scope and safety
To keep this behaviour durable even if the underlying VM image changes:
- Gate on `runner.os == 'Windows'`, `runner.arch == 'ARM64'`, and
`runner.environment == 'github-hosted'`, to allow the same improvement
if the runner label changes. Also blocks out custom Arm runners to avoid
damaging a custom setup. The step is skipped entirely on Windows x64,
Linux, macOS, and self-hosted runners.
- No-op if `D:` is already assigned. To null the impact if the base VM
image configuration takes this change.
- Initialize only eligible NVMe disk: RAW, zero partitions, online,
writable, non-boot/non-system, at least 50 GiB, and absent from the
partition inventory. Missing or ambiguous storage is a logged no-op.
- Require an ordinary workspace (not a link) and an ordinary Cargo home,
if it exists. Populated workspaces are supported: existing files are
copied before replacing the workspace path with a junction. Never clear
disks, resize partitions, or reformat existing volumes. Operational
errors fail visibly rather than silently continuing after partial
provisioning.
- Use `Format-Volume -DevDrive -FileSystem ReFS` with Windows defaults.
No antivirus exclusions, protection disabling, or filter/trust
overrides.
The workspace and Cargo home move behind junctions to `D:\workspace` and
`D:\cargo-home`; `TEMP`/`TMP` use `D:\build-temp`. `CARGO_HOME`
explicitly names its physical D: path so GNU tar can save and restore
the Rust cache correctly across the workspace junction. The running
Actions agent, `GITHUB_WORKSPACE`, `RUNNER_TEMP`, Rust toolchain, and
hosted tool cache are not reconfigured.
Move any files that might be populated in the workspace by a pre-job.
After copying succeeds the original directory is renamed as a backup and
the original path replaced by the junction.
## Measured wall-clock impact
The comparison below uses the **six `windows-11-arm` cold-cache agent
jobs**
(https://github.com/marcpems/IronRDP-ci-benchmark/actions/runs/39574497666/attempts/1),
with **three fresh jobs per storage variant**, measuring the
empty-workspace path before the populated-workspace extension:
| Runner label | Default median job | ReFS median job | Observed
reduction | Default / ReFS median compile |
|---|---:|---:|---:|---:|
| `windows-11-arm` | 481 s | 431 s | 50 s / 10.4% | 343 s / 326 s |
Job time is `completed_at - started_at`: it includes provisioning,
checkout, dependency installation, caching, compilation, packaging,
artifact upload, benchmark validation, and post-job cleanup. It excludes
queueing.
No timing tests have been done for a populated workspace.
## Verification
- All `windows-11-arm` cold verification jobs passed; all 400 MB Rust
caches were independently verified through GitHub's cache API.
- [Published-release compatibility
run](https://github.com/marcpems/IronRDP-ci-benchmark/actions/runs/39574562225):
both Windows x64 binaries passed with the new step skipped. The Arm
agent passed on both storage variants.
- Revalidated this PR's actual workflow with 22 non-destructive
storage-guard cases, PowerShell parsing, actionlint, and all 12
OS/architecture/hosting combinations.
- Structural YAML comparison: removing the added step reproduces current
upstream's workflow exactly. Empty-workspace relocation retains the
measured fast path; No benchmark tooling or test harness is added to
upstream.
- [Populated-workspace
validation](https://github.com/marcpems/IronRDP-ci-benchmark/actions/runs/39606041636):
both empty and populated workspaces passed on real ReFS volumes using
`windows-11-arm`, including hidden/system and read-only attributes,
nested and empty directories, file symlinks, directory junctions, backup
preservation, and subsequent checkout. Five local cases additionally
covered hidden-only contents, partial-copy failure, and
junction-creation failure; the original data remained available on
failures.
## Evidence and reuse
- [Detailed methodology, caveats, per-job results, cache inventory, and
guard
tests](https://github.com/marcpems/IronRDP-ci-benchmark/tree/baec7cf0a4798d45f35b552290905636c77b6979/benchmarks/refs-storage)
- [Reproducible fork-only benchmark
workflow](https://github.com/marcpems/IronRDP-ci-benchmark/blob/perf/windows-arm-refs-benchmark/.github/workflows/refs-benchmark.yml)
Co-authored-by: marcpems <20582938+marcpems@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The .NET bindings had no runtime test, only a compile check. Upcoming
Diplomat work changes how the generated wrappers hold native handles, so
a regression would only show up in a consumer app.
Add a small console test runner, in the same style as IronVNC's, that
exercises the bindings without a network: image data, byte buffers,
error mapping, PDU sizing, config validation, and the first X.224
exchange of the connector. Run it in the FFI CI job.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A transient GitHub 500 while adding labels failed the final writer after
a successful classification, losing the whole run. The writer now
installs an Octokit request hook that retries 5xx responses up to three
times with 1, 2, and 4 second delays, but only for requests whose
repetition cannot duplicate state: reads, updates by identity,
deletions, and label additions. Creating comments, reviews, check runs,
and dispatches is never retried, so the review-once and canonical-check
guarantees hold. The github-script `retries` input was not used because
it retries every POST.
Re-running the failed writer job then published nothing and reported
success, leaving the canonical check in progress, because lease
ownership required the exact run attempt that claimed it. The lease
owner is now the workflow run: a later attempt of the same run continues
its lease, and admission in a later attempt may reclaim its own earlier
attempt's lease. GitHub runs attempts of one run sequentially, so other
runs remain excluded while any attempt is active, and a completed run
still releases the lease.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Pin public Wireshark RDP captures for repeatable benchmark inputs.
Fetch only immutable raw URLs with curl, verify SHA-256 digests, and
atomically replace corrupt cache entries. CI rejects tracked packet
captures.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Let the PR author or a repository writer request human review after a
trusted findings-bearing exact-head AI review, without another model
call or review-count change.
Persist a comment-, review-, and head-bound acknowledgement check so
lifecycle reconciliation preserves the handoff across later events.
Reject stale commands and keep CI, classification, lease, and failure
gates authoritative.
Extend the canonical review count to three and preserve the current next
actor after a findings-bearing terminal review.
Bind successful review receipts to the count they produced so a later
classified, green head can hand off to a human without a fourth model
review.
Derive next-actor labels from current PR, CI, lease, and trusted
exact-head review state instead of individual event transitions.
Preserve already-admitted valid reviews across draft and closed-unmerged
states while stale, merged, ambiguous, and partial states fail closed.
The semver job uses the runner's default stable Rust, now 1.99, whose
rustdoc JSON is format v61. cargo-semver-checks 0.49.0 rejects it with
`unsupported rustdoc format v61` (see
https://github.com/Devolutions/IronRDP/actions/runs/37632348831), so the
public API compatibility check fails on every PR. Version 0.50.0 added
v61 support and 0.51.0 is the release matching Rust 1.99.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Claim canonical classification and review checks before provider work,
and recheck automatic review ownership before the general stage. Queued
duplicates exit without evidence or model calls, while abandoned owners
can be reclaimed for an at-least-once retry.
Make same-head canonical success absorbing so later automatic or forced
failures cannot downgrade checks, counts, or actor labels. Partial
publication deliberately remains a manual repair or model-rerun case
rather than introducing a transaction subsystem.
A general review failed after exhausting its repairs because the model
never had the specialist candidate IDs
(https://github.com/Devolutions/IronRDP/actions/runs/36724237360). It
finalized with no dispositions, its one repair lookup hit a rejected
`./` path, and the last repair invented nine IDs from the positional
diagnostic. The published reason kept only the final attempt's counts,
so none of this was visible.
Validators may now return a content-free detail, which replaces the
short reason in repair feedback and is kept per attempt, and repair-only
guidance, which may quote trusted identifiers and is never logged. The
final-review validator uses them to report every coordinate and the
exact `reviewer` and `finding_id` pairs to copy: an entry to add for
absent candidates, and the existing entry to correct when only its
rationale is unusable. This deliberately relaxes the earlier rule that
repair feedback never quotes candidate IDs; they come from the validated
aggregate and are restricted to `^[a-z][a-z0-9-]{0,63}$`.
The general stage also receives the candidate ID index through a new
trusted `prompt-context` input, and each stage's rejected attempts reach
the workflow summary in a new "Rejected output attempts" table. The
openai-agent intent records the prompt context trust rule and the detail
and guidance contract.
The sandbox now drops empty and `.` tool path segments, lists the
allowed capabilities for the workspace root, and truncates lines over
the per-line limit instead of failing the read, which makes an oversized
pull request body readable again. Search results are bounded by the
serialized tool-result budget, so many long matching lines truncate the
result instead of failing the call.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This PR makes CI completion authoritative during automated review gating and retries lagging workflow-run listings.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Replace the overloaded maintainer-required state with mutually exclusive
needs-review and needs-author-action labels plus an orthogonal
automation-failed marker. Derive the labels from validated exact-head
classification and review outcomes while leaving ordinary blocked routes
outside both queues.
Paginate check and CI lookups, persist the authorizing CI generation,
and revalidate it before non-forced publication. Replace actor labels
removal-first so a failed transition cannot leave contradictory queue
state.
Canonicalize model output through trusted stage-specific normalizers
before applying the unchanged schema and semantic validators. Project
unknown properties and bound only declared non-authoritative prose so
harmless output drift no longer discards valid reviews.
Emit bounded field-specific schema diagnostics for remaining repairable
failures while keeping identity, evidence, locations, provenance, and
publication constraints strict.
Stream Helmcode chat completions beyond the former request cutoff.
Enforce raw-body, idle, and stage budgets within each logical call.
Buffer complete tool batches before execution.
Keep each reviewer stage single-invocation instead of replaying
completed conversations.
Keep jobs alive long enough to persist bounded failures.
Make structured output targets input-only.
Normalize ill-formed Unicode without merging object keys.
Consolidate resolver artifact downloads.
Restore the detailed action trust, repair, and diagnostics intent.
Make schemas and semantic validators share character and integer limits
so valid structured reviews are not rejected by hidden byte budgets.
Retain one assistant-content safeguard and add bounded request
diagnostics for later reliability work.
Automatic review previously required non-owner/member authors to have
one prior merged pull request before automation would run, posting a
contributor-ineligible comment otherwise. Drop that requirement:
contributorEligibility now returns eligible for any non-bot author
right away, with no merged-PR history lookup.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Synchronize portable Tessl linting guidance and the canonical,
self-contained skeptical reviewer from Devolutions Gateway. Use the
canonical agents scope for synchronization PRs.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
`maintainer-required` was applied as soon as the second automated review
published, even when that review reported findings. The pull request
then looked ready for a maintainer while the next step still belonged to
the contributor.
The label now follows the review outcome alone: a review reporting no
findings hands the pull request over, and a review reporting findings
withdraws it. Automatic review stops at `ai-reviewed/2`, so
classification performs the handoff on the contributor's next push, once
the outstanding findings are presumed addressed.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The run title already names the pull request an automation run targets,
but it is plain text. Getting from a workflow run back to the pull
request means looking the number up by hand, which is annoying when
triaging runs from the Actions tab.
The `resolve-pr` job now writes the link into the run summary as soon as
it resolves a pull request, so it shows up at the top of the run summary
page on every route (classification, CI completion, dispatch, and
review). The URL base comes from a `PULL_REQUEST_URL_BASE` env value
built from `github.server_url` and `github.repository`, matching how
`SUMMARY_URL` is already assembled elsewhere in the workflow. Runs that
resolve no pull request write nothing.
Also documented in `PR_AUTOMATION.md` and the workflow intent file, and
covered by a test that executes the extracted job script and asserts
both the rendered link and the no-PR case.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The PR automation workflow serves two very different routes,
classification and review, but its run name only carried the pull
request number. In the Actions list every run looked like `PR #123`, so
there was no way to tell a classifier run from a reviewer run without
opening it.
The run name now appends the mode, for example `PR #123 (classify)` or
`PR #123 (review)`.
The mode is derived from the triggering event rather than from
`resolve-pr`'s `route` output, because `run-name` is evaluated before
any job runs and cannot read job outputs. The mapping mirrors `routeFor`
in `.github/pr-automation/resolve-pr.js`:
- `review` for CI `workflow_run`, `repository_dispatch`, and
`workflow_dispatch` with `review: true`
- `classify` for `pull_request_target` and `workflow_dispatch` with
`review: false`
One known imprecision: adding the `ai-review/allow-oversized` label
arrives as a `pull_request_target` event, so it is labeled `classify`.
That is accurate for the route it takes, since it restarts
classification with a larger evidence cap, even though the maintainer's
intent is to reach a review.
The existing run-name test in `.github/pr-automation/automation.test.js`
was extended to cover the new suffix. All 122 tests in that suite pass.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Metadata-level overlap is not a reason to cancel code review.
The classifier reports possible shared scope through `overlap`, using
bounded candidate titles and truncated bodies without inferring history
or priority.
`triage/overlap` and a neutral advisory comment inform maintainers while
normal review proceeds under the CI, author, rate, evidence, legitimacy,
and review-count gates.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Rename the PR automation workflow and intent documentation from
`labeler.*` to `pr-automation.*` to match its actual scope beyond
labeling.
Add an explicit run name that formats the target PR number across
pull_request, workflow_dispatch, repository_dispatch, and workflow_run
triggers, falling back to the source branch and commit SHA when no PR
number is associated.
Update repository documentation and workflow test assertions to match
the new filenames.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Reserve maintainer-required for points where maintainer action is next.
Clear stale handoff state during classification and non-green CI, then
restore it after clean or final reviews and when automation stops.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep classification and label reconciliation active after ai-reviewed/2
while preventing another automated review dispatch.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Harden PR-automation classification, review dispatch, and publication
without relaxing SHA-bound safeguards.
- Require a trusted, GitHub Actions-owned `AI classification` check with
valid machine state at the current head before any reviewer starts.
Forced reviews bypass policy and CI eligibility only; valid `Automation
stopped` classifications remain force-reviewable, while missing, stale,
or invalid classifications fail forced or manual `workflow_dispatch`
invocations before provider work begins. Automatic CI and
classification-complete races remain normal skips.
- Retry exactly one malformed, read-only GitHub pull GET (`500
Unexpected end of JSON input`) at the post-check, pre-dispatch boundary
observed in production. Do not retry writes or dispatch POSTs: stale,
terminal, and exhausted paths neither dispatch nor replay the persisted
check. Classification dispatch remains edge-triggered.
- Use four classifier lanes and seven whole-pipeline lanes, with at most
three specialists running per pipeline. The peak provider capacity is 25
concurrent requests: four classifiers plus three specialists across
seven pipelines. Lanes are calculated in trusted JavaScript, not GitHub
Actions expressions.
- Preserve every validated finding, including clean reviews. Required
reviewer failure is unavailable; optional failure produces deterministic
reduced-coverage notices naming unavailable reviewers without provider
diagnostic details.
- Publish stage outcomes and LLM-only metrics with cumulative elapsed
seconds plus explicit input, output, and total token columns. Totals
include repeated context across requests and repairs; missing or partial
usage remains explicit. Detailed failure diagnostics stay in the
workflow summary, not pull-request reviews or checks.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Record the review contract after a forced run skipped protocol review
and published despite an optional specialist failure.
Require exact-head classification even in force mode and disclose
reduced coverage while keeping detailed failure reasons in the workflow
summary.
Specify actionable validation diagnostics and LLM-only metrics with
explicit token counts and elapsed seconds.
Allocate four classifier lanes and seven review-pipeline lanes within
the Helmcode key's 25-request limit, retaining whole-pipeline locking
and at most three parallel specialists per pipeline.
Update intent only; workflow implementation is unchanged.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Recover transient reviewer failures without repeating successful stages.
Retry a stage once after a configurable delay of 120 seconds by default,
using the runtime's retryability verdict and rechecking current
eligibility, head, base, and evidence limits before spending another
request.
Force mode bypasses policy but not evidence or stale-head safeguards;
exhausted output repair remains terminal.
Keep pinned evidence and successful results within one workflow
invocation.
The caller retains publication and the global concurrency lock,
including during the delay; later workflow runs start with a fresh
bounded budget.
Required reviewers remain caller-selected, including an explicit empty
list, with the classification gate as the fallback only when that input
is absent.
Configure up to four request retries and two in-conversation repairs per
reviewer invocation, with trusted review-specific validation.
Return one shared report containing stage outcomes, failed-attempt and
declined-retry reasons, and metrics that preserve unavailable usage and
count both attempts.
Grant the caller the read-only Actions and Checks permissions required
by recovery preflight, so the pipeline can land before its reporting
consumer.
The workflow remains callable only through `workflow_call`, runs at most
three specialists concurrently, and never executes pull request code.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Expose normalized recovery diagnostics in the AI automated review check
and workflow summary.
Keep failed attempts, unavailable or partial measurements, and the
summary link visible without publishing metrics in review comments.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Invoke one bounded review pipeline that recovers transient failed stages
while retaining successful results.
Configure classifier request retries in its JSON configuration and pass
the required reviewer selection to the pipeline.
Render the shared recovery report in the workflow summary and link it
from the review check, keeping unavailable metrics explicit and
diagnostics out of findings.
Preserve caller-owned eligibility, stale-head and policy safeguards,
idempotent publication, and review-count limits.
Only a report backed by valid final-review output can produce a
successful check.
Depends on #1922.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Define recovery requirements so provider failures and invalid output do
not waste completed review work.
- Keep request execution and output repair in the reusable action.
- Assign result reuse and review validation to the review pipeline.
- Keep recovery scheduling, publication, and reporting in the labeler.
This change documents intent only; runtime behavior is unchanged.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Publish an Actions job summary when the automated review pipeline is
skipped. List every gate and fork-quota blocker so maintainers can
understand the decision without inspecting raw JSON logs.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Report severity as the actionable review signal and leave blocking
decisions to pull request authors.
Remove redundant classification and model-schema version fields, retain
questions as a boolean marker, and publish a green review when no
findings remain.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Preserve edge-triggered review dispatch for new or changed SHA-bound
classification checks. Treat `ai-review/allow-oversized` as an explicit
retry that forces actual reclassification and may redispatch unchanged
state on the same head. Remove the unreachable cached-dispatch job so
repeated unchanged classifications and unrelated label events remain
inert.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Run automated review for every eligible non-draft pull request and lower
contributor history to one same-author pull request merged into master
while exempting owners and members.
Replace author quotas with a 50-PR repository-wide fork quota and let
the oversized opt-in raise complete diff evidence from 1 MiB to the
runtime maximum of 4 MiB.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Reserve two static classifier lanes and serialize complete review
pipelines so Helmcode never receives more than five concurrent requests
per key.
Run selected specialists in a three-wide reusable-workflow matrix and
transfer SHA-bound evidence and validated results between jobs with
artifacts.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Migrate IronRDP classification and review policy to Helmcode using the
repository's generic agent action.
Keep routing workflow-controlled, specialists sequential, final
validation independent, protocol citations pinned, and current-label and
review-count publication gates intact. Fail closed when complete
evidence cannot be provided.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>