Repository navigation
Add experimental declarative mini-SWE-agent engine - #75773
Conversation
|
✅ Ponytail Reviewer completed successfully!
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
❌ Design Decision Gate 🏗️ failed to deliver outputs during design decision gate check.
|
There was a problem hiding this comment.
Reviewed the changed workflow, engine definition, harness, smoke workflow, documentation, and tests. I found no actionable correctness or regression issues in the changed lines. The specialist pass was unavailable because its file access was rejected, so this verdict is based on the independent review only.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
|
Warning The 🏗️ Design Decision Gate — ADR RequiredThis PR makes significant changes to core business logic (>100 new lines: 159 additions under 📄 Draft ADR committed: Decision captured in the draft: Add mini-SWE-agent as an unsupported, experimental declarative engine (
📋 What to do next
Once an ADR is linked in the PR body, this gate will re-run and verify the implementation matches the decision. ❓ Why ADRs Matter
ADRs create a searchable, permanent record of why the codebase looks the way it does. Future contributors (and your future self) will thank you. 📋 Michael Nygard ADR Format ReferenceAn ADR must contain these four sections to be considered complete:
All ADRs are stored in
|
There was a problem hiding this comment.
What this change does: This adds an experimental mini-SWE-agent imported engine. Its Node harness discovers an AWF provider endpoint, maps the selected model for LiteLLM, and the Go tests exercise routing and failure cases.
Should fix:
-
Duplicate provider resolution (
.github/workflows/shared/mini-swe-agent.md:L124-132)- What this is: The harness resolves
/reflectand then scans the same endpoints again. - Problem: The resolver result is only used as a guard; the second scan already selects a configured provider and the base-url helper validates its URL.
- Fix: Keep one configured-alias lookup that also requires
models_url, then derive the base URL from it. - If we skip it: Provider-routing changes must be maintained and tested in two paths.
- What this is: The harness resolves
-
Duplicate frontmatter parser (
pkg/workflow/mini_swe_agent_workflow_test.go:L22-27)- What this is: The test manually splits Markdown and unmarshals its YAML.
- Problem: The package already has
readConformanceFrontmatter, so this adds a second parser with weaker delimiter handling. - Fix: Reuse the shared helper and remove the duplicate parsing code.
- If we skip it: This test can drift or break independently when frontmatter format changes.
Verdict: fix 1 and 2 first.
Lean: -10 lines possible.
Generated by ✂️ Ponytail Reviewer for #75773 · codex · routed: gpt56 max · ~6 AIC · ⌖ ~1 AIC · ⊞ 118
Comment /ponytail to run again
|
@copilot Add an engine conformance workflow for this new agentic engine. |
There was a problem hiding this comment.
🟡 Changes recommended
Host-side Python commands can execute repository-controlled modules or unverified dependency code while Git credentials are present, leaving critical security risks unresolved.
4 open issues
What changed in this PR
Adds mini-SWE-agent as an unsupported experimental engine sample using gh-aw’s existing declarative engine infrastructure, without production Go runtime or schema changes.
Changes:
- Adds pinned Python installation, AWF provider routing, file-based prompts, turn limits, and explicit task submission.
- Adds a manual smoke workflow, compiled lock file, and harness regression tests.
- Registers the engine sample and documents setup and limitations.
| File | Description |
|---|---|
pkg/workflow/mini_swe_agent_workflow_test.go |
Tests provider routing, validation, exit codes, and working directories. |
docs/src/content/docs/reference/third-party-agent.md |
Lists the sample and its constraints. |
docs/src/content/docs/reference/engines.md |
Links the new experimental sample. |
.github/workflows/smoke-mini-swe-agent.md |
Exercises file editing, repository access, submission, and safe outputs. |
.github/workflows/smoke-mini-swe-agent.lock.yml |
Provides the compiled smoke workflow. |
.github/workflows/shared/mini-swe-agent.md |
Defines installation, execution, provider routing, and usage guidance. |
.github/aw/engines.json |
Registers the shared engine import. |
.changeset/add-mini-swe-agent-engine.md |
Records the sample addition as a minor release change. |
Review effort: Balanced (auto)
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnosing-bugs and /tdd. Requesting changes on two gaps: the default turn budget, and a Python body that no test executes.
📋 Key Themes & Highlights
Key Themes
- Silent budget default:
GH_AW_MAX_TURNS || "500"gives 500 model calls with no cost cap (cost_limit = 0) when the repo variable is unset. - Untested Python body: the inline
-cscript is only exercised by anodestub. A bad import or config key surfaces only in a live run. - Unverified runtime assumptions: the
mini-swe-agent==2.4.6import paths and thepip install --userlocation inside AWF were not confirmed.
Positive Highlights
- ✅
excluded-envis merged into AWF--exclude-envas intended, and the token list covers bothGITHUB_TOKENandGH_TOKEN. - ✅
GH_AW_ENGINE_VERSIONis set job-wide, so the pinned install and the execute step agree on the version. - ✅ The harness reads
/reflectthrough the sharedawf_reflect.cjsexports, and the provider aliases resolve. - ✅ The compiled lock quotes the
-cbody correctly inside the bash wrapper.
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~8 AIC · ⌖ ~2 AIC · ⊞ 5.4K
Comment /matt to run again
Co-authored-by: pelikhan <[email protected]>
Added the mini-SWE-agent conformance worker and registered it with the scheduled portfolio. Commit: |
|
Copilot assignment requested for the following outstanding work:
Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI. Sous-chef requested-head: c3b3cb4
|
Co-authored-by: gh-aw-bot <[email protected]>
|
In reply to this comment: Acknowledged. The two actionable Ponytail findings are addressed in their inline threads; this completion notification needs no separate code change. |
|
In reply to this comment: Acknowledged. The budget and Python execution findings are addressed in their inline threads; the review completion notification needs no separate code change. |
|
In reply to this comment: Acknowledged. This notification contains no actionable specification finding, so no code change is needed for it. |
|
In reply to this comment: Acknowledged. The actionable code quality feedback is handled in its inline threads; this completion notification requires no additional change. |
|
In reply to this comment: Acknowledged. A reported_no_action notification is not validation evidence, so the batch uses focused tests and the repository validation gate instead. |
|
In reply to this comment: The failed gate supplied no actionable design feedback, so no workflow rerun is needed for this notification. The integration decision and tradeoffs are now captured in Accepted ADR-75773 and linked in the PR body. |
|
In reply to this comment: Accepted. Added an Accepted Michael Nygard ADR covering the declarative engine, isolated dependency installation, provider routing, diagnostic retention, alternatives, and limitations; ADR-75773 is linked in the PR body. |
|
In reply to this comment: The mini-SWE-agent conformance worker is present and registered in the portfolio. Its shared host-verified probes and dispatch-only assignment contract are preserved, with unnecessary GitHub MCP access disabled. |
|
In reply to this comment: Preserved the existing conformance worker and portfolio registration. The batch adds regression coverage for the required transports without broadening the engine's claimed capabilities. |
|
In reply to this comment: Accepted the branch update and actionable fixes; latest main is merged and the current impacted Go failure was fixed by updating a stale query-test boundary. The related runtime findings are addressed individually in their review threads. |
|
In reply to this comment: This is an earlier assignment-running notification, not an additional change request. The batch addresses the underlying runtime, branch-update, and CI feedback rather than repeating that assignment. |
|
In reply to this comment: Fixed the current impacted Go failures caused by a stale shared-query test boundary. The historical JavaScript portfolio failure is already fixed, and its focused suite passes all 16 tests. |
|
In reply to this comment: Preserved the existing engine coverage count and Python registry-domain fixes. Their focused regression tests pass; the new CI fix addresses a separate stale query-test boundary. |
|
In reply to this comment: Latest main is merged, and the referenced JavaScript failure was already corrected in a9baa11; its focused suite passes all 16 tests. The currently failing impacted Go cases have also been fixed without dispatching any workflow. |
|
In reply to this comment: This is an assignment-running notification and needs no additional code change. The underlying JavaScript failure is already fixed, and the batch also addresses the current Go failures. |
|
Copilot assignment requested for the following outstanding work:
Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI. Sous-chef requested-head: 6be9972
|
Copilot assignment requested for the following outstanding work:
Sous-chef requested-head: 6be9972 |
…agent-engine Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>
|
🎉 This pull request is included in a new release. Release: |


Summary
Adds mini-SWE-agent as an unsupported experimental imported engine sample, pinned to PyPI 2.4.6 on Linux x86-64 / Python 3.12. It reuses the behavior-defined runtime and adds reusable
behaviors.output-filesdeclarations for redaction-gated native diagnostics.Uses the non-interactive Python API, file-based prompts, AWF endpoint discovery, and Copilot, OpenAI/Codex, or Anthropic provider routing. The complete dependency wheel set is version- and SHA256-locked and installed inside AWF with isolated Python. Provider credentials are excluded; the child environment is allowlisted, native submission is required for success, and
max-turnsdefaults to 20.Includes catalog registration, a manual smoke workflow, a portfolio conformance worker, compiled locks, focused regression tests, documentation, and a minor changeset. Native MCP is not claimed: tools use CLI proxies, and the required conformance gh-proxy transport is limited to the
repostoolset. Native trajectories are untrusted diagnostics, retained only after secret redaction and recovery-envelope validation, including failed executions.ADR: ADR-75773: Add an experimental mini-SWE-agent declarative engine
Validation
make merge-main,make build,make fmt, andmake recompile; all 364 workflows compiled.make agent-report-progresspassed, covering lint, impacted tests, schema freshness, and workflow drift; its JavaScript suites passed 63 tests.No GitHub workflow was dispatched. Local package evidence does not establish live AWF execution.