Skip to content

docs: the caller-wake section states four things the code does not do (how often a wake starts, what is held, what a wake can read, whose turn it is) #4734

Open

Description

@webmixgamer

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

Technical Notes

Activity

  1. added
    priority-p3
    type-docs
    theme-reliability
    complexity-low
    status-ready
    on Nov 23, 2026
  2. webmixgamer commented on Nov 23, 2026

    @webmixgamer
    ContributorAuthor

    /claim

  3. added
    status-in-progress
    and removed
    status-ready
    on Nov 23, 2026
  4. github-actions commented on Nov 23, 2026

    @github-actions

    Claimed by @webmixgamer. Label status-in-progress added.

    Next steps:

    1. Create branch: feature/4734-<short-slug>
    2. Implement the feature
    3. Open a PR with Fixes #4734
  5. added
    status-in-dev
    and removed
    status-in-progress
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

complexity-lowpriority-p3status-in-devtheme-reliabilitytype-docs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions