## Summary An on-call instance that finds its connection registry empty asks the owner for the machine. Until 2026-09-06 the host consumed that answer: a check before every spawn read the registry and, when it held nothing, ran `raven ops connection add --non-interactive` from what the owner had typed in conversation. That check went with the pre-dispatch registry gate, and the plugin's own reply kept only half of the exchange -- it asked the owner to run the command themselves in a terminal. Measured 2026-09-20: the owner answered the question in the TUI and nothing wrote the row. The write now belongs to the instance that needs the machine. A new tool, `ops_connection_add`, takes the owner's answer and files the row through functions in the plugin's own registry module (`probe`, `write`, `write_ssh_alias`, mirroring the CLI the way the reader already does). The machine is reached before anything is written; its cores, memory and devices are read off it rather than typed. All of it is in-process function calls -- no `raven ops connection add` child process, no venv path to find. The ask is cut to what only the owner knows: - required: what they call the machine, whether it is this computer or one reached over ssh, and an address for the latter; - port, username and key path are taken when given. Left out, `ssh -G` resolves them the way the owner's own terminal would, and the keys it names are probed in turn, keeping the one that connects. A username ssh cannot resolve is refused, not guessed; - installed software, work directories and the budget unit are optional; concurrency is kept only on a row that reports no cores or devices. Only the on-call plugin (`agents/raven-oncall/plugins/oncall-flow`), its prompt, the heat2d demo walk-through and tests change. No DAG, host or dispatch code is touched. ## Type - [ ] Fix - [x] Feature - [ ] Docs - [ ] CI / tooling - [ ] Refactor - [ ] Other ## Verification - `pytest tests/test_agents_oncall_flow_*.py tests/test_ops_connections.py tests/test_cli_ops_connection_commands.py -q` -- 789 passed. Four new cases in `tests/test_agents_oncall_flow_connection_add.py`: a reached machine is written, listed by `describe()` and given an ssh alias; an unreachable one writes nothing; an ssh row with no address is refused before any probe; a port/user/key the owner left out come from the `ssh -G` resolution and the key that actually connected is the one stored. - `ruff check` and `ruff format --check` on the touched files -- clean; `pre-commit run --files <touched>` -- all hooks passed. - Unmocked, against a temporary registry file: `transport=local` on this laptop reached it and read 12 cores; `transport=ssh` with only host, port and user given reached the 32-core box with the second of ssh's default keys and read 32 cores / 232 GB; the same call with the user omitted was refused (`Permission denied`) and wrote nothing. - [x] Relevant tests pass locally - [x] Relevant lint / type checks pass locally - [x] User-facing docs or screenshots are updated when needed ## Risk - [x] Security impact considered -- the key path is stored, never the key; the model is told not to invent an address, port or key, and a row lands only after the machine answered with that exact way in. The tool writes one managed `Host <id>` block into `~/.ssh/config`, the same block the CLI writes today. - [x] Backward compatibility considered -- the registry file shape is unchanged; existing rows are not rewritten; a file with entries the reader skips is refused rather than rewritten without them. - [x] Rollback path is clear for risky changes -- remove the manifest row and the tool module; the reader-side functions are unused without them. ## Related Issues N/A Co-authored-by: xiaotian.luo <xiaotian.luo@thetahealth.ai> Co-authored-by: Claude (claude-opus-5) <noreply@anthropic.com>
Raven demos
Each subdirectory is one self-contained showcase: an inputs-+-runner-+-output bundle that should be reproducible from a fresh checkout.
Keep demos focused on user-visible behavior. A good demo should explain what it proves, how to run it, and what a successful output looks like without relying on private EverMind infrastructure.
| Demo | What it shows |
|---|---|
| skill_retrieval/ | An agent reads a SKILL.md, follows it, and generates an image via Nano Banana on OpenRouter. |
| oncall_heat2d/ | The full on-call dispatch chain on a bare laptop: raven registers your machine and runs a watched campaign against a numpy heat-equation case. |
Layout convention
demos/<feature_name>/
README.md ← what the demo shows + how to run it + expected output
run_*.sh ← one-line driver (env vars, config injection, the actual run)
skills/ ← any local skill files the demo's workspace needs
example_output.* ← committed sample output for "this is what success looks like"
Running a demo
Each demo's README explains its own prerequisites. In general they need:
uvand the project's venv (uv syncfrom the repo root)- An
OPENROUTER_API_KEY(or whatever provider the demo calls) - A working network — most demos hit OpenRouter directly
Notes
raven agentwrites workspace artifacts (AGENTS.md,memory/,sessions/, ...) into the demo dir on each run. They are not committed butgit statuswill show them after every run; clean up withgit clean -fd demos/<name>/before committing.- Demos are not part of the CI test suite — they hit live APIs and cost real money to run.