Skip to content

Domain Reference

These are the largest functional communities auto-detected from the Layerr codebase using graph analysis. Each community is a cluster of tightly coupled symbols (functions, classes, types) that work together on a single concern.

Credential management, key rotation, provider authentication, and secret storage.

Key files:

  • security/rotation/engine.ts, CredentialRotationEngine, getRotationEngine, initRotationEngine
  • security/rotation/engine.ts, secret lifecycle management

React hooks for data fetching, UI state, and feature integration.

Key files:

  • src/features/intelligence/hooks.ts, useCalibration, useReplayTraceList, useReplayTrace
  • Various feature-specific hooks across the UI layer

Adaptive learning, calibration, workspace health analysis, and strategy evaluation.

Key files:

  • src/features/intelligence/hooks.ts, calibration and snapshot hooks
  • repo/intelligence/scanner.ts, codebase scanning
  • repo/intelligence/profiler.ts, workload profiling
  • src/features/workspaces/health/WorkspaceHealthView.tsx, health dashboard

Cost tracking, savings computation, budget protection, and provider pricing.

Key files:

  • src/features/providers/economics/ProviderEconomicsOverlay.tsx, provider cost UI
  • src/replay/ReplayEconomicOverlay.tsx, per-trace cost breakdown

Animation preferences, UI motion, and reduced-motion support.

License activation, validation, snapshot management, and event tracking.

Per-provider rate limiting, quota management, and request throttling.

Provider registration, resolution, health checks, and capability matching.

Key files:

  • providers/resolution.ts, URL resolution and credential injection
  • capabilities/registry.ts, capability registration and seeding

Analytics dashboards, intelligence summaries, and trend visualization.

Fallback chains, retry logic, circuit breakers, and error recovery.

Key files:

  • orchestration/fallback.ts, buildFallbackChain, resolvePrimaryProvider

Metrics collection, trace emission, and observability hooks.

Quality scoring, grading, and confidence calculation.

Key files:

  • evaluation/quality/engine.ts, QualityScoringEngine.scoreTrace

Code-specific evaluation, syntax validation, and coding benchmarks.

Key files:

  • evaluation/coding/validators.ts, code quality validators

Session management, state persistence, and user context.

Explainability (17 symbols, cohesion 0.90)

Section titled “Explainability (17 symbols, cohesion 0.90)”

Decision explanation, rationale building, and structured output.

Key files:

  • explainability/explainer.ts, buildScoringExplanation, buildOrchestrationExplanation

Scheduled secret rotation and credential lifecycle.

Key files:

  • security/rotation/engine.ts, rotation engine

Persistence layer for traces, replay data, and replay analysis.

Key files:

  • storage/replay.ts, listRecentTraces, analyzeRecentTraces

Workload analysis, classification, and complexity estimation.

Key files:

  • repo/intelligence/scanner.ts, codebase scanning
  • repo/intelligence/profiler.ts, profiling engine