Skip to content

fix(transducer): hold hint names what is confirmed, what is not, and where wrap looked - #2872

Merged
abrichr merged 5 commits into
mainfrom
fix/hold-hint-names-missing
Dec 1, 2026
Merged

abrichr merged 5 commits into
mainfrom
fix/hold-hint-names-missing

Conversation

@abrichr

@abrichr abrichr commented Dec 1, 2026

Copy link
Copy Markdown
Member

Stacked on #2871.

Problem

When the done gate held a correct save, its hint said the values were "not visible in the saved result" and told the agent to enter them, save, and re-check "the saved view". On a web EMR whose record summary cuts values short, agents that already had the right form open cancelled it and kept looking until the step cap. This lost one held-out episode and one dev episode, both with correct records.

Change

With a pinned record identity, the hint now:

  • lists the values already confirmed as saved;
  • lists the values not seen yet, and the screen wrap looked at, including whether that screen showed the record;
  • says to read a saved but hidden or shortened value by reopening the record without changing it, then finish;
  • never suggests cancelling or redoing a correct form.

The generic hint (no pinned identity) drops "enter … save" and gives the same advice.

Tests

test_hold_hint_names_confirmed_missing_and_where_it_looked: on a record view that cuts the comments short, the hint lists the confirmed date, names the comments as not seen yet, says the screen showed the record, and ends with "then finish" and "Do not cancel or redo".

…where wrap looked

When the done gate held a correct save, its hint said the values were
"not visible in the saved result" and asked the agent to enter them,
save and re-check "the saved view". On a web EMR whose record summary
cuts values short, agents with the right form already open cancelled it
and kept looking until the step cap (one held-out and one dev episode
lost this way).

With a pinned record identity, the hint now lists the values already
confirmed as saved, the ones not seen yet, and the screen wrap looked
at (and whether it showed the record). It says to read a saved but
hidden or shortened value by reopening the record without changing it,
then finish, and never to cancel or redo a correct form. The generic
hint drops "enter ... save" for the same advice.
@abrichr

abrichr commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: REQUEST CHANGES

From: Grok
Reviewed-Head: 9846ac6

I reviewed this exact head. I am not approving, and I will not merge or push.

This PR is stacked on #2871. I requested changes on #2871 at 8bce1e344f368ca4c7f892748155c6d880e4b90b because any non-commit click clears form_keys and drops the form-save latch. This head includes that code, so I am not approving the stack.

This delta

The hint change itself is an improvement. With a pinned identity, _hold_hint names confirmed values, names what is still missing, says which screen wrap looked at, and tells the agent not to cancel or redo a correct form. When there are no pins or no unmet obligations it returns "" and pre_done falls back to diff.reason. The existing suite plus test_hold_hint_names_confirmed_missing_and_where_it_looked passed (29 tests).

I will re-review this wording once #2871's form_keys latch is fixed and this branch includes that fix.

Generality gate

python packages/flow/scripts/check_engine_generality.py reported "Engine generality OK (7 baseline hits left)". This is hint text only, with no application-specific engine path. No held-out real-app evidence is claimed.

CI at this head

The review-verdict check is red because there was no Grok or Codex review on protected paths; the package jobs were skipped as a result. I am not merging.

@abrichr

abrichr commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Response to the Grok review at 9846ac6. The #2871 blocker (non-commit clicks cleared form_keys) is fixed at 75f97fa and merged into this branch at b762174. This PR's own delta (hint wording) is unchanged. Re-review requested at b762174.

@abrichr

abrichr commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Grok
Reviewed-Head: 5d2135e

I re-reviewed this exact head. It is stacked on #2871 at 1cc4cbf7761f91be65671d4f9f48eaa6568ae298, which I approved in a separate comment. The form_keys latch that blocked this stack is gone.

Behavior

The hint change itself still holds. With a pinned identity, _hold_hint names confirmed values, names what is still missing, says which screen wrap looked at, and tells the agent not to cancel or redo a correct form. When there are no pins or no unmet obligations it returns "" and pre_done falls back to diff.reason. test_hold_hint_names_confirmed_missing_and_where_it_looked passed, as did the #2871 latch tests now included on this branch.

I ran tests/test_transducer_v3_runtime.py against this worktree on Python 3.12: 34 passed in 0.35s. packages/flow/scripts/check_engine_generality.py reported "Engine generality OK (7 baseline hits left)". This is hint text plus the #2871 fix, with no application-specific engine path. No held-out real-app evidence is claimed.

CI at this head: packages scope, packages-gate, install weight, launcher run-ci, smoke, dependency-review, validate-platform-manifest and gitleaks passed. review-verdict is red because the newest Grok review was still REQUEST CHANGES at 9846ac62. I am not merging. A release decision, if any, still sits with the maintainer.

@abrichr

abrichr commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Grok
Reviewed-Head: a45cb5c

I re-reviewed this exact head (R2 after my APPROVE at 5d2135e2e2bb). This head merges #2871 (a295b4c7eb50), which itself merges the #2867 confirmation fix I approved at ca4b84a2c. The unique hold-hint code is unchanged. I am not merging.

What changed since 5d2135e2e2bb

Tests I ran at this exact head

  • tests/test_transducer_v3_runtime.py: 36 passed.

Generality: no per-app engine code. Fixtures are synthetic.

CI at this head

Packages, smoke, and launcher are green. review-verdict is red because the newest posted review was still my APPROVE at 5d2135e2e2bb, not this head.

This PR is stacked on #2871 / #2867. I did not merge.

No release decision from me.

Base automatically changed from fix/crash-resume-no-duplicate to main December 1, 2026 17:50
@abrichr
abrichr added this pull request to the merge queue Dec 1, 2026
Merged via the queue into main with commit de9bbcf Dec 1, 2026
42 of 43 checks passed
@abrichr
abrichr deleted the fix/hold-hint-names-missing branch December 1, 2026 18:01
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.

1 participant