- test_cmd_run_linux_hands_off_to_treg_run_user let the isolated
hand-off chdir to /tmp with exec stubbed out; record the cwd with
monkeypatch.chdir so it is restored.
- test_call_response_limits started uvicorn with its default log
config, leaving uvicorn.error at CRITICAL and hiding the fault the
analytics uvicorn test expects; pass log_config=None.
- scripts/dump_surface.py rewrote TREG_DATABASE_URL when imported by
the surface snapshot test; skip its env setup once treg is loaded.
- Import verified_signup from conftest, not tests.conftest, which ran
conftest a second time.
- A teardown hook fails any test that leaves the working directory
changed, so the next leak points at its cause.
FastAPI computes one unique_id per route from the first method its set
yields, so the multi-method /call relay published seven operations under
one hash-order-dependent id and warned on every schema build. Build the
schema from per-method views of multi-method routes (and GET-only views
of HEAD-widened routes) without touching the live routing table, drop
the snapshot script's workaround, and fail tests on the warning.
The discovery pass (PR #234) put an Agents link in every nav and footer with
nowhere to point it: it went to /agents/claude-code while the bare /agents
URL 404ed. One card per client off agent_pages.AGENTS, breadcrumbs on the
agent pages now carry the hub as their parent, the sitemap lists it at 0.8
beside the other two hubs, and the nav, landing footer and catalog prerender
all point at it. Hosted-only and adtrack'd like everything else off _page().
Also: scripts/dump_surface.py now sets TREG_CLAUDE_CONNECTOR_ENABLED like
tests/conftest.py does — without it a regeneration silently drops the
connector mounts from the snapshots.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MZEo61YXvfwUC84WmTJbaU
Sixteen 600 KB per-worker files rewritten on every run kept editors'
file watchers re-indexing the working tree. The default now lands in
$TMPDIR/treg-tests/; an explicit TREG_TEST_DB_URL still wins untouched.