No description
  • Rust 52%
  • Clojure 40.7%
  • Shell 2.8%
  • CSS 2.4%
  • Nix 1.7%
  • Other 0.4%
Find a file
dev-sync d8daac7b63 Revised PER-34 checkpoint 1: Connect the browser Usage dashboard (#19)
The compiled dashboard still showed a smoke counter; the approved Usage page was only available in the offline preview.

Run Replicant at `/dashboard` against the same-origin Usage v1 API. Validate each result and use a fresh generation for every request so stale results cannot replace the current selection. Keep exact counts and wire rank, and offer retry on current failures, including HTTP 429. The Docker-free launcher serves the compiled assets and the unchanged Ring endpoint with an injected fake reader.

Passed: web and backend format, lint and tests; Usage v1 contract and release isolation check; Chromium loopback smoke with canonical JSON, exact counts, filter changes and error/retry.

[Before: compiled smoke shell](29881b554f/web/docs/review/per-34-checkpoint-1/before.png) · [After: compiled Usage dashboard with synthetic data](29881b554f/web/docs/review/per-34-checkpoint-1/after.png)

Checkpoint 2 remains: release startup and routing, real ClickHouse wiring, disposable ClickHouse concurrency/release verification, and `check-dashboard-e2e`. No public activation or deployment.

Model: gpt-6.2-sol · Harness: Pi
Co-authored-by: Tobias Ostner <tobias.ostner@gmail.com>
Reviewed-on: #19
2026-11-28 18:05:30 +01:00
backend Revised PER-34 checkpoint 1: Connect the browser Usage dashboard (#19) 2026-11-28 18:05:30 +01:00
db Archive Pi session observations independently of origin 2026-11-17 10:19:02 +01:00
docs Report sanitized Pi collector pass timings 2026-11-24 20:09:23 +07:00
nix PER-25: Build the shared Pi collector for Apple Silicon 2026-11-24 16:19:00 +07:00
src Report sanitized Pi collector pass timings 2026-11-24 20:09:23 +07:00
web Revised PER-34 checkpoint 1: Connect the browser Usage dashboard (#19) 2026-11-28 18:05:30 +01:00
.gitignore Implement bounded server Pi archive collector 2026-11-13 12:29:12 +01:00
AGENTS.md Document Linear issue defaults 2026-11-25 21:02:53 +07:00
Cargo.lock Implement bounded server Pi archive collector 2026-11-13 12:29:12 +01:00
Cargo.toml Add isolated schema migrator and repeatable state initialization 2026-11-14 07:54:46 +01:00
flake.lock Implement bounded server Pi archive collector 2026-11-13 12:29:12 +01:00
flake.nix PER-31: Set up the Replicant dev namespace, Portfolio, and release build (#11) 2026-11-25 09:23:30 +01:00
README.md PER-33 checkpoint 2: Add loopback Usage API development backend 2026-11-26 08:25:55 +01:00

Agent Dashboard

Private Rust Pi collector and owner-only ClickHouse migrator. The usage backend serves only synthetic data on loopback; the web shell is developed independently.

The owner reports automatic migration → idempotent state preparation → collection/timer startup is adopted. PER-2 server data acceptance remains open. Mac packaging is separate from dotfiles activation and live Mac acceptance.

Target: existing Atomic agent_analytics, ClickHouse 26.3.10.62 LTS. Collectors have SELECT/INSERT only, never DDL, and expose no listener or SQL API. Persisted v2/v3 message.role=user text is archived as recorded at each native session/entry, even with unknown origin or inherited/rewritten content. This is not proof of human authorship, original wording or actual provider-request input. Equal text at different keys stays distinct. Non-user bodies and image content remain excluded; v1 remains unsupported.

Text search combines local observations with retained legacy canonical archives, with raw latest privacy controls taking precedence, including invisible deletion markers. New canonical prompt writes stop; old pending payloads remain drainable subject to privacy checks. Usage facts are observed locally; only independently eligible, proven-owned events enter direct totals. Copies are attribution, unknown ownership is unresolved, and selected totals remain partial.

The independent archive has no automatic expiry or source-deletion propagation. Missing inputs never delete accepted records. No Pi/producer changes, parent-path traversal, Hermes, or live UI/backend deployment configuration is included.

Build

On x86_64 Linux:

nix develop
cargo fmt --all -- --check
cargo clippy --locked --lib --bins -- -D warnings
cargo build --locked --release --bin pi-collector --bin agent-dashboard-migrate
nix build .#packages.x86_64-linux.pi-collector --no-link

On Apple Silicon macOS:

nix develop
cargo fmt --all -- --check
cargo clippy --locked --lib --bin pi-collector -- -D warnings
cargo build --locked --release --bin pi-collector
nix build .#packages.aarch64-darwin.pi-collector --no-link

Inputs are locked. Builds do not initialize state, apply schema or start anything. The Linux package contains both executables; the Mac package contains only pi-collector. The dotfiles repo owns the Mac job; see Mac rollout requirements and native validation. Exact-version isolated SQL and live acceptance checks are separate from package checks. Module/service and schedule defaults remain disabled. The owner retains normal main-tracking app-lock update, review/merge, deployment and private data acceptance; there is no manual readiness ceremony, state reset or grant workaround here.