Skip to content

Defer runtime diagnostic details until their log level is admitted - #988

Merged
trissim merged 1 commit into
mainfrom
fix/lazy-runtime-diagnostics-20261006
Oct 6, 2026
Merged

trissim merged 1 commit into
mainfrom
fix/lazy-runtime-diagnostics-20261006

Conversation

@trissim

@trissim trissim commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Runtime diagnostics still built a filename list and rendered compiled artifact-edge details before the logger admitted their level. This violated the supplied runtime-plumbing plan P4 despite the earlier owner consolidation in #648.

Guard the two DEBUG-only collection constructions on their existing loggers and pass artifact details as lazy INFO arguments. Enabled message contents and production source/manifest behavior stay the same. No new logging helper, cache or tests are added.

Validation: byte-compilation of both changed modules; three existing source discovery, producer-manifest and active source-binding invocation controls pass. Global AST audit found no other expensive unguarded DEBUG collections in the production runtime. This mechanical cleanup has no measured end-to-end speedup claim.

Closes #987

@trissim
trissim marked this pull request as ready for review October 6, 2026 04:23
Copilot AI balanced review requested due to automatic review settings October 6, 2026 04:23
@trissim
trissim merged commit c81d6fa into main Oct 6, 2026
0 of 37 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admit runtime diagnostics before building filename and artifact details

2 participants