Repository navigation
fix(policy): bound OPA validation input and output by its deadline - #3110
Conversation
Exact repaired-image resultsAll three
Each build printed: The local Podman engine used its supported classic Docker build path with Linux command syntaxThe test results in the pull request were produced inside the Linux SDK container. These are the commands with Linux paths: dotnet test tests/Agentweaver.Policy.Acs.Tests/Agentweaver.Policy.Acs.Tests.csproj --no-restore --configuration Release --runtime linux-x64 -p:AgentweaverUseLinuxX64LockFile=true
dotnet test tests/Agentweaver.Projects.Config.Tests/Agentweaver.Projects.Config.Tests.csproj --no-restore --no-build --configuration Release --filter "FullyQualifiedName~NativeAcs"Results: 59 and 130 passed, respectively, with no skips. After merge, the normal |
Summary
Keep Policy validation responsive when its parser input or output stalls. The existing five-second parse budget now covers input writes, process exit, and bounded output reads. Cleanup waits at most another 500 ms. Early syntax errors keep their existing error result.
Fixes #3109, a v1.1.0 blocker for #2655. Public signatures, artifact limits, executable pinning, and the native package remain unchanged.
Design and release
docs/specs/canonical-acs-policy-api-source-slice.md.Agentweaver.Policy.Acspatch changeset included.Validation
The new regressions produced three failures on the baseline: blocked input exceeded the deadline, an inherited output pipe blocked completion, and an early syntax error returned a dependency error. All pass with the repair.
Linux x64 with .NET 10 and checksum-verified OPA 0.70.0:
Results: 59 native ACS tests and 130 Projects native tests passed with no skips. The focused owner-slot checks also passed: a timed-out request returns the dependency error, and the same owner accepts the next validation request.
Repository checks passed:
The exact repaired-image probes for Projects & Config, Orchestrator, and AgentHost will be recorded before merge. The merged-image results will be linked before #2655 closes. Network activation remains under #2659.