Issue: https://github.com/jgwill/miadi-orchestration-kit/issues/99
t1-pi-coding-miadi-orchestration-kit-observability-2610221637, native session 01a1655f-66aa-7042-94b1-7b7cc227a3d9.t8-pi-agent-observability-rel2-miadi-review-a66e014e-2610221636, working in /workspace/repos/miadisabelle/pi-agent-observability.A local service was prepared before implementation, to let William watch the existing sanitized hooks while the package was built:
http://127.0.0.1:43190/, reference repo’s apps/observability/server.ts only, not Steelman or just all./home/mia/.local/share/miadi/pi-observability/token (0600). Do not paste its contents into GitHub, captures, or this document. Construct the browser URL locally with ?token=<value>; session selection is #view=single&sid=<id>./home/mia/.local/share/miadi/pi-observability/obs.db (SQLite/WAL)./home/mia/.local/share/miadi/pi-observability/runtime/node_modules/@oven/bun-linux-x64/bin/bun. Installed with npm’s @oven/bun-linux-x64, no global toolchain changes.obs-dashboard (Bun), obs-bootstrap (legacy bridge), obs-forward (new durable journal forwarder). Windows were created detached; T8’s pane was not steered or restarted./home/mia/.local/share/miadi/pi-observability/legacy-bridge.mjs; reads only this T1 session’s existing _pi_hooks_all.jsonl. Its dashboard identity is deliberately bootstrap-01a1655f-66aa-7042-94b1-7b7cc227a3d9, pool T1-bootstrap, label T1 Pi capture migration. It cannot reconstruct missing startup/context/timing events. Its source-line sequence must not share the canonical session’s sequence namespace.01a1655f-66aa-7042-94b1-7b7cc227a3d9; it waits harmlessly until the new journal exists. After an idle /reload, choose the native session row to see augmented telemetry. The bootstrap row remains historical/compatibility evidence, not another agent.curl -fsS http://127.0.0.1:43190/health. For a remote browser: ssh -L 43190:127.0.0.1:43190 mia@gaia. The service is loopback-only, tmux-managed, not boot-persistent; T8 must decide production service ownership.Only the mia account was cut over. ~/.pi/agent/settings.json now adds the local package and removes the binscripts extension entry, with unrelated settings preserved. Backup: ~/.pi/agent/settings.json.before-miadi-pi-observability-1792703289496. Other accounts, binscripts’ live code and T8’s reference checkout remain untouched. Existing Pi processes keep their loaded legacy extension until /reload at an idle boundary or restart. Do not inject /reload into a busy agent. A newly started ordinary pi in T8’s directory uses the package without -e.
/src/_sessiondata/data/terminal_bindings.jsonl by tmux.session, not by a guessed transcript filename.Start its explicit local forwarder (a separate supervised terminal/window):
export OBS_TOKEN_FILE=/home/mia/.local/share/miadi/pi-observability/token
node /workspace/repos/jgwill/miadi-orchestration-kit/pi/miadi-session-observability/scripts/forward.mjs \
--session <native-pi-session-id> --watch
extension/pi-observability.ts alongside this capture: it independently assigns seq from zero and can collide for the same session ID._pi_observability.jsonl. Reuse event IDs and sequence numbers when replaying; never renumber on reconnect. The canonical stream matches shared/types.ts event discriminators/envelope/payload names, with additive schema, miadi, snapshot refs, cost_reported, durations and error correlation. Native Pi turn_index can restart with a new run; use miadi.run_id to distinguish runs and miadi.prompt_id for the most recently observed input event. This does not claim every custom/queued run has a fresh human prompt.payload and selected envelope fields only: additive schema/miadi envelope metadata is dropped from its SQLite/SSE reconstruction. T1 therefore mirrors correlation in payload.miadi, which survives unchanged; T8 can project that into team/episode/run UI without losing existing records. Do not confuse a terminal team with a dashboard pool.agent_start, so basic prompt inspection works now. The context event’s snapshot reference does not make the full context magically browser-readable.-e, and verified exactly one start capture with T8 binding.tests/dashboard-smoke.mjs also ingested 13 explicitly synthetic events, checked token/cost rollups count only the assistant once (10 tokens, 0.123 fixture cost), one error, snapshot refs and correlation surviving the server. Its dashboard rows are labelled SYNTHETIC, not real agent work; fixture capture files are removed after the check. Browser interactions have not been automated or claimed as tested.