2026-04-10 08:54:11 +00:00
# Lessons learned
2026-04-02 20:36:56 +00:00
2026-04-10 08:54:11 +00:00
## Remediation & deployment
2026-04-02 20:36:56 +00:00
2026-04-10 08:54:11 +00:00
**Escalate gradually.** Cheapest fix first, re-measure, escalate only if it persists. Single-shot fixes are either too weak or cause collateral damage.
2026-04-02 20:36:56 +00:00
2026-04-10 08:54:11 +00:00
**Parameterize deployment boundaries.** Entrypoint references to a specific project name are config values waiting to escape. `${VAR:-default}` preserves compat and unlocks reuse.
2026-04-02 20:36:56 +00:00
2026-04-10 08:54:11 +00:00
**Fail loudly over silent defaults.** A fatal error with a clear message beats a wrong default that appears to work.
2026-04-02 20:36:56 +00:00
2026-04-10 08:54:11 +00:00
**Audit the whole file when fixing one value.** Hardcoded assumptions cluster. Fixing one while leaving siblings produces multi-commit churn.
2026-04-02 20:36:56 +00:00
2026-04-10 08:54:11 +00:00
## Documentation
2026-04-02 20:36:56 +00:00
2026-04-10 08:54:11 +00:00
**Per-context rewrites, not batch replacement.** Each doc mention sits in a different narrative. Blanket substitution produces awkward text.
2026-04-02 20:36:56 +00:00
2026-04-10 08:54:11 +00:00
**Search for implicit references too.** After keyword matches, check for instructions that assume the old mechanism without naming it.
2026-04-02 20:36:56 +00:00
2026-04-10 08:54:11 +00:00
## Code review
2026-04-02 20:36:56 +00:00
2026-04-10 08:54:11 +00:00
**Approval means "safe to ship," not "how I'd write it."** Distinguish "wrong" from "different" — only the former blocks.
2026-04-02 20:36:56 +00:00
2026-04-10 08:54:11 +00:00
**Scale scrutiny to blast radius.** A targeted fix warrants less ceremony than a cross-cutting refactor.
2026-04-02 20:36:56 +00:00
2026-04-10 08:54:11 +00:00
**Be specific; separate blockers from preferences.** Concrete observations invite fixes; vague concerns invite debate.
2026-04-02 20:36:56 +00:00
2026-04-10 08:54:11 +00:00
**Read diffs top-down: intent, behavior, edge cases.** Verify the change matches its stated goal before examining lines.
2026-04-02 20:36:56 +00:00
2026-04-10 08:54:11 +00:00
## Issue authoring & retry
2026-04-02 20:36:56 +00:00
2026-04-10 08:54:11 +00:00
**Self-contained issue bodies.** The agent reads the body, not comments. On retry, update the body with exact error and fix guidance.
2026-04-02 20:36:56 +00:00
2026-04-10 08:54:11 +00:00
**Clean stale branches before retry.** Old branches trigger recovery on stale code. Close PR, delete branch, relabel.
2026-04-02 20:36:56 +00:00
2026-04-10 08:54:11 +00:00
**Diagnose CI failures externally.** The agent sees pass/fail, not logs. After repeated failures, read logs yourself and put findings in the issue.