# Nectar product contract

Target edition: 17 October 2026. Nectar is a complete subscription and
usage-based billing platform owned by the business that uses it. A US business
moving from a subscription or usage-based biller gets usage depth and billing
agents too. It manages the pricing catalog and entitlements, meters usage in real time,
rates it exactly, issues and delivers invoices automatically, collects through
the merchant's own payment processor (card and ACH), recovers failed payments,
gives customers a self-service portal, calculates US sales tax through a tax
provider, syncs the books and produces ASC 606 revenue schedules.

This is a target contract: it describes the product Nectar is being built
towards, not only what ships today. Every named clause states what a buyer gets
and the acceptance journey that proves it through a public door (screen, form,
JSON API, download, command or provider webhook), with fakes only at the paid
or network edge (processor, tax, accounting, CRM and mail sandboxes). The
[Status](#status) table at the end marks each clause `done`, `partial` or
`missing` at a named commit; [ACCEPTANCE.md](ACCEPTANCE.md) lists every
clause's acceptance evidence with the same status, so a build round can work
towards it. A gap in today's implementation never narrows this destination.

## Product target

| | |
| --- | --- |
| Category | Subscription billing and usage-based billing |
| Incumbents a buyer switches from | Subscription billers and usage-billing services |
| First buyer | A US B2B software or service business billing subscriptions, seats and metered usage in US dollars, run by an owner, a finance lead and an engineer, with an outside accountant |

**The whole job.** Turn commercial terms and product usage into correct
recurring charges, deliver them, collect the money through the merchant's
processor, and keep subscriptions, customer access, tax and financial records
in agreement. That means: a versioned catalog with every common pricing model
(flat, seat, tiered, volume, package, commitments, ramps, prepaid credits,
annual and multi-year terms); a metering pipeline with stable event identity;
the full subscription lifecycle; an entitlements API and SDKs; automatic invoice
runs with real email delivery; card and ACH collection through Stripe, Adyen or
Braintree; smart retries and dunning; B2B collections and cash application; a
customer portal; US sales tax through Stripe Tax or Avalara; QuickBooks Online,
Xero and NetSuite sync; ASC 606 revenue schedules; SaaS metrics; CRM contract
inputs; and move-in from every supported source biller with a reconciled shadow run.

**Neighboring products stay separate.** Nectar links to its siblings rather
than rebuilding them: [Orbit](https://github.com/just-every/run-orbit) is the
CRM that sends closed-won deals; [Platter](https://github.com/just-every/run-platter)
writes proposals and quotes; [Inkwell](https://github.com/just-every/run-inkwell)
collects signatures; [Locket](https://github.com/just-every/run-locket) manages
the contract lifecycle; [Pantry](https://github.com/just-every/run-pantry) is
the general ledger; [Easel](https://github.com/just-every/run-easel) forecasts;
[Buoy](https://github.com/just-every/run-buoy) and
[HappyToHelp](https://github.com/just-every/run-happytohelp) read billing
context for customer success and support; [Purse](https://github.com/just-every/run-purse)
is the buyer-side procurement system that receives Nectar invoices;
[Nook](https://github.com/just-every/run-nook) carries chat alerts;
[Crank](https://github.com/just-every/run-crank) automates cross-tool
workflows; [Auth](https://github.com/just-every/run-auth) is an identity
provider. Each integration is a clause below; none of those products is part
of Nectar.

**How to read this contract.** The sixteen published clauses (`NEC-01` to
`NEC-16`) are the released first edition and keep their IDs and behavior; they
are the exact rating and invoicing core the target builds on. Target clauses
extend them. Where a target clause widens a published one (for example
`TAX-001` replaces the single declared state rate with provider calculation),
the published clause still holds as written, as the provider-free mode.

## Operating rules

These rules bind every clause, published and target.

- **A fresh installation starts empty.** The owner enters the business, its catalog and its customers, or moves them in. Nothing is pre-filled with sample data.
- **Exact money.** Unit prices and quantities are exact decimals with at most six fractional places; nothing passes through binary floating point. Each invoice line rounds once to whole cents, half away from zero; tax is the declared or provider-returned amount, rounded once. The rule set is versioned (`nectar-rating-1` today) and recorded on every invoice; a new pricing model ships as a new rule version, never as a silent change to an old one.
- **Same inputs, same bill.** Rating is a pure function of recorded inputs: the business's timezone and tax basis, the customer's exemption, the subscription's dates, items, prices, commitments, credits and approved contract exceptions, and the unbilled usage events. Those inputs are fingerprinted on every draft.
- **Approval names exact inputs.** Approving a draft, a change or a proposal records its input fingerprint. Executing it recomputes the fingerprint; if anything changed, the approval no longer holds.
- **History is append-only.** Price versions, issued invoices and their lines, credit notes, payments, refunds, allocations, revenue schedules, the usage ledger and the audit trail are never edited or deleted. Corrections are new records.
- **Each period bills once; each invoice collects once.** A subscription period has at most one issued invoice, a usage event is billed on at most one invoice, and a payment attempt carries an idempotency key derived from the invoice and attempt number, so a retry, a restart or a duplicate provider webhook can never charge twice.
- **Money moves only through the merchant's processor.** Nectar never holds card or bank-account numbers, never takes custody of funds and never acts as merchant of record. It instructs the merchant's own Stripe, Adyen or Braintree account, using processor-hosted fields for payment details, and records the processor's references and outcomes.
- **Policy decides what runs unattended.** The owner sets which actions run automatically (issuing clean invoices, charging stored payment methods, sending invoices, retries and notices) and which wait for a person (exceptions, credits, write-offs, refunds and price changes above set limits). Every automated action is audited with the policy that allowed it.
- **Roles are checked in every handler.** Every server handler checks the actor's capability itself, for pages, form posts, the JSON API, webhooks and downloads alike; routes are not the boundary.
- **Agents prepare; people decide.** An agent or application credential reads and proposes within its scope. It never approves its own proposal, issues a credit, refunds, writes off, changes a price or manages access. Every approval records the person who made it.

## First release: sixteen clauses

The released first edition, kept as released with its acceptance evidence added. Each is proven by its named check
in `tests/nectar/flows.mjs` (`pnpm run test:flows`, part of `rer verify`).

### Billing flows

- **NEC-01 — Set up the business.** The owner records the legal name, billing address and email, a billing timezone, an invoice number prefix and payment terms, in US dollars only. The owner declares a tax policy for one US state (no sales tax, or one flat rate on taxable lines) with its basis, and reviews it. Invoices cannot be finalized until a declared policy has been reviewed; any later change needs a new review. The timezone cannot change once an invoice is issued. **Acceptance evidence:** NEC-01 business, currency, timezone and declared tax; finalizing refused until review in `NEC-10`.

- **NEC-02 — Keep customers and billing contacts.** Operators add customers under the business's own external id (the id a CRM or previous biller uses; usage files refer to customers by it), with a billing email, address and an optional tax exemption backed by a certificate reference, and add billing contacts. External ids and contact emails are unique; edits are guarded against concurrent changes. **Acceptance evidence:** NEC-02 customers and billing contacts with external ids.

- **NEC-03 — Version the catalog.** Operators define products, simple meters and prices: flat monthly, per seat monthly, or per unit of a meter. A price is an immutable version; a new price is the next version and earlier versions keep billing the subscriptions that use them. A retired version is unavailable to new subscriptions. Products grant named features. **Acceptance evidence:** NEC-03 products, immutable price versions and meters.

- **NEC-04 — Start subscriptions.** Operators start a subscription with an explicit billing day (1–28), a start date, an optional trial end and one to twenty plan items with seat quantities. Contract exceptions — a discount on fixed and seat charges, a one-time credit, or a contract price for one plan price, each with dates, a note and the quoted clause — are recorded as proposed and bill only after a person approves them. One customer cannot have two live subscriptions rating the same meter. **Acceptance evidence:** NEC-04 subscriptions with anchor, trial and approved exceptions and NEC-04 a subscription with an end date still holds its meter until it ends.

- **NEC-05 — Bring in usage.** Operators upload a CSV, or an application credential posts events, each with a stable event id, customer id, meter, exact quantity and an ISO 8601 time with an explicit offset. An id already recorded with the same values is a duplicate and changes nothing; reused with different values, or with an unknown customer or meter or an unreadable time, it is rejected and reported by row. Each import is one atomic batch with its own report. **Acceptance evidence:** NEC-05 usage with stable ids and duplicate rejection; credential submission in `NEC-14`.

- **NEC-06 — Inspect before rating.** For any month, a person sees each metered subscription's exact period totals per meter, the period's boundaries in the billing timezone, days with no usage, events that arrived after the period ended, unbilled events from earlier periods and events no price rates. **Acceptance evidence:** NEC-06 missing and late usage and exact totals before rating (23:30 on 31 July in Los Angeles belongs to July).

- **NEC-07 — Rate deterministically.** Fixed and seat charges bill for the days of the period they are in effect, outside any trial; usage sums exact event quantities per price and multiplies once; late usage bills in the next period at the price in effect when it occurred; contract discounts and credits apply as approved. Preparing again from the same inputs yields the same lines and fingerprint. **Acceptance evidence:** NEC-07 deterministic rating with explicit rounding (Northwind's July invoice totals $2,081.44 line by line).

- **NEC-08 — Schedule plan and quantity changes.** Operators prepare a change to one plan item from a date and see the affected period's charges before and after (with proration) and the next full period. A person approves that exact preview; it is refused if the subscription changed since, or if the date falls in a period already invoiced. The bill run charges exactly what the approved preview showed. **Acceptance evidence:** NEC-08 scheduled changes bill exactly as previewed.

- **NEC-09 — Draft a bill run and compare it.** For a month, Nectar drafts one invoice per subscription period that started in it and has ended, lists periods not yet ended and periods already invoiced, compares each draft with the subscription's previous invoice and the run with the previous run, and lists exceptions (missing usage, large change, unrated usage, missing billing email, undeclared tax, credits beyond charges, disagreement with the previous biller). Preparing again replaces the draft. **Acceptance evidence:** NEC-09 draft bill run comparison and exceptions.

- **NEC-10 — Approve and finalize numbered invoices.** A person approves one draft or every clean draft, acknowledging any listed exceptions; blocking exceptions cannot be approved. Finalizing issues approved invoices whose inputs are unchanged with the next sequential number, an invoice date from the end of the period up to today and a due date from the payment terms, marks the billed usage, and keeps the accepted calculation, its fingerprint and rule version with the invoice. Issued invoices never change. **Acceptance evidence:** NEC-10 approval, source changes and numbered finalisation.

- **NEC-11 — Credit and record payments.** A person issues a numbered credit note against an issued invoice for no more than it still owes, with a reason. Operators record payments received outside Nectar with their method, unique reference and evidence, and allocate them to the customer's invoices, never beyond the payment's unallocated amount or the invoice's balance. For every invoice, total = credited + paid + owed. **Acceptance evidence:** NEC-11 credit notes, payment evidence and allocations.

- **NEC-12 — Follow up overdue balances.** Operators see aging (not yet due, 1–30, 31–60, 61–90, over 90 days) per customer and invoice, draft a reminder stating the overdue invoices, balances and recent payments, and a person approves the exact recipient and wording while those balances still hold. The approved reminder downloads as a message to send from the operator's own mail, and approval opens a dated follow-up task that is closed with its outcome. Sending from Nectar itself is `AR-001`. **Acceptance evidence:** NEC-12 ageing, reminder drafts and follow-up tasks.

- **NEC-13 — Leave with the data and explain entitlements.** Accountants and operators download issued invoices, usage events and subscriptions as CSV, and any bill run as one JSON document with every invoice's lines, calculation inputs, fingerprint, approval and issue events. The whole installation exports with `rer export` and restores with `rer import` into a fresh installation with every portable row, including the calculation evidence, unchanged. For any customer, feature and date, Nectar explains whether the feature is granted, subscription by subscription, step by step. **Acceptance evidence:** NEC-13 exports and entitlement explanations; the restore round trip in `tests/nectar/journey.mjs`.

### Agents, access and move-in

- **NEC-14 — Let an agent prepare the work.** The owner issues scoped credentials. With `prepare`, an agent reads records and proposes (a) contract terms from a signed agreement, quoting each clause and flagging ambiguity; (b) a new price version for selected subscriptions from an exact date; (c) bill-run usage corrections with their sources; and (d) a collections reminder. Nectar computes the invoice effect of each proposal itself. A person approves or rejects; a proposal whose records changed since it was prepared is refused. Approving a usage correction re-prepares the draft run and approves no invoice. With `usage`, a pipeline submits usage events. Credentials are revocable. **Acceptance evidence:** NEC-14 agent prepares, a person approves.

- **NEC-15 — Control access.** The owner invites finance operators and accountants through Base operator sign-in, ends access (ending every session), and is the only one who changes business settings, the tax policy, access, credentials or a move-in cutover. Every page, form, API call and download enforces the role, signed-out requests get nothing, and cross-site form posts are refused. **Acceptance evidence:** NEC-15 roles are enforced in every handler (crawls every action and every GET door).

- **NEC-16 — Move in from the previous biller.** Operators upload owner-captured source API list responses for customers, products, prices, subscriptions, invoices and billing meters with a manifest of counts. Nectar refuses an incomplete capture, previews every record it would create or reject without writing anything, applies the exact reviewed preview as one journaled batch with its original files retained, adds nothing on a repeated apply, and undoes an untouched batch. Moved-in subscriptions arrive in shadow: they are rated and compared with the previous biller's own invoices price by price but can never be approved or issued, until the owner adopts each one from a period the previous biller has not billed. Once its records have been billed on, a move cannot be undone silently. **Acceptance evidence:** NEC-16 the previous subscription biller move-in with dry run, journal, undo and shadow cutover.

## Target clauses — 17 October 2026

Binding requirements of the full product. Acceptance runs against the real
Worker and D1 through public doors; processors, tax engines, accounting and CRM
systems and mail are exercised through their sandboxes (Stripe test mode with
test clocks, Adyen and Braintree sandboxes, Avalara sandbox, QuickBooks Online
and Xero developer companies, NetSuite sandbox, Salesforce developer org,
Postmark sandbox server).

### Business setup and catalog

- **SET-001 — Multiple billing entities.** One installation can hold several US legal entities (for example an operating company and a subsidiary), each with its own legal name, address, EIN, invoice prefix and number sequence, payment terms, processor account, tax registration and accounting company. Customers bill from one entity; reports and exports filter by entity and consolidate across them. Before multiple entities ship, AGENT-006 executed-order setup quotes and enforces the selected entity and processor/ledger routing, previews the complete term and applies it under the same atomic human approval. **Acceptance evidence:** Create two entities with separate Stripe test accounts and QuickBooks companies, bill one customer from each, and see independent invoice sequences, charges on the right processor account, entity-filtered and consolidated revenue reports, and journals posted to the right company.

- **CAT-001 — Billing intervals and terms.** Prices bill weekly, monthly, quarterly, semi-annually, annually or every N months, in advance or in arrears, and a subscription has a contract term (monthly, 12, 24 or 36 months) separate from its billing interval. One subscription can mix intervals (an annual platform fee billed in advance with monthly usage in arrears), and new items co-term with the existing term end. Before in-advance or nonmonthly plans ship, AGENT-004 must replay their actual saved service intervals and full contract-term history with the same per-invoice and cohort engine deltas, current signed terms, cited notices and exact approved scheduling. Before in-advance or nonmonthly plans ship, SUB-003 cancellation uses their actual contract-term end, credits already-issued unused future service without changing issued evidence, preserves cancellation and reactivation history and respects GOV-002 approval thresholds. Before annual or other contract terms ship, CAT-007 migrations select eligible term cohorts, resolve each actual renewal date, leave grandfathered annual contracts unchanged and prove those invoices equal their prior signed terms. Before new intervals, advance or renewal terms ship, AGENT-006 interprets their quoted settings, previews every period through the actual finite term (only evergreen terms stop at the labelled 36-period horizon) and proves ordinary billing equals that preview after one governed setup approval. Before new billing intervals ship, inherit SUB-005: saves, pause boundaries and win-back discounts cover the exact quoted number of those invoice periods, with same-engine previews, approved policy and unchanged issued evidence. **Acceptance evidence:** Start a 24-month subscription with an annual $12,000 platform fee billed in advance and monthly metered usage in arrears; advance a test clock through 25 months and see one platform invoice per year on the anniversary, 24 monthly usage invoices, a co-termed add-on prorated to the term end, and identical totals on re-preparation. Before annual or advance billing ships it inherits REV-001: immutable per-line schedules and exact AGENT-002 correction parity; bill an annual $12,000 plan in advance and recognize $1,000 in each of twelve months, reconcile the deferred liability, journals, source drill-through and CSV.

- **CAT-002 — Tiered, volume, package and graduated pricing.** A price can be graduated (each tier's units at that tier's rate), volume (all units at the rate of the tier reached), package (per block of N units, rounding up) or stair-step (a flat amount per band), with optional flat fees per tier, for seats and for metered usage. At quantity zero no tier activates, the charge is zero and the breakdown is empty. For package pricing, N is any positive exact decimal up to six places and the number of billed blocks is ceil(quantity / N). Graduated flat fees apply once to each occupied band; volume and stair-step pricing use the inclusive band reached. Each line's calculation shows the tier breakdown. **Acceptance evidence:** Rate 0, 1, 1,000, 1,001 and 2,500,000 units under each model through the bill run and compare every line and its tier breakdown with hand-computed expected cents, including the exact tier boundaries. For graduated, volume, package and stair-step pricing, prove zero charges zero with no activated tier and an empty breakdown. Use a fractional package N of 0.125 and verify ceil(quantity / N) blocks, including exact multiples and a partial block. Prove each occupied graduated band charges its flat fee exactly once, unoccupied bands charge none, and volume and stair-step choose the inclusive band at each boundary.

- **CAT-003 — Minimum commitments, overages and ramps.** A contract can commit to a minimum spend per period or per term (with a true-up line for the shortfall), price overage above an included quantity, and ramp prices or quantities on scheduled dates (year-one, year-two, year-three pricing). Commitment burn-down is visible to operators and the customer. For current monthly in-arrears invoices, signed commitment windows are independent of the invoice interval and use business-local [from, to) dates aligned to the subscription anchor. A records member prepares the quoted signed clause, minimum windows, included quantities and dated price and quantity ramps; a different active approval member approves the exact subscription revision, under GOV-002. Preparation or rejection changes no plan; approval atomically installs the dated item segments, preserving immutable price versions and history. Stale, duplicate, incompatible-price and already-issued-period changes are refused. Minimum spend is before tax: recurring and metered charges after discounts, including signed unused-service credits, but excluding one-time fees, fixed contract credits and other minimum true-ups. Trial, pause and cancellation days reduce the nominal minimum proportionally by active calendar days, rounded once to cents, half away from zero. Each window settles its positive shortfall on its final monthly invoice (or the final cancellation period), only after earlier monthly periods are issued; previously settled true-ups are deducted after reactivation. Tax follows the signed window's taxable flag. Included exact-decimal units apply once per exact price and original monthly period, consumed in chronological order before overage pricing; trial and inactive events consume no allowance, unused units do not carry, and late events use only the original period's unused allowance. Burn-down shows nominal and active minimum, issued eligible earnings, true-ups, remaining amount and links to every contributing issued invoice, excluding tax and unrelated fees/credits. Under ct's 19 October ruling this completes the current operator and API doors; PORT-002 inherits identical customer burn-down and issued-invoice reconciliation before that portal capability ships. **Acceptance evidence:** Sign a three-year ramp with a $50,000 annual minimum; under-use in year one and over-use in year two; see the true-up line at the year-one end, overage lines in year two, the ramp price switch on its date, and a burn-down that matches the issued invoices.

- **CAT-004 — Prepaid credits and drawdown.** A customer can buy or be granted prepaid credits (in dollars or units) with an effective date, expiry and priority; usage draws them down before it bills, with rollover rules, top-ups (manual or automatic at a low-balance threshold, charged through `PAY-003`), and a credit ledger. Paid and promotional grants are distinct: only paid value is a REV-001 contract liability; promotional grants carry no purchased consideration. Drawdown order is priority, then earliest expiry, then earliest effective date, with immutable grant ID breaking ties across dollars and units. Previews and USE-006 never consume; issue appends each drawdown once, atomically. Usage beyond the balance bills at the rated price on the same invoice, and the balance never goes negative. Expired paid value is breakage recognized on the expiry date and reported separately. A refund of unused paid credit is an INV-005/GOV-002 reversal of liability, never revenue. Unused paid-credit refund requests have two read tiers. Current owner and finance approvers see the frozen approval quote, free-text reason and processor proof; raw processor JSON is an audited attachment-only download. Every member who can read the customer's payments and invoices - support, collections, accountant included - sees each request's typed lifecycle: status (pending, rejected, approved, uncertain, refunded, failed), amount and units, original purchase/receipt/numbered credit, processor refund reference, a reason category, preparer, approver, approval mode (two-person or single-approver) and timestamps; never the narrative or raw proof. Agents get typed facts only. Erasure removes the request narrative and processor proof; GOV-005 retains the typed refund, cash, liability, numbered-credit and revenue facts. The same narrative custody applies when the refund's numbered credit appears in existing invoice, customer or portal reads and saved report and export copies: shared projections carry only the typed refund category, never a copied request reason. Shared credit reads use the typed refund source link to project `unused_paid_credit`, including legacy reasons in restored archives; saved report and export copies receive the category rather than the private narrative. The gate never matches free text. Historical prepaid corrections reserve, across the whole replay, the exact quantity and cents recorded on each completed cash refund, never re-derived or re-rounded by the replay; they restore only retained credit or bill excess once under the existing approved usage-correction disposition, and never alter, retry or increase a refund. Restored retained credit is unused paid credit: refunding it in cash is a new refund request under the same approval rules. While any refund on the customer's prepaid grants is pending, approved or uncertain, financial correction preparation is refused. Commercial comparisons carry an independent chronological wallet on each side, including through saved historical periods (ct 22 October ruling at `3e099d25`). Grant terms are human-approved under GOV-002. Before prepaid credits ship, their remaining ledger balances are included in the existing USE-006 operator and API views; PORT-002 inherits the same remaining-balance parity when the portal ships. Before prepaid balances ship, RPT-002 balance reports, source drill-through, CSV and scheduled snapshots equal the prepaid ledger after grants, drawdown, expiry and top-ups. The automatic top-up against a real processor test account is `CAT-011`; refund preparation beyond the owner, support and portal request intake, refund notices and the retention legal review are `CAT-012`. **Acceptance evidence:** Sell a $10,000 credit block, consume it across two periods with a promotional grant that expires first, trigger an automatic $5,000 top-up at a $1,000 balance (processor network edge synthetic; the real-processor run is CAT-011), and see the ledger, the invoice lines drawing credits, the top-up charge and the expiry all agree. At each grant, drawdown, expiry and top-up, USE-006 operator and API remaining prepaid balances equal the credit ledger after refresh within one minute, asserted inside push Verify; PORT-002 must preserve that parity before its portal ships. RPT-002 balance reports, source drill-through, CSV and scheduled snapshots equal the prepaid ledger after grants, drawdown, expiry and top-ups. Prepaid credits inherit REV-001: purchase is a contract liability until consumption and expiry, and exact schedule and period journals, source and CSV and every AGENT-002 correction preview and approval reconcile; repeat the prepaid block alongside annual advance fees and monthly usage. After a completed cash refund, repeated money and fractional-unit corrections keep the refunded quantity and cents unchanged, bill excess once on the next invoice, refuse while a refund is unresolved, and a later refund of restored credit is a new request that leaves the completed refund unchanged.

- **CAT-005 — Discounts, coupons, promotion codes and trials.** Beyond approved contract discounts, the catalog holds reusable coupons (percentage or amount, once, for N periods or forever, restricted to products) and promotion codes with redemption limits, expiry and first-time-customer rules. Trials run with or without a payment method on file and convert, extend or end by policy. **Acceptance evidence:** Redeem a 20%-for-three-months promotion code at checkout, exhaust its redemption limit, refuse an expired code, and run a no-card trial that ends unpaid and a card trial that converts and charges on the trial end date. A coupon restricted to the Pro product discounts only Pro's lines on a mixed invoice; a first-time-customer code is refused for a customer who has a paid invoice and accepted for a new one; an operator extends a running trial by 14 days and the first charge moves to the new end date with no invoice in between.

- **CAT-006 — One-time charges, add-ons and manual invoices.** Operators add one-time charges (setup fees, professional services) to the next invoice or bill them immediately, attach add-ons to a plan, and raise a standalone invoice for non-subscription work, all using catalog prices or an approved custom amount. **Acceptance evidence:** Add a $2,500 implementation fee to a new subscription's first invoice, attach a seat-pack add-on mid-period, and issue a standalone services invoice; each appears once, with its tax and numbering.

- **CAT-007 — Price changes across a customer base.** A commercial owner publishes a new price version and migrates a chosen cohort of subscriptions from an exact date (immediately, at renewal or at a later date), grandfathering the rest, with a preview of every affected invoice and an optional customer notice through `INV-002`. Current catalog cohorts are explicit sets of 1–200 subscription ids. A proposal can publish a new simple price or select an exact existing immutable catalog version, retaining its tier/volume/package/stair-step terms. Existing-target migrations move all matching kind/meter items, optionally restricted by source price; other items remain unchanged. Dated changes use the entered business-local date (today for immediate changes); renewal changes resolve each subscription’s first monthly anchor on or after the reference date, inclusive. The proposal freezes each resolved date and shows that subscription’s affected and next full invoice using the rating engine; usage/input changes invalidate approval, and approval applies all selected items atomically with GOV-002 separation and issued-period guards. Under ct’s 19 October current-door ruling, CAT-001 inherits annual/contract-term cohort eligibility, renewal timing and grandfathered invoice preservation before those plans ship; INV-002 inherits optional customer notice recipients, wording, amounts, resolved dates and actual delivery custody before that delivery capability ships. **Acceptance evidence:** Raise a plan from $499 to $549 for monthly customers at their next renewal while grandfathering annual contracts; the preview lists every affected subscription and its next invoice, approval schedules exactly those changes, and the bill runs charge the previewed amounts.

- **CAT-008 — Multi-currency prices.** A US seller can price in USD and in other currencies (for example CAD, EUR and GBP) with per-currency price books; each customer bills in one currency, invoices and payments stay in that currency, and reports convert to USD at a recorded daily rate. **Acceptance evidence:** Bill a Canadian customer in CAD and collect through a Stripe test account; the invoice, payment, credit and report show CAD amounts and a USD reporting value with the rate source and date.

- **CAT-009 — Customer hierarchies and consolidated billing.** A parent account can pay for its child accounts: usage and subscriptions roll up to one consolidated invoice with per-child sections, or each child bills separately with the parent as payer; commitments and credits can be shared across the hierarchy. **Acceptance evidence:** Create a parent with three divisions, bill them on one consolidated invoice with per-division subtotals, then switch one division to its own invoice paid by the parent's card, and see a shared commitment drawn down by all three.

### Customer record and search

- **CUS-001 — Find any customer and see the whole billing record.** Beyond storing customers and contacts (`NEC-02`), one search box on every operator screen (and the JSON API) finds a customer by billing email or contact email, partial name, external id, invoice or credit-note number, receipt number, processor payment or refund reference, metadata value (`DEV-005`) and payment-card last four digits with brand, and lands on one customer record. That record shows, for the customer and every child account (`CAT-009`): each subscription with its state and history; the upcoming invoice (`USE-006`); every invoice, credit note, payment, refund, dispute and write-off with its processor reference; payment methods on file (brand, last four, expiry, ACH bank name; never full numbers); the credit balance and prepaid credits (`INV-006`, `CAT-004`); contacts; notes (`CUS-002`); moved-in history (`MOVE-007`); and the customer's audit events. Its totals agree with the invoices behind them. Support, collections, finance, owner and accountant roles (`GOV-001`) work from it, each seeing only the actions their role allows; results never include another customer's records. **Acceptance evidence:** After a full billing cycle with card and ACH payments, a refund, a credit note and moved-in source history, search by billing email, partial name, invoice number, the previous biller charge reference and card last four; each search returns the customer, and a search for one customer's email returns no other customer. The record lists every subscription, invoice, payment, refund, credit note, payment method, credit balance and audit event for that customer; its invoiced, paid, credited and owed totals equal the sum of its invoices; a signed-in support member sees it and issues a credit within their limit; a signed-out request and an accountant's attempt to act get nothing. Current upcoming composition: the customer record lists each subscription separately for its business-local current anchor period, or the period starting in `preview_period` (YYYY-MM). Each row uses USE-006’s same-engine subtotal, tax, total, review exceptions, links to its original calculation, and labels issued calculations as frozen. It never sums overlapping subscription periods into a customer forecast, forecasts future usage or prepares an invoice. Outside-service and previous-biller periods have no invented amount. The composition requires the existing customer, subscription and invoice read capabilities; other customer readers retain their existing view. The current whole record includes every existing native and moved-in source, numbered recorded-cash receipts, explicit owner-refreshed historical card and ACH method observations and verified externally settled ACH cash. Observations confer no mandate or debit authority; ACH verification only reads existing settled processor facts. Future PAY-002 and PAY-003 and PAY-004 and PAY-006, INV-005 and AR-003 payment, general refund and dispute, customer receipt delivery and retry sources inherit this customer and child composition, family visibility, erasure and exact source and ledger parity before shipping.

- **CUS-002 — Notes and mentions on customers, invoices and payments.** Members add dated notes to a customer, invoice, payment or dispute, @-mention a colleague (who is notified through `INT-003`), and see notes on the customer record and in exports; notes are append-only and audited. For existing customer, invoice and payment records, owner and finance members with the records capability add notes, accountants read/export, and agents cannot add them. Mentions name active members who can read the record at delivery time; each distinct mentioned member receives one email with the note and a signed-in record link, with provider acceptance, development suppression, failure or uncertain delivery recorded honestly. No uncertain delivery is automatically retried. Notes keep their server timestamp, author and original record identity, and corrections are follow-up notes. Completion covers those existing record kinds and roles: `GOV-001` inherits support-role note creation, `AR-003` inherits dispute notes, and `INT-003` inherits mention preferences before those capabilities ship. **Acceptance evidence:** An owner or finance member adds a note to a payment mentioning the finance lead (the support-role version is inherited by `GOV-001`); the finance lead receives one email naming the payment, the note appears on the customer record and in the customer export, and an edit attempt is refused while a follow-up note is added.

### Usage and metering

- **CAT-010 — Top-up authorization and card-on-file evidence.** No automatic top-up runs without the customer’s recorded authorization. It cites its signed source (an AGENT-006 order or a portal acceptance) and the exact threshold, amount, per-period cap, card, start date and how to revoke; the owner’s approval must match it. Each charge is a merchant-initiated off-session PaymentIntent with one durable claim per crossing, no retry on uncertainty and a hard stop at the cap. Revocation or card replacement ends it. Receipts and notices remain a DUN-003 obligation; ACH top-ups wait for PAY-002 mandates. **Acceptance evidence:** With no customer authorization, no charge; one top-up per crossing; a second crossing in the period is refused at the cap; an uncertain charge gets no retry; after revocation, no charge.
- **CAT-011 — Automatic top-up on a real processor test account.** The CAT-004 automatic top-up runs end to end against a real Stripe test account rather than a synthetic network edge. Nectar's own clock is never ahead of the processor's actual capture time during calls to Stripe. The funding date is the actual capture date, with no date substitution and no retry. **Acceptance evidence:** On a real US Stripe test account, with CAT-010 signed customer authorization and independent approval, a really captured $10,000 purchase funds the block. Issued usage invoices drive the balance across $1,000. Exactly one off-session $5,000 PaymentIntent and charge is captured on the funding date, with one purchase invoice allocated once and one receipt recorded. The ledger funds once. After funding, USE-006 operator and API and RPT-002 balance and source and CSV equal the ledger. A second crossing in the period is refused at the cap with no write to Stripe. After revocation there is no write to Stripe. The run commits a receipt with the exact SHA, the Stripe IDs and owned-clock cleanup.
- **CAT-012 — Prepaid refund preparation, intake and notices.** Finance members with refund capability prepare CAT-004 unused paid-credit refunds under the same GOV-002 thresholds and two-person rule, and the preparer never approves. Support members, and customers through the portal (own customer only), submit requests that enter the same lifecycle as pending without moving money. Each refunded or failed outcome sends one refund notice under DUN-003's template, switch and one-sender rules (`receipt_email` never set), with no retry after an uncertain send. The seven-year retention boundary for typed refund facts carries a recorded legal review. **Acceptance evidence:** Finance prepares and a different finance member or owner approves; self-approval is refused. A support request and a portal request each create exactly one pending request with the requester and typed category, and no cash moves before approval. Refunded and failed outcomes each produce exactly one notice at the mail edge with the exact amount, units and credit number; an uncertain send gets no retry, and the notice is off when the owner's record says the processor sends it. An owner-held legal-review record exists before DONE. Current semantics: the existing approve capability is the refund capability for owner or finance members; every refund requires a different current owner or finance approver, including a sole-owner workspace. Support and customer intake retain their original requester and typed category separately from the financial preparer, under one lifecycle id. Intake never authorizes a processor write or reserves the balance. The owner chooses off, Nectar or processor independently for each outcome; both default off until that explicit audited choice. Templates follow customer language, preserve the actual amount, units, purchase and credit facts, and never include approval narratives or raw processor proof.

- **USE-001 — Metering API at production scale.** Product usage arrives through the authenticated API, the SDKs (`DEV-003`) or batch files, keyed by stable event ids, and is acknowledged durably before it is aggregated. Nectar publishes the capacity it has measured: at least 1,000 events a second sustained and 100 million events a month in one installation, with raw events retained for replay. The same doors accept the previous biller's meter-event request body and, during a move-in, relay each event to the biller that still owns its period (`MOVE-010`), so the app's usage call never changes during or after the migration. **Acceptance evidence:** Drive 100 million synthetic events through the API with duplicates and out-of-order times, measure sustained throughput and acknowledgment latency, and show period totals equal to an independent count with no event billed twice; post a previous-biller-format meter-event body twice with the same `identifier` and see one event recorded.

- **USE-002 — Billable metrics and dimensions.** A meter defines its aggregation (sum, count, maximum, unique count, latest value, or time-weighted such as seat-hours or GB-months) and filters and group-by properties (for example model, region or tier), so one event stream can price several ways. An advanced meter can be a read-only SQL query over the event store, previewed against past periods before a person activates it as a new meter version. Current native meters and the supported read-only SQL grammar compile to one exact-decimal engine. Each immutable version selects a source stream, aggregation, numeric value (quantity by default), scalar filters and up to five group-by properties. Event properties retain scalar strings, booleans, null and safe integer numbers (decimal values use exact strings); their canonical map is part of stable event identity, including CSV ingestion/export. Sum, event count, maximum, typed distinct non-null values and latest are computed over the selected [from, to) events; latest ties use the greatest event id. Missing group values group with null. Time-weighted snapshots are piecewise-constant per chosen entity, with zero before the first snapshot, the last preceding snapshot as context and a filtered-out snapshot resetting state to zero; each snapshot changes its own dimensions without future leakage. Hours divide elapsed milliseconds by 3,600,000; billing-period months divide by the actual elapsed period, including daylight-saving changes. Trial, paused and canceled service intervals contribute zero. Quantities retain an exact rational through simple, graduated, volume, package and stair-step pricing and included-unit subtraction; the six-place quantity is display only, and each money line rounds once half away from zero. Existing dated items and approved unit overrides select their actual active intervals. A source belongs to one customer subscription at a time: that subscription can price several metrics and disjoint dimension selections, but overlapping equal version/dimension selections and competing subscription ownership are refused at creation, add-on and reactivation doors. All raw source events are consumed once on their owning invoice, with selected and predecessor ids retained in immutable line evidence; source reconciliation still applies once to the raw stream. Preview, usage inspection, upcoming calculations, issued invoices, report drill-down and CSV preserve the same source properties and metric versions. Owner/finance records members prepare and activate versions; accountants and read credentials may preview, usage credentials only ingest. Activation needs saved, unchanged previews of three distinct past months for one customer; activation recomputes their fingerprints and guards the source atomically. Prices bind exact active versions and every group-by value; a new version never rewrites existing prices or invoices. SQL supports one aggregate over projected `usage_events`, optional group-by properties, `SUM` (including arithmetic and `CASE WHEN`), `COUNT(*)`, `MAX`, `COUNT(DISTINCT properties.key)`, `LATEST(quantity)` and `TIME_WEIGHTED(quantity, 'hour'|'month'[, properties.entity])`; predicates support `= != < <= > >= IN NOT AND OR`, and arithmetic uses quantity or numeric properties. Caller SQL is parsed, never executed against D1; writes, multiple statements, joins, subqueries, other tables and unknown syntax are refused. Exact negative results remain visible in metric previews; billing records a blocking `metric_negative_quantity` with the exact signed quantity and refuses approval until corrected, without clamping or issuing an ungoverned credit. Under ct's 19 October ruling, late nonadditive events are named blocking corrections rather than standalone re-aggregation/overcharging; USE-004 inherits their historical delta and governed credit-note policy before that correction capability ships. **Acceptance evidence:** Define sum, count, max, unique-users and GB-month meters over one event stream with a `model` property, price two models differently, and compare each period total with an independent computation over the raw events; define a SQL meter, preview it on three past months, and see a write statement refused.

- **USE-003 — Bulk usage from storage and warehouses.** Usage loads from files dropped in Amazon S3 or Google Cloud Storage and from scheduled Snowflake or BigQuery queries, with the same identity, duplicate and rejection rules as the API, and a per-load report. **Acceptance evidence:** Drop a 10-million-row Parquet file in an S3 test bucket and schedule a BigQuery query; re-delivering the same file changes nothing, a malformed row is reported, and totals match the source counts.

- **USE-004 — Usage corrections after billing.** A late or corrected event that touches an already issued invoice follows the business's policy: bill it in the next period, raise a correcting invoice, or issue a credit note, always with a line naming the original period and event ids. Backfilling a historical range replays rating without changing any issued invoice. The read-only historical preview accepts an inclusive range of 1–36 issued monthly periods and up to 10,000 distinct original void ids plus 10,000 distinct recorded, unbilled addition ids. It reproduces each original before rerating saved prices, metric versions, service windows and tax, retains predecessor context, propagates replayed commitment contributions within the selected range, and returns signed subtotal/tax/total deltas and original event citations. Missing issued periods, foreign and unavailable events, already-billed additions or irreproducible saved evidence are refused. The preview is explicitly unresolved and covers only the selected range: later periods may also be affected. It changes no event, invoice, credit, proposal, approval, message or existing issue block. Financial preparation separately replays the complete issued chain through its latest period, without the exploratory preview's 36-period bound. An append-only proposal freezes the source basis, per-period before and after subtotal, tax and revenue effects, policy, recipient and customer explanation. Approval revalidates that complete basis and atomically appends the effective replay, financial documents and one message reservation; stale, duplicate and unauthorized decisions change nothing. The governed policy follows GOV-002 preparation and approval; credits above its threshold require a human financial preparer (or explicit human authorization of agent preparation) and a different active owner and finance approver. Under ct's 20 October 16:55Z ruling, negative deltas always issue numbered credit notes: next-invoice policy carries them to later invoices; the other policies offset the unpaid original and carry any excess, including paid-customer liability. Applications occur once after the later invoice total, with a cited informational line; they never reduce original invoice totals, create negative invoices, change tax and revenue again or claim cash refunds. Positive deltas use the next ordinary invoice or a separately reviewed correcting invoice. A stale unissued correcting draft can be replaced against current available credit without changing its approved correction or message. Tax uses the original saved tax basis; credits post their exact pretax contra-revenue in the credit issue month, while positive corrections retain original-service revenue deltas. Operator and customer balances, scoped tax and revenue and credit-liability reports, source drill-through, usage CSV and frozen monthly report snapshots agree. Generated customer wording follows the recorded language; authored explanations remain unchanged. Message custody permits one provider attempt, labels acceptance honestly and never retries uncertainty. The financial journey inherits USE-002 late nonadditive corrections: retain the full original metric/version/price, predecessor states and previously issued basis, re-evaluate maximum/unique/latest/time-weighted history across every affected original period, apply only the exact delta under the approved next-invoice and correcting-invoice and credit-note policy and GOV-002 controls, cite original event ids and preserve all issued evidence; unresolved corrections block issue instead of billing the late event as a fresh aggregate. **Acceptance evidence:** Void 10,000 events from an issued July invoice under each policy and see the August late line, a correcting invoice, or a credit note, each citing the original events, with July's issued invoice unchanged.

- **USE-005 — Usage alerts and threshold invoicing.** Operators and customers set usage and spend thresholds per customer, meter or commitment; crossing one fires a signed webhook (`DEV-001`), an email and an in-app alert, and can issue a threshold invoice mid-period (bill when accrued charges reach $X) or apply an entitlement change (`ENT-002`). **Acceptance evidence:** Set a $5,000 threshold invoice and an 80% commitment alert, stream usage past both, and see one webhook and email per crossing, a mid-period invoice charged once, and the remaining period billing only the rest. A billing contact signed in to the portal sets their own 1,000,000-call alert on a meter; crossing it emails that contact, shows the alert in the portal and in the operator's in-app notification list, and fires one `usage.threshold_crossed` webhook; another customer's contact cannot see or change it.

- **USE-006 — Live usage and the upcoming invoice.** At any moment the API, the operator screens and the customer portal show current-period usage per meter, credits remaining and an upcoming-invoice preview computed by the same rating engine, refreshed within one minute of ingestion. Existing operator and API capabilities read the same bill-run calculation without caching or writes: the default is the anchor period containing today in the business timezone, or an explicitly selected month. Full-period fixed charges are projected; usage is recorded usage only, with earlier unbilled usage shown separately and no invented future-usage forecast. Credits remaining currently means approved unused one-time contract credits, labeled with their effective dates and whether they apply in the selected period. Source-control reconciliation is part of the preview and fingerprint. Once issued, the selected period returns the saved issued inputs, lines and amount rather than another rating of that period; shadow subscriptions are labeled shadow and never become issuable from a preview. Completion covers these existing doors; `PORT-002` inherits the portal's usage/remaining-credit/preview parity and one-minute freshness before it ships, and `CAT-004` inherits prepaid-credit remaining balances in the existing operator and API doors before prepaid credits ship. **Acceptance evidence:** Stream usage and read the preview through the API and operator screen; new ingestion appears on refresh immediately, and the preview's inputs, fingerprint, lines and cents match the final issued invoice for the same selected period. Prove exact timezone boundaries, separate earlier usage, approved versus proposed/rejected/consumed contract credits, read-role enforcement, and unchanged issued evidence after late ingestion. Portal parity is required by `PORT-002` and prepaid-balance parity by `CAT-004` before those capabilities ship.

- **USE-007 — Reconcile usage with its source.** Nectar compares daily ingested counts and totals with the totals the sending system reports (a control total per day and meter sent with each batch or through the API), flags gaps and surpluses before the bill run, and blocks issue of affected invoices until a person resolves or acknowledges them. **Acceptance evidence:** Send control totals that disagree with ingested events for two days; the bill run lists both as blocking exceptions naming the day, meter and difference, and resolving them by replay clears the block.

### Subscription lifecycle

- **SUB-001 — Lifecycle states driven by dates and payments.** Subscriptions move through trialing, active, past due, unpaid, paused, canceled and ended on a schedule and on payment outcomes, without a person running anything; each transition is recorded with its cause and fires a webhook. **Acceptance evidence:** With a Stripe test clock, run a card trial to active, fail its renewal payment to past due, exhaust dunning to unpaid, pay to recover to active, and cancel to ended; read the state history and the webhook for each step.

Current native semantics: scheduled ticks append a typed state observation and its durable `subscription.state_changed` event in the same audited transaction. Causes retain the business-local date, native lifecycle references, outstanding issued invoices, definitive collection outcomes, recorded dunning action and recovery allocations. Reads return the latest recorded state without creating history; entitlements continue deriving their current native financial input. Existing owner-confirmed financial and dunning authority stays binding; observation grants no new authority. Subscription-only readers receive the state and observation date without financial cause facts. Approved erasure removes this operational history; restored history is inert and does not re-create prior webhook deliveries.


SUB-001 current state semantics: a confirmed future cancellation is observed as canceled while service access continues under the existing effective-date rules; at the effective date it is observed as ended and access stops. The immutable cause includes the exact scheduled cancellation reference and date. This read-only state label grants no financial or terminal-action authority.

- **SUB-002 — Immediate and scheduled plan changes with proration policy.** Besides scheduled changes (`NEC-08`), an upgrade or downgrade can take effect immediately or at period end, with the business's proration policy (prorate and invoice now, prorate on the next invoice, or no proration), and in-advance plans charge or credit the difference at once. **Acceptance evidence:** Upgrade an annual in-advance plan mid-term with "invoice now", downgrade another at period end, and change a third without proration; each invoice or credit matches its preview and the payment collects through `PAY-003`.

- **SUB-003 — Pause, resume and cancel.** A subscription can pause (no charges, access per policy) and resume on a date, or cancel immediately (with a prorated credit or refund per policy) or at term end, with a recorded reason; a canceled subscription can reactivate within a set window. For today’s monthly in-arrears plans, owner and finance approvers record business-local [from, resume) pause dates and choose retained or suspended plan access; paused service and usage charge zero, earlier unbilled charges and usage and contract credits wait for resumed billing. An early dated resume appends history. Immediate cancellation records its effective date (today by default); term-end cancellation uses the next monthly anchor boundary. The owner’s separately approved policy chooses an explicit negative unused-recurring-service credit on the final invoice or no such credit, and a 0–3650-day inclusive reactivation window (defaults: credit, 30 days). A cancellation freezes its policy. The credit is the difference between exact earned and full-period recurring lines, including discounts, with tax calculated on the signed lines; usage after cancellation is recorded at zero. Above GOV-002’s credit threshold a different person must approve and issue that invoice. Changes affecting an already-issued period are refused; issued evidence stays unchanged. Reactivation appends history, checks current meter ownership, and bills only active days outside the recorded gap. Agents and accountants cannot change lifecycle or policy. Under ct’s 19 October ruling this completes current doors; CAT-001 inherits nonmonthly term boundaries and cancellation of already-issued future service, while INV-005, INV-006 and PAY-007 retain governed refunds and customer-balance handling before those capabilities ship. **Acceptance evidence:** Pause for two months and resume, cancel immediately with a prorated credit, cancel another at term end, and reactivate a third; invoices, credits, entitlements and state history agree for each.

- **SUB-004 — Renewals and renewal notices.** Term subscriptions renew automatically or end, with optional price uplift at renewal, and Nectar sends renewal notices on the schedule the business sets, including the notices US state automatic-renewal laws such as California's require for consumer and small-business plans. Following California's Automatic Renewal Law (Business and Professions Code §17600 and following), a customer who signed up online can cancel online with no call, chat or extra retention step required beyond one optional save offer (`SUB-005`), and a term of one year or longer that renews automatically gets a notice 15 to 45 days before renewal stating the renewal date, price and how to cancel. Current term configuration is a GOV-002 saved proposal for an existing live subscription, approved by a different authorized person (or the explicit audited sole-owner confirmation where GOV-002 allows it). Terms are 1–120 whole months, separate from monthly in-arrears billing, starting on the subscription's billing anchor day. Renew/end, a 0–100% uplift, and a notice lead of 1–365 calendar days are explicit; automatic terms of 12 months or longer refuse leads outside 15–45 inclusive. Dates use the business timezone and [start, end) service bounds. Each renewal compounds simple unit prices and every model's unit/flat tier prices to six places, half away from zero, before the engine's ordinary once-per-line cent rounding; discounts and original prices remain intact, and later newly chosen item prices start their own uplift history. Daily Cron processes a boundary once and attempts one configured Base mail-provider submission on the first tick on or after the notice date before renewal, preserving the quoted renewal-date/new-price snapshot and actual outcome. Labels distinguish provider acceptance, refusal, unconfirmed outcome and mail not configured; none claims mailbox delivery or legal certification. The opaque cancellation link is scoped only to that subscription's next renewal, hashed at rest, rotated on reissue, and invalid after cancellation, renewal or term replacement. Its GET never changes state; its single same-origin POST ends renewal at the saved boundary without sign-in, call, chat, mandatory reason or retention step. The page exposes no customer identity or invoice data. SUB-005 may add one optional save; future PAY-002/PORT-003 online doors inherit cancellation requiring no more confirmations than signup. CAT-001's inherited term parity is included: AGENT-006 quotes and previews the full finite term (36 monthly periods for automatic renewal, explicitly labelled), CAT-007 resolves the actual term boundary and preserves grandfathered terms, and AGENT-004 replays a complete recorded term. **Acceptance evidence:** Advance a test clock to 30 days before an annual renewal; the notice goes out with the renewal date, the new price and a cancellation link; one customer renews with a 5% uplift, one cancels online from the link and does not renew, and that cancellation takes no more steps than the customer's online sign-up took; a 12-month term with notices configured outside 15 to 45 days is refused at setup.

- **SUB-005 — Cancellation saves and win-backs.** A cancellation flow asks for a reason and, by merchant policy, offers a save (discount, pause or downgrade) before canceling; win-back offers go to recently canceled customers. Offers are recorded and reported. Under ct's 19 October 16:25Z ruling, the existing one-confirmation renewal page offers at most one optional save and always keeps Cancel renewal available without a mandatory reason. The owner prepares an exact inactive-until-approved retention policy; GOV-002 requires another active approver, or explicit sole-owner confirmation where allowed. A save is a fixed and seat discount (integer 0–100%, 1–36 monthly billing periods, including the current unissued period), a 1–12-month pause with suspended access and no charges, or a permanent move of every matching source-price item to the exact compatible catalog target, with existing item end dates retained. Usage is excluded from percentage discounts, discounts do not stack, source and policy changes or issued periods refuse the saved offer, and accepting updates billing and the recorded outcome atomically. A declined or omitted offer never adds a cancellation step; blank reasons are recorded as not supplied. Once service has ended, an approved win-back policy selects cancellations 0 through its 1–365-day window inclusive (60 days in the acceptance), reserves one configured Base mail attempt per ended subscription, and quotes its discount and monthly-period count. A hashed offer-only link expires at the end of that inclusive business-local window, and is invalid after use or policy replacement; GET never changes state, and a same-origin POST reactivates once, rechecks meter ownership and installs only the quoted discount. This offer's approved window supersedes the ordinary manual reactivation window; inactive days stay unbilled. Mail outcomes are accepted/refused/unconfirmed/not configured, never mailbox delivery, and uncertain and refused sends are not retried. Existing read-authorized members and prepare credentials see the offers report; agent credentials confer no policy or customer-offer acceptance authority. Future PORT-003/PAY-002 customer doors inherit the same one-confirmation cancellation, approved save and return terms and record isolation, and CAT-001 inherits period/discount/pause parity before new billing intervals ship. **Acceptance evidence:** Cancel through the portal, accept a two-month 50% save offer and see it applied to the next two invoices; decline it on another account and see the cancellation complete with its reason. Set a win-back policy offering 30% off three months to customers canceled in the last 60 days: on the test clock the declined account receives the win-back email once, reactivates from its link with the discount on the next three invoices, a customer canceled 90 days ago receives nothing, and the offers report lists both offers with their outcomes.

### Entitlements and developer platform

- **ENT-001 — Real-time entitlements API.** The product asks Nectar whether a customer has a feature and what limit applies (boolean, numeric limit or metered quota); answers reflect the subscription's current state within seconds of a change, are served at the edge with a p95 under 50 ms, and are explainable step by step (`NEC-13`). During a gradual move-in, shadow subscriptions (`MOVE-006`) answer entitlements from the previous biller's state they mirror, so the merchant's app can switch its feature gates to Nectar before the first subscription is adopted. **Acceptance evidence:** Upgrade, downgrade, pause and fail payment on a subscription and poll the entitlements API from a test product; each change is visible within 5 seconds, measured p95 latency is under 50 ms, and each answer's explanation names the subscription and price; before adoption, upgrade and then pause a shadow subscription's the previous biller subscription in the previous biller test mode, and see the entitlement answer follow each change within 60 seconds of the previous biller's event.

- **ENT-002 — Quotas and enforcement policy.** A metered entitlement carries a soft limit (warn), a hard limit (deny) or an overage policy (allow and bill), and past-due or unpaid states can restrict features after a grace period the business sets. Quotas use exact recorded meter aggregation in the subscription’s anchored billing period; reaching the limit (used ≥ limit) warns for soft, denies for hard, and allows for overage. The quota is an access threshold, not a free monetary allowance: catalog prices and recorded contract terms still determine billing. Outstanding issued subscription invoices restrict this feature on the business-local date due date + the configured number of calendar days, including that boundary; zero outstanding balance restores only access still permitted by quota and lifecycle. Blank grace disables payment-based restriction, and no meter means no usage limit. Each subscription and product grant is evaluated independently; any permitted grant allows the feature. Owner-prepared policy changes inherit GOV-002 exact saved values, independent approval or explicit single-owner confirmation, stale and duplicate refusal and audit, and GOV-007 fresh-factor confirmation when required. CAT-001 inherits actual nonmonthly quota boundaries and SUB-001/PAY-004 inherit recorded payment-state parity before those capabilities ship. **Acceptance evidence:** Exhaust a 10,000-call quota under each policy; the entitlement API warns, denies or allows and bills accordingly; an unpaid subscription loses a gated feature after its three-day grace period and regains it on payment.

- **DEV-001 — Signed outbound webhooks.** Every lifecycle event (customer, subscription, invoice, payment, credit, usage threshold, entitlement change) can go to registered endpoints, signed with HMAC-SHA256 and a timestamp, retried with backoff for at least three days, with a delivery log, manual replay and secret rotation. Shadow subscriptions (`MOVE-006`) emit the same Nectar events as they mirror the previous biller's changes, and the API documentation publishes a mapping from each the previous subscription biller webhook event an app commonly consumes (`customer.subscription.*`, `invoice.*`, `customer.*`, `payment_method.*`, `entitlements.active_entitlement_summary.updated`) to its Nectar event. Before outbound webhooks ship, failed deliveries inherit INT-003 per-member email preferences, current read and action authority, exact signed-in delivery links and honest provider outcomes. Before webhooks ship, DEV-005 metadata is copied into event payloads: the relevant customer, subscription, price, invoice, payment and credit-note maps are captured with the event, so later annotation changes do not rewrite an earlier event. **Acceptance evidence:** Register an endpoint, take it down for an hour during a bill run, and see retries deliver every event once it returns; verify signatures, replay one event, rotate the secret with an overlap window and refuse a forged delivery in the receiving test app; during a previous-biller shadow run, each the previous biller event listed in the published mapping that the test triggers in the previous biller produces its mapped Nectar event once. With finance subscribed to failed outbound deliveries, force one failure and receive one exact-item email; opted-out or unauthorized members receive none and provider custody records the real outcome. Set app_account_id on a customer and subscription, settle their invoice through an existing payment door, receive invoice.paid and assert the event payload carries their exact metadata and relevant annotated financial objects; later metadata replacements leave that event unchanged.

- **DEV-002 — Documented public API.** Everything in the product is a versioned REST call described by an OpenAPI document, with idempotency keys on every write, cursor pagination, expandable objects and a dated API version per credential. Issued-invoice lists use the immutable issuance-journal order, ascending, with 1–100 rows (default 100); a cursor binds its page size and optional customer filter to the first request's issuance snapshot, so later issues, including earlier-created or backdated drafts, appear only in a fresh listing. Invoice relationships `customer` and `lines.price` are ids unless explicitly expanded to their recorded objects; legacy scalar id fields remain available, absent prices are null, and unknown expansion paths are refused. Versions are dated: `2026-10-01` (the original shape) and `2026-10-20` (list continuations are named `next_cursor`, formerly `nextCursor`); handlers build the latest shape and an earlier version undoes each later change. Each credential is pinned to a version when issued (the owner picks; default the latest; credentials issued before versions existed are pinned to `2026-10-01`), the owner can repin a live credential (audited), a `Nectar-Version` request header answers that one call under another version, a member's session uses the header or the latest version, an unknown version is refused, and every answer names its version in the `Nectar-Version` response header. The OpenAPI 3.1 document at `GET /api/nectar/openapi` (any signed-in member or credential; never anonymous) lists every GET door and every action, with each action's body fields generated from its handler's source (`scripts/api-fields.mjs`; actions that also read fields named at run time allow additional properties). Any JSON write may carry an `Idempotency-Key` of 1–255 printable ASCII characters, scoped to the calling member or credential: the key is reserved with a SHA-256 digest of the action, version, content type and body before the handler runs; repeating the identical request within 24 hours of the first returns the stored successful result with `Idempotent-Replayed: true` and creates nothing; a different request under the key is refused (409 `idempotency_key_reused`), a repeat while the first is still running is refused (409 `idempotency_in_progress`), a failed write releases its key, and stored results are discarded after 24 hours. The replay store is operational, not a business record: archives and restores never carry it, and GOV-005 erasure redacts the erased customer's personal values from any stored result. Every other list door accepts the same `limit` (1–100, default 100) and `cursor` and returns `{data, next_cursor}`; without either it returns the whole list as before. Those cursors continue after the last returned row (its id, or the audit sequence) in the list's own current order and bind the door path and page size; rows placed before that row appear only in a fresh listing, and a cursor whose row has left the list is refused (409 `cursor_stale`). **Acceptance evidence:** Generate a client from the published OpenAPI document and run the full billing cycle with it; repeat each write with the same idempotency key and get the original result with no second record. List 250 invoices with a page size of 100: three pages follow the returned cursors, every invoice appears exactly once, and an invoice issued between page requests neither repeats nor shifts a page. Retrieve an invoice with `expand=customer,lines.price`: the nested objects are returned in place of their ids, and an unknown expansion is refused. Pin one credential to an earlier dated API version and another to the latest: a field renamed between the versions is returned under each credential's own version's name, and a request header naming a version overrides the credential's for that call.

- **DEV-003 — SDKs and embeddable components.** Maintained TypeScript, Python, Go, Ruby, PHP, Java and .NET SDKs cover metering, entitlements, checkout and the portal; embeddable components give the merchant's app a pricing table, checkout and portal without handling card data. The SDK metering call is the same for a customer in shadow and an adopted one; Nectar routes each event under `MOVE-010`. Before SDK doors ship, they inherit DEV-005 metadata read and write, exact 50-string-pair custody, current filters and underlying-record authority on every supported record kind. **Acceptance evidence:** A sample app in each of the seven languages uses its SDK to meter usage, gate a feature and open checkout and the portal; the components render the live catalog and complete a test-mode purchase; the TypeScript sample app's metering code is unchanged while one of its customers is adopted from a previous-biller shadow run, and that customer's usage bills in the previous biller before the boundary and in Nectar after it. Through each SDK, set and read customer and subscription metadata, prove all supported record kinds and exact strings, and refuse credential or accountant metadata writes as the current API does.

- **DEV-005 — Metadata on every object.** Customers, subscriptions, prices, invoices, payments and credit notes carry up to 50 free-form key-value pairs set through the API, SDKs and screens; metadata is searchable (`CUS-001`), filterable in lists and exports, copied into outbound webhooks (`DEV-001`) and kept through export and restore. Under ct's 19 October ruling, current API/screen/collection/export doors complete this clause; DEV-003 inherits SDK setters and readers and DEV-001 inherits event payload copying before those doors ship. Metadata is an append-only sidecar of complete replacements, outside original financial records and saved calculation inputs. Owner and finance members with records authority write; accountants and prepare credentials read; agents cannot write. Each replacement names the current metadata revision, refuses stale writes atomically and keeps server author and time and prior maps; keys and string values are preserved exactly, including empty and special keys. Current collection filters compare exact key and value strings on the latest revision; customer search matches case-insensitive substrings of current metadata values on the customer, its subscriptions/invoices/payments/credits and subscribed prices. Dedicated six-kind collections and metadata CSV downloads expose all record kinds, and existing customer and invoice and subscription CSVs include metadata. Original invoices, prices, payments, credits and their money and fingerprints do not change when annotated. Future custom roles in GOV-001 inherit the underlying-record read and write visibility before shipping. **Acceptance evidence:** Set app_account_id on a customer and subscription through the API and find their customer by either metadata value. Annotate all six kinds through API and screen forms, read them as accountant and prepare, refuse agent and accountant writes, preserve exact strings and immutable originals, reject stale and invalid replacements without adding history, and prove current exact filters and CSV round-trip. Run the named DEV-005 rer export/reset/import/export journey and read every metadata revision and original row back unchanged. DEV-001's inherited invoice.paid webhook acceptance must copy the relevant metadata, and DEV-003 must expose it in SDK doors before those capabilities ship.

- **DEV-006 — Source billing call map for the app switch-over.** Beside the webhook mapping (`DEV-001`), the API documentation publishes a map from each source subscription-billing API call an app commonly makes to the Nectar call that replaces it, with the parameters that carry over and any that differ: `checkout.sessions.create` in subscription mode, `customers.create` and `customers.update`, `subscriptions.create`, `subscriptions.update` (quantity, price and `cancel_at_period_end`), `subscriptions.cancel`, `billing_portal.sessions.create`, `invoices.createPreview` (and the older `invoices.retrieveUpcoming`), `billing.meterEvents.create` (`MOVE-010`), `entitlements.activeEntitlements.list` (`ENT-001`) and `paymentMethods.list`. Each mapped Nectar call works for a customer still in shadow as well as an adopted one: during a gradual cutover a mapped write on a shadow subscription is passed through to the previous biller, which still bills it, and comes back through the live sync (`MOVE-006`), so the app switches each call once, with no per-customer routing. **Acceptance evidence:** A sample app written against the previous biller test mode for each mapped call is switched to Nectar by following the map, call by call; for one customer in shadow and one adopted, each switched call gives the same outcome the previous biller call gave (the checkout creates the subscription, the quantity change shows on the next invoice preview, the portal session opens for that customer only, the upcoming-invoice amount equals the previous biller's preview for the shadow customer and Nectar's for the adopted one, and the cancellation takes effect at period end), and the shadow customer's quantity change appears on the previous biller subscription.

- **DEV-004 — Test mode and test clocks.** Each installation has a sandbox that mirrors the live configuration with processor test keys, and test clocks advance a customer's time through trials, renewals, dunning and annual terms in minutes, so a business can prove its pricing before going live. **Acceptance evidence:** Copy the live catalog into test mode, advance a test clock 13 months on an annual plan with a failing card, and see every invoice, retry, notice and state change happen; live data is untouched.

### Invoicing and delivery

- **INV-001 — Automatic invoice runs.** On each billing day Nectar prepares, rates and finalizes invoices on its own schedule; clean drafts issue automatically under the owner's policy and exceptions (`NEC-09`) wait in a review queue, so month-end never depends on someone remembering to run billing. In-advance and arrears periods, threshold invoices and one-time charges flow through the same run. Current schedule semantics: default off; the owner prepares exact enablement and a business-local hour, independently confirmed under GOV-002 (explicit sole-owner confirmation only when no other active approver exists). A minute Cron attempts each local day once after that hour, considers the previous and current billing months, and approves and issues only exception-free drafts through the ordinary engine with policy and current member authority checked inside each financial transaction. Automation is attributed to the system and sends no invoice email or processor charge. Interrupted attempts stay visible for human review; automatic recovery and broader catch-up remain open. These conservative defaults await ct approval. **Acceptance evidence:** Enable auto-issue for clean drafts, advance a test clock across a billing day with one clean and one exception draft, and see the clean invoice issued, delivered and charged without a person while the exception waits for review.

- **INV-002 — Invoice and receipt email delivery.** Issued invoices, receipts, credit notes, payment confirmations and notices go out by email through the configured provider (Postmark by default, or the installation's Base mail adapter), from the business's own domain with SPF and DKIM, to the customer's billing contacts with CC and BCC rules; each message records delivery, bounce and open events, and a bounce raises a collections exception. Before AGENT-004 customer notice delivery ships, schedule exactly the approved proposal's recipients, wording, effective dates and cited before and after amounts once; retain actual provider acceptance, delivery and bounce and failure custody honestly and never label a prepared notice sent. Before optional CAT-007 customer notices ship, approval fixes each chosen subscription’s recipient, wording, old and new amounts and resolved change date; delivery sends exactly that notice once and retains actual provider outcome and custody without claiming mailbox delivery. Before invoice-delivery capabilities ship, inherit AR-001 exact cadence recipient/wording/source-bound approval and promise/dispute/payment checks, once-only reservation/claim/outcome custody, honest actual delivery and bounce outcomes and no retry of uncertain sends. **Acceptance evidence:** Issue an invoice through the Postmark sandbox; the message carries the PDF and the hosted-page link and goes to the billing contacts with a customer's CC rule and the business's BCC archive address applied; an operator resends the issued invoice to a corrected address and both sends are recorded; delivery and a forced bounce are recorded on the invoice and the bounce opens a task to fix the contact. Before invoice-delivery capabilities ship, inherit AR-001 exact cadence recipient/wording/source-bound approval and promise/dispute/payment checks, once-only reservation/claim/outcome custody, honest actual delivery and bounce outcomes and no retry of uncertain sends. Before it ships it inherits PORT-006: every customer-facing string it adds lives in the translation files (`src/nectar/locales/<tag>.json`), follows the customer's language with amounts and dates in that locale and the same figures as English, and is covered by the missing-string check.

- **INV-003 — Hosted invoice page and PDF.** Every invoice has an unguessable hosted page and a PDF showing lines, tier and calculation detail, tax, credits, payments and balance due, where the customer pays by card or ACH through the processor (`PAY-002`) and downloads past receipts; for a customer on transfer terms the page and PDF show the customer's own virtual-account funding instructions (`PAY-007`). **Acceptance evidence:** Open an invoice's hosted link signed out, pay it with a Stripe test ACH account, and see the page and PDF move to paid with the receipt; an altered link returns nothing; a bank-transfer customer's hosted page and PDF show the account and routing numbers Stripe's funding instructions give for that customer, and move to paid when a simulated transfer to that account is applied. Before it ships it inherits PORT-006: every customer-facing string it adds lives in the translation files (`src/nectar/locales/<tag>.json`), follows the customer's language with amounts and dates in that locale and the same figures as English, and is covered by the missing-string check.

- **INV-007 — Partial and scheduled payments on the invoice page.** Where the business allows it, the hosted invoice page lets a customer pay part of the balance now or schedule payment for a date up to the due date, through the processor (`PAY-002`); the invoice stays open for the rest and reminders (`AR-001`) chase only what is still owed. **Acceptance evidence:** Pay $400 of a $1,000 invoice by test card on its hosted page and schedule the remaining $600 by ACH for the due date; the invoice shows $600 owed until the scheduled payment settles on the test clock, then paid, with two payments recorded and one reminder suppressed.

- **INV-004 — Branded, B2B-ready invoices.** Invoices carry the business's logo, colors, footer and remit-to details (the customer's own virtual-account funding instructions for transfer customers, `PAY-007`), custom fields, the customer's PO number, memo and per-customer net terms (Net 15, 30, 45, 60), and can show or hide usage detail. Current invoice-content semantics: customer Net 15/30/45/60 overrides the business default; null inherits it. Net days are calendar days after the actual issue date. Required PO, PO number, memo and printed fields join the approval fingerprint and are saved in calculation inputs; changing them requires a new draft and never edits issued content. Business fields and customer fields are each limited to twenty name and value pairs (names 1–80 characters, values up to 500); customer fields take precedence for an identical name. Executed-order setup requires an exact source quote for its invoice settings, blocks unresolved PO or mismatched source terms, installs the settings atomically with human approval, and previews due dates assuming issue on the service-period end. Current customer page and PDF rendering use the approved content snapshot, including an owner-supplied RGB JPEG logo up to 100 KB, validated color, footer and remit-to text. Hiding usage detail groups metered charges by saved price, preserving the total and full operator evidence. This does not assert email parity or processor funding instructions, which remain open below. Before PO, custom fields or per-customer terms ship, AGENT-006 quotes and installs those order requirements and refuses approval and finalization if required data is unresolved; previewed due dates and invoice content must equal ordinary billing after setup. **Acceptance evidence:** Set a logo and Net 45 for one customer with a required PO number; the invoice, PDF and email show them, and finalizing without the PO is blocked as an exception. Add two custom fields (a business-wide "Vendor ID" and a per-customer "Cost center"); both print on the hosted page and PDF for that customer only. Set a second customer to hide usage detail: their invoice shows one line per metered price with its total and no per-event or tier breakdown, while the operator view and the calculation export (`NEC-13`) keep the full detail and the totals are identical.

- **INV-005 — Credit notes, voids and refunds.** Beyond credit notes against what an invoice still owes (`NEC-11`), a person can void an unpaid issued invoice (a new record; the original is never edited) and refund a paid one in full or part, to the original payment method through the processor or to the customer's credit balance, with tax reversed through the tax provider. The owner-set amount limit and two-person rule in `GOV-002` apply before this capability ships: an above-limit refund or return is saved with its exact amount, target and basis, then approved by a different authorized person; direct execution and self-approval are refused, and agents cannot approve. Policy changes retain GOV-002 approval and audit rules. Before processor refunds ship, SUB-003 cancellation refunds follow its frozen business policy and GOV-002 thresholds/two-person approval, with linked immutable cancellation and refund evidence. Before tax reversal/refund capabilities ship, RPT-002 original tax and credit reports gain exact net tax/reversal source parity, CSV and scheduled snapshots; preserve issued originals and assert invoice tax less attributed credits equals the report. Before attributed credit-tax reversal or refunds ship, every AGENT-002 correction preview shows the exact original and reversing tax, refund/balance and revenue effects supported by the new capability, with GOV-002 authority, source-bound approval and atomic adjustment/message reservation; unchanged issued originals and actual provider outcomes remain visible. **Acceptance evidence:** Void an unpaid invoice and reissue it, refund half of a card-paid invoice through Stripe test mode and credit the other half to balance; the processor refund, tax reversal, invoice state and customer ledger agree. Also prove the inherited `GOV-002` rule through the same public refund doors: with a $1,000 limit, a $1,500 request cannot execute directly or be approved by its preparer, a different authorized person executes the saved request once, and a $900 action needs one person. Refused, stale or duplicate requests leave processor, balance and tax records unchanged; audit records both people. Before tax reversal/refund capabilities ship, RPT-002 original tax and credit reports gain exact net tax/reversal source parity, CSV and scheduled snapshots; preserve issued originals and assert invoice tax less attributed credits equals the report. Before attributed credit-tax reversal or refunds ship, every AGENT-002 correction preview shows the exact original and reversing tax, refund/balance and revenue effects supported by the new capability, with GOV-002 authority, source-bound approval and atomic adjustment/message reservation; unchanged issued originals and actual provider outcomes remain visible.

- **INV-006 — Customer credit balance.** Overpayments, credit notes and goodwill credits sit on a customer balance that applies automatically to the next invoices by policy, and can be refunded; the balance has its own ledger. The owner-set amount limit and two-person rule in `GOV-002` apply before this capability ships: an above-limit refund or return is saved with its exact amount, target and basis, then approved by a different authorized person; direct execution and self-approval are refused, and agents cannot approve. Policy changes retain GOV-002 approval and audit rules. Before customer balance credits ship, SUB-003 cancellation of paid or advance-billed unused service records the exact customer credit/refund balance under GOV-002 approval, without changing issued evidence. Before customer balances ship, RPT-002 balance reports, source drill-through, CSV and scheduled snapshots equal the customer credit ledger after each overpayment, grant, application and refund. **Acceptance evidence:** Overpay an invoice by $200 with a wire, issue a $100 goodwill credit, and see both applied to the next invoice, with the remaining balance refundable and the ledger balanced. Also prove the inherited `GOV-002` rule through the same public refund doors: with a $1,000 limit, a $1,500 request cannot execute directly or be approved by its preparer, a different authorized person executes the saved request once, and a $900 action needs one person. Refused, stale or duplicate requests leave processor, balance and tax records unchanged; audit records both people. Before customer balances ship, RPT-002 balance reports, source drill-through, CSV and scheduled snapshots equal the customer credit ledger after each overpayment, grant, application and refund.

### Payments and collection

- **PAY-001 — Processor connections.** The owner connects the business's own Stripe account (Connect OAuth or a restricted key), Adyen account or Braintree account; card, ACH debit (with Plaid or Stripe Financial Connections account verification), wallets (Apple Pay, Google Pay) and bank transfers (ACH credit and wire) to a customer's own virtual bank account number (`PAY-007`, starting with Stripe's bank-transfer payment method) are offered where the processor supports them, and one installation can route by entity or currency. **Acceptance evidence:** Connect a Stripe test account, an Adyen sandbox and a Braintree sandbox, take a card and an ACH payment through each where supported, pay a Stripe Checkout session with a test Apple Pay or Google Pay wallet, pay a Nectar invoice by a simulated bank transfer to the Stripe customer's virtual account number (`PAY-007`), route a CAD customer to a second Stripe account by currency, and see processor references recorded; disconnecting one blocks new charges on it without losing history.

- **PAY-002 — Hosted checkout and payment-method capture.** New customers subscribe through a hosted checkout from the merchant's pricing page, and existing customers add or update a payment method through processor-hosted fields (Stripe Checkout and Elements, Adyen Drop-in, Braintree Drop-in); ACH mandates are captured with their authorization text. Nectar never receives card or account numbers. Before online signup or cancellation ships through this door, inherit SUB-004's one-confirmation cancellation bound, current term dates, scoped links, honest notice outcomes and optional-save-only rule. Before customer retention ships through this door, inherit SUB-005 optional discount, pause and downgrade saves, dated once-only win-back offers, approved source-bound terms, customer isolation and honest mail outcomes. **Acceptance evidence:** Complete a test checkout for a monthly plan with a card and another with ACH; the subscription, mandate and default payment method appear, and a search of Nectar's database, logs and exports finds no card or account number. Before it ships it inherits PORT-006: every customer-facing string it adds lives in the translation files (`src/nectar/locales/<tag>.json`), follows the customer's language with amounts and dates in that locale and the same figures as English, and is covered by the missing-string check.

**Setup-only policy default — CT approved with riders, 26 October 2026.** The supported current slice is test-mode payment-method setup for an existing customer. Only a current authenticated owner may prepare it. Preparation requires a successful server-recorded authenticator or passkey verification under GOV-007 within the preceding 15 elapsed minutes; an ordinary sign-in, a refreshed session, an application credential or the customer’s session is not a substitute. The owner role, factor freshness, customer revision, processor account and test-mode route are checked again when preparation is claimed. Preparation does not accept on the customer’s behalf.

The authenticated customer explicitly accepts setup for that customer’s own record through processor-hosted fields. Consent to save the method and consent to make it the default are distinct explicit choices; neither is inferred from visiting a page, returning from the processor or completing verification. The customer is shown the merchant identity, setup purpose, method type and what each choice permits. Nectar records the accepted wording or an immutable retrievable copy, its version and digest, customer scope, time, setup reference, processor account and mode, and the separately accepted default choice. ACH evidence additionally records the exact authorization text presented, its version, acceptance event and provider mandate reference and status. A mandate reference without that text and acceptance evidence is incomplete proof; unavailable wording is labelled unavailable and is never reconstructed or invented.

Saving a method, verifying an account, recording a mandate reference or selecting a default authorizes no debit, charge, automatic top-up or refund. Those actions require their own clause’s customer authority, approved policy, financial basis and processor outcome. Setup creates no subscription and performs no cancellation or retention action.

A default changes only after the customer’s explicit default choice and a definitive successful provider result for the same customer, account, mode and prepared basis. The prior default remains effective while setup is pending, failed or uncertain. Completion rechecks the basis, refuses stale or foreign results and applies the selected default once; a return URL alone is not success. Earlier financial and approval snapshots are not rewritten.

The return cookie is an opaque setup-return capability. It is Secure, HttpOnly and SameSite=Lax, has no Domain attribute, and is restricted to the required same-origin return path. It is bound server-side to one customer session, one prepared setup, one processor account and mode, and one purpose. Its lifetime ends at the earlier of 15 elapsed minutes or the customer session’s expiry. Revocation or erasure invalidates it. It carries no customer session token or payment data to the processor. GET only presents or reconciles status; it changes no method or default. A same-origin protected completion consumes the capability once. Replays cannot repeat provider writes or local default changes, and the cookie is cleared after terminal consumption.

A durable claim precedes each provider write. A timeout, lost response, pending verification, missing search result or mismatched proof never permits a blind retry or a replacement setup. Read-only reconciliation uses the original provider reference and account and mode; unresolved results remain uncertain. A new attempt is permitted only after definitive reconciliation establishes that the prior attempt cannot complete, and requires a newly prepared customer acceptance. Reconciliation never creates debit authority.

Nectar retains provider customer, setup and method references, mandate references and status, and only the safe method display summary required here: brand and last four. Consent and mandate wording are retained as versioned evidence without financial input fields. Nectar never receives or retains full card or bank-account numbers, security codes, hosted-field submissions or raw provider payloads containing them. Operational secrets and return capabilities are not audit content.

Audit records the owner and fresh-factor verification reference and time, customer acceptance and wording version, account and mode, source revision, setup claim, provider references and typed outcome, reconciliation, previous and selected default references, and relevant timestamps. It records no factor secret, session token, return token or full financial input.

Archives preserve only permitted historical setup and consent facts. They exclude return capabilities, customer sessions, provider secrets and executable setup claims. Restore does not resume a pending write, make a default usable for collection, restore revoked authority or initiate provider traffic. Restored historical facts remain labelled historical; any new setup requires a current owner preparation and current customer acceptance. Uncertain historical outcomes require read-only reconciliation before a new attempt.

GOV-005 applies to every setup, consent, mandate and audit projection. Erasure invalidates active setup access, prevents further completion and removes personal method summaries and unnecessary consent payloads from native records, saved projections and future archives. Only minimal opaque references and facts required by an explicitly recorded retention basis survive; setup evidence does not acquire financial retention merely by existing. Provider-side erasure is recorded separately with its actual outcome and is not inferred from local erasure. Older archives cannot revive erased data or authority.

Test-edge evidence and real processor test-account evidence are distinct, and neither proves production-mode operation. Real processor card and verified ACH setup, exact authorization custody, account isolation, default selection, lost-response reconciliation and sensitive-data searches remain required proof. Production use remains unavailable until separately demonstrated with appropriately scoped merchant credentials and the applicable provider and legal review. This policy certifies neither PCI, NACHA nor card-network compliance.

Every changed owner preparation, customer acceptance, return, pending, uncertain, completed and refused screen requires browser evidence at 1440 and 390 pixels, including English and Spanish numeric parity and actionable refusal states. All original PAY-002 signup, processor, mandate, sensitive-data, SUB-004, SUB-005 and PORT-006 acceptance requirements remain unchanged.

- **PAY-003 — Automatic collection.** When an invoice issues, Nectar charges the customer's default payment method for invoices set to auto-charge, using an idempotency key per invoice attempt; invoices set to "send invoice" wait for payment by the due date. ACH payments show as pending until they settle or return. Current native test-mode authority is prepared for one exact USD invoice, default method, processor account, amount and issue date. The hosted customer explicitly accepts; a different current owner or finance approver confirms when one exists, with an explicit sole-owner second confirmation otherwise. Changed terms invalidate the preparation. Unknown outcomes reconcile by provider reads and never create another attempt. Attempt facts survive archives while installation-local debit authority does not. New sources inherit CUS-001 customer and child composition, family visibility, erasure and exact source and ledger parity. DUN-001 retries and AGENT-003 contact restrictions must honor AGENT-010 dispute holds before their automated doors ship. **Acceptance evidence:** Issue a card auto-charge invoice and an ACH one; the card pays immediately, the ACH shows pending and settles four business days later on the test clock; replaying the issue step and the processor webhook never creates a second charge.

- **PAY-004 — Payment events, refunds and payouts reconciled.** Processor webhooks are verified, deduplicated and applied in order regardless of arrival order; payments, refunds, disputes, ACH returns (R01, R02 and the rest, retried or not under `DUN-001`), bank-transfer funds arriving in a customer's cash balance (Stripe's `cash_balance.funds_available` event and customer cash-balance transactions), applied to invoices under `PAY-007`, and processor fees are recorded against invoices, and each processor payout reconciles to the invoices and fees it contains. Before processor-webhook failure handling ships, it inherits INT-003 per-member failure-email choices, current read and action authority, exact signed-in failure-item links and honest delivery custody. Before settlement and refund records ship, RPT-002 collections and refund reports, source drill-through, CSV and scheduled snapshots equal the actual settled-payment and refund ledgers without relabelling recorded receipts as settlements. Before new payment-event or recovery doors ship, they inherit DUN-004 immutable first-failure and allocated-recovery records, all exclusions and caps, and exact report counts, amounts and rates. **Acceptance evidence:** Deliver Stripe test webhooks twice and out of order for payment, refund, dispute, an R01 return and a `cash_balance.funds_available` event, then a payout; the transfer's funds are applied once, and invoice states, fees, the customer's cash balance and the payout reconciliation match Stripe's balance and cash-balance transactions exactly. Trigger a failed processor webhook with finance subscribed: one linked alert reaches the authorized subscriber, none reaches an unsubscribed or unauthorized member, and the provider outcome is retained without claiming mailbox delivery. Before settlement and refund records ship, RPT-002 collections and refund reports, source drill-through, CSV and scheduled snapshots equal the actual settled-payment and refund ledgers without relabelling recorded receipts as settlements.

- **PAY-005 — Card lifecycle and expiry.** Nectar uses the processor's card account updater, warns customers of expiring cards before renewal with an update link, and marks payment methods that hard-declined as unusable. **Acceptance evidence:** Set a test card to expire before renewal; the customer receives the expiry email 14 days ahead, updates the card through the link, and the renewal charges the new card. Deliver a Stripe test `payment_method.automatically_updated` event for another customer's card: Nectar records the new expiry and last four from the updater, sends no expiry email, and the renewal charges the updated card. Fail a third customer's renewal with `stolen_card`: the method is marked unusable on the customer record and in the API, is never charged again, and the next attempt waits for a new method.

  **Expiry-warning interim default — CT approved with riders, 26 October 2026.** Only a current authenticated owner prepares an expiry warning for an existing customer and native renewal. Preparation requires an actual server-recorded local authenticator or passkey verification under GOV-007 within the preceding fifteen elapsed minutes. Ordinary sign-in, session refresh, application credentials and customer sessions do not substitute. The same current owner may separately confirm one send; preparation alone sends nothing.

  The warning date is the native renewal’s business-local calendar date minus fourteen calendar days in the recorded billing timezone, rather than 336 elapsed hours. Preparation and separate send confirmation occur on that date. There is no unattended send or missed-date catch-up. Preparation freezes the exact recipient, customer language, rendered wording, customer and payment-method source revision, native renewal date, billing timezone, processor account and mode, and prepared setup reference. Changed source facts invalidate the preparation.

  Send confirmation rechecks current owner authority, the original factor deadline and the unchanged prepared basis. Audit records distinct preparation and confirmation events, their actors and timestamps, the factor verification reference and time, exact recipient and retrievable wording with version and digest, source basis, once-only claim, provider reference and actual outcome. It records no factor secret, session token or executable update capability. Provider acceptance, refusal, suppression and uncertainty are distinguished; none establishes mailbox delivery.

  The update link uses the existing own-customer hosted session and PAY-002 setup-only authority. Its expiry is the earlier of that session’s expiry and the original setup-factor deadline, at most fifteen elapsed minutes. Preparation, confirmation, opening and processor return never extend it. Revocation and erasure invalidate it. Existing customer isolation, same-origin protection, one-purpose return custody, separate save and default consent, definitive provider-result checks and once-only completion remain binding. GET grants no write authority.

  A durable once-only claim precedes the provider send. Concurrent confirmations and replay cannot submit another message. Timeout, lost response or interruption after claim remains uncertain and is never retried or bypassed through a replacement warning preparation. Read-only reconciliation may establish the original outcome without creating another send or provider write.

  Archives exclude executable message bodies, update capabilities, sessions, provider secrets and executable claims. They preserve only permitted inert historical facts and attempt outcomes sufficient to prevent replay. Exact approved wording is historical evidence only, without a live capability, and remains subject to GOV-005. Restore resumes no send or setup, initiates no provider traffic and restores no revoked authority. Erasure withdraws pending warning and setup authority, removes unnecessary personal payloads and prevents older archives from reviving erased data or authority. Any retained minimal facts require an explicitly recorded retention basis; provider-side erasure has its own honestly recorded outcome.

  Setup grants no debit, charge, automatic top-up, refund, subscription creation, cancellation or retention authority. This interim policy enables no unattended expiry-warning sends and no new long-lived customer access. Every changed screen requires browser proof at 1440 and 390 pixels; customer-facing wording and figures retain PORT-006 language parity and missing-string checks.

  **Named Gaps:** complete expiry-warning receipt fourteen local calendar days before renewal, customer update through the link and renewal charging the new card; genuine processor updater sandbox proof including recorded expiry and last four, warning suppression and renewal charging the updated card; stolen-card unusability in the customer record and API, permanent refusal of that method and waiting for a new method; exact audit, concurrency, uncertain-send, archive, restore, erasure and language proof for the new warning family. Existing PAY-002 setup proof does not discharge these PAY-005 obligations. No legal, regulatory, tax or accounting compliance is certified.

- **PAY-006 — No-code payment links.** The owner creates a shareable link from a screen, with no engineering, that subscribes a new customer to chosen prices (with quantity, trial, promotion codes and tax collection) or pays a one-time amount, through the hosted checkout (`PAY-002`); links can be deactivated, limited in uses and tracked to the subscriptions they created. The native door offers USD monthly fixed and seat prices and exact one-time USD amounts under the reviewed business tax policy. Monthly signup creates native Nectar records after verified Stripe card capture, with separately approved renewal terms and a separate default-method choice; it grants no automatic debit authority. One-time Checkout is bound to the authorized USD amount and records actual captured cash before its numbered native invoice. An anonymous signup never takes over an existing billing email. The opaque one-day private return is scoped to its new customer and opens the existing one-confirmation cancellation door. Restored link configuration needs fresh owner activation. New sources inherit CUS-001 customer and child composition, family visibility, erasure and exact source and ledger parity; future CAT-001 interval and CAT-008 currency extensions inherit the same consent and custody obligations before those payment-link doors ship. **Acceptance evidence:** Create a monthly-plan link with a 14-day trial, open it signed out, subscribe with a test card, and see the customer, subscription and link attribution appear; deactivate the link and see it refuse a second visitor. Before it ships it inherits PORT-006: every customer-facing string it adds lives in the translation files (`src/nectar/locales/<tag>.json`), follows the customer's language with amounts and dates in that locale and the same figures as English, and is covered by the missing-string check.

- **PAY-007 — Bank transfers to the customer's own virtual account number.** Where the processor offers it (Stripe's bank-transfer payment method for US customers, the `customer_balance` method with `us_bank_transfer` funding, which receives ACH credits and wires), each customer on transfer terms has a stable virtual bank account number from the processor (Stripe's funding instructions), the same on every invoice, kept from the previous biller at move-in (`MOVE-008`). Nectar shows those funding instructions in the remit-to block of the hosted invoice page and PDF (`INV-003`, `INV-004`), in the invoice email (`INV-002`) and in the portal (`PORT-001`). Nectar sets the customer's processor cash-balance reconciliation to manual and applies funds arriving in the customer's cash balance (`PAY-004`) itself, to that customer's open Nectar invoices and taken-over invoices (`MOVE-009`), in this order: the invoice whose number appears in the transfer's reference; otherwise the open invoice of exactly the transferred amount, the oldest first when several match; otherwise nothing, and the funds join the `AR-002` queue with amount, date, sender and reference for a person to allocate. Each application is made through the processor (for Stripe, a PaymentIntent for exactly the applied amount confirmed against the customer's cash balance, with an idempotency key from the invoice and the transfer), so the funds stay in the merchant's processor account and Nectar never holds them. A paid invoice leaves dunning and collections cadences at once (`DUN-001`, `DUN-002`, `AR-001`), and a short transfer leaves the right balance owed. Unapplied funds escalate to the owner at 7, 30 and 60 days, ahead of Stripe's automatic return of funds left unreconciled for 75 days; the owner applies them or returns them to the sender through the processor's cash-balance refund, so nothing is left for the processor to return on its own. Where the processor offers no virtual accounts (Adyen, Braintree), invoices show the business's own remit-to account and deposits match through `AR-002`. The owner-set amount limit and two-person rule in `GOV-002` apply before this capability ships: an above-limit refund or return is saved with its exact amount, target and basis, then approved by a different authorized person; direct execution and self-approval are refused, and agents cannot approve. Policy changes retain GOV-002 approval and audit rules. Before cash-balance returns ship, a SUB-003 cancellation return follows its frozen policy and GOV-002 approval, with the customer ledger, actual processor result and immutable lifecycle history agreeing. Before processor bank-transfer collection ships, eligible invoices inherit AR-001 enrollment and segment rules, collectible balances after actual allocations and explicit line disputes, inclusive promise holds, exact approved reminders, owner escalation, no duplicate sends and immediate stop after payment. **Acceptance evidence:** In processor test mode, take a customer with an existing virtual bank account and a $300 unapplied cash balance from before cutover, and adopt them (`MOVE-006`). Nectar's next invoice, its PDF and its email show the same account number and routing details as Stripe's funding instructions for that customer, and the $300 is applied to that invoice. A simulated inbound transfer whose reference carries a Nectar invoice number pays that invoice; a transfer for an exact amount with no reference pays the oldest open invoice of that amount; a short transfer leaves the remaining balance owed; an unmatched transfer appears in the `AR-002` queue with its amount and date, escalates to the owner on day 7 of the test clock, and is applied by a person; delivering each `cash_balance.funds_available` event twice applies it once. On day 76 the customer's Stripe cash balance is zero, no transfer was returned by Stripe, and no invoice paid this way entered dunning or received a reminder. Also prove the inherited `GOV-002` rule through the same public refund doors: with a $1,000 limit, a $1,500 request cannot execute directly or be approved by its preparer, a different authorized person executes the saved request once, and a $900 action needs one person. Refused, stale or duplicate requests leave processor, balance and tax records unchanged; audit records both people. Before processor bank-transfer collection ships, eligible invoices inherit AR-001 enrollment and segment rules, collectible balances after actual allocations and explicit line disputes, inclusive promise holds, exact approved reminders, owner escalation, no duplicate sends and immediate stop after payment.

### Dunning and recovery

- **PAY-008 — Owner-confirmed charge of an issued invoice.** An owner with a fresh factor explicitly confirms the immutable invoice processor-account route, customer, saved default card and current USD owed amount. A durable invoice-unique claim permits one PaymentIntent, without receipt_email. A definitive provider read (PaymentIntent requires_payment_method with last_payment_error, no succeeded charge) records declined or customer_action_required with its code; the invoice stays owed. A later attempt re-confirms the same PaymentIntent, by owner fresh-factor with a new frozen basis or by the customer on a processor-hosted 3-D Secure page; never a second PaymentIntent. Uncertain covers only timeouts and unknown results. Search not found remains uncertain; reconciliation also lists PaymentIntents by customer and time window. Owner-only is interim; DUN-001/002 retries and dunning, DUN-003 notices and receipts, finance and collections authority and portal remain obligations. Before new manual payment or recovery doors ship, they inherit DUN-004 immutable first-failure and allocated-recovery records, all exclusions and caps, and exact report counts, amounts and rates. **Acceptance evidence:** Concurrent confirms make one PaymentIntent; stale amount/card/account and customer gets 409 and no charge; non-owner or stale factor gets 403; timeout remains uncertain and reconciliation creates no charge; card_declined and authentication_required get their definitive states without a second PaymentIntent; receipt_email is absent; replay does nothing.

- **DUN-001 — Smart retries.** Nectar runs its own retries for every invoice it issues, whatever the processor; it depends on no processor retry feature (Stripe Smart Retries only retries invoices that Stripe Billing issues, so it does not apply once Nectar owns the invoice and charges through PaymentIntents under `PAY-003`). The default policy makes up to 8 attempts within 2 weeks of the first failure; the business sets the count and the window, per plan or segment (`DUN-002`). Each next attempt's time is chosen from the decline code by a published, versioned retry table (for example, insufficient funds waits for likely pay days, a processing error retries within hours) and never exceeds card-network retry limits for a card. Hard declines (Stripe's hard-decline list, including `stolen_card`, `lost_card`, `pickup_card`, `incorrect_number` and `authentication_required`, and their Adyen and Braintree equivalents) are never retried on the same method: the invoice waits for a new payment method (`PAY-005`, `PORT-004`) or, for `authentication_required`, the customer's confirmation (`DUN-003`). For ACH debits, an R01 (insufficient funds) or R09 (uncollected funds) return is retried at most twice, within NACHA's limit of two reinitiations in 180 days (default window 40 days), and an R02 (account closed), R03 (no account) or an authorization return (R05, R07, R10, R29) is never retried. Retries stop on disputes, missing methods and paid invoices. Each failed invoice exposes its attempt count and next attempt time on the invoice, through the API (`next_payment_attempt`) and in the `invoice.payment_failed` webhook (`DEV-001`). Nectar calls its timing "optimized" only where `DUN-004`'s recorded comparison shows it recovering more than the fixed schedule on the published test set. **Acceptance evidence:** On a test clock with the default policy, fail renewals with `insufficient_funds`, `do_not_honor`, `processing_error`, `stolen_card`, `lost_card` and `authentication_required`: the soft declines retry at the times the retry table gives, no invoice exceeds 8 attempts or 14 days, one recovers, and each failed invoice's next attempt time matches across the invoice page, the API and the `invoice.payment_failed` webhook; the three hard declines are not retried until a new card is added (or, for authentication, confirmed), which pays once; change the policy to 4 attempts in 7 days and see it hold; fail an ACH debit with R01 and see at most two retries inside the window, and an R02 and an R03 never retried.

**Current retry default:** Default ADOPTED pending ct: native test-mode retries are off unless a fresh-factor owner includes the frozen table and exact count, window, method, account and invoice amount in customer terms; the authenticated customer accepts and a human approves, independently when another approver exists. Unknown outcomes reconcile read-only; no retry notices are sent; every claim and outcome is audited. A hard-declined card needs a new separately accepted and approved single recovery attempt within the original caps. Stripe authentication_not_handled is normalized to authentication_required while the original provider code remains in the refusal proof. For authentication_required only, the owner may instead prepare the unchanged card for separate customer acceptance and human approval; the accepted customer then initiates one on-session confirmation of the original PaymentIntent. Unattended retries stay blocked, no other invoice gains authority, and callback parameters are discarded before a clean authenticated page. Explicit owner-assigned retry segments affect future consent only; the smallest count and shortest window among applicable plan and segment overrides apply independently, with the default used only when neither applies. Original consent and PaymentIntent identity remain immutable. Without a successful held-key run, original-card hosted authentication remains unproved. The complete real soft-decline and ACH clock matrix and other processors remain unproved. The live attachable generic failure returned generic_decline and was conservatively not scheduled. Policy approval remains outstanding; no production or network-compliance claim.

DUN-001 retry default, CT ruling 26 October 2026: approved with riders as an interim test-mode slice, not as this clause's destination. Approved: exact frozen invoice, account, method, table version, count, window and amount terms prepared by an owner with a fresh factor, accepted by the authenticated customer and approved by an authorized person, independently when another approver exists; for authentication_required, including Stripe's authentication_not_handled with its original code retained, only that customer may confirm the original PaymentIntent once, on session, within the original caps, and authentication is never attempted unattended; unknown outcomes and replays reconcile through provider reads only; current customer sessions, owner and approver factors, open disputes and erasure stop every attempt; callback query parameters are discarded before a clean authenticated page; explicit owner-assigned retry segments and plan overrides affect only consent prepared after the change, and when several apply the smallest count and the shortest window apply independently. Riders: per-invoice preparation, acceptance and approval are interim gates, and "with the default policy" is proved only when the owner-adopted retry policy retries a failed auto-charge invoice unattended, without per-invoice retry acceptance, audited with the policy version that allowed it; the customer's standing payment authority for that comes from PAY-003 auto-charge terms that disclose the retry policy and, for bank debits, the PAY-002 mandate, never from saving a method; the authentication-required notice and link remain DUN-003's acceptance, and the interim preparation and approval before authentication end when it ships; "no retry notices" records that DUN-003 is unbuilt; the settings range of 1 to 8 attempts and 1 to 14 days is a current limit; card-network and NACHA limits stay binding; Adyen and Braintree equivalents remain obligations; held-key receipts count only on the exact landed SHA. No production, card-network or NACHA compliance is claimed.

- **DUN-002 — Dunning sequences.** A dunning policy sends a sequence of emails (and optional in-app notices through webhooks) with a one-click payment-update link, and ends with the business's chosen action (keep active, mark unpaid, restrict features through `ENT-002`, or cancel); different policies apply by plan or customer segment. Before dunning sequence doors ship, they inherit DUN-004 exact recorded-step attribution, failed and recovered invoice counts, failed and recovered amounts, recovery rates and parity with immutable failures and allocated cash. **Acceptance evidence:** Run a four-email, 21-day dunning policy on a failing card; each email arrives on schedule with a working update link, updating the card mid-sequence stops the sequence and pays the invoice, and a second customer ends restricted after day 21; a customer on the enterprise plan follows a second, invoice-only policy with different timing and is never restricted.

**DUN-002 interim semantics, pending ct:** Nothing enrolls, sends, restricts or ends service unattended. A current owner with a server-recorded fresh factor explicitly creates an immutable policy, enrolls an issued failed invoice and separately prepares and confirms each exact message on its scheduled business-local date. The first failure and timezone stay frozen. Matching plan or explicitly assigned segment policies take precedence over default enrollment; invoice-only policies always keep service active. Messages freeze recipient, actual collectible balance, language and wording; a dispute, promise, payment, withdrawal, erasure, changed source or expired preparation refuses the send. A claimed or uncertain send never retries or gains a replacement preparation. Provider acceptance is recorded without claiming mailbox delivery. A later owner preparation retires an expired earlier dunning setup only if it never started or provider reads establish an expired Checkout with no completable SetupIntent; open or uncertain originals block replacement. Update links reuse the existing hosted customer session and setup-only card door, with the earlier of the original factor deadline and fifteen elapsed minutes; no opening or return extends them. Saving a card grants no debit authority. Recovery retains the original PaymentIntent, customer acceptance, human approval and original retry limits, and explicitly selects the originating message for immutable step attribution. Each claimed message is a step exposure; only the explicitly linked collected attempt and its allocated cash recover that step. An owner separately confirms the chosen end action after the final date: keep active, record native unpaid, or restrict only the invoice's subscription through ENT-002 with restoration after settlement. Cancellation first uses the existing governed subscription cancellation and then records its actual transition. Withdrawal revokes pending authority and that sequence's emailed sessions. Archives exclude executable dunning authority; erasure withdraws its operational rows. These conservative defaults are not an approved narrowing of the original clause; unattended policy execution, broader recovery authority and optional step webhooks remain unshipped pending their policy and implementation proof.

- **DUN-003 — Trial, renewal and payment notices.** Customers receive trial-ending, upcoming-renewal, payment-receipt, payment-failed, payment-method-required and authentication-required emails, each editable per template and switchable per notice. When the bank asks for authentication on an off-session renewal charge, the customer gets a notice with a link to a processor-hosted confirmation page (3-D Secure through Stripe, Adyen or Braintree), and confirming pays the invoice. Each notice has one sender: where the owner keeps the processor's own customer email for the same event (`MOVE-006`), Nectar's notice is off, and Nectar never asks the processor to send a receipt (`receipt_email` stays unset). Before notice doors ship, they inherit DUN-004 exact recorded-step attribution, failed and recovered invoice counts, failed and recovered amounts, recovery rates and parity with immutable failures and allocated cash. **Acceptance evidence:** Run a trial to conversion and a failed payment on a test clock and see each notice arrive once with the right figures; with the owner's record saying Stripe sends refund receipts, a refund produces no Nectar refund notice, and every PaymentIntent Nectar created has no `receipt_email`; renew on a Stripe test card that requires authentication, receive the authentication-required notice, confirm on the linked page and see the invoice paid once; switching one notice off stops only that notice. Before it ships it inherits PORT-006: every customer-facing string it adds lives in the translation files (`src/nectar/locales/<tag>.json`), follows the customer's language with amounts and dates in that locale and the same figures as English, and is covered by the missing-string check.

**DUN-003 interim notice default, adopted pending ct:** all six notice kinds have independent off, Nectar or processor sender choices and versioned language-specific template edits. Only a current authenticated owner with a server-recorded authenticator or passkey verification within fifteen elapsed minutes may configure, prepare and separately confirm a send. Preparation freezes the native event, exact recipient, customer revision and language, figures, rendered wording, mail binding and settings revision; changing any basis refuses the claim. The original factor deadline never extends. A durable unique reservation and audited claim precede one provider submission; concurrent confirmations, uncertain outcomes, provider refusals and stale preparations cannot be bypassed with another preparation for that event. A receipt names one positive recorded allocation, not settlement; a failed-payment notice requires a recorded native retry failure and current undisputed collectible debt with no promise hold. Informational notices create no debit or recovery attribution and change no failure or allocated-cash ledger. Archives exclude executable send authority; native erasure removes operational notice rows. This owner-only, explicitly confirmed slice is interim and does not narrow the original unattended notice and hosted-authentication destination.

- **DUN-004 — Recovery reporting.** Reports show failed-payment amounts, recovered revenue, recovery rate by decline reason, retry attempt and dunning step, and involuntary churn. Nectar also records a comparison of each retry policy (`DUN-001`) against a fixed three-attempt schedule over a published test set of failed payments with known outcomes, and any claim that its timing recovers more cites that record. **Acceptance evidence:** After a test-clock run with known outcomes, the recovery report's counts and dollar figures equal the payments and failures recorded; replaying the published test set under the default policy and under the fixed schedule records both recovery rates and amounts, and the product's description of its retry timing matches the recorded result.

**Current recovery records:** An invoice enters the failed cohort once at its first recorded native failure. Recovered revenue is actual allocated cash after that failure, capped at the failed amount; partial cash does not count as a fully recovered invoice. Native manual, trial and prepaid collection refusals share the report with governed automatic retries. Credits and uncertain or pending payments are not recovered cash. Dunning steps are not inferred from attempt numbers; an absent recorded step is explicitly unrecorded. Only an owner-confirmed attribution of an actually ended subscription to an unpaid failed invoice counts as involuntary churn. DUN-002 and DUN-003 inherit exact step attribution before their doors ship; PAY-004 and PAY-008 inherit immutable failure, recovery and report parity before adding new event or recovery doors. The original DUN-004 acceptance remains unchanged.

### Receivables and collections

- **AR-001 — Collections cadences sent from Nectar.** For invoices paid by transfer, collections cadences send reminders before and after the due date from Nectar through `INV-002`, tailored by segment and balance, with escalation to an owner, promises to pay that pause reminders until their date, and disputes that stop chasing the disputed amount. Approval rules (`NEC-12`) can still require a person to approve the wording. Current collection capability (ct, 19 October 18:17Z): owner and finance receivables members explicitly enroll issued invoices with a customer-segment label and operator-recorded transfer terms; this is not bank-account or payment verification. The versioned owner policy is off by default and requires a different active owner and finance approver, or GOV-002’s explicit sole-owner second confirmation. It selects the first rule matching the enrolled segment and minimum collectible balance, with exact subject and body templates. Business-local daily stages are −3, +1, +7 and +15 days from the due date; the first tick on or after a stage acts, and missed stages collapse to the latest one while older stages are superseded. The +15 stage creates one durable task assigned to an active owner. A promise pauses reminders inclusively through its recorded local date. A dispute records explicit cents against one positive issued line; cumulative open disputes cannot exceed that line. Actual credits and payments reduce invoice debt first; then disputed cents are subtracted from the collectible remainder, capped at zero, without tax attribution or changes to debt or issued evidence. Resolving a dispute retains its reason and outcome and resumes collection of the current remainder. Current manual NEC-12 reminders, approvals, exports and collection proposals obey the same holds and source checks. Human-required policies freeze the exact recipient, wording, amount and source basis before approval (HTML form CRLF line endings normalize to LF after ordinary field trimming, with no other wording changes); source, policy, recipient or wording changes refuse stale approval and a refreshed unsent reservation needs new approval. An approved policy may authorize unattended sends honestly as policy approval. The reservation, send claim and recorded outcome each share their atomic audit batch; unique invoice and stage custody and stable delivery ids prevent duplicate attempts. Recipient, source, active policy and holds are rechecked before claiming. Provider accepted, rejected, rate-limited, failed, suppressed and uncertain outcomes remain visible; acceptance does not establish mailbox delivery, and claimed or uncertain sends are never automatically retried. A zero remaining balance stops the cadence. Before PAY-007 actual transfer collection ships, its eligible transfer invoices inherit enrollment, current-balance/line-dispute/promise parity and the same no-duplicate and stops-on-payment acceptance; INV-002 inherits cadence message recipients, frozen wording, actual provider outcome and future delivery and bounce custody before its invoice-delivery door ships. **Acceptance evidence:** Run a Net 30 invoice past due; reminders go out on days −3, +1, +7 and +15; a promise to pay pauses them until its date; a dispute on one line stops reminders for that line only; payment stops the cadence. The named AR-001 real-Worker journey additionally asserts timezone edges, segment and minimum rules, all manual and proposal holds, independent policy and exact human approvals, stale sources and unchanged issued tax and calculation evidence, actual transport payloads, duplicate ticks, owner task custody and honest no-retry outcomes.

- **AR-002 — Cash application.** Bank deposits (from Plaid bank feeds), processor payouts, bank transfers into customers' processor cash balances (`PAY-007`) and lockbox or remittance files match to invoices automatically by amount, reference, remittance advice and customer, with a queue for partial and unmatched receipts that a person allocates; queued cash-balance funds show their age against the processor's return deadline. **Acceptance evidence:** Feed a Plaid sandbox account with a wire paying three invoices, an ACH credit with a remittance email, a short payment and an unknown deposit; the first two apply automatically, the short payment leaves the right balance and the unknown deposit waits in the queue; a Stripe test bank transfer with no matching reference or amount appears in the same queue with its amount, date and days left before Stripe's 75-day return, and allocating it pays the chosen invoice through the cash balance.

- **AR-003 — Disputes and chargebacks.** Card disputes from the processor and invoice disputes raised by the customer are tracked with reason, amount, deadline and evidence; Nectar assembles the evidence pack (invoice, usage, signed terms, delivery and access records) for the processor and records the outcome. Disputes inherit CUS-002 append-only dated notes, audited authorship, active-member mentions with access checked at delivery, and customer and export projection before dispute records ship. Before dispute tracking ships, it inherits INT-003 per-member dispute-email preferences, active authorized recipients, exact signed-in dispute links and honest provider outcomes. **Acceptance evidence:** Trigger a Stripe test dispute; Nectar opens a dispute with its deadline, assembles evidence from the invoice, usage and delivery log, submits it, and records the won outcome with the funds returned. Add a dated dispute note mentioning a permitted colleague, receive one record-linked email, find the note on the customer and export, refuse an edit and retain a follow-up and audit. With finance subscribed to disputes, trigger a Stripe test dispute and receive one record-linked email through the Postmark sandbox; an unsubscribed or unauthorized member receives none, and the provider outcome is retained honestly.

- **AR-004 — Write-offs and bad debt.** A person with approval writes off an uncollectable balance with a reason; the write-off posts to accounting as bad debt and stops collection, and a later recovery is recorded against it. The owner-set amount limit and two-person rule in `GOV-002` apply before write-offs ship: the exact balance, amount, reason and accounting effect are saved for approval by a different authorized person above the limit; direct execution, self-approval and agent approval are refused. Policy changes retain GOV-002 approval and audit rules. As built, the one owner-set GOV-002 two-person threshold governs credits and write-offs; a write-off removes its amount from the invoice balance (issued evidence is never edited), a recovery allocates a recorded payment to the invoice and reverses that part of the bad debt, and each write-off and recovery saves its balanced journal (debit Bad Debts, credit Accounts Receivable for the customer) with the receivable fact, then posts it to QuickBooks Online; a failed post stays in the retry queue and never undoes the write-off. `BOOK-001` inherits the connection grant and refresh, account and customer mapping and the live QuickBooks sandbox proof. **Acceptance evidence:** Write off a 120-day balance, see it leave aging, post to QuickBooks as bad debt and stop reminders; then record a partial recovery and see the reversal. Also set a $1,000 two-person limit: a $1,500 write-off cannot execute directly or be approved by its preparer, executes once after a different authorized person approves, and a $900 write-off needs one person. Refused, stale or duplicate requests leave balances, collections and accounting unchanged; audit records both people.

- **AR-005 — Accounts-payable portal submission.** Invoices for customers who require it are submitted to their AP portal (Coupa, SAP Ariba, Bill.com or a [Purse](https://github.com/just-every/run-purse) installation), and the portal's approval and payment status flows back to the invoice. **Acceptance evidence:** Submit an invoice to a Coupa test supplier portal, an SAP Ariba test supplier account, a Bill.com sandbox and a Purse installation; each portal's received, approved and paid states appear on the invoice.

- **AR-006 — A payment confirmed from a bank deposit is never counted again when the same payment arrives through ordinary remittances: the two sources reconcile to one payment.** Bank-specific source IDs and ordinary remittance IDs resolve to the same payment identity. Reconciliation remains visible and auditable on the payment, with both sources named and nothing deleted. **Acceptance evidence:** (1) Confirm a bank deposit, then upload and confirm the identical CSV through ordinary remittances: one payment of the original amount remains, so a $10 payment never becomes $20. (2) Repeat in reverse order, CSV first and then the bank deposit: one payment remains. (3) Bank-specific source IDs and ordinary remittance IDs resolve to the same payment identity. (4) Read the payment and its audit: both sources are named and nothing is deleted. (5) Run one public-door journey through the deposit-then-identical-CSV probe end to end.

### Customer portal

- **PORT-001 — Customer billing portal.** Billing contacts sign in by email link (no password) to see and pay invoices, download invoices, receipts and credit notes, manage billing contacts, addresses, tax IDs and exemption certificates, and download the merchant's W-9. Before the customer portal ships, every AGENT-002 correction preview and explanation matches what that customer sees after approval, including credit notes, original issued figures and next-invoice consequences; customers see only their own records. Before the customer portal ships, inherit AGENT-007 own-customer-only cited billing answers: repeat its ten supported-topic questions as the signed-in billing contact, assert every figure against its permitted source, refuse another customer’s question and source links, keep reads free of writes, and permit a requested credit only as a governed pending proposal. **Acceptance evidence:** A billing contact signs in by link, pays an open invoice by ACH, adds a contact and uploads an exemption certificate; another customer's contact can see none of it. Before the customer portal ships, every AGENT-002 correction preview and explanation matches what that customer sees after approval, including credit notes, original issued figures and next-invoice consequences; customers see only their own records. Before the customer portal ships, inherit AGENT-007 own-customer-only cited billing answers: repeat its ten supported-topic questions as the signed-in billing contact, assert every figure against its permitted source, refuse another customer’s question and source links, keep reads free of writes, and permit a requested credit only as a governed pending proposal. Before it ships it inherits PORT-006: every customer-facing string it adds lives in the translation files (`src/nectar/locales/<tag>.json`), follows the customer's language with amounts and dates in that locale and the same figures as English, and is covered by the missing-string check. Before the portal ships it inherits GOV-005: an authenticated billing contact can record only its own erasure request; ordinary verification, owner-only approval, full erasure and financial-retention receipts and cross-customer refusal are asserted through the portal.

- **PORT-002 — Usage, credits and upcoming charges in the portal.** The portal shows live usage against quotas and commitments, prepaid credit balance and the upcoming invoice (`USE-006`), with usage downloadable as CSV. Before the portal ships it inherits USE-006 live exact meter usage, remaining credits and same-engine upcoming preview refreshed within one minute of ingestion, with downloadable usage CSV. Before DONE, inherit CAT-003 customer commitment burn-down: display the same nominal and active minimum, issued eligible earnings, true-ups and remaining amount as the operator and API, with each permitted issued invoice linked; all totals reconcile to immutable invoice lines before tax and unrelated fees/credits. Before customer usage and next-invoice views ship, every AGENT-002 correction preview and explanation agrees with those exact engine figures and source events before and after approval, and customers see only their own records. Before customer usage and upcoming-charge answers ship, inherit AGENT-007 exact source-figure and event citations, honest topic interpretation and refusal and ten-question acceptance under the signed-in customer’s own scope; suggestions remain pending governed proposals and answers never mutate records. **Acceptance evidence:** Stream usage and refresh the portal; usage, credit balance and the upcoming invoice match the operator view and the next issued invoice. Stream usage while reading the operator and API and portal previews: each current meter quantity, remaining credit and previewed cent agrees, refresh includes ingestion within one minute, and unchanged inputs produce the same issued invoice under USE-006. Download the portal usage CSV and independently sum it by meter and period to the displayed exact quantities. Before customer usage and next-invoice views ship, every AGENT-002 correction preview and explanation agrees with those exact engine figures and source events before and after approval, and customers see only their own records. Before customer usage and upcoming-charge answers ship, inherit AGENT-007 exact source-figure and event citations, honest topic interpretation and refusal and ten-question acceptance under the signed-in customer’s own scope; suggestions remain pending governed proposals and answers never mutate records. Before it ships it inherits PORT-006: every customer-facing string it adds lives in the translation files (`src/nectar/locales/<tag>.json`), follows the customer's language with amounts and dates in that locale and the same figures as English, and is covered by the missing-string check.

- **PORT-003 — Self-service plan changes within policy.** Customers upgrade, downgrade, change seats, pause or cancel themselves within the rules the merchant sets (which plans, when, minimum terms), seeing the proration preview before they confirm; changes outside policy become requests for a person. Before online signup or cancellation ships through this door, inherit SUB-004's one-confirmation cancellation bound, current term dates, scoped links, honest notice outcomes and optional-save-only rule. Before customer retention ships through this door, inherit SUB-005 optional discount, pause and downgrade saves, dated once-only win-back offers, approved source-bound terms, customer isolation and honest mail outcomes. **Acceptance evidence:** A customer upgrades with a proration preview and pays the difference, a downgrade below the contract minimum becomes a request, and a cancellation completes through the `SUB-005` flow. A customer raises seats from 10 to 15 with the prorated charge previewed and paid, and a reduction below the policy's minimum of 5 is refused; a customer pauses for one month where the policy allows pausing, sees no invoice for that month and resumes on the date shown, while a customer on a plan whose policy forbids pausing sees no pause option. Before it ships it inherits PORT-006: every customer-facing string it adds lives in the translation files (`src/nectar/locales/<tag>.json`), follows the customer's language with amounts and dates in that locale and the same figures as English, and is covered by the missing-string check.

- **PORT-004 — Payment methods in the portal.** Customers add, replace and remove payment methods and choose a default through processor-hosted fields (`PAY-002`), and set up ACH with verification. **Acceptance evidence:** Replace an expiring card and add a verified ACH account in the portal; the next invoice charges the new default. Before it ships it inherits PORT-006: every customer-facing string it adds lives in the translation files (`src/nectar/locales/<tag>.json`), follows the customer's language with amounts and dates in that locale and the same figures as English, and is covered by the missing-string check.

- **PORT-006 — Customer-facing language.** The portal, hosted invoice page, checkout, payment links, PDFs and every customer email follow a per-customer language: English and US Spanish ship, and each further locale is added as a translation file with no code change; amounts and dates follow the locale while the currency stays the invoice's. Today's customer-facing doors conform: owners and finance members set a customer's language on the customer form and JSON door (`language`, default `en`; only a complete translation file is offered or accepted, anything else is `unsupported_language`), and every message and page Nectar writes for a customer follows it: the SUB-004 renewal notice and renewal/cancel page, the SUB-005 save offer, return page and win-back mail, TAX-002 certificate reminders, AGENT-002 draft-correction notices and the facts AR-001 appends to collection reminders. Exact semantics: a translation file is `src/nectar/locales/<tag>.json`, discovered at build; it is complete when it has exactly `en.json`'s keys, no empty value and the same `{placeholders}`, and an incomplete file fails `node scripts/check-locales.mjs` and is never offered, so no customer sees a key. Amounts are exact cents (or an exact decimal price up to six places) formatted by the locale with the currency shown as its ISO code (USD today); dates are business-local calendar days rendered as the locale's long date with no time-zone shift. A page reached by a link that names no live customer (an expired or unknown token, or a refused cross-site post) uses English, and a customer whose language file is removed falls back to English. Honest labels: text a person writes (AR-001 owner rule subjects/bodies, AGENT-002 invoice-credit messages, product and price descriptions) is sent exactly as written and never machine-translated; the customer record and the AGENT-002 invoice-credit preparation show the customer's language so the author writes in it (AR-001 rule text is shared by every customer in its segment, so per-language wording uses a segment per language). The shipped es-US strings are a model-written translation that no person has reviewed yet; this sentence stays until a person reviews them. Before they ship, PORT-001, PORT-002, PORT-003, PORT-004, INV-002, INV-003, PAY-002, PAY-006, DUN-003 and MOB-003 inherit this obligation in their own text and acceptance. **Acceptance evidence:** Set a customer to Spanish; their invoice email, hosted page, PDF, portal and dunning email render in Spanish with the same figures as the English version; add a French translation file and see a French customer's pages switch with no code change; a missing string fails the check instead of showing a key. Today: a Spanish and an English customer receive the renewal notice, renewal/cancel page, save offer, win-back mail and return page, collections reminder facts, certificate reminder and correction notice, each in their language with the same figures; the invoice email, hosted page, PDF, portal and dunning doors carry the same obligation before they ship.

- **PORT-005 — Embedded portal and branded domain.** The merchant embeds the portal in its own app through a signed session (`DEV-003`) or serves it on its own subdomain with its branding. Ct-approved custody (20 October 16:55Z): a dedicated installation-held `PORTAL_KEY`, excluded from archives, signs revocable 15-minute sessions bound to one customer, audience (embedded or hosted) and exact portal origin. Only the owner approves portal hosts and embedding parent origins. Operator sessions and credentials never substitute for customer sessions. Changing the allowlists invalidates prior sessions; expiry is inclusive at the deadline. Owner configuration, issuance and revocation inherit GOV-007 fresh-factor checks. Runtime session rows are excluded from archives, withdrawn on customer erasure and never resurrected by a restore, even with the same key. The portal exposes a billing overview, issued-invoice detail, ten-topic cited answers, explicit pending credit requests, approved correction explanations and same-engine upcoming views through dedicated customer projections; PORT-001..004 and all their existing privacy, correction, answer and language acceptance remain required for the complete portal. Exact current figures are original invoice total, issued credits, allocated external payments and owed balance. Customer answers reuse the issued-record evaluator for ten topics; every numeric operand has an own-customer source projection and JSON pointer. These projections expose only saved financial operands and their own usage events, never the original raw calculation document. Reading an answer creates no proposal or message. A separate exact-origin POST prepares only an ordinary pending AGENT-002 credit proposal, truthfully attributed to the signed customer rather than an operator or agent; existing GOV-002 human approval, thresholds and stale-source checks decide it. Approved explanations retain their exact frozen wording, original tax and figures; each current amendment/unbilled-usage consequence equals the ordinary next issued invoice. Requests originate in the customer portal, verification and approval use the unchanged GOV-005 doors, receipts retain their existing operator authority after erasure withdraws all customer sessions, and anonymized archives refuse older custody. PORT-001..004 and every future customer capability inherit all these obligations before shipping; internal notes, metadata, raw calculation inputs, unissued documents and payment evidence remain operator-only. **Acceptance evidence:** Open the portal embedded in a sample app with a server-signed session and on `billing.example.com`; both show only that customer's data, and an expired session is refused.

### Tax

- **TAX-001 — US sales tax through a tax provider.** The owner connects Stripe Tax, Avalara AvaTax, Anrok or TaxJar; Nectar validates addresses, assigns product tax codes (SaaS, services, digital goods), gets a per-line calculation at draft time, commits the transaction when the invoice issues and reverses it on credit, refund or void. Stripe Tax works for invoices Nectar issues through Stripe's standalone Tax Calculations and Tax Transactions APIs, whichever processor collects the payment: Nectar reads the account's existing tax-provider registrations, head-office address and product tax codes (moved in with the catalog under `MOVE-006`), so the existing tax-provider customer keeps its registrations and filing exports and buys no new tax vendor to switch. Each issued invoice records exactly one committed transaction, re-issuing or replaying creates none, and credits, refunds and voids create reversals of exactly their share; customer exemptions and reverse charge pass as the provider's exemption override (`customer_exempt` in Stripe Tax). The one-state declared rate (`NEC-01`) stays as the provider-free mode. The seller remains responsible for registration and filing; Nectar never claims a flat rate makes a business compliant. **Acceptance evidence:** Connect a Stripe test account with Stripe Tax registrations in Texas, New York and Washington and bill SaaS customers in those states and in Oregon: each line's tax equals the Tax Calculation response; issuing records one Tax Transaction per invoice and re-issuing creates none; a credit note and a partial refund create reversals of exactly their share; Oregon returns zero with taxability reason `not_collecting`; a customer with the `customer_exempt` override bills tax-free; and the quarter's Stripe Tax transaction export equals `TAX-003`'s per-state totals. Repeat with the Avalara sandbox (lines match AvaTax's response, issued invoices are committed and a credit note reverses its share) and with Anrok and TaxJar sandboxes (lines match each response).

- **TAX-002 — Exemption certificates.** Exempt customers' certificates are collected (in the portal or by operators), validated and stored per state with expiry, through Avalara ECM or in Nectar; an expired or missing certificate raises an exception and reminders before expiry. **Acceptance evidence:** Upload a Texas resale certificate for a customer, bill them tax-free in Texas but taxed in New York, let the certificate expire on a test clock and see the exception and reminder.

- **TAX-003 — Tax reports for filing.** Reports give taxable, exempt and tax amounts by state and jurisdiction per period, reconciled to issued invoices and credits and to the connected provider's recorded transactions (Stripe Tax transactions and their reversals, AvaTax committed documents), and exports in the provider's filing format. The current native USD quarter source report groups ordinary issued invoices by their exact frozen declared jurisdiction, with original taxable, exempt and non-taxable bases and original tax; only saved, explicitly source-attributed credit tax adjusts known tax. Missing jurisdiction, unknown bases and unattributed ordinary credits stay visible and unnetted, and credit subtotals are never spread across taxability classes. These declared labels do not establish customer destination, provider commitment or filing jurisdiction; this read-only source report changes no issued evidence and supplies no registration, filing, remittance, collection or outbound authority. Provider reconciliation and provider filing formats remain required. **Acceptance evidence:** After a quarter of test-clock billing with Stripe Tax connected, the tax report's totals per state equal the sum of invoice tax lines less credits, and equal the quarter's Stripe Tax transaction export for the same states; the same quarter with the Avalara sandbox equals AvaTax's committed transactions.

- **TAX-004 — Economic-nexus monitoring.** Nectar tracks the business's sales and transaction counts per US state over each state's measurement period against its economic-nexus threshold (for example $100,000 or 200 transactions), warns the owner when a state reaches a set share of the threshold and when it is crossed, and lists the states where registration is due; with a connected provider it uses the provider's nexus data and registrations (Stripe Tax registrations and threshold monitoring, Avalara's nexus settings), so a state already registered there is not reported as due. **Acceptance evidence:** Bill a test customer base so that Colorado reaches 80% and then 100% of its threshold; the owner receives one warning at each step naming the state, the measurement period and the figures, which equal the issued invoices in that state; with Stripe Tax connected and registered in Texas, Texas crossing its threshold is listed as registered, not due.

### Accounting and revenue

- **BOOK-001 — QuickBooks Online, Xero and Pantry sync.** Customers, invoices, credit notes, payments, refunds, processor fees, write-offs and payouts sync to QuickBooks Online, Xero or [Pantry](https://github.com/just-every/run-pantry) with the business's account, item and tax mapping, idempotently, with an error queue and a reconciliation report. **Acceptance evidence:** Run a month of billing against a QuickBooks Online sandbox company, a Xero demo company and a Pantry installation; every record appears once with the right accounts, re-running the sync creates nothing new, and the reconciliation report shows Nectar's and each ledger's AR balances equal.

- **BOOK-002 — NetSuite and Sage Intacct sync.** The same sync runs into NetSuite and Sage Intacct, including subsidiaries, departments, classes and locations, for larger buyers. **Acceptance evidence:** Sync a month of two-entity billing to a NetSuite sandbox with subsidiaries; invoices, payments and journals land in the right subsidiary and the AR balance agrees.

- **REV-001 — ASC 606 revenue schedules.** Every current issued native invoice line has an immutable schedule saved atomically at issue, excluding tax. Flat and seat fees, signed discounts and fixed service credits are allocated across saved [start,end) business-local calendar days using cumulative half-away rounding differences that conserve the line cents. Usage follows recorded consumption months; nonlinear metric and tier cents are apportioned by exact contributing quantities using largest-remainder cents, ties by month then id. Cancellation credits are earned schedules minus gross schedules; one-time fees recognize on the service date, unused minimum commitments at settlement and expiry, and trial and paused zero lines remain zero. An invoice-level credit note records separate contra-revenue in its business-local issue month without inventing line and tax attribution or changing originals. USE-004 historical credits retain exact original tax attribution and post their pretax delta; carried-credit applications add no new tax or revenue. Positive historical correcting lines retain their original-service recognition deltas. Monthly arrears show accrued contract assets before billing, never a deferred liability. Operator and API monthly journal contributions, opening + net billings - recognition = closing roll-forward, separate gross accrued assets and deferred liabilities, source and line drill-through and CSV all reconcile. Existing historical invoices without snapshots have honestly labelled read-only schedules derived from saved original inputs; reads never create snapshots or use current prices. All three AGENT-002 correction kinds preview exact before and after line schedules and period deltas, cite their immutable line and source and policy basis, bind approval to them, and apply the governed adjustment with the frozen customer-message reservation. Current-door completion follows ct’s 19 October 23:58Z policy and boundary approval. CAT-001 inherits annual and advance schedules (including the annual $12,000 / $1,000 per month example), CAT-004 inherits prepaid liabilities and consumption and expiry, and REV-002 inherits closed-period and connected-ledger journal custody before those capabilities ship. Every future record kind inherits GOV-005 redaction, minimal financial retention and eventual removal before shipping. **Acceptance evidence:** Named REV-001 public Worker journeys independently calculate cross-month service-day allocations, signed concessions, usage/late/nonadditive allocation, one-time fees, commitment expiry, cancellation and zero lines; issue and credit snapshots, month journals, accrual and roll-forward, customer scoping, drill-through, CSV, read-only and unauthenticated refusals and immutable originals reconcile. Named AGENT-002 correction journeys prove exact schedules/deltas/citations and approved ordinary issue parity for credits, amendments and unbilled corrections, preserving source/role/governance/stale/message custody. GOV-005 journeys repeat with the new schedule/entry/credit record families. The annual advance and prepaid example remains fully asserted in CAT-001/CAT-004 before those capabilities ship; REV-002 must preserve issued and closed evidence and connected-ledger posting.

- **REV-002 — Revenue close and journal export.** Finance closes each period: Nectar locks it, produces deferred-revenue roll-forward, billings, collections and revenue reports, and posts summarized journal entries to the connected ledger (`BOOK-001`, `BOOK-002`); later changes post to the open period. As built, a close covers a past month, in order, and freezes its contribution keys, roll-forward, journals and the frozen billings and collections reports; a saved contribution that arrives for a closed month (a credit note issued later, an invoice dated inside it) is reported in the earliest open month with its original month named, so closed months, journals and CSVs never change. One summarized journal per ledger company is saved with the close and posted to QuickBooks Online through the `AR-004` queue. `BOOK-001`/`BOOK-002` inherit the connection grant and refresh, account mapping and the live ledger sandbox proof. **Acceptance evidence:** Close September, then issue a credit note dated in September; the closed period is unchanged, the credit posts in October, and the roll-forward ties opening balance + billings − revenue = closing balance. Before closing or connected-ledger journal posting ships it inherits REV-001: preserve immutable issued and closed schedules, journal/roll-forward/source and CSV parity, and exact AGENT-002 before and after adjustments and approval and message custody without rewriting closed evidence.

  Current journal-export semantics (partial implementation): the read-only USD monthly export uses a pretax billings-clearing account, accrued contract assets, deferred-revenue liabilities and recognized revenue. Asset and liability balances are classified per invoice before aggregation; signed decreases reverse the corresponding debit/credit, zero movements are omitted, and each month balances exactly in cents. The opening position includes all earlier saved sources even when the selected range begins later. The JSON journal retains the original source contributions; CSV links each month to its source report with the same customer filter. Tax, cash, collections, processor settlement and automatic ledger mapping/posting are not claimed by this export. The full close and connected-ledger requirements above remain open.

### Reporting and analytics

- **RPT-001 — SaaS metrics.** MRR and ARR with movements (new, expansion, contraction, churn, reactivation), customer counts, logo and revenue churn, net and gross revenue retention, ARPA, trial conversion and retention-by-cohort tables, filterable by plan, segment and entity. The metrics cover the business's whole history, not only the months since cutover: subscription and invoice history moved in from the previous biller (`MOVE-007`) feeds every metric from the customer's first period there, and the published metric definitions list each difference from the previous biller's own analytics (for example, the previous biller excludes metered usage from MRR). Before normalized MRR and historical metrics ship, every AGENT-002 correction kind shows its exact before and after MRR effect from the same published metric definition and retained source history, bound to the reviewed proposal and frozen customer explanation. **Acceptance evidence:** Move in an 18-month test account with the previous biller through the live connection (`MOVE-006`) and, separately, through the uploaded capture (`NEC-16`), and adopt its subscriptions; with no data written except through those move-in doors and later billing, the MRR, movements, churn, net and gross retention and cohort tables for every pre-cutover month equal an independent computation over the the previous biller objects captured, and equal the previous biller's "Subscription metrics per month" report for the same account except for listed definition differences, each explained; the months after cutover continue the same series without a break; each figure drills to the subscriptions that make it up. Before normalized MRR and historical metrics ship, every AGENT-002 correction kind shows its exact before and after MRR effect from the same published metric definition and retained source history, bound to the reviewed proposal and frozen customer explanation.

- **RPT-002 — Financial reports.** Billings, collections, outstanding AR and aging, credits, refunds, tax collected, credit balances and unbilled usage per period, scheduled for email delivery and exportable as CSV. Current-capability completion (ct, 19 October 14:00Z): today's reports cover issued invoices, actual credit notes, recorded external receipts and allocations, current AR and aging and rated unbilled usage. Billings uses issue-date month; collections uses received-date month up to today, without a processor-settlement claim; credits use creation month in the business timezone. Original invoiced tax is reduced only by USE-004 historical credit notes with exact saved tax attribution; other notes have no invented reversal, cash-collection or remittance claim. Unbilled usage rates the current recorded inputs for begun, live, unissued service periods starting in the selected month, includes late events and exact metric/lifecycle/allowance rules, and excludes base and seat charges, discounts, credits, minimum true-ups, one-time fees and tax; snapshot metrics carry recorded state through the service period, not elapsed-to-now accrual or forecasts of new events. All existing reports have customer and month filters, source drill-through and matching CSVs; AR is a current snapshot with due-date aging rather than historical month-end AR. Each authorized human member may opt themselves into a monthly email on day 1–28 in the business timezone, default off; the daily job sends the previous month once on or after that local day. Reports freeze figures, CSV and underlying source evidence at generation; AR and historical-usage credit balances use the actual generation date. Email contains those figures and their definitions with a signed-in snapshot link, only to the currently active, still-opted-in member. Durable reservations and current authority checks prevent duplicate attempts; provider acceptance is labelled honestly, failed/suppressed/uncertain outcomes remain visible, and claimed or uncertain sends are never automatically retried. The current historical-usage credit balance report equals each numbered correction credit less its original and later invoice applications, across issue dates; its source and CSV and scheduled snapshots preserve that definition. It includes currently effective prepaid monetary credits and unconsumed paid-unit consideration, with unit quantities separately typed and never treated as dollars. Its source evidence and CSV retain each lot’s ledger components; scheduled delivery freezes that exact ledger. It excludes unallocated receipts, general goodwill balances and cash refunds until those capabilities ship. Before their capabilities ship, INV-005 carries net tax and credit-reversal report parity, PAY-004 settled collections and refunds, INV-006 and CAT-004 their customer and prepaid ledger balances, and MOVE-007 imported-source report parity. Each new record, provider or report door inherits the same definitions, CSV, drill-through and scheduled-snapshot parity. **Acceptance evidence:** After a test month, the billings report equals issued invoices, collections equals settled payments, AR equals the sum of open balances, tax collected equals invoice tax lines less credits, credit balances equal the customer balance ledgers, and unbilled usage equals rated events not yet invoiced; a scheduled report arrives by email with the same figures. The named RPT-002 journey proves every current report against independent cents, scoped CSVs and source evidence, current aging, self-only scheduling, local-day/duplicate/opt-out/revocation boundaries, frozen evidence after new inputs and honest mail outcomes; the named future clauses retain the remaining acceptance before shipping.

- **RPT-003 — Drill-through from every figure.** Any report figure opens to the invoices, lines, calculation evidence and usage events behind it. Current reports use issued records: billed monthly recurring revenue sums flat, seat, current-period usage, recurring discount and cancellation-credit lines for subscription periods starting in the selected month, including actual proration; it excludes late usage, one-time charges, fixed credits, credit notes and tax, and is not a normalized subscription run rate. Billings sums original lines plus tax by issue-date month. AR is the current balance (lines plus tax less actual credits and allocations), aged using today in the billing timezone; credits and payments are never proportionally attributed to lines. Collections sums recorded external payments by received-date month up to today in that timezone, with allocations and the unallocated remainder exposed separately; it makes no processor-settlement claim. Monetary contributions use integer cents; usage quantities use exact decimals and the saved once-rounded line calculation. Fixed lines and unallocated payments honestly show that no usage events or invoice exist behind them. Every report added by `RPT-001`, `RPT-002`, `RPT-004` or a future record/provider clause inherits this drill-through obligation before shipping. **Acceptance evidence:** From the MRR, billings and AR reports, drill one figure down to an invoice line and from there to its usage events; the totals at each level agree.

- **RPT-004 — Warehouse and BI export.** Nectar syncs its records (customers, subscriptions, invoices, lines, payments, usage aggregates, revenue schedules) on a schedule to Snowflake, BigQuery or S3 with a documented schema. **Acceptance evidence:** Sync to a BigQuery test dataset and recompute MRR and AR from the synced tables; they equal Nectar's reports.

### CRM, contracts and workflow integrations

- **CRM-001 — Closed-won deals become subscriptions.** A closed-won deal in [Orbit](https://github.com/just-every/run-orbit), Salesforce or HubSpot (with its line items, term, start date and quote) creates a draft customer and subscription for a person to approve; billing status (MRR, open balance, overdue, payment failures) syncs back to the CRM account. **Acceptance evidence:** Close a deal in a Salesforce developer org, in a HubSpot developer test account and in Orbit; each creates one draft subscription matching the quote, approval starts billing, and the account shows MRR and an overdue flag after a missed payment.

- **CRM-002 — Signed order forms and contracts as inputs.** Executed order forms and amendments arrive from [Inkwell](https://github.com/just-every/run-inkwell), Docusign, PandaDoc, [Platter](https://github.com/just-every/run-platter) quotes or [Locket](https://github.com/just-every/run-locket); Nectar stores the document, links it to the subscription, and starts the `AGENT-006` setup proposal. **Acceptance evidence:** Complete a Docusign sandbox envelope and an Inkwell envelope; each attaches to its customer and opens a setup proposal quoting the document.

- **INT-001 — Chat alerts and approvals.** Billing events (exceptions waiting, failed payments, disputes, large invoices, proposals to approve) post to Slack or [Nook](https://github.com/just-every/run-nook) channels, and approvers can open the exact item from the message. **Acceptance evidence:** Fail a payment and prepare a bill run with an exception; each posts one message to a Slack test workspace and to Nook with a link that opens the item for a signed-in approver only.

- **INT-003 — Team email notifications.** Each member chooses which events email them: disputes opened, failed processor webhooks or outbound webhook deliveries, payments that do not match an invoice amount, bill-run exceptions waiting, proposals to approve and @-mentions (`CUS-002`); each email links to the exact item for a signed-in member with the right role. Under ct's 19 October ruling, completion covers current event kinds: manual-payment mismatches, prepared bill-run exceptions, pending proposals and mentions. Each member, including an accountant, changes only their own preferences; agents cannot read or change them. Mentions start on to preserve CUS-002; new categories start off. Alert delivery requires an active member with current read and relevant action capability (receivables for payments, approve for runs/proposals); new alerts contain only an event label and signed-in item link, while permitted mention mail retains the note. A manual payment mismatches when the customer has a positive issued-invoice balance and its amount equals none of that customer's current balances after credits/allocations; drafts and settled customers do not trigger it. Each event/member pair queues in the originating transaction, sends under a single claim, and retains provider acceptance/reference, suppression, rejection, failure or uncertainty honestly. Unclaimed pending sends resume on the scheduled handler; no claimed or uncertain delivery automatically retries. AR-003 inherits dispute alerts, PAY-004 processor-webhook failure alerts and DEV-001 outbound-delivery failure alerts, with per-member choices, current authority, exact signed-in links and honest delivery custody before those event capabilities ship. GOV-001 must apply recipient checks to future custom roles. **Acceptance evidence:** In the named INT-003 public-door journey, subscribe finance to payment mismatch and prove one linked email for a short payment, none for an opted-out/read-only/ended member, and no mismatch for any matching current balance, drafts or fully settled customers. Independently select run exceptions and proposals and receive only those event emails. Opt mention mail out and back in and see suppressed versus one accepted record-linked email. Prove self-only API/form preferences, member-only custody, cross-site/signed-out refusal, exact working signed-in links, provider rejection/uncertainty and no retry. The Stripe test-dispute/Postmark journey is inherited by AR-003, and processor/outbound failures by PAY-004/DEV-001 before shipping.

- **INT-002 — Workflow automation and support context.** Triggers and actions for [Crank](https://github.com/just-every/run-crank) and Zapier, and read access for [HappyToHelp](https://github.com/just-every/run-happytohelp) and [Buoy](https://github.com/just-every/run-buoy), let other tools react to billing events and show a customer's plan, invoices and balance next to their tickets and health scores. **Acceptance evidence:** A Zapier test zap and a Crank workflow each fire once on `invoice.paid`; HappyToHelp shows the customer's plan and open balance on a ticket, and Buoy shows the customer's MRR and payment failures on its health score, each through a scoped read credential that cannot change billing.

### Move-in from every incumbent

Every move-in path (`NEC-16` and `MOVE-001` to `MOVE-006`) brings the previous
biller's history with it, so reports, metrics, the customer record and revenue
schedules start from the business's real past rather than the cutover date
(`MOVE-007`). Every path also carries the live billing state that decides each
customer's next invoice (`MOVE-008`), and names one collector for every invoice
still open at cutover (`MOVE-009`), so adopting a subscription never changes
what a customer is charged next and never drops or doubles an open balance.
Metered usage has one entry point for the whole migration and each event bills
in exactly one system (`MOVE-010`), which is the usage the `NEC-16` shadow
comparison and the `MOVE-008` parity check read; cash a customer has already
sent and the virtual account number they pay into cross with them (`MOVE-008`,
`PAY-007`); and the invoice number series continues unbroken (`MOVE-011`).

- **MOVE-001 — Item-price billing source move-in.** Customers, plans, item prices, addons, coupons, subscriptions, invoices, credit notes and unbilled charges move in from the item-price source biller's API with the `NEC-16` preview, journal, undo, shadow comparison and cutover rules. Live state (coupons with remaining duration, promotional credits and the customer's credits, unbilled charges, scheduled changes and paused subscriptions) crosses under `MOVE-008`, and invoices open at cutover are collected once under `MOVE-009`. **Acceptance evidence:** Import from a the item-price source biller test site, shadow-rate a month and compare with the item-price source biller's invoices line by line, then adopt one subscription from an unbilled period and see the item-price source biller's renewal canceled and no duplicate invoice; a fixed-amount coupon with two periods left ends after two Nectar invoices, a promotional credit is drawn on the first, and a past-due the item-price source biller invoice appears in Nectar's aging and is paid once.

- **MOVE-002 — Add-on billing source move-in.** The same journey from the add-on source biller's API, including plans, add-ons, coupons, subscriptions and invoices, with live state (coupon redemptions, account credit balance, pending charges, pending subscription changes and paused subscriptions) under `MOVE-008` and open invoices under `MOVE-009`. **Acceptance evidence:** Import from a the add-on source biller sandbox, shadow-compare a month and adopt one subscription with no duplicate charge; its account credit is drawn on the first Nectar invoice and a past-due the add-on source biller invoice is paid once from Nectar's dunning link.

- **MOVE-003 — Component billing source move-in.** The same journey from the component source biller (the component source format and the contract source format), including components, price points, metered and quantity-based components and contracts, with live state (coupons, prepayments and service credits, pending one-time charges and scheduled product changes) under `MOVE-008` and open invoices under `MOVE-009`. **Acceptance evidence:** Import a the component source biller test site's metered and quantity components, shadow-compare a month and adopt one subscription with no duplicate charge; its prepayment is drawn on the first Nectar invoice and an open the component source biller invoice is collected once.

- **MOVE-004 — Two usage-billing source move-ins.** Usage-billing customers move from the first usage source biller or the second usage source biller with plans, prices, billable metrics, commitments, credit grants and historical usage, replayed through Nectar's engine for a shadow comparison; remaining credit balances, commitment burn-down and scheduled plan changes cross under `MOVE-008`, and invoices open at cutover are collected once under `MOVE-009`. **Acceptance evidence:** Import an the first usage source biller test account's plans, credits and three months of events; replaying them reproduces the first usage source biller's invoices within the listed rounding differences, each explained; after adoption the remaining credit grant draws down on the first Nectar invoice and an open the first usage source biller invoice is collected once; repeat the import from a the second usage source biller sandbox with the same checks.

- **MOVE-005 — Payment methods move with the customer.** When the processor stays the same, Nectar reuses the existing the previous biller, Adyen or Braintree customer and payment-method references in place; when it changes, Nectar runs the processors' PCI-compliant token migration and maps the new references, so no customer re-enters a card. **Acceptance evidence:** Move in from the previous subscription biller and charge the existing test payment method with no customer action; then map a Braintree-to-the previous biller token export file and charge a migrated card.

- **MOVE-006 — Live source connection and two-sided cutover.** Instead of uploaded files, Nectar reads the previous biller account live through a restricted key, including its full subscription, invoice, payment, refund and credit-note history for `MOVE-007` and the live billing state for `MOVE-008` (coupons and their remaining duration, promotion codes, customer balances, subscription schedules, pending invoice items, paused subscriptions and customer tax IDs), keeps the shadow in sync until cutover, and at adoption cancels the previous biller subscription at the period boundary in the same step (with no proration from the previous biller and no the previous biller invoice for any period Nectar bills), so exactly one system bills each period. For a metered price billed in arrears, the last period the previous biller owns is still invoiced exactly once, by the previous biller's own closing usage invoice for the usage `MOVE-010` relayed to it; that invoice is then collected under `MOVE-009`, and Nectar bills usage from the adopted period's start. Because canceling a previous-biller subscription stops the previous biller's automatic collection of the customer's finalized invoices, adoption first assigns every invoice still open for that customer to one collector under `MOVE-009`. Open the previous biller quotes stay in the previous biller: the cutover review lists each one, a quote accepted before cutover arrives through the live sync as a shadow subscription, and new quotes come from [Platter](https://github.com/just-every/run-platter) (`CRM-002`). The cutover review also lists the previous biller's customer-email settings that would duplicate Nectar's messages (for the previous biller: successful-payment receipts and refund receipts, which the previous biller sends for PaymentIntents Nectar creates too, and finalized-invoice, upcoming-renewal, trial-ending and failed-payment emails), and the owner records which system sends each one; adoption waits for that choice. Nectar's PaymentIntents never set `receipt_email`, and where the owner keeps a previous-biller email on, Nectar switches its own matching notice off (`DUN-003`), so one payment produces one receipt and one refund produces one refund notice. **Acceptance evidence:** Connect a previous-biller test account, let it change during the shadow run, adopt a subscription and advance the test clock; the previous biller issues no further subscription invoice, Nectar issues the next one, and the customer is charged once; for a metered subscription, the previous biller's closing usage invoice bills the last the previous biller-owned period's relayed usage once and Nectar's first invoice bills none of it; the `MOVE-008`, `MOVE-009` and `MOVE-010` journeys pass on the same account; an open the previous biller quote is listed on the cutover review and, once accepted in the previous biller, appears as a shadow subscription; adoption is refused until the email choice is recorded; with Nectar chosen for receipts, one test payment produces exactly one receipt (a Nectar receipt in the Postmark sandbox) and its PaymentIntent has no `receipt_email`; with the previous biller kept for refund receipts, a refund produces no Nectar refund notice.

- **MOVE-007 — Moved-in history counts from day one.** The previous biller's subscription history (start, trial, plan and quantity changes, pauses, cancellations), invoices, credit notes, payments, refunds and disputes are kept read-only with their original references, shown on the customer record (`CUS-001`), included in exports, and feed SaaS metrics (`RPT-001`), financial reports (`RPT-002`) and opening deferred revenue and contract liabilities for revenue schedules (`REV-001`), each figure labeled with its source. Under ct’s 21 October 22:35Z ruling, ordinary customer, report and export views expose only typed financial facts and the typed subscription timeline; provider free text and arbitrary metadata never enter those projections. Exact original upload bytes remain owner-only, audited opaque attachments, never inline JSON, including for the owner. MOVE-001..004 and MOVE-006/008/010 inherit this custody and projection boundary. History never re-bills: it can never be re-rated, approved or issued. The one exception to "never charged" is an invoice still open at cutover: `MOVE-009` collects it exactly once, with its original number, amount and reference unchanged. Before full moved-in financial history ships, RPT-002 financial reports, drill-through, CSV and scheduled snapshots include it exactly once with original source labels and unchanged historical records. **Acceptance evidence:** Move in an 18-month the previous biller test account with an annual plan paid in advance four months before cutover; the customer record shows its the previous biller invoices, payments and refunds; the MRR series and billings report start 18 months back and equal the previous biller objects; opening deferred revenue for the annual plan equals eight months of its fee and recognizes monthly after cutover; no moved-in invoice can be approved or issued, and no paid or voided moved-in invoice can be charged, while an open one is collected once under `MOVE-009`. Before full moved-in financial history ships, RPT-002 financial reports, drill-through, CSV and scheduled snapshots include it exactly once with original source labels and unchanged historical records.

- **MOVE-008 — Live billing state carries across cutover.** Whatever decides a customer's next invoices in the previous biller crosses with the subscription and keeps working in Nectar after adoption, through the live connection (`MOVE-006`), the uploaded capture (`NEC-16`, whose manifest gains these objects) and every other move-in path: percentage and fixed-amount coupons with their remaining duration (once, N more periods or forever) as approved discounts (`CAT-005`); redeemed promotion codes with their redemption counts; the customer's invoice credit balance, positive or negative, on the customer balance ledger (`INV-006`); the customer's unapplied cash balance from bank transfers (the previous biller's customer cash balance), which stays in the merchant's processor account and is applied to the customer's first Nectar invoice and to any invoice taken over under `MOVE-009` by the `PAY-007` matching rules; the customer's existing virtual bank account number and funding instructions, which Nectar keeps and shows on every invoice it issues (`PAY-007`), so the customer's accounts-payable team pays the same remit-to account; future phases of subscription schedules as scheduled changes (`NEC-08`, `CAT-003`) that execute on their dates; pending invoice items as one-time charges on the next invoice (`CAT-006`); paused subscriptions with their resume date and paused-collection behavior (`SUB-003`); trial ends and cancel-at-period-end flags; and customer tax IDs and tax-exempt status (`PORT-001`, `TAX-002`). Nothing in this list is left as a note for the operator to recreate by hand. Before adoption, Nectar shows each subscription's next invoice beside the previous biller's own upcoming-invoice preview (the previous biller's invoice preview) line by line; for metered prices both sides read the same events, because usage reaches both through `MOVE-010`. A difference blocks adoption until it is fixed or the owner acknowledges a listed, explained difference. **Acceptance evidence:** Start with a previous-biller test account holding a 25%-forever coupon, a $200-off-for-3-months coupon, a redeemed promotion code, a −$500 customer balance, a customer on bank-transfer terms with a virtual bank account number and a $300 unapplied cash balance, a three-phase subscription schedule, a pending invoice item, a paused subscription with a resume date, a customer tax ID, a metered subscription with usage streamed through `MOVE-010`, and a past-due open invoice still in the previous biller's retries; move it in through `MOVE-006`, adopt every subscription and advance the test clock two cycles. Each first Nectar invoice equals what the previous biller's upcoming-invoice preview showed before cutover, the metered one to the unit; the $200 discount ends after its third invoice; the −$500 balance is drawn down on the first invoice; the bank-transfer customer's first Nectar invoice shows the same account number the previous biller showed and has the $300 applied, and the cash balance in the previous biller falls by exactly $300; the schedule's next phase switches price on its date; the pending item bills once; the paused subscription resumes on its date; the tax ID shows on the customer record and invoices; the past-due invoice follows `MOVE-009`. The same account moved in through an uploaded capture (`NEC-16`) gives the same invoices.

- **MOVE-009 — Open balances at cutover are collected exactly once.** Every invoice still open in the previous biller when a customer's last subscription there is adopted (or when the owner ends the shadow run) gets exactly one collector, recorded on the invoice and in the audit trail. By default Nectar takes it over as a receivable: it keeps the previous biller's number, amount, due date and reference, appears in aging (`NEC-12`), dunning and retries (`DUN-001`, `DUN-002`), collections (`AR-001`), the customer record (`CUS-001`) and the portal (`PORT-001`) with a hosted payment page, and is charged through the processor with an idempotency key derived from the original invoice id; Nectar first stops the previous biller's own collection on it (for the previous biller, turning off automatic advancement), and after collecting marks it paid out of band there, so both systems show it paid. Per invoice, the owner can instead leave collection with the previous biller: Nectar then resumes that biller's automatic collection where cancellation stopped it, mirrors its status through the live sync, and never charges it. Before every attempt Nectar re-reads the invoice in the previous biller and refuses to charge one that is paid, voided or uncollectible there; a payment the customer makes on the old hosted page stops Nectar's dunning at once. When a taken-over invoice is paid by bank transfer to the customer's virtual account, Nectar applies the cash-balance funds under `PAY-007` by paying the original the previous biller invoice from the customer's cash balance (not out of band), so the funds leave the cash balance and are never left for the previous biller to return. Under ct’s 21 October 22:35Z ruling, the first the previous biller slice uses a fresh-factor owner confirmation bound to the exact account, source invoice, customer, default payment method, USD amount and source revision; it disables automatic advancement and rereads the source immediately before one native payment attempt. A durable unique attempt and source-derived idempotency key prevent retries; uncertain results reconcile read-only. Even a proven captured charge requires a separate owner confirmation before the original is marked paid out of band. No automatic charge, retry, mirror or outbound mail ships in this slice. MOVE-001..004/006/008/010 and PAY-003/004 inherit these collection obligations before their doors ship. **Acceptance evidence:** On a previous-biller test account with one past-due invoice in the previous biller's retries and one open "send invoice" invoice, adopt the customer's subscription. The past-due invoice appears in Nectar's aging and dunning with its the previous biller number, the previous biller makes no further attempt on it, and the customer pays it once from Nectar's dunning link, after which the previous biller shows it paid out of band; the second invoice is left with the previous biller, the previous biller's collection resumes, the customer pays it on the previous biller's hosted page, and Nectar mirrors it as paid without charging; replaying the adoption, the dunning step and every webhook never creates a second charge; a third, taken-over "send invoice" invoice is paid by a simulated bank transfer whose reference carries its the previous biller number, and the previous biller shows it paid from the cash balance with the balance back at zero; the same rule holds for an open invoice in each of `MOVE-001` to `MOVE-004`.

- **MOVE-010 — Usage reaches exactly one biller through the shadow run and adoption.** From the first day of the shadow run, the merchant's app sends every usage event once, to Nectar only (the API, the SDKs `DEV-003`, batch files or `USE-003` loads), and changes nothing per customer for the rest of the migration. For a previous-biller move-in Nectar also accepts the request body of the previous biller's `POST /v1/billing/meter_events` (`event_name`, `payload` with `stripe_customer_id` and `value`, `identifier`, `timestamp`) at its own endpoint, so switching the app's usage call is a change of base URL and key. Which system bills an event is decided by the subscription that rates its meter and by the period that contains the event's timestamp, and is recorded on the event: (a) while the subscription is in shadow, Nectar records the event, rates it into the shadow draft (`NEC-16`) and relays it to the previous biller (for the previous biller, a meter event for the customer's the previous biller customer with the Nectar event id as the previous biller's `identifier`), acknowledging it durably first and retrying the relay until the biller accepts it, so the previous biller bills it; (b) from the adopted period's start, Nectar bills that customer's events itself and relays none timestamped in an adopted period, while events timestamped in the last period the previous biller owns keep relaying until that biller's closing invoice for the period is finalized (`MOVE-006`); (c) an event that arrives after the previous biller has finalized the invoice for its period is not relayed, because that biller can no longer bill it; Nectar bills it once as a late-usage line on the customer's next Nectar invoice, naming its period and event id (`NEC-07`), and lists it on the cutover review while the customer is still in shadow. A relay the previous biller rejects is a blocking exception on the cutover review. Every day Nectar compares what it relayed with the previous biller's own aggregates (for the previous biller, `meter_event_summaries` per customer and meter, read only for days that ended at least 24 hours earlier because the previous biller's summaries are eventually consistent) as a source control total (`USE-007`); a difference blocks adoption of that customer until it is replayed or acknowledged. Adopting a metered subscription is refused until Nectar has received that customer's usage for one whole shadow period. The same relay runs to each other move-in source's usage API (the item-price source biller usages, the add-on source biller usage records, the component source biller usages, the first usage source biller event ingestion and the second usage source biller usage ingestion) under `MOVE-001` to `MOVE-004`. **Acceptance evidence:** On a previous-biller test account with a metered price on customers A and B, point the test app's usage stream at Nectar's the previous biller-format endpoint and run the shadow for one period; the shadow comparison's usage lines equal the previous biller's invoice for that period to the unit, and the daily `meter_event_summaries` check shows no difference. Adopt A at the next period boundary while B stays in shadow, and stream usage for another period without changing the app: A's first Nectar invoice bills every event in that period exactly once and the previous biller bills A no usage for it; the previous biller's closing invoice for A's last the previous biller-owned period bills that period's usage once; B's the previous biller invoice still carries all of B's usage; an event for A's last the previous biller-owned period sent after the previous biller finalized it appears once as a late-usage line on A's next Nectar invoice and not in the previous biller; replaying the whole stream changes neither system's invoices; repeat the relay and the adoption split against an the first usage source biller test account under `MOVE-004`.

- **MOVE-011 — Invoice numbering continues from the previous biller.** At cutover the owner chooses, per entity (`SET-001`), to continue the previous biller's invoice numbering or to start a new series. Continuing reads the previous biller's prefix, last issued number and number format (for the previous biller, the account-level prefix and next sequence, or each customer's own prefix and next sequence when the account numbers invoices per customer), and Nectar's first issued invoice takes the next number in the same format, with no gap and no reuse; credit notes continue the previous biller's credit-note numbering the same way. Nectar refuses to issue any number a moved-in invoice already carries. Moved-in invoices (`MOVE-007`) and Nectar's invoices appear in one numbered register the accountant can export, with a gap report listing any number missing from each series. **Acceptance evidence:** Move in a previous-biller test account using account-level numbering whose last finalized invoice is `ACME-0042`; Nectar's first two issued invoices are `ACME-0043` and `ACME-0044`; a second test account using customer-level numbering continues each customer's own sequence; an attempt to issue a number a moved-in invoice already carries is refused; the exported register lists the previous biller's and Nectar's invoices as one series and its gap report is empty; an owner who starts a new series instead gets that prefix from 1 with the register showing both series.

### Roles, security and governance

- **GOV-001 — Billing roles.** Beyond owner, finance operator and accountant (`NEC-15`), roles cover collections, sales (read, quotes and draft subscriptions), support (find and read a customer's whole record through `CUS-001` and issue credits up to a set limit) and developer (credentials, webhooks and test mode), and the owner can define custom roles from capabilities. Support members can add CUS-002 append-only, audited notes to the records they can access, with permitted active-member mentions and customer and export projection, under the same note custody and notification rules. Future custom-role recipient checks inherit INT-003: alerts require the member's current record-read and relevant action capabilities, never a role name alone. Future custom-role metadata checks inherit DEV-005 underlying-record read and write visibility; the general read capability never widens a scoped role to unrelated records. Before support or custom roles ship, inherit AGENT-007 cited billing answers under each underlying record capability: support and custom readers reach only permitted customer and invoice sources, removed authority applies on the next request, and credit suggestions require proposal capability without granting approval. Exact semantics: capabilities are named record reads (customers, catalog, subscriptions, invoices, payments, reports) and actions (records, usage, approve, receivables, export, propose, notes, draft, bounded credits, credentials, settings); the full read held by owner, finance, accountant and developer covers every family plus the remaining operator records (usage, bill runs, proposals, policies, move-in, privacy and audit). Collections holds customer, invoice and payment reads, receivables (recording and allocating payments, reminders, transfer cadences and follow-up tasks) and notes. Sales holds customer, catalog and subscription reads and draft: it prepares plan changes, amendments and executed-order setups (`AGENT-006`), each a priced preview that waits for a different approver, and those previews are its quotes until a quote record ships. Support holds the `CUS-001` record reads (customers, subscriptions, invoices, payments), notes and credits up to the support credit limit: one direct credit note at or below the limit, never a saved request, refused above it; the limit is part of the `GOV-002` credit policy, zero until the owner prepares a change and a different approver applies it. Developer holds full read and credentials (issue, revoke, repin) and no financial action. A custom role combines only record reads, export, notes, receivables, draft, bounded credits and propose: approvals stay with owners and finance (`GOV-002`), and settings and access stay with the owner (`NEC-15`), credentials with the owner and developer. Export downloads only what the role can read; a customer record includes its own ledger summary; invoice-line evidence opens with invoice or report reads, and a report reader drills each figure to its source invoice's figures; pages show only links the member can open; scheduled report emails (`RPT-002`) and `INT-003` alerts go only to members whose current capabilities read and act on the record. A note mention (`CUS-002`) names only an active member who can read the noted record, rechecked before its email. A member's role and a custom role's capabilities are read on every request, so a change applies to the next request without signing out. Before `DEV-001` webhooks and `DEV-004` test mode ship, the developer role administers them with no financial execution; before `AR-003` disputes, `INV-005` refunds and voids, `INV-006` balances, `PAY-002`/`PORT-004` payment methods, `MOVE-006` quotes or any other new record kind or door ships, it names the record-family capability that reads it and joins the `GOV-001` crawl. **Acceptance evidence:** Sign in as each role and crawl every action and door as `NEC-15` does; each role reaches exactly its capabilities, and a support agent's $500 credit succeeds while a $600 credit is refused. The owner defines a custom "Billing analyst" role with only read customers, read reports and export: crawling as a member with that role reaches exactly those capabilities in every door, and removing the export capability from the role takes effect on that member's next request without signing out. A support member adds a note to a payment mentioning a finance lead; one permitted email names the payment, the note appears on the customer and its export, editing is refused and a follow-up is retained. A custom role with no approval and receivables authority receives no INT-003 action alert even if opted in; removing required authority takes effect before the next send. A custom role reads and writes metadata only on the records its capabilities allow, and removed authority takes effect on its next metadata request. Before support or custom roles ship, inherit AGENT-007 cited billing answers under each underlying record capability: support and custom readers reach only permitted customer and invoice sources, removed authority applies on the next request, and credit suggestions require proposal capability without granting approval.

- **GOV-002 — Approval policies and separation of duties.** The owner sets amount limits and two-person rules: credits, refunds and write-offs above a threshold, price changes and policy changes need a second approver who did not prepare them. For policy changes, the owner prepares the exact values and a different active owner or finance member with approval capability confirms them. When there is one owner and no other active owner or finance approver, that owner may apply the saved change after an explicit second confirmation; policy history and audit label this **single-approver**. Preparation never changes the active policy, and approval refuses if the underlying policy changed. A first catalog price (v1) is setup, not a price change. Every v2+ catalog revision is a saved request whose exact price terms require a different authorized approver, or the same explicit single-approver confirmation when no other active approver exists. Completion is measured across the capabilities that exist: current credit-note, price-migration, contract-price-override, scheduled-price-switch, catalog-revision and policy-change doors must all conform. Refunds in `INV-005` and `INV-006`, cash-balance returns in `PAY-007`, write-offs in `AR-004`, and every future capability, provider, record kind or door inherit the amount-limit and separate-approver obligation before shipping; their own clauses and acceptance journeys carry it. This completion rule does not certify an unbuilt refund or write-off capability. **Acceptance evidence:** Set a $1,000 two-person limit; a $1,500 credit prepared by one operator cannot be approved by the same person and issues after a second approver; a $900 credit needs one.

- **GOV-003 — Single sign-on and provisioning.** Members sign in through SAML or OIDC (Okta, Microsoft Entra ID, Google Workspace, JumpCloud or Auth), are provisioned and removed by SCIM, and the identity provider’s multi-factor result satisfies GOV-007 under the requirements below. **Default APPROVED WITH RIDERS by ct, 26 October 2026:** an owner with the required fresh factor explicitly authorizes the connection. SCIM creates new non-owner accounts only, binds immutable provider user IDs, uses explicit owner-authorized preset-role mappings and refuses existing-account takeover or identity reassignment; email matching does not establish identity ownership. Provider roles and groups do not independently grant Nectar authority. Existing-member linking, owner provisioning, custom-role mappings and broader administrator provisioning remain named Gaps where unsupported, not cuts to the target. A later linking or privileged provisioning door must preserve existing attribution, prove identity control, refuse conflicting bindings and satisfy GOV-001 authority, GOV-007 freshness and audited owner consent before shipping. Managed members use their provider rather than email links, without bypassing provider removal or required MFA. Only signed evidence identifying actual MFA methods or recognized MFA classes satisfies GOV-007, dated by the provider authentication time and subject to its existing freshness requirements. A signature alone, password-only context, generic authentication success, unsupported MFA classes and missing, invalid or stale required evidence do not satisfy GOV-007; assertion receipt does not refresh authentication time. The 26 October payment-setup requirement for local TOTP or passkey remains unchanged. Connection changes rotate the provisioning credential, retain only its hash and end enterprise sessions. Deprovisioning immediately revokes access and pending sign-ins and ends sessions within one minute; reactivation does not revive old sessions. Connection configuration, SCIM bindings and pending sign-ins remain installation-bound and excluded from archives; a restored installation needs fresh owner authorization and does not silently reactivate enterprise access. Portable billing evidence and audit history retain their existing obligations. Every future identity or provisioning door inherits GOV-001 authority, GOV-007 freshness, audited consent and immediate deprovisioning before shipping. SAML, OIDC, SCIM and every named provider remain in the full target; unsupported behavior and absent live interoperability evidence remain named Gaps. **Acceptance evidence:** Configure an Okta developer tenant; a SCIM-created user signs in by SAML with the mapped role, and deprovisioning ends their sessions within a minute; with GOV-007 required, an assertion without a multi-factor authentication context is refused.

- **GOV-007 — Required multi-factor sign-in.** Without any single sign-on, the owner can require a second factor for the whole installation or for chosen roles (by default every role that can refund, credit, write off, issue invoices, change prices, manage access, connect or rotate processor, tax, accounting or mail credentials, or run a move-in cutover; today that is Owner, Finance, Support and Developer, with a custom role holding bounded credits following Support; Accountant, Collections, Sales and Custom only when chosen). Members enroll an authenticator app (TOTP: RFC 6238, SHA-1, six digits, 30-second steps, a code accepted one step either side of the installation clock and each step at most once) or a passkey (WebAuthn, ES256 or RS256 keys; any attestation format is accepted and Nectar never claims to have checked the authenticator's maker) and receive ten one-time recovery codes, shown once and kept only as SHA-256 hashes. Authenticator-app secrets are never encrypted with the session secret: Base at Nectar's pin has no at-rest sealing door, so they are sealed (AES-256-GCM under a key derived by HKDF-SHA-256, bound to the factor and member) with a dedicated installation secret, `MFA_KEY`, that setup generates and deploy keeps as a secret. Archives carry only the sealed values, readable only under that key; per-session checks and passkey challenges never enter an archive; a copy restored without the key (or under another one) puts each affected member back at enrollment with the reason shown, and authenticator-app setup is refused until a key is present. A member of a role that requires it cannot reach any page, form, API call or download until a factor is enrolled and presented in the current session (pages and downloads redirect to Sign-in security, form posts redirect there with the reason, JSON answers 403 `mfa_enrollment_required` or `mfa_required`); while held they can only enroll and present their own factor, and adding a factor beside a working one needs the current session's check. Refunds, write-offs, credits above the support limit, credential changes, access changes and cutovers ask for the factor again when the last check is older than 15 minutes (a check exactly 15 minutes old still counts), measured on the installation clock. Today that is every credit note above the owner-set support credit limit however it is issued (the limit is zero until set, so by default every credit), preparing or applying a change to that limit (`GOV-001`), giving or ending access, changing the requirement, resetting a member's factor, removing one's own factor, issuing, revoking or repinning credentials, and adopting a moved-in subscription (the cutover); refunds and voids (`INV-005`, `PAY-004`), write-offs (`AR-004`), processor, tax, accounting and mail credentials (`GOV-006`, `PAY-001`, `TAX-001`, `BOOK-001`, `INV-002`) and the live cutover (`MOVE-006`) inherit the same step-up before they ship. Five wrong codes within 15 minutes pause a member's checks for 15 minutes. Removing or resetting a member's factor ends all their sessions, and every enrollment, removal, reset, check, step-up and refused code is audited (`GOV-004`). Agent and application credentials (`NEC-14`) cannot perform these actions at all. **Acceptance evidence:** The owner turns on "require multi-factor" for finance operators; a finance operator signed in by email link is held at enrollment and every door (page, form post, JSON API, download) refuses them until they enroll a TOTP factor and present a code; a refund approval 20 minutes later asks for a fresh code and is refused with a wrong one; the owner then requires it installation-wide and an accountant is held the same way; enrolling a passkey works in a WebAuthn virtual authenticator; resetting the operator's factor ends their open sessions at once; the audit trail lists each step. A copy without `MFA_KEY` holds members at enrollment with the reason shown, and the same archive restored under the original key opens the sealed secret again.

- **GOV-004 — Durable audit trail.** Every write records the actor (person, credential or automated policy), time, action, subject and detail in the same atomic batch as the change; the owner and accountant read the trail, it travels in `rer export`, and it is never edited. **Acceptance evidence:** Perform each billing action through the API and forms, read `/app/audit` and the issued invoice's audit events, and find `nc_audit` complete in the exported archive.

- **GOV-005 — Personal-data erasure with financial retention.** A request is verified before anything is erased. Owner or finance records it; Nectar sends a single-use confirmation link to the billing email on file, never an address supplied as a claimed sender. Only its SHA-256 hash is stored; it expires at seven elapsed days. GET/HEAD only show the confirmation; an exact-origin POST consumes the link. A changed customer revision/email invalidates it. Provider acceptance is labelled accepted, never delivered or verified. Only the owner approves a verified request, with a separate explicit confirmation; finance, accountants and agent credentials never approve. When the billing mailbox is unreachable or disputed, only the owner may verify by another method, recording a reason and evidence file. The owner can inspect that private file before approval; approval discards its bytes, retains only digest/size and the reason with personal values redacted, and states “verification file withdrawn after erasure” on the receipt (ct, 19 October 21:20Z and 23:45Z). Request, verification, approval and removal are audited. Approval anonymizes the customer and every existing customer-owned contact, note, metadata revision, subscription/contract/lifecycle, usage, certificate, proposal, reminder and frozen report/calculation copy; retained import originals, staging, source payloads and reversal before-images are erased through import custody. Audit keeps opaque identifiers/actions and redacts personal values. An exact generation/image fence refuses concurrent changes; erased records cannot accept new personal writes or revive customer links/sends. Required financial custody keeps only the legal label, identifiers, amounts, original tax facts and dates, for seven calendar years from the latest saved issue/payment date, then removes the financial documents and legal label with a removal receipt. Anniversaries clamp to the month's last valid day; the anniversary is evaluated in the business timezone. Current invoice issue snapshots its legal label; legacy invoice labels are explicitly identified as the label displayed at erasure, not a reconstructed historical identity. For moved-in documents whose issue/payment dates were never recorded, the receipt honestly identifies that missing evidence and uses approval's business-local date as a conservative seven-year anchor. Owner-approved retention is swept daily with active-owner authority checked in the removal transaction; the owner can also run the due sweep. Every receipt lists changed record kinds/fields/counts, the separate import-custody receipt, verification method/evidence disposition, retained exceptions and expiry, and subsequent removal. Current/future archives omit erased personal data; a destination or trusted later journal refuses older pre-erasure archives, while already downloaded external copies cannot be recalled. PORT-001 inherits the signed-in customer request door before its portal ships, with equivalent verification, owner approval, erasure and receipt acceptance. Every future record kind/provider inherits this obligation before shipping. **Acceptance evidence:** The named GOV-005 HTTP/form and archive journeys record an unverified former-customer request, prove that only the on-file billing link or evidenced owner decision verifies it, exercise single-use/expiry/stale/origin/role refusal, and preserve all data until owner approval. They populate contacts, notes, metadata, issued invoices/payment evidence and imported original custody; then names/emails/personal fields disappear from ordinary screens, APIs, CSV and actual archives, with only the explicit minimal financial legal-label exception. Exact totals/tax/date custody remains until expiry; early removal is refused, the daily/manual due sweep removes it once and receipts enumerate both phases. Alternate verification requires reason plus file, is audited, refuses finance/agents, and withdraws the bytes at approval. A real rer export/reset/import rejects an older archive with its later erasure journal and restores the anonymized archive without resurrecting data. PORT-001 must repeat this complete own-customer request/verification/approval/receipt journey before shipping.

- **GOV-006 — Provider secret custody.** Processor, tax, accounting, CRM and mail credentials are stored encrypted, scoped to least privilege (for example Stripe restricted keys), shown once, rotatable, excluded from exports and logs, and revoked on disconnect; agent credentials store only their hash. **Acceptance evidence:** Connect Stripe, Avalara and QuickBooks, export the installation and search logs, the archive and the database for the planted secrets; none appears in clear, and rotating each keeps billing working.

#### GOV-008 — Customer financial visibility and erasure privacy

*Tier:* Core · *From:* new

**Requirement.** Customer pages, lists and views show financial information only within the member's record entitlements. Customer-read authority alone opens the customer page without exposing invoice or payment information. Erased customers disclose no personal identifiers on screens or in ledgers, while authorized members can still read the retained invoice facts.

**Acceptance.** Through customer pages, lists and views:
1. Invoice numbers, issue and due dates and balances are visible only to members entitled to `read.invoices`.
2. Payment references additionally require `read.payments`; invoice-read authority alone never reveals them.
3. Without the required entitlements, the corresponding section is absent with no count or existence hint. A member entitled to `read.customers` can still open the customer page; a Sales member without invoice or payment entitlements sees no ledger for either an ordinary or an erased customer.
4. For an erased customer, every personal identifier is gone from the screen and ledger. Retained invoice numbers and totals are visible only to members entitled to `read.invoices`, with payment references still subject to the additional payment entitlement.
5. Authorized reads expose only the permitted fields, and refused access changes no customer, invoice, payment or ledger record.

### Mobile and operations

- **MOB-001 — Every operator screen works on a phone.** Every main operator screen (home, customers, subscriptions, catalog, usage, bill runs, invoices, receivables, proposals, move-in, exports, settings, access and audit) renders at 390 pixels wide with no sideways scroll, and work can be done there. Customer-facing pages are `MOB-003`. **Acceptance evidence:** `tests/nectar/journey.mjs`, after a full billing cycle at 1440 pixels, opens every main screen at 390 × 844 and fails if any scrolls sideways or lacks its heading, then records a payment through the receivables form at that width.

- **MOB-003 — Customer-facing pages and emails work on a phone.** Everything a paying customer opens, usually from an emailed link on a phone, completes at 390 pixels wide with no sideways scroll: the hosted invoice page and PDF download (`INV-003`, `INV-007`), hosted checkout (`PAY-002`), payment links (`PAY-006`), the payment-update and authentication pages reached from dunning and notice emails (`DUN-002`, `DUN-003`, `PAY-005`), every customer-portal screen (`PORT-001` to `PORT-006`), and the invoice, receipt, dunning and notice emails themselves (single column, tappable links and buttons at least 44 pixels high). **Acceptance evidence:** In a 390 × 844 touch browser against Stripe test mode, open an issued invoice's emailed link and pay it with a test card, open another and pay by test ACH; complete a checkout from a payment link; open a dunning email's update link and replace a failing card, which pays the invoice; in the portal, change plan with its proration preview and download a receipt. Every step completes, every page fails the test if `scrollWidth` exceeds the viewport, and each delivered email's HTML rendered at 390 pixels has no sideways scroll and a tappable primary button. Before it ships it inherits PORT-006: every customer-facing string it adds lives in the translation files (`src/nectar/locales/<tag>.json`), follows the customer's language with amounts and dates in that locale and the same figures as English, and is covered by the missing-string check.

- **MOB-002 — Nectar for iOS and Android.** Native iOS and Android apps give owners and finance leads revenue and AR at a glance, customer and invoice lookup, push notifications for failed payments, disputes and approvals waiting, and approval of bill runs, credits and proposals with the same rules as the web. **Acceptance evidence:** On iOS and Android test devices, receive a push for a failed payment and an exception draft, open each, approve the draft (refused for a role without approval) and see the audit name the person and device; the app's home glance shows MRR, this month's billings and collections, and AR by aging bucket, each equal to the web reports (`RPT-001`, `RPT-002`) for the same moment, and a customer looked up by invoice number opens the same record as `CUS-001`.

- **OPS-001 — Measured capacity and unattended jobs.** Scheduled jobs (invoice runs, charges, retries, notices, syncs, revenue schedules) run idempotently, resume after restarts and report failures; Nectar publishes measured capacity of at least 10,000 active subscriptions with a 10,000-invoice bill run completed in under 15 minutes. **Acceptance evidence:** Seed 10,000 subscriptions, run a billing day with the Worker restarted mid-run, and see every invoice issued and charged exactly once within 15 minutes, with the timing recorded in `seed.json` limits.

## Push further with agents

Agents serve the whole billing job beyond today's billing and collections
agents: they reconcile across systems, pursue each problem to resolution and
prepare every customer-facing change, while people authorize anything that
changes money, terms or access. Agents act through scoped credentials
(`NEC-14`); every finding cites immutable evidence and every proposal shows its
computed effect before approval.

- **AGENT-001 — Revenue assurance detectors and governed case closure.** An agent compares signed terms (`CRM-002`), raw usage and its source control totals, rating output, entitlements, issued invoices and settled payments for every customer. It opens an evidenced case for each mismatch, including under-billing, over-billing, access without payment, payment without access, a commitment not trued up and a credit never applied; assigns an owner; links the proposed fix and its human-approved execution through the ordinary governed correction doors; and re-checks until the records agree. Finance approves every adjustment; raw events and signed terms remain immutable. Full-read members may read; full-read proposers may scan and recheck; an active owner or finance member owns each case; only human approvers may reassign or confirm exact agreement, never waive a mismatch. Acceptance of a case-linked proposal rechecks the original proposer and assignee against their current authority. Proposal approval alone never closes a case; closure requires exact current-basis human confirmation and a successful recheck, and a later regression reopens it. Approved erasure deletes operational investigations, never financial facts under retention. The agent gains no automatic financial or outbound authority. AGENT-010 carries scheduled execution of these same comparisons and disputed-item collection pauses; the complete continuous-assurance promise requires both clauses. AGENT-009 separately retains agent-assisted resolution beyond proposals. **Acceptance evidence:** Plant an unbilled ramp step, an over-billed seat, a feature left on after cancellation, a missing true-up and an unapplied credit. The agent opens five evidenced cases with active owners, links each governed fix, changes nothing without the required human approval, rechecks after each executed fix and closes only after exact agreement. Rejected, stale or unauthorized proposals make no adjustment or outbound action; proposal approval without corrected records cannot close a case.

- **AGENT-002 — Simulate the fix and explain it to the customer.** For each proposed correction, the agent simulates the financial effect (invoice deltas, tax, revenue schedule and MRR changes) and the customer effect (what they will see on their next invoice and in the portal), and drafts a customer-ready explanation citing the lines and terms involved. Human control: an authorized person reviews the before and after preview and the wording; the change and the message execute together only after approval. Current-capability completion (ct, 19 October 14:11Z): all three existing correction kinds—issued-invoice credits, contract amendments and unbilled-usage corrections—show engine subtotal/tax/total before and after, a frozen cited customer explanation and current-record next-invoice consequences. Invoice credits retain original issued subtotal/tax/total and reduce only the unpaid amount owed; no tax reversal or cash refund is invented. The agent submits the invoice-credit interpretation and exact quoted saved invoice-line and evidence references; Nectar validates the source ownership and quotes and recomputes the original invoice totals and exact credit and balance effect. Amendment and unbilled-usage explanations are generated from real before and after engine calculations, including metric source properties, exact input fingerprints and cited terms and events; they never forecast unrecorded usage. The fixed recipient is the customer's current billing email, bound with the exact reviewed wording, current balance, terms, tax, usage and approval policy; changed inputs make the proposal stale. Preparing or rejecting changes no financial records and queues no customer message. A human approval commits the adjustment, proposal decision and frozen mail reservation atomically; a GOV-002 above-limit credit first needs human preparation of that exact proposal and another authorized approver. Proposal-bound requests cannot bypass the proposal via standalone credit issue/approval. Agents never prepare that governance request or approve. One provider attempt follows the committed reservation, with stable delivery identity and visible accepted/rejected-or-failed/suppressed/uncertain custody; acceptance is never called mailbox delivery, and claimed and uncertain sends are not automatically retried. A database transaction does not promise atomic external mail delivery. Before new revenue, normalized MRR, customer-portal or credit-tax capabilities ship, REV-001, RPT-001, PORT-001/PORT-002 and INV-005 respectively inherit their exact correction simulations, cited explanations, source-bound human approval and governed execution and message parity. New correction kinds inherit this complete obligation before shipping. **Acceptance evidence:** For a planted over-billing, the agent proposes a credit note with its tax and revenue effect and a cited email; approval issues the credit and sends the email once; a rejection changes nothing. The named AGENT-002 journeys run the planted overbilling through ordinary public prepare/approve/credit/mail doors and separately exercise ordinary amendments and unbilled corrections, including exact tax, cited sources, current next-invoice parity, human rejection, agent and read-only refusals, stale and duplicate refusal, GOV-002 threshold and independent approval and unchanged issued evidence. Future schedule/MRR/portal/attributed-tax acceptance is retained by the named receiving clauses.

- **AGENT-003 — Collections that resolve the cause of nonpayment.** Using delivery events, bounces, AP-portal status, correspondence, disputes, promises and bank remittances, the agent distinguishes an undelivered invoice, a missing PO, a wrong contact, a failed payment method and a genuine dispute, requests the missing item from the right person, and verifies resolution. Human control: the business sets tone, channels, cadence and escalation limits; people approve concessions, write-offs and contested notices; the agent stops chasing a paid or disputed balance. **Acceptance evidence:** Plant a bounced invoice, a missing PO and an expired card on three overdue accounts; the agent identifies each cause, sends the right request within its limits, and each account pays after the fix; it never contacts a disputed account.

- **AGENT-004 — Price-change simulation with customer explanations.** Before a pricing change, the agent replays retained usage against proposed prices, commitments and packaging, shows invoice-level changes per customer, the revenue and margin effect and the customers most affected, and drafts a cited explanation per cohort. Human control: commercial owners approve cohorts, effective dates and messaging (`CAT-007`); the agent cannot rewrite signed terms or migrate a subscription silently.  Current monthly capability replays six consecutive issued service periods from their immutable saved inputs, replacing an exact source catalog price with an exact active target version across the selected service intervals and replaying retained target-source usage (including billed events and metric predecessor context). Existing signed commitments, included quantities, discounts, lifecycle, fees and tax remain the recorded basis; price-specific terms keep their original bindings. Replayed prior periods feed later minimum true-ups. Each invoice shows before and after lines, subtotal, tax, total, exact source events and fingerprints; cohort totals and the largest absolute total changes cite their source invoices. Margins appear only with an explicit nonnegative integer-cent cost assumption per subscription period and are labelled estimates, never actual costs. Preparation changes no subscription. Approval recomputes the entire history and upcoming input basis, refuses stale/issued/overlapping-source changes, and atomically schedules only the selected cohort at the saved business-local date. A member with records authority or a prepare credential prepares; a different active approval member approves a member-prepared migration, and credentials never approve. Rejection and duplicate and stale refusals change no billing records. Reviewed customer notices retain recipient, wording, date, comparison amounts and invoice citations in the approved proposal, honestly labelled prepared, never sent. Under ct's 19 October ruling, INV-002 carries actual AGENT-004 notice scheduling and delivery and provider custody before that capability ships; CAT-001 carries equivalent history replays and previews for future intervals and contract terms before they ship. **Acceptance evidence:** Simulate moving from per-seat to usage pricing over six months of history; the per-customer deltas equal a re-rating through the engine, and approving one cohort schedules exactly those changes with their notices.

- **AGENT-005 — Migration followed through to the first settled cycle.** During a move-in (`NEC-16`, `MOVE-001` to `MOVE-006`), the agent compares the old and new billers' customers, periods, invoices, payment methods and webhook events through the shadow run and cutover, investigates each difference, and verifies exactly one issued invoice and one collection per intended period after cutover. Human control: the owner authorizes each cutover after reviewing discrepancies; a rollback plan and processor references are kept; a shadow subscription never charges. **Acceptance evidence:** Move in a test account with the previous biller with three planted differences; the agent explains each, the owner adopts, and after the first cycle the agent's report shows one invoice and one charge per subscription, matching both processors.

- **AGENT-006 — Contract-to-billing setup.** From an executed order form or amendment, the external prepare agent supplies the original file (when supplied), immutable executed text, byte/text digests, buyer-recorded execution reference and a structured interpretation quoting the source for every customer, catalog price, service item/ramp, commitment, included usage, credit, discount or override. This is labelled agent-read: Nectar does not claim native extraction or signature/signer verification. Preparation stores a proposal only. The source remains immutable and privately downloadable through ordinary read authority. This installation has no private blob store; optional originals above 256,000 bytes are clearly refused with the exact-text-only path retained and the bound displayed. Existing customer/catalog identities can be reused; a new subscription or an amendment's named item timeline is installed, preserving unrelated items, signed terms and issued history. Every monthly period through the recorded finite end date is rated, including the first invoice; only evergreen terms stop at 36 periods, labelled "auto-renewal periods beyond 36 months not previewed". Recorded usage and explicitly labelled additional scenarios are separate; unknown future usage is excluded, never presented as a forecast. The preview retains exact engine inputs, fingerprints, source quotes, period and annual totals, and sequential commitment true-ups. Unresolved ambiguity blocks approval. A records-authorized person resolves ambiguity in a new proposal retaining the exact source and original issue; the original proposal is unchanged. A different active approval member approves a member-prepared setup, a human approves agent-prepared setup, and an agent never approves. Approval recomputes the basis, refuses stale/issued/ownership conflicts, and atomically installs customer, catalog, subscription, approved exceptions and signed terms so ordinary billing needs no manual setup edits; invoice approval remains separate. Rejection and refused/duplicate approval leave billing records unchanged. Under ct's 19 October 12:32Z ruling, this completes today's monthly in-arrears, one-entity/default-payment-term capabilities: unsupported entity, interval, PO or nondefault payment terms stay blocking ambiguities. Before they ship, SET-001 inherits entity/processor/ledger routing, CAT-001 inherits interval, advance and renewal term interpretation/full-term preview parity, and INV-004 inherits quoted PO/custom-field/per-customer-payment-term enforcement, all through this same governed setup. **Acceptance evidence:** Give the agent a three-year order form with a ramp, a commitment and an uplift; its proposal quotes each clause, the term preview matches a hand calculation, and approving it starts billing with no manual edits.

- **AGENT-007 — Cited billing answers for staff and customers.** Finance, support and customers (in the portal) ask questions such as "why is this invoice higher than last month?"; the agent answers from the calculation evidence, usage and terms, citing lines and events, and never states a figure the engine did not compute. Human control: answers are read-only; any change it suggests becomes a proposal; customers only see their own records. Current-door completion (ct, 19 October 18:06Z): deterministic, no-egress answers cover arbitrary issued customer and invoice records through the operator and JSON doors for owner, finance, accountant and prepare credentials. Ten supported topics are invoice totals, comparison with an earlier invoice of the same subscription, seats, usage, source events, tax, billed adjustments, commitments, recorded balances and saved terms. Natural questions show their interpretation; an explicit topic resolves unclear wording, and unsupported or ambiguous questions are honestly refused. Each recorded figure names an exact source record and JSON path; comparison differences retain their original operands and grouped line contributions. Answers use immutable saved calculation inputs, prices and event snapshots rather than current plan values or predicted usage. The explicit customer context must own the invoice and comparison, otherwise 404; recognized requests naming another customer are also refused. Reading creates no proposal, financial record or message. A separate explicit Prepare credit proposal action validates the requested amount, reason and original line citation and creates only a pending ordinary AGENT-002 correction; it does not establish overbilling, issue a credit, or send a customer message. Existing approval, source-staleness, recipient and GOV-002 controls still apply. Before they ship, PORT-001 and PORT-002 inherit own-customer-only cited questions, ten-question/source-figure/refusal/proposal-only acceptance, and GOV-001 inherits support and custom-role underlying-record scope and next-request revocation checks. **Acceptance evidence:** Ask ten scripted questions as an operator and as a customer; every figure in each answer matches a cited record, a question about another customer's data is refused, and a suggested credit appears only as a proposal. The named AGENT-007 public-door journey proves all ten topics for every current reader, exact figure-source paths, independently calculated invoice and line differences, distinct-customer records, cross-context and unauthorized refusals, read-only custody and separately prepared pending credit proposals; PORT-001/PORT-002 and GOV-001 retain their future customer and support acceptance.

- **AGENT-008 — Month-end close tie-out.** At period end the agent ties issued invoices, payments, payouts, credit balances, tax commitments, the ledger sync and revenue schedules together, lists each break with its cause and proposed fix, and assembles a close packet for the accountant. Human control: finance approves fixes and closes the period (`REV-002`); the agent cannot post journals or close on its own. **Acceptance evidence:** Plant a payout missing one fee, an unsynced credit note and a tax commitment failure; the close packet lists all three with causes, approved fixes clear them, and the accountant closes the period.
- **AGENT-009 — Agent-assisted case resolution with approval beyond proposals.** Agent-assisted resolution beyond opening cases, gathering evidence and submitting proposals remains unimplemented. No automatic financial or outbound action is authorized.
- **AGENT-010 — Scheduled assurance comparisons and disputed-item collection pauses.** Nectar continuously runs AGENT-001's complete comparison scope on a schedule for every customer, retaining its source evidence, detector coverage, case ownership, governed fixes and exact recheck-to-close rules. Scheduled work is idempotent, resumes after interruption and exposes failures under OPS-001. A recorded dispute pauses collection of the disputed item through the applicable collection doors without changing issued evidence, debt or tax. AR-001's line-amount holds, DUN-001's stop-on-dispute retry rules and AGENT-003's disputed-account contact restrictions remain binding; this clause never narrows a broader existing stop. Resumption follows the existing authorized dispute-resolution and current collection-policy rules, not merely a case-status change. Scheduled detection and safety holds grant no approval, adjustment or outbound-send authority. AGENT-001 retains all detectors and linked approved fixes; AGENT-009 remains a separate obligation beyond proposals. **Acceptance evidence:** Through the real Worker and D1 public doors, initiate and recheck the five AGENT-001 mismatches on schedule, repeat ticks and interrupt/restart work, and verify one continuing case per mismatch with visible failure/recovery. Dispute an item and verify its collection is paused through the applicable existing doors, with unchanged issued financial evidence, correct treatment of undisputed amounts where collection remains permitted, and every broader existing dispute stop preserved. Resolve the dispute through the authorized door and verify only currently permitted collection resumes.


## Honest boundaries

What Nectar does not do, and how a buyer gets that job done. These are product
lines, not gaps in the target.

- **Card and bank data, acquiring and money movement.** Nectar is not a payment processor, card vault or money transmitter. Stripe, Adyen or Braintree (the merchant's own account) holds card and bank data, moves funds and pays out; processor-hosted fields keep Nectar out of card-data scope (the merchant's PCI responsibility becomes the processor's SAQ A path), and Nectar records the processor's references.
- **Merchant of record and tax filing.** The business stays the seller. Sales-tax registration and filing are done by the business or bought from its tax provider (Avalara Returns, Stripe Tax's filing partners, TaxJar AutoFile, Anrok); Nectar supplies the calculations and reports. Sellers wanting a merchant of record use one (Paddle, Stripe's managed payments) alongside Nectar's records.
- **The general ledger and audit opinions.** Nectar produces revenue schedules and journal entries; the ledger is Pantry, QuickBooks Online, Xero, NetSuite or Sage Intacct, and the business's accountant or auditor signs off ASC 606 policies and statements.
- **Sales, proposals, signatures and contract management.** CRM is Orbit, Salesforce or HubSpot; proposals and quotes are Platter or PandaDoc; signatures are Inkwell or Docusign; contract lifecycle is Locket. Nectar reads their outputs (`CRM-001`, `CRM-002`).
- **Debt collection and legal action.** Nectar sends reminders the business authorizes; third-party collection agencies, legal demands and court action stay with the business and its counsel. Delivery evidence and a reminder do not prove collection.
- **Revenue financing and payments acceptance for storefronts.** Financing against recurring revenue (Capchase, Pipe) is a partner choice; one-off ecommerce checkout for physical goods is [Stall](https://github.com/just-every/run-stall)'s job.
- **Jurisdiction.** The US is the first market: USD by default, US sales tax, ACH, US state renewal-law notices and US business norms. Multi-currency billing (`CAT-008`) serves US sellers with foreign customers; non-US VAT/GST registration, e-invoicing mandates and local payment schemes are reached through the processor and tax provider and are not claimed until tested.
- **Capacity.** Nectar claims only the capacity it has measured (`USE-001`, `OPS-001`); very high-volume raw event warehousing beyond that stays in the buyer's own storage, loaded through `USE-003`.

## Decided defaults

- **Name:** Nectar (owner-adopted 10 October 2026; `run-nectar.com` registered 14 October).
- **Scope:** the full subscription and usage billing job for one business with one or more US entities, through the merchant's own processor, tax provider and ledger.
- **Jurisdiction and currency:** US and USD first, with US sales tax through a provider; other currencies for US sellers' foreign customers.
- **Move-in order:** Stripe Billing first, then Chargebee, Recurly and Maxio, then Orb and Metronome; an existing merchant of record stays in place.
- **Build order:** the provider-free rating and invoice loop (done); shadow migration (done for Stripe files); then Stripe collection, invoice delivery, automatic runs and dunning; then the portal, tax and accounting sync; then pricing breadth, revenue recognition, metrics and the remaining move-ins; agents throughout.
- **Billing timing:** legacy monthly arrears keep their saved calculation versions. CAT-001 calendars separate service spans, invoice due dates and finite contract terms, clamp full anniversary anchors at month ends, bill fixed and seat prices in advance or arrears and meter only completed consumption intervals. An issued component is claimed once; a new co-termed add-on receives its own prorated component. A finite term ends unless a governed renewal extends it.

## Homepage claims

Every capability claim on the owner-approved homepage (`src/site/homepage/`, desk page-s1, 18 October 2026), in the order of its claims table, with the clauses that promise it (claims truth table `evidence/br-nectar/desk-built/CLAIMS.md`). A claim's status comes from its clauses in the Status table below: `done` when every clause is done, `missing` when every one is missing, otherwise `partial`. A claim marked — needs no clause (the license, the start line and the hosted demo). 76 claims: 15 done, 37 partial, 24 missing.

| # | Section | Claim | Clause(s) | Status |
| --- | --- | --- | --- | --- |
| 1 | Hero | "Nectar prices every plan and meter" | `NEC-03`, `NEC-07`, `CAT-002` | partial |
| 2 | Hero | "sends exact invoices" | `NEC-07`, `NEC-10`, `INV-001`, `INV-002` | partial |
| 3 | Hero | "collects by card and ACH through your processor" | `PAY-001`, `PAY-003` | partial |
| 4 | Hero | "recovers failed payments" | `DUN-001`, `DUN-002` | partial |
| 5 | Hero | "ties out the month" | `AGENT-008`, `REV-002` | missing |
| 6 | Hero | "100% free, open source alternative to Stripe Billing, Chargebee and Recurly" | — | done |
| 7 | Hero cards | October bill run · 212 invoices · issued 6:00 am · 100% | `INV-001`, `NEC-09` | partial |
| 8 | Hero cards | Lakeview Freight · 48 seats · 1.2M API calls · $6,840.00 · Paid by card | `NEC-07`, `PAY-003` | partial |
| 9 | Hero cards | Mesa Solar · Card declined → Retried Mon Oct 5 · paid | `DUN-001` | partial |
| 10 | Hero cards | Pinecrest Dental · $2,150.00 ACH · Settled Wed Oct 7 | `PAY-003`, `PAY-004` | partial |
| 11 | Hero cards | API calls · 1.2M this month · 60% (quota) | `ENT-002`, `USE-006` | partial |
| 12 | Hero cards | QuickBooks Online · 209 payments synced · 0 errors | `BOOK-001` | missing |
| 13 | Billing day | "Nectar prepares the run the evening before" | `INV-001`, `NEC-09` | partial |
| 14 | Billing day | "Clean invoices issue on their own; anything unusual waits for you" | `INV-001`, `NEC-09` | partial |
| 15 | Billing day | Exception: "PO number required → PO 4471 added" | `INV-004` | partial |
| 16 | Billing day | Exception: "+38% vs September → 15 seats added Sep 18" | `NEC-09` | done |
| 17 | Billing day | Exception: "Sep 29 usage short 2,140 events → replayed" | `USE-007`, `USE-004` | done |
| 18 | Billing day | Plans and seats, usage, sales tax on 87 invoices, total | `NEC-07`, `TAX-001` | partial |
| 19 | Billing day | Card 131 · ACH 37 · Invoice terms 44 | `PAY-003`, `INV-004` | partial |
| 20 | Billing day | "September: 206 invoices" comparison | `NEC-09` | done |
| 21 | One invoice | "Seats, tiers and usage are rated exactly, to the cent" | `NEC-07`, `CAT-002` | partial |
| 22 | One invoice | "every invoice keeps the inputs that made it" (rule, inputs fingerprint) | `NEC-07`, `NEC-10` | done |
| 23 | One invoice | Events billed once · duplicates ignored | `NEC-05`, `USE-001` | partial |
| 24 | One invoice | Graduated API tiers (first 1,000,000 at $2.00 per 1,000, next at $1.40) | `CAT-002` | missing |
| 25 | One invoice | Seats billed Oct 1–31 in advance beside September usage | `CAT-001` | done |
| 26 | One invoice | Sales tax (Avalara) | `TAX-001` | partial |
| 27 | One invoice | Paid by card · Visa •• 8817 · 6:02 am | `PAY-003` | partial |
| 28 | One invoice | Quota card "API calls · September · 1.2M of 2M" | `ENT-002` | missing |
| 29 | Recovery | "retries each failed payment when it is most likely to clear" (retry table, attempt 2 of 8) | `DUN-001` | partial |
| 30 | Recovery | "emails a one-click update link" | `DUN-002`, `DUN-003`, `PORT-004` | partial |
| 31 | Recovery | "never retries a stolen card" | `DUN-001`, `PAY-005` | partial |
| 32 | Recovery | "Dunning stopped · receipt sent" | `DUN-002`, `DUN-003` | partial |
| 33 | Recovery | ACH pending Thu Oct 1 → settled Wed Oct 7 | `PAY-003`, `PAY-004` | partial |
| 34 | Recovery | "October: 9 failed · 9 recovered" | `DUN-004` | done |
| 35 | Collections | "The collections agent finds why an invoice is unpaid" (bounce → AP moved) | `AGENT-003`, `INV-002` | partial |
| 36 | Collections | "asks the right person for the missing piece" (approved contact, resent) | `AGENT-003`, `AR-001` | partial |
| 37 | Collections | "and checks that it lands" (opened 10:02 am) | `INV-002` | missing |
| 38 | Collections | Paid by ACH credit | `PAY-007`, `AR-002` | partial |
| 39 | Collections | Lumen Health · sent to Coupa → approved → paid | `AR-005` | missing |
| 40 | Collections | Orchard Labs · promised to pay · reminders paused | `AR-001` | done |
| 41 | Usage moment | "41,812,406 October usage events · each billed once" from API, SDK and an S3 file | `USE-001`, `USE-003`, `DEV-003`, `NEC-05` | partial |
| 42 | Usage moment | FN-2253 · API calls Oct 1–31 · Ready for Nov 1 | `INV-001` | partial |
| 43 | Portal | "Customers change plans in their portal" | `PORT-001`, `PORT-003` | missing |
| 44 | Portal | "and see the proration first" | `SUB-002`, `PORT-003`, `NEC-08` | partial |
| 45 | Portal | Pay by ACH · First Citizens •• 2210 in the portal | `PORT-004` | done |
| 46 | Portal | "Your app asks Nectar what they can use, and the answer changes in seconds" (entitlements API, 18 ms) | `ENT-001`, `DEV-002` | partial |
| 47 | Portal | Portal on the business's own domain (billing.fieldnote.io) | `PORT-005` | done |
| 48 | Revenue assurance | "An agent compares signed terms, usage, access, invoices and payments for every customer" | `AGENT-001` | done |
| 49 | Revenue assurance | "opens a case for each mismatch and drafts the fix" | `AGENT-001`, `AGENT-002` | done |
| 50 | Revenue assurance | "You approve it" (approved by Dana Brooks) | `AGENT-002`, `GOV-002`, `NEC-14` | done |
| 51 | Revenue assurance | Signed order form §3.2 quoted as the source | `CRM-002` | partial |
| 52 | Revenue assurance | Seat ramp $95 → $120 and the catch-up | `CAT-003` | done |
| 53 | Revenue assurance | Customer email drafted and sent with the fix | `AGENT-002` | done |
| 54 | Month-end | "The close agent ties invoices, payments, payouts, tax, the ledger and revenue together" | `AGENT-008` | missing |
| 55 | Month-end | "and hands your accountant one packet" · Locked | `AGENT-008`, `REV-002` | missing |
| 56 | Month-end | Stripe payouts · 6 · amounts + fees | `PAY-004` | missing |
| 57 | Month-end | QuickBooks Online · 212 invoices · 209 payments · 0 errors | `BOOK-001` | missing |
| 58 | Month-end | Sales tax · 14 states · report ready to file | `TAX-003` | missing |
| 59 | Month-end | Deferred revenue $96,000 → $88,000 | `CAT-001`, `CAT-004` | partial |
| 60 | Month-end | "1 break found … missing in QuickBooks → synced" | `AGENT-008`, `BOOK-001` | missing |
| 61 | Month-end | MRR $171,500 → $178,230 with expansion and churn | `RPT-001` | partial |
| 62 | Month-end | Open · 3 invoices · Net 60 · due Mon Nov 30 | `NEC-12`, `INV-004` | partial |
| 63 | Moving in | "Nectar reads your the previous biller account" | `NEC-16`, `MOVE-006` | partial |
| 64 | Moving in | "bills August in shadow beside it" | `NEC-16`, `MOVE-006` | partial |
| 65 | Moving in | "and takes over at the period boundary" | `NEC-16`, `MOVE-006` | partial |
| 66 | Moving in | "Cards stay where they are" · 168 payment methods reused · 0 customers asked | `MOVE-005` | missing |
| 67 | Moving in | Usage relayed to the previous biller · 0 differences | `MOVE-010` | partial |
| 68 | Moving in | 201 August invoices shadow-rated · 200 equal to the cent · 1 explained | `NEC-16` | Move in from the previous biller |
| 69 | Moving in | "the previous biller bills no September period" | `MOVE-006` | Live source connection and two-sided cutover |
| 70 | Moving in | "Numbering continues · FN-1834 → FN-1835" | `MOVE-011` | partial |
| 71 | Moving in | Terminal: `npx -y @runeditrun/rer dev just-every/run-nectar` starts Nectar | — | done |
| 72 | Moving in | "Also moves in from the item-price source biller, the add-on source biller, the component source biller, the first usage source biller and the second usage source biller" | `MOVE-001`, `MOVE-002`, `MOVE-003`, `MOVE-004` | missing |
| 73 | Closing | "100% free and open source. MIT licensed." | — | done |
| 74 | Closing | October close · Locked | `REV-002` | missing |
| 75 | Closing | December bill run · scheduled · 6:00 am | `INV-001` | partial |
| 76 | Hero | "Try the demo" opens the hosted demo | — | done |

## Status

Judged from the code and tests at commit `e2ad33fd7c001b7e1c56d09c6baf1b91e5d3f755` (27 October 2026). That prior reporting judgment remains scoped to DUN-004. DUN-003 now adds the explicitly confirmed partial notice slice and current-revision proof named in its row; this is not a new completion judgment. DUN-004 is proven by this revision's committed public-door journeys and the exact-candidate outside-Verify clock run named in its row (27 October 2026); that run prints its full candidate SHA. CT's 26 October reporting rulings and the receiving clauses' future-door duties remain binding. Other rows retain their clause-specific evidence; ACCEPTANCE discloses the pre-existing CAT-004 status mismatch.

Round updates: `GOV-001` is done under ct’s 20 October 16:55Z matrix: collections, sales, support and developer presets and owner-defined custom roles each reach exactly their capabilities across every action, JSON door and page, support credits stop at the owner-set limit (zero by default; changing it asks for a fresh factor), a custom role change applies on the member's next request, and support notes, `INT-003` alerts, `DEV-005` metadata and `AGENT-007` answers follow current record authority (`tests/nectar/billing-roles.mjs`). `GOV-007` is done under ct’s 20 October 06:20Z ruling: a required second factor (authenticator app sealed under a dedicated `MFA_KEY`, or a passkey, with one-time recovery codes) holds members at every door until presented, credits, access, credential and cutover actions ask again after 15 minutes, a reset ends every session, and a restore without the key returns members to enrollment with the reason (`tests/nectar/mfa.mjs`, `mfa-passkey.mjs`, `mfa-archive.mjs`); refunds, voids, write-offs, the support limit, provider credentials and the live cutover inherit the step-up. `DEV-002` is done: a client generated from the published OpenAPI document runs the billing cycle with every write replayed by Idempotency-Key, every list door pages by cursor, and dated versions follow each credential unless a request header names one (`tests/nectar/api-platform.mjs`). `SUB-005` is done under ct’s 19 October 16:25Z ruling, with optional saves, actual discounted invoices, once-only win-back mail, expiry and an offers report. `SUB-004` is done under ct’s 19 October 16:15Z ruling: annual notice/cancel/renew/end, exact uplifts and inherited setup/cohort/full-history term parity are asserted in named public-door journeys. `AGENT-002` is done for all three current correction kinds under ct's 19 October 14:11Z ruling; REV-001/RPT-001/PORT-001/PORT-002/INV-005 retain future-domain effects. `RPT-002` is done for current-record financial reports, matching CSVs and self-opted monthly frozen email snapshots under ct's 19 October 14:00Z ruling; future record duties remain in INV-005/PAY-004/INV-006/CAT-004/MOVE-007. `AGENT-006` is done for current executed-order setup under ct’s 19 October 12:32Z ruling; SET-001, CAT-001 and INV-004 retain future entity/interval/PO/payment-term obligations. `AGENT-004` is done for current monthly six-period pricing replays and governed cohort scheduling under ct’s 19 October ruling; INV-002 carries notice delivery and custody and CAT-001 future interval and term parity.  `USE-002` is done for native and SQL versioned grouped metrics and exact rational billing under ct’s 19 October ruling; USE-004 carries historical nonadditive correction execution. `CAT-003` is done for signed monthly and term commitment windows, included usage, dated price and quantity ramps and operator and API burn-down under ct’s 19 October ruling; PORT-002 carries customer parity. `CAT-007` is done for current catalog cohorts under ct’s 19 October ruling; CAT-001 carries future annual eligibility/renewal/grandfathering and INV-002 carries optional customer notice custody in text and acceptance. `SUB-003` is done for current in-arrears lifecycle doors under ct’s 19 October ruling; CAT-001/INV-005/INV-006/PAY-007 retain future term/advance/refund/balance obligations in text and acceptance. `DEV-005` is done for the six existing record kinds and current doors under ct’s 19 October ruling; DEV-001 and DEV-003 retain webhook and SDK parity in their own text and acceptance. `USE-006` is done for the existing operator and API live usage, approved contract-credit and same-engine invoice-preview doors under ct’s 19 October ruling; PORT-002 and CAT-004 retain portal and prepaid obligations. `CUS-002` is done for existing customer and invoice and payment notes and mentions under ct’s 19 October ruling; `GOV-001`, `AR-003` and `INT-003` explicitly inherit future role/dispute/preference obligations. `INT-003` is done for current event kinds under ct’s 19 October ruling; AR-003, PAY-004 and DEV-001 retain future-event obligations in their own text and acceptance. `RPT-003` is proven by its named report-to-invoice-to-line-to-event journey; `RPT-001` has a partial billed-recurring-revenue snapshot. `USE-007`, `CAT-002`, `TAX-002` and `CAT-006` are proven by their named public-door journeys in `tests/nectar/`. `GOV-002` is done for its existing credit-approval, price-migration-proposal, contract-price-override, scheduled-price-switch, policy-change and catalog-revision doors under ct’s 19 October completion ruling. Future refund, return and write-off clauses explicitly inherit the obligations before shipping.

AR-006 is judged from the code and public-door journeys in this candidate commit (`HEAD`); its full immutable SHA is recorded by branch Verify and the accompanying judge request. It adds no completion credit to AR-002.

GOV-008 is judged from this candidate commit (`HEAD`), whose full immutable SHA is recorded by branch Verify and the accompanying judge request. Its acceptance text and the existing GOV-005 retention policy remain unchanged. The ordinary customer and ledger projections expose no retained personal label; required legal custody remains stored under GOV-005.

OPS-001's native execution-observation work adds public-door proof without changing main's missing judgment. Capacity and completion remain unproved.

| Clauses | Done | Partial | Missing | Total |
| --- | ---: | ---: | ---: | ---: |
| Published | 16 | 0 | 0 | 16 |
| Target and push further | 46 | 41 | 29 | 116 |
| All | 62 | 41 | 29 | 132 |

| Clause | Title | Kind | Status | Evidence | Gap |
| --- | --- | --- | --- | --- | --- |
| `NEC-01` | Set up the business | published | done | `src/nectar/business.ts`; `tests/nectar/flows.mjs` — NEC-01 business, currency, timezone and declared tax |  |
| `NEC-02` | Keep customers and billing contacts | published | done | `src/nectar/customers.ts`; `tests/nectar/flows.mjs` — NEC-02 customers and billing contacts with external ids |  |
| `NEC-03` | Version the catalog | published | done | `src/nectar/catalog.ts`; `tests/nectar/flows.mjs` — NEC-03 products, immutable price versions and meters |  |
| `NEC-04` | Start subscriptions | published | done | `src/nectar/subscriptions.ts`; `tests/nectar/flows.mjs` — NEC-04 subscriptions with anchor, trial and approved exceptions; NEC-04 a subscription with an end date still holds its meter until it ends |  |
| `NEC-05` | Bring in usage | published | done | `src/nectar/usage.ts`; `tests/nectar/flows.mjs` — NEC-05 usage with stable ids and duplicate rejection |  |
| `NEC-06` | Inspect before rating | published | done | `src/nectar/usage.ts`; `tests/nectar/flows.mjs` — NEC-06 missing and late usage and exact totals before rating |  |
| `NEC-07` | Rate deterministically | published | done | `src/nectar/rating.ts`; `src/nectar/decimal.ts`; `tests/nectar/flows.mjs` — NEC-07 deterministic rating with explicit rounding |  |
| `NEC-08` | Schedule plan and quantity changes | published | done | `src/nectar/subscriptions.ts`; `tests/nectar/flows.mjs` — NEC-08 scheduled changes bill exactly as previewed |  |
| `NEC-09` | Draft a bill run and compare it | published | done | `src/nectar/billruns.ts`; `tests/nectar/flows.mjs` — NEC-09 draft bill run comparison and exceptions |  |
| `NEC-10` | Approve and finalize numbered invoices | published | done | `src/nectar/billruns.ts`; `tests/nectar/flows.mjs` — NEC-10 approval, source changes and numbered finalisation |  |
| `NEC-11` | Credit and record payments | published | done | `src/nectar/receivables.ts`; `tests/nectar/flows.mjs` — NEC-11 credit notes, payment evidence and allocations |  |
| `NEC-12` | Follow up overdue balances | published | done | `src/nectar/collections.ts`; `tests/nectar/flows.mjs` — NEC-12 ageing, reminder drafts and follow-up tasks |  |
| `NEC-13` | Leave with the data and explain entitlements | published | done | `src/nectar/exports.ts`; `tests/nectar/flows.mjs`; `tests/nectar/journey.mjs` — `tests/nectar/journey.mjs`: cycle, all main phone screens, phone payment and exact portable-row restore in named Nightly acceptance; local managed run 20261024T123231756063Z-heavy-slot-dda62111 passed. |  |
| `NEC-14` | Let an agent prepare the work | published | done | `src/nectar/proposals.ts`; `src/nectar/access.ts`; `tests/nectar/flows.mjs` — NEC-14 agent prepares, a person approves |  |
| `NEC-15` | Control access | published | done | `src/nectar/actor.ts`; `src/nectar/doors.ts`; `tests/nectar/flows.mjs` — NEC-15 roles are enforced in every handler |  |
| `NEC-16` | Move in from the previous biller | published | done | `src/nectar/movein/stripe.ts`; `tests/fixtures/stripe/manifest.json`; `tests/nectar/flows.mjs` — NEC-16 Stripe Billing move-in with dry run, journal, undo and shadow cutover |  |
| `SET-001` | Multiple billing entities | target | partial | `tests/nectar/numbering-entities.mjs` — numberingEntitiesFlow and `tests/nectar/entity-revenue.mjs` — entityRevenueFlow: independent entities/sequences, immutable issued routes and legal snapshots, stale refusal, entity/consolidated revenue and exact journal/CSV attribution. `tests/nectar/contract-setup.mjs` — contractEntitySetup: quoted entity and processor/ledger routes, full term, independent approval and ordinary issue parity. `tests/nectar/native-collection.mjs` — nativeCollectionFlow: two exact processor-account bindings derived from the issued entity route, one capture and payment allocation. | BLOCKED for whole acceptance: two authorized QuickBooks company OAuth grants are absent; Accounts Desk owns consent. References alone never prove ledger posting. Builder-reported two-account live processor run in `tests/nectar/native-collection-sandbox.mjs`; generated receipt `docs/contract/sx-nectar-c22/native-two-accounts.json`. PAY-008 separately owns native manual collection; no automatic card/ACH or ledger posting is claimed. |
| `CAT-001` | Billing intervals and terms | target | done | `tests/nectar/intervals.mjs` — intervalsFlow: every cadence and timing, independent 24-month term, 25-month clock, two $12,000 annual charges, 24 usage months, exact co-term stub, repeated preparation and no duplicate component and one same-due-date invoice; annual $1,000/month schedules, journals, roll-forward, source and CSV and normalized MRR. `tests/nectar/interval-cancel.mjs` — intervalCancellationFlow: actual term boundary, unpaid/part-paid/paid exact taxed discounted unused-service credits, immutable originals, GOV-002 approval/stale/reject controls and ordinary restart. `tests/nectar/renewal-pricing.mjs` — renewalPricing and `tests/nectar/renewals.mjs` — renewalsFlow: actual term cohorts and renewals and unchanged grandfathered signed invoices. `tests/nectar/pricing-simulation.mjs` — pricingSimulation: six actual periods and full finite mixed-term replay, per-invoice and cohort deltas, citations, approved scheduling and boundary advance custody. `tests/nectar/contract-setup.mjs` — contractIntervalSetup: quoted complete finite term and labelled evergreen horizon and ordinary issue parity. `tests/nectar/retention.mjs` — retentionIntervalFlow: exact saved interval counts/pause/win-back. `tests/nectar/entitlement-quotas.mjs` — entitlementQuotasFlow; `tests/nectar/commitments.mjs` — intervalCommitmentsFlow. `tests/nectar/credit-correction.mjs` — creditCorrectionFlow: annual deferred schedule and exact governed correction issue parity. `tests/nectar/clause-browser.mjs` — intervals and cancellation modes and `tests/nectar/portal-embedding.mjs` — portalEmbeddingFlow: native forms and own-customer service spans at 1440/390. Exact-candidate external clock run c22-landing-1c-scale (HEAD logged by clause-runner). |  |
| `CAT-002` | Tiered, volume, package and graduated pricing | target | done | `src/nectar/price-model.ts`; `src/nectar/catalog.ts`; `src/nectar/rating.ts`; `tests/nectar/pricing-models.mjs` — CAT-002 public HTTP journey |  |
| `CAT-003` | Minimum commitments, overages and ramps | target | done | `src/nectar/contract-terms.ts`; `src/nectar/commitment-rating.ts`; `src/nectar/ui/contracts.ts`; `tests/nectar/commitments.mjs` — CAT-003 named public HTTP journey | Current operator and API doors complete under ct 19 October ruling; PORT-002 carries customer burn-down parity in text and acceptance. |
| `CAT-004` | Prepaid credits and drawdown | target | done | `tests/nectar/prepaid-refresh.mjs` — prepaidRefreshLedgerFlow (runs `tests/nectar/prepaid.mjs` prepaidFlow inside push Verify): paid $10,000 purchase, two-period promotion-first drawdown, expiry, rollover, excess usage, mixed annual advance and monthly usage, source and CSV and revenue and unchanged originals. `tests/nectar/prepaid.mjs` — prepaidCorrectionFlow, prepaidPurchaseCreditFlow and prepaidErasureFlow: governed repeated historical deltas, unpaid-purchase credit refusal and financial retention. `tests/nectar/prepaid-report-parity.mjs` — prepaidReportParity: balance and source and CSV and frozen snapshots at each grant, drawdown, manual top-up and expiry. `tests/nectar/prepaid-refresh.mjs` — prepaidRefreshTopupFlow (runs `tests/nectar/prepaid-topup.mjs` prepaidTopupFlow on the synthetic Stripe edge inside push Verify): recorded customer acceptance, independent approval, one automatic $5,000 purchase at $1,000 threshold, cap, GET-only uncertainty, revocation and card replacement and erasure. `tests/nectar/prepaid-agent-corrections.mjs` — prepaidAgentCreditFlow and prepaidAgentDraftCorrectionsFlow: zero-recognition purchase credits, exact draft-term and unbilled-usage approval and message and actual next-invoice parity.  `tests/nectar/prepaid-refunds.mjs` — prepaidRefundFlow proves unused paid money and unit refund liability reversal, original-account capture, independent approval, reservation race, GET-only recovery, failed and stale and rejected refusal, exact cash and source and CSV and frozen snapshots and erasure and removal; support and collections and accountant and agent typed lifecycle reads of pending and rejected and uncertain and refunded and failed requests on the refund JSON and page doors without quote, narrative or raw proof; current-finance quote and reason; accountant CSV preparer and approver and approval-mode parity; current-finance audited attachment-only proof with support and agent 403 before lookup; support and agent financial preparation 403, with finance preparation and separate approval proved by CAT-012; typed lifecycle retained after narrative and proof erasure and the unchanged 2033-11-01/2033-11-02 seven-year boundary. Invoice and customer JSON and pages of the refund’s numbered credit show support, collections, accountant and agent readers no narrative; sales customer reads and the customer portal invoice JSON and page receive the typed category only, including legacy credit reasons gated by the typed refund source link. `tests/nectar/portal-prepaid.mjs` — portalPrepaidFlow proves own-customer balance and source and CSV refresh and English and Spanish numeric parity without writes. `tests/nectar/prepaid-agent-corrections.mjs` — prepaidCommercialMigrationFlow proves independent two-period wallet depletion, governed approval and exact ordinary issue parity, plus six-period saved commercial comparison and immutable original purchase and revenue evidence. `tests/nectar/prepaid-refunds.mjs` — prepaidRefundCorrectionFlow proves repeated money and fractional-unit corrections after a cash refund, exact restored quantity and liability and recognition, unchanged cash and numbered credit, source and CSV parity, next-invoice excess once, independent and stale refusal and pending-refund refusal, and that credit a correction gives back is refunded in cash only through a new request (one new processor create, the completed refund unchanged, the exhausting draw releasing exactly the carried cents). `tests/nectar/prepaid-report-parity.mjs` — prepaidRefreshParity, called by prepaidRefreshLedgerFlow after each grant, drawdown, manual top-up, rollover and expiry and by prepaidRefreshTopupFlow at the automatic funding, asserts operator HTML and USE-006 JSON equal the ledger within 60 seconds and never consume, inside push Verify. Builder-reported native operator and customer consent, approval, refund and ledger runs at 1440/390 use `tests/nectar/prepaid-topup-browser.mjs`, `tests/nectar/prepaid-refund-browser.mjs`, `tests/nectar/portal-prepaid-browser.mjs` and `tests/nectar/clause-browser.mjs`. | Live top-up is CAT-011; CAT-012 proves refund authority, intake and notices but still lacks the owner-held legal review. |
| `CAT-005` | Discounts, coupons, promotion codes and trials | target | partial | `tests/nectar/promotions.mjs` — promotionsFlow: 20% for three months, exact three invoices, redemption limit and concurrent race, expired and first-time refusal and acceptance, Pro-only percentage and repeating and forever amount coupons on mixed invoices, amount capped once per mixed monthly and quarterly invoice, role refusals. trialsFlow: no-card ends unpaid; card conversion and original and extended charge dates; processor-verified saved card, exact owner confirmation and independent approval, one automatic captured first advance invoice on its end date, 14-day extension invalidates old approval and charges only at the renewed date, no intervening invoice, changed card and unconfirmed and revoked and missing-method refusal, expired dates and uncertain no-retry. `tests/nectar/promotions-browser.mjs` — catalog and native owner or finance trial forms and outcomes at 1440/390. | Automatic first collection is implemented for exact owner-authorized USD fixed and seat advance trials; legacy arrears, usage and complex instruments retain ordinary manual collection. Carried ct ruling: coupon and code creation is member-approval only; a recorded card converts the trial and no card ends it unpaid. Automatic collection is off until explicit owner confirmation of the frozen card and account, amount and end date plus approval by a different current owner or finance member when available (explicit sole-owner confirmation otherwise); changed terms need new consent, missed dates expire, unknown outcomes never retry. General owner-selectable trial policies and other collection instruments remain unproved; PAY-003 and PAY-004 and PAY-006 inherit the same authority and no-retry custody before they ship. |
| `CAT-006` | One-time charges, add-ons and manual invoices | target | done | `src/nectar/one-time-charges.ts`; `src/nectar/manual-invoices.ts`; `src/nectar/addons.ts`; `tests/nectar/one-time.mjs` — CAT-006 public HTTP journey |  |
| `CAT-007` | Price changes across a customer base | target | done | `src/nectar/price-migrations.ts`; `src/nectar/proposals.ts`; `tests/nectar/price-migrations.mjs`; `tests/nectar/price-approvals.mjs` — CAT-007/GOV-002 named public-door journeys | Existing catalog doors complete under ct 19 October ruling; CAT-001 annual/cohort/renewal and INV-002 optional customer notices retain obligations in text and acceptance. |
| `CAT-008` | Multi-currency prices | target | partial | `tests/nectar/currency.mjs` — currencyFlow: same-product CAD and USD price books, one immutable customer currency, mismatched item and charge and credit and payment refusal, CAD recurring invoice and exact CAD credit and native Stripe payment, unchanged issued calculation, sourced dated USD values and missing and duplicate-rate refusal through public catalog and bill-run and invoice and payment and report doors. `tests/nectar/currency-aggregate-reports.mjs` — assertCurrencyAggregateReports inside currencyFlow: mixed USD and CAD billings and collections and credits and tax, source and CSV rate and date and value parity, whole-transaction component rounding, missing-date refusal and immutable originals. `tests/nectar/currency-browser.mjs` — native rate-entry and charge confirmation, original CAD customer and portal invoice and sourced USD report at 1440/390. `tests/nectar/currency-sandbox.mjs` — real held US Stripe CAD capture, exact credit and payment and report values and clock cleanup; prior builder receipt at bef6ba910cd6067b841f90db03c3f3b151b47215 retained outside the product repository. | AR, MRR, unbilled, credit-balance and revenue reporting, scheduled bundles containing them, aging and USD-only reminder and cadence execution and financial instruments (prepaid, commitments, corrections, write-offs, hierarchies and trial collection) refuse foreign-currency execution until their conversion semantics exist; non-USD support and threshold credit conversion is unproved. Adopted valuation is explicit owner-only entry with the configured fresh factor of an immutable daily source and rate, invoice issue and payment receipt and credit local issue dates, one exact half-away rounding per transaction; no guessed or carried-forward rate. Full clause remains partial. |
| `CAT-009` | Customer hierarchies and consolidated billing | target | partial | `tests/nectar/hierarchies.mjs` — hierarchiesFlow and hierarchyTaxFlow: three divisions on one ordinary numbered invoice with exact per-division service/usage/tax snapshots, once-only consumption/revenue, separate division invoice collected on the frozen parent card through PAY-008, pooled spending drawdowns, independently rounded division taxes despite parent exemption, cycle/stale/role refusals and one-division erasure without losing other financial facts; `src/nectar/hierarchies.ts`; `migrations/core/0073_customer_hierarchies.sql` | Default ADOPTED pending ct: owner-only audited authorization to link one level within one entity; no automatic card charge or parent/child portal disclosure. Pooled commitment is spending tracking only, with no shared minimum settlement or funding. All credit sharing is unavailable: the withdrawn branch experiment recreated 150000 cents of spent parent goodwill after child financial expiry; independent donor-debit and child-receipt retention custody is required. Full shared commitment execution, individual contract/prepaid/correction-source consolidation and broader mixed-period/entity parity remain unproved; unsupported sources are refused. |
| `CAT-010` | Top-up authorization and card-on-file evidence | target | partial | `tests/nectar/prepaid-topup.mjs` — prepaidTopupFlow: no charge before signed customer acceptance plus independent matching approval; one crossing/PaymentIntent, hard monthly cap including unknown claims, GET-only recovery, exact capture-date funding, owner-factor refusals, customer revocation, permanent card-replacement ending and erasure.  `tests/nectar/prepaid-topup-browser.mjs` contains native customer consent/revocation and independent finance approval plus uncertain recovery; its 1440/390 run is builder-reported. | Live sandbox proof pending. Receipts/notices remain DUN-003; ACH awaits PAY-002 mandates. Card-network stored-credential rules and US-law review are not proved. |
| `CAT-011` | Automatic top-up on a real processor test account | target | missing | `tests/nectar/prepaid-topup-real-time.mjs` — persistent real-time qualification with initial capture and once-only funding assertions, durable restart and early-resume refusal; original candidate builder reported initial funding only. `tests/nectar/prepaid-topup-sandbox.mjs` is its compatibility entry point. | Nectar clock ahead of real Stripe capture date: actual_capture_date_mismatch (c22, c30). Full exact-source real US Stripe qualification remains unproved. The replacement journey uses actual wall time with persistent Worker and D1, exact signed customer authorization and independent approval, actual capture-date funding, two genuinely completed daily periods, then a distinct further completed usage period for the same-month second-crossing cap refusal and separate revocation. No future clock advancement, date substitution or charge retry is allowed. All actual capture, invoice, receipt, allocation, ledger, operator, API, report source and CSV reconciliation plus owned-resource cleanup must pass together on one clean SHA; interruption or insufficient elapsed time is incomplete evidence. CAT-010 card-network and US-law review, DUN-003 notices and PAY-002 ACH obligations remain separate and unresolved; no production approval or wider collection authority is inferred. |
| `CAT-012` | Prepaid refund preparation, intake and notices | target | partial | `tests/nectar/prepaid-refunds.mjs` — prepaidRefundFlow, extended by `tests/nectar/prepaid-refund-intake.mjs` supportIntake, portalIntake and assertNotice: finance preparation with owner approval, refused self-approval, one pending support request and one own-customer portal request across duplicate and concurrent submissions, retained requester and category, no balance reservation or cash movement before independent approval; refunded and failed mail-edge notices preserve exact money, units, purchase and numbered-credit facts, uncertain send is never retried and a recorded processor sender suppresses Nectar. `tests/nectar/billing-roles.mjs` — billingRolesFlow: every current role and action and API and page, including support-only intake and owner or finance-only notice custody. `tests/nectar/prepaid-refund-intake-browser.mjs` — native CAT-012 support and portal intake, financial quote preparation, self-approval refusal and notice settings and outcomes at 1440/390. | BLOCKED for whole-clause DONE on the owner-held retention legal-review record. Executable acceptance is proved; no legal approval is inferred. |
| `CUS-001` | Find any customer and see the whole billing record | target | done | `tests/nectar/customer-search.mjs` — customerSearchFlow, including `tests/nectar/customer-cycle.mjs` assertCustomerFullCycle: one customer through native card and verified external ACH settlement, purchased-credit refund and numbered credit, moved Stripe history, required isolated searches, invoice-summed totals, bounded support credit and accountant and signed-out refusal. `tests/nectar/customer-payment-methods.mjs` assertCustomerPaymentMethods: complete typed card and ACH observations, pagination, owner refresh, no full numbers and binding and role and erasure custody. `tests/nectar/payment-receipts.mjs` assertPaymentReceipts: stable distinct receipt numbers, exact allocation and return and unallocated source and receipt-number lookup. `tests/nectar/hierarchies.mjs` hierarchiesFlow: independent child source ledgers and no duplicate parent payment. `tests/nectar/lifecycle.mjs` lifecycleFlow and `tests/nectar/write-offs.mjs` writeOffFlow: original subscription and write-off and recovery parity. `tests/nectar/upcoming.mjs` upcomingFlow, `tests/nectar/notes.mjs` notesFlow, `tests/nectar/metadata.mjs` metadataFlow and `tests/nectar/billing-roles.mjs` billingRolesFlow retain upcoming, contact and note and metadata and capability coverage. assertCustomerFullCycle also retains its own nonempty contact, note and metadata facts and their searches. `tests/nectar/customer-record-browser.mjs` and `tests/nectar/customer-child-browser.mjs`: native search, refresh, settled ACH verification, customer and child and receipt source at 1440/390. | — |
| `CUS-002` | Notes and mentions on customers, invoices and payments | target | done | `src/nectar/notes.ts`; `src/nectar/note-records.ts`; `src/nectar/ui/notes.ts`; `tests/nectar/notes.mjs` — CUS-002 named HTTP journey | Existing customer and invoice and payment notes complete under ct 19 October ruling; GOV-001, AR-003 and INT-003 carry future role/dispute/preference obligations in text and acceptance. |
| `USE-001` | Metering API at production scale | target | partial | `src/nectar/usage.ts`; `tests/nectar/flows.mjs` | Authenticated API with stable ids (5,000 events per call) ships; no durable high-volume pipeline, measured throughput or replay store. |
| `USE-002` | Billable metrics and dimensions | target | done | `src/nectar/meter-definitions.ts`; `src/nectar/metric-aggregate.ts`; `src/nectar/meter-sql.ts`; `src/nectar/metric-rating.ts`; `tests/nectar/metrics.mjs`; `tests/nectar/metrics-sql.mjs`; `tests/nectar/metric-pricing.mjs`; `tests/nectar/metric-changes.mjs`; `tests/nectar/metric-zones.mjs`; `tests/nectar/metric-negative.mjs` — USE-002 named public HTTP journeys | Current native and SQL metric doors complete under ct 19 October ruling; USE-004 carries governed late nonadditive correction execution in text and acceptance. |
| `USE-003` | Bulk usage from storage and warehouses | target | missing |  | No S3, GCS, Snowflake or BigQuery loads. |
| `USE-004` | Usage corrections after billing | target | done | `tests/nectar/usage-replay.mjs` — usageReplayFlow: 10,000-event immutable replay, original versions and tax, nonadditive/predecessor/zero deltas, source and read refusals; usageDispositionFlow: each 10,000-event policy, full downstream/37-period execution, paid/part-paid/unpaid credits, once-only later applications, GOV-002/stale and duplicate and issue-block refusals, exact tax and revenue and source and CSV and report snapshots, frozen message and outcome and customer scoping; `tests/nectar/flows.mjs` — native late-line issue parity; `tests/nectar/revenue.mjs` — original-service revenue parity | All three governed dispositions, immutable originals, cumulative full downstream replay, original-version/nonadditive/predecessor deltas, paid carried-credit liability, once-only application, source-bound human approval and tax and revenue and customer-message parity proved. Read-only exploration remains unresolved until a separate financial approval. Dedicated outside-Verify journey run: sx-nectar-c21-use004 (exact candidate SHA recorded by the run receipt). |
| `USE-005` | Usage alerts and threshold invoicing | target | missing | `tests/nectar/webhooks.mjs` — webhookLifecycleFlow proves the existing ENT-002 quota webhook crossing is emitted once in the same billing period despite policy rearming and concurrent observers. `src/nectar/webhook-entitlements.ts` | Existing governed entitlement-quota webhook crossings now retain once-only event custody per customer, subscription, feature, meter and billing-period start; changing the quota does not rearm that crossing. Independent usage and spend alert definitions, commitment percentage alerts, contact-owned portal controls, email and in-app delivery, entitlement actions, charged mid-period invoices and remainder-only billing remain unbuilt. |
| `USE-006` | Live usage and the upcoming invoice | target | done | `src/nectar/upcoming.ts`; `src/nectar/ui/upcoming.ts`; `tests/nectar/upcoming.mjs` — USE-006 named public-door journey | Existing operator and API capability complete under ct 19 October ruling; PORT-002 carries portal parity/refresh/CSV and CAT-004 carries prepaid remaining in both text and acceptance. |
| `USE-007` | Reconcile usage with its source | target | done | `src/nectar/reconciliation.ts`; `src/nectar/billruns.ts`; `tests/nectar/reconciliation.mjs` — USE-007 public HTTP journey |  |
| `SUB-001` | Lifecycle states driven by dates and payments | target | partial | `tests/nectar/dunning-sequences.mjs` — dunningSequenceFlow: scheduled trial and pause, definitive automatic card refusal before the due date, recorded dunning unpaid state, allocation recovery and cancellation; source transactions atomically retain state, cause, webhook and audit before observer ticks, with financial rollback on history audit failure; scheduled cancellation preserves access until its end date and then ends without another action; unchanged prior history, repeat-tick deduplication, subscription-only cause redaction and approved erasure; durable schedule checkpoints retain a pause and resume wholly between observer ticks, with exact effective times, concurrent replay safety, restart safety, audit rollback and business-local daylight saving boundaries; a source write retains preceding scheduled transitions with guarded pre-write facts in its own atomic batch, including a missed pause before payment recovery. `tests/nectar/subscription-states.mjs` and `tests/nectar/subscription-states-browser.mjs`: independent scheduled lifecycle journey, signed state-event parity and subscription-only financial cause redaction. `tests/nectar/dunning-browser.mjs`: state and history screens at 1440 and 390 in push Verify. `tests/nectar/subscription-states-sandbox.mjs`: held-key US Stripe card trial capture, renewal refusal, owner-confirmed unpaid action, captured and recorded recovery, governed cancellation, complete state history and matching delivered state events on an owned real test clock; the runner prints its candidate SHA and cleanup receipt. | Automatic state observation is implemented, but standing renewal authority and unattended dunning exhaustion remain unproved: current renewal collection requires exact per-invoice customer acceptance and human approval, and the dunning final action requires owner confirmation. The real Stripe clock journey exercises those current gates and an externally captured recovery recorded and allocated by the owner; it does not prove an unattended whole journey or general provider-event recovery intake. Clock-aligned real processor recovery remains unproved. Source transaction transitions and scheduled canceled-to-ended behavior are asserted; a canceled future-end subscription retains its existing service until the effective end date. SUB-001 stays partial; no new debit, cancellation or dunning authority is inferred. |
| `SUB-002` | Immediate and scheduled plan changes with proration policy | target | partial | `tests/nectar/plan-changes.mjs` — planChangesFlow: original-service replay across two annual upgrades and a downgrade, independent chronological cents, exact numbered carried credit, immutable issued originals, once-only replacement service and later ordinary invoice, owner-confirmed PAY-008 collection, period-end and waived changes, saved historical tax and concurrent, duplicate, stale-source, stale-policy, self-approval and revoked-credential refusals; changing the policy after waived service prepares no debit or credit. Mixed-service replay independently changes annual fixed and seat items on one issued invoice, retaining monthly metered usage and its calendar; whole-invoice tax and per-month revenue reconcile to independent calculations, stale sibling quotes change nothing, issued originals remain unchanged and later ordinary usage and renewal bill once with conserved numbered credit. A later governed upgrade of the credit-funded renewed service charges its exact leap-year delta without recreating spent credit; a separately adjusted source refuses its retained quote. Source balances and numbered credits are fenced again inside preparation and approval transactions. salesPlanChangesFlow: repeated seat quantities, minimal own sales quotes, separately prepared bound credits, independent above-limit approval and erasure refusing retained requests. `tests/nectar/plan-changes-browser.mjs`: native preparation and approval and each resulting plan and invoice screen at 1440 and 390 in Verify. `tests/nectar/flows.mjs` — NEC-08 scheduled preview and bill parity; `src/nectar/plan-change-history.ts`; `src/nectar/plan-change-preview.ts`; `src/nectar/plan-changes.ts`; `migrations/core/0074_plan_changes.sql` | Automatic collection through PAY-003 remains unproved; current collection is explicit owner-confirmed PAY-008. RL-107 approves exact-invoice collection custody but does not prove the unsupported Stripe bank-debit test-clock timing or the full automatic-collection target. Issued support includes repeated governed changes across fixed and seat advance components on the same invoice, including mixed advance and metered arrears service, reconstructed in approval order from immutable original service and all prior approved changes. Unchanged service calendars and metered facts are retained; each replacement claims only its own current advance service. Preparation retains records or draft plus subscription read authority; sales see only their own priced before and after and delta figures, without source invoice, balance, historical tax, certificate or revenue facts. A different authorized human approves; sales downgrade quotes create no financial request, an owner or finance member separately prepares the bound credit, and above-limit execution needs a different credit approver. Adopted conservative default under the standing row-10 floor: after a nonzero waived change, immediate prorated money changes are refused until ct approves the exact paid-service basis; no-proration and period-end preparation retain their existing authority. This policy boundary remains unproved for completion. Changes to metered prices, prepaid, signed commitments and lifecycle variants remain refused and unproved; legacy unissued changes retain their scheduled path. No unattended collection or processor refund is claimed; unused paid service carries a numbered customer credit. |
| `SUB-003` | Pause, resume and cancel | target | done | `src/nectar/lifecycle.ts`; `src/nectar/lifecycle-cancel.ts`; `src/nectar/lifecycle-rating.ts`; `tests/nectar/lifecycle.mjs`; `tests/nectar/lifecycle-cancel.mjs` — SUB-003 named public-door journeys | Current in-arrears doors complete under ct 19 October ruling; CAT-001/INV-005/INV-006/PAY-007 retain future term/advance/refund/balance obligations in text and acceptance. |
| `SUB-004` | Renewals and renewal notices | target | done | `tests/nectar/renewals.mjs`; `tests/nectar/renewal-pricing.mjs`; `tests/nectar/contract-setup.mjs` — SUB-004 | |
| `SUB-005` | Cancellation saves and win-backs | target | done | `tests/nectar/retention.mjs` — SUB-005 | |
| `ENT-001` | Real-time entitlements API | target | partial | `tests/nectar/entitlement-quotas.mjs` — entitlementQuotasFlow: governed exact numeric limits including zero, native upgrade and downgrade and pause within five seconds, price and subscription explanations, quotas, issued-balance grace and allocation restoration; `tests/nectar/native-collection.mjs` — nativeCollectionFlow: native decline and allocation recovery with typed financial state, preserved grace and numeric capacity; `tests/nectar/clause-browser.mjs` — entitlements mode at 1440 and 390. `src/nectar/entitlement-state.ts`; `src/nectar/feature-policy.ts`; `tests/nectar/entitlement-visibility.mjs` — entitlementVisibilityFlow: current, overdue, grace-restricted, owner-confirmed restricted and allocation-restored states through feature-specific, all-feature and customer-nested HTTP reads; sales and custom roles with neither, either or both financial reads; exact permitted invoice evidence, hidden nested financial facts and restriction explanations, immediate role changes and unchanged financial and lifecycle sources; rendered customer entitlement explanations, next-request customer-read revocation without source mutation, erased-customer entitlement withdrawal including dated reads by retained identity, rejected pre-erasure capture replay, retained financial balances and unchanged unrelated access | Native numeric capacity and current recorded financial state now ship. Entitlement financial evidence requires both invoice and payment reads in every representation; permitted access decisions, exact numeric limits, quotas and subscription and price explanations remain visible without those capabilities. Deployed edge p95 under 50 ms, live pre-adoption source upgrade and pause within 60 seconds, and complete payment-driven lifecycle transitions remain unproved. `tests/nectar/entitlement-quotas.mjs` — entitlementTimingFlow is the dedicated local timing journey; local Workerd latency is not deployed edge proof. SUB-001 retains automatic trial, dunning, unpaid and recovery transitions and their provider history. |
| `ENT-002` | Quotas and enforcement policy | target | done | `src/nectar/entitlements.ts`; `src/nectar/feature-policy.ts`; `src/nectar/policy-changes.ts`; `src/nectar/ui/feature-policy.ts`; `migrations/core/0049_feature_quotas.sql`; `tests/nectar/entitlement-quotas.mjs` — ENT-002 public HTTP/form journey | Exact soft/hard/overage quota boundaries, actual metered invoice, business-local unpaid grace, allocation restoration, preserved lifecycle restrictions and governed policy approval asserted. Future CAT-001 interval and SUB-001/PAY-004 state duties retained in clause text. |
| `DEV-001` | Signed outbound webhooks | target | partial | `tests/nectar/webhooks.mjs` — webhooksFlow and webhookLifecycleFlow: public consent/authority doors, transactional metadata snapshots, complete native subscription snapshots, dated entitlement decisions and ENT-002 quota crossings, observed card/payment failures, invoice.paid maps, HMAC receiving app, retries/replay/rotation, opted-in finance exact-item failure mail and provider custody; `tests/nectar/webhook-restore.mjs` — webhookRestore: actual export/reset/import/export preserves financial originals and all six metadata kinds while excluding endpoint secrets and operational delivery state; `examples/webhook-receiver/server.mjs`; `src/nectar/webhooks.ts`; `migrations/core/0072_webhooks.sql` | Default ADOPTED pending ct: owner/developer consented endpoint/secret management and replay under GOV-001, finance typed failure monitoring, no historical sends, no built-in narrative/contact fields; explicitly authorized metadata remains exact, operational outbox excluded from archives. `tests/nectar/webhooks.mjs` — webhookLifecycleFlow additionally proves complete imported creation snapshots after provenance, duplicate-free import reapplication, all published authenticated test-shadow event mappings, concurrent receipt deduplication, role/source/consent refusal and typed provider custody delivered once through HMAC. `tests/nectar/webhook-shadow-sandbox.mjs` additionally proves actual held-key test-account events, authenticated source capture, exact local metadata and once-only HMAC reception with owned-clock cleanup. Unproved: policy approval; webhookLifecycleFlow also proves credit-only, goodwill and fully carried-credit settlement exactly once with zero cash allocation, and no paid claim for a write-off. Independent USE-005 spend thresholds remain that clause’s obligation. Native webhook screens used at 1440/390; live mapping proof and policy approval keep the clause partial. |
| `DEV-002` | Documented public API | target | done | `src/nectar/openapi.ts`; `src/nectar/api-fields.ts`; `scripts/api-fields.mjs`; `src/nectar/api-versions.ts`; `src/nectar/idempotency.ts`; `src/nectar/list-cursor.ts`; `src/nectar/doors.ts`; `src/nectar/invoice-list.ts`; `src/nectar/invoice-expansions.ts`; `API.md`; `tests/nectar/api-platform.mjs`; `tests/nectar/invoice-pagination.mjs`; `tests/nectar/reports.mjs` — DEV-002 HTTP journeys `tests/nectar/api-platform.mjs` — retained API boundary assertions extended for the consolidated public-door suite. | — |
| `DEV-003` | SDKs and embeddable components | target | partial | `sdks/typescript/src/index.ts`; `examples/typescript-sdk/src/index.ts`; `tests/nectar/sdk-typescript.mjs` — sdkTypescriptFlow compiles and executes the actual TypeScript sample and CLI through Worker and D1: exact usage and independent once-only invoice, allowed and denied entitlement gate, dated credential pin and request override, idempotent writes, 50 exact string pairs on all six metadata kinds, exact current filters, stale and over-cap refusals, accountant and credential write refusals, revoked authority and erased-customer replay. It opens existing catalog checkout and own-customer portal destinations and refuses revoked portal access; the paid network edge alone is faked. | TypeScript native metering, entitlements, metadata and existing checkout and portal destinations are implemented. Python, Go, Ruby, PHP, Java and .NET SDKs and their complete samples remain unbuilt; embeddable live-catalog pricing, checkout and portal components and the test-mode purchase remain unbuilt or unproved. Unchanged TypeScript metering across the full MOVE-010 source-owned relay and adoption boundary remains unbuilt and unproved. Live purchase and source-biller proof need the Stripe test credential and MOVE-004 source account not supplied to this run; MOVE-006 still owes its specified Postmark sandbox receipt. All original checkout, component and source-boundary duties remain required. |
| `DEV-005` | Metadata on every object | target | done | `src/nectar/metadata.ts`; `src/nectar/metadata-records.ts`; `src/nectar/metadata-query.ts`; `tests/nectar/metadata.mjs`; `tests/nectar/metadata-restore.mjs` — DEV-005 named HTTP and CLI journeys `tests/nectar/recovery.mjs` — portable metadata and customer capability withdrawal through archive restore. | Current six kinds and doors complete under ct 19 October ruling; DEV-001/DEV-003 carry webhook and SDK obligations in text and acceptance. |
| `DEV-006` | Source billing call map for the app switch-over | target | partial | `API.md`; `src/nectar/shadow-app.ts`; `migrations/core/0081_shadow_app_changes.sql`; `tests/nectar/stripe-app.mjs` — stripeAppFlow: explicit owner-confirmed seat quantity and period-end cancellation, once-only source POST, lost-response GET-only recovery, cutover fence, dated mirror and unchanged sample preview through adoption; `examples/stripe-switch/nectar.mjs` | Published call map distinguishes every required call and parameter boundary. Unproved: complete live call-by-call switch-over, checkout and source customer and subscription creation, source customer/price/immediate-cancel and portal writes, Stripe-format meter relay, compatible payment-method list and entitlement sync. Adopted conservative owner-session, fresh-factor, prepared and confirmed test-only no-proration writes await ct; current native governance remains. |
| `DEV-004` | Test mode and test clocks | target | missing |  | No test mode or test clocks. |
| `INV-001` | Automatic invoice runs | target | partial | `src/nectar/invoice-automation.ts`; `src/nectar/billruns.ts`; `src/nectar/ui/invoice-automation.ts`; `migrations/core/0083_invoice_automation.sql`; `tests/nectar/invoice-content.mjs` — invoiceAutomationFlow proves default-off policy, sole-owner confirmation and independent finance approval, business-local hour, clean arrears and advance issue, held PO exceptions, duplicate cron safety, current approver authority, audit attribution, and no implicit charge or invoice email. | Automatic invoice email and processor collection remain unbuilt; INV-002 requires the unavailable Postmark sandbox. Threshold and standalone one-time automation, catch-up beyond the previous and current months, and interrupted-attempt recovery remain unproved. Adopted default pending ct: owner prepares, a different owner or finance approver confirms (sole-owner explicit second confirmation only without another active approver), each business day is attempted once, no exception is auto-acknowledged, and this consent authorizes neither invoice email nor processor charges. |
| `INV-002` | Invoice and receipt email delivery | target | missing |  | Invoice reminders download for the operator to send; no invoice or receipt email delivery. |
| `INV-003` | Hosted invoice page and PDF | target | partial | `src/nectar/portal-http.ts`; `src/nectar/portal-data.ts`; `src/nectar/invoice-pdf.ts`; `tests/nectar/invoice-content.mjs` — invoiceContentFlow opens the issued invoice and PDF signed out using an owner-issued customer capability; foreign, altered, absent and revoked capabilities refuse; payment allocation updates both presentations; explicit-detail invoices retain quantities, unit rates, tier fees, proration and amounts before rounding while summary invoices hide them; Spanish and English totals agree. `tests/nectar/portal-sessions.mjs` — portalSessionsFlow retains existing expiry, scope and erasure refusal. | Hosted access currently uses the existing fifteen-minute revocable customer session. Stripe ACH checkout, customer-specific virtual-account funding instructions and simulated-transfer settlement remain unbuilt; payment proof is a recorded bank receipt, not Stripe settlement. Calculation-detail parity beyond the asserted flat and graduated usage examples and standalone past-receipt downloads remain unproved. |
| `INV-004` | Branded, B2B-ready invoices | target | partial | `src/nectar/invoice-content.ts`; `src/nectar/invoice-branding.ts`; `src/nectar/customer-invoice.ts`; `src/nectar/invoice-pdf.ts`; `tests/nectar/invoice-content.mjs` — invoiceContentFlow proves required PO refusal, Net45, isolated business and customer fields, immutable issued branding, logo bytes, page and PDF parity, paid balance updates, single-line metered summaries with full operator calculations and exports, quoted setup parity; `tests/nectar/invoice-content-browser.mjs` proves the changed screens at 1440 and 390 and independently parses PDFs. | Email presentation remains unproved under INV-002. PDF text currently supports Western European characters and refuses unsupported characters rather than substituting them. Adopted conservative visibility default pending ct: hidden-detail invoices also refuse their customer invoice-answer evidence doors; operator evidence remains complete. |
| `INV-005` | Credit notes, voids and refunds | target | partial | `tests/nectar/one-time.mjs` — invoiceVoidFlow: original zero-tax, saved-rate taxed and unfunded prepaid purchase void and ordinary reissue, immutable lines and consumed sources, exact tax report and source and CSV, pretax revenue, once-only replacement funding and GOV-002 refusals. `tests/nectar/invoice-refund-preview.mjs` — invoiceRefundPreviewFlow and invoiceRefundExecutionFlow: independent tax estimates; non-taxable captured-card half refund and remaining balance credit; saved-basis two-person approval, direct $900 execution, stale and duplicate and agent and accountant refusals, failed audit rollback, lost-response read-only reconciliation, cash and balance reports, source, CSV and scheduled snapshots, customer composition and refund-reference search, once-only later balance application and erasure with retained typed cash facts. `tests/nectar/invoice-refund-sandbox.mjs`: held-key real Stripe test-mode non-taxable half-refund and balance-credit journey. `tests/nectar/invoice-void-browser.mjs`: void, replacement and refund screens at 1440 and 390 in Verify. `tests/nectar/native-collection.mjs` — nativeCollectionFlow; `tests/nectar/automatic-collection.mjs` — automaticCollectionFlow; `tests/nectar/payment-links.mjs` — paymentLinksFlow: unresolved capture and pending settlement void refusals and once-only reconciliation inherited from main. | Saved-rate declared-tax and unfunded prepaid purchase voids now preserve original invoices and issue linked replacements; only the replacement can fund the original prepaid terms once. Non-taxable card-capture refunds use a durable once-only provider claim and read-only uncertainty reconciliation, or create a carried balance credit, under GOV-002. Original gross payments stay immutable and actual cash refunds are separate report contributions. Unresolved native and automatic collections and hosted captures awaiting invoice allocation refuse voids under the current main guard. Unproved: provider tax transactions and actual provider tax reversals (taxed refunds are refused); SUB-003 frozen-policy cancellation refunds with linked immutable evidence; complete AGENT-002 source-bound refund correction approval and atomic adjustment and customer-message custody; archive, restore and closed-period refund qualification; and the remaining refund variants outside the current non-taxable native card-capture scope. INV-005 stays PARTIAL. |
| `INV-006` | Customer credit balance | target | partial | `src/nectar/balance.ts`; `src/nectar/balance-sql.ts`; `src/nectar/financial-balance.ts`; `src/nectar/ui/balance.ts`; `migrations/core/0071_customer_balance.sql`; `src/nectar/receivables.ts`; `tests/nectar/customer-balance.mjs` — customerBalanceFlow (real Worker/D1 public doors): a $200 wire overpayment and a $100 goodwill credit sit on the customer balance ledger, apply to the next invoice (goodwill first, then cash, by the owner's policy), and the cash remainder is returned; the $1,000 limit ($1,500 return refused direct and for its preparer, executed once by a different person, $900 by one person, stale and duplicate/agent/role requests change nothing, audit names both people); RPT-002 credit-balances report, each source's components, CSV and a scheduled snapshot equal the ledger after every overpayment, grant, application and return. `tests/nectar/interval-cancel.mjs` — intervalCancellationFlow (SUB-003 cancellation records the exact governed carried credit without changing issued evidence). `tests/nectar/usage-replay.mjs` — usageDispositionFlow (USE-004 correction credits). | A return records the outbound transfer the business made (no processor call); refunds to the original payment method need PAY-001/PAY-004 and INV-005. Carried correction and cancellation credits apply to invoices but cannot be returned through this door. Adopted defaults awaiting ct: automatic application is off until the owner sets it; the one GOV-002 threshold and a fresh factor govern grants and returns. |
| `INV-007` | Partial and scheduled payments on the invoice page | target | missing |  | No hosted invoice page or customer payments. |
| `PAY-001` | Processor connections | target | missing |  | No processor connection. |
| `PAY-002` | Hosted checkout and payment-method capture | target | partial | `tests/nectar/customer-payment-methods.mjs` — assertHostedSetups, inside `tests/nectar/customer-search.mjs` customerSearchFlow: first-method card and verified ACH capture, separate save and default consent, versioned wording and digest, safe projections, customer isolation, current fresh-factor preparation and claim authority, opaque one-purpose return custody, same-origin and replay refusal, pending and mismatched proof refusal, unchanged default without consent, once-only default updates, lost-response read-only reconciliation, definitive expiry, revocation, native erasure and tested database and customer CSV exclusion. `tests/nectar/customer-record-browser.mjs` — native preparation, acceptance, return, open, completed, expired, creating, updating and refused screens at 1440 and 390, with English and Spanish identical method figures and visible control labels. `tests/nectar/hosted-setup-sandbox.mjs` — PAY-002 existing-customer Stripe setup: real held-key test card and manual ACH Checkout, test microdeposit verification, active mandate reference, explicit default selection, foreign-account refusal and database exclusion at c5d5199c2214fa65625d350e3d553234b3789783. Card creation and default requests req_GbybdZdjWCSXLv and req_YD0tWQ2vpCMlsX; ACH creation, verification, mandate and default requests req_6td4ZSiw98Pp7k, req_d7FU8UJxpZX9RC, req_jj284tl5iXKVEZ and req_QI8C7L2wemFnNz; customer cleanup req_ZomHc0X1f9d6GO.; customer cleanup req_ZomHc0X1f9d6GO. `tests/nectar/hosted-setup-archive.mjs` — hostedSetupArchiveJourney: actual rer export, reset and import of completed card and verified ACH plus creating, open and updating histories; exact recorded consent wording and digest and acceptance time, separate default choices, provider references and unavailable ACH wording, independently reconciled financial totals, populated database and archive and command-log sensitive-input searches, inert old requests and return cookies and scheduled ticks, customer isolation, blocked uncertain replacement, trusted erasure-checkpoint refusal and anonymized restoration. Historical and revoked-session pages use the native English and Spanish renderer with browser assertions at 1440; candidate screen captures also cover 390. | CT approves the setup-only default with the stated riders; the synchronized policy block remains binding. Monthly-plan card and ACH signup, Stripe Elements, Adyen Drop-in and Braintree Drop-in, exact versioned ACH authorization text and acceptance custody, complete log and archive and export sensitive-number searches, complete archive and restore and audit conformity, production and applicable provider and legal review, integrated SUB-004 and SUB-005 acceptance and complete future PORT-006 coverage remain unproved. Real existing-customer Stripe card and verified ACH setup is now proved; it creates no subscription or debit authority. Reconciliation remains bounded to the original live return capability; historical uncertainty and expired preparation recovery remain unproved. The Adyen test key and Braintree sandbox private-key names probed through the injector are absent; these credentials must be admitted for those provider journeys. |
| `PAY-003` | Automatic collection | target | partial | `tests/nectar/automatic-collection.mjs` — automaticCollectionFlow: exact owner preparation, customer consent and human approval; immediate card cash, send-invoice wait, pending ACH, provider-confirmed edge settlement and bank return; duplicate issue and verified provider-event replay, lost-response read-only recovery; receipts, customer and child source and ledger parity, family visibility and erasure. `tests/nectar/automatic-collection-browser.mjs` — the same flow through native forms and customer pages at 1440 and 390. `tests/nectar/automatic-collection-sandbox.mjs` — real held-key Stripe card and active-mandate ACH: immediate card payment, processing ACH with no cash, two total payment attempts, issue and event replay without another charge, and complete owned-resource cleanup. Provider intents pi_3UUgpKDg8BoejKxo0lnD8mji and pi_3UUgpPDg8BoejKxo3SaHJbiT; events evt_3UUgpKDg8BoejKxo0QQsLOSF and evt_3UUgpPDg8BoejKxo3sWEO8I6.  `tests/nectar/automatic-collection-archive.mjs` — automaticCollectionArchiveJourney: actual rer export, reset and import of claimed, uncertain, pending ACH and collected attempts; exact retained invoice claims, processor identity, amount, outcome, payment and allocation facts, inactive restored authority, read-only original-outcome reconciliation, concurrent native collection refusal, independent customer and invoice and payment and report totals, replay refusal and older-archive erasure checkpoints. | Four-business-day ACH settlement on the real Stripe test clock remains unproved: the held-key journey advanced T+3 and T+4, but Stripe's PaymentIntent and funds availability followed real time, with available_on 1792993943 rather than the fourth business day. Stripe documents that test-clock advancement does not support bank-debit collection. This is a provider proof dependency, not a passed timing assertion. Direct archive restoration of pending attempts remains unproved. Adopted conservative default pending ct: exact per-invoice hosted customer consent plus fresh-factor owner preparation and independent human approval, with explicit sole-owner confirmation only when no other approver exists; no retry or missed-date catch-up.  Selected native attempt archive assertions now cover concurrent native collection refusal and independent restored totals; broader archive qualification remains unproved; restored records confer neither debit authority nor permission for retry or catch-up. |
| `PAY-004` | Payment events, refunds and payouts reconciled | target | partial | `tests/nectar/processor-events.mjs` — processorEventFlow (with `tests/nectar/processor-returns.mjs` and `tests/nectar/processor-recovery.mjs`): verified signed intake, duplicate and out-of-order current-state payment and refund observations, dispute, every documented raw R-code return with the normalized failure kept apart, invoice reversal, exact fee and automatic payout transaction membership with cross-payout arrival order and native invoice attribution, finance preferences and signed-in alert links, collections and settlements and refund sources, CSV, frozen snapshots, first-failure chronology, allocated recovery caps, exclusions and rates, customer erasure. `tests/nectar/processor-cash.mjs` — processorCashFlow (with `tests/nectar/processor-cash-return.mjs`): reference-first and exact-amount application, complete cash history, unmatched balances, owner escalation, governed owner-only returns and read-only uncertain recovery. `tests/nectar/processor-cash-imported.mjs` — processorCashImportedFlow: explicit owner takeover of an imported original, partial settlement without marking the imported record paid, uncertain claims and report parity. `tests/nectar/payment-retries.mjs` — paymentRetriesFlow: processor return intake keeps raw R-code identity and the consented DUN-001 retry timing and honours do_not_try_again. `tests/nectar/processor-archive.mjs` — real rer export, restore and due financial removal of every processor source, including returns and imported cash. `tests/nectar/processor-events-browser.mjs` — processor screens at 1440 and 390 in its default, cash and imported modes. `tests/nectar/processor-events-sandbox.mjs` — held-key Stripe test receipt `docs/evidence/processor-events-sandbox.json`: card and refund, manual cash funding and once-only application, imported original plus native invoice paid once from one transfer, actual dispute, genuine ACH returns whose raw network codes are R01, R02, R03 and R05, once-only SendGrid acceptance, and a genuine automatic payout whose 24 constituents and debit match Stripe exactly with no provider write. | PARTIAL by rule: no ct ruling yet covers these adopted conservative defaults, so nothing counts as DONE until ct approves them. (1) Imported originals: only the owner, after an exact-basis confirmation, may take one over; its single provider write turns off automatic advancement of that invoice, the imported record is never marked paid and held cash is a separate ledger. (2) Transfer funds: processor reconciliation stays manual; only a unique invoice-number reference or a unique exact amount applies cash, everything else waits in the unmatched queue and escalates to the owner at 7, 30 and 60 days as an assigned task, never an automatic application or return. (3) Cash-balance returns: owner-only, saved with exact amount and basis, GOV-002 approval above the limit, never automatic. Still owed: the PAY-007 virtual-account instructions on invoices, the portal and the email, and its own acceptance journey; manual payouts expose only their actual debit with membership explicitly unavailable; exact-candidate Verify and the one-mutation-per-sentence table for the DONE riders have not been recorded. |
| `PAY-005` | Card lifecycle and expiry | target | partial | `tests/nectar/card-lifecycle-webhook.mjs` — cardLifecycleWebhookFlow: signed public HTTP intake, exact raw-body signature, timestamp window, missing-secret denial, current provider facts, native binding isolation, replay and concurrent delivery, no mail or processor write. `tests/nectar/card-lifecycle.mjs` — lifecycleFlow: genuine-reference reconciliation at the network edge, current expiry and last four, older-event safety, replay and customer isolation, no notices or debit, hard-decline prohibition through native public collection preparation and confirmation and separately confirmed replacement. `tests/nectar/card-expiry-notices.mjs` — cardExpiryNoticesFlow: fourteen business-local calendar dates, frozen English and Spanish warning, exact recipient and inert approved wording with factor and source custody, separate send confirmation, concurrent once-only claim, honest accepted and failed and uncertain and suppressed outcomes, no retry, own-customer setup link refused on both page and JSON at its original factor deadline, and no debit. `tests/nectar/portal-methods-browser.mjs` — native lifecycle record and API state, warning review and accepted state, email and update-link screens at 1440 and 390; heavy-slot run 20261026T115225919984Z-heavy-slot-10845b42 at d1a6d3aea9ae76bccf18131c0b95fed60e7e1ca2; expired warning link at both widths and ordinary customer-session parity also pass in run 20261026T130920648230Z-heavy-slot-2306780b at 9b0cd6b67c86ab52e096b001caf3c2d2a6708e19. `tests/nectar/card-expiry-sandbox.mjs` — held-key Stripe and verified SendGrid warning: real native renewal on 9 November 2026, preparation and one provider acceptance on 26 October, private update link opens, replay sends no second message, and provider customer cleanup succeeds at d1a6d3aea9ae76bccf18131c0b95fed60e7e1ca2. SendGrid message 0VATSdkGSPiBplQ5e6mUuQ; Stripe cleanup request req_kOlX2Q4kSaT2kB. Acceptance is not mailbox delivery. | CT approved the interim warning policy with riders on 26 October 2026; the full original acceptance and synchronized policy above remain binding. Complete warning receipt fourteen local calendar days before renewal, replacement through that link and renewal charging the new card remain unproved. Genuine processor updater sandbox delivery, expiry and last-four observation, unnecessary-warning suppression and renewal charging that updated card remain unproved: the held test account event query returned no such event (request req_QRUqXcYuKZyCu9), and the official CLI rejects that trigger. A real stolen-card renewal and subsequent new-method renewal remain unproved. The held-key stolen-card journey was rejected during provider attachment (request req_7ufyOtkqikEZcx) before any Nectar charge; cleanup succeeded. Stripe’s documented stolen-card fixture cannot be attached to a customer, so that failed fixture is not application proof. Same-invoice recovery with a newly accepted method remains native work under PAY-008; the named native replacement test collects a different waiting invoice and does not prove recovery of the declined invoice. Native hard-decline fencing is proved, while permanent prohibition through every other collection family remains unproved. Complete archive and restore, erasure and every retained warning-custody obligation beyond the named assertions remain unproved. No unattended warning, new debit authority or long-lived access is enabled; no compliance or mailbox-delivery claim is made. |
| `PAY-006` | No-code payment links | target | done | `tests/nectar/payment-links.mjs` — paymentLinksFlow: chosen monthly fixed and seat prices and quantities, 14-day trial, promotion redemption and reviewed tax; signed-out hosted capture creates the native customer, subscription, renewal term and link attribution; one-time captured payment creates a numbered invoice and receipt; use limits, deactivation, independent approval and owner activation, one-confirmation cancellation, read-only uncertainty recovery, definitive expiry, customer and child composition, family visibility, erasure and retained cash parity. English and Spanish preserve exact figures and show no translation keys. `tests/nectar/payment-links-browser.mjs` — paymentLinksFlow through owner, finance and signed-out customer forms and end states at 1440 and 390, including one-time payment and cancellation; no overflow or icon-only controls without tooltips. `scripts/check-locales.mjs` — missing or mismatched translation entries fail. `tests/nectar/payment-links-sandbox.mjs` — PAY-006 real Stripe hosted subscription and one-time checkout: held-key monthly trial signup, verified selected default, Spanish native records and attribution, a captured USD 10 native invoice and receipt, deactivation refusal, sensitive-value exclusion and complete cleanup. Monthly Checkout req_0I3O396WtK2f0O and default req_UutaquHoNYlrTT; one-time Checkout req_p0jI1SfmKwGk0Z and verified PaymentIntent req_ny91mayvOgF6vM; cleanup req_EuPP7h8Vi7vFld and req_LbJnvOMGACEq20. `tests/nectar/processor-journey.mjs` — consolidated processor public-door assertions. | — |
| `PAY-007` | Bank transfers to the customer's own virtual account number | target | missing |  | No processor connection, virtual bank account numbers, funding instructions on invoices or cash-balance application. |
| `PAY-008` | Owner-confirmed charge of an issued invoice | target | partial | `tests/nectar/native-collection.mjs` — nativeCollectionFlow: exact issued entity account and customer/card/amount, concurrent one-claim confirmation, current owner and factor, stale source refusal, captured receipt and atomic allocation and funding, search and list read-only uncertainty, definitive decline and authentication states, no receipt email or second PaymentIntent; separate fresh-factor same-card soft-decline recovery on the original intent, immutable first failure and exact recovered cash and rates, concurrent and replayed confirmation once, read-only lost-response recovery, and source, factor, hold and attempt-limit refusals. `tests/nectar/clause-browser.mjs` — native-collection native confirmation and all outcomes at 1440/390. | Owner-only remains interim. One separately prepared and confirmed same-card soft-decline recovery is supported on the original PaymentIntent, with unchanged full owed amount, account, customer and currency, current policy limits and no unattended authority. Hosted 3DS completion, changed-method recovery, broader retries and dunning, notices, receipts, finance and collections authority and portal remain unbuilt or unproved. Genuine exact-source provider qualification for the new recovery door remains unproved; this run uses Stripe faked only at its network edge. DUN-001 and DUN-002 adopted-default holds remain unchanged. Builder-reported live two-account sandbox run; generated receipt `docs/contract/sx-nectar-c22/native-two-accounts.json` at a51a1f4a2a269b0fab11ea96745fe5127c33b94e. |
| `DUN-001` | Smart retries | target | partial | `docs/retry-table.md`; `tests/nectar/payment-retries.mjs` — paymentRetriesFlow proves explicit default-off consent, versioned soft-decline timing, 8 total attempts and 14-day caps, the 4-attempt 7-day override, R01 and R09 two-reinitiation caps, prohibited returns and all hard declines, advice stops, whole-invoice dispute holds, payment and missing-method stops, lost-response reconciliation, one recovered allocation and identical invoice-page, API and failure-webhook next times. retryPlanChurnFlow proves frozen plan and explicit segment overrides, independent count and window minima, assignment changes and clearing for future consent, stale and non-owner refusal, audited custody, erasure and a recorded comparison for each segment policy. `tests/nectar/retry-methods.mjs` — retryMethodsFlow proves a failed renewal, new exact card consent, independent approval, same-intent once-only recovery, customer composition and erasure. retryAuthenticationFlow proves same-method customer authentication, an independently approved exact attempt, concurrent and repeated confirmation custody, cancelled and lost responses, clean callback handling, payment and customer parity, dispute and erased-session refusal, and rejection of an unrelated authentication host. `tests/nectar/retry-authentication-sandbox.mjs` — executable genuine original-card authentication journey on the same PaymentIntent through the hosted bank page, clean callback and one USD 12 allocation; exact-candidate held-key authentication run sx-nectar-c-i924-authentication records safe request IDs and cleanup. `tests/nectar/payment-retries-browser.mjs`; `tests/nectar/retry-methods-browser.mjs`; `tests/nectar/retry-authentication-browser.mjs` prove the native forms and end states at 1440 and 390. `tests/nectar/retry-bank-sandbox.mjs` — genuine verified-bank setup, failure observation, due boundaries, same-intent caps and terminal stops are countable only from its held-key result; invalidated mandates are explicit limitations, and normalized provider errors do not establish raw NACHA return codes. `tests/nectar/payment-retries-sandbox.mjs` — held-key run at source 1279b82bd63dfd4d23f49cbf1faff75b71659e88 proves genuine lost and stolen stops and a separately accepted replacement-card recovery of USD 12 on the same intent; all owned resources were cleaned up. | Policy approved with riders by CT on 26 October 2026 as an interim test-mode slice; no completion is accepted. Unproved: on a real Stripe test clock with the owner-adopted default policy retrying failed auto-charge renewals without per-invoice retry acceptance, insufficient_funds, do_not_honor and processing_error retrying at the table's times, no invoice exceeding 8 attempts or 14 days, one recovering, and the next attempt time matching across the invoice page, the API and the invoice.payment_failed webhook; stolen_card, lost_card and authentication_required not retried until a new card is added or the customer confirms, which pays once, by a held-key run on the exact landed SHA; a 4-attempt 7-day policy holding on the test clock; an ACH R01 return retried at most twice inside the window and R02 and R03 never retried, by genuine bank evidence, since normalized provider codes do not establish raw NACHA return codes; the 40-day default and 180-day outer bank bounds; and the same behavior through Adyen and Braintree, whose test accounts are not held. No production, card-network or NACHA compliance is claimed. |
| `DUN-002` | Dunning sequences | target | partial | `tests/nectar/dunning-sequences.mjs` — dunningSequenceFlow proves the four-email 21-local-day policy through real Worker and D1 public doors with Stripe and mail only at network edges: every exact scheduled message and HTML update link, mid-sequence hosted card replacement with separate customer acceptance and human approval, one original-intent cash allocation and no later messages; a second subscription restricted after day 21 and restored after actual settlement; an enterprise plan using distinct invoice-only timing without restriction. It also proves keep-active and native unpaid and governed cancellation results, immutable first failure, explicit message attribution and every failed and recovered count, amount and rate against independent attempt and allocation inputs; a later external allocation remains unrecorded rather than acquiring the last message. `tests/nectar/dunning-custody.mjs` — dunningCustodyFlow proves current owner authority, exact recipient and source, expiry, dispute and promise holds, paid stop, concurrent once-only claim, no uncertain resend or preparation bypass, exact audit, withdrawal and erasure. `tests/nectar/dunning-browser.mjs` — dunningSequenceFlow and dunningCustodyFlow through native owner and customer forms, actual English and Spanish email HTML and each end state at 1440 and 390. Outside-Verify exact-candidate clock and browser run: sx-nectar-c-i917-dunning-final. | Pending ct approval of the adopted conservative default: explicit fresh-factor owner enrollment, per-message preparation and send confirmation, short-lived existing hosted setup links, separately consented and human-approved original-intent recovery within original caps, and explicit terminal confirmation with cancellation through existing governance. No unattended sequence or terminal action is enabled; optional step webhooks and full archive and restore proof remain unbuilt. The original full clause and GOV-001 broader role duties remain required; this owner-only operational custody is interim, while existing customer and invoice and payment and report reads retain their capabilities. Provider acceptance does not claim mailbox delivery. |
| `DUN-003` | Trial, renewal and payment notices | target | partial | `tests/nectar/payment-retries.mjs` — paymentRetriesFlow invokes `tests/nectar/billing-notices.mjs` billingNoticeAssertions and sendBillingNoticeAssertions through actual Worker, D1, authenticated JSON commands and the simulated mail network edge: off-by-default sender choices, exact allocation and failed-debt figures, versioned template edits, source and settings staleness, independent switches, English and Spanish numeric parity, one concurrent claim, exact accepted payload and provider reference, refused and uncertain outcomes without resend, atomic claim and outcome audit, expired-factor and frozen-deadline refusal, recipient/language/customer-revision and mail sender/credential binding staleness, support and signed-out send refusal, native erasure and unchanged recovery facts. `tests/nectar/payment-retries-browser.mjs` renders actual English and Spanish notice HTML at 1440 and 390 within existing Verify. | Pending ct approval of the adopted interim default: explicit fresh-factor owner configuration, preparation and separate send confirmation; no unattended notices or new payment authority. Current send doors cover native retry failures and recorded positive payment allocations only. Trial-ending, upcoming-renewal, payment-method-required and authentication-required send doors, template settings screens, linked processor-hosted authentication without interim preparation and approval, real Stripe trial-to-conversion and authentication renewal clock journeys, Adyen and Braintree equivalents, real provider notice outcomes (the named SendGrid key is not provisioned in this cloud), and notice-linked recovery-step attribution remain unproved. CAT-012 retains its existing refund-sender proof. The complete original acceptance, DUN-004 exact counts and amounts and rates, PORT-006 language duties and one-sender rule remain binding; no mailbox-delivery claim. |
| `DUN-004` | Recovery reporting | target | done | `tests/nectar/payment-retries.mjs` — paymentRetriesFlow independently reconciles first-failure cohorts, failed amounts, recovered cash, recovered-invoice counts and both rates in every decline, attempt and unrecorded-step bucket to paid-edge attempts and public invoice allocations after deterministic scheduled-clock runs. retryPlanChurnFlow proves frozen plan and segment policy comparisons, no churn inferred from exhaustion, and exact owner-confirmed ended-subscription attribution, non-owner and paid-invoice refusal, without changing debt or cash. retryComparisonFlow independently replays every published attempt offset and outcome, checks both rates and amounts, requires every configured policy comparison and its fixed baseline, and reconciles guide timing, numeric claims and citations with the record. Saved comparison counts and windows are derived from successful configuration writes, independently of the comparison response. `tests/nectar/retry-comparison-description.mjs` — assertComparisonDescription reconciles every published payment, success interval, recovery hour, headline, result table, additional cash and percentage-point claim to the independent replay; assertTimingTable reconciles each card and bank delay, count and window to frozen terms and observed public invoice next times in paymentRetriesFlow. `tests/nectar/native-collection.mjs` — nativeCollectionFlow proves manual, trial and prepaid refusal coverage, the first-failure time and amount, pre-failure and unallocated cash exclusion, partial cash without full recovery, credit and pending and uncertain exclusions, capped recovery and all bucket rates against public payments and allocations. `tests/nectar/dunning-sequences.mjs` — dunningSequenceFlow proves current recorded message-step exposure, independent failed and recovered counts, amounts and both rates, exact recovery on message step 3 and retry attempt 2, and unrecorded attribution for later external cash. `tests/nectar/payment-retries-browser.mjs` proves the populated report, source links, comparison and churn states at 1440 and 390. Outside-Verify exact-candidate clock journey run: sx-nectar-c-i924-retry-recovery. `src/nectar/retry-comparison.json`; `docs/retry-comparison.md`; `src/nectar/retry-report.ts`; `src/nectar/retry-comparison.ts`. |  |
| `AR-001` | Collections cadences sent from Nectar | target | done | `src/nectar/cadence-policy.ts`; `src/nectar/cadence-actions.ts`; `src/nectar/cadence-holds.ts`; `src/nectar/cadence-reservations.ts`; `src/nectar/cadence-mail.ts`; `src/nectar/cadence-scheduler.ts`; `src/nectar/ui/cadences.ts`; `src/nectar/collections.ts`; `tests/nectar/cadences.mjs` | Ct 19 October 18:17Z approved current transfer terms, holds, policy and exact mail custody; PAY-007/INV-002 retain processor enrollment and delivery-event parity. |
| `AR-002` | Cash application | target | partial | `tests/nectar/remittance-files.mjs` — remittanceFilesFlow: public CSV upload, exact USD source identity, three-invoice wire preview and confirmed atomic application, paginated short-payment queue, unidentified and ambiguous deposits reviewed by a person, separate confirmed allocation, independent receipt and customer ledger and report CSV figures, file replay and concurrent confirmation once, changed-payload and stale-balance and foreign-customer and currency and authority refusals, automatic customer-balance and write-off bypass refusal, audit-failure rollback, erasure and native forms at 1440 with release screens at 1440 and 390. `tests/nectar/processor-archive.mjs` — remittances phase: actual rer export and restore of redacted receipt and allocation custody, owner-only due financial removal with replay tombstones retained, and old source replay refused after restoration. `tests/nectar/flows.mjs` retains ordinary manual-payment allocation proof. | Plaid sandbox bank-feed wire and ACH remittance acceptance, automatic application without per-receipt human confirmation, processor-payout matching and the shared PAY-007 virtual-account cash-balance queue with actual processor application and the 75-day return-deadline journey remain owed. Uploaded file confirmation records received funds only; it does not verify a bank transfer or processor settlement. Existing PAY-004 adopted transfer matching, reconciliation and return-policy holds stay unchanged. |
| `AR-003` | Disputes and chargebacks | target | missing |  | No dispute or chargeback tracking. |
| `AR-004` | Write-offs and bad debt | target | done | `src/nectar/write-offs.ts`; `src/nectar/ledger-postings.ts`; `src/nectar/ledger/quickbooks.ts`; `src/nectar/balance-sql.ts`; `src/nectar/ui/write-offs.ts`; `migrations/core/0068_write_offs.sql`; `tests/nectar/quickbooks-edge.mjs`; `tests/nectar/write-offs.mjs` — writeOffFlow (real Worker/D1 public doors, QuickBooks at a synthetic network edge): the 120-day balance written off, leaving ageing and the AR report, one balanced bad-debt journal, the live cadence sending before and nothing after, a partial recovery and its reversing journal; the $1,000 limit ($1,500 refused direct and for the preparer, executed once by a different person, $900 by one person, stale/policy-changed/duplicate/agent requests change nothing, audit names both people); outage, lost-response and retry posting exactly once. `tests/nectar/erasure.mjs` — erasureFlow (write-off reason erased, typed facts retained); `tests/nectar/billing-roles.mjs` — billingRolesFlow (role reach of every write-off door). | Live QuickBooks sandbox proof, connection grant and refresh and account and customer mapping are BOOK-001. |
| `AR-005` | Accounts-payable portal submission | target | missing |  | No AP portal submission. |
| `AR-006` | A payment confirmed from a bank deposit is never counted again when the same payment arrives through ordinary remittances: the two sources reconcile to one payment | target | done | `tests/nectar/remittance-files.mjs` — remittanceFilesFlow, crossSourcePayments: (1 and 5) native bank-deposit staging and confirmation followed by upload and confirmation of the identical ordinary CSV retains one original $10 payment and allocation; (2) ordinary CSV first and bank deposit second retains one payment, including concurrent confirmation and audit-failure rollback; (3) both distinct source references resolve to the same canonical receipt and payment, and replay or conflicting reuse never adds money; (4) the native payment receipt and its audit name both confirmed sources without deleting either. The journey also proves authority refusal, revocation, erasure and replay tombstones, with release screens at 1440 and 390. `tests/nectar/processor-archive.mjs` — processorArchiveJourney, remittances phase: both source records survive actual archive restoration as redacted financial custody, expire together under owner-authorized removal and cannot recreate money through replay. | |
| `PORT-001` | Customer billing portal | target | missing |  | No customer-facing portal. |
| `PORT-002` | Usage, credits and upcoming charges in the portal | target | done | `tests/nectar/commitments.mjs` — commitments: three-year under-use, true-up, over-use and ramp; identical customer and operator nominal and active minimums, issued eligible earnings, true-ups and remaining amounts, permitted invoice links, original issued lines and separate approved correction contributions; fees, tax and fixed credits excluded; trial, pause and cancellation active-day parity, foreign-customer refusal and write-free reads. `tests/nectar/entitlement-quotas.mjs` — entitlementQuotasFlow: exact customer quota quantities and remaining units at fractional, exact and exceeded soft, hard and overage boundaries. `tests/nectar/portal-corrections.mjs` — portalCorrections and nextInvoiceCorrections, run by portalSessionsFlow: actual ingestion and approved ordinary and derived usage, all current contract amendment and issued-credit correction kinds, exact operator JSON and HTML and customer preview, independently summed scoped usage CSV, frozen cited explanations, isolation, unchanged preview fingerprints and lines at ordinary issue. `tests/nectar/prepaid-report-parity.mjs` — prepaidRefreshParity, run by prepaidRefreshLedgerFlow and prepaidRefreshTopupFlow: customer and operator and API balances equal the prepaid ledger at grants, drawdown, rollover, expiry and automatic funding within 60 seconds without consumption. Outside-Verify exact-candidate timing receipt: sx-nectar-c-i789-refresh. `tests/nectar/portal-prepaid.mjs` — portalPrepaidFlow: customer ledger and source and CSV, session boundaries and English and Spanish numeric parity. `tests/nectar/portal-answers.mjs` — portalAnswersFlow: ten topics, exact permitted source operands and citations, honest refusal, foreign-customer denial, write-free reads and pending governed proposals. `tests/nectar/clause-browser.mjs` — portal-usage: native refresh, quota and commitment states, permitted invoices, correction screens and ten answers at 1440 and 390, rendered English and Spanish commitment amount parity. `tests/nectar/portal-prepaid-browser.mjs` — prepaid pages and sources in both languages at 1440 and 390. `tests/nectar/customer-language.mjs` — translationFiles: complete language addition and missing-string refusal. |  |
| `PORT-003` | Self-service plan changes within policy | target | partial | `tests/nectar/portal-change-requests.mjs` — portalChangeRequestsFlow: approved merchant choices and seat floor, pending below-minimum downgrade, flat and seat request forms, native Settings preparation and independent approval, English and Spanish customer forms, capability-specific catalog projection, exact own-customer status, concurrent replay, stale source and policy refusal, operator capability checks, audit rollback, expired and revoked and foreign session refusal, unchanged plans and invoices and money, and operational erasure. `tests/nectar/erasure-archive.mjs` — pending request export, erasure, old-archive refusal, anonymized restore and inactive restored portal-retention authority journey. `tests/nectar/portal-sessions.mjs` — portalSessionsFlow retains signed customer custody. `tests/nectar/portal-renewal.mjs` — portalRenewalFlow: read-only same-engine monthly arrears change estimates with independently computed proration and no mutation, own-customer single-confirmation term cancellation, optional approved discount and pause and downgrade saves with accepted and declined report outcomes, dated win-back, actual two-period and three-period invoices, English and Spanish forms, stale source and policy refusal, audit rollback, replay, revoked approval and expired sessions and erasure. | Requests currently support one active simple monthly flat or seat item billed in arrears. Adopted conservative default pending ct: owner-prepared restrictions use existing independent approval or explicit audited sole-owner confirmation; requests grant no execution, collection or outbound authority. Scoped delegation and provider boundaries remain owed. Current approved terms now support portal cancellation of the next renewal and exact approved SUB-005 saves and dated win-back; cancellation stays one optional-reason confirmation and never requires accepting a save. Pause saves also require the approved portal pause permission and refuse signed commitment overlaps; downgrade saves respect approved choices, seat floor and signed minimums. Portal retention needs a live grant from current policy approval, excluded from archives; restored policy evidence alone grants no customer execution authority. Read-only proration estimates currently cover one unissued simple monthly arrears item through JSON and English and Spanish forms. Executing ordinary upgrades and downgrades and seat changes, complete preview coverage and ordinary confirmation and payment, non-term cancellation, merchant scheduling, full plan eligibility and minimum-term execution remain unbuilt. Mixed items and other intervals remain unsupported for ordinary changes. Broader SUB-004 and SUB-005 parity, live SUB-002 work and PAY-003 collection dependencies remain unchanged. |
| `PORT-004` | Payment methods in the portal | target | done | `tests/nectar/customer-payment-methods.mjs` — assertHostedSetups inside customerSearchFlow: separate customer setup and default consent, card replacement, verified ACH, definitive provider-result checks, scoped one-purpose return, once-only writes, uncertainty reconciliation, revocation, erasure and sensitive-data exclusion. `tests/nectar/portal-method-actions.mjs` — assertPortalMethodActions inside customerSearchFlow: customer-confirmed default and removal, current fresh owner preparation, current customer and binding fences, existing collection authority protection, concurrent claim, read-only lost-result recovery, customer isolation and identical English and Spanish figures. `tests/nectar/portal-methods-browser.mjs` — native owner and customer prepared, complete, uncertain, removed and refused screens at 1440 and 390; heavy-slot run 20261026T115225919984Z-heavy-slot-10845b42. `scripts/check-locales.mjs` and `tests/nectar/customer-language.mjs` — translationFiles missing-string coverage. `tests/nectar/automatic-collection.mjs` — automaticCollectionFlow: exact customer consent and independent native finance approval collect once; run 20261026T123528651710Z-heavy-slot-950c728e. `tests/nectar/hosted-setup-sandbox.mjs` — real held-key Stripe portal replacement and verified ACH, explicit default, next-invoice card capture and next-invoice ACH processing on the selected new methods, separate customer and finance authority, lost-default read-only recovery, cleanup and 1440 and 390 end states at e8a196047c209a82d75ad740d06c268c93e77a17. Card default and charge requests req_nGYYtRpLgXvVEc and req_uDKSCQ1VQMnu0N; ACH verification and default and charge requests req_MXWG3eZgNKTxzS, req_haVgTT4l5aNXRw and req_iLwQPx3Tb3Zk4q; cleanup req_iaDXti01ur5Dso. | PAY-002 setup-only custody riders remain binding. Setup alone grants no debit authority; each demonstrated invoice has separate exact customer consent and a different finance approver. ACH processing is recorded as pending settlement, never captured cash. PAY-001 and the remaining PAY-002 provider doors inherit the same custody before shipping. |
| `PORT-005` | Embedded portal and branded domain | target | done | `src/nectar/portal-session.ts`; `src/nectar/portal-policy.ts`; `src/nectar/portal-data.ts`; `src/nectar/portal-http.ts`; `src/nectar/portal-answers.ts`; `src/nectar/portal-answer-data.ts`; `src/nectar/portal-answer-proposals.ts`; `src/nectar/portal-upcoming.ts`; `src/nectar/portal-correction-data.ts`; `src/nectar/portal-privacy.ts`; `examples/portal/app.mjs`; `tests/nectar/portal-sessions.mjs`; `tests/nectar/portal-embedding.mjs`; `tests/nectar/portal-answers.mjs`; `tests/nectar/portal-corrections.mjs`; `tests/nectar/portal-privacy-retention.mjs`; `tests/nectar/portal-journey.mjs` | Complete signed-session embedding and branded-host custody, ten own-customer cited answer topics, explicit pending governed credit requests, all current correction and same-engine next-invoice effects, and populated privacy/retention/receipt/archive journeys. Every future customer door inherits these obligations before shipping; PORT-001..004 keep their separate full capability targets. Local HTTPS host routing is proven; live merchant DNS provisioning is not claimed. |
| `PORT-006` | Customer-facing language | target | done | `src/nectar/locale.ts`; `src/nectar/locale-keys.ts`; `src/nectar/locales/en.json`; `src/nectar/locales/es-US.json`; `scripts/check-locales.mjs`; `migrations/core/0038_customer_language.sql`; `tests/nectar/customer-language.mjs` | Pattern 1 over today's customer mail/pages (SUB-004/005, TAX-002, AGENT-002 notices, AR-001 facts); portal, invoice mail, hosted page/PDF, checkout, payment links, dunning and MOB-003 inherit before they ship. |
| `TAX-001` | US sales tax through a tax provider | target | partial | `src/nectar/business.ts`; `src/nectar/rating.ts`; `tests/nectar/flows.mjs` | One reviewed flat state rate with exemptions ships (NEC-01); no Stripe Tax, Avalara, Anrok or TaxJar calculation, commit or reversal. |
| `TAX-002` | Exemption certificates | target | done | `src/nectar/certificates.ts`; `src/nectar/certificate-reminders.ts`; `tests/nectar/certificates.mjs` — TAX-002 public HTTP and scheduled-event journey |  |
| `TAX-003` | Tax reports for filing | target | missing |  | No tax reports. |
| `TAX-004` | Economic-nexus monitoring | target | missing |  | No per-state sales tracking or nexus warnings. |
| `BOOK-001` | QuickBooks Online, Xero and Pantry sync | target | missing |  | No QuickBooks Online, Xero or Pantry sync; CSV exports only. |
| `BOOK-002` | NetSuite and Sage Intacct sync | target | missing |  | No NetSuite or Sage Intacct sync. |
| `REV-001` | ASC 606 revenue schedules | target | done | `src/nectar/revenue-allocation.ts`; `src/nectar/revenue-records.ts`; `src/nectar/revenue-reports.ts`; `src/nectar/revenue-usage.ts`; `src/nectar/ui/revenue.ts`; `tests/nectar/revenue.mjs`; `tests/nectar/revenue-policy.mjs`; `tests/nectar/revenue-erasure.mjs`; `tests/nectar/credit-correction.mjs`; `tests/nectar/draft-corrections.mjs` `tests/nectar/revenue.mjs` — additional retained revenue assertions. | Every current line kind and correction has immutable schedules, exact month deltas, journal/roll-forward/source and CSV parity; CAT-001/CAT-004/REV-002 inherit annual advance, prepaid and close and ledger duties under ct’s approved current boundary. |
| `REV-002` | Revenue close and journal export | target | done | `src/nectar/period-close.ts`; `src/nectar/period-close-keys.ts`; `src/nectar/revenue-journal.ts`; `src/nectar/revenue-reports.ts`; `src/nectar/ui/period-close.ts`; `migrations/core/0069_period_close.sql`; `tests/nectar/period-close.mjs` — periodCloseFlow (real Worker/D1 public doors, ledger at a synthetic QuickBooks edge): August and September closed in order with who and which-month refusals; opening + billings − revenue = closing for every month; each close saves its balanced summarized journal and posts it once; a credit note and an invoice dated inside a closed month, an AGENT-002 credit proposal and a draft-correction preview and approval report in the open month (adjustedFrom, postsIn) while the closed month, its journal CSV and revenue CSV stay byte-identical; the open month closes with its adjustments; outage and lost-response retry post exactly once; the frozen billings and collections packet. periodCloseDeferredFlow: a nonzero annual-advance deferred position closes month by month, ties and survives a later credit. `tests/nectar/revenue.mjs` — revenueFlow (journal/CSV/source parity); `tests/nectar/billing-roles.mjs` — billingRolesFlow (role reach of the close doors). | Live ledger sandbox proof, connection grant and refresh and account mapping (`Billings Clearing`, `Contract Assets`, `Deferred Revenue`, `Revenue`) are BOOK-001/BOOK-002; tax and cash settlement entries stay outside the revenue journal; imported-source revenue closes in the packet but posts to no company. |
| `RPT-001` | SaaS metrics | target | partial | `src/nectar/reports.ts`; `tests/nectar/reports.mjs` | A billed monthly recurring revenue snapshot drills to issued lines. Normalized MRR/ARR, movements, historical move-in metrics, churn, retention, cohorts and segmentation remain absent. |
| `RPT-002` | Financial reports | target | done | `src/nectar/reports.ts`; `src/nectar/financial-reports.ts`; `src/nectar/report-mail.ts`; `tests/nectar/financial-reports.mjs`; `tests/nectar/usage-replay.mjs` — usageDispositionFlow exact attributed tax/AR/carried-liability source and CSV and scheduled parity | Current-record reports, matching scoped CSVs, exact source and aging evidence and self-opted monthly frozen delivery proven; future settlement and refund, net tax, balance and imported-history duties retained by INV-005/PAY-004/INV-006/CAT-004/MOVE-007. |
| `RPT-003` | Drill-through from every figure | target | done | `src/nectar/reports.ts`; `src/nectar/report-lines.ts`; `src/nectar/ui/reports.ts`; `tests/nectar/reports.mjs` — RPT-003 named public-door journey |  |
| `RPT-004` | Warehouse and BI export | target | missing |  | No warehouse sync. |
| `CRM-001` | Closed-won deals become subscriptions | target | missing |  | No Orbit, Salesforce or HubSpot connection. |
| `CRM-002` | Signed order forms and contracts as inputs | target | partial | `src/nectar/proposals.ts`; `tests/nectar/flows.mjs` | An agent can propose contract terms quoting a signed agreement (NEC-14); no document intake from Inkwell, Docusign, PandaDoc, Platter or Locket. |
| `INT-001` | Chat alerts and approvals | target | missing |  | No Slack or Nook messages. |
| `INT-002` | Workflow automation and support context | target | missing |  | No Crank or Zapier triggers and no support or success read integration. |
| `INT-003` | Team email notifications | target | done | `src/nectar/notifications.ts`; `src/nectar/notification-mail.ts`; `src/nectar/notes.ts`; `tests/nectar/notifications.mjs`; `tests/nectar/notes.mjs` — named INT-003 public-door journeys | Current event kinds complete under ct 19 October ruling; AR-003/PAY-004/DEV-001 carry future event obligations in text and acceptance. |
| `MOVE-001` | Item-price billing source move-in | target | missing |  | Stripe Billing is the only move-in source. |
| `MOVE-002` | Add-on billing source move-in | target | missing |  | Stripe Billing is the only move-in source. |
| `MOVE-003` | Component billing source move-in | target | missing |  | Stripe Billing is the only move-in source. |
| `MOVE-004` | Two usage-billing source move-ins | target | missing |  | Stripe Billing is the only move-in source. |
| `MOVE-005` | Payment methods move with the customer | target | missing |  | Stripe payment-method references are not used and no token migration exists. |
| `MOVE-006` | Live source connection and two-sided cutover | target | partial | `src/nectar/movein/stripe.ts`; `tests/nectar/flows.mjs` | Uploaded Stripe captures, shadow comparison and adoption from an unbilled period ship; no live API sync, no cancellation of the Stripe subscription at cutover and no listing of open Stripe quotes. |
| `MOVE-007` | Moved-in history counts from day one | target | done | `tests/nectar/move-history.mjs` — moveHistoryFlow: typed immutable subscription/payment/refund/dispute/credit history, source labels, 18-month MRR/billings, CSV/drill/frozen snapshots, opening eight-month annual liability, monthly recognition and no native rating/approval/issue. moveHistoryErasureFlow: complete imported families plus 10,000 native events, exact financial retention/removal. `tests/nectar/import-originals.mjs` — importOriginalsFlow: owner-only audited attachment bytes/digests, all nonowner/agent/signed-out refusals and erasure withdrawal. `tests/nectar/move-collection.mjs` — moveCollectionFlow: unchanged open original collected once, paid/void refusals, current source/authority, separately confirmed mirror, uncertainty/read-only reconciliation and no second charge. `tests/nectar/stripe-history-sandbox.mjs` — held-key live 18-month Stripe clock/import/report/annual-recognition/originals/native-charge/separate-mirror journey; generated preliminary receipt `docs/evidence/stripe-history-sandbox.json`, exact-candidate external run c22-landing-1c-sandbox retained with campaign evidence. `tests/nectar/clause-browser.mjs` — history/collection modes at 1440/390. Exact-candidate scale run c22-landing-1c-scale (HEAD logged by clause-runner). `tests/nectar/move-history.mjs` — additional retained history assertions. | Native collection is the ct-approved owner-confirmed saved-default-card first slice of MOVE-009; the full automatic/multi-provider duties stay with MOVE-009. Provider free text/metadata never enter ordinary projections; raw originals remain owner-only attachments under ct 21 October 22:35Z. |
| `MOVE-008` | Live billing state carries across cutover | target | partial | `src/nectar/movein/stripe.ts`; `tests/fixtures/stripe/subscriptions.json`; `tests/nectar/flows.mjs` | Percentage coupons move with their duration as approved discounts and reconcile in the shadow comparison, and customer tax exemption moves; fixed-amount coupons and schedules are only noted, paused subscriptions are rejected, and promotion codes, customer balances, pending invoice items, tax IDs and the upcoming-invoice parity check are missing. |
| `MOVE-009` | Open balances at cutover are collected exactly once | target | partial | `tests/nectar/move-collection.mjs` — moveCollectionFlow: exact live source/authority confirmation, one native processor attempt, separate mirror consent, source-paid refusal, uncertainty read-only reconciliation, no second charge and erasure retention; `tests/nectar/clause-browser.mjs` — collection mode native forms at 1440/390. | Only the ct-approved explicit owner Stripe saved-default-card slice exists; its live single charge and separate out-of-band mirror pass the held-key sandbox receipt. Whole cutover, collector choice, dunning/portal/retries/unapplied cash and MOVE-001..004 provider legs remain. Other-provider sandbox accounts are not held. |
| `MOVE-010` | Usage reaches exactly one biller through the shadow run and adoption | target | partial | `src/nectar/usage.ts`; `src/nectar/movein/stripe.ts`; `tests/nectar/flows.mjs` | Usage posted to Nectar rates shadow subscriptions by the Stripe customer id and reconciles with Stripe's invoices, and adoption bills only from the cutover period; no relay to Stripe meter events or other billers, no Stripe-format meter-event endpoint, no per-period source recorded on events, no late-event routing and no check against `meter_event_summaries`. |
| `MOVE-011` | Invoice numbering continues from the previous biller | target | partial | `src/nectar/invoice-numbering.ts`; `src/nectar/number-register.ts`; `src/nectar/ui/invoice-series.ts`; `src/nectar/ui/number-register.ts`; `migrations/core/0051_invoice_numbering.sql`; `migrations/core/0052_credit_numbering.sql`; `src/nectar/movein/stripe.ts`; `src/nectar/movein/target.ts`; `src/nectar/receivables.ts`; `tests/nectar/numbering.mjs` — numberingFlow: source invoice and credit continuation, new series, collision atomicity, register and gaps; `tests/nectar/numbering-entities.mjs` — numberingEntitiesFlow: owner-recorded settings custody, per-entity and customer sequences, frozen route snapshots, stale approval refusal and filtered CSV; `tests/nectar/clause-browser.mjs` — numbering mode native forms at 1440/390 | Captured invoice continuation preserves the exact prefix and minimum suffix width, globally or per customer; unused new series start at 1. Imported-number collisions refuse issue atomically. The unified register and CSV lists every retained imported invoice, issued invoice and imported and native credit note, duplicates, unparsed numbers and inclusive gaps between the smallest and largest recorded suffix in each exact prefix/width/kind group. Imported issued and void credit-note captures now retain their source numbers and references in the reviewed journal and unified register, without changing invoice balances. Governed native credit issuance continues captured account and customer credit prefixes and widths independently, or starts an unused credit series at 1; collisions and refused approvals consume no number. Owner-recorded settings are distinguished from live customer API captures and do not claim live account settings. BLOCKED: authenticated Stripe Dashboard account-level and customer-level numbering configuration captures for two test accounts are not held; the Account API exposes neither account numbering mode nor account next sequence. SET-001 real two-processor routing passed in the generated native sandbox receipt; QuickBooks company authorization and posting remains unproved. MOVE-011 stays partial for the two authenticated source settings captures. |
| `GOV-001` | Billing roles | target | done | `src/nectar/actor.ts`; `src/nectar/access.ts`; `src/nectar/credit-policy.ts`; `migrations/core/0047_billing_roles.sql`; `tests/nectar/billing-roles.mjs` — GOV-001 HTTP journey | Collections, sales, support, developer and owner-defined custom roles reach exactly their capabilities in every handler; DEV-001 webhooks, DEV-004 test mode and each new record kind or door (AR-003, INV-005, INV-006, PAY-002/PORT-004, MOVE-006 quotes) declare their family capability before they ship. |
| `GOV-002` | Approval policies and separation of duties | target | done | `src/nectar/credit-policy.ts`; `src/nectar/proposals.ts`; `tests/nectar/credit-policy.mjs`; `tests/nectar/price-approvals.mjs`; `tests/nectar/price-overrides.mjs`; `tests/nectar/price-switches.mjs`; `src/nectar/policy-changes.ts`; `tests/nectar/policy-approvals.mjs`; `src/nectar/price-versions.ts`; `tests/nectar/catalogue-approvals.mjs` — GOV-002 public-door journeys |  |
| `GOV-003` | Single sign-on and provisioning | target | partial | `tests/nectar/enterprise-identity.mjs` — enterpriseIdentityFlow: owner configuration, SCIM create and immutable role mapping, valid signed SAML into native sessions, wrong audience and recipient, stale and tampered assertions, browser binding and replay refusal, MFA-context refusal and acceptance, immediate session and in-flight revocation, reactivation without old sessions, and credential rotation. `tests/nectar/mfa.mjs` — mfaFlow: existing required-factor and fresh-factor behavior retained. `tests/nectar/billing-roles.mjs` — billingRolesFlow: every preset and custom role retains exactly its public doors. `tests/nectar/enterprise-identity-browser.mjs` — native connection authorization, provisioned and ended states and mapped member at 1440 and 390. `tests/nectar/enterprise-linking.mjs` — enterpriseLinkingFlow: existing native session and signed provider proof, exact fresh-factor owner approval, unchanged preset role and member and operator attribution, concurrent replay refusal, expired proof and stale configuration or membership refusal, revoked native-session proof refusal after a new sign-in, audit rollback, immediate old-session and pending-link invalidation, and no restored enterprise authority through enterpriseLinkingArchive. `tests/nectar/enterprise-identity-browser.mjs` — linking mode: native member proof entry and owner approval, active and deprovisioned states at 1440 and 390. `migrations/core/0125_enterprise_linking.sql`. | Held Okta app, group and user configuration and SCIM creation are reported as passing, but authentic Okta SAML sign-in remains unproved: the session-token journey returns an interactive sign-in page; no completed live sandbox result is claimed. Ct approved the conservative defaults with riders on 26 October 2026 at review pin 5a4535586358fb5e3089b4fbdab84cf13a39cf9c; this is policy approval only and GOV-003 remains PARTIAL. Named Gaps: authentic Okta SAML sign-in; live interoperability evidence for Microsoft Entra ID, Google Workspace, JumpCloud and Auth; OIDC coverage not established by the cited SAML journey; safe existing-member linking; owner provisioning, custom-role mappings and broader administrator provisioning where unsupported; and implementation or provider proof absent for any retained obligation. Every original acceptance point, named provider and standard remains required. Future identity and provisioning doors inherit GOV-001 authority, GOV-007 freshness, audited consent and immediate deprovisioning before shipping. Policy approval does not establish implementation completion, provider interoperability or legal compliance. |
| `GOV-004` | Durable audit trail | target | partial | `tests/nectar/flows.mjs` — auditBillingWrites: 74 distinct action and door pairs with exact actor, request-bounded time, action, subject and submitted detail; customer and contact changes, catalog setup and governed revisions, subscriptions, amendments, quantity changes, signed commitments, price proposals, lifecycle policy decisions, pause and resume and cancellation and reactivation, invoices, credits, payment evidence and credential-attributed usage; unchanged prior rows, self and stale and duplicate refusals, allocation and cancellation races, and lifecycle rollback when audit storage refuses an insert. auditImportWrites: API and form apply and undo for 16 native targets, typed audit subjects reconciled with public records, duplicate import without new native mutations, and audit-storage refusal rolling back native publication and removal. Native import target mutations carry their typed audit insert in the same guarded target batch. auditAutomatedPolicyWrites reuses invoiceAutomationFlow to reconcile nine scheduled events with their exact automated policy actor and public records. Owner and accountant JSON and page reads and issued invoice event parity remain asserted. `tests/nectar/journey.mjs` — audit-only journey: native pause and resume and import preview and apply, owner and accountant audit and issued invoice screens at 1440 and 390, and complete unchanged audit rows in a real rer export. | Complete per-write assertions remain unproved for prepaid and refunds, balances and write-offs, currency and hierarchies, webhook and notification custody, privacy, automated policy configuration and other scheduled jobs. Subscription and contract and proposal variants beyond the named native examples, other governed policy kinds and sole-approver paths, extended imported history kinds and import job progress and resumptions still need their own exact audit and atomicity assertions. |
| `GOV-005` | Personal-data erasure with financial retention | target | done | `tests/nectar/erasure.mjs` — erasureFlow: existing verification/authority/single-use/stale/retention/public-door and every-family assertions; erasureScaleFlow: 10,000 events plus exact paid financial custody and unchanged peer. `tests/nectar/move-history.mjs` — moveHistoryErasureFlow: all imported history plus 10,000 native events, retained reports/revenue and once-only due removal. `tests/nectar/erasure.mjs` — nativeIntervalErasureFlow: entity/annual+monthly/scoped retention/cancellation families, exact paid credits, private-text removal and dependency-ordered statutory purge. `tests/nectar/erasure-archive.mjs` — real rer export/reset/import, pre-erasure refusal with later journal and anonymized restore. `tests/nectar/clause-browser.mjs` — erasure mode at 1440/390. Exact-candidate external runs c22-landing-1c-scale and c22-landing-1c-archive; no per-row request-budget exception or weakened source/authority fence.  `tests/nectar/prepaid.mjs` — prepaidErasureFlow and prepaidScaleErasureFlow: exact prepaid liability/revenue retention with 10,000 additional customer events. `tests/nectar/prepaid-refunds.mjs` — prepaidRefundFlow: retained anonymous refund cash/credit facts and seven-year removal. `tests/nectar/prepaid-topup.mjs` — prepaidTopupFlow: source authorization withdrawal with no further charge. Builder-reported exact-candidate scale and real archive runs c22-final-scale/c22-final-archive, HEAD logged by the journeys; ct’s source-only re-read did not independently certify these receipts. `tests/nectar/recovery.mjs` — retained financial custody and erased operational records through archive restore. | The initial 10,000-event refusal was fixed with compact complete-image guards and atomic set-based writes. PORT-001 and future customer record families inherit complete own-customer request/receipt and erasure/retention parity before shipping. |
| `GOV-006` | Provider secret custody | target | partial | `src/nectar/access.ts`; `tests/nectar/flows.mjs` | Agent credentials are shown once, stored as SHA-256 and revocable; no provider secrets exist yet to encrypt, scope or rotate. |
| `GOV-007` | Required multi-factor sign-in | target | done | `src/nectar/mfa.ts`; `src/nectar/mfa-crypto.ts`; `src/nectar/webauthn.ts`; `src/nectar/http.ts`; `src/nectar/ui/security.ts`; `migrations/core/0043_mfa.sql`; `tests/nectar/mfa.mjs`; `tests/nectar/mfa-passkey.mjs`; `tests/nectar/mfa-archive.mjs` — GOV-007 HTTP, browser and archive journeys `tests/nectar/recovery.mjs` — sealed MFA recovery through the public archive door. | Credits above the support limit, support-limit changes, access, credential and cutover step-ups exist today; refunds, voids, write-offs, provider credentials and the live cutover inherit them before they ship. |
| `GOV-008` | Customer financial visibility and erasure privacy | target | done | `tests/nectar/billing-roles.mjs` — financialVisibilityFlow: point 1 native and imported invoice numbers, dates, totals and balances across customer, child, subscription, lookup, customer-balance JSON and CSV doors; point 2 combined payment authority including notes, metadata search, invoice drill-through and write-off recovery; point 3 Sales, customer-only and payment-only financial sections and existence hints absent; point 4 approved native and imported erasure removes identifiers while retaining independently reconciled invoice facts and refusing capture replay; point 5 full customer, invoice, payment and audit snapshots unchanged by allowed and refused reads, with next-request role and credential revocation. customerVisibilityBrowserJourney: actual built customer, child, lookup and erased screens at 1440 and 390, invoked by `tests/nectar/public-door-journey.mjs` in push Verify. `tests/nectar/erasure.mjs` — erasureFlow preserves existing verification, financial retention and removal; `tests/nectar/entitlement-visibility.mjs` — entitlementVisibilityFlow preserves the separate combined-capability entitlement rule. |  |
| `MOB-001` | Every operator screen works on a phone | target | done | `tests/nectar/journey.mjs`; `src/nectar/ui/html.ts` — `tests/nectar/journey.mjs`: cycle, all main phone screens, phone payment and exact portable-row restore in named Nightly acceptance; local managed run 20261024T123231756063Z-heavy-slot-dda62111 passed. `tests/nectar/public-door-journey.mjs` — consolidated retained operator browser journeys. |  |
| `MOB-003` | Customer-facing pages and emails work on a phone | target | missing | `tests/nectar/mobile-customer.mjs` — nativePaymentLinks: native consent, scoped returns, captured figures and one-confirmation cancellation by taps; nativeMethods: card and bank setup consent, default and removal by taps with existing refusal and replay checks; nativeInvoices: own-customer English and Spanish figures, actual PDF downloads and foreign, revoked, altered and expired capability refusals; nativeMessages: actual human-confirmed English and Spanish dunning and expiry HTML, matching figures and dates, single-column fit, 44-pixel primary links and tapped update and recovery consent. All native states assert no horizontal overflow in a 390 × 844 mobile context with touch enabled. | Main's missing judgment is retained pending complete clause qualification. Native touch proof uses real Worker and D1 with substitutions only at processor and mail network edges; it establishes neither genuine Stripe mobile payment nor mailbox delivery. Genuine Stripe test card and ACH invoice payment, processor-hosted checkout inputs and complete authentication and updated-method payment recovery remain unqualified. Executable portal plan changes with proration, past-receipt downloads and all remaining customer portal and checkout screens remain required. Actually delivered invoice, receipt, dunning and notice email qualification remains owed, including INV-002 and MOVE-006 unavailable Postmark proof. Existing PAY-002, PAY-003, INV-003, INV-007, PORT-003 and dunning prerequisites, authority holds and accepted runtime pins remain unchanged. |
| `MOB-002` | Nectar for iOS and Android | target | missing |  | No native apps or push notifications. |
| `OPS-001` | Measured capacity and unattended jobs | target | missing | `tests/nectar/job-runs.mjs` — jobRunsFlow drives the real scheduled Worker HTTP entry with persistent D1: ordered minute and daily job observations, owner-only reads with finance and credential refusal, sanitized thrown and handled failures, audit-storage refusal without partial assurance work, real workerd interruption before and after an existing collection claim, visible unstarted downstream jobs, ordinary tick recovery with one provider payment and allocation per invoice, lost-response and concurrent reconciliation, independent payment and audit totals, and no erased-source collection or private payload in history. `tests/nectar/invoice-content.mjs` — invoiceAutomationFlow; `tests/nectar/assurance-detectors.mjs` — assuranceScheduleFlow; `tests/nectar/automatic-collection.mjs` — automaticCollectionFlow retain existing schedule authority and once-only custody. `migrations/core/0120_job_runs.sql`. | Certificate reminders run daily; billing jobs and measured capacity are absent (seed.json limits). Complete idempotent and resumable execution of invoice runs, charges, retries, notices, syncs and revenue schedules remains owed. The original 10,000-active-subscription billing day with 10,000 invoices issued and charged exactly once, an actual mid-run restart and completion under fifteen minutes is unproved; `seed.json` limits remain unmeasured. Execution observations grant no activation, financial approval, resend or generic retry authority. INV-001 automation consent and interrupted-recovery duties, PAY-003 collection and unsupported ACH test-clock proof, dunning authority, delivery-account and accounting-connector prerequisites and their existing ct holds remain unchanged. |
| `AGENT-001` | Revenue assurance detectors and governed case closure | push-further | done | `tests/nectar/reconciliation.mjs` — reconciliationFlow proves source-control comparisons, two deduplicated evidenced cases with active owners, unchanged raw usage and bill runs, human-confirmed exact-basis resolution followed by agent recheck, regression reopening on repeated scans, revoked-owner refusal, exact audit attribution and atomic audit-failure rollback. `tests/nectar/erasure.mjs` — erasureFlow proves operational cases and observations withdrawn on approved erasure and no recreation from retained controls. reconciliationFlow also proves linked amendment proposals refuse acceptance after proposer demotion or deactivation, credential revocation, assignee demotion or deactivation and reassignment, without adjustment or mail; restored current authority permits one ordinary human-approved fix, leaving the case open for recheck. erasureFlow proves retained issued invoice facts beside the deleted operational investigation. `tests/nectar/clause-browser.mjs` — assurance and erasure modes exercise the refusal, pending fix and retention screens at 1440 and 390. Existing reviewed financial proposals remain proved by `tests/nectar/flows.mjs`. `tests/nectar/assurance-detectors.mjs` — assuranceDetectorsFlow plants an unbilled ramp step (a signed $95-to-$120 step never applied), an over-billed seat on a graduated price, a signed minimum whose final period was never invoiced, a settled payment never applied, a feature still granted by a duplicate subscription after a recorded cancellation and a paid advance year that ended early with no credit, beside one correctly applied ramp. One scan opens exactly the six mismatching cases, none for the correct ramp, each with an active owner and typed evidence, repeats without duplicates, prepares no bill run, applies no payment and changes no signed term. Each governed fix is linked and executed only through its ordinary human-approved door: a member-prepared catch-up charge billed by an approved invoice, an invoice-credit proposal, the final invoice carrying its true-up line, a person applying the settled payment, a person cancelling the duplicate and a person granting the unused service to the customer balance; links for the wrong customer, invoice, direction or amount, or by a prepare credential, are refused. Rejected, stale and demoted-proposer credit proposals adjust nothing, proposal approval never closes a case, and each case closes only after exact current-basis human confirmation and a successful recheck; a later payment reopens the same case and approved erasure removes the investigation while the issued invoice keeps its figures. |  |
| `AGENT-002` | Simulate the fix and explain it to the customer | push-further | done | `src/nectar/credit-correction.ts`; `src/nectar/draft-correction-plan.ts`; `src/nectar/draft-correction-mail.ts`; `tests/nectar/credit-correction.mjs`; `tests/nectar/draft-corrections.mjs` `tests/nectar/credit-correction.mjs` — retained correction assertions. | All existing correction kinds have exact engine/tax previews, cited frozen explanations, governed human decisions and atomic adjustment/message custody; future revenue/MRR/portal/attributed-tax duties remain in REV-001/RPT-001/PORT-001/PORT-002/INV-005. |
| `AGENT-003` | Collections that resolve the cause of nonpayment | push-further | partial | `src/nectar/collections.ts`; `src/nectar/proposals.ts`; `tests/nectar/flows.mjs` | Agents can propose a balance-aware reminder; no cause diagnosis from delivery, AP portal, payment or remittance data. |
| `AGENT-004` | Price-change simulation with customer explanations | push-further | done | `src/nectar/pricing-replay.ts`; `src/nectar/pricing-simulation-plan.ts`; `src/nectar/proposals.ts`; `src/nectar/ui/pricing-simulation.ts`; `tests/nectar/pricing-simulation.mjs` | Current monthly six-period replay, cited comparisons, estimated margins, governed cohort scheduling and prepared notices proven. INV-002 retains actual notice delivery; CAT-001 retains future intervals/terms. |
| `AGENT-005` | Migration followed through to the first settled cycle | push-further | partial | `src/nectar/movein/stripe.ts`; `tests/nectar/flows.mjs`; `tests/nectar/move-investigations.mjs` — moveInvestigationsFlow; `tests/nectar/clause-browser.mjs` — move-investigations; `tests/nectar/flows.mjs` — NEC-16 Stripe Billing move-in with dry run, journal, undo and shadow cutover | Shadow comparison and non-overlapping adoption ship; no agent investigation or settled-cycle verification. |
| `AGENT-006` | Contract-to-billing setup | push-further | done | `src/nectar/setup-plan.ts`; `src/nectar/setup-source.ts`; `src/nectar/setup-preview.ts`; `src/nectar/setup-apply.ts`; `src/nectar/setup-resolution.ts`; `src/nectar/setup-download.ts`; `src/nectar/ui/contract-setup.ts`; `tests/nectar/contract-setup.mjs` | Current executed-order setup complete under ct ruling; SET-001/CAT-001/INV-004 retain future capability obligations. |
| `AGENT-007` | Cited billing answers for staff and customers | push-further | done | `src/nectar/billing-answers.ts`; `src/nectar/billing-answer-sources.ts`; `src/nectar/answer-proposals.ts`; `src/nectar/ui/billing-answers.ts`; `tests/nectar/billing-answers.mjs` | Current-door completion approved by ct 19 October 18:06Z; PORT-001/PORT-002/GOV-001 retain customer and scoped-role acceptance before shipping. |
| `AGENT-008` | Month-end close tie-out | push-further | missing |  | No close tie-out. |
| `AGENT-009` | Agent-assisted case resolution with approval beyond proposals | push-further | missing |  | No agent-assisted resolution beyond proposals; no automatic financial or outbound action authorized. |
| `AGENT-010` | Scheduled assurance comparisons and disputed-item collection pauses | push-further | done | `tests/nectar/assurance-detectors.mjs` — assuranceScheduleFlow plants the same mismatches, then drives the real scheduled Worker entry point: a tick that fails at its commit opens no partial case and is recorded as failed with its error code, the next tick recovers and opens one case per mismatch, repeat ticks open none, a tick whose outcome was never written stays visible as running and does not overlap a second tick, after ten minutes the next tick marks it interrupted and restarts with the same cases, ticks prepare no bill run and apply no payment, issue no invoice and send no message, and an ordinary fix is rechecked on the next tick but closed only after a person confirms its exact basis. `tests/nectar/native-collection.mjs` — nativeCollectionFlow records a partial and a whole-invoice dispute: the partly disputed invoice freezes and charges only its undisputed remainder at the provider, the wholly disputed invoice is refused before any provider call, a dispute recorded after review refuses the pending charge, issued invoice evidence, debt and tax stay unchanged, and resolving a dispute restores the full owed balance only where the once-only native claim does not still stop it. `tests/nectar/cadences.mjs` keeps proving AR-001's line-amount holds for reminders and the scheduled cadence. |  |
