Repository navigation
fix: make reflect smoke request handoff exact - #11431
Merged
Merged
Conversation
Publish a request-only payload and an exact first submission command. Clarify evidence-backed effort corrections versus permanent policy denial without automating recovery or relaxing grading. Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Mock CLIs cover only the first command, leaving recovery and stopping behavior across Copilot, Claude, and Codex unverified pending a separately authorized live Docker smoke test.
No open issues 🎉
What changed in this PR
This PR makes the /reflect smoke harness’s initial request handoff explicit and clarifies agent recovery instructions without changing production proxy behavior or grading requirements.
Changes:
- Publish and copy a request-only JSON file, with an exact first submission command in the guest prompt.
- Clarify diagnostic GET requirements, evidence-backed effort corrections, and stopping on confirmed policy denial.
- Add handoff and failure-chronology regressions, while documenting that live-agent acceptance remains pending.
| File | Description |
|---|---|
scripts/ci/reflect-smoke/run.sh |
Copies the request-only file into each guest workspace. |
scripts/ci/reflect-smoke/README.md |
Documents the handoff, observed failures, and validation limits. |
scripts/ci/reflect-smoke/harness.test.cjs |
Checks request-file copying and updated prompt instructions. |
scripts/ci/reflect-smoke/guest.sh |
Provides the exact initial command and clarifies correction and denial handling. |
scripts/ci/reflect-smoke/fixture.test.cjs |
Tests all launcher/scenario handoffs and retained failure chronologies. |
scripts/ci/reflect-smoke/fixture.cjs |
Publishes initial-request.json from task.request. |
Review effort: Balanced (auto)
This was referenced Nov 14, 2026
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.
Summary
Follow up on the merged #11429 evidence improvements with a focused harness/prompt fix for run 42896199716. The linked provider-free job passed; the live jobs failed grading after successful builds/CLI installs, with all six scenario agent exits zero.
initial-request.jsoncontaining onlytask.json.request, copy it into the isolated guest, and give the real agent an exactcurl --data-binary @initial-request.jsonfirst command. The launcher makes no target requests itself.do_not_repeatprohibits unchanged retries, not evidence-backed effort corrections. The agent still interprets production diagnostics, selects the supported effort, submits its own correction, and decides when to stop. Require stopping without another POST on confirmed policy denial; unrelated failures or missing evidence must not be mislabeled permanent denial.Production
/reflectalready supplieschange_request/do_not_repeat, exact-model/endpoint correction guidance, and the fixture's current effort evidence. No production model, resolver, pricing, admission, endpoint, grader or workflow-build changes are needed. All request-count, upstream, nonce/result, isolation, credential, rate/time/credit and sanitization contracts remain unchanged. No shared-build optimization is included.Evidence and limits
Four initial mismatches were already present on ingress and forwarded as fixture 422s. Task-envelope submission reproduces them locally, but sanitized artifacts do not establish the historical raw payload. Claude recovery stopped after a valid 400 and diagnostic GET; why it stopped remains unproven. This PR removes reproduced handoff/instruction ambiguity, not a proven internal agent cause.
The mock CLIs execute only the literal first command from the real guest prompt. Subsequent diagnostic/correction/stop actions in those tests belong to the test driver, not to an automated guest recovery helper. No supported effort or expected result is exposed by the new request file.
Validation
npm run test:reflect-smoke: 28 passed, no skips; new handoff tests first failed on the missing request-only publication before implementation.bash -nfor both shell scripts;node --checkfor the changed CommonJS files; targeted Markdownlint;git diff --check: passed.run.shalready reports SC2329 (EXIT-trap callback), SC2034 (loop counter), and SC2016 (literal Markdown backticks); with those three existing diagnostics excluded, both scripts pass.No live inference, Docker guest execution, token exchange, workflow dispatch/rerun, merge or auto-merge was performed. Local checks do not establish real-engine acceptance; that requires separate authorization for a manual live run.