audit work, fixed StellaOps.sln warnings/errors, fixed tests, sprints work, new advisories

This commit is contained in:
master
2026-01-07 18:49:59 +02:00
parent 04ec098046
commit 608a7f85c0
866 changed files with 56323 additions and 6231 deletions

View File

@@ -0,0 +1,24 @@
# AGENTS - Testing.Chaos Tests
## Roles
- QA / test engineer: deterministic unit tests for chaos testing helpers.
- Backend engineer: maintain test utilities and fixtures.
## Required Reading
- docs/README.md
- docs/07_HIGH_LEVEL_ARCHITECTURE.md
- docs/modules/platform/architecture-overview.md
- src/__Libraries/AGENTS.md
- Current sprint file under docs/implplan/SPRINT_*.md
## Working Directory & Boundaries
- Primary scope: src/__Tests/__Libraries/StellaOps.Testing.Chaos.Tests
- Test target: src/__Tests/__Libraries/StellaOps.Testing.Chaos
- Avoid cross-module edits unless explicitly noted in the sprint file.
## Determinism and Safety
- Avoid DateTimeOffset.UtcNow and real delays in tests.
- Prefer simulated or fake time providers for time-based behavior.
## Testing
- Cover failure injection, choreography steps, and convergence tracking with edge cases.

View File

@@ -14,10 +14,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Moq" />
<PackageReference Include="xunit.v3" />
<PackageReference Include="xunit.runner.visualstudio" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>

View File

@@ -0,0 +1,24 @@
# AGENTS - Testing.Chaos Library
## Roles
- Backend engineer: maintain chaos testing helpers and failure injectors.
- QA / test engineer: ensure deterministic, repeatable chaos simulations.
## Required Reading
- docs/README.md
- docs/07_HIGH_LEVEL_ARCHITECTURE.md
- docs/modules/platform/architecture-overview.md
- src/__Libraries/AGENTS.md
- Current sprint file under docs/implplan/SPRINT_*.md
## Working Directory & Boundaries
- Primary scope: src/__Tests/__Libraries/StellaOps.Testing.Chaos
- Test target: src/__Tests/__Libraries/StellaOps.Testing.Chaos.Tests
- Avoid cross-module edits unless explicitly noted in the sprint file.
## Determinism and Safety
- Avoid DateTimeOffset.UtcNow and Random.Shared; use TimeProvider and deterministic RNG.
- Avoid real Task.Delay in test utilities; prefer simulated time.
## Testing
- Cover failure types, registry parsing, and deterministic ordering behavior.

View File

@@ -0,0 +1,24 @@
# AGENTS - Testing.ConfigDiff Library
## Roles
- Backend engineer: maintain config-diff test helpers.
- QA / test engineer: verify deterministic behavior snapshots and delta checks.
## Required Reading
- docs/README.md
- docs/07_HIGH_LEVEL_ARCHITECTURE.md
- docs/modules/platform/architecture-overview.md
- src/__Libraries/AGENTS.md
- Current sprint file under docs/implplan/SPRINT_*.md
## Working Directory & Boundaries
- Primary scope: src/__Tests/__Libraries/StellaOps.Testing.ConfigDiff
- Used by config-diff test suites in modules.
- Avoid cross-module edits unless explicitly noted in the sprint file.
## Determinism and Safety
- Avoid DateTimeOffset.UtcNow in snapshots; pass explicit timestamps or TimeProvider.
- Use InvariantCulture for value formatting when capturing behavior snapshots.
## Testing
- Cover delta computation, ignored behaviors, and numeric tolerance behavior.

View File

@@ -0,0 +1,24 @@
# AGENTS - Testing.Coverage Library
## Roles
- Backend engineer: maintain coverage parsing and enforcement helpers.
- QA / test engineer: verify deterministic coverage calculations and reporting.
## Required Reading
- docs/README.md
- docs/07_HIGH_LEVEL_ARCHITECTURE.md
- docs/modules/platform/architecture-overview.md
- src/__Libraries/AGENTS.md
- Current sprint file under docs/implplan/SPRINT_*.md
## Working Directory & Boundaries
- Primary scope: src/__Tests/__Libraries/StellaOps.Testing.Coverage
- Used by test suites that enforce coverage thresholds.
- Avoid cross-module edits unless explicitly noted in the sprint file.
## Determinism and Safety
- Avoid DateTimeOffset.UtcNow for report timestamps; use explicit values or TimeProvider.
- Use invariant formatting for coverage percentages and numeric outputs.
## Testing
- Cover Cobertura parsing, dead-path detection, and exemption matching.

View File

@@ -0,0 +1,24 @@
# AGENTS - Testing.Evidence Tests
## Roles
- QA / test engineer: deterministic unit tests for test evidence services.
- Backend engineer: maintain test fixtures and validation coverage.
## Required Reading
- docs/README.md
- docs/07_HIGH_LEVEL_ARCHITECTURE.md
- docs/modules/platform/architecture-overview.md
- src/__Libraries/AGENTS.md
- Current sprint file under docs/implplan/SPRINT_*.md
## Working Directory & Boundaries
- Primary scope: src/__Tests/__Libraries/StellaOps.Testing.Evidence.Tests
- Test target: src/__Tests/__Libraries/StellaOps.Testing.Evidence
- Avoid cross-module edits unless explicitly noted in the sprint file.
## Determinism and Safety
- Avoid DateTimeOffset.UtcNow in fixtures; use FakeTimeProvider or fixed timestamps.
- Keep deterministic ordering when asserting hashes or summaries.
## Testing
- Cover finalization, bundle retrieval, and deterministic hashing paths.

View File

@@ -10,12 +10,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="xunit.v3" />
<PackageReference Include="xunit.runner.visualstudio">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\StellaOps.Testing.Evidence\StellaOps.Testing.Evidence.csproj" />

View File

@@ -0,0 +1,24 @@
# AGENTS - Testing.Evidence Library
## Roles
- Backend engineer: maintain test evidence storage and hashing.
- QA / test engineer: validate determinism and summary calculations.
## Required Reading
- docs/README.md
- docs/07_HIGH_LEVEL_ARCHITECTURE.md
- docs/modules/platform/architecture-overview.md
- src/__Libraries/AGENTS.md
- Current sprint file under docs/implplan/SPRINT_*.md
## Working Directory & Boundaries
- Primary scope: src/__Tests/__Libraries/StellaOps.Testing.Evidence
- Test target: src/__Tests/__Libraries/StellaOps.Testing.Evidence.Tests
- Avoid cross-module edits unless explicitly noted in the sprint file.
## Determinism and Safety
- Use canonical JSON or stable ordering for any hash inputs.
- Avoid nondeterministic timestamps; prefer TimeProvider.
## Testing
- Cover bundle ID/merkle root determinism and summary grouping behavior.

View File

@@ -0,0 +1,24 @@
# AGENTS - Testing.Explainability Library
## Roles
- Backend engineer: maintain explainability assertion helpers.
- QA / test engineer: ensure deterministic, reproducible decision checks.
## Required Reading
- docs/README.md
- docs/07_HIGH_LEVEL_ARCHITECTURE.md
- docs/modules/platform/architecture-overview.md
- src/__Libraries/AGENTS.md
- Current sprint file under docs/implplan/SPRINT_*.md
## Working Directory & Boundaries
- Primary scope: src/__Tests/__Libraries/StellaOps.Testing.Explainability
- Used by explainability test suites across modules.
- Avoid cross-module edits unless explicitly noted in the sprint file.
## Determinism and Safety
- Use ordinal ordering when comparing factor IDs or rule names.
- Avoid culture-sensitive formatting in assertion messages.
## Testing
- Cover reproducibility checks, factor weight validation, and rule-trigger assertions.

View File

@@ -0,0 +1,24 @@
# AGENTS - Testing.Policy Library
## Roles
- Backend engineer: maintain policy diff and regression helpers.
- QA / test engineer: validate deterministic regression checks.
## Required Reading
- docs/README.md
- docs/07_HIGH_LEVEL_ARCHITECTURE.md
- docs/modules/platform/architecture-overview.md
- src/__Libraries/AGENTS.md
- Current sprint file under docs/implplan/SPRINT_*.md
## Working Directory & Boundaries
- Primary scope: src/__Tests/__Libraries/StellaOps.Testing.Policy
- Used by policy regression test suites across modules.
- Avoid cross-module edits unless explicitly noted in the sprint file.
## Determinism and Safety
- Avoid DateTimeOffset.UtcNow in default results; use TimeProvider.
- Use ordinal ordering for factor comparisons and diff outputs.
## Testing
- Cover factor delta detection, allowed-change filtering, and diff ordering.

View File

@@ -0,0 +1,24 @@
# AGENTS - Testing.Replay Tests
## Roles
- QA / test engineer: deterministic unit tests for replay helpers.
- Backend engineer: maintain replay test fixtures and trace builders.
## Required Reading
- docs/README.md
- docs/07_HIGH_LEVEL_ARCHITECTURE.md
- docs/modules/platform/architecture-overview.md
- src/__Libraries/AGENTS.md
- Current sprint file under docs/implplan/SPRINT_*.md
## Working Directory & Boundaries
- Primary scope: src/__Tests/__Libraries/StellaOps.Testing.Replay.Tests
- Test target: src/__Tests/__Libraries/StellaOps.Testing.Replay
- Avoid cross-module edits unless explicitly noted in the sprint file.
## Determinism and Safety
- Avoid DateTimeOffset.UtcNow in trace fixtures; use fixed timestamps.
- Ensure trace ordering and output hashes are deterministic.
## Testing
- Cover query filters, batch replay expectations, and cancellation paths.

View File

@@ -10,12 +10,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="xunit.v3" />
<PackageReference Include="xunit.runner.visualstudio">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\StellaOps.Testing.Replay\StellaOps.Testing.Replay.csproj" />

View File

@@ -0,0 +1,24 @@
# AGENTS - Testing.Replay Library
## Roles
- Backend engineer: maintain replay orchestration helpers.
- QA / test engineer: validate deterministic replay outputs.
## Required Reading
- docs/README.md
- docs/07_HIGH_LEVEL_ARCHITECTURE.md
- docs/modules/platform/architecture-overview.md
- src/__Libraries/AGENTS.md
- Current sprint file under docs/implplan/SPRINT_*.md
## Working Directory & Boundaries
- Primary scope: src/__Tests/__Libraries/StellaOps.Testing.Replay
- Test target: src/__Tests/__Libraries/StellaOps.Testing.Replay.Tests
- Avoid cross-module edits unless explicitly noted in the sprint file.
## Determinism and Safety
- Use deterministic time providers and stable ordering for trace queries.
- Avoid nondeterministic hashes by sorting inputs before hashing.
## Testing
- Cover corpus import/query, output hash determinism, and replay batching.

View File

@@ -0,0 +1,24 @@
# AGENTS - Testing.SchemaEvolution Library
## Roles
- Backend engineer: maintain schema evolution test harnesses.
- QA / test engineer: validate backward/forward compatibility checks.
## Required Reading
- docs/README.md
- docs/07_HIGH_LEVEL_ARCHITECTURE.md
- docs/modules/platform/architecture-overview.md
- src/__Libraries/AGENTS.md
- Current sprint file under docs/implplan/SPRINT_*.md
## Working Directory & Boundaries
- Primary scope: src/__Tests/__Libraries/StellaOps.Testing.SchemaEvolution
- Used by module-specific schema evolution test suites.
- Avoid cross-module edits unless explicitly noted in the sprint file.
## Determinism and Safety
- Avoid DateTimeOffset.UtcNow defaults for schema timestamps.
- Pin or configure container images for deterministic test runs.
## Testing
- Cover migration rollback paths, version selection, and container lifecycle.

View File

@@ -0,0 +1,24 @@
# AGENTS - Testing.Temporal Tests
## Roles
- QA / test engineer: deterministic unit tests for temporal helpers.
- Backend engineer: maintain time simulation fixtures.
## Required Reading
- docs/README.md
- docs/07_HIGH_LEVEL_ARCHITECTURE.md
- docs/modules/platform/architecture-overview.md
- src/__Libraries/AGENTS.md
- Current sprint file under docs/implplan/SPRINT_*.md
## Working Directory & Boundaries
- Primary scope: src/__Tests/__Libraries/StellaOps.Testing.Temporal.Tests
- Test target: src/__Tests/__Libraries/StellaOps.Testing.Temporal
- Avoid cross-module edits unless explicitly noted in the sprint file.
## Determinism and Safety
- Use fixed timestamps in fixtures; avoid DateTimeOffset.UtcNow.
- Avoid real delays in multi-threaded tests.
## Testing
- Cover drift, leap seconds, TTL boundaries, and idempotency scenarios.

View File

@@ -12,12 +12,6 @@
<ItemGroup>
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="xunit.v3" />
<PackageReference Include="xunit.runner.visualstudio">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>

View File

@@ -0,0 +1,24 @@
# AGENTS - Testing.Temporal Library
## Roles
- Backend engineer: maintain temporal test utilities.
- QA / test engineer: validate deterministic time simulation.
## Required Reading
- docs/README.md
- docs/07_HIGH_LEVEL_ARCHITECTURE.md
- docs/modules/platform/architecture-overview.md
- src/__Libraries/AGENTS.md
- Current sprint file under docs/implplan/SPRINT_*.md
## Working Directory & Boundaries
- Primary scope: src/__Tests/__Libraries/StellaOps.Testing.Temporal
- Test target: src/__Tests/__Libraries/StellaOps.Testing.Temporal.Tests
- Avoid cross-module edits unless explicitly noted in the sprint file.
## Determinism and Safety
- Avoid DateTimeOffset.UtcNow defaults; require explicit start times.
- Use stable hashing in comparers to avoid randomized GetHashCode behavior.
## Testing
- Cover leap-second smearing, idempotency comparisons, and time drift math.