examples/minimal: use a foreman and workers #106

Merged
mikluko merged 1 commit from examples-foreman into main 2026-11-16 12:58:34 +00:00
Owner

The configuration follows gascity-sandbox ecdfe12 and the sandbox server configuration at saraksh/kube 4dbb085, keeping the example's documentation placeholders and cluster-neutral choices.

Checks: make lint; go test -race ./...; kustomize build examples/minimal/k8s with kustomize v5.8.3; changelog validation against main.

The configuration follows gascity-sandbox `ecdfe12` and the sandbox server configuration at saraksh/kube `4dbb085`, keeping the example's documentation placeholders and cluster-neutral choices. Checks: `make lint`; `go test -race ./...`; `kustomize build examples/minimal/k8s` with kustomize v5.8.3; changelog validation against `main`.
examples/minimal: use a foreman and workers
All checks were successful
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 17s
test / go (pull_request) Successful in 1m22s
8b8e025132
Assisted-By: Kimi <noreply@moonshot.ai>
Author
Owner

Review at 8b8e025, by the reviewing session (specs-58). The tests that read the example pass here (go test -race ./internal/config/ ./cmd/...), and nothing of host or guest is left in examples/minimal or the README: the agents, the two prompts, the named session, roomcity.toml's tables with the tools and the timeout, the Secrets' table and the steps all agree with each other and with the city as it runs.

One change before it merges.

The claude provider's env does not belong in the example. The pull request adds to examples/minimal/city/city.toml:

env = { CLAUDE_CODE_ENABLE_TODO_TOOLS = "1", OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE = "cumulative" }
  • CLAUDE_CODE_ENABLE_TODO_TOOLS has been set by the session host itself since 0.10.0; the changelog of that release says a city "no longer needs to" set it. An example that sets it teaches the opposite.
  • OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE = "cumulative" is a trial in one city for one cluster's collector (its exporter drops delta sums), and where that setting lives for good is not decided. The example's README says of itself that what is particular to that cluster is left out, and its section "What Claude Code sends" says the example names no telemetry endpoint. A reader meets this variable with no word of why.

Leave the line out. The example then has no env on the claude provider, as on main.

It was written before #104 merged: rebase over main (bb336f9) if CHANGELOG.md conflicts.

Review at 8b8e025, by the reviewing session (specs-58). The tests that read the example pass here (`go test -race ./internal/config/ ./cmd/...`), and nothing of `host` or `guest` is left in `examples/minimal` or the README: the agents, the two prompts, the named session, `roomcity.toml`'s tables with the tools and the timeout, the Secrets' table and the steps all agree with each other and with the city as it runs. One change before it merges. **The claude provider's `env` does not belong in the example.** The pull request adds to `examples/minimal/city/city.toml`: env = { CLAUDE_CODE_ENABLE_TODO_TOOLS = "1", OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE = "cumulative" } - `CLAUDE_CODE_ENABLE_TODO_TOOLS` has been set by the session host itself since 0.10.0; the changelog of that release says a city "no longer needs to" set it. An example that sets it teaches the opposite. - `OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE = "cumulative"` is a trial in one city for one cluster's collector (its exporter drops delta sums), and where that setting lives for good is not decided. The example's README says of itself that what is particular to that cluster is left out, and its section "What Claude Code sends" says the example names no telemetry endpoint. A reader meets this variable with no word of why. Leave the line out. The example then has no `env` on the claude provider, as on main. It was written before #104 merged: rebase over main (bb336f9) if CHANGELOG.md conflicts.
mikluko force-pushed examples-foreman from 8b8e025132
All checks were successful
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 17s
test / go (pull_request) Successful in 1m22s
to e8053bbe1f
All checks were successful
test / changelog (pull_request) Successful in 6s
image / image (pull_request) Successful in 16s
test / go (pull_request) Successful in 57s
2026-11-16 12:57:13 +00:00
Compare
mikluko deleted branch examples-foreman 2026-11-16 12:58:34 +00:00
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/roomcity!106
No description provided.