The worker's environment (NATS URL and token, State Store URL, token and CA, worktree UID and GID) is built twice: Daemon.containerEnv for the default path and kitrun.WorkerEnv for Kit tasks. They differ in where the endpoints point (daemon address versus relay ports) and both carry the broker token on an external broker.
Wanted
One builder for the worker environment, pointing at the relay, with no broker token once auth callout lands.
Done when
Only one function produces the worker's environment. Depends on #1865.
## Problem
The worker's environment (NATS URL and token, State Store URL, token and CA, worktree UID and GID) is built twice: `Daemon.containerEnv` for the default path and `kitrun.WorkerEnv` for Kit tasks. They differ in where the endpoints point (daemon address versus relay ports) and both carry the broker token on an external broker.
## Wanted
One builder for the worker environment, pointing at the relay, with no broker token once auth callout lands.
## Done when
Only one function produces the worker's environment. Depends on #1865.
With #1877, kitrun.WorkerEnv goes and containerEnv is the only builder. If #1867 moves default tasks behind the relay, containerEnv takes over the relay addressing that WorkerEnv had.
With #1877, `kitrun.WorkerEnv` goes and `containerEnv` is the only builder. If #1867 moves default tasks behind the relay, `containerEnv` takes over the relay addressing that `WorkerEnv` had.
---
_Generated by [Claude Code](https://claude.ai/code)_
Closing: #1877 deletes `kitrun.WorkerEnv`, leaving `containerEnv` as the only builder. Pointing it at the relay is part of #1867.
---
_Generated by [Claude Code](https://claude.ai/code)_
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
The worker's environment (NATS URL and token, State Store URL, token and CA, worktree UID and GID) is built twice:
Daemon.containerEnvfor the default path andkitrun.WorkerEnvfor Kit tasks. They differ in where the endpoints point (daemon address versus relay ports) and both carry the broker token on an external broker.Wanted
One builder for the worker environment, pointing at the relay, with no broker token once auth callout lands.
Done when
Only one function produces the worker's environment. Depends on #1865.
With #1877,
kitrun.WorkerEnvgoes andcontainerEnvis the only builder. If #1867 moves default tasks behind the relay,containerEnvtakes over the relay addressing thatWorkerEnvhad.Generated by Claude Code
Closing: #1877 deletes
kitrun.WorkerEnv, leavingcontainerEnvas the only builder. Pointing it at the relay is part of #1867.Generated by Claude Code