workerid: one decision of who is a worker, lazy transcript recognition, opening patterns as data. done: module / next: wire callers
This commit is contained in:
1 parent
2891c95887
commit
858401d58e
3 files changed
+136
No files matched your search
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"_about": "What an UNLISTED host tool is, judged by its name (sisi/orchestration.py `classify`). A name is split into words at punctuation and case changes; a phrase matches when its words appear next to each other. `delegation`: the tool starts a worker, so it is never counted as direct work or refused by the meter. `control`: the tool only reads status, waits, cancels, lists, schedules or messages, so it is not counted. A tool named by neither still counts as direct work. Listed tools (canon/orchestration-tools.json) always win.",
|
||||
"delegation": ["delegate", "delegation", "subagent", "sub_agent", "spawn", "thread_launch"],
|
||||
"control": ["status", "wait", "cancel", "list", "read_thread", "schedule", "scheduled", "notify", "send", "ask"]
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"_about": "How a session's FIRST user message says it is a delegated worker (sisi/workerid.py). Each phrase is matched case-insensitively, with white space collapsed, inside the first `window` characters of that one message only; the brief template's own first line always counts too. A phrase later in a long message, or in a later message, never counts: a session a person started is a main thread.",
|
||||
"window": 400,
|
||||
"openings": [
|
||||
"you are a worker",
|
||||
"you are a subagent",
|
||||
"you are a sub-agent",
|
||||
"you are a delegate",
|
||||
"do this task yourself",
|
||||
"do the task yourself",
|
||||
"do not delegate"
|
||||
],
|
||||
"head_bytes": 1048576
|
||||
}
|
||||
Reference in new issue
Block a user