fix(browser): add bounded prompt commit diagnostics - #331
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 19, 2026, 7:39 AM ET / 11:39 UTC. Summary Reproducibility: no. The PR describes prior browser submission attribution gaps, but it provides no current-main failing reproduction or redacted real-browser before/after transcript. Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Keep the diagnostics strictly opt-in and redacted, obtain a redacted real browser run showing both emitted events and unchanged submission behavior, then explicitly accept or narrow the environment-variable and event-format contract. Do we have a high-confidence way to reproduce the issue? No. The PR describes prior browser submission attribution gaps, but it provides no current-main failing reproduction or redacted real-browser before/after transcript. Is this the best way to solve the issue? Unclear. The redacted, isolated implementation is a plausible approach, but maintainers should first decide whether this new environment-variable and event-schema surface is the desired supported solution. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f13347973bf6. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Thanks for the careful bounded diagnostics work. I am closing this rather than requesting changes because adding a new opt-in environment contract and permanent browser diagnostic vocabulary is a product and observability-policy choice, not a high-confidence bug fix. The current wave is limited to reproduced behavior fixes without new design surface. This is queued for Peter to decide whether Oracle should expose this diagnostic mode and which phase names and retention guarantees become supported. |
Summary
ORACLE_PROMPT_COMMIT_DIAGNOSTICS=1Why
Oracle's prompt composer is the only layer that can observe the causal sequence between candidate selection, trusted click dispatch, the immediate post-click probe, and final commit acceptance or timeout. Bounded diagnostics make failed browser submissions attributable without exposing prompt or raw probe content.
Validation
Run with Node
v24.15.0:git diff --check./node_modules/.bin/oxfmt --check src/browser/actions/promptComposer.ts tests/browser/promptComposer.test.ts./node_modules/.bin/tsc --noEmit./node_modules/.bin/oxlint— 0 warnings, 0 errors./node_modules/.bin/vitest run tests/browser/promptComposer.test.ts --no-file-parallelism— 18/18 passedOverlap and sequencing
At preparation time, #322 and #325 were both open, conflicting with current
main, and modified both changed paths. This commit is based only onsteipete/oracle:mainatf13347973bf6e21e6ef45c0088183021dc2c9e20; it does not incorporate either PR head. If either PR lands ormainchanges, this branch should receive a fresh semantic conflict review before integration.Changelog
No new changelog bullet is included. This is an opt-in diagnostic refinement of the existing redacted prompt-commit diagnostics noted in the
0.15.1changelog; maintainers can request a separate release-note adjustment if preferred.