← Back to Pull requests

feat(ingestion): Polish Pickup maker roster script and November fixture check (brand sources Phase D) #505

Closed
unknown closed this pull request without merging on Nov 09, 2026 07:08 UTC
View on GitHub
unknown unknown commented on Nov 08, 2026 18:39 UTC
Author

Summary

Phase D of the brand-sources ingestion plan (docs/superpowers/plans/2026-11-08-brand-sources-ingestion.md, Task 13), stacked on #504 (Phase C). Base is feat/brand-sources-phase-c so the diff shows Phase D only; GitHub retargets it as the stack merges.

  • Polish Pickup verified against the November 2026 shop: fixture tests/fixtures/polish-pickup-products.json (92 products from the 2026-11-08 pull) run through the real connector gate: 75 kept (the 70 PPU polishes plus 5 IPU coats and treatments), Merchandise / Hand & Nail / Gift Cards dropped. The existing filter and title parser from the dev retailer work needed no change.

  • Maker roster script npm run roster:polish-pickup --workspace=swatchwatch-functions -- [--json] (scripts/polish-pickup-roster.cjs, pure diffRoster in src/lib/polish-pickup-roster.ts): one products.json request with the connector's User-Agent, one line per vendor with its product count and the registered source it maps to (or -), --json for the monthly outreach list. Matching lowercases, reads & as "and", strips punctuation, and falls back to a source name that is the vendor plus a trailing Lacquer / Nail Polish / Polish word (exact match wins); a test runs it over the real seed file (Sweet & Sour Lacquer, Kathleen & Co, Bee's Knees, Zombie Claw, Dam Nail Polish, Sassy Sauce Polish map; Lumen does not). On the live shop: 24 of 76 vendors are registered sources.

  • Docs: README admin-scripts entry and Polish Pickup bullet, CLAUDE.md Dev Commands line, evaluation §3.3.
  • Owner step

    Run the roster on the first Saturday of each month (owner checklist item 4) and email the makers not yet registered, ten per batch.

    Test plan

  • npm run build:functions && npm run test --workspace=swatchwatch-functions (3427 tests, 3425 pass, 2 skipped)

  • npm run typecheck

  • CI green
  • 🤖 Generated with Claude Code

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    New Features
    Added a command to list Polish Pickup vendors, product counts, and matching registered data sources in formatted or JSON output. The command fetches product data once and does not require a database.
    Documentation
    Added guidance on Polish Pickup retailer ingestion, including its pending-approval status, filtering and listing behavior, and release order.
    * Documented that the vendor roster command is intended for monthly use.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 327 lines (+245 / -82) across 4 files Reviewer: mattmck Review duration: 748m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 327 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.347
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #505"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42% (MEDIUM) · Higher = larger blast radius
    42%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.6% · Safe to merge
    16.6%