# Readings taken where a held-out spec was ambiguous

Written after the 12 specs were implemented in `independent/faults.py` and applied once to the clean company to see
whether each one selects rows, and before any check, original or new, ran on any held-out fault
(DESIGN-independent.md section 5). Each line names the phrase and the reading taken. Nothing here rewrites a spec.

## All held-out faults

- "Do nothing" if nothing qualifies: replaced by the protocol. A fault that selects nothing raises and is reported as
  not applied, because applying it would leave the clean company and score a miss that never happened.
- "Evaluate against the original data": every selection reads the clean company before this fault; each fault runs
  alone on its own copy. Ids have a fixed width, so ascending id order is numeric order.
- "Round half up", "decimal arithmetic": every recomputed amount is rounded once, to the cent, half up.
- "Linked workspace" of an account: its `crm_accounts.workspace_id`; of a card customer: its `card_customers.workspace_id`.
- A plan kind "throughout" or "on every day" of a window, "according to product_plan_changes": the latest change on
  or before the window's first day has that kind, and no change falls inside the window after its first day.
- `first_month` as the author stated it is what the history check reads (DESIGN-independent.md section 2): a fault
  whose first month is September 2026 meets a clean previous-close copy; every other fault meets a faulted one.
- No spec changes an outside record; every `outside_records_changed` is false, and the outside records stay as built.

## H01, wrong monthly Business price propagated into billing

- Proration periods are monthly, as the spec says for BUS-M. The refund rule uses the line's own period start, which
  for a proration line is the day of the seat increase, as the spec writes it.

## H02, lifetime coupons dropped during subscription creation

- "Recurring line ... its card_price_list.unit_amount": the clean price of the subscription's own price id.

## H03, signed contract discount entered five points too low

- "Its opportunity.amount ... sum over its tiers ... each tier is one contract year": the sum of each tier's annual
  list value times the new discount factor, with no month weighting (every tier of the selected contract is 12 months).
- "Existing payments on invoices containing those lines": none exist (the selected contract's first invoice is not yet
  paid at the extract), so no payment changes.
- "Monthly snapshots ... between service_start and service_end": only the September 2026 month end falls in the window
  in the extract.

## H04, second-year ramp copied from the first year

- "Signed_on and service_start both in August 2025": the calendar month of each date.
- "Recurring invoice lines whose invoice_date falls in tier 2": invoice dates from tier 2's start to its end, inclusive.

## H05, September run counts doubled before billing

- "Having one card subscription covering every day from 2026-07-01 through 2026-09-30, with ended_on null": exactly one
  subscription across the workspace's card customers that started on or before 2026-07-01 and has not ended.
- "Exactly one card usage line": one `usage` line (not `usage_late`) with the stated invoice date and period.

## H07, next-period seat decrease applied in September

- Not applied. The spec selects a seat decrease effective on a monthly subscription's next period start, between 1 and
  5 October 2026. The extract holds no seat change after 2026-09-30, so nothing qualifies. Reported, not rewritten.

## H08, annual renewal opt-out recorded as immediate cancellation

- "No other subscription for that customer overlapping those days": no other subscription of the same card customer
  with a start on or before 2026-09-30 and no end, or an end on or after 2026-09-15.

## H10, late August usage relabelled as loaded before the cutoff

- "One unchanged paid motion ... on every day from 2026-07-01 through 2026-09-30": the plan kind on 2026-07-01 is
  `self_serve` or `contract` and no plan change follows inside the window. The `usage_late` line is looked for on the
  card bill for a `self_serve` workspace and on the contract invoice for a `contract` workspace.
- Fewer than 10 rows qualify (7); all 7 are changed, as the spec allows.

## H11, workspace link erased during a September migration

- The account's linked workspace is the one its `crm_accounts.workspace_id` names before the change.

## The first set's five misses, run in-sample

- The first set's specs (blind/author-specs.json) state no first month. For the history check, each is read as
  having entered the data after the previous close, so the previous-close copy is clean. That reading favours the
  history check, and the in-sample score is labelled as built after seeing these faults.
