fix: framework-wide hardening pass (v26.05.06)#17
Merged
Conversation
A deep audit surfaced a class of silent wiring gaps and correctness bugs — features that existed but were never connected to the runtime path, so the suite passed while behaviour was broken. This fixes them. 3146 tests pass; ruff / ruff-format / mypy --strict all green. See CHANGELOG.md for the full list. Admin dashboard - traces are recorded (TraceCollectorFilter now joins the filter chain) - SSE streams instead of buffering (fixed all Server-Sent Events framework-wide) - server info resolves lazily (was "unknown") Dependency injection & AOP - same-type @bean methods no longer collapse; list[T] returns every bean - AOP woven regardless of registration order (two-pass post-processing) - weaving/scheduling/wiring scans no longer trigger @Property getters at startup - RequestContextFilter wired by default (REQUEST scope + @pre/@post_authorize) Web - RequestLoggingFilter no longer crashes without structlog (pyfly.logging.get_logger) - FastAPI adapter: correct OpenAPI generation + @controller_advice handlers - /actuator health rescan now runs; /actuator/prometheus returns text format Transactional engine - workflow @compensation_step executes on failure (reverse-order rollback) - REST controllers (orchestration/dlq/workflow) are mounted - saga compensator records outcomes; recovery TypeError fixed - workflow @wait_for_all/@wait_for_any timeouts honoured; child correlation id CQRS / EDA / messaging / scheduling - query cache + domain-event publishing wired - EDA circuit breaker no longer stuck OPEN - Kafka/RabbitMQ subscribe-after-start; scheduler fixed_delay survives errors Data / config / eventsourcing / notifications / callbacks - derived-query stub detection; mongo LIKE wildcards - Config.bind() placeholders + nested dataclasses; ConfigServer save/fetch - projection cursor no longer skips failed events; SMTP BCC; HMAC canonical JSON Docs: CHANGELOG v26.05.06, new docs/modules/logging.md + config-server.md. Version synced (pyfly.__version__ was stale). 🤖 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.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
A deep audit of the whole framework surfaced a class of silent wiring gaps and correctness bugs — features that existed but were never connected to the runtime path, so the test suite passed while the behaviour was broken. This PR fixes ~39 verified high/critical findings (each with regression/integration tests) and bumps the version to v26.05.06.
ruff·ruff format·mypy --strictall greenHighlights
Admin dashboard — traces now recorded (collector joins the filter chain), SSE actually streams (the filter chain was buffering entire responses → broke all SSE framework-wide), server info resolves.
DI & AOP — same-type
@beancollapse fixed (list[T]returns every bean); AOP woven regardless of registration order; a side-effecting@propertyno longer aborts startup;RequestContextFilterwired by default.Web —
structlog-absent request crash; FastAPI OpenAPI +@controller_advice;/actuatorhealth rescan;/actuator/prometheustext format.Transactional — workflow
@compensation_stepexecutes on failure; REST controllers mounted; saga compensator outcomes + recoveryTypeError; wait timeouts; child correlation id.CQRS / EDA / messaging / scheduling — query cache + domain-event publishing wired; circuit breaker no longer stuck OPEN; Kafka/RabbitMQ subscribe-after-start; scheduler
fixed_delaysurvives errors.Data / config / eventsourcing / notifications / callbacks — derived-query stub detection; mongo
LIKEwildcards;Config.bind()placeholders + nested dataclasses; ConfigServer save/fetch; projection cursor data-loss; SMTP BCC; canonical-JSON HMAC.Docs — full
CHANGELOG.mdv26.05.06 entry; newdocs/modules/logging.md+config-server.md.See
CHANGELOG.mdfor the complete itemized list.🤖 Generated with Claude Code