Principle:AIScientists Dev WorldSeed Attention Signaling
| Knowledge Sources | |
|---|---|
| Domains | Agent_Systems, Distributed_Systems |
| Last Updated | 2026-10-26 18:00 GMT |
Overview
A runtime-neutral signal layer that decouples engine attention (urgent agent wake events, DM requests, checkpoint cadence) from agent dispatch, allowing external main agents to observe and respond to simulation state changes via an HTTP API.
Description
The Director signal layer is WorldSeed's mechanism for decoupling the engine from the agent runtime. Instead of the engine directly dispatching to agents, it emits signals that external main agents (Codex, Claude, custom watcher subagents) consume via HTTP API.
Three signal types:
- urgent: An agent has wake-eligible results (new push events or whispers). Deduped by (agent, event_ref) — only one pending urgent per unique trigger.
- dm_request: An action or consequence requires DM judgment, but the engine is in "signal mode" (external DM). The request carries full DMContext for the external caller to judge.
- checkpoint: A cadence-based summary signal. Fires when event count, time, tick count, or specific event types cross configured thresholds. Carries deterministic metadata (event type counts, recent refs, pending DM count).
The `DirectorRuntime` is always constructed but disabled by default (`director.enabled = false` in config). When disabled, every operation is a cheap no-op, keeping existing scenes byte-identical.
In signal mode (`dm_mode = "signal"`), DM calls are not made by the engine — they're enqueued as `PendingDMRequest` and resolved externally via `POST /api/director/dm/{id}/resolve`.
Usage
Use this principle when you want external control over agent dispatch and DM resolution. Enable the director in scene config with `director.enabled: true` and `director.dm_mode: signal`. External agents poll `GET /api/director/signals` (long-poll, 30s default) and ack or resolve via dedicated endpoints.
Theoretical Basis
The signal layer follows a producer-consumer pattern with deduplication:
# Abstract pattern (NOT real implementation)
def observe_attention(tick, event_log, inbox_manager, wakeup_results):
# Urgent signals
for result in wakeup_results:
if result.should_wake:
signal = DirectorSignal(type="urgent", target_agent_id=result.agent_id)
queue.enqueue_signal(signal) # deduped by (agent, event_ref)
# Checkpoint signals (cadence-based)
signal, state = evaluate_checkpoint(tick, new_events, policy, state)
if signal:
queue.enqueue_signal(signal) # deduped: at most one pending
The queue is non-draining: `peek_pending()` returns signals without removing them. Callers must explicitly `ack_signal()` (for urgent/checkpoint) or `resolve_dm_request()` (for DM requests).