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: Platform
- 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,88 @@
# Audit - StellaOps.Platform.Analytics
## Project
- Path: src/Platform/StellaOps.Platform.Analytics/StellaOps.Platform.Analytics.csproj
- Module: Platform
- Kind: Library
- Audit date (UTC): 2026-01-31
- Files scanned: 17
- Files with issues: 9
- 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: 0
- Using directive violations: 2
- Naming violations (interfaces/fields/const/async): 5
- Service locator usage (BuildServiceProvider/GetService): 1
- Assembly.LoadFrom usage: 0
### Details
- 100-line files:
- src/Platform/StellaOps.Platform.Analytics/Models/ScannerOrchestratorEvents.cs (143 lines)
- src/Platform/StellaOps.Platform.Analytics/Services/AnalyticsIngestionService.cs (879 lines)
- src/Platform/StellaOps.Platform.Analytics/Services/AttestationIngestionService.cs (1233 lines)
- src/Platform/StellaOps.Platform.Analytics/Services/CasContentReader.cs (128 lines)
- src/Platform/StellaOps.Platform.Analytics/Services/VulnerabilityCorrelationService.cs (605 lines)
- src/Platform/StellaOps.Platform.Analytics/Utilities/PurlParser.cs (200 lines)
- src/Platform/StellaOps.Platform.Analytics/Utilities/VersionRuleEvaluator.cs (164 lines)
- Namespace issues:
- none
- Using directive issues:
- src/Platform/StellaOps.Platform.Analytics/Services/AnalyticsIngestionService.cs: using directives inside namespace
- src/Platform/StellaOps.Platform.Analytics/Services/AttestationIngestionService.cs: using directives inside namespace
- Naming issues:
- src/Platform/StellaOps.Platform.Analytics/Utilities/PurlParser.cs: private field naming
- Async issues:
- src/Platform/StellaOps.Platform.Analytics/Services/AnalyticsIngestionDataSource.cs: async method naming
- src/Platform/StellaOps.Platform.Analytics/Services/AnalyticsIngestionService.cs: async method naming
- src/Platform/StellaOps.Platform.Analytics/Services/AttestationIngestionService.cs: async method naming
- src/Platform/StellaOps.Platform.Analytics/Services/VulnerabilityCorrelationService.cs: async method naming
- Service locator matches:
- src/Platform/StellaOps.Platform.Analytics/ServiceCollectionExtensions.cs:49 services.AddHostedService(sp => (VulnerabilityCorrelationService)sp.GetRequiredService<IVulnerabilityCorrelationService>());
- 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: 17
- Files with issues: 9
- 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 | ServiceLocator | Remove service locator usage; use constructor injection. |
| src/Platform/StellaOps.Platform.Analytics/Models/ScannerOrchestratorEvents.cs | FileLength>100 | Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.Analytics/Services/AnalyticsIngestionDataSource.cs | AsyncNaming | Rename async methods to end with Async. |
| src/Platform/StellaOps.Platform.Analytics/Services/AnalyticsIngestionService.cs | AsyncNaming; FileLength>100; UsingInsideNamespace | Move using directives outside namespace.; Rename async methods to end with Async.; Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.Analytics/Services/AttestationIngestionService.cs | AsyncNaming; FileLength>100; UsingInsideNamespace | Move using directives outside namespace.; Rename async methods to end with Async.; Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.Analytics/Services/CasContentReader.cs | FileLength>100 | Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.Analytics/Services/VulnerabilityCorrelationService.cs | AsyncNaming; FileLength>100 | Rename async methods to end with Async.; Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.Analytics/Utilities/PurlParser.cs | FileLength>100; PrivateFieldNaming | Rename private fields to _camelCase.; Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.Analytics/Utilities/VersionRuleEvaluator.cs | FileLength>100 | Split file to stay <= 100 lines. |
## 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: Platform
- 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,153 @@
# Audit - StellaOps.Platform.WebService
## Project
- Path: src/Platform/StellaOps.Platform.WebService/StellaOps.Platform.WebService.csproj
- Module: Platform
- Kind: Service
- Audit date (UTC): 2026-01-31
- Files scanned: 50
- Files with issues: 32
- 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: 0
- Using directive violations: 6
- Naming violations (interfaces/fields/const/async): 22
- Service locator usage (BuildServiceProvider/GetService): 0
- Assembly.LoadFrom usage: 0
### Details
- 100-line files:
- src/Platform/StellaOps.Platform.WebService/Program.cs (224 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 (330 lines)
- src/Platform/StellaOps.Platform.WebService/Endpoints/EvidenceThreadEndpoints.cs (653 lines)
- src/Platform/StellaOps.Platform.WebService/Endpoints/FunctionMapEndpoints.cs (256 lines)
- src/Platform/StellaOps.Platform.WebService/Endpoints/PlatformEndpoints.cs (497 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 (290 lines)
- src/Platform/StellaOps.Platform.WebService/Options/PlatformServiceOptions.cs (160 lines)
- src/Platform/StellaOps.Platform.WebService/Services/FunctionMapService.cs (300 lines)
- src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsMaintenanceService.cs (227 lines)
- src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsQueryExecutor.cs (180 lines)
- src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsService.cs (248 lines)
- src/Platform/StellaOps.Platform.WebService/Services/PlatformHealthService.cs (193 lines)
- src/Platform/StellaOps.Platform.WebService/Services/PlatformMetadataService.cs (106 lines)
- src/Platform/StellaOps.Platform.WebService/Services/PlatformOnboardingService.cs (204 lines)
- src/Platform/StellaOps.Platform.WebService/Services/PlatformPreferencesService.cs (256 lines)
- src/Platform/StellaOps.Platform.WebService/Services/PlatformQuotaService.cs (210 lines)
- src/Platform/StellaOps.Platform.WebService/Services/PlatformRequestContextResolver.cs (114 lines)
- src/Platform/StellaOps.Platform.WebService/Services/PlatformSearchService.cs (180 lines)
- src/Platform/StellaOps.Platform.WebService/Services/PlatformSetupService.cs (477 lines)
- src/Platform/StellaOps.Platform.WebService/Services/PolicyInteropService.cs (425 lines)
- src/Platform/StellaOps.Platform.WebService/Services/PostgresScoreHistoryStore.cs (190 lines)
- src/Platform/StellaOps.Platform.WebService/Services/ScoreEvaluationService.cs (489 lines)
- Namespace issues:
- none
- Using directive issues:
- src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsMaintenanceService.cs: using directives inside namespace
- src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsService.cs: using directives inside namespace
- src/Platform/StellaOps.Platform.WebService/Services/PlatformHealthService.cs: using directives inside namespace
- src/Platform/StellaOps.Platform.WebService/Services/PlatformMetadataService.cs: using directives inside namespace
- src/Platform/StellaOps.Platform.WebService/Services/PlatformQuotaService.cs: using directives inside namespace
- src/Platform/StellaOps.Platform.WebService/Services/PlatformSearchService.cs: using directives inside namespace
- Naming issues:
- src/Platform/StellaOps.Platform.WebService/Services/FunctionMapService.cs: private field naming
- src/Platform/StellaOps.Platform.WebService/Services/PlatformAggregationMetrics.cs: private field naming
- src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsMaintenanceExecutor.cs: private field naming
- src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsMaintenanceService.cs: private field naming
- src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsQueryExecutor.cs: private field naming
- src/Platform/StellaOps.Platform.WebService/Services/PlatformCache.cs: private field naming
- src/Platform/StellaOps.Platform.WebService/Services/PlatformHealthService.cs: private field naming
- src/Platform/StellaOps.Platform.WebService/Services/PlatformMetadataService.cs: private field naming
- src/Platform/StellaOps.Platform.WebService/Services/PlatformOnboardingService.cs: private field naming
- src/Platform/StellaOps.Platform.WebService/Services/PlatformPreferencesService.cs: private field naming
- src/Platform/StellaOps.Platform.WebService/Services/PlatformQuotaService.cs: private field naming
- src/Platform/StellaOps.Platform.WebService/Services/PlatformSearchService.cs: private field naming
- src/Platform/StellaOps.Platform.WebService/Services/PolicyInteropService.cs: private field naming
- Async issues:
- src/Platform/StellaOps.Platform.WebService/Endpoints/EvidenceThreadEndpoints.cs: async method naming
- src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsDataSource.cs: async method naming
- src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsMaintenanceService.cs: async method naming
- src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsQueryExecutor.cs: async method naming
- src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsService.cs: async method naming
- src/Platform/StellaOps.Platform.WebService/Services/PlatformCache.cs: async method naming
- src/Platform/StellaOps.Platform.WebService/Services/PlatformHealthService.cs: async method naming
- src/Platform/StellaOps.Platform.WebService/Services/PolicyInteropService.cs: blocking async usage
- src/Platform/StellaOps.Platform.WebService/Services/PostgresScoreHistoryStore.cs: async method naming
- Service locator matches:
- none
- 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.
- Split files over 100 lines into smaller types or partials.
## File-Level Findings
- Status: FAIL
- Files scanned: 50
- Files with issues: 32
- 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/Contracts/FunctionMapModels.cs | FileLength>100 | Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Contracts/PolicyInteropModels.cs | FileLength>100 | Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Contracts/ScoreModels.cs | FileLength>100 | Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Contracts/SetupWizardModels.cs | FileLength>100 | Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Endpoints/AnalyticsEndpoints.cs | FileLength>100 | Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Endpoints/EvidenceThreadEndpoints.cs | AsyncNaming; FileLength>100 | Rename async methods to end with Async.; Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Endpoints/FunctionMapEndpoints.cs | FileLength>100 | Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Endpoints/PlatformEndpoints.cs | FileLength>100 | Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Endpoints/PolicyInteropEndpoints.cs | FileLength>100 | Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Endpoints/ScoreEndpoints.cs | FileLength>100 | Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Endpoints/SetupEndpoints.cs | FileLength>100 | Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Options/PlatformServiceOptions.cs | FileLength>100 | Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Services/FunctionMapService.cs | FileLength>100; PrivateFieldNaming | Rename private fields to _camelCase.; Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Services/PlatformAggregationMetrics.cs | PrivateFieldNaming | Rename private fields to _camelCase. |
| src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsDataSource.cs | AsyncNaming | Rename async methods to end with Async. |
| src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsMaintenanceExecutor.cs | PrivateFieldNaming | Rename private fields to _camelCase. |
| src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsMaintenanceService.cs | AsyncNaming; FileLength>100; PrivateFieldNaming; UsingInsideNamespace | Move using directives outside namespace.; Rename async methods to end with Async.; Rename private fields to _camelCase.; Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsQueryExecutor.cs | AsyncNaming; FileLength>100; PrivateFieldNaming | Rename async methods to end with Async.; Rename private fields to _camelCase.; Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Services/PlatformAnalyticsService.cs | AsyncNaming; FileLength>100; UsingInsideNamespace | Move using directives outside namespace.; Rename async methods to end with Async.; Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Services/PlatformCache.cs | AsyncNaming; PrivateFieldNaming | Rename async methods to end with Async.; Rename private fields to _camelCase. |
| src/Platform/StellaOps.Platform.WebService/Services/PlatformHealthService.cs | AsyncNaming; FileLength>100; PrivateFieldNaming; UsingInsideNamespace | Move using directives outside namespace.; Rename async methods to end with Async.; Rename private fields to _camelCase.; Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Services/PlatformMetadataService.cs | FileLength>100; PrivateFieldNaming; UsingInsideNamespace | Move using directives outside namespace.; Rename private fields to _camelCase.; Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Services/PlatformOnboardingService.cs | FileLength>100; PrivateFieldNaming | Rename private fields to _camelCase.; Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Services/PlatformPreferencesService.cs | FileLength>100; PrivateFieldNaming | Rename private fields to _camelCase.; Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Services/PlatformQuotaService.cs | FileLength>100; PrivateFieldNaming; UsingInsideNamespace | Move using directives outside namespace.; Rename private fields to _camelCase.; Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Services/PlatformRequestContextResolver.cs | FileLength>100 | Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Services/PlatformSearchService.cs | FileLength>100; PrivateFieldNaming; UsingInsideNamespace | Move using directives outside namespace.; Rename private fields to _camelCase.; Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Services/PlatformSetupService.cs | FileLength>100 | Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Services/PolicyInteropService.cs | BlockingAsync; FileLength>100; PrivateFieldNaming | Rename private fields to _camelCase.; Replace .Result/.Wait/GetAwaiter().GetResult() with await.; Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Services/PostgresScoreHistoryStore.cs | AsyncNaming; FileLength>100 | Rename async methods to end with Async.; Split file to stay <= 100 lines. |
| src/Platform/StellaOps.Platform.WebService/Services/ScoreEvaluationService.cs | FileLength>100 | Split file to stay <= 100 lines. |
## Testing Fullness Findings
- Status: FAIL
- Expected layers (heuristic): E2E, Integration, Offline, Security, Unit
- Detected test projects: src/Platform/__Tests/StellaOps.Platform.WebService.Tests/StellaOps.Platform.WebService.Tests.csproj [Unit]
- Missing layers: E2E, Integration, Offline, Security
### 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,81 @@
# Audit - StellaOps.Platform.Database
## Project
- Path: src/Platform/__Libraries/StellaOps.Platform.Database/StellaOps.Platform.Database.csproj
- Module: Platform
- 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,70 @@
# Audit - StellaOps.Platform.Database
## Project
- Path: src/Platform/__Libraries/StellaOps.Platform.Database/StellaOps.Platform.Database.csproj
- Module: Platform
- Kind: Library
- Audit date (UTC): 2026-01-31
- Files scanned: 2
- Files with issues: 2
- 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: 0
- Using directive violations: 0
- Naming violations (interfaces/fields/const/async): 1
- Service locator usage (BuildServiceProvider/GetService): 2
- Assembly.LoadFrom usage: 0
### Details
- 100-line files:
- src/Platform/__Libraries/StellaOps.Platform.Database/ReleaseMigrationRunner.cs (120 lines)
- Namespace issues:
- none
- Using directive issues:
- none
- Naming issues:
- none
- Async issues:
- src/Platform/__Libraries/StellaOps.Platform.Database/ReleaseMigrationRunner.cs: missing ConfigureAwait(false)
- Service locator matches:
- src/Platform/__Libraries/StellaOps.Platform.Database/ServiceCollectionExtensions.cs:26 var logger = sp.GetRequiredService<ILogger<ReleaseMigrationRunner>>();
- src/Platform/__Libraries/StellaOps.Platform.Database/ServiceCollectionExtensions.cs:48 var logger = sp.GetRequiredService<ILogger<ReleaseMigrationRunner>>();
- Assembly.LoadFrom matches:
- none
### Fix Guidance
- 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: 2
- Files with issues: 2
- 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 | ConfigureAwaitMissing; FileLength>100 | Add ConfigureAwait(false) to awaited calls in library-like code.; Split file to stay <= 100 lines. |
| src/Platform/__Libraries/StellaOps.Platform.Database/ServiceCollectionExtensions.cs | ServiceLocator | Remove service locator usage; use constructor injection. |
## 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,99 @@
# Audit - StellaOps.Platform.Analytics.Tests
## Project
- Path: src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/StellaOps.Platform.Analytics.Tests.csproj
- Module: Platform
- Kind: Test
- Audit date (UTC): 2026-01-31
- Files scanned: 14
- Files with issues: 9
- 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: 0
- Using directive violations: 10
- Naming violations (interfaces/fields/const/async): 9
- 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:
- none
- Using directive issues:
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionEdgeCaseTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionFixtureTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionHelpersTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionRealDatasetTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsSchemaIntegrationTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AttestationPayloadParsingTests.cs: using directives inside namespace
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AttestationPayloadParsingTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/LicenseExpressionRendererEdgeCaseTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/LicenseExpressionRendererTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/VulnerabilityCorrelationRulesTests.cs: using directives not sorted
- Naming issues:
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionFixtureTests.cs: private field naming
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionRealDatasetTests.cs: private field naming
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/VulnerabilityCorrelationRulesTests.cs: private field naming
- Async issues:
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionFixtureTests.cs: async method naming
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionFixtureTests.cs: missing ConfigureAwait(false)
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionRealDatasetTests.cs: async method naming
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionRealDatasetTests.cs: missing ConfigureAwait(false)
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsSchemaIntegrationTests.cs: async method naming
- src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsSchemaIntegrationTests.cs: missing ConfigureAwait(false)
- Service locator matches:
- none
- 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.
- Split files over 100 lines into smaller types or partials.
## File-Level Findings
- Status: FAIL
- Files scanned: 14
- Files with issues: 9
- 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; UsingNotSorted | Sort using directives alphabetically.; Split file to stay <= 100 lines. |
| src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionFixtureTests.cs | AsyncNaming; ConfigureAwaitMissing; PrivateFieldNaming; UsingNotSorted | Add ConfigureAwait(false) to awaited calls in library-like code.; Rename async methods to end with Async.; Rename private fields to _camelCase.; Sort using directives alphabetically. |
| src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionHelpersTests.cs | FileLength>100; UsingNotSorted | Sort using directives alphabetically.; Split file to stay <= 100 lines. |
| src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsIngestionRealDatasetTests.cs | AsyncNaming; ConfigureAwaitMissing; FileLength>100; PrivateFieldNaming; UsingNotSorted | Add ConfigureAwait(false) to awaited calls in library-like code.; Rename async methods to end with Async.; Rename private fields to _camelCase.; Sort using directives alphabetically.; Split file to stay <= 100 lines. |
| src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AnalyticsSchemaIntegrationTests.cs | AsyncNaming; ConfigureAwaitMissing; FileLength>100; UsingNotSorted | Add ConfigureAwait(false) to awaited calls in library-like code.; Rename async methods to end with Async.; Sort using directives alphabetically.; Split file to stay <= 100 lines. |
| src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/AttestationPayloadParsingTests.cs | FileLength>100; UsingInsideNamespace; UsingNotSorted | Move using directives outside namespace.; Sort using directives alphabetically.; Split file to stay <= 100 lines. |
| src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/LicenseExpressionRendererEdgeCaseTests.cs | FileLength>100; UsingNotSorted | Sort using directives alphabetically.; Split file to stay <= 100 lines. |
| src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/LicenseExpressionRendererTests.cs | UsingNotSorted | Sort using directives alphabetically. |
| src/Platform/__Tests/StellaOps.Platform.Analytics.Tests/VulnerabilityCorrelationRulesTests.cs | FileLength>100; PrivateFieldNaming; UsingNotSorted | Rename private fields to _camelCase.; Sort using directives alphabetically.; Split file to stay <= 100 lines. |
## Testing Fullness Findings
- Status: PASS
- Expected layers (heuristic):
- Detected test projects: none
- 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,146 @@
# Audit - StellaOps.Platform.WebService.Tests
## Project
- Path: src/Platform/__Tests/StellaOps.Platform.WebService.Tests/StellaOps.Platform.WebService.Tests.csproj
- Module: Platform
- Kind: Test
- Audit date (UTC): 2026-01-31
- 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: 7
- Namespace violations: 0
- Using directive violations: 21
- Naming violations (interfaces/fields/const/async): 38
- 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:
- none
- Using directive issues:
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/AnalyticsEndpointsSuccessTests.cs: using directives inside namespace
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/AnalyticsEndpointsSuccessTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/AnalyticsEndpointsTests.cs: using directives inside namespace
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/AnalyticsEndpointsTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/HealthEndpointsTests.cs: using directives inside namespace
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/HealthEndpointsTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/MetadataEndpointsTests.cs: using directives inside namespace
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/MetadataEndpointsTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/OnboardingEndpointsTests.cs: using directives inside namespace
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/OnboardingEndpointsTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsMaintenanceOptionsTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsMaintenanceServiceTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsQueryExecutorTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsServiceTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformWebApplicationFactory.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PreferencesEndpointsTests.cs: using directives inside namespace
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PreferencesEndpointsTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/QuotaEndpointsTests.cs: using directives inside namespace
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/QuotaEndpointsTests.cs: using directives not sorted
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/SearchEndpointsTests.cs: using directives inside namespace
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/SearchEndpointsTests.cs: using directives not sorted
- Naming issues:
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/AnalyticsEndpointsSuccessTests.cs: private field naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/AnalyticsEndpointsTests.cs: private field naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/HealthEndpointsTests.cs: private field naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/MetadataEndpointsTests.cs: private field naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/OnboardingEndpointsTests.cs: private field naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsMaintenanceServiceTests.cs: private field naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PreferencesEndpointsTests.cs: private field naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/QuotaEndpointsTests.cs: private field naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/SearchEndpointsTests.cs: private field naming
- Async issues:
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/AnalyticsEndpointsSuccessTests.cs: async method naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/AnalyticsEndpointsSuccessTests.cs: missing ConfigureAwait(false)
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/AnalyticsEndpointsTests.cs: async method naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/AnalyticsEndpointsTests.cs: missing ConfigureAwait(false)
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/FunctionMapEndpointsTests.cs: async method naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/FunctionMapEndpointsTests.cs: blocking async usage
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/FunctionMapEndpointsTests.cs: missing ConfigureAwait(false)
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/HealthEndpointsTests.cs: async method naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/HealthEndpointsTests.cs: missing ConfigureAwait(false)
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/MetadataEndpointsTests.cs: async method naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/MetadataEndpointsTests.cs: missing ConfigureAwait(false)
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/OnboardingEndpointsTests.cs: async method naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/OnboardingEndpointsTests.cs: missing ConfigureAwait(false)
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsMaintenanceServiceTests.cs: async method naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsMaintenanceServiceTests.cs: missing ConfigureAwait(false)
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsQueryExecutorTests.cs: async method naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsQueryExecutorTests.cs: missing ConfigureAwait(false)
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsServiceTests.cs: async method naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsServiceTests.cs: missing ConfigureAwait(false)
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PolicyInteropEndpointsTests.cs: async method naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PolicyInteropEndpointsTests.cs: missing ConfigureAwait(false)
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PreferencesEndpointsTests.cs: async method naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PreferencesEndpointsTests.cs: missing ConfigureAwait(false)
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/QuotaEndpointsTests.cs: async method naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/QuotaEndpointsTests.cs: missing ConfigureAwait(false)
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/ScoreEndpointsTests.cs: async method naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/ScoreEndpointsTests.cs: missing ConfigureAwait(false)
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/SearchEndpointsTests.cs: async method naming
- src/Platform/__Tests/StellaOps.Platform.WebService.Tests/SearchEndpointsTests.cs: missing ConfigureAwait(false)
- Service locator matches:
- none
- 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.
- 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/Platform/__Tests/StellaOps.Platform.WebService.Tests/AnalyticsEndpointsSuccessTests.cs | AsyncNaming; ConfigureAwaitMissing; FileLength>100; PrivateFieldNaming; UsingInsideNamespace; UsingNotSorted | Add ConfigureAwait(false) to awaited calls in library-like code.; Move using directives outside namespace.; Rename async methods to end with Async.; Rename private fields to _camelCase.; Sort using directives alphabetically.; Split file to stay <= 100 lines. |
| src/Platform/__Tests/StellaOps.Platform.WebService.Tests/AnalyticsEndpointsTests.cs | AsyncNaming; ConfigureAwaitMissing; PrivateFieldNaming; UsingInsideNamespace; UsingNotSorted | Add ConfigureAwait(false) to awaited calls in library-like code.; Move using directives outside namespace.; Rename async methods to end with Async.; Rename private fields to _camelCase.; Sort using directives alphabetically. |
| src/Platform/__Tests/StellaOps.Platform.WebService.Tests/FunctionMapEndpointsTests.cs | AsyncNaming; BlockingAsync; ConfigureAwaitMissing; FileLength>100 | Add ConfigureAwait(false) to awaited calls in library-like code.; Rename async methods to end with Async.; Replace .Result/.Wait/GetAwaiter().GetResult() with await.; Split file to stay <= 100 lines. |
| src/Platform/__Tests/StellaOps.Platform.WebService.Tests/HealthEndpointsTests.cs | AsyncNaming; ConfigureAwaitMissing; PrivateFieldNaming; UsingInsideNamespace; UsingNotSorted | Add ConfigureAwait(false) to awaited calls in library-like code.; Move using directives outside namespace.; Rename async methods to end with Async.; Rename private fields to _camelCase.; Sort using directives alphabetically. |
| src/Platform/__Tests/StellaOps.Platform.WebService.Tests/MetadataEndpointsTests.cs | AsyncNaming; ConfigureAwaitMissing; PrivateFieldNaming; UsingInsideNamespace; UsingNotSorted | Add ConfigureAwait(false) to awaited calls in library-like code.; Move using directives outside namespace.; Rename async methods to end with Async.; Rename private fields to _camelCase.; Sort using directives alphabetically. |
| src/Platform/__Tests/StellaOps.Platform.WebService.Tests/OnboardingEndpointsTests.cs | AsyncNaming; ConfigureAwaitMissing; PrivateFieldNaming; UsingInsideNamespace; UsingNotSorted | Add ConfigureAwait(false) to awaited calls in library-like code.; Move using directives outside namespace.; Rename async methods to end with Async.; Rename private fields to _camelCase.; Sort using directives alphabetically. |
| src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsMaintenanceOptionsTests.cs | UsingNotSorted | Sort using directives alphabetically. |
| src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsMaintenanceServiceTests.cs | AsyncNaming; ConfigureAwaitMissing; FileLength>100; PrivateFieldNaming; UsingNotSorted | Add ConfigureAwait(false) to awaited calls in library-like code.; Rename async methods to end with Async.; Rename private fields to _camelCase.; Sort using directives alphabetically.; Split file to stay <= 100 lines. |
| src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsQueryExecutorTests.cs | AsyncNaming; ConfigureAwaitMissing; UsingNotSorted | Add ConfigureAwait(false) to awaited calls in library-like code.; Rename async methods to end with Async.; Sort using directives alphabetically. |
| src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformAnalyticsServiceTests.cs | AsyncNaming; ConfigureAwaitMissing; FileLength>100; UsingNotSorted | Add ConfigureAwait(false) to awaited calls in library-like code.; Rename async methods to end with Async.; Sort using directives alphabetically.; Split file to stay <= 100 lines. |
| src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PlatformWebApplicationFactory.cs | FileLength>100; UsingNotSorted | Sort using directives alphabetically.; Split file to stay <= 100 lines. |
| src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PolicyInteropEndpointsTests.cs | AsyncNaming; ConfigureAwaitMissing; FileLength>100 | Add ConfigureAwait(false) to awaited calls in library-like code.; Rename async methods to end with Async.; Split file to stay <= 100 lines. |
| src/Platform/__Tests/StellaOps.Platform.WebService.Tests/PreferencesEndpointsTests.cs | AsyncNaming; ConfigureAwaitMissing; PrivateFieldNaming; UsingInsideNamespace; UsingNotSorted | Add ConfigureAwait(false) to awaited calls in library-like code.; Move using directives outside namespace.; Rename async methods to end with Async.; Rename private fields to _camelCase.; Sort using directives alphabetically. |
| src/Platform/__Tests/StellaOps.Platform.WebService.Tests/QuotaEndpointsTests.cs | AsyncNaming; ConfigureAwaitMissing; PrivateFieldNaming; UsingInsideNamespace; UsingNotSorted | Add ConfigureAwait(false) to awaited calls in library-like code.; Move using directives outside namespace.; Rename async methods to end with Async.; Rename private fields to _camelCase.; Sort using directives alphabetically. |
| src/Platform/__Tests/StellaOps.Platform.WebService.Tests/ScoreEndpointsTests.cs | AsyncNaming; ConfigureAwaitMissing; FileLength>100 | Add ConfigureAwait(false) to awaited calls in library-like code.; Rename async methods to end with Async.; Split file to stay <= 100 lines. |
| src/Platform/__Tests/StellaOps.Platform.WebService.Tests/SearchEndpointsTests.cs | AsyncNaming; ConfigureAwaitMissing; PrivateFieldNaming; UsingInsideNamespace; UsingNotSorted | Add ConfigureAwait(false) to awaited calls in library-like code.; Move using directives outside namespace.; Rename async methods to end with Async.; Rename private fields to _camelCase.; Sort using directives alphabetically. |
## Testing Fullness Findings
- Status: PASS
- Expected layers (heuristic):
- Detected test projects: none
- 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.