Skip to content

fix(bots): held calls withdraw, expire and stay declined until new input - #1392

Merged
bvsr365 merged 85 commits into
masterfrom
bot-held-call-lifecycle
Nov 16, 2026
Merged

bvsr365 merged 85 commits into
masterfrom
bot-held-call-lifecycle

Conversation

@bvsr365

@bvsr365 bvsr365 commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Held calls can outlive their work, request or permission. Old cards retain executable arguments and never expire, while Not now can become repeated cards for the same job. Passing MCP failures could also kill live cards, and Forget left call content in the export.

Change

Held calls withdraw with ended work, forgotten requests or cards, cleared history, reset, bot deletion and relevant tool or permission changes. Settlement clears executable arguments and updates the chat row together. Running calls retain their run-once record and recover as uncertain. The default-off switch gates only new holds; existing rows still settle, withdraw, expire and forget their content after it is turned off. Send still works on a card left from when the switch was on. A profile with no action rows keeps its existing behavior.

Open cards expire 48 hours from creation, including restart and sleep. The due timer reads that original deadline, and Send checks it before accepting approval. A timely Send commits approval before asynchronous tool refresh, then rechecks its execution binding. An accepted call must start dispatch within APPROVED_SEND_WINDOW_MS (ten minutes) of answered_at, independent of the original card expiry: a tap one second before that expiry still gets ten minutes. The due timer includes this deadline even with no tools listing. Restart inside the window can recover it; restart or sleep past it settles it immediately without sending. The transport fence also checks the window before dispatch.

Past the accepted window, the row becomes failed, clears exec_args, and stores result_json.notSentInTime = true with <Service> couldn't be reached, so nothing was sent. The card message has that sentence too. Its outcome joins ordered unread updates and is confirmed on output/completion; the work can decide to ask again. This is neither a declined nor expired card, so it does not count toward the three-unsent rule or identical-call refusal. Stop, Forget, owner pause, relevant grant changes and delete can withdraw it earlier. A pause keeps an open card; an accepted call still waiting for service is withdrawn immediately on owner pause. Running calls settle or become uncertain after restart, as before.

C4: waiting versus sending

  • status = approved: dispatch has not begun. Draw Waiting for <service>…; the stored message already has this text. card_json.serverName supplies the service name and answered_at + APPROVED_SEND_WINDOW_MS supplies the deadline.
  • status = running: execution has been claimed and may have left Mousse. Draw “Sending…”. The message changes at that transition.
  • status = failed with result_json.notSentInTime = true: dispatch never happened within the window. Draw the stored service-unreachable sentence. card_json.settledAt records the outcome time.

Withdrawal needs positive evidence: a server removed, disabled or changed in configuration, a tool absent from a successful server listing, a changed schema, or a relevant permission change. Starting, failing and cold catalogues keep live cards. Intact approved calls wait for their listing to return; malformed, oversized or stale calls cannot use that retry path. Every grant approval and revocation checks only that bot’s held pairs inside its transaction, including permissions allowed from chat. A failing card belonging to another bot cannot undo its Allow or Remove.

Forget of a card or its request, including settled calls, and forget history use the same tombstone: display arguments, argument digest, card text, bot note and result are erased. Card metadata retains fixed tombstone text and the owner-message/work-note numbers used by refusal rules. A settled tool-error outcome keeps only its error-category flag (card_json.toolReportedError), so both the work and C4 can retain the outcome label without the answer. An owner-removed pending card also retains a boolean removal marker and numeric input snapshots; these contain no call content or digest. The call key, target, status and timestamps remain. Running executable arguments clear on settlement; late results cannot restore forgotten content or replace the forgotten message. Exports contain tombstones. Forgotten rows no longer match real argument digests in repeat detection or C4's identical-call lookup; the call key still prevents another execution.

Forgetting an open card, or an accepted call still waiting for its service, withdraws and forgets it, then tells the work “Your owner removed this request. Do not ask for it again unless they write.” Further calls of that tool in that work, including changed arguments, are refused without a card or action row until owner input. Another tool is unaffected. Forgetting an already settled card only removes its content: it adds no block, leaves status unchanged and still tells an unread outcome as sent, not sent, tool error or uncertain. No [forgotten] text or forgotten details reach the work. This content-free rule needs no digest. Forgetting the owner's request still ends the work through endWaitingInTx and afterEnd, releasing scratch, browser, progress and live status, with an end journal entry.

An identical declined or expired call needs later owner input before another card. After MAX_SAME_WAKES (three) cards for the same tool in the same work were declined or expired since its owner last wrote, even changed calls are refused without a card or action row. The sentence says three cards were not sent, without treating expiry as a refusal by the owner. Another tool is independent. Any owner message row, including a tapped question answer, or an owner work note lifts the rule, as for wake loops. Forgetting cannot erase the three-card loop. Send and Not now reset wait history as owner answers do.

Refusals are Mousse updates, never owner notes: they neither steer the work as owner words nor start another turn or report. Refusals, withdrawals, expiry, waits, notes and answers join the same ordered update list and count as told only on model output or completion. The matrix stores refusals and reads them through the engine’s real update path, and covers accepted-window timeout and owner-removal outcomes. Captured master cells are unchanged.

Approval binding

Check Before Now
Server and tool identity Compared Compared
Configuration and schema digests Compared Compared
Starting device's permission limit Compared Compared
Grant revision number Compared Not part of the binding
Whole grant manifest digest Compared Not part of the binding
Held pair's permission level Implicit in whole-manifest digest Compared directly (asks_first or allowed)
Current authority Activation's whole-grant digest and effective pair Active grant and effective permission for this pair, including disabled server permissions

Unrelated permissions and revision bumps preserve a sendable card. Removing or changing the pair's level withdraws it; re-granting it never revives the old card. Ordinary bot authority checks retain their grant rules. Cards held under #1340’s whole-grant binding are withdrawn on upgrade rather than silently upgraded, including old accepted cards. These are development profiles only; this fails safe.

Refusals exposed to C4

The chat service preserves each code through the protocol. Only a changed binding/review uses bot_action_changed.

Code Owner sentence
bot_action_expired This expired, so nothing was sent.
bot_action_withdrawn No longer needed, so nothing was sent.
bot_action_changed This changed since you saw it. Check it again before sending.
bot_action_settled This was already answered.
bot_action_gone This can't be sent any more.
bot_action_paused Resume <bot> to send this.
bot_action_unreachable <Service> couldn't be reached, so nothing was sent.

Private engine state

bot_memory_state holds cursor:action-note:<work> and cursor:action-owner:<work> so owner-input and wait-loop facts survive restart without a database-version change. Both are deleted in the work-ending transaction. Refusal updates use cursor:action-refusal:<work>:…, with carrying ids in prompt.workRefusalIds; output/completion removes confirmed entries, while untold entries survive resumable interruptions and waits. The transaction that changes work to done, failed or cancelled deletes its refusal entries, because terminal work can no longer be told. Startup removes older entries for ended or missing work, and the bot’s 30-day purge removes them in any case. Historical carrying dispatches keep their delivery ids. None of these keys is exported as memory, and bot purge deletes them. Tombstones keep the numeric ownerSeq/noteSeq facts in the action row.

How to review

Start with BotActions.ts for withdrawal, tombstones, refusal rules and accepted-call recovery. BotEngine.ts supplies pair authority and the shared ordered update path; BotStore.ts owns grant-change transactions and confirmation. BotChatService.ts preserves refusal codes. Tests observe actual transport calls, record/export contents, rollback, normal ending and cleanup, no extra report, chat Allow, restart, sleep, timely/late Send and confirmed delivery. The continuation matrix reads persisted Mousse updates.

Integration with master

Master 8e30e499bc56353ec3a6b86998b4072ddeab9d95 is merged in 192394dc3a3bee9f8b93bcc55f999cc030500c15, without rebase or force-push. There were no textual conflicts. BotEngine.ts and docs/bots.md auto-merged; review retained both C3b’s binding/lifecycle/delivery paths and master’s new behavior:

  • feat(bots): a bot can use every tool a thread's agent can #1375 grants secrets, scheduled work in threads and quick actions, expands thread controls and permits a work’s subagents to act on the owner’s threads as the work holds them. The compiled main and subagent tool sets, new grant mappings and secret containment remain master’s.
  • fix(bots): permission cards say what a bot's own tools do, never their names #1396’s human-facing permission text and per-call askCallNote remain in the ask/wall paths. Other changes retained in the touched engine include terminal/running read tools, watcher output, running-list helpers and wake ids.
  • Chat Allow for each new permission leaves an open card sendable exactly once. After either the work or its subagent holds a call, both dispatch gates refuse thread actions, secret tools, schedule tools, quick actions and approval responses. With the switch off, their prior granted or withheld behavior stays unchanged.

On untouched master the four inherited integration thread actions cases fail because they assume subagents have no thread actions before the hold. The tests now assert master’s granted rights before a hold and refusal after it, for both callers and switch states. No production permission rule was weakened to make them pass.

Verification

All final-head commands below passed on 2339cdf21a50d7d9cbb4cf2e080f1874aa2a68f9. Every bot unit file is included except process-lane botSupervisor; each batch uses at most ten named files and two workers under the shared lock. The three required integration files and node typecheck are included.

Untouched-master baseline — four expected failures, before updating the stale tests

On master 8e30e499bc56353ec3a6b86998b4072ddeab9d95, in a clean detached worktree:

flock /tmp/mousse-heavy.lock npx vitest run tests/bots/botActions.test.ts -t 'integration thread actions' --maxWorkers=2

Each work/subagent × switch-state case fails at the old pre-hold assertion, expected undefined to be truthy. The final merged-head batches pass all four updated cases.

Batch 01 — passed
flock /tmp/mousse-heavy.lock npx vitest run tests/bots/botActions.test.ts tests/bots/botApprovalRuntimes.test.ts tests/bots/botAskHeld.test.ts tests/bots/botAskText.test.ts tests/bots/botAsks.test.ts tests/bots/botAuthority.test.ts tests/bots/botBrowserGrant.test.ts tests/bots/botBrowserSetup.test.ts tests/bots/botCards.test.ts tests/bots/botChangelog.test.ts --maxWorkers=2
Batch 02 — passed
flock /tmp/mousse-heavy.lock npx vitest run tests/bots/botChat.test.ts tests/bots/botChatAttachments.test.ts tests/bots/botChatTurnEnds.test.ts tests/bots/botChips.test.ts tests/bots/botConnectivity.test.ts tests/bots/botContinuationMatrix.test.ts tests/bots/botCreate.test.ts tests/bots/botCreateRecovery.test.ts tests/bots/botDefaultModel.test.ts tests/bots/botDeletePurge.test.ts --maxWorkers=2
Batch 03 — passed
flock /tmp/mousse-heavy.lock npx vitest run tests/bots/botDispatchAtomic.test.ts tests/bots/botDraftReview.test.ts tests/bots/botDue.test.ts tests/bots/botEngine.test.ts tests/bots/botFileAccess.test.ts tests/bots/botFilesFolder.test.ts tests/bots/botImages.test.ts tests/bots/botInstructions.test.ts tests/bots/botKnowsPermissions.test.ts tests/bots/botLanes.test.ts --maxWorkers=2
Batch 04 — passed
flock /tmp/mousse-heavy.lock npx vitest run tests/bots/botManifest.test.ts tests/bots/botMcp.test.ts tests/bots/botMcpCalls.test.ts tests/bots/botMemoryTidy.test.ts tests/bots/botMemoryTurnRights.test.ts tests/bots/botMessages.test.ts tests/bots/botModelCandidates.test.ts tests/bots/botModelChoice.test.ts tests/bots/botModelSlots.test.ts tests/bots/botOffline.test.ts --maxWorkers=2
Batch 05 — passed
flock /tmp/mousse-heavy.lock npx vitest run tests/bots/botOrigin.test.ts tests/bots/botParkedWork.test.ts tests/bots/botPauseFailures.test.ts tests/bots/botPermissionSwitches.test.ts tests/bots/botPhase1Integration.test.ts tests/bots/botPhaseOneWording.test.ts tests/bots/botProcessRegistry.test.ts tests/bots/botProfiler.test.ts tests/bots/botPromptEdit.test.ts tests/bots/botQuestionFollowUps.test.ts --maxWorkers=2
Batch 06 — passed
flock /tmp/mousse-heavy.lock npx vitest run tests/bots/botQuestions.test.ts tests/bots/botReactions.test.ts tests/bots/botReminderSnooze.test.ts tests/bots/botRemovedScheduleReport.test.ts tests/bots/botReplyFinalMessage.test.ts tests/bots/botReplyParts.test.ts tests/bots/botResume.test.ts tests/bots/botScheduleDone.test.ts tests/bots/botScheduleDowntime.test.ts tests/bots/botScheduleEndAndSay.test.ts --maxWorkers=2
Batch 07 — passed
flock /tmp/mousse-heavy.lock npx vitest run tests/bots/botScheduleExpiryCompletion.test.ts tests/bots/botScheduleInbox.test.ts tests/bots/botScheduleMigration.test.ts tests/bots/botScheduleProgress.test.ts tests/bots/botScheduleRemoval.test.ts tests/bots/botSchedules.test.ts tests/bots/botScopes.test.ts tests/bots/botServiceLines.test.ts tests/bots/botSeveralJobs.test.ts tests/bots/botStartupMaintenance.test.ts --maxWorkers=2
Batch 08 — passed
flock /tmp/mousse-heavy.lock npx vitest run tests/bots/botState.test.ts tests/bots/botStatusLine.test.ts tests/bots/botSteerStop.test.ts tests/bots/botStoreV10Migration.test.ts tests/bots/botStoreV11Migration.test.ts tests/bots/botStoreV4Migration.test.ts tests/bots/botSubagentHold.test.ts tests/bots/botSubagentRuntimes.test.ts tests/bots/botTelling.test.ts tests/bots/botTellingSettings.test.ts --maxWorkers=2
Batch 09 — passed
flock /tmp/mousse-heavy.lock npx vitest run tests/bots/botThemes.test.ts tests/bots/botThreads.test.ts tests/bots/botTrashProfile.test.ts tests/bots/botTurnExecutor.test.ts tests/bots/botUsageLimit.test.ts tests/bots/botWakeBrief.test.ts tests/bots/botWakeSources.test.ts tests/bots/botWakes.test.ts tests/bots/botWalls.test.ts tests/bots/botWatchers.test.ts --maxWorkers=2
Batch 10 — passed
flock /tmp/mousse-heavy.lock npx vitest run tests/bots/botWork.test.ts tests/bots/botWorkDeliveryGaps.test.ts tests/bots/botWorkDeliveryOutput.test.ts tests/bots/botWorkModel.test.ts tests/bots/botWorkQuestions.test.ts tests/bots/botWorkReplay.test.ts tests/bots/botWorkSubagents.test.ts tests/bots/botWorkSubagentsHold.test.ts tests/bots/botWorkWait.test.ts tests/bots/botsHereRetired.test.ts --maxWorkers=2
Batch 11 — passed
flock /tmp/mousse-heavy.lock npx vitest run tests/bots/botsProtocol.test.ts tests/bots/botsProtocolV2.test.ts tests/bots/botsUnavailable.test.ts tests/bots/launchedThreads.test.ts tests/bots/memory/botAvailableHistory.test.ts tests/bots/memory/botContextPack.test.ts tests/bots/memory/botExternalPack.test.ts tests/bots/memory/botMemoryCapture.test.ts tests/bots/memory/botMemoryEdit.test.ts tests/bots/memory/botMemoryEveryTurn.test.ts --maxWorkers=2
Batch 12 — passed
flock /tmp/mousse-heavy.lock npx vitest run tests/bots/memory/botMemoryExportPurge.test.ts tests/bots/memory/botMemoryForgetSources.test.ts tests/bots/memory/botMemoryGuard.test.ts tests/bots/memory/botMemorySecrets.test.ts tests/bots/memory/botMemoryStandingWish.test.ts tests/bots/memory/botMemoryStore.test.ts tests/bots/memory/botMemoryTidy.test.ts tests/bots/memory/botReactionsPack.test.ts tests/bots/memory/botRequestFrames.test.ts tests/bots/memory/botWakeJournal.test.ts --maxWorkers=2
Batch 13 — passed
flock /tmp/mousse-heavy.lock npx vitest run tests/bots/questionFollowUps.test.ts --maxWorkers=2
Batch 14 — passed
flock /tmp/mousse-heavy.lock npx vitest run tests/run/botAppTools.test.ts tests/run/mcpManagerRelay.test.ts tests/net/bridge/remote/bots.test.ts --maxWorkers=2
Node typecheck — passed
flock /tmp/mousse-heavy.lock npx tsc --noEmit -p tsconfig.node.json

Fake MCP transports record calls and exact arguments; provider events are scripted. Settled-card tests cover a later different call, an untold sent outcome, declined outcomes, tool errors and uncertain results, with no forgotten content. Pending-card removal still blocks re-asking. No live external send, full suite, process lane, development app run or phone check. C4 rendering remains separate. No database-version change; no captured master matrix cells changed.

Notes

C4 (#1390), scheduled cards (C5) and rollout (C6) remain separate. C4 should keep a forgotten settled outcome’s label without its details, using the preserved error-category fact when needed. External catalogue configuration is outside the bot database; withdrawal, card settlement and parked-work readiness commit together when the change is observed.

Refs #1335

@bvsr365 bvsr365 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

An adversarial pass on three questions:

  1. Can a dead call still run? No, in every path I tried: Stop, the work ending, /clear, /reset, delete, forget history, a grant or tool change, Forget, expiry, Send racing Stop (nothing sent), and the owner's pause.
  2. Is anything left behind? Yes: see the second point below.
  3. Can the bot get around "a declined call does not come back"? Only by changing the arguments: see the third point.

Open points:

Should fix

  1. A passing MCP hiccup or a slow start withdraws every open card for good. withdrawChanged() runs on every listing change (fillMcpAsks), on approve, and in reconcile after refresh. It withdraws any row whose valid() fails, and valid() fails whenever BotMcp.binding is undefined, which also happens while a server is starting, failing or not listed yet.

    • A server whose tools drop out of one listing and come back: the card is withdrawn and stays so.
    • A restart before MCP has listed: every open card is withdrawn.

    The PR's "server" case uses binding returning undefined, so it can't tell removal from a blip. Fix: withdraw only on positive evidence: the server removed or changed per where(), the tool missing from a successful listing, or the grant dropping or lowering the pair. Keep the card on undefined; Send already re-checks the binding.

  2. Forget of the card, or of the owner's request, leaves the call's content in the row and the export. The chat row is redacted and exec_args cleared. But args_json (recipients, subject, body) stays in bot_actions, and BotMemoryStore.actions() exports it. Fix: write forget history's tombstone to args_json, card_json, bot_note and result_json of the rows forgetMessage touches, settled rows of that card included. In card_json, keep ownerSeq and noteSeq.

  3. Trivially changed calls after Not now are unlimited (decide). With one more trailing space in the body each time and Not now each time, 20 rounds gave 20 cards, each looking like the last, and nothing refuses the 21st. Key order is caught; "a@x" against ["a@x"], a trailing space, another tool, or a new work are not, and a digest can't be made to see "the same email". Suggestion: reuse the wake rule's number with its reason. After MAX_SAME_WAKES (3) declined cards for the same tool in the same work since the owner last wrote, refuse further calls of that tool there without a card ("Your owner said no three times. Tell them what you need and wait for them to write."), lifting when the owner writes.

Minor

  1. Any owner row lifts the refusal, including a tap on an unrelated question. So a bot can ask "Shall I carry on?" and use the tap. Bot messages, wakes and notes from turns the owner didn't start don't count. Worth a sentence in the docs.
  2. After forget history, args_digest still confirms a guessed email offline. It is an unsalted SHA-256 of the forgotten arguments, readable by anyone who reads bots.db. Nothing needs it then: works are ended, and re-execution is stopped by call_key. Tombstone it too.
  3. Any grant change withdraws every open card of the bot. Allowing the web for a bot ends its open email card, because the binding holds the whole manifest's digest. Binding on the pair's level would keep it.

@bvsr365 bvsr365 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Review at 956344705: needs changes, 4 should fix and 4 minor, no blockers. With the switch off nothing changes. All 14 withdrawal paths are atomic, and the rollback test really aborts half way. Forget history keeps the run-once record, and expiry fires on the engine's timer and survives restart and sleep. Every bot unit file and both typechecks pass. The failing cases below come from throwaway engine tests built on botActions' own setup.

Should fix

  1. The repeat refusal is stored as an owner's note. hold writes "Your owner declined exactly this…" to bot_work_notes. After Not now and the same call again, the running turn is steered with "[Mousse] The owner added this to your job while you work: - Your owner declined exactly this…". When that turn completes, the pending note sets noted (BotEngine.ts:4796) and starts another dispatch: "The owner added something while you worked; what you had so far was already sent to them … Your last message is your updated report". That is an extra turn, an extra report, and a false claim that the owner wrote. Give the refusal its own timed update with its own told marker, like waits and settled calls, rather than a work note. The matrix row feeds a raw event, so it doesn't catch this.
  2. Forget ends parked work outside the engine's end path. The forgetMessage hook moves the work blocked → cancelled directly, so there is no run_end journal row and no afterEnd (cleanup of scratch, browser, progress and chip; changed; pump). Forgetting the card also ends the work, saying "its request was forgotten". End through endWaitingInTx plus afterEnd after commit. For a forgotten card, either continue the work told "withdrawn", or end it with words about the card.
  3. An unrelated grant change leaves a card that can't be sent or withdrawn. While a card is open, the owner allows "use your threads" from a chat ask. The card stays open and the work stays parked, but every Send is refused with "This changed since you saw it" until the 48 hours run out. withdrawChanged runs only from narrowGrant, fillMcpAsks and restart. Run it wherever a grant is approved.
  4. Slightly different arguments aren't limited. Six rounds of Not now, each followed by the same email plus one trailing space, give seven cards and seven notifications. Following #1311's wake rule with the tool as "the same thing": after 3 cards for the same tool in the same work are declined or expired since the owner last wrote or noted, refuse further cards for that tool until they do. Spec point 6 asks for a pinned rule.

Minor

  1. approved rows expire: expireDue expires them too, so a Send just before the deadline can lose to the timer while runApproved awaits refresh(). Expire only open rows, or skip executing ones.
  2. Rows left from switch-on are never cleaned up: with the switch turned off, existing held rows never expire or withdraw. After Stop, the row stays open with exec_args. Cleanup could run regardless of the switch, with only new holds gated.
  3. Engine state in the memory table: the note counter and the wait-loop cursor live in bot_memory_state (cursor:action-*) and outlive the work. Check they are purged with the bot and stay out of the memory export.
  4. Refusal codes: a Send while paused and a Send after expiry are refused as bot_action_changed, which C4 shows as "This changed since you saw it". Give each its own code or text.

On the three decisions:

  • Pause keeps the card: agree.
  • Expiry from expires_at: agree. One deadline, it doesn't spin, and the source is gated by the switch. An open card keeps isIdle false, as questions already do; that comes from C3a.
  • No fixed cap: see finding 4.

With C4 (#1390): both touch BotActions.ts, BotEngine.ts, docs/bots.md and botActions.test.ts; only the docs and the test file conflict. C4 should:

  • draw the forget-history tombstone (card_json becomes the string "[forgotten]");
  • keep its projection off C3b's ownerSeq/noteSeq;
  • show the pause and expiry refusals separately (finding 8);
  • add nudges beside the expiry source in dueAt.

Not checked: the running app and a phone.

@bvsr365

bvsr365 commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator Author

Re-check 2 at 0a9c3528b: A and B are closed, and with this round's source reverted, 16 R3- tests and the new matrix rows fail. In my throwaway case, an accepted Send whose service fails shows "Waiting for Mail…". At 10 minutes, on the engine's timer, it settles as "Mail couldn't be reached, so nothing was sent." and the work is told once. Nothing from the first round was undone. All bot unit files and both typechecks pass on this head.

Should fix (small)

  • Forgetting a card that was already sent blocks the tool. forgetMessage sets ownerRemoved on settled rows too. Throwaway case: Send, the call is done, then the owner forgets that card (for example to remove the email's text). The work's next, different email is refused with "Your owner removed this request. Do not ask for it again unless they write." A done row whose outcome the work hasn't been told yet would also be reported as "removed" instead of "sent", because actionContinuation checks ownerRemoved first. Set ownerRemoved only on rows that were open or approved when forgotten.

Merge with master (trial merge with d575f4a26, not pushed)

  • No conflicts. Every grant write still goes through approve/revoke, so the bot-scoped check covers feat(bots): a bot can use every tool a thread's agent can #1375's secrets, schedules and quick_actions permissions. Allowing any of them from a chat ask leaves an open card sendable, with one call.
  • 4 failing tests, also failing on master. The "integration thread actions after a … call" cases in botActions.test.ts fail on the merge, and on a clean origin/master too: the test assumes subagents have no thread actions, and feat(bots): a bot can use every tool a thread's agent can #1375 gave them thread tools. After a hold, the subagent's tools are still refused ("This bot's run has ended…"), so only the first assertion is stale. Update it in the merge: subagents are allowed thread actions before the hold and refused after.

Docs nit:

  • "An approved call recovered while its listing is unavailable waits for that listing to return" should add "for at most ten minutes after the tap".
  • The first refusal table in the PR text still has the old expired sentence.

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