mirror of
https://github.com/andrewyng/openworker.git
synced 2026-09-11 14:50:14 +00:00
Team wake plumbing: trait-gated verbs, durable queues, staffing gate, digests (OPE-97)
team: manifest trait gates lead/worker toolsets; propose_team pre-spawns worker sessions on approval (fail closed on solo personas). Deliveries + lead subscriptions are cursor-consumed projections; turns end with a queue kick, ticks replay; timer wakes carry the code-computed staleness digest; hourly wake cap is the budget gate.
This commit is contained in:
@@ -41,6 +41,9 @@ class Agent:
|
||||
family: str = "knowledge"
|
||||
messaging: bool = False
|
||||
connectors: bool | tuple[str, ...] = False
|
||||
# Team identity: "lead" | "worker" | None (solo-only). Gates the board/journal
|
||||
# toolsets and staffing eligibility — solo personas are never team-staffable.
|
||||
team: Optional[str] = None
|
||||
|
||||
def build_tools(self, context: AgentContext) -> list:
|
||||
return list(self.tool_factory(context)) if self.tool_factory else []
|
||||
|
||||
Reference in New Issue
Block a user