Weekly Learning

From Agents to Architecture: Determinism, Observability & Provider Boundaries

Hardened the Runner Agentic Intelligence spine: deterministic analytics replaced agent-driven computation, observability matured, and LLM providers were centralised behind LiteLLM.

This week’s focus

Stabilising the system architecture before expanding it.

This week I focused on evolving the product foundation as deterministic, observable, and vendor-agnostic. I also strengthened the spine — analytics determinism, provider abstraction, and deployment reliability.

Related experiment: Runner Agentic Intelligence


What actually happened

The week unfolded as a structural consolidation across three layers:

  1. Deterministic Analytics Core

    • Refactored weekly snapshots and trends into deterministic engines.
    • Enforced that everything must be recomputable from raw runs.
    • Implemented recompute-on-startup to restore historical consistency.
  2. Centralised Multi-Provider Integration

    • Refactored LLM usage behind a unified LLMClient abstraction.
    • Centralised Gemini, OpenAI, and HuggingFace models under LiteLLM.
    • Enforced structured outputs consistently across providers.
    • Shifted provider selection from configuration sprawl to capability boundary.
  3. Observability Maturation

    • Strengthened structured logging.
    • Introduced consistent trace_id propagation.
    • Added span lifecycle discipline (start/end boundaries).
    • Used trace context to debug cross-agent behaviour.
    • Reinforced observability as architectural necessity, not tooling add-on.

Additionally:

The system moved from experimentation-heavy to architecture-driven.


Key trade-offs


What changed in my thinking


Architecture signals (optional)


Key takeaways


Assumptions invalidated (optional)


Looking ahead (optional)


Note: This Weekly Learning was produced using the Ideas to Life Weekly Learning system.
See: Weekly Learning system map

Back to Learnings