fix(ci): strengthen doc-object markers in prompt and add extraction fallback#479
fix(ci): strengthen doc-object markers in prompt and add extraction fallback#479jdcmsd wants to merge 1 commit into
Conversation
❌ Issue Linking RequiredThis PR could not be linked to an issue. All PRs must be linked to an issue for tracking purposes. How to fix this:Option 1: Add keyword to PR body (Recommended - auto-removes this comment)
Why is this required?Issue linking ensures proper tracking, documentation, and helps maintain project history. It connects your code changes to the problem they solve.--- This comment was automatically generated by the issue linking workflow |
|
Claude finished @jdcmsd's task in 1m 25s —— View job Code Review: Robust doc-object extraction
Reviewed 🔴 Stale comment wins — extraction grabs the first match, not the latestThe pre-merge job runs on every This is pre-existing, but the PR's stated goal is "resilient enough to find the doc object," so it's in scope. # Primary
matches = re.findall(r'(.*?)', text, re.DOTALL)
block = matches[-1] if matches else None…and likewise 🟡 Code-fence stripping is only in the fallback pathLines 289–291 strip 🟡 Fallback is silently coupled to the summary literalThe fallback keys off Minor / non-blocking
VerdictDirection is right and the fallback is a reasonable safety net. The first-match-vs-latest bug is the one I'd fix before merge — it can silently attach an outdated doc object to the merge commit. The fence-strip asymmetry and summary-literal coupling are cheap hardening on top.
|
two fixes