Repository navigation
docs+test: correctness pass — sync guides with implementation (#363) - #372
Merged
Merged
Conversation
…ocumented TestServer API real (#363) The public docs had drifted from the implementation (found by an external review). Rather than degrade the docs, make the documented ergonomic API real: - Add TestServer accessors Store()/StateManager()/TimeController()/Registry() and enable the in-memory event store in StartTestServer, so the documented cost-summary and recording/replay examples work out of the box. - Fix the Getting Started + Testing guides: correct the TestServer API description (was 'two fields and one method'), point cost/replay at the server's own store instead of a detached NewEventStore (the bug that gave copy-paste users an empty cost summary), and use the account ID the built-in test credentials map to. - Replace pinned stale v0.68.0 version strings with neutral placeholders. - Reconcile the 63-plugins-vs-37-services contradiction with an honest holding note pending registry-generated reference (#364); the live count is /ready. - Fix duplicated [profile substrate] block and a README typo; add the 'AI generation is the motivating use case, not a prerequisite' clarification. New tests guard the accessors and the documented cost path. Verified the Getting Started S3 snippet compiles and passes verbatim against the module. Closes #363.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
scttfrdmn
added a commit
that referenced
this pull request
Jul 26, 2026
Local Claude Code permission config was accidentally swept into #372 via git add -A. It is machine-local editor config (and contains AWS allowlists for an unrelated project), not part of substrate. Remove from tracking and add .claude/ to .gitignore.
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.
First PR of the v0.76.0 documentation-reliability milestone, addressing the correctness tier from the external review.
The fix, in one line
The docs described an ergonomic
TestServerAPI (ts.Store(),ts.Registry(), …) and cost/replay examples that never compiled against the currentpackage emulator. Rather than degrade the docs to match a thinner API, I made the documented API real.Code
TestServeraccessors:Store() *EventStore,StateManager(),TimeController(),Registry().StartTestServernow enables the in-memory event store, sots.Store().GetCostSummary(...)and recording/replay work out of the box.Docs
TestServerAPI description (was "two fields and one method").NewEventStoredisconnected from the server, so a copy-paste user got an empty cost summary and would conclude cost tracking was broken. Now they usets.Store(). Also switched the account ID to123456789012(what the built-in test creds map to).v0.68.0strings with neutral placeholders./ready.[profile substrate]block and the README "has needs" typo; added the "AI generation is the motivating use case, not a prerequisite" clarification.Verification
Extracted the Getting Started S3 test into a throwaway module with a
replacedirective — it compiles and passes verbatim. Cost + replay snippets compile too. Full race suite + lint clean.Closes #363. Part of the v0.76.0 milestone (remaining: #364 generate reference, #365 docs-CI, #366 Python CI, #367 examples, #368 contributor guide, #369 security doc, #370 restructure, #371 package-growth discussion).