Repository navigation
fix(repair): select gitcrawl low-signal PRs by facts, not keywords - #1778
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThe manual gitcrawl importer selects PR candidates using inactivity, author association, draft status, and file count instead of title, body, and path classifiers. Example: An operator imports a stale outside-author PR titled “Fixes the root cause of a regression.”
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR contains useful, bounded work that current main does not implement. The introduced changes preserve downstream judgment and live close guards, and no actionable patch defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe manual importer reads locally stored GitHub PR data and stages bounded cleanup jobs. A model judges those candidates, and a separate applicator checks live GitHub state before any close. flowchart TD
A[Local gitcrawl PR data] --> B[Manual importer]
B --> C[Protection checks]
C --> D[Fact score and batch limit]
D --> E[Cleanup worker judgment]
E --> F[Live GitHub close guards]
F --> G[Keep open or guarded close]
Technical reviewBest possible solution: Keep candidate admission factual and leave low-signal judgment with the worker, while addressing the pre-existing portable-schema mismatch separately. Do we have a high-confidence way to reproduce the issue? Not applicable as a runtime bug report; the base source directly establishes keyword-based admission, and the reported CLI comparison demonstrates the changed selection. Is this the best way to solve the issue? Yes. Replacing admission classifiers in the existing importer is narrower than adding another selection path, and it preserves the downstream decision owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ca02659810a7. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 8, 2026, 8:15 PM ET / October 9, 2026, 00:15 UTC. |
What
Gitcrawl low-signal PR selection (
src/repair/import-gitcrawl-low-signal-prs.ts) now selects by facts only. It no longer matches title, body, or path keywords.Removed:
hasConcreteFixblocker. It ran/\b(fixes|fixes?|root cause|repro|regression|bug|problem)\b/over the title and body and blocked with "possible focused fix needs human review".\bdocs?\bin the title + docs paths)/(new|add|feat).*(plugin|provider|…)/)The score now counts facts:
no_update_<N>d: no update in--stale-daysdays (new flag, default 30)outside_author:NONE,FIRST_TIMERorFIRST_TIME_CONTRIBUTORdraftbroad_change: 12 or more changed files--min-scorestill defaults to 2.Blockers: maintainer association, assignees, and security labels, markers or advisory IDs (unchanged
hasSecuritySignalText).The job section is now "Gitcrawl Candidate Facts". The repair worker still judges
close_low_signalunderinstructions/low-signal-prs.md. The applicator still re-fetches live state and rejects maintainer-touched PRs.Changelog:
changelog.d/gitcrawl-low-signal-facts-only.md. This is Batch D part 2b (part 1 is #1775, part 2a is #1777).Why
Maintainer rule (LLM systems): no keyword or path classifiers that pre-decide outcomes; code selects by facts and the model judges. Code-judge inventory (Batch D) listed "import-gitcrawl-low-signal-prs: title/body keyword and path triage (hasConcreteFix, isDocsOnly, isTestOnly, isRefactor, isNewPlugin, isInfra)". The maintainer approved: select by deterministic facts (age, author association, assignees, file count) and delete
hasConcreteFixand the keyword signals.Proof (real data)
The local portable store is
gitcrawl-store/data/openclaw__openclaw.sync.db, exported 2026-09-18 (gitcrawl-portable-sync-v2). It has nothread_code_snapshotsorthread_changed_filestables, andpull_request_filesis empty. Both main and this branch stop withno such table: thread_code_snapshots, so the importer cannot run against the current portable schema on main either. That gap is separate and out of scope here.To compare selection, I added empty shim tables to a copy and ran both builds with
--dry-run --json --limit 100000 --skip-existing false:--min-scoreno_update_30d+draft)third_party_or_external_capability, a title/body keyword)no_update_30d15,635;no_update_30d+draft378;draft280)outside_authornever fires on this store because itsraw_jsonhas no author association. Every real run stages at most--limitPRs (default 20 PRs → 4 worker jobs).New test
test/repair/import-gitcrawl-low-signal-prs.test.tsuses a real SQLite DB and the real CLI. A stale outside-author PR titled "Fixes the root cause of a regression" is now selected with factsno_update_30d, outside_author; main blocked it on keywords. A member PR and an assigned PR stay blocked. A fresh PR with one fact stays below the score.pnpm run check: exit 0 (static, format, build:all, lint, all tests: 6,927 passed, 0 failed).Needs maintainer call
thread_code_snapshots,thread_changed_files). The CLI fails on main and on this branch alike. Recommendation: point it atpull_request_files, or retire the manual lane. That fix is out of scope here.Codex review dispositions
codex review --base mainon this branch: no actionable findings.Merge Danger
pnpm repair:import-gitcrawl-low-signal); no workflow calls it. No stored formats change.hasConcreteFixand the keyword signals.--limit(default 20 PRs → 4 repair-worker jobs), and runs happen only when an operator starts them. PRs whose text mentions a bug or fix can now reach the worker. The worker's low-signal policy keeps plausible fixes open (needs_human), so expect more worker-judgedneeds_human/keep_*outcomes per batch.