Agentic System for Autonomous Code Monitoring and Maintenance
ramp · Finance · 2026 · source Agentic: yes · promotional bias: med · summary-only (no fetched source) · extracted with prompt 0.5.2 (schema v2)
Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.
Problem
Domain: Autonomous product maintenance
Ramp wanted to reduce production-monitoring toil and catch quality issues in Ramp Sheets quickly without making engineers own every observability task.
Constraints:
- sandboxed reproduction
- human review before merge
- production alert triage
Architecture
Ramp built a self-maintenance loop for Ramp Sheets on top of Ramp Inspect. The system first tried nightly autonomous QA, then moved to Datadog-triggered monitors generated on pull-request merge. When a monitor fires, a sandboxed Inspect session receives alert context, reproduces the issue against live code, validates a fix, and opens a reviewed pull request. A triage layer filters noisy alerts, tunes/deletes bad monitors, posts real issues to Slack, and stores PR links on monitor objects so later agents do not duplicate work.
Diagram confidence: reconstructed (reconstructed from prose).
flowchart LR pr-merge-monitor-generator[PR-merge monitor generator] --> ai-generated-datadog-monitors[AI-generated Datadog monitors] ai-generated-datadog-monitors --> datadog-webhook[Datadog webhook] datadog-webhook --> ramp-inspect-session[Ramp Inspect session] ramp-inspect-session --> triage-agent[Triage agent] triage-agent --> monitor-state-store[Monitor state store] monitor-state-store --> ai-generated-datadog-monitors ramp-inspect-session --> pull-request-workflow[Pull request workflow] triage-agent --> slack-notification[Slack notification] pull-request-workflow --> slack-notification
Components
| Component | Role | Interacts with |
|---|---|---|
PR-merge monitor generator |
Reads code diffs on merge and creates Datadog monitors for newly introduced behavior. | AI-generated Datadog monitors |
AI-generated Datadog monitors |
Granular observability mesh that detects error, latency, and behavior regressions in Ramp Sheets. | PR-merge monitor generator, Datadog webhook, Monitor state store |
Datadog webhook |
Starts an agent session when a monitor fires and passes alert context into the maintenance workflow. | AI-generated Datadog monitors, Ramp Inspect session |
Ramp Inspect session |
Sandboxed coding-agent environment that can make real API requests, run tests, reproduce bugs, and validate fixes. | Datadog webhook, Triage agent, Pull request workflow |
Triage agent |
Assesses whether an alert is real or noise, tunes/deletes noisy monitors, and suppresses duplicates. | Ramp Inspect session, Monitor state store, Slack notification |
Monitor state store |
Uses monitor descriptions to store PR links and duplicate-suppression state. | AI-generated Datadog monitors, Triage agent |
Pull request workflow |
Carries proposed fixes to engineer review before merge. | Ramp Inspect session, Slack notification |
Slack notification |
Alerts the team when the agent finds a real issue or prepares a fix. | Triage agent, Pull request workflow |
Data flow
On code merge, an agent reads the diff and creates granular Datadog monitors for the new behavior. When a monitor detects a regression, a webhook starts a Ramp Inspect session with the alert context. The agent reproduces the bug in a sandbox, develops and validates a fix, and notifies the team or opens a pull request. A triage pass first decides whether the alert is real; for duplicates it reads state stored on the monitor description and stands down.
4 supporting quotes
Why this architecture
Ramp moved away from broad nightly QA because unfocused agents repeatedly explored the same paths and missed narrow situational bugs. Traditional observability provided the focusing signal, while sandboxed reproduction made agent fixes less speculative by requiring the agent to observe and validate the failure before sending humans a pull request.
3 supporting quotes
Models used: GPT-5 models · Claude Opus 4.6
Scale
- Ramp Sheets monitoring grew from ten handwritten monitors to more than a thousand generated monitors.“The system scaled Ramp Sheets from ten hand-written monitors to over a thousand in just a few weeks.”summary, stated
- The monitoring density reached roughly one monitor per 75 lines of code.“The one-monitor-per-75-lines-of-code metric is striking and represents an unprecedented level of observability granularity.”summary, stated
- The first week produced 40 real bug catches within minutes of user-triggered issues.“In its first week of operation, the system caught 40 real bugs within minutes of occurrence, significantly reducing the observability burden on engineering teams while improving product quality and reducing downtime for customers.”summary, stated
Alternatives considered (roads not taken)
Nightly scheduled autonomous QA
Rejected because: It found broad issues but repeatedly explored similar paths and lacked trigger context for narrow bugs.
Notify humans for every generated-monitor alert
Rejected because: Poor thresholds caused cascades of false positives and duplicate notifications, so alert triage became mandatory.
Replace all trusted hand-written monitors with agent-generated ones
Rejected because: Agent monitors are powerful but opaque, so critical issues still need instrumentation engineers wrote and trust.
Patterns
observability-tracing (operations)
The system creates dense AI-powered monitors and uses alerts as the starting point for autonomous investigation.
human-in-the-loop-gate (control)
The agent can propose fixes but code changes still wait for engineer review before merging.
Tradeoffs
How to scale observability work.
Chose agent-generated monitoring and repairs over manual observability ownership by engineers.
Rationale: Ramp traded more autonomous infrastructure for reduced operational burden while preserving review gates.
Triggering strategy for maintenance agents.
Chose monitor-driven activation with alert context over nightly general QA sweeps.
Rationale: Focused alerts gave agents a specific mission and exposed narrow production bugs that broad scheduled review missed.
Human attention management.
Chose agent triage and duplicate suppression before Slack notifications over posting every fired generated monitor to humans.
Rationale: Generated monitors were granular but noisy; triage preserves trust by tuning bad monitors and suppressing duplicate work.
Observability trust boundary.
Chose keep traditional hand-written monitors alongside generated monitors over relying solely on opaque agent-generated instrumentation.
Rationale: The team wanted trusted instrumentation for critical incidents while generated monitors matured.
Gotchas (what bit them)
Static code inspection was not enough for subtle product failures.
Root cause: Many bugs only emerge when the agent reproduces behavior against live code and APIs.
Resolution: Run each maintenance attempt in a sandbox where the agent can make real API requests and execute tests.
Evaluation
Ramp measured real production bugs caught in the first week.
Metrics: 40 real bugs · minutes to detection · monitor density
Outcomes
- The first week reportedly caught 40 real bugs and reduced observability burden.
Summary-only extraction because the social source was not usable in the local cache.