test(agent): stop framing the e2e attachment marker as a confidential access code - #218
Conversation
… access code Use a harmless shipment reference id so the live test measures attachment reading rather than willingness to disclose credentials. Keep the marker in the attachment and preserve the assertion. Signed-off-by: Thomas Kosiewski <tk@coder.com> --- _Generated with [`xum`](https://github.com/coder/xum) • Model: `coder:openai/gpt-6-astra` • Thinking: `xhigh`_ Change-Id: I9923dc0801ad3e3d48f7f0485be05d561e9df436
|
@codex review |
|
@codex security review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Summary
The attachment-reading test described
ZEBRA-7731as an access code and told the model to keep it confidential. That made success depend on the model's willingness to disclose a supposed credential, not just its ability to read the attachment. PR #217 records two 6/7 runs and the exact refusal, with logs and media.Only “attaches a file and the model reads its contents” changes. The attachment is now a shipment note with a harmless reference id. The question asks for that reference id without revealing
ZEBRA-7731. Thesecretvariable becomesmarker; the assertion remainsexpect(result.text).toContain(marker).No other tests, tool fixtures, runtime code, agent instructions, model settings, or timeouts change.
Validation
Head:
e11873de81c1a9e22ad69f22ef30f37290694c94. One commit from50d16ea91b6f044b6917b18943f4d91de4117176.pnpm check: passed (format, lint, typecheck).pnpm --filter @coder/ai-sdk-agent test: 369 passed.pnpm -r buildandpnpm -r test: passed.coder whoami: passed before each live run, using ambient authentication onhttps://dogfood.cdr.dev. No tokens were printed, created, revoked, or unset.haiku/sonnet).Both native receipts: Vitest exit 0; tee exit 0. No failed post-change run or retry preceded these results.
Reproduce:
coder whoami cd packages/agent npx vitest run test/e2e npx vitest run test/e2eVerification tier: source/diff checks plus two live runs on dogfood. Raw logs, native exit receipts, and terminal casts are preserved outside the checkout. The clips below are accelerated terminal-output replays (5.80s and 5.72s), not real-time recordings or additional test invocations. They provide completion evidence; the logs retain the full emitted test output.
Run 1: complete test log
Run 1: screenshot and accelerated terminal replay
live-1.webm
Run 2: complete test log
Run 2: screenshot and accelerated terminal replay
live-2.webm
Final readiness and outcome
e11873de81c1a9e22ad69f22ef30f37290694c94. The committed diff is byte-identical to the validated diff.758636bbc0fae91f850e1ac0cdf398b369bf9480, verified reachable onorigin/main. Attribution is retained in the squash commit.expectedHeadOid.chore(agent): release 0.11.5. Its notes say “A maintenance release with no documented user-facing changes.” That release PR is left untouched; release-policy changes are outside this task.$HOME/w40-scratch/e2e-attachment-fixture.tjibYa/.Generated with
xum• Model:coder:openai/gpt-6-astra• Thinking:xhigh