stabilize tests

This commit is contained in:
master
2026-02-01 21:37:40 +02:00
parent 55744f6a39
commit 5d5e80b2e4
6435 changed files with 33984 additions and 13802 deletions

View File

@@ -30,88 +30,88 @@ Consolidate reachability data from Scanner, Signals, and Attestor into a single,
### Component Diagram
```
┌──────────────────────────────────────────────────────────────────┐
ReachGraph Module
├──────────────────────────────────────────────────────────────────┤
│ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │
│ │ Schema Layer │ │ Serialization │ │ Signing Layer │ │
│ │ │ │ │ │ │ │
│ │ ReachGraphMin │ │ Canonical JSON │ │ DSSE Wrapper │ │
│ │ EdgeExplanation │ │ BLAKE3 Digest │ │ Verification │ │
│ │ Provenance │ │ Compression │ │ │ │
│ └────────┬────────┘ └────────┬────────┘ └────────┬────────┘ │
│ ┌────────▼────────────────────▼────────────────────▼────────┐ │
│ │ Store Layer │ │
│ │ │ │
│ │ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │ │
│ │ │ Repository │ │ Slice Engine │ │ Replay Driver │ │
│ │ └──────────────┘ └──────────────┘ └──────────────┘ │ │
│ └────────────────────────────────────────────────────────────┘ │
│ ┌───────────────────────────▼───────────────────────────────┐ │
│ │ Persistence Layer │ │
│ │ │ │
│ │ ┌──────────────┐ ┌──────────────┐ │ │
│ │ │ PostgreSQL │ │ Valkey │ │
│ │ │ (primary) │ │ (cache) │ │
│ │ └──────────────┘ └──────────────┘ │ │
│ └────────────────────────────────────────────────────────────┘ │
└──────────────────────────────────────────────────────────────────┘
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
??? ReachGraph Module ???
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
??? ????????????????????????????????????????????????????????? ????????????????????????????????????????????????????????? ????????????????????????????????????????????????????????? ???
??? ??? Schema Layer ??? ??? Serialization ??? ??? Signing Layer ??? ???
??? ??? ??? ??? ??? ??? ??? ???
??? ??? ReachGraphMin ??? ??? Canonical JSON ??? ??? DSSE Wrapper ??? ???
??? ??? EdgeExplanation ??? ??? BLAKE3 Digest ??? ??? Verification ??? ???
??? ??? Provenance ??? ??? Compression ??? ??? ??? ???
??? ????????????????????????????????????????????????????????? ????????????????????????????????????????????????????????? ????????????????????????????????????????????????????????? ???
??? ??? ??? ??? ???
??? ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ???
??? ??? Store Layer ??? ???
??? ??? ??? ???
??? ??? ???????????????????????????????????????????????? ???????????????????????????????????????????????? ???????????????????????????????????????????????? ??? ???
??? ??? ??? Repository ??? ??? Slice Engine ??? ??? Replay Driver??? ??? ???
??? ??? ???????????????????????????????????????????????? ???????????????????????????????????????????????? ???????????????????????????????????????????????? ??? ???
??? ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ???
??? ??? ???
??? ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ???
??? ??? Persistence Layer ??? ???
??? ??? ??? ???
??? ??? ???????????????????????????????????????????????? ???????????????????????????????????????????????? ??? ???
??? ??? ??? PostgreSQL ??? ??? Valkey ??? ??? ???
??? ??? ??? (primary) ??? ??? (cache) ??? ??? ???
??? ??? ???????????????????????????????????????????????? ???????????????????????????????????????????????? ??? ???
??? ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ???
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
```
### Project Structure
```
src/__Libraries/StellaOps.ReachGraph/
├── Schema/
│ ├── ReachGraphMinimal.cs # Top-level graph structure
│ ├── ReachGraphNode.cs # Node with metadata
│ ├── ReachGraphEdge.cs # Edge with explanation
│ ├── EdgeExplanation.cs # Why the edge exists
│ └── ReachGraphProvenance.cs # Input tracking
├── Serialization/
│ ├── CanonicalReachGraphSerializer.cs
│ ├── SortedKeysJsonConverter.cs
│ └── DeterministicArraySortConverter.cs
├── Hashing/
│ ├── ReachGraphDigestComputer.cs
│ └── Blake3HashProvider.cs
├── Signing/
│ ├── IReachGraphSignerService.cs
│ └── ReachGraphSignerService.cs
├── Store/
│ ├── IReachGraphRepository.cs
│ ├── PostgresReachGraphRepository.cs
│ └── SliceQueryEngine.cs
├── Cache/
│ ├── IReachGraphCache.cs
│ └── ValkeyReachGraphCache.cs
├── Replay/
│ ├── IReplayDriver.cs
│ └── DeterministicReplayDriver.cs
└── StellaOps.ReachGraph.csproj
????????? Schema/
??? ????????? ReachGraphMinimal.cs # Top-level graph structure
??? ????????? ReachGraphNode.cs # Node with metadata
??? ????????? ReachGraphEdge.cs # Edge with explanation
??? ????????? EdgeExplanation.cs # Why the edge exists
??? ????????? ReachGraphProvenance.cs # Input tracking
????????? Serialization/
??? ????????? CanonicalReachGraphSerializer.cs
??? ????????? SortedKeysJsonConverter.cs
??? ????????? DeterministicArraySortConverter.cs
????????? Hashing/
??? ????????? ReachGraphDigestComputer.cs
??? ????????? Blake3HashProvider.cs
????????? Signing/
??? ????????? IReachGraphSignerService.cs
??? ????????? ReachGraphSignerService.cs
????????? Store/
??? ????????? IReachGraphRepository.cs
??? ????????? PostgresReachGraphRepository.cs
??? ????????? SliceQueryEngine.cs
????????? Cache/
??? ????????? IReachGraphCache.cs
??? ????????? ValkeyReachGraphCache.cs
????????? Replay/
??? ????????? IReplayDriver.cs
??? ????????? DeterministicReplayDriver.cs
????????? StellaOps.ReachGraph.csproj
src/__Libraries/StellaOps.ReachGraph.Persistence/
├── Migrations/
│ └── 001_reachgraph_store.sql
├── Models/
│ └── SubgraphEntity.cs
└── StellaOps.ReachGraph.Persistence.csproj
????????? Migrations/
??? ????????? 001_reachgraph_store.sql
????????? Models/
??? ????????? SubgraphEntity.cs
????????? StellaOps.ReachGraph.Persistence.csproj
src/ReachGraph/
├── StellaOps.ReachGraph.WebService/
│ ├── Endpoints/
│ │ ├── ReachGraphEndpoints.cs
│ │ └── SliceQueryEndpoints.cs
│ ├── Contracts/
│ │ ├── UpsertRequest.cs
│ │ ├── SliceQueryRequest.cs
│ │ └── ReplayRequest.cs
│ ├── Program.cs
│ └── openapi.yaml
└── __Tests/
└── StellaOps.ReachGraph.WebService.Tests/
????????? StellaOps.ReachGraph.WebService/
??? ????????? Endpoints/
??? ??? ????????? ReachGraphEndpoints.cs
??? ??? ????????? SliceQueryEndpoints.cs
??? ????????? Contracts/
??? ??? ????????? UpsertRequest.cs
??? ??? ????????? SliceQueryRequest.cs
??? ??? ????????? ReplayRequest.cs
??? ????????? Program.cs
??? ????????? openapi.yaml
????????? __Tests/
????????? StellaOps.ReachGraph.WebService.Tests/
```
---
@@ -357,9 +357,9 @@ reachgraph:
## Related Documentation
- `docs/implplan/SPRINT_1227_0012_0001_LB_reachgraph_core.md`
- `docs/implplan/SPRINT_1227_0012_0002_BE_reachgraph_store.md`
- `docs/implplan/SPRINT_1227_0012_0003_FE_reachgraph_integration.md`
- `docs-archived/implplan/SPRINT_1227_0012_0001_LB_reachgraph_core.md`
- `docs-archived/implplan/SPRINT_1227_0012_0002_BE_reachgraph_store.md`
- `docs-archived/implplan/SPRINT_1227_0012_0003_FE_reachgraph_integration.md`
- `src/Attestor/POE_PREDICATE_SPEC.md` (predecessor schema)
- `docs/modules/scanner/architecture.md`
- `docs/modules/signals/architecture.md`
@@ -367,3 +367,4 @@ reachgraph:
---
_Module created: 2025-12-27. Owner: ReachGraph Guild._

View File

@@ -1,7 +1,8 @@
// Licensed to StellaOps under the BUSL-1.1 license.
using System.Collections.Immutable;
using StellaOps.ReachGraph.Schema;
using System.Collections.Immutable;
namespace StellaOps.ReachGraph.Deduplication;

View File

@@ -1,7 +1,8 @@
// Licensed to StellaOps under the BUSL-1.1 license.
using System.Collections.Immutable;
using StellaOps.ReachGraph.Schema;
using System.Collections.Immutable;
namespace StellaOps.ReachGraph.Deduplication;

View File

@@ -1,5 +1,6 @@
// Licensed to StellaOps under the BUSL-1.1 license.
using Blake3;
using StellaOps.ReachGraph.Schema;
using StellaOps.ReachGraph.Serialization;

View File

@@ -1,10 +1,11 @@
// Licensed to StellaOps under the BUSL-1.1 license.
using StellaOps.ReachGraph.Schema;
using System.Collections.Immutable;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
using StellaOps.ReachGraph.Schema;
namespace StellaOps.ReachGraph.Serialization;

View File

@@ -1,7 +1,8 @@
// Licensed to StellaOps under the BUSL-1.1 license.
using System.Collections.Immutable;
using StellaOps.ReachGraph.Schema;
using System.Collections.Immutable;
namespace StellaOps.ReachGraph.Signing;

View File

@@ -1,11 +1,12 @@
// Licensed to StellaOps under the BUSL-1.1 license.
using System.Collections.Immutable;
using System.Text;
using Microsoft.Extensions.Logging;
using StellaOps.ReachGraph.Hashing;
using StellaOps.ReachGraph.Schema;
using StellaOps.ReachGraph.Serialization;
using System.Collections.Immutable;
using System.Text;
namespace StellaOps.ReachGraph.Signing;

View File

@@ -8,3 +8,4 @@ Source of truth: `docs-archived/implplan/2025-12-29-csproj-audit/SPRINT_20251229
| AUDIT-0105-M | DONE | Revalidated 2026-01-08; maintainability audit for ReachGraph core. |
| AUDIT-0105-T | DONE | Revalidated 2026-01-08; test coverage audit for ReachGraph core. |
| AUDIT-0105-A | TODO | Pending approval (revalidated 2026-01-08). |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |