Conversation
… agent claims From the 2026-08-24 Sloane CUJ test (issues #53, #60): - detectTaskPreflightGaps(): deterministic keyword-based capability match run at send time. When a task mentions email-sending, portals/websites, Slack, or scheduling that the agent provably lacks (no email_write, browser off or not running, integration missing), a dismissible amber banner appears above the composer naming each gap with a one-click 'Fix in Connections' / 'Open Diagnostics' path. Non-blocking — the send proceeds; the banner converts a 12-minute discovery-by- interrogation into a 10-second heads-up. Unit-tested against the original CUJ message verbatim. - build_agent_health_context(): every invocation's runtime context now carries a host-verified state block (model provider keys, browser running or not, integrations incl. an explicit email READ-ONLY call- out) with an instruction not to claim readiness beyond it. The workspace DIAGNOSTICS.md injection stays, but it's only read if the agent chooses — this block is unmissable, which is what 'everything is fully reconnected, I'm on it!' over a dead browser demanded. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…vals Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Fixes #60, fixes #53 — from the 2026-08-24 Sloane health-forms CUJ test, where the user learned only at minute 12 (by interrogating the agent) that email-sending and a working browser were never available, after the agent had claimed "everything is fully reconnected and ready now — I'm on it!"
Changes
detectTaskPreflightGaps): deterministic keyword capability match — email-send verbs withoutemail_write, portal/website tasks with the browser off or not running, Slack/calendar mentions without the integration. Gaps render as a dismissible amber banner above the composer with Fix in Connections / Open Diagnostics buttons. Never blocks the send. Unit tests include the original CUJ message verbatim against Sloane's exact configuration.build_agent_health_context): every invocation's runtime context now carries a host-confirmed block — provider keys, browser RUNNING/NOT RUNNING, integrations with an explicit "email is READ-ONLY" call-out — plus an instruction to never claim readiness beyond it and to surface missing capabilities instead of promising to start.Notes
Testing
cargo checkclean;tsc --noEmitclean; full frontend suite passes🤖 Generated with Claude Code