Skip to content

Session proof warnings name the nonce cleanup statement - #952

Merged
zlareb1 merged 1 commit into
mainfrom
diag/session-nonce-clear-stages
Nov 19, 2026
Merged

zlareb1 merged 1 commit into
mainfrom
diag/session-nonce-clear-stages

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Related: #892

Changelog category

  • Improvement

Changelog entry

Session protection warnings distinguish releasing an admission nonce from verifying its removal.

Why

Nonce cleanup runs two database statements under one diagnostic stage. When its deadline expires, the warning cannot identify which statement was awaiting completion. Give each statement a fixed stage label.

Scope and risk

The change inlines a single-use private helper and labels the release and verification awaits separately. SQL, statement order, backend attestations, ownership checks, admission decisions, deadlines and refused-attempt cleanup retain their existing behavior. Warnings still exclude exception bodies, query text and request data. The underlying timeout remains unexplained.

Compatibility, rollout and rollback

  • Wire fields and defaults: none.
  • Operator steps, migrations and generated files: none.
  • Rollback restores the combined diagnostic label; there is no stored-data change.

Tests

  • Both new deterministic cases failed against the combined stage label before the change.
  • .venv/bin/python -m pytest tests/unit/test_mirror_latch.py -q -n 0: 39 passed.
  • Ruff lint and format checks passed for both changed files; git diff --check passed.
  • An AST comparison confirms identical admission operations after inlining the helper and excluding progress markers; module assignment ASTs, including SQL constants, are identical.
  • All 50 hosted CI checks and all four workflows passed. No live reproduction or timeout fix is claimed.

AI assistance in the code

  • AI-generated: Codex wrote the change. Deterministic regressions and the AST comparison check the refusal, cleanup, timing and redaction behavior.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Required CI checks pass before merge.
  • Generated files, schema and SDK changes are not applicable.
  • No migration or plugin version change is needed.
  • Frontend and documentation changes are not applicable.
  • This description names wire and operator changes.
  • Repository text contains no private deployment details.
  • Commits are signed off.

@zlareb1
zlareb1 merged commit d6df8de into main Nov 19, 2026
50 checks passed
@zlareb1 zlareb1 mentioned this pull request Nov 19, 2026
6 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant