bottlenecks

How bottlenecks turns a request into a recorded analysis

Cel i rezultat

This is the contract of the modules, the request flow and the stored records. The rationale is in the decision.

Zakres i rozwiązanie

NL ─► nl.IntentParser ─► nl.SemanticCache ─► nl.LLMTranslator (optional)
CLI / REST / MCP ─────────────► dsl.DSLCommand ─► engine.Engine.execute
                                       │ registry.ActionRegistry (validate)
                                       ▼
          code · runtime · pipeline · system analyzers ─► models.Report
                                       ▼
                     ledger.Ledger: events.jsonl + ledger.sqlite3

Schemas: src/bottlenecks/schemas/*.schema.json, also served by GET /schema.

Weryfikacja

pytest, bottlenecks self-test and bottlenecks registry show the live contract.

Ryzyka i następny krok

The SQLite projection is disposable and is rebuilt from events.jsonl. The NL lexicon in profiles/nl-lexicon.json is data; extend it with tests.