gunk-dev/the-valley
the-valley:oc-deb32e2outcomedone

Host and workstation telemetry have an authenticated CLI

State
done
Created
2026-11-01 by contributor
Blocks
Changes
  • valley:the-valley/ptkvyxtprqwtnrywrrptvoxomwplwqmr

Body

Implement the source support that lets an enrolled session discover, read and follow host and workstation telemetry over the existing restricted SSH route. A dedicated constrained helper reads declared diagnostics and journals; a separate authenticated report capability accepts bounded diagnostic records from enabled clients. Host-wide observation is explicit because shared unit logs span projects.

The source change covers the read interface and source catalog, bounded retained producer records and logs, worker and check progress in actual completion order, correlated failures and retries, and live workstation approval/check publication with version and coverage observations. Telemetry failures never stall builds, approval or integration. Diagnostic reports never authorize an action or replace signed evidence.

Require real SSH/NixOS tests for access/refusal, progress while a slow check runs, client-to-host correlation, failure/restart, retention/cursor gaps, quotas and telemetry outage isolation. Preserve private worker credentials and the lack of administrative shell access. Document declared settings for a separate consuming deployment.

A completed cross-model critic panel chose a constrained SSH query service and bounded diagnostic spools over Git telemetry refs. Keep raw logs opt-in, escaped and untrusted; structured records come from producer code, not recognized log prefixes. Record honest source-time versus receipt-time and configured versus observed runtime versions. Do not interfere with the integrator wakeup work under oc-9daa661; any first-seen request measurement needing its files remains a precise dependent residual.

Landing this source outcome does not complete oc-8e7e027. That parent also requires deployment configuration, activation and verified reads from the actual session, including an enabled workstation producer.

Comments

  1. contributor2026-11-01 17:27 UTC
    The operator clarified on 2026-11-01 that the current implementation is an acceptable interim capability for CI diagnosis. The broader requirements now live in oc-0bd6677, separate from the latency mission. Complete this scoped source work without selecting the permanent authoritative-history architecture. Preserve explicit diagnostic provenance, stable record correlation and versioning; document this interface's implemented guarantees without claiming it fulfills the future platform. A broker/store migration is not added to this run.
  2. contributor2026-11-01 18:47 UTC
    Coordinator readiness review of ptkv v1 at f5bef32e5302b9d83c1de33f184d1ecf9bcd03db found two blockers despite the clean automated review. First, tel_start is called only by cmd_approve, while all review approval paths call approve directly. Approving through review therefore emits no client telemetry, including the workflow that motivated this outcome. Second, the workstation uses one global spool and acknowledgement file, while flush chooses its receiver from the current checkout. Records intended for different valleys can be mixed, sent to the wrong receiver, and acknowledged for each other. Bind spool records and delivery state to the intended destination at creation and test interleaved runs against two receivers.
    
    The author ran 18 selected checks. The current policy derives 37 required checks for the full change, including CLI, web and host checks omitted as unrelated in that report. The new telemetry checks also need deliberate policy registration/path coverage. The follow-up must run the derived required set and targeted regressions on the final inputs, accepting valid Nix cache hits rather than forcing repeated execution.
    
    The change stays draft pending this focused follow-up. Its title should describe the host/workstation telemetry capability rather than the incidental final help-list correction. Deployment remains separate. The broader durable platform architecture is still oc-0bd6677; these fixes do not expand into that work.
  3. contributor2026-11-01 19:59 UTC
    Coordinator review of candidate 5330c56810132482882e68672162326e694a1e90 found no additional blocking issue in the follow-up. The shared approval entry point now starts a fresh telemetry run for each attempt, including approvals made from review. Spools bind their destination at creation; destination, acknowledgement, flush lock, and log offsets remain together. Old unbound spools are not transmitted. Check log writes use a bounded asynchronous queue. The policy includes the new telemetry checks.
    
    Validation: the full 39-check run completed with exit 0 at 19:50 UTC on 2026-11-01, and the second automated review reported no issues. The candidate tree is b009e70dd0e7e87586f4e9c4cdeb6e90dad121b9, identical to the fully tested 603ffe0c tree. A subsequent commit reorder changed the title without changing files. The worker reran validation at the new commit; the stamped installed CLI caused three VM derivations to change. That rerun was still active when this note was written. The new candidate had not yet been published as a version, so this note does not mark the change ready or approve it. The cache defect is tracked separately as bd-4c74bdb and does not block this capability.
  4. contributor2026-11-01 20:43 UTC
    Change valley:the-valley/ptkvyxtprqwtnrywrrptvoxomwplwqmr landed: v3 as d472c3909b6facf4ea983b3a7d03b840b411975b.
    
    Every change the knot links has landed and it has no active children, so klaus set it done.
  5. contributor2026-11-01 20:43 UTC
    The reviewed source implementation is integrated at d472c3909b6facf4ea983b3a7d03b840b411975b. Its accepted version was the clean restack of the tested and reviewed candidate. Configuration adoption and actual session/workstation verification remain in oc-031d768; request-observation timing and remaining component coverage retain their separate outcomes.