Skip to content

Commit 68ab311

Browse files
committed
Add a troubleshooting section to the corpus-loop.
1 parent 6432f77 commit 68ab311

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.claude/commands/corpus-loop.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,13 @@ If you see `"title": "TODO_TITLE"` or similar hardcoded `TODO` values in the JSO
5454

5555
- Don't hedge your bets and write lots of fallback code or strings of `?.`. Have a specific piece of data you want to get, use non-null `!` assertions where necessary to be clear about getting.
5656
- If a field is empty, represent it with an empty string. Don't use placeholders when extracting data.
57-
- The pages we are scraping are going to change over time, and it's easier to fix broken ones if we know exactly what used to work. If the code has lots of branching paths, it's harder to tell what it was doing.
57+
- The pages we are scraping are going to change over time, and it's easier to fix broken ones if we know exactly what used to work. If the code has lots of branching paths, it's harder to tell what it was doing.
58+
59+
## Troubleshooting
60+
61+
- If you see `"spot": "NO_SPOT"` but expect an enhancer to match:
62+
- Check console logs for enhancer attempts (e.g., `"eE examing url"`)
63+
- Look for specific rejection reasons in the enhancer's `tryToEnhance` method
64+
- If multiple enhancers are conflicting:
65+
- Check the order of enhancer registration in `registries.ts`
66+
- Ensure proper exclusion logic (e.g., checking for specific containers)

0 commit comments

Comments
 (0)