Repository navigation
completes #3351: harness-backed Think E4 follow-ups (rejection reason, authorizeTurn's trigger and signal, model resolved once) - #3468
Merged
Conversation
|
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
Contributor
|
✅ agents import sizes: no significant changes ( |
mattzcarey
marked this pull request as draft
November 27, 2026 11:48
mattzcarey
marked this pull request as ready for review
November 27, 2026 11:50
mattzcarey
marked this pull request as draft
November 27, 2026 11:57
mattzcarey
marked this pull request as ready for review
November 27, 2026 11:57
… grant context's model is resolved once; the race test requires one answer to state the outcome
…abort signal, as on Think
…etModel() fails and the grant doesn't read the model
…d approval's grant is told the trigger; trigger pinned; two racing rejections carry the applied reason
…n' and given a signal that fires if the operation ends unanswered, also after a restart
mattzcarey
force-pushed
the
slim/harness-e4-completes
branch
from
November 27, 2026 12:03
e18f5a1 to
99130b9
Compare
mattzcarey
marked this pull request as draft
November 27, 2026 12:12
…on was stopped before the grant ran, fires only on a stop (not a failure), and leaves nothing kept for a settled operation
mattzcarey
marked this pull request as ready for review
November 27, 2026 12:14
mattzcarey
marked this pull request as draft
November 27, 2026 12:29
…tatus read (one signal per operation); the stop test waits for the operation to settle, reaching the 'already ended' path
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Completes #3351 (E4). Five of E4's Devin threads, listed in its triage notes for after the merge, are answered on the harness-backed Think:
authorizeTurncontext resolves abeforeTurnmodel override once, however often it's read.authorizeTurnis told the turn's trigger and given its abort signal, as on Think.getModel()fails and the grant doesn't read the model (a test).These were E4's own review findings, so they finish merged work rather than open a new slice (COMMON: a follow-up that completes a merged PR is exempt from the drain limit). Only the harness-backed Think and its test fixture change; the class's code is unchanged.
Validated: harness-actions passes 15 of 15. The two new behaviour tests ("tells authorizeTurn what started the turn, and gives it the turn's signal" and "reports the reason of the rejection that was applied") were checked against the code before the change: the first fails there.
Cost: a resumed approval's grant reads its operation's status once (
harness.session().inspect, one row read), only when the grant is first prepared for that operation. No new rows or KV keys; the per-operation signal is kept in memory until the operation settles.