migrate-static-to-wrapper

Pass

Audited by Gen Agent Trust Hub on Sep 15, 2026

Risk Level: SAFE
Full Analysis
  • Code Refactoring Automation Guidelines: The instruction file defines a structured workflow for performing mechanical, codemod-style replacements of C# static dependency calls (e.g., DateTime.UtcNow, File.ReadAllText) with injected wrapper interfaces or platform abstractions like TimeProvider.
  • Standard Development Operations: Includes guidance on using standard C# dependencies, project scoping, constructor injection, and fallback mechanics for file updates inside the workspace.
  • Execution Validation: Outlines steps to verify work using routine local commands such as dotnet build and dotnet test to confirm compilation correctness.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 15, 2026, 09:18 AM
Security Audit — agent-trust-hub — migrate-static-to-wrapper