miadi-orchestration-kit

Pi observability cutover — mia@eury, 2026-10-22

Tracking: #99. Package: local @miadi/pi-session-observability 0.1.0 from this directory. Runtime: Pi 1.4.0, Node 24.18.0. No npm publication.

Finding and account-local changes

pi list initially reported no packages. /home/mia/.pi/agent/settings.json had neither package nor extension registrations. Nevertheless, the current session’s terminal binding showed the legacy /opt/binscripts/hooks/pi_hooks/event_capture.ts passed through CLI -e. The shared binscripts mpi alias supplied it alongside Miette.

Activation boundary

Session 01a165de-d7e5-71d8-adf4-c8208f7727a2 continues using its original legacy CLI extension until exit. Do not use /reload to cut over this process: explicit CLI extension paths survive reload and would load alongside the newly installed package, duplicating capture.

After exiting Pi, in the same project directory:

source "$HOME/.bash_aliases"  # refresh an existing parent shell's mpi alias
mpi --continue

A newly opened interactive shell already loads the override. Ordinary pi launches also discover the package automatically. Captures made before this restart do not retroactively gain canonical telemetry, although the package can archive the native transcript when that session resumes.

Validation

Private backups / rollback

Backups remain on this host, not in Git:

Both backups are mode 0600. To roll back, exit the affected Pi process, restore both files, refresh the parent shell’s aliases, and restart. Restore both settings and launcher together: restoring only the legacy launcher while the package remains configured would cause duplicate capture. The legacy scripts and existing session data were not deleted.