Skip to content

completes #3351: harness-backed Think E4 follow-ups (rejection reason, authorizeTurn's trigger and signal, model resolved once) - #3468

Merged
mattzcarey merged 7 commits into
mainfrom
slim/harness-e4-completes
Nov 27, 2026
Merged

mattzcarey merged 7 commits into
mainfrom
slim/harness-e4-completes

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

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:

  • A rejection reports the reason it was applied with, read from the call's approval record, so racing callers agree.
  • The authorizeTurn context resolves a beforeTurn model override once, however often it's read.
  • authorizeTurn is told the turn's trigger and given its abort signal, as on Think.
  • A call approved after a restart runs when getModel() fails and the grant doesn't read the model (a test).
  • The approve/reject race test now requires one answer to state the outcome.

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.

@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 7fc0297

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

agents

npm i https://pkg.pr.new/agents@3468

@cloudflare/ai-chat

npm i https://pkg.pr.new/@cloudflare/ai-chat@3468

@cloudflare/codemode

npm i https://pkg.pr.new/@cloudflare/codemode@3468

hono-agents

npm i https://pkg.pr.new/hono-agents@3468

@cloudflare/shell

npm i https://pkg.pr.new/@cloudflare/shell@3468

@cloudflare/think

npm i https://pkg.pr.new/@cloudflare/think@3468

@cloudflare/voice

npm i https://pkg.pr.new/@cloudflare/voice@3468

@cloudflare/worker-bundler

npm i https://pkg.pr.new/@cloudflare/worker-bundler@3468

commit: 7fc0297

devin-ai-integration[bot]

This comment was marked as resolved.

@agent-think

agent-think Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (d5a44252 → 7fc0297a, workflow run)

@mattzcarey
mattzcarey marked this pull request as draft November 27, 2026 11:48
@mattzcarey
mattzcarey marked this pull request as ready for review November 27, 2026 11:50
@mattzcarey
mattzcarey marked this pull request as draft November 27, 2026 11:57
@mattzcarey
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
…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
mattzcarey force-pushed the slim/harness-e4-completes branch from e18f5a1 to 99130b9 Compare November 27, 2026 12:03
devin-ai-integration[bot]

This comment was marked as resolved.

@mattzcarey
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
mattzcarey marked this pull request as ready for review November 27, 2026 12:14

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 new potential issues.

Devin Review

Comment thread packages/think/src/harness/think.ts Resolved
Comment thread packages/think/src/harness/think.ts Resolved
@mattzcarey
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
@mattzcarey
mattzcarey marked this pull request as ready for review November 27, 2026 12:30
@mattzcarey
mattzcarey merged commit d8fe4d6 into main Nov 27, 2026
19 of 20 checks passed
@mattzcarey
mattzcarey deleted the slim/harness-e4-completes branch November 27, 2026 12:41
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