archive audit attempts

This commit is contained in:
master
2026-02-19 22:00:31 +02:00
parent c2f13fe588
commit b5829dce5c
19638 changed files with 6366 additions and 7 deletions

View File

@@ -0,0 +1,102 @@
# Audit - StellaOps.Plugin.Registry
## Project
- Path: src/Plugin/StellaOps.Plugin.Registry/StellaOps.Plugin.Registry.csproj
- Module: Plugin
- Kind: Library
- Audit date (UTC): 2026-01-30
- Files scanned: 16
- Files with issues: 16
- File-level report: docs/implplan/audits/csproj-standards/file-audit.csv
## Coding Standards Findings
- Status: FAIL
- Nullable: enable
- TreatWarningsAsErrors: explicit true
- Deterministic: inherited true
- 100-line rule violations: 6
- Namespace violations: 16
- Using directive violations: 0
- Naming violations (interfaces/fields/const/async): 0
- Service locator usage (BuildServiceProvider/GetService): 0
- Assembly.LoadFrom usage: 0
### Details
- 100-line files:
- src/Plugin/StellaOps.Plugin.Registry/InMemoryPluginRegistry.cs (426 lines)
- src/Plugin/StellaOps.Plugin.Registry/IPluginRegistry.cs (144 lines)
- src/Plugin/StellaOps.Plugin.Registry/PluginRegistryMigrationRunner.cs (159 lines)
- src/Plugin/StellaOps.Plugin.Registry/PostgresPluginRegistry.cs (735 lines)
- src/Plugin/StellaOps.Plugin.Registry/Extensions/ServiceCollectionExtensions.cs (106 lines)
- src/Plugin/StellaOps.Plugin.Registry/Models/PluginRecord.cs (123 lines)
- Namespace issues:
- src/Plugin/StellaOps.Plugin.Registry/InMemoryPluginRegistry.cs: missing namespace
- src/Plugin/StellaOps.Plugin.Registry/IPluginRegistry.cs: missing namespace
- src/Plugin/StellaOps.Plugin.Registry/PluginRegistryMigrationRunner.cs: missing namespace
- src/Plugin/StellaOps.Plugin.Registry/PluginRegistryOptions.cs: missing namespace
- src/Plugin/StellaOps.Plugin.Registry/PostgresPluginRegistry.cs: missing namespace
- src/Plugin/StellaOps.Plugin.Registry/Extensions/ServiceCollectionExtensions.cs: missing namespace
- src/Plugin/StellaOps.Plugin.Registry/Models/PluginCapabilityRecord.cs: missing namespace
- src/Plugin/StellaOps.Plugin.Registry/Models/PluginHealthRecord.cs: missing namespace
- src/Plugin/StellaOps.Plugin.Registry/Models/PluginInstanceRecord.cs: missing namespace
- src/Plugin/StellaOps.Plugin.Registry/Models/PluginRecord.cs: missing namespace
- src/Plugin/StellaOps.Plugin.Registry/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs: missing namespace
- src/Plugin/StellaOps.Plugin.Registry/obj/Debug/net10.0/StellaOps.Plugin.Registry.AssemblyInfo.cs: missing namespace
- src/Plugin/StellaOps.Plugin.Registry/obj/Debug/net10.0/StellaOps.Plugin.Registry.GlobalUsings.g.cs: missing namespace
- src/Plugin/StellaOps.Plugin.Registry/obj/Release/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs: missing namespace
- src/Plugin/StellaOps.Plugin.Registry/obj/Release/net10.0/StellaOps.Plugin.Registry.AssemblyInfo.cs: missing namespace
- src/Plugin/StellaOps.Plugin.Registry/obj/Release/net10.0/StellaOps.Plugin.Registry.GlobalUsings.g.cs: missing namespace
- Using directive issues:
- none
- Naming issues:
- none
- Async issues:
- none
- Service locator matches:
- none
- Assembly.LoadFrom matches:
- none
### Fix Guidance
- Normalize namespaces to file-scoped StellaOps.<Area>.
- Split files over 100 lines into smaller types or partials.
## File-Level Findings
- Status: FAIL
- Files scanned: 16
- Files with issues: 16
- See docs/implplan/audits/csproj-standards/file-audit.csv for full per-file status.
| File | Issues | Fix guidance |
| --- | --- | --- |
| src/Plugin/StellaOps.Plugin.Registry/InMemoryPluginRegistry.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| src/Plugin/StellaOps.Plugin.Registry/IPluginRegistry.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| src/Plugin/StellaOps.Plugin.Registry/PluginRegistryMigrationRunner.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| src/Plugin/StellaOps.Plugin.Registry/PluginRegistryOptions.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| src/Plugin/StellaOps.Plugin.Registry/PostgresPluginRegistry.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| src/Plugin/StellaOps.Plugin.Registry/Extensions/ServiceCollectionExtensions.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| src/Plugin/StellaOps.Plugin.Registry/Models/PluginCapabilityRecord.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| src/Plugin/StellaOps.Plugin.Registry/Models/PluginHealthRecord.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| src/Plugin/StellaOps.Plugin.Registry/Models/PluginInstanceRecord.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| src/Plugin/StellaOps.Plugin.Registry/Models/PluginRecord.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| src/Plugin/StellaOps.Plugin.Registry/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| src/Plugin/StellaOps.Plugin.Registry/obj/Debug/net10.0/StellaOps.Plugin.Registry.AssemblyInfo.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| src/Plugin/StellaOps.Plugin.Registry/obj/Debug/net10.0/StellaOps.Plugin.Registry.GlobalUsings.g.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| src/Plugin/StellaOps.Plugin.Registry/obj/Release/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| src/Plugin/StellaOps.Plugin.Registry/obj/Release/net10.0/StellaOps.Plugin.Registry.AssemblyInfo.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| src/Plugin/StellaOps.Plugin.Registry/obj/Release/net10.0/StellaOps.Plugin.Registry.GlobalUsings.g.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
## Testing Fullness Findings
- Status: PASS
- Expected layers (heuristic): Unit
- Detected test projects: src/Plugin/__Tests/StellaOps.Plugin.Registry.Tests/StellaOps.Plugin.Registry.Tests.csproj [Unit]
- Missing layers: none
### Manual checks required
- Observability contract tests for WebService/Worker.
- Intent tags for regulatory modules (Policy, Authority, Signer, Attestor, EvidenceLocker).
- Offline execution (tests must run without network access).
- Coverage matrix alignment (docs/technical/testing/TEST_COVERAGE_MATRIX.md).
### Fix Guidance
- None.

View File

@@ -0,0 +1,85 @@
# Audit - StellaOps.Plugin.Registry
## Project
- Path: src/Plugin/StellaOps.Plugin.Registry/StellaOps.Plugin.Registry.csproj
- Module: Plugin
- Kind: Plugin
- Audit date (UTC): 2026-01-31
- Files scanned: 10
- Files with issues: 6
- File-level report: docs/implplan/audits/csproj-standards/file-audit.csv
## Coding Standards Findings
- Status: FAIL
- Nullable: enable
- TreatWarningsAsErrors: explicit true
- Deterministic: inherited true
- 100-line rule violations: 6
- Namespace violations: 0
- Using directive violations: 1
- Naming violations (interfaces/fields/const/async): 6
- Service locator usage (BuildServiceProvider/GetService): 2
- Assembly.LoadFrom usage: 0
### Details
- 100-line files:
- src/Plugin/StellaOps.Plugin.Registry/InMemoryPluginRegistry.cs (427 lines)
- src/Plugin/StellaOps.Plugin.Registry/IPluginRegistry.cs (145 lines)
- src/Plugin/StellaOps.Plugin.Registry/PluginRegistryMigrationRunner.cs (160 lines)
- src/Plugin/StellaOps.Plugin.Registry/PostgresPluginRegistry.cs (736 lines)
- src/Plugin/StellaOps.Plugin.Registry/Extensions/ServiceCollectionExtensions.cs (106 lines)
- src/Plugin/StellaOps.Plugin.Registry/Models/PluginRecord.cs (124 lines)
- Namespace issues:
- none
- Using directive issues:
- src/Plugin/StellaOps.Plugin.Registry/PluginRegistryMigrationRunner.cs: using directives inside namespace
- Naming issues:
- src/Plugin/StellaOps.Plugin.Registry/PostgresPluginRegistry.cs: private field naming
- Async issues:
- src/Plugin/StellaOps.Plugin.Registry/InMemoryPluginRegistry.cs: blocking async usage
- src/Plugin/StellaOps.Plugin.Registry/PluginRegistryMigrationRunner.cs: async method naming
- src/Plugin/StellaOps.Plugin.Registry/PluginRegistryMigrationRunner.cs: missing ConfigureAwait(false)
- src/Plugin/StellaOps.Plugin.Registry/PostgresPluginRegistry.cs: async method naming
- src/Plugin/StellaOps.Plugin.Registry/PostgresPluginRegistry.cs: missing ConfigureAwait(false)
- Service locator matches:
- src/Plugin/StellaOps.Plugin.Registry/Extensions/ServiceCollectionExtensions.cs:32 var options = sp.GetRequiredService<IOptions<PluginRegistryOptions>>().Value;
- src/Plugin/StellaOps.Plugin.Registry/Extensions/ServiceCollectionExtensions.cs:64 var options = sp.GetRequiredService<IOptions<PluginRegistryOptions>>().Value;
- Assembly.LoadFrom matches:
- none
### Fix Guidance
- Align interface/field/const naming to standards.
- Move and sort using directives (outside namespace).
- Rename async methods and avoid blocking async calls.
- Replace service locator usage with constructor injection.
- Split files over 100 lines into smaller types or partials.
## File-Level Findings
- Status: FAIL
- Files scanned: 10
- Files with issues: 6
- See docs/implplan/audits/csproj-standards/file-audit.csv for full per-file status.
| File | Issues | Fix guidance |
| --- | --- | --- |
| src/Plugin/StellaOps.Plugin.Registry/InMemoryPluginRegistry.cs | BlockingAsync; FileLength>100 | Replace .Result/.Wait/GetAwaiter().GetResult() with await.; Split file to stay <= 100 lines. |
| src/Plugin/StellaOps.Plugin.Registry/IPluginRegistry.cs | FileLength>100 | Split file to stay <= 100 lines. |
| src/Plugin/StellaOps.Plugin.Registry/PluginRegistryMigrationRunner.cs | AsyncNaming; ConfigureAwaitMissing; FileLength>100; UsingInsideNamespace | Add ConfigureAwait(false) to awaited calls in library-like code.; Move using directives outside namespace.; Rename async methods to end with Async.; Split file to stay <= 100 lines. |
| src/Plugin/StellaOps.Plugin.Registry/PostgresPluginRegistry.cs | AsyncNaming; ConfigureAwaitMissing; FileLength>100; PrivateFieldNaming | Add ConfigureAwait(false) to awaited calls in library-like code.; Rename async methods to end with Async.; Rename private fields to _camelCase.; Split file to stay <= 100 lines. |
| src/Plugin/StellaOps.Plugin.Registry/Extensions/ServiceCollectionExtensions.cs | FileLength>100; ServiceLocator | Remove service locator usage; use constructor injection.; Split file to stay <= 100 lines. |
| src/Plugin/StellaOps.Plugin.Registry/Models/PluginRecord.cs | FileLength>100 | Split file to stay <= 100 lines. |
## Testing Fullness Findings
- Status: PASS
- Expected layers (heuristic): Unit
- Detected test projects: src/Plugin/__Tests/StellaOps.Plugin.Registry.Tests/StellaOps.Plugin.Registry.Tests.csproj [Unit]
- Missing layers: none
### Manual checks required
- Observability contract tests for WebService/Worker.
- Intent tags for regulatory modules (Policy, Authority, Signer, Attestor, EvidenceLocker).
- Offline execution (tests must run without network access).
- Coverage matrix alignment (docs/technical/testing/TEST_COVERAGE_MATRIX.md).
### Fix Guidance
- None.