test: make test_api_baselines deterministic at the source
Running the suite was leaking wall-clock time, repo sol/ files, and sandbox
journal state into API responses, so the baselines drifted away from the
Flask test-client oracle. This fixes the determinism holes in the test
harness and baseline update path.
- reset the prompt sol-vars cache and patch think.prompts.SOL_DIR to the
isolated journal sol/ so repo sol/ cannot leak into preview responses
- copy only git-tracked fixture journal content into an isolated temp
journal and use an absolute _SOLSTONE_JOURNAL_OVERRIDE
- pin wall-clock time to 2026-04-15 with freezegun for both pytest and
baseline regeneration, covering date.today()/datetime.now() paths and
genai_prices timestamp lookups
- drive make update-api-baselines through the Flask test client with the
same isolation harness instead of the live sandbox so regenerated
baselines match pytest
Also regenerates the affected API baselines and dedupes the shared conftest
helpers.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>