Repository navigation
#422 Runtime-gated correctness checks - strict mode for the Release NuGet - #447
Merged
Merged
Conversation
Collaborator
Author
|
/benchmark |
Contributor
|
🏎️ Benchmark ( |
Collaborator
Author
|
/benchmark |
Contributor
|
🏎️ Benchmark ( |
Collaborator
Author
|
/benchmark |
Contributor
|
🏎️ Benchmark ( |
Contributor
|
📊 Benchmark ( |
Collaborator
Author
|
/benchmark |
Contributor
|
🏎️ Benchmark ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #422.
Converts the user-valuable DEBUG-only checks stripped from the Release NuGet into runtime-gated "strict mode" checks, plus always-on Tier-0 corruption guards. Off by default, JIT-folded to ~zero when off.
What's here
ManagedPagedMMFduplicate-root + 2×AccessControlwrong-thread release/demote →ThrowHelper.ThrowCorruption; 7×SpatialRTree.QueryDFS-overflow → new latch-safeSpatialRTreeDiagnostics(counter + one-shot[LoggerMessage]).CheckConfig— the strict-mode gate (Enabled+DeclaredAccessActive,static readonlyJIT-fold), reusingTelemetryConfig's config source, wired in theProfilerBootstrapmodule-init.Require/Recordprimitives with a lazy interpolated-string message handler.EntityRef,ClusterRef,ComponentValue,EntityId,EcsQuery,PointInTimeAccessor,Transaction(.ECS),SystemAccessValidator(behindDeclaredAccessActive),PagedMMF/BootstrapDictionary/PagedHashMapBase; affinity field promoted out of#if DEBUG.doc/feature-set/Observability/strict-mode-checks.md).Acceptance criteria
All 8 met — see the implementation summary comment on the issue for AC-by-AC evidence.
Deviation:
PackedDateTime's 3 checks deferred (it's inTyphon.Schema.Definition, a leaf assembly Engine depends on → can't referenceCheckConfigwithout a cycle). Net ~47, not 50.Verification
typhon.telemetry.json).ExceptionPathLeakTests×3, oneTransactionTestsread) that all pass in isolation.The single commit
cb6caaf "Solved #422"also carries changes that are not part of #422 and rode in from the working tree:src/Typhon.Engine/Observability/public/TraceIdEnricher.cs(deleted) +src/Typhon.Engine/Typhon.Engine.csproj— belong to the Distribution/Packaging work (Package the Typhon engine as a NuGet (bundle + metadata + symbols) #427–434).doc/in-depth-overview/*edits (01-foundation,06-ecs,08-transactions,10-runtime,README) — not authored as part of this feature.Consider splitting these out before merge if you want a clean #422-only history. Also note the matching
claude/docs (design-doc promotion +overview/09-observability.md) are not yet committed in the nested docs repo.🤖 Generated with Claude Code