← Back to Pull requests

Find a rival's pricing page when its menu doesn't link to one #7504

Open
unknown opened this pull request with 362 lines diff across 4 files
View on GitHub
unknown unknown commented on Oct 14, 2026 10:15 UTC
Author

<!-- claude-projects-attribution: {"github_login":"nish3451"} -->
_Requested by Nish · project thread_

Before: a rival's pricing page was found only if its site menu linked to one, so rivals with no menu link had no pricing tracked.

After: when classification ends with no pricing page, we also try /pricing, /plans, /pricing-plans, /plans-and-pricing and /prices on the rival's own site. Pages that load and have their own title go to the existing Jev page-role question, so code never decides what a page is.

How. Plain fetch only: no browser, no extra budget, no migration, no new dependency. Failures, bot walls, pages repeating the home title and already-known URLs are skipped. At most 5 plain GETs and a few cached Jev calls per rival per classification. A small extraction in app/lib/identity/tail.server.ts plus one call, a new app/lib/site/pricing-probe.server.ts, and test cases in competitor-pricing.integration.test.ts.

Overlap. It conflicts on one feature-map line with the pricing-coverage PR (#7493); whichever lands second resolves it. Otherwise they compose.

🤖 Generated with Claude Code

https://claude.ai/code/session_015hrAEk2RWM9EUbuQo8ckbn

---
_Generated by Claude Code_

<!-- codesmith:footer -->
---
<a href="https://app.blacksmith.sh/Nishfleet/codesmith/0509/pr/7504?autoLogin=true&ref=codesmith_pr_footer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v3.svg"><img alt="View with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3.svg"></picture></a> <a href="https://backend.blacksmith.sh/track/enable-autofix?expires=1794564904&installation_model_id=439642&pr_number=7504&ref=codesmith_pr_footer&repository=Nishfleet%2F0509&return_to=https%3A%2F%2Fgithub.com%2FNishfleet%2F0509%2Fpull%2F7504&signature=c43e66ce34e426505a4c010ac3d099319137c91b9a44e8d71dd9bdba5f0ede66"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img alt="Autofix with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you need.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->

Diff: 362 lines (+271 / -91) across 4 files Reviewer: github-actions[bot] Review duration: 2m
All Vouch review confidence checks passed
Residual risk 0.38 = Change Risk (0.48) × (1 − Review Confidence (0.20)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 362 lines diff across 4 files
0.48
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 29% · Reviewer familiarity: 35%
20%
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.353
Shallow Review Depth shallow_review_depth
0.344
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #7504"
general weight: 0.35
Assignees
Unassigned
Labels
risk: medium confidence: 20.2% 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: 47.6% (MEDIUM) · Higher = larger blast radius
47.6%
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: 20.2% · Lower = rushed or shallow review
20.2%
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: 38% · Moderate risk
38%
Repository