M05: Native worker, pairing, and execution transport #90
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
P1
P2
P3
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#91 M06: Codex adapter: CLI/App Server with Desktop and VS Code installations
Creatidy/scarcity-router
#95 M10: Distribution, installation, update, and end-to-end acceptance
Creatidy/scarcity-router
#85 A0: Architecture, decisions, and contracts for the optional execution gateway
Creatidy/scarcity-router
#88 M03: OpenAI-compatible gateway and execution coordinator
Creatidy/scarcity-router
Reference
Creatidy/scarcity-router#90
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Provide one simple native worker for Windows/Linux/WSL that bridges local resources (localhost-only inference endpoints, local application entitlements) to the central server.
Module of the execution-gateway program; architecture and contracts come from A0 (#85).
User value
Local machines' Ollama instances and Codex/ZCode entitlements become usable from anywhere in the user's LAN/VPN without opening inbound ports, editing firewall rules or maintaining certificates. Install the worker only on machines where such access is actually needed.
Relationship to current code
Scope
Non-goals
/shell,/sshor arbitrary-command endpoint; no remote host administration; no SSH orchestration protocol (SSH is how a user may reach another machine, not a required router protocol); no manual worker-IP configuration; no routine certificate maintenance for ordinary users.Contracts / interfaces affected
Worker protocol contract (new, A0); resource-state report contract (M01); execution dispatch/stream/cancel contract (M03).
Dependencies
Acceptance criteria
/shell,/sshor arbitrary-command endpoint.Security considerations
Verified TLS/WSS (no
verify=false); the pairing/trust bootstrap model from A0; per-device identity with revocation; no bearer secrets in URLs; local adapter allowlist enforcement; filesystem/session/tool isolation for any local adapter invocation; no root/Administrator execution by default; no uncontrolled client-supplied subprocess flags or environment variables; no Docker socket mounting; logs created by local runtimes are accounted for in diagnostics hygiene (no secrets, no prompts).Risks
Evidence still required
Closeout (v0.1.0 release-readiness reconciliation, 2026-09-21). M05 is implemented and its acceptance criteria are satisfied on
develop@9d6192e.worker_protocol.py(length-prefixed JSON over verified TLS, closed vocabulary),worker_endpoint.py(server side),worker_client.py(thepair/runruntime behind thescarcity-router-workerconsole script),worker_identity_store.py(the ONE pairing system),worker_local_store.py,worker_local_adapters.py,worker_local_translation.py; contract:docs/worker-protocol.md(protocol v1).tests/test_worker_client.py); invalid/revoked identity rejected (credential_revokedover a real socket,tests/test_worker_endpoint.py,RevocationTests); incompatible protocol versions fail closed (protocol_version_unsupported, no retry storm); no generic/shell//ssh/command endpoint (ProtocolVocabularyTests); the local adapter allowlist is enforced worker-side even against server requests (adapter_not_allowed); network loss never auto-duplicates an already-started request (attempt identity, exactly-once dispatch,AmbiguousDisconnectTests); Windows and WSL resolve different state directories (tests/test_worker_local_store.py).tests/test_worker_ownership.py); heartbeat liveness with a composition reaper.make check1868 tests OK, basedpyright clean,make package-checkgreen (the worker console script is one of the four verified entry points); Forgejo CI green ondevelop(run #25).Closing as complete;
docs/roadmap.mdnow records M05 complete.