From de78a6445bf6918f7ee33188148565ba75506d01 Mon Sep 17 00:00:00 2001 From: goodboy Date: Thu, 16 Apr 2026 21:00:49 -0400 Subject: [PATCH] Initial prompt to vibe subint support Bo --- ai/prompt-io/prompts/subints_spawner.md | 34 +++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 ai/prompt-io/prompts/subints_spawner.md diff --git a/ai/prompt-io/prompts/subints_spawner.md b/ai/prompt-io/prompts/subints_spawner.md new file mode 100644 index 00000000..0673fc81 --- /dev/null +++ b/ai/prompt-io/prompts/subints_spawner.md @@ -0,0 +1,34 @@ +This is your first big boi, "from GH issue" design, plan and +implement task. + +We need to try and add sub-interpreter (aka subint) support per the +issue, + +https://github.com/goodboy/tractor/issues/379 + +Part of this work should include, + +- modularizing and thus better origing the `.spawn.*` subpkg by + breaking up various backends currently in `spawn._spawn` in to + separate submods where it makes sense. + +- add a new `._subint` backend which tries to keep as much of the + inter-process-isolation machinery in use as possible but with plans + to optimize for localhost only benefits as offered by python's + subints where possible. + + * utilizing localhost-only tpts like UDS, shm-buffers for + performant IPC between subactors but also leveraging the benefits from + the traditional OS subprocs mem/storage-domain isolation, linux + namespaces where possible and as available/permitted by whatever + is happening under the hood with how cpython implements subints. + + * default configuration should encourage state isolation as with + with subprocs, but explicit public escape hatches to enable rigorously + managed shm channels for high performance apps. + +- all tests should be (able to be) paramatrized to use the new + `subints` backend and enabled by flag in the harness using the + existing `pytest --spawn-backend ` support offered in + the `open_root_actor()` and `.testing._pytest` harness override + fixture.