Society · Protocols

WorkerMode

Claim tasks and become the assigned persona

Definition

Mechanism

Execution State Machine. Upon invoking `solver_claim_task`, the Agent performs an atomic Identity change via ContextSwitch using the SolverManifest. The Agent remains in this Mode until the Task is complete (emitting a Solution or error to the SolverNode), ensuring adherence to the assigned persona. A Lock prevents concurrent task claims.

Preconditions

  1. SolverManifest defined
  2. Task available in queue

Postconditions

  1. Agent returns to Idle State
  2. Task marked Complete/Failed

Invariants

  1. Identity Lock: During WorkerMode, system_prompt MUST == SolverManifest.persona.
  2. Isolation: Memory Context must be flushed/reset before entering WorkerMode.
  3. Lifecycle Bound: Mode cannot be exited without emitting a Solution or Error.

Risks

Failure modes

  1. Persona Drift

    Agent slowly reverts to default behaviors during long tasks (Context Window exhaustion).

  2. Zombie Worker

    Agent claims Task, enters WorkerMode, but crashes/hangs before reporting completion.

  3. {{context}} Leak

    Information from previous tasks bleeds into the current WorkerMode session.

Caution

Replaces the agent's whole governing prompt with the claimed manifest's persona and blocks exit until done — claim tasks only from trusted manifests.

Relationships

Builds on

Accepts

Infrastructure

SolverManifest

Typed solver identity and capability declaration

References

Mind

Agent

Autonomous Goal-Directed Entity

Infrastructure

Context

Portable execution environment with inherited constraints

ContextSwitch

Explicit, scoped protocol-mode toggle with enter/revert boundaries

Infrastructure

Identity

Unique agent context (The Who)

Physics

Lock

Mutual exclusion enforcement

Infrastructure

Mode

A discrete configuration of agency

Infrastructure

Solution

The fractal unit of completed work

SolverNode

Stateful container for a running solver instance

Infrastructure

State

System condition at time T

Infrastructure

Task

The atomic unit of intent

Nothing in this library builds on this pattern yet.

Reference

Identity

Ref
WorkerMode#ba47
Sema ID
sema:WorkerMode#mh:SHA-256:ba4708992ae8c4469b3c98e025829fafa8caf6430f1da66ed74b50a8e9255990
Ring
2
Tier
1
Updated
2026-11-11
Supersedes
  • sema:WorkerMode#mh:SHA-256:a3abda2cd7a656742d4c0e20f5e020e002904c4639b739be88b117bd620be50a
  • sema:WorkerMode#mh:SHA-256:95993da2b311749c9e36f501b3f0e2cdaefdbbebf0fd3347f30b6ed01eb0d7cd
  • sema:WorkerMode#mh:SHA-256:fa5a1d68014ab809187e837cb116ea4bacc4316d1c982dd9fe1b2bc5b2e4998c
  • sema:WorkerMode#mh:SHA-256:5a39d816a3e43ab57bbda2cef5355bdcb8f62a23bad433199c59b27b1a747bf6
  • sema:WorkerMode#mh:SHA-256:2eadab94cd1e28057080ce0c79bd7dafc7c44d2e0b586e17321cfa70bc9bf6ff
  • sema:WorkerMode#mh:SHA-256:b3d74926a714bcfede71ef049b803b0e7f50b54dc22130b434982eb160afb9b1