Repository navigation
Conversation
phelma
force-pushed
the
docs-guides
branch
2 times, most recently
from
November 4, 2026 16:30
e8b7ba6 to
b652e9f
Compare
The reference generator skipped utils because it exported nothing, which left Clock and SystemClock unlinked in public signatures.
Covers streams and categories, concurrency, the projection store and queries, asynchronous processing, services and error handling, PostgreSQL, serialisation, testing, logging and storage adapters, plus a concepts page on the distributed event broker.
Covers keeping the schema in step with the library, choosing the serialisation guarantee, keeping subscriber state small, keeping slow writers apart, diagnosing slow writes and common pitfalls, and links to it from the PostgreSQL, concurrency and event processing guides.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
3 tasks
Contributor
Author
|
Closed in favour of #148, which combines the whole docs stack into one PR. |
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.
The docs site only covered writing events and building a projector. Everything else (Postgres setup, write conditions, the projection store and queries, the event broker, services) existed only in the generated API reference. Postgres users also had no documented way to create the schema.
This adds a how-to guide for each part of the library, plus a concepts page, and links them from the sidebar and the home page.
processing/NOTES.md.sql/files as they are. They live in the repo, aren't in the package, and you apply them with your own migration tooling. Nothing about how they're shipped changes.logicblocks.event.utilsnow exports the clocks through__all__. The reference generator then produces autilspage, soClockandSystemClockin public signatures become links.Every code example was run, against the in-memory adapters and against a scratch Postgres 16 database. For the production guide, that included reproducing the slow generic plan without
events_category_stream_sequence_number_indexand checking it goes away once the index is built.mise run docs:buildpasses, including link validation. Lint, format, type checks and unit tests pass.Library issues found while writing
None of these are fixed here. Where they affect users, the guides document the current behaviour or add a caution.
PostgresLockManager:lock_timeoutusestimeout.microseconds, so whole seconds are dropped.timedelta(seconds=5)becomes 0, which waits forever.ConnectionSettings: the connection string doesn't URL-encode the user or password, so passwords containing@,/or%break.RetryErrorHandlerretries with no wait. A persistent failure becomes a tight loop that starves the event loop.state-changedevents and never goes idle.UnmetWriteConditionError.subscriptions.node_id: this records the leader's node, not the subscriber's.InMemoryEventSubscriberStateStore.purge: it mutates the list while iterating, so it skips every other stale subscriber.ServiceManager:stop()twice raisesEvent loop is closed. A thread-isolated service raisingSystemExithangs shutdown.ExitErrorHandlerexits on cancellation.REGEX_MATCHESanchoringCONTAINSsemanticsEQUAL Noneon missing nested keysPathsstructlog.stdlib.BoundLoggermakesEventStream.publishandProjectionStore.saveraiseAttributeErroronis_enabled_for.NewEventBuilderandStoredEventBuildertreatNoneas "not given", so you can't build an event withNonemetadata.EventCategory.publishdoesn't log.retry_on_error(3)can be instantiated directly and then fails at runtime.distribution_intervaldefault is 30s in the class but 60s in its settings.Created with Opus 5.5 (including subagents) in Claude Code.