Write the service's logs as the estate's log line (AHT-204) #19

Merged
merge-queue merged 1 commit from aht-204-logline into main 2026-11-26 15:55:41 -08:00
Owner

Moves ambience's logs onto the estate's log line, AHT-204.

Before: Go's log package on stdout (2026/11/26 10:30:43 rotation: shared effect rain -> snow (tick 1200), no zone, pid or level, the varying parts inside the sentence) and log.Fatal on a failure to start or serve.

Now: one logline.New(os.Stdout) for the service (logline v0.1.5), each event a fixed message with fields:

  • Rotation: info "rotation: shared effect changed" from=rain to=snow tick=1200, info "rotation: enabled" cadence= pool=, info "rotation: disabled"; invalid settings, unknown effects and a failed build are warn.
  • Scene config interpolation and apply failures: warn with effect= and error=.
  • Persistence: save, restore and snapshot failures are warn; info "restored the shared atmosphere" saved_at= tick=.
  • The edge: proxy failures (method=, path= masked, error=), stream and event-decode failures, and a full entropy buffer (bytes=) are warn.
  • Start and stop: info "ambience listening" addr= role= grid=640x360 tick=, info "ambience draining before shutdown" drain=, info "image self-test passed"; each failure to start, serve or shut down is an error line naming the step, then exit 1.
  • Every error= goes through logline.Redact.

Also: cmd/client-demo and cmd/sixel-demo (hand-run terminal demos, not shipped) print their errors to stderr with fmt; terminal/client.go drops its _ = log.Output placeholder import.

Left alone: what is logged and when; the sim and wasm packages, which log nothing.

pipeline-templates' check-logs (PR 237) reports nothing on this branch.

🤖 Generated with Claude Code

Moves ambience's logs onto the estate's log line, [AHT-204](https://openproject.home.romaine.life/wp/AHT-204). Before: Go's `log` package on stdout (`2026/11/26 10:30:43 rotation: shared effect rain -> snow (tick 1200)`, no zone, pid or level, the varying parts inside the sentence) and `log.Fatal` on a failure to start or serve. Now: one `logline.New(os.Stdout)` for the service (logline v0.1.5), each event a fixed message with fields: - Rotation: `info "rotation: shared effect changed" from=rain to=snow tick=1200`, `info "rotation: enabled" cadence= pool=`, `info "rotation: disabled"`; invalid settings, unknown effects and a failed build are `warn`. - Scene config interpolation and apply failures: `warn` with `effect=` and `error=`. - Persistence: save, restore and snapshot failures are `warn`; `info "restored the shared atmosphere" saved_at= tick=`. - The edge: proxy failures (`method=`, `path=` masked, `error=`), stream and event-decode failures, and a full entropy buffer (`bytes=`) are `warn`. - Start and stop: `info "ambience listening" addr= role= grid=640x360 tick=`, `info "ambience draining before shutdown" drain=`, `info "image self-test passed"`; each failure to start, serve or shut down is an `error` line naming the step, then exit 1. - Every `error=` goes through `logline.Redact`. Also: `cmd/client-demo` and `cmd/sixel-demo` (hand-run terminal demos, not shipped) print their errors to stderr with `fmt`; `terminal/client.go` drops its `_ = log.Output` placeholder import. Left alone: what is logged and when; the sim and wasm packages, which log nothing. pipeline-templates' check-logs (PR 237) reports nothing on this branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Write the service's logs as the estate's log line (AHT-204)
All checks were successful
Suite go / check-format (pull_request) Successful in 7s
Suite web-app / reused-checks (pull_request) Successful in 3s
Suite tofu / scope (push) Has been skipped
Suite tofu / check-plan (push) Has been skipped
Suite tofu / apply (push) Has been skipped
Suite tofu / reused-checks (push) Has been skipped
Suite web-app / scope (push) Has been skipped
Suite web-app / check-image (push) Has been skipped
Suite web-app / publish (push) Has been skipped
Suite web-app / publish-static (push) Has been skipped
Suite web-app / reused-checks (push) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite default / check-rules (pull_request) Successful in 5s
Suite web-app / check-test (.) (pull_request) Successful in 9s
Suite default / reused-checks (pull_request) Successful in 4s
Suite go / reused-checks (pull_request) Successful in 4s
Suite default / scope (pull_request) Successful in 5s
Suite tofu / scope (pull_request) Successful in 5s
Suite go / check-test-windows (pull_request) Has been skipped
Suite tofu / check-plan (pull_request) Has been skipped
Suite tofu / apply (pull_request) Has been skipped
Suite tofu / reused-checks (pull_request) Successful in 5s
Suite web-app / publish (pull_request) Has been skipped
Suite go / check-test-linux (pull_request) Successful in 23s
merge-queue landed on main
Suite go / scope (pull_request) Successful in 5s
Suite web-app / scope (pull_request) Successful in 5s
Suite default / check-fetches (pull_request) Has been skipped
Suite web-app / publish-static (pull_request) Has been skipped
Suite web-app / check-image (pull_request) Successful in 32s
e5bf18bb8d
Every line the ambience service writes (scene and rotation changes, persistence, the edge's
authority proxy, start, drain and fatal errors) goes through logline.New(os.Stdout) instead
of Go's log package, as fixed messages with fields; error text and request paths are
masked with logline.Redact. The two demo commands print their errors to stderr with fmt,
and the terminal client no longer imports log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
merge-queue deleted branch aht-204-logline 2026-11-26 15:55:41 -08:00
Sign in to join this conversation.
No description provided.