Repository navigation
Conversation
…lation Co-authored-by: pelikhan <[email protected]>
Co-authored-by: pelikhan <[email protected]>
Co-authored-by: pelikhan <[email protected]>
Copilot
AI
changed the title
[WIP] Fix AWF-binary gap in BehaviorDefinedEngine
Install AWF binary for behavior-defined engines that declare no npm installation
Aug 8, 2026
Copilot stopped work on behalf of
pelikhan due to an error
August 8, 2026 03:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BehaviorDefinedEngine.GetInstallationStepsreturnednilfor any engine whose behavior declares noinstallationblock (and noharness-script) or a non-npmone, while the compiler still emittedawf ...in the agent execution step whenever the firewall/sandbox is enabled. Every Smoke Pydantic AI run died withawf: command not found(exit 127) before the engine started;smoke-pydantic.lock.ymlinvokedawftwice with zeroinstall_awf_binary.shsteps in the file.Compiler fix
pkg/workflow/behavior_defined_engine.go— bothnil-returning branches now route throughBuildNpmEngineInstallStepsWithAWF(nil, workflowData). Passing no npm steps yields only the AWF install (plus gVisor / docker-sbx runtime setup where applicable), and yields nothing when the firewall is disabled, so non-sandboxed workflows are unchanged. Theengine.commandoverride early-return is preserved, matching the Codex/Claude/Copilot engines.pkg/workflow/nodejs.go— guard the ARC/DinD "copy Copilot CLI to daemon-visible path" step withlen(npmSteps) > 0. The newnilcallers install no CLI, socommand -v copilotwould have nothing to copy.Ollama warm-up probe (cluster D)
.github/workflows/daily-byok-ollama-test.md— the warm-up hit Ollama's native/api/generatewhile the agent talks to/v1/chat/completions. A native-route 200 does not imply the OpenAI-compatible route is serving the model, which is how a passing warm-up was followed by four 503s. The probe now targets/v1/chat/completionswith a chat-completions payload.Tests
pkg/workflow/behavior_defined_engine_installation_test.gocovers no-installation + sandbox, no-installation without firewall, non-npm installation + sandbox, and theengine.commandskip path.smoke-pydantic.lock.ymlanddaily-byok-ollama-test.lock.ymlwere regenerated; the former gainsInstall AWF binaryin both theagentanddetectionjobs, with no duplicates.Not addressed
Clusters B (
dispatch_workflowmissing its requiredmessageinput) and C (fabricatedPRRT_…node ID) are agent-runtime hallucinations rather than compiler defects — no localized code change fixes them, and adding speculative validation would exceed the scope here.