Repository navigation
fix(tests): fake model calls in tests write to tmp_path ledger - #2966
Merged
Merged
Conversation
dan-petty
marked this pull request as ready for review
November 1, 2026 00:47
dan-petty
pushed a commit
that referenced
this pull request
Nov 1, 2026
🤖 I have created a release *beep* *boop* --- ## [0.37.0](v0.36.0...v0.37.0) (2026-11-01) ### Features * **config:** preview requests in dry run for config commands ([#2963](#2963)) ([47cdf0d](47cdf0d)) * **devcontainer:** preview requests in dry run for devcontainer commands ([#2969](#2969)) ([c30583d](c30583d)) * **roadmap:** a stop sets Blocked; a new image clears it ([#2974](#2974)) ([665e058](665e058)), closes [#2912](#2912) * **roadmap:** add devops roadmap inbox for what waits for a person ([#2970](#2970)) ([f21e459](f21e459)), closes [#2915](#2915) * **service:** shorter prime-number intervals for the roadmap rows ([#2973](#2973)) ([f414791](f414791)), closes [#2965](#2965) ### Bug Fixes * **tests:** concurrent slot leasing test synchronizes on barrier ([#2962](#2962)) ([20d72ac](20d72ac)), closes [#2841](#2841) * **tests:** fake model calls in tests write to tmp_path ledger ([#2966](#2966)) ([d422e3a](d422e3a)), closes [#2192](#2192) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a spend ledger write guard to the hermetic floor and send test fake model calls to a spend ledger under
tmp_path.tests/support/spend_write_guard.pythat fails if a test writes to a spend ledger database outsiderun_temp_root.tests/support/bootstrap.pyduring test harness setup.tests/invariants/test_hermetic_floor.pyto confirm that spend ledger writes outside the test run fail and identify the test.spend_ledgerfixture or configure spend fixtures in AI client and spend test suites so fake model calls write spend to temporary ledgers.docs/TESTING.mdto describe the spend ledger write rule.Closes #2192