SOP: Chrome DevTools Validation Loop
Use this SOP when UI work depends on actual runtime interaction and screenshots, DOM state, and console output matter more than code inspection alone.
Goal
Turn UI validation into a repeatable interaction loop the agent can run until the journey is clean.
Core Loop
- Select the target page or app instance.
- Clear stale console noise.
- Capture the BEFORE state.
- Trigger the UI path.
- Observe runtime events during interaction.
- Capture the AFTER state.
- Apply the fix and restart the app if needed.
- Re-run validation until the journey is clean.
Required Inputs
- a stable startup command
- a reproducible UI journey
- a way to snapshot DOM, console, or screenshots
- a rule for what counts as "clean"
Execution SOP
- Write the target journey in the active plan.
- Define success in observable terms: text present, button enabled, error gone, console clean, request succeeded.
- Snapshot the initial state before interaction.
- Trigger exactly one path at a time.
- Record runtime events, DOM changes, and visible output.
- If the journey fails, fix the smallest responsible layer and restart.
- Re-run the same path and compare BEFORE/AFTER evidence.
Clean Criteria
- intended visible state is present
- unexpected errors are absent
- console noise is understood or cleared
- rerunning the same path gives the same result
Repo Artifacts To Update
- active execution plan
docs/RELIABILITY.mdif the journey becomes a golden path- product spec if the visible behavior changed