odysseus/src/agent_tools
Alexandre Teixeira f9aa2818c4 refactor(runtime): centralize verified process lifecycle
Extract the generic process lifecycle layer (src/process_lifecycle.py)
shared by runtime-owned subprocesses: process identity (pid + boot-bound
start token), identity-bound observation, group and pidfd probes, the
TERM -> verify -> KILL -> verify escalation with re-gating before
escalation, identity-scoped sweeps, and the termination receipt.

Containment, the PTY shell, the Cookbook survivor sweep, the browser
lifecycle, web_tools browser cleanup, kill_process_tree and the startup
reaper consume it while keeping their own ownership semantics.

Safety corrections:
- browser membership and identity are bound in one snapshot; no identity
  is recaptured after membership is decided
- web_tools legacy pid-file and profile-match kills signal only verified
  identities; browser CLI groups only while their spawn identity verifies
- Cookbook and legacy-tmux descendant capture bind membership to identity
- PTY teardown never signals the server's own process group
- unverifiable processes are reported, never signalled
2026-10-02 01:27:08 +01:00
..
__init__.py Preserve preview harness, editor, email and task improvements 2026-10-01 01:34:26 +00:00
admin_tools.py Consolidate Odysseus agent harness and tool contracts 2026-09-17 10:07:40 +00:00
bg_job_tools.py fix(runtime): contain and supervise detached Bash jobs (ODY-145) 2026-10-01 21:23:21 +01:00
coding_tools.py Merge verified Odysseus fixes 2026-07-23 14:49:02 +00:00
document_tools.py Preserve preview harness, editor, email and task improvements 2026-10-01 01:34:26 +00:00
filesystem_tools.py fix(runtime): enforce workspace confinement in one place 2026-10-01 19:45:59 +02:00
interaction_tools.py Merge dev into main for testing 2026-06-28 14:07:23 +00:00
media_tools.py Consolidate Odysseus agent harness and tool contracts 2026-09-17 10:07:40 +00:00
model_interaction_tools.py Consolidate Odysseus agent harness and tool contracts 2026-09-17 10:07:40 +00:00
ocr_engine.py Squash Odysseus development history 2026-09-11 06:04:19 +00:00
session_tools.py Preserve preview harness, editor, email and task improvements 2026-10-01 01:34:26 +00:00
subprocess_tools.py fix(runtime): resolve Wave 3-S audit findings (P2-1, P2-2, P2-3) 2026-10-02 00:07:44 +01:00
weather_tools.py Preserve preview harness, editor, email and task improvements 2026-10-01 01:34:26 +00:00
web_tools.py refactor(runtime): centralize verified process lifecycle 2026-10-02 01:27:08 +01:00