From 897d72ee0825fe090cb29e6fce3f9aea9e6c6fc4 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sat, 17 Oct 2026 23:47:08 -0500 Subject: [PATCH] docs: README refresh for new readers (2026-10-18) Add the Aienix link and a dated status line; describe the house server without its private host name. Co-Authored-By: Claude Opus 5.5 --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f73e5e0..a8e4d92 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,20 @@ # readings-window -A read-only, token-protected HTTPS window onto the Spark's GPU and CPU readings, served from the Pi "hub". -A small Rust service. `collect` fetches one JSON line of readings from the Spark over ssh (the hub's timer runs it every 15 seconds, see `NOTES.md`; the timer is not in this repository) and keeps 30 days of history. `serve` hands it out to anyone holding the bearer token. +A read-only, token-protected HTTPS window onto the Spark's GPU and CPU readings, served from the project's Raspberry Pi house server. + +Supports [Aienix](https://github.com/aien-dev/aienix), the core tree of AIEN. It lets the people and agents working on AIEN see how the development machine is doing without logging in to it. + +**Status (2026-10-18): running.** The health endpoint answered with status ok when checked on 2026-10-17. The code was last changed on 2026-10-04 (the chat feed routes); the last change of any kind was a README correction on 2026-10-13. + +A small Rust service. `collect` fetches one JSON line of readings from the Spark over ssh (a timer on the Pi runs it every 15 seconds, see `NOTES.md`; the timer is not in this repository) and keeps 30 days of history. `serve` hands it out to anyone holding the bearer token. ## Endpoints - `GET /health`: no token needed. Returns `status`, `last_reading_age_s` and an `exposure` field (`ok|changed|unknown`). - `GET /v1/readings/current`, `GET /v1/readings/history?hours=N` (default 24, max 720). - `GET /v1/status`, `GET /v1/results`, `GET /v1/exposure`. - `GET /v1/chat` returns `{"agents":["claude","codex","opencode","gemini","muse"]}` so a client can discover the feeds. -- `GET /v1/chat/` (plain text) and `GET /v1/chat/.jsonl` (common JSON records, `application/x-ndjson`) for exactly those five agents; any other name is 404. `?lines=N` gives the last N lines (default 500, max 50000) of the rolling window of the agent archive. `?all=1` gives the whole rolling window (plain) or the complete record history, all dates in order (jsonl). Proxied live from the Spark on every request (no hub disk writes). 502 `{"error":"spark unreachable"}` if the Spark cannot be reached or the remote command fails (for example the archive file is missing). -- All `/v1/*` routes need `Authorization: Bearer `. The token and the TLS key live on the hub only (`/etc/readings-window/`), never in this repository. +- `GET /v1/chat/` (plain text) and `GET /v1/chat/.jsonl` (common JSON records, `application/x-ndjson`) for exactly those five agents; any other name is 404. `?lines=N` gives the last N lines (default 500, max 50000) of the rolling window of the agent archive. `?all=1` gives the whole rolling window (plain) or the complete record history, all dates in order (jsonl). Proxied live from the Spark on every request (nothing is written to the Pi's disk). 502 `{"error":"spark unreachable"}` if the Spark cannot be reached or the remote command fails (for example the archive file is missing). +- All `/v1/*` routes need `Authorization: Bearer `. The token and the TLS key live on the Pi only (`/etc/readings-window/`), never in this repository. ## Commands - `readings-window collect`: fetch one reading from the Spark, append it to the history file and drop entries older than 30 days. It also refreshes the cached copies of the Spark's status and results files that `/v1/status` and `/v1/results` serve.