verae-mcp-timestamping-server/recommended-changes/2026-09-21-event-loop-and-ledger-perms/How-to-implement-the-changes.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

436 B

How to implement the changes:

Diffs are against main @ 1bbd0a6 with a dirty tree.

  1. src/verae_mcp_timestamping_server/global_client.py — await asyncio.to_thread(...) around submit and verify_certificate.
  2. src/verae_mcp_timestamping_server/ledger.py — os.chmod(self.path, 0o600) after _save.
  3. .gitignore — add .coverage, htmlcov/, .mypy_cache/, *.log, .idea/, .vscode/.
  4. uv run pytest.