A JA LayerX·Practitioner post·

Handing alert patrol to the in-house background agent haro, which improved its own procedure (内製 Background Agent “haro”に アラート対応を任せたら 回すたびに賢くなっていった)

A · Strong evidence First-hand LayerX engineering report on a scheduled background agent triaging production and staging alerts for about 3.5 weeks, with counts of investigations, PRs and merges, the triage rules and the self-editing wiki design; self-reported but specific and checkable in kind.

Summary based on the full text·Original: about 9 minutes to read

One of the Library's top reads

In short

A LayerX engineering post (17 November 2026) by a new-graduate engineer on Bakuraku attendance, the company's time-and-attendance product. The in-house background coding agent "haro" runs every hour from 9:00 to 21:00 on weekdays, reads the alert channels, triages each alert against a wiki of known events, investigates in Datadog and the code, and opens draft PRs when the fix is clear. Humans decide what to merge. The largest gain was removing alerts that should never have fired, a job the team had kept postponing.

Key numbers

  • 271investigation pages written by the alert-patrol agent in about 3.5 weeks; 33 reached a PR
  • 29 and 18fix PRs opened from alerts, and how many were merged
  • 17 and 9PRs removing false alarms and alert noise, and how many were merged
  • 30known events recorded in the patrol wiki by the end of the period
  • 5rules promoted from about 20 lines of lessons logged by the agent

As reported by the source.

Read the original on tech.layerx.co.jp

Japanese·Web page·opens tech.layerx.co.jp

What it reports

  • Run from late October for about 3.5 weeks: 271 investigation pages, 33 reached a PR; 29 fix PRs from alerts, 18 merged.
  • 17 PRs fixed false alarms or noise (expected behaviour logged as error moved to warn or removed, 500 responses for user-input errors changed to 4xx, monitors with too-short windows), 9 merged.
  • Triage: production alerts are "act now" when customers are affected with no workaround or counts clearly exceed the last 7 days; staging alerts when an error is new in 7 days or could affect production on release. "No action" entries must carry a 1-2 line reason.
  • PRs are always drafts; the agent never merges and never writes production data. Customer-facing incidents stay with the on-call engineer.
  • Early failure modes: re-investigating events already solved, several PRs for the same fix, and log queries returning 0 or an order of magnitude fewer hits, so old errors were read as new.
  • Fix: a two-page wiki the agent reads first and writes back last. Mistakes go into a log as "what happened, what next"; a lesson seen twice becomes a rule. Duplicate PRs stopped after a rule to check open PRs and those closed in the last 14 days.
  • The agent may change its investigation steps, queries and wording; channels, mention targets, thresholds that loosen safety limits and scope need human approval. One approved proposal added a staging Datadog MCP connection.

How they got it

An operations write-up from the team running the agent, with counts from the period and excerpts of the lesson log. No baseline of human time spent on alerts or of missed incidents is given.

Limits

  • Self-reported counts over about 3.5 weeks on one product.
  • No measure of time saved, of incidents caught earlier, or of false negatives.
  • The merge rate (18 of 29) says nothing about the quality of the 11 unmerged PRs.

Why it matters for companies

Most operations teams live with alert noise because silencing it at the source is never urgent. A scheduled agent that drafts the fix, with a human merge gate, turns that backlog into small reviewable changes. The design choices travel well: a known-events page the agent must read, a written split between what the agent may change about its own procedure and what needs approval, and a rule that repeated lessons become rules.

Key passages in translation

Japanese original

この巡回でいちばん効果が大きかったのは、実はアラートノイズを減らせたことでした。

English translation

The biggest effect of this patrol was, in fact, that it reduced alert noise.

Japanese original

PR は必ず draft で、エージェント が merge することはありません。また、本番のデータを書き換えることもないようにしています。

English translation

PRs are always drafts and the agent never merges. We have also made sure it never rewrites production data.

Japanese original

同じ学びが 2 回以上出たら「有効なルール」に格上げし、次の回からはそれに従います。

English translation

When the same lesson appears twice or more, it is promoted to an "active rule", and from the next run the agent follows it.

Summary based on the full text. Read the original for the full argument and data.Read the original on tech.layerx.co.jp

Tags

Same week

All of Week 47