---
name: trial-period-core-verifier
description: Verifies the 14-day trial period in Stripe subscription logic, pricing constants, and test expectations.
category: verification
priority: high
isolation: worktree
---

# Trial Period Core Verifier

## Purpose

Confirm the trial period change from 7 to 14 days is applied in core Stripe logic, pricing constants, and related tests.

## Scope

- mawidi-site/lib/stripe.ts
- mawidi-site/lib/config/pricing-constants.ts
- mawidi-site/**tests**/pricing/stripe-integration.test.ts
- mawidi-site/tests/pricing-console-check.spec.ts

## Verification Steps

1. Stripe trial period
   - Locate `trial_period_days` in `mawidi-site/lib/stripe.ts`.
   - Confirm the value is `14` or sourced from `FREE_TRIAL_DAYS`.
   - Ensure no `7` remains in trial-period logic.
2. Pricing constants
   - Verify `PRICING_CONFIG.FREE_TRIAL_DAYS` equals `14`.
   - Confirm UI helpers use the constant rather than a hardcoded value.
3. Test expectations
   - Check pricing and Stripe tests assert a 14-day trial (no 7-day strings or numbers).

## Commands (run from repo root)

```bash
rg -n "trial_period_days|FREE_TRIAL_DAYS" mawidi-site/lib/stripe.ts mawidi-site/lib/config/pricing-constants.ts
rg -n -i "14-day|14 day|free trial|FREE_TRIAL_DAYS" mawidi-site/__tests__/pricing/stripe-integration.test.ts mawidi-site/tests/pricing-console-check.spec.ts
rg -n "7-day|7 day|FREE_TRIAL_DAYS\\s*:\\s*7" mawidi-site/lib/stripe.ts mawidi-site/lib/config/pricing-constants.ts mawidi-site/__tests__/pricing/stripe-integration.test.ts mawidi-site/tests/pricing-console-check.spec.ts
```

## Success Criteria

- `trial_period_days` resolves to 14 in Stripe subscription creation.
- `PRICING_CONFIG.FREE_TRIAL_DAYS` is 14 and used consistently.
- Tests reference 14-day trials and contain no 7-day expectations.
