Low-Context Execution Packet
Use branch stage/d3-10-backend-membrane.
Implement in an isolated backend tree unless D3-09 names a different path:
backend/hermes-membrane/
README.md
pyproject.toml or package metadata
src/
tests/
scripts/
Build order:
- listener accepts one raw message
- parser converts it to the D3-09 JSON schema
- deterministic response path returns a valid
STR|...message - Hermes/MiniMax handoff is added only after the deterministic path passes
- process registry tracks spawned child groups
- kill command terminates a deliberate rogue process
- headless probe runs repeated send/receive checks
Probe requirements:
scripts/headless_probe.py
scripts/spawn_rogue.py
tests/test_parser.py
tests/test_kill.py
If live MiniMax/Hermes inference fails, keep the deterministic stand-in and record the failure. Do not fail the stage solely because a model API is unavailable.
Required logs:
/mnt/kitchen/collab/d3-tui/logs/d3-10/listener.log
/mnt/kitchen/collab/d3-tui/logs/d3-10/headless-probe.log
/mnt/kitchen/collab/d3-tui/logs/d3-10/kill-test.log
Minimum acceptance command:
python -m pytest backend/hermes-membrane/tests
python backend/hermes-membrane/scripts/headless_probe.py --count 100
The report must include count sent, count received, malformed count, and kill proof.