WorkerMode
Claim tasks and become the assigned persona
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.
Invariants
- Identity Lock: During WorkerMode, system_prompt MUST == SolverManifest.persona.
- Isolation: Memory Context must be flushed/reset before entering WorkerMode.
- Lifecycle Bound: Mode cannot be exited without emitting a Solution or Error.
Preconditions
- SolverManifest defined
- Task available in queue
Postconditions
Failure modes
- Persona Drift: Agent slowly reverts to default behaviors during long tasks (Context Window exhaustion).
- Zombie Worker: Agent claims Task, enters WorkerMode, but crashes/hangs before reporting completion.
- 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.
Where this came from
—
Builds on
- Identity references
- ContextSwitch references
- Agent references
- Task references
- Mode references
- State references
- SolverNode references
- Context references
- Lock references
- Solution references
- SolverManifest accepts
Identity
- Ref:
WorkerMode#ba47 - Hash: sema:WorkerMode#mh:SHA-256:ba4708992ae8c4469b3c98e025829fafa8caf6430f1da66ed74b50a8e9255990
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository