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,115 @@
# Audit - StellaOps.Infrastructure.Postgres
## Project
- Path: ../src/__Libraries/StellaOps.Infrastructure.Postgres/StellaOps.Infrastructure.Postgres.csproj
- Module: ..
- Kind: Library
- Audit date (UTC): 2026-01-30
- Files scanned: 20
- Files with issues: 20
- 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: 10
- Namespace violations: 20
- 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/__Libraries/StellaOps.Infrastructure.Postgres/Connections/DataSourceBase.cs (255 lines)
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/IMigrationRunner.cs (182 lines)
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/MigrationDependency.cs (275 lines)
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/MigrationRunner.cs (552 lines)
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/MigrationServiceExtensions.cs (384 lines)
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/MigrationTelemetry.cs (219 lines)
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/MigrationValidator.cs (242 lines)
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/StartupMigrationHost.cs (480 lines)
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Repositories/RepositoryBase.cs (319 lines)
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Testing/PostgresFixture.cs (282 lines)
- Namespace issues:
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/ServiceCollectionExtensions.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Connections/DataSourceBase.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Exceptions/PostgresExceptionHelper.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/IMigrationRunner.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/MigrationCategory.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/MigrationDependency.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/MigrationRunner.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/MigrationServiceExtensions.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/MigrationTelemetry.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/MigrationValidator.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/StartupMigrationHost.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/obj/Debug/net10.0/StellaOps.Infrastructure.Postgres.AssemblyInfo.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/obj/Debug/net10.0/StellaOps.Infrastructure.Postgres.GlobalUsings.g.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/obj/Release/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/obj/Release/net10.0/StellaOps.Infrastructure.Postgres.AssemblyInfo.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/obj/Release/net10.0/StellaOps.Infrastructure.Postgres.GlobalUsings.g.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Options/PostgresOptions.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Repositories/RepositoryBase.cs: missing namespace
- ../src/__Libraries/StellaOps.Infrastructure.Postgres/Testing/PostgresFixture.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: 20
- Files with issues: 20
- See docs/implplan/audits/csproj-standards/file-audit.csv for full per-file status.
| File | Issues | Fix guidance |
| --- | --- | --- |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/ServiceCollectionExtensions.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/Connections/DataSourceBase.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/Exceptions/PostgresExceptionHelper.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/IMigrationRunner.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/MigrationCategory.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/MigrationDependency.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/MigrationRunner.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/MigrationServiceExtensions.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/MigrationTelemetry.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/MigrationValidator.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/Migrations/StartupMigrationHost.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/obj/Debug/net10.0/StellaOps.Infrastructure.Postgres.AssemblyInfo.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/obj/Debug/net10.0/StellaOps.Infrastructure.Postgres.GlobalUsings.g.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/obj/Release/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/obj/Release/net10.0/StellaOps.Infrastructure.Postgres.AssemblyInfo.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/obj/Release/net10.0/StellaOps.Infrastructure.Postgres.GlobalUsings.g.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/Options/PostgresOptions.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/Repositories/RepositoryBase.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/__Libraries/StellaOps.Infrastructure.Postgres/Testing/PostgresFixture.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
## Testing Fullness Findings
- Status: FAIL
- Expected layers (heuristic): Integration, Unit
- Detected test projects: ../src/__Libraries/__Tests/StellaOps.Infrastructure.Postgres.Tests/StellaOps.Infrastructure.Postgres.Tests.csproj [Unit]; ../src/__Tests/__Libraries/StellaOps.Infrastructure.Postgres.Testing/StellaOps.Infrastructure.Postgres.Testing.csproj [Unit] (no test attributes detected); ../src/Cli/__Tests/StellaOps.Cli.Tests/StellaOps.Cli.Tests.csproj [CLI]
- Missing layers: Integration
### 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
- Add or expand test projects to cover missing layers.
- Ensure tests use deterministic fixtures and offline harnesses.