Skip to content

App-to-Script Requests

A script serves requests over a socket next to its session, so the app can ask it to run a task, stream events back, cancel it and fetch tensor values in binary chunks.

Field Value
ID INT-08
Status Built
Scope Core
Pillar Interpretability and Interventions
Sprint None
Depends On Live Streaming (STR-04)
Unblocks Inspector (INT-05)
Language Models Run from the App (INT-09)
Docs None
Branches inspector
Design None

Coverage Ledger

  • Branch inspector, 35 commits that main lacks by patch and subject (30 also on origin/inspector, 5 only on inspector), 62 ahead of main in all. Overview of the branch. It holds the inspector applet with its tensor view, 3-D model view, requests to a script, a language model run from the app, and the J-space Trace pane with interventions. Its host side is an MLX example script. 30 commits are on origin/inspector; five are only local (the uv lock, the data script for a landing page figure, GrokScope, two research examples, a path change).
  • Branch inspector, 1 commit, 1a53fbd1. Requests from the app to a script. A script serves requests over a Unix socket next to its session (python/caliper/requests.py); the app sends a request, the handler streams events back, and Stop cancels it. The first inspector windows (Inference, Model, Tensor) come with it.
  • Branch inspector, 2 commits, 24830b5e fd8334a8. Binary transport for tensors. Whole tensors travel as raw bfloat16 or float32 row chunks (tensor_values, capped at 2 MB per reply) and region samples as base64 float32.
  • Branch inspector, 1 commit, 85257ddb. The JSON reader of the request channel is patched to read UTF-8 bytes above 127 and decode unicode escapes, applied at configure time like the llama.cpp patch.

Roadmap Graph Feature in Graph