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,113 @@
# Audit - StellaOps.Platform.Analytics
## Project
- Path: ../src/Platform/StellaOps.Platform.Analytics/StellaOps.Platform.Analytics.csproj
- Module: ..
- Kind: Library
- Audit date (UTC): 2026-01-30
- Files scanned: 21
- Files with issues: 21
- 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: 7
- Namespace violations: 21
- 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/Platform/StellaOps.Platform.Analytics/Models/ScannerOrchestratorEvents.cs (142 lines)
- ../src/Platform/StellaOps.Platform.Analytics/Services/AnalyticsIngestionService.cs (878 lines)
- ../src/Platform/StellaOps.Platform.Analytics/Services/AttestationIngestionService.cs (1232 lines)
- ../src/Platform/StellaOps.Platform.Analytics/Services/CasContentReader.cs (127 lines)
- ../src/Platform/StellaOps.Platform.Analytics/Services/VulnerabilityCorrelationService.cs (604 lines)
- ../src/Platform/StellaOps.Platform.Analytics/Utilities/PurlParser.cs (200 lines)
- ../src/Platform/StellaOps.Platform.Analytics/Utilities/VersionRuleEvaluator.cs (163 lines)
- Namespace issues:
- ../src/Platform/StellaOps.Platform.Analytics/ServiceCollectionExtensions.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/Models/AdvisoryEvents.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/Models/RekorEvents.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/Models/ScannerOrchestratorEvents.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/obj/Debug/net10.0/StellaOps.Platform.Analytics.AssemblyInfo.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/obj/Debug/net10.0/StellaOps.Platform.Analytics.GlobalUsings.g.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/obj/Release/net10.0/StellaOps.Platform.Analytics.GlobalUsings.g.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/Options/AnalyticsIngestionOptions.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/Services/AnalyticsIngestionDataSource.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/Services/AnalyticsIngestionService.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/Services/AttestationIngestionService.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/Services/CasContentReader.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/Services/IVulnerabilityCorrelationService.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/Services/VulnerabilityCorrelationService.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/Utilities/LicenseExpressionRenderer.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/Utilities/PurlParser.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/Utilities/Sha256Hasher.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/Utilities/TenantNormalizer.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/Utilities/VersionRuleEvaluator.cs: missing namespace
- ../src/Platform/StellaOps.Platform.Analytics/Utilities/VulnerabilityCorrelationRules.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: 21
- Files with issues: 21
- See docs/implplan/audits/csproj-standards/file-audit.csv for full per-file status.
| File | Issues | Fix guidance |
| --- | --- | --- |
| ../src/Platform/StellaOps.Platform.Analytics/ServiceCollectionExtensions.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.Analytics/Models/AdvisoryEvents.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.Analytics/Models/RekorEvents.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.Analytics/Models/ScannerOrchestratorEvents.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.Analytics/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.Analytics/obj/Debug/net10.0/StellaOps.Platform.Analytics.AssemblyInfo.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.Analytics/obj/Debug/net10.0/StellaOps.Platform.Analytics.GlobalUsings.g.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.Analytics/obj/Release/net10.0/StellaOps.Platform.Analytics.GlobalUsings.g.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.Analytics/Options/AnalyticsIngestionOptions.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.Analytics/Services/AnalyticsIngestionDataSource.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.Analytics/Services/AnalyticsIngestionService.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.Analytics/Services/AttestationIngestionService.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.Analytics/Services/CasContentReader.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.Analytics/Services/IVulnerabilityCorrelationService.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.Analytics/Services/VulnerabilityCorrelationService.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.Analytics/Utilities/LicenseExpressionRenderer.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.Analytics/Utilities/PurlParser.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.Analytics/Utilities/Sha256Hasher.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.Analytics/Utilities/TenantNormalizer.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.Analytics/Utilities/VersionRuleEvaluator.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.Analytics/Utilities/VulnerabilityCorrelationRules.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
## Testing Fullness Findings
- Status: PASS
- Expected layers (heuristic): Unit
- Detected test projects: ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/StellaOps.Platform.Analytics.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,201 @@
# Audit - StellaOps.Platform.WebService
## Project
- Path: ../src/Platform/StellaOps.Platform.WebService/StellaOps.Platform.WebService.csproj
- Module: ..
- Kind: Library
- Audit date (UTC): 2026-01-30
- Files scanned: 55
- Files with issues: 55
- 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: 28
- Namespace violations: 54
- 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/Platform/StellaOps.Platform.WebService/Program.cs (223 lines)
- ../src/Platform/StellaOps.Platform.WebService/Contracts/FunctionMapModels.cs (240 lines)
- ../src/Platform/StellaOps.Platform.WebService/Contracts/PolicyInteropModels.cs (310 lines)
- ../src/Platform/StellaOps.Platform.WebService/Contracts/ScoreModels.cs (671 lines)
- ../src/Platform/StellaOps.Platform.WebService/Contracts/SetupWizardModels.cs (442 lines)
- ../src/Platform/StellaOps.Platform.WebService/Endpoints/AnalyticsEndpoints.cs (329 lines)
- ../src/Platform/StellaOps.Platform.WebService/Endpoints/EvidenceThreadEndpoints.cs (652 lines)
- ../src/Platform/StellaOps.Platform.WebService/Endpoints/FunctionMapEndpoints.cs (256 lines)
- ../src/Platform/StellaOps.Platform.WebService/Endpoints/PlatformEndpoints.cs (496 lines)
- ../src/Platform/StellaOps.Platform.WebService/Endpoints/PolicyInteropEndpoints.cs (245 lines)
- ../src/Platform/StellaOps.Platform.WebService/Endpoints/ScoreEndpoints.cs (356 lines)
- ../src/Platform/StellaOps.Platform.WebService/Endpoints/SetupEndpoints.cs (289 lines)
- ../src/Platform/StellaOps.Platform.WebService/Options/PlatformServiceOptions.cs (160 lines)
- ../src/Platform/StellaOps.Platform.WebService/Services/FunctionMapService.cs (299 lines)
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsMaintenanceService.cs (226 lines)
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsQueryExecutor.cs (179 lines)
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsService.cs (247 lines)
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformHealthService.cs (192 lines)
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformMetadataService.cs (105 lines)
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformOnboardingService.cs (203 lines)
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformPreferencesService.cs (255 lines)
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformQuotaService.cs (209 lines)
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformRequestContextResolver.cs (113 lines)
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformSearchService.cs (179 lines)
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformSetupService.cs (476 lines)
- ../src/Platform/StellaOps.Platform.WebService/Services/PolicyInteropService.cs (424 lines)
- ../src/Platform/StellaOps.Platform.WebService/Services/PostgresScoreHistoryStore.cs (190 lines)
- ../src/Platform/StellaOps.Platform.WebService/Services/ScoreEvaluationService.cs (488 lines)
- Namespace issues:
- ../src/Platform/StellaOps.Platform.WebService/Constants/PlatformPolicies.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Constants/PlatformScopes.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Contracts/AnalyticsModels.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Contracts/FunctionMapModels.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Contracts/HealthModels.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Contracts/MetadataModels.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Contracts/OnboardingModels.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Contracts/PlatformResponseModels.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Contracts/PolicyInteropModels.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Contracts/PreferenceModels.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Contracts/QuotaModels.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Contracts/ScoreHistoryRecord.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Contracts/ScoreModels.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Contracts/SearchModels.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Contracts/SetupWizardModels.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Endpoints/AnalyticsEndpoints.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Endpoints/EvidenceThreadEndpoints.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Endpoints/FunctionMapEndpoints.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Endpoints/PlatformEndpoints.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Endpoints/PolicyInteropEndpoints.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Endpoints/ScoreEndpoints.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Endpoints/SetupEndpoints.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/obj/Debug/net10.0/StellaOps.Platform.WebService.AssemblyInfo.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/obj/Debug/net10.0/StellaOps.Platform.WebService.GlobalUsings.g.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/obj/Debug/net10.0/StellaOps.Platform.WebService.MvcApplicationPartsAssemblyInfo.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/obj/Release/net10.0/StellaOps.Platform.WebService.GlobalUsings.g.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Options/PlatformServiceOptions.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/FunctionMapService.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/IFunctionMapService.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/InMemoryScoreHistoryStore.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/IPolicyInteropService.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/IScoreEvaluationService.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/IScoreHistoryStore.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformAggregationMetrics.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsDataSource.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsMaintenanceExecutor.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsMaintenanceService.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsQueryExecutor.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsService.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformCache.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformHealthService.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformMetadataService.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformOnboardingService.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformPreferencesService.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformQuotaService.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformRequestContext.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformRequestContextResolver.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformSearchService.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformSetupService.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PlatformUserKey.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PolicyInteropService.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/PostgresScoreHistoryStore.cs: missing namespace
- ../src/Platform/StellaOps.Platform.WebService/Services/ScoreEvaluationService.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: 55
- Files with issues: 55
- See docs/implplan/audits/csproj-standards/file-audit.csv for full per-file status.
| File | Issues | Fix guidance |
| --- | --- | --- |
| ../src/Platform/StellaOps.Platform.WebService/Program.cs | FileLength>100 | Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Constants/PlatformPolicies.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Constants/PlatformScopes.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Contracts/AnalyticsModels.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Contracts/FunctionMapModels.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Contracts/HealthModels.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Contracts/MetadataModels.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Contracts/OnboardingModels.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Contracts/PlatformResponseModels.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Contracts/PolicyInteropModels.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Contracts/PreferenceModels.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Contracts/QuotaModels.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Contracts/ScoreHistoryRecord.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Contracts/ScoreModels.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Contracts/SearchModels.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Contracts/SetupWizardModels.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Endpoints/AnalyticsEndpoints.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Endpoints/EvidenceThreadEndpoints.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Endpoints/FunctionMapEndpoints.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Endpoints/PlatformEndpoints.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Endpoints/PolicyInteropEndpoints.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Endpoints/ScoreEndpoints.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Endpoints/SetupEndpoints.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/obj/Debug/net10.0/StellaOps.Platform.WebService.AssemblyInfo.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/obj/Debug/net10.0/StellaOps.Platform.WebService.GlobalUsings.g.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/obj/Debug/net10.0/StellaOps.Platform.WebService.MvcApplicationPartsAssemblyInfo.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/obj/Release/net10.0/StellaOps.Platform.WebService.GlobalUsings.g.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Options/PlatformServiceOptions.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Services/FunctionMapService.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Services/IFunctionMapService.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Services/InMemoryScoreHistoryStore.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Services/IPolicyInteropService.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Services/IScoreEvaluationService.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Services/IScoreHistoryStore.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Services/PlatformAggregationMetrics.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsDataSource.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsMaintenanceExecutor.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsMaintenanceService.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsQueryExecutor.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsService.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Services/PlatformCache.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Services/PlatformHealthService.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Services/PlatformMetadataService.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Services/PlatformOnboardingService.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Services/PlatformPreferencesService.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Services/PlatformQuotaService.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Services/PlatformRequestContext.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Services/PlatformRequestContextResolver.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Services/PlatformSearchService.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Services/PlatformSetupService.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Services/PlatformUserKey.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/StellaOps.Platform.WebService/Services/PolicyInteropService.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Services/PostgresScoreHistoryStore.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/StellaOps.Platform.WebService/Services/ScoreEvaluationService.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
## Testing Fullness Findings
- Status: PASS
- Expected layers (heuristic): Unit
- Detected test projects: ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/StellaOps.Platform.WebService.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,81 @@
# Audit - StellaOps.Platform.Database
## Project
- Path: ../src/Platform/__Libraries/StellaOps.Platform.Database/StellaOps.Platform.Database.csproj
- Module: ..
- Kind: Library
- Audit date (UTC): 2026-01-30
- Files scanned: 8
- Files with issues: 8
- 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: 1
- Namespace violations: 8
- 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/Platform/__Libraries/StellaOps.Platform.Database/ReleaseMigrationRunner.cs (119 lines)
- Namespace issues:
- ../src/Platform/__Libraries/StellaOps.Platform.Database/ReleaseMigrationRunner.cs: missing namespace
- ../src/Platform/__Libraries/StellaOps.Platform.Database/ServiceCollectionExtensions.cs: missing namespace
- ../src/Platform/__Libraries/StellaOps.Platform.Database/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs: missing namespace
- ../src/Platform/__Libraries/StellaOps.Platform.Database/obj/Debug/net10.0/StellaOps.Platform.Database.AssemblyInfo.cs: missing namespace
- ../src/Platform/__Libraries/StellaOps.Platform.Database/obj/Debug/net10.0/StellaOps.Platform.Database.GlobalUsings.g.cs: missing namespace
- ../src/Platform/__Libraries/StellaOps.Platform.Database/obj/Release/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs: missing namespace
- ../src/Platform/__Libraries/StellaOps.Platform.Database/obj/Release/net10.0/StellaOps.Platform.Database.AssemblyInfo.cs: missing namespace
- ../src/Platform/__Libraries/StellaOps.Platform.Database/obj/Release/net10.0/StellaOps.Platform.Database.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: 8
- Files with issues: 8
- See docs/implplan/audits/csproj-standards/file-audit.csv for full per-file status.
| File | Issues | Fix guidance |
| --- | --- | --- |
| ../src/Platform/__Libraries/StellaOps.Platform.Database/ReleaseMigrationRunner.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/__Libraries/StellaOps.Platform.Database/ServiceCollectionExtensions.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Libraries/StellaOps.Platform.Database/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Libraries/StellaOps.Platform.Database/obj/Debug/net10.0/StellaOps.Platform.Database.AssemblyInfo.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Libraries/StellaOps.Platform.Database/obj/Debug/net10.0/StellaOps.Platform.Database.GlobalUsings.g.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Libraries/StellaOps.Platform.Database/obj/Release/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Libraries/StellaOps.Platform.Database/obj/Release/net10.0/StellaOps.Platform.Database.AssemblyInfo.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Libraries/StellaOps.Platform.Database/obj/Release/net10.0/StellaOps.Platform.Database.GlobalUsings.g.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
## Testing Fullness Findings
- Status: PASS
- Expected layers (heuristic): Unit
- Detected test projects: ../src/ReleaseOrchestrator/__Tests/StellaOps.ReleaseOrchestrator.EvidenceThread.Tests/StellaOps.ReleaseOrchestrator.EvidenceThread.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,112 @@
# Audit - StellaOps.Platform.Analytics.Tests
## Project
- Path: ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/StellaOps.Platform.Analytics.Tests.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: 7
- 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/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionEdgeCaseTests.cs (428 lines)
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionHelpersTests.cs (275 lines)
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionRealDatasetTests.cs (320 lines)
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsSchemaIntegrationTests.cs (895 lines)
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AttestationPayloadParsingTests.cs (275 lines)
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/LicenseExpressionRendererEdgeCaseTests.cs (201 lines)
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/VulnerabilityCorrelationRulesTests.cs (118 lines)
- Namespace issues:
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionEdgeCaseTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionFixtureTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionHelpersTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionRealDatasetTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsSchemaIntegrationTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AttestationPayloadParsingTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/LicenseExpressionRendererEdgeCaseTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/LicenseExpressionRendererTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/PostgresCollectionDefinition.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/PurlParserTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/Sha256HasherTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/TenantNormalizerTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/VersionRuleEvaluatorTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/VulnerabilityCorrelationRulesTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/obj/Debug/net10.0/SelfRegisteredExtensions.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/obj/Debug/net10.0/StellaOps.Platform.Analytics.Tests.AssemblyInfo.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/obj/Debug/net10.0/StellaOps.Platform.Analytics.Tests.GlobalUsings.g.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/obj/Debug/net10.0/XunitAutoGeneratedEntryPoint.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/obj/Release/net10.0/StellaOps.Platform.Analytics.Tests.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: 20
- Files with issues: 20
- See docs/implplan/audits/csproj-standards/file-audit.csv for full per-file status.
| File | Issues | Fix guidance |
| --- | --- | --- |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionEdgeCaseTests.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionFixtureTests.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionHelpersTests.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionRealDatasetTests.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsSchemaIntegrationTests.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AttestationPayloadParsingTests.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/LicenseExpressionRendererEdgeCaseTests.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/LicenseExpressionRendererTests.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/PostgresCollectionDefinition.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/PurlParserTests.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/Sha256HasherTests.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/TenantNormalizerTests.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/VersionRuleEvaluatorTests.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/VulnerabilityCorrelationRulesTests.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/obj/Debug/net10.0/SelfRegisteredExtensions.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/obj/Debug/net10.0/StellaOps.Platform.Analytics.Tests.AssemblyInfo.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/obj/Debug/net10.0/StellaOps.Platform.Analytics.Tests.GlobalUsings.g.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/obj/Debug/net10.0/XunitAutoGeneratedEntryPoint.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/obj/Release/net10.0/StellaOps.Platform.Analytics.Tests.GlobalUsings.g.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
## Testing Fullness Findings
- Status: FAIL
- Expected layers (heuristic): Unit
- Detected test projects: none
- Missing layers: Unit
### 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.

View File

@@ -0,0 +1,116 @@
# Audit - StellaOps.Platform.WebService.Tests
## Project
- Path: ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/StellaOps.Platform.WebService.Tests.csproj
- Module: ..
- Kind: Library
- Audit date (UTC): 2026-01-30
- Files scanned: 22
- Files with issues: 22
- 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: 7
- Namespace violations: 22
- 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/Platform/__Tests/StellaOps.Platform.WebService.Tests/AnalyticsEndpointsSuccessTests.cs (184 lines)
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/FunctionMapEndpointsTests.cs (368 lines)
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsMaintenanceServiceTests.cs (139 lines)
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsServiceTests.cs (301 lines)
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformWebApplicationFactory.cs (146 lines)
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PolicyInteropEndpointsTests.cs (414 lines)
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/ScoreEndpointsTests.cs (610 lines)
- Namespace issues:
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/AnalyticsEndpointsSuccessTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/AnalyticsEndpointsTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/FunctionMapEndpointsTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/HealthEndpointsTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/MetadataEndpointsTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/OnboardingEndpointsTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsMaintenanceOptionsTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsMaintenanceServiceTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsQueryExecutorTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsServiceTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformWebApplicationFactory.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PolicyInteropEndpointsTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PreferencesEndpointsTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/QuotaEndpointsTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/ScoreEndpointsTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/SearchEndpointsTests.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/obj/Debug/net10.0/SelfRegisteredExtensions.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/obj/Debug/net10.0/StellaOps.Platform.WebService.Tests.AssemblyInfo.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/obj/Debug/net10.0/StellaOps.Platform.WebService.Tests.GlobalUsings.g.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/obj/Debug/net10.0/XunitAutoGeneratedEntryPoint.cs: missing namespace
- ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/obj/Release/net10.0/StellaOps.Platform.WebService.Tests.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: 22
- Files with issues: 22
- See docs/implplan/audits/csproj-standards/file-audit.csv for full per-file status.
| File | Issues | Fix guidance |
| --- | --- | --- |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/AnalyticsEndpointsSuccessTests.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/AnalyticsEndpointsTests.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/FunctionMapEndpointsTests.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/HealthEndpointsTests.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/MetadataEndpointsTests.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/OnboardingEndpointsTests.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsMaintenanceOptionsTests.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsMaintenanceServiceTests.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsQueryExecutorTests.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsServiceTests.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformWebApplicationFactory.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PolicyInteropEndpointsTests.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PreferencesEndpointsTests.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/QuotaEndpointsTests.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/ScoreEndpointsTests.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/SearchEndpointsTests.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/obj/Debug/net10.0/SelfRegisteredExtensions.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/obj/Debug/net10.0/StellaOps.Platform.WebService.Tests.AssemblyInfo.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/obj/Debug/net10.0/StellaOps.Platform.WebService.Tests.GlobalUsings.g.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/obj/Debug/net10.0/XunitAutoGeneratedEntryPoint.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Platform/__Tests/StellaOps.Platform.WebService.Tests/obj/Release/net10.0/StellaOps.Platform.WebService.Tests.GlobalUsings.g.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
## Testing Fullness Findings
- Status: FAIL
- Expected layers (heuristic): Unit
- Detected test projects: none
- Missing layers: Unit
### 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.