verae-mcp-timestamping-server/recommended-changes/2026-09-21-event-loop-and-ledger-perms/What-to-Change-To.md
George Lambert 60bcefbca2 fix: keep global HTTP off the event loop
WhatToChange: recommended-changes/2026-09-21-event-loop-and-ledger-perms/
  What-to-Change.md
  What-to-Change-To.md
  How-to-implement-the-changes.md

What was actually done:
- Global HTTP stamp and verify run via asyncio.to_thread.
- File ledger saves chmod 0600.
- .gitignore covers coverage, mypy, logs, and editor directories.

What was not done:
- (none)
2026-09-21 14:11:29 -04:00

601 B

What to Change To:

Component Target behavior Acceptance criteria Constraints
Global HTTP calls submit and verify_certificate run in a worker thread uv run pytest still passes, including test_global_client.py Same JSON bodies and receipt fields
Local receipt file Mode 0600 after every save New file is not group- or world-readable Do not change the JSON shape
.gitignore Ignore coverage, mypy, logs, IDE dirs git status does not list those artifacts Keep debug-trace/ tracked; those HTML traces are the stamp record