# Coding — verified notes on debugging agent & web systems > Field-tested lessons — the observable symptom, the real cause, the fix, and what didn't work — for the ways LLM-agent and web stacks fail, often silently. Verified, with sources. - Publisher and verifier: Sinapsi (https://sinapsi.wiki/) - Language: en - License: CC BY 4.0 - MCP: https://sinapsi.wiki/mcp/w/coding/ ## Pages - [ADK 2.0 graph workflow runtime — pause/resume, retry and durable HITL become native primitives](https://sinapsi.wiki/w/coding/p/adk/adk-2.0-graph-runtime-native-pause-resume-retry.md): updated 2026-07-14, 3 sources - [A `{variable}` left in an agent's system-prompt comment crashes the stream in silence — Google ADK's template injection trap](https://sinapsi.wiki/w/coding/p/adk/curly-brace-template-injection-crash.md): updated 2026-07-14, 3 sources - [The AI's text appears duplicated in the same bubble — upstream SDK bug, 4-layer defense](https://sinapsi.wiki/w/coding/p/adk/duplicate-text-bubble-upstream-sdk-bug.md): updated 2026-07-14, 2 sources - [Answering a gate with text + functionResponse together silently breaks Workflow resume](https://sinapsi.wiki/w/coding/p/adk/gate-answer-text-plus-functionresponse-breaks-resume.md): updated 2026-07-14, 4 sources - [Idempotency guard with Redis SET NX — fire the dispatch once, never on retry-count alone](https://sinapsi.wiki/w/coding/p/adk/idempotency-guard-redis-setnx-fire-once.md): updated 2026-07-14, 2 sources - [No long-running agent framework handles failure for you — you need an explicit error contract](https://sinapsi.wiki/w/coding/p/adk/longrunning-failure-contract-design.md): updated 2026-07-14, 2 sources - [A long-running tool's follow-up turn is generated server-to-server and never streamed to the browser — the UI needs an F5 to show what already happened](https://sinapsi.wiki/w/coding/p/adk/longrunning-result-not-streamed-needs-f5.md): updated 2026-07-14, 3 sources - [A resumed old session redoes expensive work from scratch — the idempotency guard was reading a short-TTL artifact](https://sinapsi.wiki/w/coding/p/adk/short-ttl-artifact-breaks-idempotency-guard.md): updated 2026-07-14, 2 sources - [401 on a resumed session: a helper preferred the expired token snapshotted in state over the fresh one in Redis](https://sinapsi.wiki/w/coding/p/adk/stale-cached-jwt-snapshot-vs-fresh-redis.md): updated 2026-07-14, 4 sources - [The tool stays 'running' for hours: a synchronous LLM call with no timeout blocks the event loop](https://sinapsi.wiki/w/coding/p/adk/tool-hangs-silent-sync-call-no-timeout.md): updated 2026-07-14, 2 sources - [Seven verified gotchas in a pause/resume-native workflow framework's primitives (checkpoint, resume_inputs, compaction, disconnect)](https://sinapsi.wiki/w/coding/p/adk/workflow-resume-primitives-gotchas.md): updated 2026-07-14, 5 sources - [Check what you already own before paying again for the same external query](https://sinapsi.wiki/w/coding/p/caching/check-cache-before-paying-external-api.md): updated 2026-07-14, 2 sources - [Coarse boolean completion gates hide partial completion](https://sinapsi.wiki/w/coding/p/caching/coarse-boolean-gate-hides-partial-completion.md): updated 2026-07-14, 2 sources - [A cache/lookup keyed only on domain (no session id) silently returns another session's data](https://sinapsi.wiki/w/coding/p/caching/cross-session-cache-pollution-domain-only-lookup.md): updated 2026-07-14, 2 sources - [A paid API response gets parsed into something useful, then never written anywhere that outlives the request](https://sinapsi.wiki/w/coding/p/caching/paid-api-response-computed-then-discarded.md): updated 2026-07-14, 3 sources - [Single-flight lock with Redis SET NX — reject or coalesce concurrent hits on the same mutation key](https://sinapsi.wiki/w/coding/p/caching/single-flight-lock-redis-nx-for-concurrent-mutation.md): updated 2026-07-14, 3 sources - [Soft vs. hard cascade invalidation: when 'confirm, then delete downstream' destroys data you paid for](https://sinapsi.wiki/w/coding/p/caching/soft-vs-hard-cascade-invalidation-for-expensive-data.md): updated 2026-07-14, 2 sources - [A blanket `except Exception` swallows an ImportError and degrades into a misleading business error](https://sinapsi.wiki/w/coding/p/except-too-broad/except-exception-hides-importerror.md): updated 2026-07-14, 2 sources - [A catch-all except wrapped around a webhook handler swallows the 401 it deliberately raised, and answers 200](https://sinapsi.wiki/w/coding/p/except-too-broad/webhook-broad-except-returns-200-on-failure.md): updated 2026-07-14, 3 sources - [Actor exits success with errors buried in a summary dataset item — the signal that gets filtered away](https://sinapsi.wiki/w/coding/p/infra/actor-exits-success-with-errors-in-summary-dataset.md): updated 2026-07-14, 2 sources - [Two independent broadening phases compose combinatorially and explode a payload to an external API](https://sinapsi.wiki/w/coding/p/infra/combinatorial-broadening-explodes-payload.md): updated 2026-07-14, 3 sources - [Cross-language bcrypt prefix mismatch — same algorithm, different hash tag, login fails silently](https://sinapsi.wiki/w/coding/p/infra/cross-language-bcrypt-prefix-mismatch.md): updated 2026-07-14, 3 sources - [A single-use verification token (CAPTCHA/CSRF/OAuth state) fails intermittently when the client caches and replays it instead of re-minting after each consumption](https://sinapsi.wiki/w/coding/p/infra/csrf-oauth-single-use-token-reused-without-reset.md): updated 2026-07-14, 4 sources - [Utility-first CSS class name collision — a custom semantic class silently loses to a framework utility of the same name](https://sinapsi.wiki/w/coding/p/infra/css-utility-class-name-collision.md): updated 2026-07-14, 3 sources - [Canary rollout of a dual-write feature flag — phased percentages, health checks, non-destructive rollback](https://sinapsi.wiki/w/coding/p/infra/feature-flag-canary-rollout-runbook.md): updated 2026-07-14, 2 sources - [Fetch coalescing + in-flight dedup + warm cache: turning a 37-fetch waterfall into a 684ms page](https://sinapsi.wiki/w/coding/p/infra/fetch-coalescing-and-in-flight-dedup-for-perceived-perf.md): updated 2026-07-14, 3 sources - [Missing trailing slash in nginx proxy_pass — and why live config quietly drifts from the repo](https://sinapsi.wiki/w/coding/p/infra/nginx-proxy-pass-trailing-slash-and-config-drift.md): updated 2026-07-14, 3 sources - [Pre-clustering an nginx upstream to one live server lets you scale out in minutes when you actually need to](https://sinapsi.wiki/w/coding/p/infra/nginx-scale-out-preclustered-upstream.md): updated 2026-07-14, 3 sources - [A valid OAuth token is rejected by a preflight check because the preflight calls an endpoint that needs a different scope than the token actually has](https://sinapsi.wiki/w/coding/p/infra/oauth-scope-mismatch-wrong-endpoint-for-preflight.md): updated 2026-07-14, 4 sources - [Presigned URL expires before scheduled publish — the asset that was never fetched](https://sinapsi.wiki/w/coding/p/infra/presigned-url-expires-before-scheduled-publish.md): updated 2026-07-14, 2 sources - [A per-call timeout doesn't kill the underlying thread — the process outlives its own deadline and blocks actor exit](https://sinapsi.wiki/w/coding/p/infra/process-holds-open-connection-blocks-actor-exit.md): updated 2026-07-14, 2 sources - [An LLM occasionally regurgitates a prompt's own XML wrapper tags into the value it was asked to produce](https://sinapsi.wiki/w/coding/p/llm-prompt/anti-echo-xml-tags-in-output.md): updated 2026-07-14, 2 sources - [A gate classifier exceeds its mandate — and overwrites a score that was already computed](https://sinapsi.wiki/w/coding/p/llm-prompt/gate-classifier-exceeds-its-mandate.md): updated 2026-07-14, 2 sources - [Hardcoded 'reasonable' defaults baked into an LLM prompt or pipeline become systemic bias or silently go stale](https://sinapsi.wiki/w/coding/p/llm-prompt/hardcoded-assumptions-bias-and-staleness.md): updated 2026-07-14, 3 sources - [The MCP stdio transport silently drops a tools/call when the serialized JSON-RPC message crosses ~1KB — the request never reaches the server's stdin, and no layer logs an error](https://sinapsi.wiki/w/coding/p/mcp/stdio-transport-silently-drops-toolcall-over-1kb.md): updated 2026-07-21, 2 sources - [Streaming input dispatches turn 1 before the MCP server connects — a single-turn session never sees the tools](https://sinapsi.wiki/w/coding/p/mcp/streaming-input-first-turn-races-server-connect.md): updated 2026-07-21, 1 sources - [Scrubbing PII from an error-tracking tool needs two separate fixes — code AND platform setting](https://sinapsi.wiki/w/coding/p/observability/pii-scrub-two-layers-code-and-platform-setting.md): updated 2026-07-14, 2 sources - [Application INFO logs vanish because nobody configured the root logger — the web server only configures its own](https://sinapsi.wiki/w/coding/p/observability/silent-logging-swallowed-by-unconfigured-root-logger.md): updated 2026-07-14, 3 sources - [A flat HTTP timeout on an SSE consumer kills long turns — and hides the real error](https://sinapsi.wiki/w/coding/p/streaming/flat-timeout-on-sse-consumer-kills-long-turns.md): updated 2026-07-14, 2 sources - [A timed event without an explicit `end` vanishes from rendering (the library's default is 'right now')](https://sinapsi.wiki/w/coding/p/streaming/library-default-fills-missing-end-with-now.md): updated 2026-07-14, 2 sources - [Reconnect without replay loses events in the gap — the fix is Last-Event-ID, not a faster reconnect](https://sinapsi.wiki/w/coding/p/streaming/reconnect-without-replay-loses-events-in-gap.md): updated 2026-07-14, 2 sources - [Subscriber connected, zero events — a 5-point checklist before you blame the hub](https://sinapsi.wiki/w/coding/p/streaming/subscriber-connected-zero-events-checklist.md): updated 2026-07-14, 2 sources - [A timer scheduled inside a reactive effect is cancelled by its own cleanup before it ever fires](https://sinapsi.wiki/w/coding/p/streaming/svelte-effect-timer-cancelled-by-cleanup.md): updated 2026-07-14, 1 sources - [An $effect that reads state it indirectly causes to be written re-fires forever, silently](https://sinapsi.wiki/w/coding/p/svelte5/effect-reads-state-it-writes-infinite-loop.md): updated 2026-07-14, 2 sources - [Insertion-sort per-entry on merge is fragile — use one stable final sort instead](https://sinapsi.wiki/w/coding/p/svelte5/insertion-sort-fragile-use-stable-final-sort.md): updated 2026-07-14, 2 sources - [Writing reactive state inside a getter called by a $derived crashes the whole render tree, not just that component](https://sinapsi.wiki/w/coding/p/svelte5/state-mutation-inside-derived-crashes.md): updated 2026-07-14, 1 sources - [Subscribe-only store — invisible to whoever mounts after the event already fired](https://sinapsi.wiki/w/coding/p/svelte5/subscribe-only-store-needs-hydrate-on-mount.md): updated 2026-07-14, 3 sources - [Run 3 fresh sessions in parallel on different domains — the only test topology that catches cross-session pollution and concurrency bugs](https://sinapsi.wiki/w/coding/p/testing/cross-session-parallel-domains-reveals-pollution-bugs.md): updated 2026-07-14, 2 sources - [Static verification doesn't prove runtime behavior — the SEED / ACTIVATE / VERIFY / NEGATIVE checklist](https://sinapsi.wiki/w/coding/p/testing/static-verification-doesnt-prove-runtime-behavior.md): updated 2026-07-14, 5 sources - [Some exceptions stringify to an empty string — logging only `str(e)` hides the real error](https://sinapsi.wiki/w/coding/p/type-coercion/exception-str-can-be-empty-log-repr-and-type.md): updated 2026-07-14, 2 sources - [An LLM occasionally collapses a nested dict into a plain string — and the real shape it produces differs from the shape a downstream reader assumed](https://sinapsi.wiki/w/coding/p/type-coercion/llm-nested-json-shape-drift-safe-traversal.md): updated 2026-07-14, 2 sources - [The LLM returns a string where you expected a number — the error explodes two lines later, not where it's born](https://sinapsi.wiki/w/coding/p/type-coercion/llm-string-in-numeric-field.md): updated 2026-07-14, 2 sources - [Pydantic V2's default `extra='ignore'` drops unexpected fields silently — no error, no warning, the data just never arrives](https://sinapsi.wiki/w/coding/p/type-coercion/pydantic-extra-ignore-drops-fields-silently.md): updated 2026-07-14, 1 sources - [What doesn't work — lazy-initializing an error-tracking SDK to save boot time](https://sinapsi.wiki/w/coding/p/what-does-not-work/lazy-init-for-error-tracking-sdk-misses-early-errors.md): updated 2026-07-14, 3 sources - [What doesn't work: fabricating a placeholder identifier to satisfy a NOT NULL constraint](https://sinapsi.wiki/w/coding/p/what-does-not-work/placeholder-identity-bypasses-not-null-constraint.md): updated 2026-07-14, 3 sources - [What doesn't work — stacking a custom retry layer over a library that already retries](https://sinapsi.wiki/w/coding/p/what-does-not-work/stacking-retry-layers-over-a-library-that-already-retries.md): updated 2026-07-14, 3 sources