gunk-dev/the-valley
the-valley:oc-8e7e027outcomein-progress

Valley telemetry can be read from a Klaus session

State
in progress
Created
2026-11-01 by contributor
Progress
4 of 10 done
Children

Body

All the valley's operational telemetry is readable from a Klaus session. The operator explicitly requires this on 2026-11-01. Diagnosing checks, preparation, approval and integration must not require the operator to copy host journals or workstation output into a conversation.

Done when the session can discover telemetry sources, read bounded current and retained activity, and follow updates with explicit reconnect, truncation and retention-gap behavior. Provide human-readable and versioned machine-readable views with source timestamps, collection freshness, project/change/version/head and run/attempt correlation.

Cover the check worker and attester, integrators, restacker, identity/signers, mirror publication, bus, web publication and backups: queued and active work, check progress/results/build logs, failure/backoff/retry, decision stages, lifecycle and resource failures, and running/configured versions. Unavailable or stale telemetry must be distinguishable from no activity and success. Keep observations separate from authorization and signed check evidence.

Include client-side approval and check runs. An operator workstation's timing file does not become remotely visible by exposing only the host journal. Provide an explicitly configured, bounded nonblocking publication path for client diagnostic data and retain enough to investigate a completed, failed or interrupted run. A first host-only slice is useful but does not complete this outcome.

Use the existing authenticated session identity or a narrowly configured read capability. No administrative host shell, arbitrary file/command access, new service-control rights, credentials, or wholesale state-directory access. Project-scoped readers must not receive shared-service logs from other projects; explicitly host-wide observation is a distinct access decision.

Prefer real binary and SSH/NixOS tests for authorized and refused reads, malicious queries, live progress, failure/restart recovery, retention and telemetry-outage isolation. Source integration, deployment configuration and verified access from the actual session are separate milestones. The outcome stays open until the deployed session can use the interface.

Research starts with valleyhook/shell.go, nix/valley-host.nix, status/worker.go, attest/run.go, attest/check.go, attest/timing.go, integrator/timing.go, and readaccess/. Existing bd-5cad397 records invisible worker failures; coordinate with it. A read-only panel is comparing a constrained SSH query interface with bounded exported diagnostic records. Authoritative workflow history remains a separate design choice; neither telemetry nor unauthenticated bus notifications grant execution authority.

Comments

  1. contributor2026-11-01 17:08 UTC
    The cross-model critic panel selected a constrained SSH telemetry interface with a dedicated local helper and bounded diagnostic spools. Host-wide observe and client report capabilities remain distinct. Structured producer records must not be reconstructed from untrusted build log prefixes. Raw logs are opt-in, escaped and bounded. Existing SSH authentication is reused; no administrative shell or broker dependency is introduced.
    
    Implementation is underway under oc-deb32e2, run 20261101-1708-14166665, change ptkvyxtprqwtnrywrrptvoxomwplwqmr. Its brief includes live check completion/log visibility, correlated host failure/backoff, client coverage and version observations, live client reporting, explicit retention and gap behavior, and outage isolation. It preserves the integrator wakeup work under oc-9daa661 and requires a precise residual for any measurements that depend on that work.
    
    Adoption and verification are tracked separately under oc-031d768, blocked on integrated source support. This parent remains in progress until actual session access to both host and workstation observations is verified after deployment.
  2. contributor2026-11-01 17:27 UTC
    Scope clarification from the operator, 2026-11-01: this is an acceptable short-term diagnostic capability to unblock CI latency work. The separate platform outcome is oc-0bd6677, The valley provides durable operational history and observability, graduated from ida-ef3cc9b.
    
    Keep this implementation and deployment moving independently. Its SSH read path and bounded diagnostic spools do not establish the long-term authoritative history, retention, query or subscription architecture. Do not call the platform outcome complete when this capability ships, or turn this provisional storage/transport into a permanent contract by accident. Instrumentation should retain stable correlation and explicit provenance so a later valley-owned platform can adopt it.
  3. contributor2026-11-01 18:48 UTC
    The first source implementation is pushed as ptkv v1 but remains draft after coordinator review. Its focused follow-up must instrument approval through review as well as the direct approve command, isolate workstation spools and acknowledgements by intended receiver, and complete the policy-required validation set. These are readiness blockers for the interim capability, not deferred architecture choices.
    
    The author's explicit coverage residuals are now tracked: oc-4f542a3 covers request-observation/pre-decision timing after the integrator wake change; oc-04a42ae covers remaining component and remote-producer visibility plus lifecycle following. oc-031d768 remains adoption and actual session verification. These preserve the distinction between useful initial CI diagnostics, all configured telemetry being accessible, and the separate durable platform outcome oc-0bd6677.