P

Enterprise AI Execution Layer

Phase 0: instrumentation

Measure first: a logging and grading harness that must be trustworthy before any routing claim is made.

EAEL is a design for routing enterprise tasks across models and optimising their context. Phase 0 builds the wind tunnel first: a logging and measurement pipeline that later cost and quality claims can rest on. The full routing architecture is deliberately parked until this is in place.

What it does

  • A canonical TaskRecord schema and an append-only JSONL logger that computes cost per call from token counts and a price table.
  • A timed_task() context manager wraps any model call so baseline runs are logged the same way as experiments.
  • Three grading paths: test-based, rubric and LLM-judge.
  • An explicit calibrate_llm_judge() step: the LLM judge is not trusted until checked against a human-labelled sample.
  • Experiment thresholds are pre-registered in a YAML config and locked before any routing code is written.
  • Logger and cost computation are smoke-tested; known gaps such as placeholder prices are listed openly.

Why measure first

Routing and context optimisation are easy to oversell. So the plan fixes task counts, grading method and judge-agreement thresholds in advance, then logs real tasks as a baseline to validate the instrumentation itself. Only after that does the rule-based router get written.