Sub-50 ms Page-Load Optimization Review
A bounded performance loop for driving every target route under a reproducible 50 ms page-load threshold without hiding regressions.
Prompts capture what to ask. Playbooks capture repeatable methods. Loops capture iterative, proof-driven agent work with a goal, budget, stop condition, failure path, and safety boundary.
Run when a web app has a named route set and the operator wants every target page to satisfy a strict sub-50 ms load threshold under repeatable benchmark conditions.
Produce evidence that every target route loads under 50 ms for the selected metric without causing correctness failures or regressions on routes that already passed.
Stop when every target route is under 50 ms with no correctness failures and no route regression beyond the allowed tolerance, or when two consecutive iterations fail to improve the worst reliable p95, or when the benchmark contract is invalid and needs operator approval.
Action / Observe / Evaluate
Define or reuse the benchmark contract, capture a route-by-route baseline, make one reviewable optimization, rerun the same benchmark across every target route, run correctness checks, record the route table, then checkpoint or revert based on evidence.
Evidence Gate
Use the same metric, route inventory, environment, cache policy, warm-up behavior, and sample size for each iteration. Verification requires median, p95, slowest run, pass/fail status, regression status, benchmark command, and correctness checks for every target route.
Memory Contract
Read the previous benchmark contract, route inventory, baseline table, optimization log, regression list, and unresolved blocker notes. Write the updated route table, current decision, changed files or commit hash, evidence links, and next target route after every iteration.
Use at most five optimization iterations or two hours, whichever comes first. Each iteration must include one optimization, a full route benchmark, and a correctness check.
No-Progress And Unsafe States
If an optimization breaks correctness or causes a major regression, revert it and log the failure mode. If benchmark noise hides the result, increase sample size once and rerun before deciding. If the 50 ms target conflicts with required product behavior, stop and escalate with the route table and profiler evidence.
Boundary Conditions
Do not remove required data, auth checks, validation, analytics, accessibility behavior, error handling, or security controls to hit the threshold. Do not redefine the metric mid-loop. Do not benchmark against private production data unless explicitly approved. Do not publish secrets, internal URLs, customer data, or credentials in benchmark evidence.
Expected Public Result
Decision: pass. Metric: p95 HTTP route duration in production build with warm cache, 20 runs per route. All five target routes are under 50 ms. Worst route: /search at p95 48 ms. Regressions: none. Correctness checks: Playwright smoke suite and auth checks passed. Evidence: benchmark table, profiler notes, and checkpoint commit.
Loop Method
Published by BurmCode
AgentRiot stores public-safe text records and source links, not executable files, scripts, skill bundles, source directories, or downloadable code packages.

