| Filename | Latest commit message | Latest commit date |
|---|---|---|
R-V (S-1): byKey and BuildIncomingIndex keyed the hop's row resolution by a bare record key. Two schemas sharing one key collapsed into a single dictionary slot (last writer wins), so which row a reference/citation resolved to - and therefore whether a selection matched or refused reference_outside_target - depended on row insertion order. byKey is now a bare-key -> row-list index, and a shared TryResolveReferenceTarget searches each edge's declared leaf set to resolve the one row that actually belongs to it, deterministically regardless of order (Soul's P2, tested both ways). EdgesFor's page-row anchor index is keyed the same way for the same reason. R-W (S-2): EnsureWithinDeclaredTarget's equivalent check (now folded into TryResolveReferenceTarget) now runs for every edge a reference carries, before a citation's own key/schema filters that edge out - not only for the edge the citation happens to ask about. A many-reference edge into a schema outside its declared target refuses the selection even when the caller's key filter would otherwise skip past it without ever inspecting it (Soul's P3). S-8: the dead `targetType ?? typeof(object)` fallback is deleted. D11 already refuses every reference shape whose target the cache cannot infer before it can reach the evaluator, so the branch had no reachable fixture. R-Y: the cursor's HMAC now covers its own body (asOf, ordinal, schemaId, recordKey) as well as the selection. Before this, a forged cursor could reuse a legitimately minted digest while rewriting the ordinal or record key underneath it, since nothing about the body was ever authenticated (Soul's P4). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
| .. | ||
| CultNetCanonicalNumberTests.cs | ||
| CultNetDocumentBindingResolverTests.cs | ||
| CultNetOperationServerTests.cs | ||
| CultNetSchemaContractTests.cs | ||
| CultNetSchemaServerGroupTests.cs | ||
| CultNetSelectionEvaluatorTests.cs | ||
| CultNetSelectionFixBatchTests.cs | ||
| CultNetSelectionPageTests.cs | ||
| GameCult.Networking.Tests.csproj | ||
| MiniJsonSchemaValidator.cs | ||
| NetworkingTests.cs | ||
| README.md | ||
| SelectionParityVectorTests.cs | ||
GameCult.Networking.Tests
GameCult.Networking.Tests contains NUnit tests for the networking library.
Scope
The tests currently cover:
- AES-GCM encrypt/decrypt round-trips in
Secret - signed session-token validation
- signed session-token tamper detection
- signed session-token expiry handling
Run
dotnet test tests\GameCult.Networking.Tests\GameCult.Networking.Tests.csproj
Adding New Tests
Typical future areas to expand include:
- client reconnect and verify flows
- login and registration integration tests
- malformed message handling
- rate-limiting behavior under concurrency