Description
Summary
The Phase 0 namespace migration (#329, merged 2026-05-11) flattened Typhon:Telemetry:Profiler:* config to
Typhon:Profiler:* but kept a back-compat shim "for one release," explicitly promising removal "in the next
minor." Multiple releases have shipped since (#350, #351/352/355, #359, #364/365/366, #399, #405...) and the shim
is still there. Confirmed directly in code — this isn't just a stale doc claim.
What's still there
src/Typhon.Engine/Observability/public/TelemetryConfig.cs (1693 lines, 23 references to Typhon:Telemetry):
ReadBoolFallback(config, newKey, oldKey, ...)— every legacy-aware flag (Scheduler tracking flags, GC/memory/
gauges profiler flags, etc.) carries a deadoldKeybranch.ReadMasterEnabled— special-cased legacy logic requiringTyphon:Telemetry:EnabledAND
Typhon:Telemetry:Profiler:Enabledbothtrue.LegacyConfigDetected(public flag) +EmitDeprecationWarning()— writes toConsole.Errorat static-class
load when any legacy key is present.- XML doc comments throughout referencing the legacy paths (lines 40-45, 55, 70-72, 94, etc.).
src/Typhon.Engine/Observability/public/TelemetryServiceExtensions.cs:
AddTyphonTelemetry(this IServiceCollection)—[Obsolete("...provided for one release and will be removed in the next minor.")]delegating shim toAddTyphonProfiler. Same overdue promise.
No tests exercise the legacy paths specifically (TelemetryConfigResolverTests only tests current-namespace
resolution), so removal has no test-suite fallout beyond deleting now-dead code.
Why remove now, not defer again
Per Loïc: nobody uses Typhon as a dependency today — there is no real deployment reading the old
Typhon:Telemetry:* paths to break. Keeping a deprecation shim alive past its own stated expiry with zero
consumers is pure debt for no compatibility benefit.
Doc fallout (same claim, two copies + one pre-existing bug)
doc/feature-set/Observability/telemetry-config-gating.md— the guarantee bullet claiming the shim ("emits a
deprecation warning... will be removed") needs to go once the code does.doc/in-depth-overview/12-observability.md:119— same claim, second copy, same fix.claude/overview/09-observability.md:159-161— pre-existing, unrelated bug found while checking this: shows
threeAddTyphonTelemetry(...)overloads ((configuration),(),(opts => ...)) as if they exist. Only the
parameterless obsolete shim exists — the other two overloads were never implemented. Already flagged in
claude/scratch/overview-audit.md:158. Worth fixing in the same pass since it's the same file/area.
Related — broader cleanup already scoped, not required here
claude/scratch/tracing-instrumentation-proposal.md (§ item 0, "Telemetry-namespace cleanup (precursor)") already
scopes a larger superset of this: dead *Active/*Enabled/*Track* flags, a parallel TelemetryOptions IOptions
hierarchy, SchedulerTrack* flag migration, SpatialActive gate deletion, 5 typhon.telemetry.json file
migrations, a Workbench TS string fix, and a stale PITCH.md:208 reference — estimated "~400 lines deleted, 5 JSON
migrations." This issue is intentionally narrower: just the expired back-compat shim + its doc claims. The larger
proposal is a reasonable follow-on if there's appetite, not a prerequisite.
Acceptance criteria
-
TelemetryConfig.cs: deleteReadBoolFallback's legacy-key parameter/branch (callers pass only the new key),
ReadMasterEnabled's legacy special-case,LegacyConfigDetected,EmitDeprecationWarning(), and all
Typhon:Telemetry:*doc-comment references. -
TelemetryServiceExtensions.cs: deleteAddTyphonTelemetry. -
doc/feature-set/Observability/telemetry-config-gating.mdanddoc/in-depth-overview/12-observability.md:
remove the legacy-shim guarantee bullet. -
claude/overview/09-observability.md:159-161: fix to reflect the actual (single, parameterless)
AddTyphonProfiler()surface. - Full test suite green; no
Typhon:Telemetry:*string remains outside historicalclaude/design docs
documenting the original migration.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Estimate
Area
Start date
Target date
Product
Projects
- StatusShow more project fieldsDone
Activity
nockawa commentedon Jul 3, 2026
Implemented — ready for review + commit (branch
feature/443-remove-telemetry-config-shim)Pure deletion of the expired back-compat shim + doc alignment. Net −164 / +22 (158 lines gone from
TelemetryConfig.cs).Acceptance criteria
TelemetryConfig.cs: deletedReadBoolFallback(method + all 5 call-site legacy branches),ReadMasterEnabled's legacy special-case (collapsed the master switch into the existingReadBool— provably equivalent),LegacyConfigDetected,EmitDeprecationWarning(), the legacy-presence-detection block, theLegacy Config Detectedsummary line, allTyphon:Telemetry:*doc-comments, and the now-unusedusing System.Linq;.TelemetryServiceExtensions.cs: deletedAddTyphonTelemetry(zero callers in solution).telemetry-config-gating.md+12-observability.md.claude/overview/09-observability.md:159-161was overwritten by the Runtime-gated correctness checks ("strict mode") for the Release NuGet #422 strict-mode merge; those lines now documentCheckConfig, andAddTyphonTelemetrysurvives nowhere but the (now-deleted) shim. Nothing left to fix.*WhenLockTimeout*/VariableSizedBufferAccessor_Constructor_WhenLockTimeout— that pass in isolation and are unrelated to config). Grep-verified: zeroTyphon:Telemetry:*/TYPHON__TELEMETRY__*insrc/,doc/,tools/,test/.Two decisions taken (approved)
SchedulerArchetypeTouchesActive— this call'sReadBoolFallbackargs were reversed (its primary key was the legacyTyphon:Telemetry:Scheduler:ArchetypeTouches). Flipped to readTyphon:Profiler:Scheduler:ArchetypeTouches:Enabled(defaulttruepreserved). No other code/config reads either exact key string.profiler-lifecycle-bootstrap.md, an old two-gate options table intyped-event-capture-pipeline.md) corrected to the flattenedTyphon:Profiler:*shape. 6 doc files total.Tests
test/Typhon.Engine.Tests/Observability/TelemetryShimRemovedTests.cs— assertsLegacyConfigDetectedfield andAddTyphonTelemetrymethod stay absent (fails if the shim is re-introduced). Passes.TelemetryConfigCpuSamplingTestsstill green (exercisesGetConfigurationSummary()after theLegacyline removal).TelemetryConfigis static-init-once from ambient config, so theArchetypeToucheskey-flip isn't behaviorally unit-testable without an out-of-scope refactor; its proof is the green suite + equivalence argument.Review
Independent adversarial code review: PASS — master-switch semantics proven unchanged input-by-input, all retained keys/defaults correct, zero dangling references, no
CS1574/CS0618, guard test correct.Solved #443 + update claude skills (PR #449)