Tuesday, January 06, 2026

How Junior Devs Can Learn Agent Orchestration (Practically)

Orchestrate and use agents

The Core Principle

Don’t teach “agents.” Teach pipelines with autonomy.

A junior dev should ship one narrow workflow that:

  • Calls tools

  • Handles failure

  • Controls cost

  • Produces logs

  • Is testable

  • Has numbers to show

No multi-agent chaos. No “AI swarm.”


The One Workflow to Ship (Example)

🎯 Project: “Support Ticket Triage Agent”

Input: Raw support ticket text
Output:

  • Category (bug / billing / feature)

  • Priority (low / med / high)

  • Draft response

  • Confidence score

This is:

  • Useful

  • Boring enough to finish

  • Rich enough to teach orchestration


Step-by-Step: The Learning Path

1. Define the Agent as a State Machine (Not Magic)

Teach juniors to think in states, not prompts.

START ↓ Classify Ticket ↓ If confidence < threshold → Retry w/ different prompt ↓ Draft Response ↓ Validate Output ↓ END

This alone removes 80% of agent confusion.


2. Tool Calling (Minimal but Real)

Tools to include

  • classify_ticket(text)

  • draft_response(category, priority, text)

  • log_event(event_type, metadata)

Example (Python-ish pseudocode):

response = client.responses.create( model="gpt-4.1-mini", input=ticket_text, tools=[classify_tool, response_tool] )

📌 Teach:

  • Tools are typed functions

  • The model chooses when to call them

  • You own execution + validation


3. Retries (The First “Agentic” Behavior)

Retry logic should be deterministic, not vibes.

Example:

MAX_RETRIES = 2 for attempt in range(MAX_RETRIES): result = classify(ticket) if result.confidence > 0.7: break log("retry", {"attempt": attempt})

Teach juniors:

  • Retry on low confidence

  • Change instructions, not randomness

  • Log every retry


4. Logging (Non-Negotiable)

Every run logs:

FieldExample
request_idabc123
modelgpt-4.1-mini
tokens_in412
tokens_out96
cost$0.0021
retries1
latency842ms

Use:

  • JSON logs

  • One log per step

  • No screenshots yet — raw data first

This teaches observability, not prompt tweaking.


5. Cost Controls (Make It Explicit)

Hard limits:

if total_cost_today > 5.00: raise BudgetExceeded()

Soft limits:

  • Smaller model for classification

  • Bigger model only for response drafting

  • Cap retries

📌 Juniors should print cost per run in the console.

That feedback loop matters.


6. Basic Test Harness (This Is Where Most Skip)

Teach evaluation before scaling.

Golden test cases (10–20)

{ "input": "I was charged twice", "expected_category": "billing", "expected_priority": "high" }

Test:

  • Accuracy

  • Confidence calibration

  • Cost per test

Run nightly or manually.


7. Write It Up (This Is the Career Accelerator)

The write-up should include:

📸 Screenshots

  • Logs

  • Retry happening

  • Tool call JSON

  • Cost summary

📊 Numbers

  • Accuracy before retry vs after

  • Avg cost per ticket

  • Avg latency

  • Failure rate

🧠 What They Learned

  • Where the agent fails

  • What retries help vs hurt

  • How cost scales

This is portfolio gold.


What This Teaches (Quietly)

Without buzzwords, juniors learn:

  • Agent orchestration

  • Deterministic control flow

  • LLM failure modes

  • Cost-aware design

  • Evaluation discipline

  • Production thinking

They stop being “prompt engineers” and start being systems engineers.

JEPA and Platonic Representation Hypothesis

https://x.com/TheTuringPost/status/1990039599914287402/photo/1  - JEPA

Platonic Representation Hypothesis

1. JEPA + Platonic Representation Hypothesis (PRH)

JEPA (Joint Embedding Predictive Architecture) aims to learn representations by predicting abstract future representations, not pixels or tokens.
The Platonic Representation Hypothesis suggests that different modalities (text, images, audio, video, actions) can converge to a shared underlying representation of reality.

Why JEPA fits PRH especially well

JEPA is almost designed for PRH-style convergence:

  • It avoids modality-specific reconstruction loss (no pixel/token obsession)

  • It encourages semantic invariants

  • It separates representation learning from generation

So yes—JEPA-style training should benefit from platonic convergence, because:

  • Text and image models can align on latent world structure

  • Prediction in latent space encourages abstraction

  • Noise, style, and modality-specific artifacts get filtered out

📌 Key insight:

JEPA doesn’t force modalities to agree on how things look, only on what matters.

That’s very compatible with PRH.


2. Convergence between text and image models

Text and image models already partially converge (e.g., CLIP), but JEPA-style objectives could improve this in three ways:

(a) Better semantic grounding

Instead of:

“this caption matches this image”

You get:

“this latent predicts the same future world state”

This helps with:

  • Physical reasoning

  • Object permanence

  • Causality

  • Intent and affordances

(b) Reduced shortcut learning

Contrastive objectives sometimes learn dataset bias.
JEPA-style prediction forces structure-sensitive learning.

(c) Cross-modal generalization

A JEPA-trained vision model could:

  • Predict text embeddings it never saw paired

  • Transfer to action or audio more smoothly


3. Reasoning models + multimodality

Now to your second question:

Will reasoning models get better with multimodal inputs?

Strong yes — but not automatically.

Reasoning models improve with multimodality if:

  1. The representations are aligned and abstract

  2. The reasoning happens over latent world models, not raw modalities

  3. Training encourages counterfactual and temporal reasoning

JEPA-style multimodal representations help because:

  • They provide stable objects and relations

  • They encode dynamics, not just snapshots

  • They reduce token-level distraction

🧠 Think of it like this:

  • Text-only reasoning = symbolic reasoning with missing grounding

  • Vision-only = perception without abstraction

  • Multimodal JEPA = grounded abstraction

That’s the sweet spot.


4. What won’t magically improve

Important limits to keep in mind:

  • Multimodality ≠ reasoning by default

  • Bigger embeddings ≠ better abstractions

  • PRH doesn’t mean a single perfect representation—just compatible ones

Without:

  • Explicit reasoning objectives

  • World-model learning

  • Interventional or predictive training

…you mostly get better perception, not deep reasoning.


5. Likely future direction (high confidence)

The trajectory most researchers expect:

  1. JEPA-style world models trained on video + text + actions

  2. Reasoning modules operating on latent states

  3. Language as an interface, not the core reasoning substrate

  4. Partial convergence toward platonic representations—but with task-specific subspaces

📈 Reasoning models will improve most when:

Multimodal JEPA representations become the input space for reasoning, not just embeddings for retrieval.


One-line summary

JEPA is unusually well-aligned with the Platonic Representation Hypothesis, and multimodal JEPA-style representations are very likely to improve reasoning models—but only when paired with explicit world-modeling and reasoning objectives.


  • Compare JEPA vs CLIP vs diffusion representations

  • Discuss failure modes of PRH

  • Speculate on architectures (latent world models + planners)

Monday, January 05, 2026

Parallelism

 https://lilianweng.github.io/posts/2021-09-25-train-large/

Intro to deep learning undergrad

 https://atcold.github.io/NYU-DLFL25U/

Fisher information

 https://x.com/mushoku_swe/status/2008094896754974913 - connection between statistics and geometry

1. Why “variance of the score” is such a deep statement

Recall the score function:

sθ(x)=θlogp(xθ)s_\theta(x) = \nabla_\theta \log p(x \mid \theta)

This tells you: how much would I want to change the parameter if I saw this data point?

Now, two key facts (under regularity conditions):

E[sθ(X)]=0\mathbb{E}[s_\theta(X)] = 0
I(θ)=E[sθ(X)sθ(X)]=Var(sθ(X))\mathcal{I}(\theta) = \mathbb{E}[s_\theta(X) s_\theta(X)^\top] = \mathrm{Var}(s_\theta(X))

This is already remarkable: information is not about the size of the gradient, but about how much it fluctuates.


2. Intuition: why variance = information?

Think about two extremes:

Case A: Flat or uninformative model

If changing θ barely affects the likelihood, then:

  • The score is close to zero

  • Different samples produce almost the same score

  • Low variance ⇒ low Fisher information

You can’t really tell where θ is.

Case B: Sensitive model

If small changes in θ strongly affect likelihood:

  • Different samples pull θ in noticeably different directions

  • The score varies a lot

  • High variance ⇒ high Fisher information

The data “pushes back” strongly when θ is wrong.

So information is literally:

How violently does the model react to parameter changes across samples?


3. Why this becomes geometry (not just statistics)

Here’s the leap that information geometry makes:

Instead of thinking of θ as a point in ℝⁿ, think of each θ as a probability distribution.

Now ask:

How different are p(xθ)p(x \mid \theta) and p(xθ+dθ)p(x \mid \theta + d\theta)?

The answer (to second order) is:

KL(pθpθ+dθ)    12dθI(θ)dθ\mathrm{KL}(p_\theta \| p_{\theta + d\theta}) \;\approx\; \frac{1}{2} d\theta^\top \mathcal{I}(\theta) d\theta

That means:

  • Fisher information is the local quadratic form

  • It defines an inner product

  • Which defines a Riemannian metric

So curvature isn’t metaphorical—it’s literal curvature of the statistical manifold.


4. Score variance = curvature (intuitively)

Another way to say it:

  • The score is a tangent vector on the manifold of distributions

  • Its variance tells you how “spread out” these tangent vectors are

  • High spread ⇒ sharp curvature

  • Low spread ⇒ flat geometry

Flat geometry = parameters are hard to distinguish
Curved geometry = parameters are sharply identifiable

This is why:

  • Natural gradient rescales by I1\mathcal{I}^{-1}

  • It moves along geodesics, not raw parameter space


5.  statistics isn’t just algebra, but geometry.

What usually comes after this realization is:

  • Understanding KL divergence as distance-like

  • Seeing MLE as projection

  • Seeing exponential families as flat manifolds

  • Seeing why Euclidean intuition fails for probability spaces

  • Walk through a 1D Gaussian example where Fisher info literally equals curvature

  • Explain why exponential families are special geometrically

  • Connect this to deep learning and natural gradients

  • Or translate this intuition into pure geometry language

ML in applications

 Context Window Bottleneck - Ops/layer

Advanced computer entworks

 Physical connectivity at the rack/cluster scale

https://www.cse.wustl.edu/~jain/cse570-21/ftp/m_03dct.pdf - Datacenter network topologies

https://sc25.supercomputing.org/2025/12/hpc-ignites-a-week-of-illumination-innovation-inspiration-in-st-louis/

https://www.cse.wustl.edu/~jain/cse570-21/ - Recent Advances in Networking (Data Center Virtualization, SDN, Big Data, Internet of Things, AI, Blockchains, Quantum Communications)

https://www.jmeiners.com/lc3-vm/ - Write your own virtual machine

https://clusterdesign.org/

https://pages.cs.wisc.edu/~mgliu/

https://pni.princeton.edu/sites/g/files/toruqf321/files/documents/John%20Hopfield%20Now%20What%203_0.pdf