tractor/ai/prompt-io/claude
Gud Boi 959fc48806 Impl min-viable `subint` spawn backend (B.2)
Replace the B.1 scaffold stub w/ a working spawn
flow driving PEP 734 sub-interpreters on dedicated
OS threads.

Deats,
- use private `_interpreters` C mod (not the public
  `concurrent.interpreters` API) to get `'legacy'`
  subint config — avoids PEP 684 C-ext compat
  issues w/ `msgspec` and other deps missing the
  `Py_mod_multiple_interpreters` slot
- bootstrap subint via code-string calling new
  `_actor_child_main()` from `_child.py` (shared
  entry for both CLI and subint backends)
- drive subint lifetime on an OS thread using
  `trio.to_thread.run_sync(_interpreters.exec, ..)`
- full supervision lifecycle mirrors `trio_proc`:
  `ipc_server.wait_for_peer()` → send `SpawnSpec`
  → yield `Portal` via `task_status.started()`
- graceful shutdown awaits the subint's inner
  `trio.run()` completing; cancel path sends
  `portal.cancel_actor()` then waits for thread
  join before `_interpreters.destroy()`

Also,
- extract `_actor_child_main()` from `_child.py`
  `__main__` block as callable entry shape bc the
  subint needs it for code-string bootstrap
- add `"subint"` to the `_runtime.py` spawn-method
  check so child accepts `SpawnSpec` over IPC

Prompt-IO: ai/prompt-io/claude/20260417T124437Z_5cd6df5_prompt_io.md

(this patch was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
2026-04-20 16:37:21 -04:00
..
20260406T172848Z_02b2ef1_prompt_io.md Add per-`ctx_key` isolation tests for `maybe_open_context()` 2026-04-06 14:37:47 -04:00
20260406T193125Z_85f9c5d_prompt_io.md Add xfail test for `_Cache.run_ctx` teardown race 2026-04-06 18:17:04 -04:00
20260406T222648Z_f086222_prompt_io.md Add prompt-io log for `run_ctx` teardown analysis 2026-04-09 14:42:42 -04:00
20260406T222648Z_f086222_prompt_io.raw.md Condense `.raw.md` prompt-IO logs, add `diff_cmd` refs 2026-04-16 17:44:14 -04:00
20260413T192116Z_f851f28_prompt_io.md Add `test_tpt_bind_addrs.py` + fix type-mixing bug 2026-04-14 19:54:14 -04:00
20260413T205048Z_269d939c_prompt_io.md Add `parse_endpoints()` to `_multiaddr` 2026-04-14 19:54:14 -04:00
20260413T205048Z_269d939c_prompt_io.raw.md Condense `.raw.md` prompt-IO logs, add `diff_cmd` refs 2026-04-16 17:44:14 -04:00
20260414T163300Z_befedc49_prompt_io.md Add `prefer_addr()` transport selection to `_api` 2026-04-14 19:54:14 -04:00
20260414T163300Z_befedc49_prompt_io.raw.md Condense `.raw.md` prompt-IO logs, add `diff_cmd` refs 2026-04-16 17:44:14 -04:00
20260417T034918Z_9703210_prompt_io.md Add prompt-IO log for subint spawner design kickoff 2026-04-17 16:48:22 -04:00
20260417T034918Z_9703210_prompt_io.raw.md Add prompt-IO log for subint spawner design kickoff 2026-04-17 16:48:22 -04:00
20260417T035800Z_61a73ba_prompt_io.md Add prompt-io files for "phase-A", fix typos caught by copilot 2026-04-17 18:26:41 -04:00
20260417T035800Z_61a73ba_prompt_io.raw.md Add prompt-io files for "phase-A", fix typos caught by copilot 2026-04-17 18:26:41 -04:00
20260417T124437Z_5cd6df5_prompt_io.md Impl min-viable `subint` spawn backend (B.2) 2026-04-20 16:37:21 -04:00
20260417T124437Z_5cd6df5_prompt_io.raw.md Impl min-viable `subint` spawn backend (B.2) 2026-04-20 16:37:21 -04:00
README.md Add per-`ctx_key` isolation tests for `maybe_open_context()` 2026-04-06 14:37:47 -04:00

README.md

AI Prompt I/O Log — claude

This directory tracks prompt inputs and model outputs for AI-assisted development using claude (Claude Code).

Policy

Prompt logging follows the NLNet generative AI policy. All substantive AI contributions are logged with: - Model name and version - Timestamps - The prompts that produced the output - Unedited model output (.raw.md files)

Usage

Entries are created by the /prompt-io skill or automatically via /commit-msg integration.

Human contributors remain accountable for all code decisions. AI-generated content is never presented as human-authored work.