fix(review): honor ContentRepoSpec.urlFields in directory-index synthesis - #6018
Conversation
…esis Thread the content-repo spec into contentSignalSourceFromDirectoryEntry so custom URL field names reach extractContentDuplicateSignals instead of leaving corpus urls empty. Closes JSONbored#5941. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6018 +/- ##
=======================================
Coverage 95.16% 95.16%
=======================================
Files 591 591
Lines 46934 46934
Branches 15000 15001 +1
=======================================
Hits 44664 44664
Misses 1512 1512
Partials 758 758
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-15 07:18:31 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 3 non-blocking
Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
…nthesis Export contentSignalSourceFromDirectoryEntry and exercise the default-spec parameter plus empty URL-field skip so codecov/patch sees both branches. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Please, do not use draft - it messes with the bot, wastes resources, and generally slows down the pipeline/creates potential merge conflicts due to risks with out of order reviews/merges. |
Summary
contentSignalSourceFromDirectoryEntrynow takes aContentRepoSpecand emits URL frontmatter fromspec.urlFieldsinstead of a hardcoded field list.directoryIndexToSignalspasses itsspecthrough so synthesis andextractContentDuplicateSignalsagree on URL keys.urlFieldsset (corpusurlsmust contain the custom field) and unchanged defaultAWESOME_CLAUDE_CONTENT_SPECcamelCase behavior.Scope
Validation
npx vitest run test/unit/content-lane-duplicates.test.ts— 83 passedsrc/review/content-lane/duplicates.ts— 100% stmts/branches/funcs/lines for this file under that suiteSafety
UI Evidence
N/A — review content-lane backend fix; no UI change.
Closes #5941