Stage 1 review assessment for desloppify issue #601. Work in…
- User
Stage 1 review assessment for desloppify issue #601. Work in /Users/user_c042661f/Documents/desloppify. Read dev/review/prompts/1-review-agent.md and dev/review/schema.json. Use gh to read issue #601 body/comments and relevant code areas. Assess honestly per the prompt. Do not modify files. Return only the JSON object that should be written to dev/review/results/issue-601.json. Include all required fields, and include open_questions only if genuinely needed.
- Assistant
I’ll read the review prompt and schema first, then pull issue #601 through
ghand inspect the code paths it points at. I’ll keep this read-only and return just the JSON payload. - Assistant
Issue #601 is a concrete bug report about
jscpd_adapter.pytimeout behavior. I’m going to trace that detector and the scan call path now, plus skim open item titles for possible overlap. - Assistant
{ "number": 601, "type": "issue", "title": "jscpd grandchild leaks at 100% CPU when subprocess timeout fires", "author": "cryptiklemur", "stage1": { "verdict": "ACCEPT", "summary": "The issue is real and worth fixing.
detect_with_jscpd()currently invokessubprocess.run(..., timeout=120, check=True)indesloppify/engine/detectors/jscpd_adapter.py; on timeout Python kills only the direct child process, whilenpx/node-launched jscpd descendants can survive outside the scan. This detector is reached through the shared boilerplate duplication phase and may also be prewarmed in a background executor, so a leaked jscpd process can keep consuming CPU afterscanhas recovered gracefully. The requested behavior is clear: run jscpd in an isolated process group/session and kill the whole group on timeout, while preserving the existing best-effortNoneresult.", "confidence": "high", "scope_estimate": "medium", "potential_duplicates": [], "real_problem": true } }