<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hacomono-tech</author_name>
  <author_url>https://blog.hatena.ne.jp/hacomono-tech/</author_url>
  <blog_title>hacomono TECH BLOG</blog_title>
  <blog_url>https://techblog.hacomono.jp/</blog_url>
  <categories>
  </categories>
  <description>こんにちは、プロダクト基盤部バックエンドグループの jun です。普段はフレームワーク寄りの機能開発やパフォーマンスチューニング、大きめのリファクタリングや移行など、プロダクトの土台を支える仕事をしています。 今日は、私が最近よく使っている e2e 検証のやり方 —— AI エージェント（Claude Code）に実ブラウザで画面を操作させ、X-Request-Id ヘッダと Rails のログを使って、アクション単位に SQL やバリデーションまで観測する —— という手法を紹介します。特別なミドルウェアもツールも要らず、Rails が元々持っている仕組みに乗るだけで成立するのがポイントです…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechblog.hacomono.jp%2Fentry%2F2026%2F08%2F18%2F110000&quot; title=&quot;request spec では捕まえられないバグを、AIエージェント × X-Request-Id のログ観測で取りにいく - hacomono TECH BLOG&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/h/hacomono-tech/20260817/20260817163421.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-08-18 11:00:00</published>
  <title>request spec では捕まえられないバグを、AIエージェント × X-Request-Id のログ観測で取りにいく</title>
  <type>rich</type>
  <url>https://techblog.hacomono.jp/entry/2026/08/18/110000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
