Skip to content

The agent that grows with you

docs(tui): say why not_found stays a pre-commit refusal

unsupportedpastels686dc24b2562
diff --git a/tui_gateway/owner_forward.py b/tui_gateway/owner_forward.py
index d864b289b10..dacdbf0081c 100644
--- a/tui_gateway/owner_forward.py
+++ b/tui_gateway/owner_forward.py
@@ -44,8 +44,10 @@ RELAY_FINALIZE_POLL_S = 1.0
_RELAYED = frozenset({"message.start", "message.complete"})
#: The owner's ``prompt.submit`` refusals raised before its durable write (dispatcher, ``authorize``,
#: ``submission``, the admission gate, and the ledger's own checks inside the rolled-back write): only
-#: these prove nothing was queued. ``storage_unavailable`` and an internal error can also come from the
+#: these prove nothing will run. ``storage_unavailable`` and an internal error can also come from the
#: pending publication AFTER the commit (``SessionAuthority._admitted``), so they are never listed.
+#: ``not_found`` can follow the commit too, when the session is deleted meanwhile (``_handle``), but a
+#: session row is deleted only with its admissions (``ON DELETE RESTRICT``), so that one never runs.
_REFUSED_BEFORE_COMMIT = frozenset({
"invalid_params", "runtime_draining", "runtime_retired", "profile_mismatch", "permission_denied",
"not_found", "session_superseded", "stale_epoch", "admission_conflict", "queue_full"})