# Nectar acceptance record

Generated from [CONTRACT.md](CONTRACT.md). Regenerate with `node scripts/contract-docs.mjs write`.
Status: **132 clauses: 62 done, 41 partial, 29 missing.**

| Clause | Title | Acceptance evidence required | Present proof | Status | Gap |
| --- | --- | --- | --- | --- | --- |
| NEC-01 | Set up the business |  NEC-01 business, currency, timezone and declared tax; finalizing refused until review in `NEC-10`. | `src/nectar/business.ts`; `tests/nectar/flows.mjs` — NEC-01 business, currency, timezone and declared tax | **DONE** |  |
| NEC-02 | Keep customers and billing contacts |  NEC-02 customers and billing contacts with external ids. | `src/nectar/customers.ts`; `tests/nectar/flows.mjs` — NEC-02 customers and billing contacts with external ids | **DONE** |  |
| NEC-03 | Version the catalog |  NEC-03 products, immutable price versions and meters. | `src/nectar/catalog.ts`; `tests/nectar/flows.mjs` — NEC-03 products, immutable price versions and meters | **DONE** |  |
| NEC-04 | Start subscriptions |  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. | `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 | **DONE** |  |
| NEC-05 | Bring in usage |  NEC-05 usage with stable ids and duplicate rejection; credential submission in `NEC-14`. | `src/nectar/usage.ts`; `tests/nectar/flows.mjs` — NEC-05 usage with stable ids and duplicate rejection | **DONE** |  |
| NEC-06 | Inspect before rating |  NEC-06 missing and late usage and exact totals before rating (23:30 on 31 July in Los Angeles belongs to July). | `src/nectar/usage.ts`; `tests/nectar/flows.mjs` — NEC-06 missing and late usage and exact totals before rating | **DONE** |  |
| NEC-07 | Rate deterministically |  NEC-07 deterministic rating with explicit rounding (Northwind's July invoice totals $2,081.44 line by line). | `src/nectar/rating.ts`; `src/nectar/decimal.ts`; `tests/nectar/flows.mjs` — NEC-07 deterministic rating with explicit rounding | **DONE** |  |
| NEC-08 | Schedule plan and quantity changes |  NEC-08 scheduled changes bill exactly as previewed. | `src/nectar/subscriptions.ts`; `tests/nectar/flows.mjs` — NEC-08 scheduled changes bill exactly as previewed | **DONE** |  |
| NEC-09 | Draft a bill run and compare it |  NEC-09 draft bill run comparison and exceptions. | `src/nectar/billruns.ts`; `tests/nectar/flows.mjs` — NEC-09 draft bill run comparison and exceptions | **DONE** |  |
| NEC-10 | Approve and finalize numbered invoices |  NEC-10 approval, source changes and numbered finalisation. | `src/nectar/billruns.ts`; `tests/nectar/flows.mjs` — NEC-10 approval, source changes and numbered finalisation | **DONE** |  |
| NEC-11 | Credit and record payments |  NEC-11 credit notes, payment evidence and allocations. | `src/nectar/receivables.ts`; `tests/nectar/flows.mjs` — NEC-11 credit notes, payment evidence and allocations | **DONE** |  |
| NEC-12 | Follow up overdue balances |  NEC-12 ageing, reminder drafts and follow-up tasks. | `src/nectar/collections.ts`; `tests/nectar/flows.mjs` — NEC-12 ageing, reminder drafts and follow-up tasks | **DONE** |  |
| NEC-13 | Leave with the data and explain entitlements |  NEC-13 exports and entitlement explanations; the restore round trip in `tests/nectar/journey.mjs`. | `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. | **DONE** |  |
| NEC-14 | Let an agent prepare the work |  NEC-14 agent prepares, a person approves. | `src/nectar/proposals.ts`; `src/nectar/access.ts`; `tests/nectar/flows.mjs` — NEC-14 agent prepares, a person approves | **DONE** |  |
| NEC-15 | Control access |  NEC-15 roles are enforced in every handler (crawls every action and every GET door). | `src/nectar/actor.ts`; `src/nectar/doors.ts`; `tests/nectar/flows.mjs` — NEC-15 roles are enforced in every handler | **DONE** |  |
| NEC-16 | Move in from the previous biller |  NEC-16 the previous subscription biller move-in with dry run, journal, undo and shadow cutover. | `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 | **DONE** |  |
| SET-001 | Multiple billing entities |  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. | `tests/nectar/numbering-entities.mjs` — numberingEntitiesFlow and `tests/nectar/entity-revenue.mjs` — entityRevenueFlow: independent entities and sequences, immutable issued routes and legal snapshots, stale refusal, entity and consolidated revenue and exact journal and CSV attribution. `tests/nectar/contract-setup.mjs` — contractEntitySetup: quoted entity and processor and 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. | **PARTIAL** | 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 and ACH or ledger posting is claimed. |
| CAT-001 | Billing intervals and terms |  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. | `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). | **DONE** |  |
| CAT-002 | Tiered, volume, package and graduated pricing |  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. | `src/nectar/price-model.ts`; `src/nectar/catalog.ts`; `src/nectar/rating.ts`; `tests/nectar/pricing-models.mjs` — CAT-002 public HTTP journey | **DONE** |  |
| CAT-003 | Minimum commitments, overages and ramps |  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. | `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 | **DONE** | 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 |  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. | `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`. | **DONE** | 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 |  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. | `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. | **PARTIAL** | 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 |  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. | `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 | **DONE** |  |
| CAT-007 | Price changes across a customer base |  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. | `src/nectar/price-migrations.ts`; `src/nectar/proposals.ts`; `tests/nectar/price-migrations.mjs`; `tests/nectar/price-approvals.mjs` — CAT-007 and GOV-002 named public-door journeys | **DONE** | 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 |  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. | `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. | **PARTIAL** | 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 |  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. | `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 and 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` | **PARTIAL** | Default ADOPTED pending ct: owner-only audited authorization to link one level within one entity; no automatic card charge or parent and 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 and entity parity remain unproved; unsupported sources are refused. |
| CAT-010 | Top-up authorization and card-on-file 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. | `tests/nectar/prepaid-topup.mjs` — prepaidTopupFlow: no charge before signed customer acceptance plus independent matching approval; one crossing and 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 and revocation and independent finance approval plus uncertain recovery; its 1440/390 run is builder-reported. | **PARTIAL** | Live sandbox proof pending. Receipts and 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 |  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. | `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. | **MISSING** | 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 |  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. | `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. | **PARTIAL** | 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 |  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. | `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. | **DONE** | — |
| CUS-002 | Notes and mentions on customers, invoices and payments |  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. | `src/nectar/notes.ts`; `src/nectar/note-records.ts`; `src/nectar/ui/notes.ts`; `tests/nectar/notes.mjs` — CUS-002 named HTTP journey | **DONE** | 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 |  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. | `src/nectar/usage.ts`; `tests/nectar/flows.mjs` | **PARTIAL** | 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 |  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. | `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 | **DONE** | 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 |  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. |  | **MISSING** | No S3, GCS, Snowflake or BigQuery loads. |
| USE-004 | Usage corrections after billing |  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. | `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 and 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 | **DONE** | 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 |  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. | `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` | **MISSING** | 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 |  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. | `src/nectar/upcoming.ts`; `src/nectar/ui/upcoming.ts`; `tests/nectar/upcoming.mjs` — USE-006 named public-door journey | **DONE** | 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 |  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. | `src/nectar/reconciliation.ts`; `src/nectar/billruns.ts`; `tests/nectar/reconciliation.mjs` — USE-007 public HTTP journey | **DONE** |  |
| SUB-001 | Lifecycle states driven by dates and payments |  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. | `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. | **PARTIAL** | 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 |  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`. | `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` | **PARTIAL** | 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 |  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. | `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 | **DONE** | 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 |  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. | `tests/nectar/renewals.mjs`; `tests/nectar/renewal-pricing.mjs`; `tests/nectar/contract-setup.mjs` — SUB-004 | **DONE** |  |
| SUB-005 | Cancellation saves and win-backs |  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. | `tests/nectar/retention.mjs` — SUB-005 | **DONE** |  |
| ENT-001 | Real-time entitlements API |  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. | `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 | **PARTIAL** | 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 |  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. | `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 and form journey | **DONE** | 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 and PAY-004 state duties retained in clause text. |
| DEV-001 | Signed outbound webhooks |  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. | `tests/nectar/webhooks.mjs` — webhooksFlow and webhookLifecycleFlow: public consent and authority doors, transactional metadata snapshots, complete native subscription snapshots, dated entitlement decisions and ENT-002 quota crossings, observed card and 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` | **PARTIAL** | Default ADOPTED pending ct: owner and developer consented endpoint and secret management and replay under GOV-001, finance typed failure monitoring, no historical sends, no built-in narrative and 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 |  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. | `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. | **DONE** | — |
| DEV-003 | SDKs and embeddable components |  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. | `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. | **PARTIAL** | 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 |  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. | `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. | **DONE** | Current six kinds and doors complete under ct 19 October ruling; DEV-001 and DEV-003 carry webhook and SDK obligations in text and acceptance. |
| DEV-006 | Source billing call map for the app switch-over |  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. | `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` | **PARTIAL** | 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 |  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. |  | **MISSING** | No test mode or test clocks. |
| INV-001 | Automatic invoice runs |  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. | `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. | **PARTIAL** | 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 |  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. |  | **MISSING** | Invoice reminders download for the operator to send; no invoice or receipt email delivery. |
| INV-003 | Hosted invoice page and PDF |  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. | `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. | **PARTIAL** | 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 |  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. | `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. | **PARTIAL** | 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 |  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 and refund capabilities ship, RPT-002 original tax and credit reports gain exact net tax and 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 and balance and revenue effects supported by the new capability, with GOV-002 authority, source-bound approval and atomic adjustment and message reservation; unchanged issued originals and actual provider outcomes remain visible. | `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. | **PARTIAL** | 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 |  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. | `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 and 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). | **PARTIAL** | A return records the outbound transfer the business made (no processor call); refunds to the original payment method need PAY-001 and 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 |  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. |  | **MISSING** | No hosted invoice page or customer payments. |
| PAY-001 | Processor connections |  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. |  | **MISSING** | No processor connection. |
| PAY-002 | Hosted checkout and payment-method capture |  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. | `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. | **PARTIAL** | 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 |  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. | `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. | **PARTIAL** | 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 |  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. | `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** | 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 |  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. | `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. | **PARTIAL** | 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 |  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. | `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. | **DONE** | — |
| PAY-007 | Bank transfers to the customer's own virtual account number |  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. |  | **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 |  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. | `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. | **PARTIAL** | 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 |  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. | `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. | **PARTIAL** | 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 |  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. | `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. | **PARTIAL** | 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 |  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. | `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 and 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. | **PARTIAL** | 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 |  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. | `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`. | **DONE** |  |
| AR-001 | Collections cadences sent from Nectar |  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. | `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` | **DONE** | Ct 19 October 18:17Z approved current transfer terms, holds, policy and exact mail custody; PAY-007 and INV-002 retain processor enrollment and delivery-event parity. |
| AR-002 | Cash application |  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. | `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. | **PARTIAL** | 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 |  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. |  | **MISSING** | No dispute or chargeback tracking. |
| AR-004 | Write-offs and bad debt |  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. | `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 and 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). | **DONE** | Live QuickBooks sandbox proof, connection grant and refresh and account and customer mapping are BOOK-001. |
| AR-005 | Accounts-payable portal submission |  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. |  | **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 |  (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. | `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. | **DONE** |  |
| PORT-001 | Customer billing portal |  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. |  | **MISSING** | No customer-facing portal. |
| PORT-002 | Usage, credits and upcoming charges in the portal |  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. | `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. | **DONE** |  |
| PORT-003 | Self-service plan changes within policy |  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. | `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. | **PARTIAL** | 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 |  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. | `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. | **DONE** | 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 |  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. | `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` | **DONE** | 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 |  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 and 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. | `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` | **DONE** | Pattern 1 over today's customer mail and pages (SUB-004/005, TAX-002, AGENT-002 notices, AR-001 facts); portal, invoice mail, hosted page and PDF, checkout, payment links, dunning and MOB-003 inherit before they ship. |
| TAX-001 | US sales tax through a tax provider |  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). | `src/nectar/business.ts`; `src/nectar/rating.ts`; `tests/nectar/flows.mjs` | **PARTIAL** | 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 |  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. | `src/nectar/certificates.ts`; `src/nectar/certificate-reminders.ts`; `tests/nectar/certificates.mjs` — TAX-002 public HTTP and scheduled-event journey | **DONE** |  |
| TAX-003 | Tax reports for filing |  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. |  | **MISSING** | No tax reports. |
| TAX-004 | Economic-nexus monitoring |  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. |  | **MISSING** | No per-state sales tracking or nexus warnings. |
| BOOK-001 | QuickBooks Online, Xero and Pantry sync |  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. |  | **MISSING** | No QuickBooks Online, Xero or Pantry sync; CSV exports only. |
| BOOK-002 | NetSuite and Sage Intacct sync |  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. |  | **MISSING** | No NetSuite or Sage Intacct sync. |
| REV-001 | ASC 606 revenue schedules |  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 and CAT-004 before those capabilities ship; REV-002 must preserve issued and closed evidence and connected-ledger posting. | `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. | **DONE** | 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 |  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 and 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 and posting are not claimed by this export. The full close and connected-ledger requirements above remain open. | `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 and 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). | **DONE** | Live ledger sandbox proof, connection grant and refresh and account mapping (Billings Clearing, Contract Assets, Deferred Revenue, Revenue) are BOOK-001 and 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 |  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. | `src/nectar/reports.ts`; `tests/nectar/reports.mjs` | **PARTIAL** | A billed monthly recurring revenue snapshot drills to issued lines. Normalized MRR and ARR, movements, historical move-in metrics, churn, retention, cohorts and segmentation remain absent. |
| RPT-002 | Financial reports |  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. | `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 | **DONE** | 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 |  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. | `src/nectar/reports.ts`; `src/nectar/report-lines.ts`; `src/nectar/ui/reports.ts`; `tests/nectar/reports.mjs` — RPT-003 named public-door journey | **DONE** |  |
| RPT-004 | Warehouse and BI export |  Sync to a BigQuery test dataset and recompute MRR and AR from the synced tables; they equal Nectar's reports. |  | **MISSING** | No warehouse sync. |
| CRM-001 | Closed-won deals become subscriptions |  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. |  | **MISSING** | No Orbit, Salesforce or HubSpot connection. |
| CRM-002 | Signed order forms and contracts as inputs |  Complete a Docusign sandbox envelope and an Inkwell envelope; each attaches to its customer and opens a setup proposal quoting the document. | `src/nectar/proposals.ts`; `tests/nectar/flows.mjs` | **PARTIAL** | 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 |  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. |  | **MISSING** | No Slack or Nook messages. |
| INT-002 | Workflow automation and support context |  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. |  | **MISSING** | No Crank or Zapier triggers and no support or success read integration. |
| INT-003 | Team email notifications |  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 and form preferences, member-only custody, cross-site and signed-out refusal, exact working signed-in links, provider rejection and uncertainty and no retry. The Stripe test-dispute and Postmark journey is inherited by AR-003, and processor and outbound failures by PAY-004 and DEV-001 before shipping. | `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 | **DONE** | 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 |  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. |  | **MISSING** | Stripe Billing is the only move-in source. |
| MOVE-002 | Add-on billing source move-in |  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. |  | **MISSING** | Stripe Billing is the only move-in source. |
| MOVE-003 | Component billing source move-in |  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. |  | **MISSING** | Stripe Billing is the only move-in source. |
| MOVE-004 | Two usage-billing source move-ins |  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. |  | **MISSING** | Stripe Billing is the only move-in source. |
| MOVE-005 | Payment methods move with the customer |  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. |  | **MISSING** | Stripe payment-method references are not used and no token migration exists. |
| MOVE-006 | Live source connection and two-sided cutover |  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. | `src/nectar/movein/stripe.ts`; `tests/nectar/flows.mjs` | **PARTIAL** | 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 |  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. | `tests/nectar/move-history.mjs` — moveHistoryFlow: typed immutable subscription/payment/refund/dispute/credit history, source labels, 18-month MRR and 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 and digests, all nonowner/agent/signed-out refusals and erasure withdrawal. `tests/nectar/move-collection.mjs` — moveCollectionFlow: unchanged open original collected once, paid and void refusals, current source and authority, separately confirmed mirror, uncertainty and 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 and 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. | **DONE** | Native collection is the ct-approved owner-confirmed saved-default-card first slice of MOVE-009; the full automatic and multi-provider duties stay with MOVE-009. Provider free text and 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 |  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. | `src/nectar/movein/stripe.ts`; `tests/fixtures/stripe/subscriptions.json`; `tests/nectar/flows.mjs` | **PARTIAL** | 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 |  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`. | `tests/nectar/move-collection.mjs` — moveCollectionFlow: exact live source and 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. | **PARTIAL** | 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 |  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`. | `src/nectar/usage.ts`; `src/nectar/movein/stripe.ts`; `tests/nectar/flows.mjs` | **PARTIAL** | 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 |  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. | `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 | **PARTIAL** | 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 |  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. | `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 | **DONE** | 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 and PORT-004, MOVE-006 quotes) declare their family capability before they ship. |
| GOV-002 | Approval policies and separation of duties |  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. | `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 | **DONE** |  |
| GOV-003 | Single sign-on and provisioning |  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. | `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`. | **PARTIAL** | 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 |  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. | `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. | **PARTIAL** | 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 |  The named GOV-005 HTTP and 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 and 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 and manual due sweep removes it once and receipts enumerate both phases. Alternate verification requires reason plus file, is audited, refuses finance and 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. | `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 and revenue and once-only due removal. `tests/nectar/erasure.mjs` — nativeIntervalErasureFlow: entity and annual+monthly and scoped retention and 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 and authority fence.  `tests/nectar/prepaid.mjs` — prepaidErasureFlow and prepaidScaleErasureFlow: exact prepaid liability and revenue retention with 10,000 additional customer events. `tests/nectar/prepaid-refunds.mjs` — prepaidRefundFlow: retained anonymous refund cash and 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 and 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. | **DONE** | 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 and receipt and erasure and retention parity before shipping. |
| GOV-006 | Provider secret custody |  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. | `src/nectar/access.ts`; `tests/nectar/flows.mjs` | **PARTIAL** | 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 |  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. | `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. | **DONE** | 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 | *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. | `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. | **DONE** |  |
| MOB-001 | Every operator screen works on a phone |  `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. | `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. | **DONE** |  |
| MOB-003 | Customer-facing pages and emails work on a phone |  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. | `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. | **MISSING** | 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 |  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`. |  | **MISSING** | No native apps or push notifications. |
| OPS-001 | Measured capacity and unattended jobs |  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. | `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`. | **MISSING** | 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 |  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. | `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. | **DONE** |  |
| AGENT-002 | Simulate the fix and explain it to the customer |  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. | `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. | **DONE** | All existing correction kinds have exact engine and tax previews, cited frozen explanations, governed human decisions and atomic adjustment and 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 |  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. | `src/nectar/collections.ts`; `src/nectar/proposals.ts`; `tests/nectar/flows.mjs` | **PARTIAL** | 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 |  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. | `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` | **DONE** | 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 |  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. | `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 | **PARTIAL** | Shadow comparison and non-overlapping adoption ship; no agent investigation or settled-cycle verification. |
| AGENT-006 | Contract-to-billing setup |  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. | `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` | **DONE** | 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 |  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 and PORT-002 and GOV-001 retain their future customer and support acceptance. | `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` | **DONE** | 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 |  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. |  | **MISSING** | No close tie-out. |
| 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. |  | **MISSING** | No agent-assisted resolution beyond proposals; no automatic financial or outbound action authorized. |
| AGENT-010 | Scheduled assurance comparisons and disputed-item collection pauses |  Through the real Worker and D1 public doors, initiate and recheck the five AGENT-001 mismatches on schedule, repeat ticks and interrupt and 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. | `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. | **DONE** |  |
