Repository navigation
Description
Summary
The user docs describe the caller wake in two bullets of docs/user-docs/collaboration/agent-network.md (lines 26 and 27) and in one FAQ answer (docs/user-docs/faq/collaboration.md:39). Four statements there do not match the code on dev. An operator who plans around them expects fewer wake turns than the platform starts, and expects a wake to read a result that it cannot read.
Context
| # | The docs say | What the code does |
|---|---|---|
| 1 | "At most one wake starts per calling agent every 15 seconds" (agent-network.md:26, faq/collaboration.md:39) |
Not since #4536. A finished wake releases its window, so the next ending wakes at once. tests/unit/test_4536_wake_window.py::test_a_fast_delegate_wake_loop_gets_every_round pins twelve wakes inside one window |
| 2 | "a run that ends while a wake is still running is held and delivered once that wake ends" (the same two places) | True only when the run ends in the same 15 s window that the running wake claimed. In a later window a second wake starts at once. This is the defect in #4733. If that issue fixes the code, this sentence becomes true and stays |
| 3 | "A wake for work the agent's owner asked for runs as the owner's turn, so the agent's key can read the result it was woken for" (agent-network.md:27) |
Not while a turn of a shared person or of a visitor runs on the same agent. The key's reads start from the running turns, and an owner-tier turn "widens nothing" (src/backend/dependencies.py:3409). docs/memory/architecture/security.md:111 names this as the cost of failing closed. The FAQ sentence "the full result is readable with get_execution_result" has the same limit |
| 4 | "A wake for anyone else's work runs with no person on it" (agent-network.md:27) |
Not since PR #4546. A wake stands as the turn that delegated: a shared person's delegation wakes as that person, a visitor's wakes as a visitor's, and a turn that ran at owner tier for a person keeps owner tier. "No person" is only the fallback for a callee row that has no link to its calling turn (src/backend/services/caller_wake_service.py, module text) |
Evidence. Statements 1, 2 and 4 are read in the code and its tests on dev (d481847cc). Statement 2 is also reproduced with the repo's test harness, see #4733. Statement 3 is read in the code. On a client instance on v1.0.5 the same narrowing was measured for an owner-started run: while a shared person's turn ran, list_recent_executions answered 0 rows with no error, and 11 seconds after that turn ended it answered 10. It was not measured for a wake turn itself.
Acceptance Criteria
- "Bursts are folded" describes the window as built: endings from before a wake's claim fold into it; a finished wake releases its window, so the next ending wakes at once; what happens to an ending while a wake still runs (as bug(wake): a running wake holds only its own 15 s window, so endings in later windows start more wake turns on the same caller at once #4733 settles it).
- "Whose turn it is" says that a wake stands as the turn that delegated (the owner's, a shared person's, a visitor's), and names the fallback for a call with no link.
- The section says that while a shared person's or a visitor's turn runs on the agent, every read by the agent's key is narrowed, a wake's reads included, so
get_execution_resultcan answer "not found" for a run that exists. It points to Agent cannot read a child execution it started during a share holder's turn (404 Execution not found) #4173. -
docs/user-docs/faq/collaboration.md:39says the same as the section.
Technical Notes
- The delegation contract shown to agents (
src/mcp-server/src/delegation_contract.ts) tells every caller to read the result withget_execution_result. Whether it should name the limit of statement 3 is part of Agent cannot read a child execution it started during a share holder's turn (404 Execution not found) #4173, not of this issue. - Related: bug(wake): a fast callee's ending is dropped by the 15 s wake window, so a delegate→wake loop stalls silently #4536, bug(wake): a sync agent-to-agent call still wakes the caller, billing a second turn for an answer it already has #4538, Agent cannot read a child execution it started during a share holder's turn (404 Execution not found) #4173, PR fix(access): a platform continuation turn stands as the turn it continues (abilityai/trinity-enterprise#1225) #4546, PR feat(wake): caller is woken when its delegated run ends, default on (ent#1102, ent#790) #4269.
Activity
webmixgamer commentedon Nov 23, 2026
/claim
github-actions commentedon Nov 23, 2026
Claimed by @webmixgamer. Label
status-in-progressadded.Next steps:
feature/4734-<short-slug>Fixes #4734fix(wake): one wake per caller at a time, and a wake refused at capac…