fix: clean remaining worker rename references
This commit is contained in:
@@ -2,29 +2,29 @@
|
||||
|
||||
## Role
|
||||
|
||||
`pod-registry` tracks live Pod process ownership and delegated scope locks at runtime.
|
||||
`pod-registry` is the legacy-named crate that tracks live Worker process ownership and delegated scope locks at runtime.
|
||||
|
||||
## Boundaries
|
||||
|
||||
Owns:
|
||||
|
||||
- machine-local live Pod registration
|
||||
- collision detection for running Pod names
|
||||
- machine-local live Worker registration
|
||||
- collision detection for running Worker names
|
||||
- delegated scope lock bookkeeping
|
||||
- registry cleanup hooks for stopped or unreachable children
|
||||
|
||||
Does not own:
|
||||
|
||||
- durable Pod metadata (`pod-store`)
|
||||
- durable Worker metadata (`pod-store`)
|
||||
- replayable session logs (`session-store`)
|
||||
- socket protocol definitions (`protocol`)
|
||||
- project work item state
|
||||
|
||||
## Design notes
|
||||
|
||||
The registry is a runtime coordination mechanism. It can help decide whether a Pod is live or colliding, but durable visibility/restoration should be backed by Pod metadata when possible.
|
||||
The registry is a runtime coordination mechanism. It can help decide whether a Worker is live or colliding, but durable visibility/restoration should be backed by Worker metadata when possible.
|
||||
|
||||
## See also
|
||||
|
||||
- [`../../docs/design/pod-session-state.md`](../../docs/design/pod-session-state.md)
|
||||
- [`../../docs/design/worker-session-state.md`](../../docs/design/worker-session-state.md)
|
||||
- [`../../docs/design/tool-permissions-scope.md`](../../docs/design/tool-permissions-scope.md)
|
||||
|
||||
@@ -77,7 +77,7 @@ pub enum Method {
|
||||
kind: CompletionKind,
|
||||
prefix: String,
|
||||
},
|
||||
/// List Pods visible to this Worker from durable Worker state and the spawned-child
|
||||
/// List Workers visible to this Worker from durable Worker state and the spawned-child
|
||||
/// registry. This is not a host-wide Worker universe query.
|
||||
ListWorkers,
|
||||
/// Restore a visible stopped/restorable Worker, or report that it is already
|
||||
|
||||
@@ -1592,12 +1592,17 @@ fn line_count(value: &str) -> usize {
|
||||
}
|
||||
|
||||
fn tool_kind(name: &str) -> &'static str {
|
||||
const LEGACY_SEND_TO_PEER_POD_TOOL: &str = "SendToPeerPod";
|
||||
|
||||
match name {
|
||||
"Read" | "Write" | "Edit" | "Glob" | "Grep" => "filesystem",
|
||||
"Bash" => "shell",
|
||||
"WebFetch" | "WebSearch" => "web",
|
||||
"SpawnWorker" | "SendToWorker" | "ReadWorkerOutput" | "ListWorkers" | "StopWorker"
|
||||
| "RestoreWorker" | "SendToPeerPod" => "worker",
|
||||
"SpawnWorker" | "SendToWorker" | "SendToPeerWorker" | "ReadWorkerOutput"
|
||||
| "ListWorkers" | "StopWorker" | "RestoreWorker" => "worker",
|
||||
// Legacy session logs used the pre-rename peer tool name; keep analytics classification only.
|
||||
/* legacy session-log tool name only */
|
||||
LEGACY_SEND_TO_PEER_POD_TOOL => "worker",
|
||||
name if name.starts_with("Memory") || name.starts_with("Knowledge") => "memory",
|
||||
name if name.starts_with("Ticket") => "ticket",
|
||||
name if name.starts_with("Task") => "task",
|
||||
|
||||
Reference in New Issue
Block a user