Skip to content

Admit runtime diagnostics before building filename and artifact details #987

Closed

Description

@trissim

The supplied runtime-plumbing plan P4 requires collection-building diagnostics to run only after their log level is admitted. Current PatternGroupExecutionRequest.load_input_stack still constructs [Path(f).name for f in matching_files] inside an eager DEBUG f-string for every group, even with DEBUG disabled. Its immediately preceding filename-list diagnostic is already correctly guarded.

A global runtime AST audit also finds eager INFO formatting of the complete compiled artifact-input edge map in FunctionInvocationRuntime.load_artifact_inputs, and eager construction of the component-value list in GenericValidator.__init__ with DEBUG disabled.

Complete the existing logger admission boundaries: guard DEBUG-only collection construction and defer INFO edge rendering through logger arguments. Preserve enabled diagnostic contents and production correlations; add no cache, registry, runtime wrapper or logging test scaffolding. Byte-compilation and existing runtime source/manifest controls should qualify this mechanical correction. This is plan-compliance cleanup; no measured end-to-end speedup is claimed.

The broader P1–P5 implementation and retained positive/negative runtime evidence remain in #648 and plans/runtime_plumbing/IMPLEMENTATION.md; mixed-layout GPU P5 work remains explicitly deferred.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions