Repository navigation
Public/Internal API classification & namespace split (closes #329) - #331
Merged
Merged
Conversation
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.
Summary
Implements the multi-phase initiative tracked in #329: enforce a clean PUBLIC / INTERNAL boundary across
Typhon.Engine,Typhon.Protocol, andTyphon.Schema.Definition.Final shape of the engine surface:
Typhon.Engine(consumer-facing) andTyphon.Engine.Internals(implementation).public/andinternals/subdirectories.What's in this PR
Phase 2a/2b (earlier commits)
src/Typhon.Engine/.*/internals/*.csflipped frompublic->internal, with cascade fixes resolved either by demoting leaking members or codifying the type as PUBLIC where the doc was wrong.ClusterSpatialAabb,SystemAccessDescriptor,ProfilerSessionMetadata,TraceRecordBatch,ExporterQueue.Leak-tightening pass (this branch's main work)
Typhon.Shellredundant entry, plusTyphon.Shell.Extensibility,Typhon.Workbench.Fixtures,Typhon.ARPG.Shell,Typhon.Workbench.Tests— all build clean against the public surface).IViewcarveout resolved: promotedIViewto PUBLIC, reworked the internal delta-buffer contract soViewRegistry.RegisterView(IView, ViewDeltaRingBuffer, …)takes the buffer as an explicit parameter. Removed the#pragma warning disable TYPHON008.IWalFileIOhidden: flipped to internal; engine constructsWalFileIOitself whenDatabaseEngineOptions.Walis set; ctor parameter dropped; AntHill DI registration removed. Side fix: collapsed the two-key WAL gate to one (walOptions != null), eliminating a latent benchmark bug.ClientConnectionhidden: changedTyphonRuntime.SetSubscriptionssignature to takeClientContextinstead ofClientConnection; runtime resolves the connection internally byConnectionId.IMemoryAllocator,MemoryAllocator,MemoryBlockArray,MemoryBlockBase,PinnedMemoryBlock,DeadlineWatchdog,HighResolutionSharedTimerService,ITimerRegistration).DatabaseEnginector flipped to internal — friends construct viaInternalsVisibleTo, public DI extensions still work.Held PUBLIC (documented carveouts)
EpochManager— exposed viaIPageStore.EpochManageraccessed by 30+ generic-constrained hot-path callers.HighResolutionTimerServiceBase—DagSchedulerinherits it.MemoryAllocatorOptions,IMemoryResource,IPageStore, plus the Storage cluster (PagedMMF,ManagedPagedMMF,ChangeSet,PersistentStore, segments/accessors) — Storage tightening explicitly out of scope per Public/Internal API classification & namespace split #329.Final counts
Typhon.EngineTyphon.Schema.DefinitionTyphon.ProtocolVerification
Design doc
claude/research/PublicVsInternalApiClassification.md — methodology, classification rules, per-subsystem tables, and per-resolution audit notes inlined throughout the doc.
Closes #329.