Skip to content

Skip malformed niche answers instead of ending the weekly run - #75

Merged
RaviTejaKNTS merged 1 commit into
mainfrom
chore/check-handoff-file
Oct 21, 2026
Merged

RaviTejaKNTS merged 1 commit into
mainfrom
chore/check-handoff-file

Conversation

@RaviTejaKNTS

Copy link
Copy Markdown
Collaborator

Follow-up to #74. The next production run of stack127-ad-network-niche failed with Invalid domain: the model returned one malformed line, and validation ended the whole run.

  • validateNicheBatch skips lines that aren't JSON, have extra fields, or have an invalid domain, label or confidence. It also skips lines that answer a site that wasn't asked.
  • A site answered more than once is dropped, even if one answer is malformed. Answers are counted before they're checked.
  • A skipped site keeps niche = null and gets no checkpoint, so the next run asks again. A batch with nothing usable still fails.

Reviewed by Sol over two rounds. Round 1's P2 (a malformed repeat could keep a conflicting label) is fixed. Round 2 had no findings.

🤖 Generated with Claude Code

A single mangled line from the model ended today's production run with
"Invalid domain". Lines that are malformed, off-list, or invalid are now
skipped, and a site answered more than once is dropped. Skipped sites keep no
checkpoint, so the next run asks again. A batch with nothing usable still fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RaviTejaKNTS
RaviTejaKNTS merged commit a6c44f6 into main Oct 21, 2026
4 checks passed

This branch was previously deployed

1 inactive deployment
production — 5241d192 Deployed Oct 21, 2026 by RaviTejaKNTS via verify-production-build #76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant