You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invert the source of truth for Typhon's 224 telemetry flags: one declarative JSONC catalog -> source-generated perf projection (TelemetryConfig.g.cs) + runtime catalog (TelemetryFlagCatalog.g.cs); docs regenerate from it (retiring the C#-source reverse-parser). Add a typhon telemetry CLI to author typhon.telemetry.json in the working directory -- scriptable verbs + an interactive tri-state tree -- so users can discover/toggle flags without hand-editing nested JSON or memorising key paths.
Tasks tracked as sub-issues.
Acceptance criteria
telemetry-flags.jsonc is the single source; docs + static readonly bool fields + runtime catalog all derive from it.
Generated TelemetryConfig.g.cs is byte-equivalent (field set + values) to the current hand-written class (golden diff) before the hand-written version is deleted.
Scope: whole feature (T1–T6), one PR on feature/cli-telemetry-config. Design: claude/design/Observability/telemetry-config-catalog-cli.md.
OQ4 refinement (approved):Typhon.Generators is IsPackable=false and not shipped to consumers (only Typhon.Generators.Consumer ships the TraceEvent subset). So the telemetry generators live in Typhon.Generators and are simply excluded from .Consumer — no new Typhon.Generators.Telemetry assembly. Same guarantee, one fewer project.
Sequencing: T1 → T2 → T3 → T4 → T5 → T6. T2's golden-equivalence gate is the critical path — nothing is deleted until generated ≡ current is proven.
Gate: mandatory code review (/review + /simplify + self-review vs ACs/design/claude/rules) before completion. No commits — hand off "ready for review + commit".
Implementation complete (T1–T6) — ready for review + commit
All six tasks landed on feature/cli-telemetry-config; nothing committed (per convention).
Two in-flight pivots (both approved):
Field naming → preserve exact names, not full-procedural. The field names are a hard ABI — 96 [TraceEvent(Gate="…")] strings bind to them, plus irregular acronym casing (Data:MVCC:ChainWalk → DataMvccChainWalkActive). The catalog stores each exact field (+ enabledField for composites); the generator emits them verbatim → zero call-site / gate-string renames. Only 2 zero-consumer aliases dropped.
Generator home → existing Typhon.Generators (already IsPackable=false, not consumer-shipped), excluded from .Consumer. No new assembly (OQ4 refined).
Verification:
Engine + Shell build green. Docs regenerate from the catalog; gen-telemetry-reference.py --check + docs-affected.py --validate green.
Full engine suite: 4020 passed / 0 failed / 38 skipped (a 2-failure earlier run was pre-existing parallel-load flakiness — passed clean on re-run).
8 telemetry + 3 new catalog tests pass; CLI verbs smoke-tested (presets, minimal-JSONC writes, near-match suggestions, and both exceptions surfaced correctly incl. the leaf-under-off-parent footgun).
Net −1,584 LOC (the hand-written ctor/fields deleted; ABI now generated from telemetry-flags.jsonc).
Follow-ups noted: no Shell test project exists (T5/T6 lack dedicated unit tests — model is covered via the engine resolver + smoke tests); design doc carries an "implementation pivots" callout reconciling the above.
Closing as completed — all six tasks shipped in PR #556 and are on main; only the bookkeeping lagged. All seven acceptance criteria on this issue are met and now ticked.
Generator home — an approved pivot, not a deviation (T2 — Source generator: emit TelemetryConfig.g.cs (perf projection) #524/T3 — Source generator: emit TelemetryFlagCatalog.g.cs (runtime tree) #525). The sub-issue bodies carried the original OQ4 decision (a dedicated Typhon.Generators.Telemetry assembly); the design doc's Implementation pivots banner already records that it was superseded in-flight. As shipped it is a namespace inside Typhon.Generators. OQ4's guarantee holds regardless: Typhon.Generators is IsPackable=false and only the Typhon.Generators.Consumer subset ships, so pack-check is unaffected. The doc's OQ4 entry and §2 still stated the pre-pivot plan and read as self-contradictory — both are now annotated.
Activity
typhon telemetrynon-interactive verbs #527typhon telemetry editinteractive tri-state tree #528nockawa commentedon Jul 19, 2026
Accepted implementation plan (2026-07-19)
Scope: whole feature (T1–T6), one PR on
feature/cli-telemetry-config. Design:claude/design/Observability/telemetry-config-catalog-cli.md.OQ4 refinement (approved):
Typhon.GeneratorsisIsPackable=falseand not shipped to consumers (onlyTyphon.Generators.Consumerships the TraceEvent subset). So the telemetry generators live inTyphon.Generatorsand are simply excluded from.Consumer— no newTyphon.Generators.Telemetryassembly. Same guarantee, one fewer project.Sequencing: T1 → T2 → T3 → T4 → T5 → T6. T2's golden-equivalence gate is the critical path — nothing is deleted until generated ≡ current is proven.
Acceptance criteria (per task):
telemetry-flags.jsonc(AdditionalFiles), all 224 keys/234 fields with kind/default/desc/children + 3 exceptions; faithfulness = re-emitting today's.template.jsoncfrom it is byte-identical.TelemetryConfigGeneratoremitsTelemetryConfig.g.cs(234static readonly bool+ static ctor, procedural names, 3 gauge renames + 4 call sites, 2 aliases dropped, collision-fails-build); golden equivalence proven before deleting the hand-written fields/ctor; helpers stay in a hand-written partial; gate-shape/resolver/cpu tests green.TelemetryFlagCatalog.g.csruntime tree (TelemetryFlagDescriptor+ nav), same generator, not in.Consumer.gen-telemetry-reference.pyreads the catalog (reverse-parse deleted); outputs byte-identical;--check+docs-affected.py --validategreen; build-docs comment fixed; docs-affected-map entry added.typhon telemetrynon-interactive verbs #527:typhon telemetry list/enable/disable/reset/effective+presetover./typhon.telemetry.json; minimal JSONC writes; effective-state honoring the exceptions.typhon telemetry editinteractive tri-state tree #528:typhon telemetry edit— Terminal.Gui tri-state tree, effective-state, honest cascade; model unit-tested.Gate: mandatory code review (
/review+/simplify+ self-review vs ACs/design/claude/rules) before completion. No commits — hand off "ready for review + commit".nockawa commentedon Jul 19, 2026
Implementation complete (T1–T6) — ready for review + commit
All six tasks landed on
feature/cli-telemetry-config; nothing committed (per convention).Two in-flight pivots (both approved):
[TraceEvent(Gate="…")]strings bind to them, plus irregular acronym casing (Data:MVCC:ChainWalk→DataMvccChainWalkActive). The catalog stores each exactfield(+enabledFieldfor composites); the generator emits them verbatim → zero call-site / gate-string renames. Only 2 zero-consumer aliases dropped.Typhon.Generators(alreadyIsPackable=false, not consumer-shipped), excluded from.Consumer. No new assembly (OQ4 refined).Verification:
gen-telemetry-reference.py --check+docs-affected.py --validategreen.Net −1,584 LOC (the hand-written ctor/fields deleted; ABI now generated from
telemetry-flags.jsonc).Follow-ups noted: no Shell test project exists (T5/T6 lack dedicated unit tests — model is covered via the engine resolver + smoke tests); design doc carries an "implementation pivots" callout reconciling the above.
Onboarding: SWG sample assembly + typhon new/ui/telemetry/docs CLI (#531
nockawa commentedon Aug 10, 2026
Closing as completed — all six tasks shipped in PR #556 and are on
main; only the bookkeeping lagged. All seven acceptance criteria on this issue are met and now ticked.Verified against
maintoday:mainsrc/Typhon.Engine/Observability/telemetry-flags.jsonc+scripts/bootstrap-telemetry-catalog.pyTelemetryConfig.g.csTelemetryConfigGenerator.cs; hand-written gate fields + ctor gone,TelemetryConfig.csretained as the non-gate partial half (helpers only)TelemetryFlagCatalog.g.csTelemetryFlagCatalogGenerator.csgen-telemetry-reference.pyreads the catalog; C# reverse-parse gonepreset,TelemetryCommands.cseditTUITelemetryEditor.csTwo things worth recording rather than losing:
Generator home — an approved pivot, not a deviation (T2 — Source generator: emit TelemetryConfig.g.cs (perf projection) #524/T3 — Source generator: emit TelemetryFlagCatalog.g.cs (runtime tree) #525). The sub-issue bodies carried the original OQ4 decision (a dedicated
Typhon.Generators.Telemetryassembly); the design doc's Implementation pivots banner already records that it was superseded in-flight. As shipped it is a namespace insideTyphon.Generators. OQ4's guarantee holds regardless:Typhon.GeneratorsisIsPackable=falseand only theTyphon.Generators.Consumersubset ships, sopack-checkis unaffected. The doc's OQ4 entry and §2 still stated the pre-pivot plan and read as self-contradictory — both are now annotated.One T4 — Repoint docs pipeline to the catalog; retire the reverse-parser #526 acceptance criterion was genuinely not met —
coverage/docs-affected-map.jsonhas zero telemetry entries, leaving telemetry unmapped for the Layer-2 doc-accuracy reviewer. Carved out as docs-affected map has no telemetry entry — Layer-2 reviewer is blind to telemetry doc drift #748 rather than swept under the close.