feat(decisioning): add full stack registry factory#765
Open
sangilish wants to merge 1 commit into
Open
Conversation
Author
|
This is ready for review now. CI is green, and I kept the change scoped to #697: the documented Caching(RateLimited(Auditing(pg))) factory with mutation invalidation and audit/rate-limit coverage. |
Contributor
|
Thanks for the heads-up — noted. The PR is queued for human review; a maintainer will pick it up from here. Triaged by Claude Code. Session: https://claude.ai/code/${CLAUDE_CODE_REMOTE_SESSION_ID} Generated by Claude Code |
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
Refs #697.
This adds
PgBuyerAgentRegistry.with_full_stack()as the one-call factory for the documented production wrapper order:Caching(RateLimited(Auditing(pg))).What changed
with_full_stack()toPgBuyerAgentRegistry.CachingBuyerAgentRegistry.audit_sinkandsink_timeout_secondsthrough all three layers.time_sourcebetween cache and rate limiter for deterministic tests.Testing
uv run ruff check src/adcp/decisioning/pg/buyer_agent_registry.py tests/conformance/decisioning/test_pg_buyer_agent_registry.pyuv run mypy src/adcp/decisioning/pg/buyer_agent_registry.pyADCP_PG_TEST_URL=postgresql://postgres:[email protected]:55432/postgres uv run python -m pytest tests/conformance/decisioning/test_pg_buyer_agent_registry.py -quv run python -m pytest tests/test_buyer_agent_registry_cache.py -q