tractor/ai/prompt-io
Gud Boi e100d06732 Move ctx state into `ContextStatus`
Make `Context._status` the single store for outcome, cancellation
and handshake state. Migrate internal callers and existing test
assertions directly, without descriptors or duplicate fields.
Keep policy and live resources on `Context`.

Deats,
- Add shallow-frozen fault metadata in `ContextCancelReason`,
  delivered via Trio's public cancellation reason API. Preserve
  the first cancelling fault when the recorded error changes.
- Distinguish local transport/protocol faults from boxed remote
  failures; type-check self-cancel acknowledgements before reading
  remote-error metadata.
- Move `._final_result_is_set()` onto `ContextStatus` and migrate
  its five production callers plus the existing stream assertion.
- Retain the human's `._scope_tn` rename and add status-only reprs.

Keep public APIs, including the deprecated `.result()` wrapper.
New status regression tests follow in their own commit.

Prompt-IO: ai/prompt-io/opencode/20260919_context_fault_status.md

(this patch was generated in some part by `opencode`
using `gpt-6-astra` (`openai`))
2026-10-30 13:13:37 -04:00
..
claude Pin tpt prompt provenance to immutable refs 2026-08-31 12:27:23 -04:00
opencode Move ctx state into `ContextStatus` 2026-10-30 13:13:37 -04:00
prompts Add `tractor.to_actor` one-shot task API subpkg 2026-08-21 15:03:34 -04:00
20261011T053737Z_a966928d_prompt_io.md Fix built-in level names in `at_least_level()` 2026-10-16 20:31:49 -04:00
20261011T053737Z_a966928d_prompt_io.raw.md Fix built-in level names in `at_least_level()` 2026-10-16 20:31:49 -04:00
20261019T140536Z_9a0f220f_final_return_prompt_io.md Reproduce `@context` final-`Return` disconnect cascade 2026-10-19 10:51:17 -04:00
20261019T140536Z_9a0f220f_final_return_prompt_io.raw.md Reproduce `@context` final-`Return` disconnect cascade 2026-10-19 10:51:17 -04:00
20261019T145431Z_0553fcf8_ctx_return_fix_prompt_io.md Contain `@context` final-result disconnects 2026-10-21 14:23:33 -04:00
20261019T145431Z_0553fcf8_ctx_return_fix_prompt_io.raw.md Contain `@context` final-result disconnects 2026-10-21 14:23:33 -04:00
20261020T193619Z_0553fcf8_review_prompt_io.md Contain `@context` final-result disconnects 2026-10-21 14:23:33 -04:00
20261020T193619Z_0553fcf8_review_prompt_io.raw.md Contain `@context` final-result disconnects 2026-10-21 14:23:33 -04:00
20261021T145344Z_0553fcf8_task_format_prompt_io.md Mv task UID formatting into `devx.pformat` 2026-10-21 11:29:32 -04:00
20261021T145344Z_0553fcf8_task_format_prompt_io.raw.md Mv task UID formatting into `devx.pformat` 2026-10-21 11:29:32 -04:00
20261021T151133Z_0553fcf8_uid_move_prompt_io.md Mv task UID formatting into `devx.pformat` 2026-10-21 11:29:32 -04:00
20261021T151133Z_0553fcf8_uid_move_prompt_io.raw.md Mv task UID formatting into `devx.pformat` 2026-10-21 11:29:32 -04:00
20261028T193020Z_b64c89f0_cached_owner.md to_asyncio: fix `trio`-side-exit handling 2026-10-29 17:28:20 -04:00
20261028T193020Z_b64c89f0_cached_owner.raw.md to_asyncio: fix `trio`-side-exit handling 2026-10-29 17:28:20 -04:00
README.md Fix built-in level names in `at_least_level()` 2026-10-16 20:31:49 -04:00

README.md

AI Prompt I/O Log

This directory tracks prompt inputs and model outputs for AI-assisted development across harnesses.

Policy

Prompt logging follows the NLNet generative AI policy. All substantive AI contributions are logged with:

  • Original harness, and provider/model when known
  • 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.