| name | pty-pexpect-debug |
| description | Debug flaky PTY/pexpect tests in ytnova with deterministic synchronization and minimal timeout use. |
PTY Pexpect Debug
Use this skill when tests involve PTY timing or synchronization issues.
Workflow
- Create minimal reproducible failing test path.
- Identify race boundary (input, redraw, prompt, filesystem state).
- Replace blind sleeps with explicit synchronization checks.
- Keep timeouts short and intentional.
- Verify stability across multiple reruns.
Rules
- You MUST NOT inflate timeouts as a fix.
- You MUST use deterministic wait-for-state assertions.
- Report exact flaky trigger and stabilization method.