Head of Architecture
About me
Simon Kihlberg Wallström
Co-founder, building an automation platform.
The inner loop
Where Emil left off


- Navigable repos. Clear boundaries, consistent names and canonical examples.
- Executable contracts. Types, tests and generated SDKs.
- Linter hard rules. Encode repeated review feedback as checks.

When the code met reality
Every check we had was green
The failure report came from a customer trying to close the quarter.
Zoom out

How we got here
I was a good human router
- Two+ years agoMore nights than I can count grepping logs and correlating failures across systemsManual
- One year agoCopy-pasting production context into coding agentsHuman router
- Last fallAgents get scoped access to production systemsAgent access
- NowProduction signals start the investigationBuilding
The evidence stack
The data lives in five different systems
| System | What it tells us |
|---|---|
| What the user did in the product | |
| Logs, metrics and traces behind the scenes | |
| Errors and issues | |
| Workflow runs and agent decisions | |
| Code, pull requests and deploy history |
Every vendor in this stack also sells an AI-powered product for solving its slice of the problem.
Agent access to production · One issue
One Sentry alert became a cross-system investigation
Slack alert → Sentry + Grafana + production data → diagnosis → code → GitHub


Agent access to production · One week
Sixteen issues became a nine-phase megaplan
The inversion
The agent could read production.Could production start the agent?
Production becomes the prompt
Signals start the investigation
| Trigger | Context assembled |
|---|---|
| User report | Session, product events, logs |
| Sentry issue | Issue, trace, release, logs |
| Grafana alert | Metrics, logs, traces, deploys |
| Post-deploy check | Errors, changed code, PR intent |
The self-improving system
Different kinds of improvements
The outer loop we are building
The investigation is only the first half
Triage
Signal → production context → diagnosis
Pull request delivered
Signal → context → diagnosis → code → pull request
What triage looks like today
The deployment starts the investigation

What triage looks like today
The report is the current handoff

Last 90 days
Agents opened almost as many PRs as humans
Autonomous triage → manual routing → autonomous implementation
Your turn