Skip to main content

Coverage

Coverage / Telemetry

πŸ”΅ High-level application shim for intercepting and routing VS Code services through Land's service tree

πŸ”΅ Coverage / Telemetry β€” Application-Level Shim

πŸ”΅ COVERAGE SHIM β€” Application-level service routing and telemetry Tier gate: TierShim=Proxy | TierShim=Replace Color: #2563EB (Blue) Overhead: <1% (passthrough mode)

The Coverage Shim intercepts VS Code at the application service level β€” routing IPC commands through Land’s SwallowMap, proxying the ServiceCollection DI container, and tracking coverage across all 474 decorated services.

πŸ”΅ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  πŸ”΅ COVERAGE β€” Application Layer                         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  IPC SwallowMap         β†’ 15/22 domains                  β”‚
β”‚  ServiceCollection proxy β†’ 35 services (via __CEL__)     β”‚
β”‚  RedirectBus            β†’ Wind/Cocoon/Mountain routing   β”‚
β”‚  AuditLog               β†’ Ring-buffered resolution log   β”‚
β”‚  SwallowMap rules       β†’ Pattern-matching engine        β”‚
β”‚  TierSwallow* per-domain β†’ Individual domain toggles     β”‚
β”‚  CELExposeAccessor      β†’ Workbench bridge hooks         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Coverage: 15 of 22 core domains (growing)               β”‚
β”‚  Target: 474 decorated services                          β”‚
β”‚  Infrastructure: Ready for full-service replacement      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ”΅ Coverage by Domain

DomainStatusTierShim Tier
Status BarπŸ”΅ SWALLOWTierSwallowStatusBar=SwallowReplace
SCM / GitπŸ”΅ SWALLOWTierSwallowSCM=SwallowReplace
SearchπŸ”΅ SWALLOWTierSwallowSearch=SwallowReplace
TerminalπŸ”΅ SWALLOWTierSwallowTerminal=SwallowReplace
OutputπŸ”΅ SWALLOWTierSwallowOutput=SwallowReplace
File SystemπŸ”΅ SWALLOWTierSwallowFile=SwallowReplace
NotificationsπŸ”΅ SWALLOWTierSwallowNotification=SwallowReplace
DialogsπŸ”΅ SWALLOWTierSwallowDialog=SwallowReplace
Quick InputπŸ”΅ SWALLOWTierSwallowQuickInput=SwallowReplace
KeybindingsπŸ”΅ SWALLOWTierSwallowKeybinding=SwallowReplace
ThemesπŸ”΅ SWALLOWTierSwallowTheme=SwallowReplace
ConfigurationπŸ”΅ SWALLOWTierSwallowConfiguration=SwallowReplace
TelemetryπŸ”΅ DISCARDTierSwallowTelemetry=DiscardReplace
Extension GalleryπŸ”΅ SWALLOWTierSwallowGallery=SwallowReplace
Product IdentityπŸ”΅ SWALLOWTierSwallowProduct=SwallowReplace

πŸ”΅ Service Coverage Matrix

CategoryTotal ServicesCoveredCoverage %
Workbench UI251560%
Platform Services1003535%
Editor Core40820%
Extensions30517%
Terminal12433%
Chat/Copilot2500%
Testing800%
Remote1500%
Misc/Specialized21900%
Total4746714%

πŸ”΅ How It Works

The Coverage Shim uses three interception strategies:

  1. IPC Intercept: IPCInterceptor.ts wraps invoke("MountainIPCInvoke") to check the SwallowMap before forwarding to Mountain’s DispatchMatch.

  2. DI Container Proxy: ProxyServiceCollection.ts wraps ServiceCollection.get() and ServiceCollection.set() to log every service resolution and optionally replace services with Land shims.

  3. Audit Logging: AuditLog.ts maintains a ring buffer of all service resolutions, periodically flushed to Mountain’s dev log for coverage analysis.

πŸ”΅ Source Files

FilePurpose
Land/Element/Wind/Source/Shim/SwallowMap.tsPattern-matching decision engine
Land/Element/Wind/Source/Shim/RedirectBus.tsHandler registration and routing
Land/Element/Wind/Source/Shim/IPCInterceptor.tsTauri IPC wrapper
Land/Element/Wind/Source/Shim/AuditLog.tsService resolution auditor
Land/Element/Wind/Source/Shim/Gate.tsTierShim activation gate
Land/Element/Output/Source/Service/CEL/Land/Shim/Init.tsRuntime injection module

πŸ”΅ COVERAGE TELEMETRY β€” ACTIVE β€” This component tracks service resolution, event routing, and domain coverage. All data flows through Land’s diagnostic pipeline (OTLP/PostHog/dev log). No data leaves the local machine.