Repository navigation
test(agents): derive prompt handle identity from fixture - #134094
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 9:30 AM ET / 13:30 UTC. ClawSweeper reviewWhat this changesThe PR creates one prepared attempt fixture and derives the provider-runtime handle’s provider and model ID from it in an embedded-agent prompt test. Merge readinessKeep open. This is a focused, behavior-neutral test-fixture cleanup that current main does not yet contain; it removes a second source of provider identity without changing the sandbox-policy assertions. Priority: P3 Review scores
Verification
How this fits togetherEmbedded agent runs prepare a system prompt from a prepared attempt and provider runtime handle. This test exercises sandbox-policy reporting while avoiding unrelated provider-identity drift in its fixture. flowchart LR
A[Test fixture] --> B[Prepared attempt]
B --> C[Provider runtime handle]
C --> D[Prompt preparation]
D --> E[Sandbox-policy report assertions]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +1. Total +1 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Use the prepared attempt as the single fixture owner for provider and model identity, preserving the existing sandbox-policy coverage. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR reorganizes a test fixture rather than reporting a runtime defect. Is this the best way to solve the issue? Yes. Aligning this fixture with the existing local single-attempt pattern removes duplicated identity ownership without altering production behavior or test expectations. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 87dba63ec9c5. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Exact-head CI passed for The current ClawSweeper review covers the same head and reports no actionable findings or Rank-up moves. The focused prompt-fixture result already recorded in the PR body is 12 passed, zero failed; this PR derives provider/model identity from the single attempt fixture while preserving the sandbox-policy assertions. Production remains unchanged. |
|
Merged via squash.
|
What Problem This Solves
The sandbox-policy prompt fixture repeats the provider and model ID when supplying its prepared runtime handle. Changing one copy can silently trigger unrelated provider discovery instead of exercising only the intended sandbox-policy behavior.
Why This Change Was Made
Give the attempt one fixture object and derive both handle identity fields from it, matching the existing permission-prompt fixture. The sandbox-policy assertions stay unchanged.
User Impact
No runtime behavior change. This consolidates test identity ownership so the attempt and handle cannot drift. Production +0/-0; tests +12/-11. Current main already supplies the model ID, so this PR makes no additional timing claim against current main.
Evidence
{"numPassedTests":12,"numFailedTests":0,"numPendingTests":0,"success":true}The refreshed candidate passes all prompt fixture cases after merging current main and resolving the overlapping handle-identity edit. The full embedded configuration suite previously passed 105 files and 1,467 tests with this fixture shape. Full changed-file validation passed before the refresh; formatting, diff checks, focused execution and structured Codex autoreview cover the refreshed candidate. Exact-head CI is required before landing.