# Writing

> Notes from Ebrahim Sameh on AI search and GEO, build logs from his own projects, and running AI coding agents safely.

Source: https://ebrahimsameh.com/blog/

Notes on AI search and GEO, build logs from my own projects, and what I learn running AI agents on real code.

- [Containing an AI coding agent with two GitHub Actions jobs](https://ebrahimsameh.com/blog/agent-in-a-box-smi.md): How Smi turns a ticket into a draft PR while the AI agent only holds a read-only token, what was verified on real runs, and what isn't wired yet.
- [Cloudflare Search for Agents: what it does, what it costs and who should turn it on](https://ebrahimsameh.com/blog/cloudflare-search-for-agents.md): Search for Agents indexes your site and answers AI agents at /.well-known/search. Billing starts December 1, 2026. Setup, pricing math, Free plan limits and risks.
- [How one roles endpoint leaked data across tenants in a Django SaaS](https://ebrahimsameh.com/blog/cross-tenant-data-leak.md): A DRF endpoint returned every tenant's roles to any logged-in user. The root cause, the fix in the query and in the frontend cache, and the tests to write.
- [One DATE() call was locking 1.4 million rows every five minutes](https://ebrahimsameh.com/blog/date-call-locked-rows.md): How a function call in a WHERE clause and InnoDB's locking reads in INSERT ... SELECT turned a five-minute cron into a table-wide lock, and the two-line fix.
- [EU AI Act on 2 December 2026: what changes for small SaaS teams](https://ebrahimsameh.com/blog/eu-ai-act-december-2.md): From 2 December 2026 the EU AI Act bans AI nudification and CSAM tools and ends the marking grace period for older generative AI systems. What to check and ship.
- [Inheriting a codebase that's locked out of its own auth and secrets](https://ebrahimsameh.com/blog/inheriting-a-locked-out-codebase.md): I took over a SaaS whose auth server and secrets store still belonged to the previous agency, and both went dark. How I moved them onto the client's AWS and launched.
- [Three ways an LLM pipeline lies about your brand](https://ebrahimsameh.com/blog/llm-pipeline-brand-mentions.md): The same 15 questions gave a brand 7, 15 or 8 mentions depending on how they were batched. Three bugs from AI-visibility audits, and how to check yours.
- [Sign in with Microsoft and nOAuth: when the email claim isn't proof](https://ebrahimsameh.com/blog/microsoft-sign-in-noauth.md): How trusting the email claim from Microsoft sign-in let any Entra tenant sign in as an existing user, and how the fix links accounts by sub and verified email only.
- [The tracing exporter that took the site down](https://ebrahimsameh.com/blog/observability-took-the-site-down.md): A hosted tracing backend accepted connections and never answered. Each sampled request hung for 40 seconds, the worker pool filled, and an order form went down.
- [Patch triage when AI finds bugs faster than you can fix them](https://ebrahimsameh.com/blog/patching-when-ai-finds-bugs-faster.md): Java4Shell, nginx HTTP/2 and Ruby2Shell landed in one week of November 2026. A patch triage method for small teams: exposure, KEV, EPSS, workarounds, cadence.
- [Pentest quick wins: VPN QR codes in the web root and an API key in error logs](https://ebrahimsameh.com/blog/pentest-quick-wins.md): Three low-effort exposures from pentest remediation on a client platform, how each was checked for real impact, and the fix you can copy for your own system.
- [redirect() without return: the 302 that stopped nothing](https://ebrahimsameh.com/blog/redirect-without-return.md): An access check in a legacy Yii2 admin panel sent a redirect but never returned it, so the action kept running and saved a guest's POST. Ten more places had the same bug.
- [When Redis fails over and nobody tells your sockets](https://ebrahimsameh.com/blog/redis-failover-silent-sockets.md): A managed Redis failover froze our n8n workflow engine for almost 17 minutes while health checks said "ok". Why keepalive didn't help, and the watchdog that did.
- [DataForSEO's quiet failures: errors inside HTTP 200, and no Kuwait](https://ebrahimsameh.com/blog/seo-api-quiet-failures.md): Rejected DataForSEO tasks come back as HTTP 200, and its Labs data has no Kuwait, Qatar or Oman. How these produce empty SEO reports, and how to guard against them.
- [One screenshot, three pastes: building shotpaste in Rust](https://ebrahimsameh.com/blog/shotpaste-one-clipboard-write.md): How one clipboard write with three formats lets a single paste work in Slack, a JIRA upload and a terminal, and how to install shotpaste on any OS.
- [Your "singleton" cron runs on every server](https://ebrahimsameh.com/blog/singleton-cron-runs-everywhere.md): A nightly expiry job ran on every autoscaling instance and expired 94 gift cards twice. What fixed it, and why a time window can't tell a retry from a real repeat.
- [The SOS button said 911 had been called. It hadn't.](https://ebrahimsameh.com/blog/sos-that-didnt-call-911.md): A guard app's SOS slider told guards emergency services had been contacted when it only alerted admins. What it really did, the new copy, and what to check.
- [The 16 KB curtain: why our app never loaded for visitors in Russia](https://ebrahimsameh.com/blog/the-16kb-curtain.md): Only 5% of visitors from Russia got past our app's loading screen, against 85-89% from Egypt, Saudi Arabia and the UAE. The cause was a 16 KB limit, not our firewall.
- [Shifts in the wrong column and date pickers a day off](https://ebrahimsameh.com/blog/timezone-off-by-one-shifts.md): Why shifts landed a day off and date pickers chose the day before when the browser's timezone wasn't the tenant's, and how the calendar and pickers were fixed.
- [Our firewall blocked WhatsApp previews, Lighthouse and our own crawler](https://ebrahimsameh.com/blog/waf-blocked-our-own-crawler.md): AWS WAF Bot Control's default rules blocked link previews, PageSpeed and our own audit engine, so zaher.ai scored 0 in its own product. How we found and fixed it.
- [Why ChatGPT can't read your website (and how to check)](https://ebrahimsameh.com/blog/why-ai-cant-read-your-site.md): Four common reasons a site is missing from AI answers: JavaScript-only content, blocked AI crawlers, no structured data and no llms.txt. Here's how to check each.
- [My Claude Code status line took 26 seconds: WSL git over /mnt](https://ebrahimsameh.com/blog/wsl-git-over-mnt-is-slow.md): A status line that ran WSL git on a Windows drive took 11 to 26 seconds per run. One git.exe call for /mnt paths brought it down to about 1.1 seconds.
