Skip to content

fix: make reflect smoke request handoff exact - #11431

Merged
lpcox merged 1 commit into
mainfrom
lpcox-fix-reflect-smoke-task-handoff
Nov 10, 2026
Merged

lpcox merged 1 commit into
mainfrom
lpcox-fix-reflect-smoke-task-handoff

Conversation

@lpcox

@lpcox lpcox commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

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.

  • Publish initial-request.json containing only task.json.request, copy it into the isolated guest, and give the real agent an exact curl --data-binary @initial-request.json first command. The launcher makes no target requests itself.
  • Require a diagnostic GET after rejection; clarify that do_not_repeat prohibits 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.
  • Exercise the real publication/guest prompt/submission boundary for all three launchers and both scenarios using mock CLIs and production proxy servers. Retain the five follow-up failure chronologies as fail-closed regressions, including valid effort rejection/diagnostics followed by no correction. Preserve first-failed IDs and sanitized ingress/forwarded shape evidence.
  • Document observed failures separately from hypotheses and keep live acceptance explicitly pending.

Production /reflect already supplies change_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 -n for both shell scripts; node --check for the changed CommonJS files; targeted Markdownlint; git diff --check: passed.
  • ShellCheck: no new findings. Baseline run.sh already 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.

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]>
Copilot AI adaptive review requested due to automatic review settings November 10, 2026 20:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants