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,187 @@
# Audit - StellaOps.Zastava.Observer
## Project
- Path: ../src/Zastava/StellaOps.Zastava.Observer/StellaOps.Zastava.Observer.csproj
- Module: ..
- Kind: Library
- Audit date (UTC): 2026-01-30
- Files scanned: 50
- Files with issues: 48
- 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: 27
- Namespace violations: 48
- 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/Zastava/StellaOps.Zastava.Observer/Backend/RuntimeEventsClient.cs (243 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/Backend/RuntimePolicyClient.cs (129 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/Configuration/ZastavaObserverOptions.cs (256 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/ContainerStateTracker.cs (135 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Cri/CriRuntimeClient.cs (255 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Windows/DockerWindowsRuntimeClient.cs (402 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Windows/IWindowsContainerRuntimeClient.cs (115 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Windows/WindowsContainerInfo.cs (105 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Windows/WindowsLibraryHashCollector.cs (180 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/DependencyInjection/ObserverServiceCollectionExtensions.cs (184 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/obj/Debug/net10.0/Protos/runtime/v1/Runtime.cs (41692 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/obj/Debug/net10.0/Protos/runtime/v1/RuntimeGrpc.cs (2380 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/Posture/RuntimePostureCache.cs (181 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/Posture/RuntimePostureEvaluator.cs (285 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/Probes/EbpfProbeManager.cs (463 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/Runtime/ElfBuildIdReader.cs (288 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/Runtime/RuntimeEventBuffer.cs (302 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/Runtime/RuntimeFactsBuilder.cs (358 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/Runtime/RuntimeProcessCollector.cs (526 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/Runtime/ProcSnapshot/DotNetAssemblyCollector.cs (496 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/Runtime/ProcSnapshot/JavaClasspathCollector.cs (419 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/Runtime/ProcSnapshot/PhpAutoloadCollector.cs (514 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/Runtime/ProcSnapshot/ProcSnapshotCollector.cs (146 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/Worker/ContainerLifecycleHostedService.cs (203 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/Worker/ContainerRuntimePoller.cs (140 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/Worker/RuntimeEventDispatchService.cs (270 lines)
- ../src/Zastava/StellaOps.Zastava.Observer/Worker/RuntimeEventFactory.cs (155 lines)
- Namespace issues:
- ../src/Zastava/StellaOps.Zastava.Observer/Backend/IRuntimePolicyClient.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Backend/RuntimeEventsClient.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Backend/RuntimeFactsClient.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Backend/RuntimePolicyClient.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Backend/RuntimePolicyContracts.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Backend/RuntimePolicyException.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Configuration/ReachabilityRuntimeOptions.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Configuration/ZastavaObserverOptions.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/ContainerStateTracker.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/ContainerStateTrackerFactory.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Cri/CriConversions.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Cri/CriModels.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Cri/CriRuntimeClient.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Cri/CriRuntimeClientFactory.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Windows/DockerWindowsRuntimeClient.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Windows/IWindowsContainerRuntimeClient.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Windows/WindowsContainerInfo.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Windows/WindowsLibraryHashCollector.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/DependencyInjection/ObserverServiceCollectionExtensions.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/obj/Debug/net10.0/StellaOps.Zastava.Observer.AssemblyInfo.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/obj/Debug/net10.0/StellaOps.Zastava.Observer.GlobalUsings.g.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/obj/Debug/net10.0/Protos/runtime/v1/Runtime.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/obj/Debug/net10.0/Protos/runtime/v1/RuntimeGrpc.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/obj/Release/net10.0/StellaOps.Zastava.Observer.GlobalUsings.g.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Posture/IRuntimePostureCache.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Posture/IRuntimePostureEvaluator.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Posture/RuntimePostureCache.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Posture/RuntimePostureCacheEntry.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Posture/RuntimePostureEvaluationResult.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Posture/RuntimePostureEvaluator.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Probes/EbpfProbeManager.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Runtime/ElfBuildIdReader.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Runtime/RuntimeEventBuffer.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Runtime/RuntimeFactsBuilder.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Runtime/RuntimeProcessCollector.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Runtime/ProcSnapshot/DotNetAssemblyCollector.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Runtime/ProcSnapshot/JavaClasspathCollector.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Runtime/ProcSnapshot/PhpAutoloadCollector.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Runtime/ProcSnapshot/ProcSnapshotCollector.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Secrets/ObserverSurfaceSecrets.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Surface/RuntimeSurfaceFsClient.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Worker/BackoffCalculator.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Worker/ContainerLifecycleHostedService.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Worker/ContainerRuntimePoller.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Worker/ObserverBootstrapService.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Worker/RuntimeEventDispatchService.cs: missing namespace
- ../src/Zastava/StellaOps.Zastava.Observer/Worker/RuntimeEventFactory.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: 50
- Files with issues: 48
- See docs/implplan/audits/csproj-standards/file-audit.csv for full per-file status.
| File | Issues | Fix guidance |
| --- | --- | --- |
| ../src/Zastava/StellaOps.Zastava.Observer/Backend/IRuntimePolicyClient.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/Backend/RuntimeEventsClient.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/Backend/RuntimeFactsClient.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/Backend/RuntimePolicyClient.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/Backend/RuntimePolicyContracts.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/Backend/RuntimePolicyException.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/Configuration/ReachabilityRuntimeOptions.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/Configuration/ZastavaObserverOptions.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/ContainerStateTracker.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/ContainerStateTrackerFactory.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Cri/CriConversions.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Cri/CriModels.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Cri/CriRuntimeClient.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Cri/CriRuntimeClientFactory.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Windows/DockerWindowsRuntimeClient.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Windows/IWindowsContainerRuntimeClient.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Windows/WindowsContainerInfo.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/ContainerRuntime/Windows/WindowsLibraryHashCollector.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/DependencyInjection/ObserverServiceCollectionExtensions.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/obj/Debug/net10.0/StellaOps.Zastava.Observer.AssemblyInfo.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/obj/Debug/net10.0/StellaOps.Zastava.Observer.GlobalUsings.g.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/obj/Debug/net10.0/Protos/runtime/v1/Runtime.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/obj/Debug/net10.0/Protos/runtime/v1/RuntimeGrpc.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/obj/Release/net10.0/StellaOps.Zastava.Observer.GlobalUsings.g.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/Posture/IRuntimePostureCache.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/Posture/IRuntimePostureEvaluator.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/Posture/RuntimePostureCache.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/Posture/RuntimePostureCacheEntry.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/Posture/RuntimePostureEvaluationResult.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/Posture/RuntimePostureEvaluator.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/Probes/EbpfProbeManager.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/Runtime/ElfBuildIdReader.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/Runtime/RuntimeEventBuffer.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/Runtime/RuntimeFactsBuilder.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/Runtime/RuntimeProcessCollector.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/Runtime/ProcSnapshot/DotNetAssemblyCollector.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/Runtime/ProcSnapshot/JavaClasspathCollector.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/Runtime/ProcSnapshot/PhpAutoloadCollector.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/Runtime/ProcSnapshot/ProcSnapshotCollector.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/Secrets/ObserverSurfaceSecrets.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/Surface/RuntimeSurfaceFsClient.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/Worker/BackoffCalculator.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/Worker/ContainerLifecycleHostedService.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/Worker/ContainerRuntimePoller.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/Worker/ObserverBootstrapService.cs | NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>; |
| ../src/Zastava/StellaOps.Zastava.Observer/Worker/RuntimeEventDispatchService.cs | FileLength>100; NamespaceMissing | Add file-scoped namespace: namespace StellaOps.<Area>;; Split file to stay <= 100 lines. |
| ../src/Zastava/StellaOps.Zastava.Observer/Worker/RuntimeEventFactory.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/Zastava/__Tests/StellaOps.Zastava.Observer.Tests/StellaOps.Zastava.Observer.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.