{
  "schema": "dn-research-method/v1",
  "commission": "N026",
  "version": "1.0.0",
  "checkedOn": "2026-12-04",
  "edition": "2027 guide; not a statement that the sources were checked in 2027",
  "slug": "prepaid-research-credit-consumption-ledger-2027",
  "title": "Prepaid Research Credits in 2027: Track Scope, Unused Balances and Refund Promises",
  "evidenceStatus": "Primary sources reviewed; original DN operating method and entirely fictional worked examples. No client engagement, account, transaction or legal determination has been authenticated.",
  "sources": [
    {
      "title": "Billing credits",
      "publisher": "Stripe Documentation",
      "url": "https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits",
      "checkedOn": "2026-12-04",
      "supports": "Named-product example distinguishing billing credits from invoice credit balance/cash balance, documented grant states and expiry controls; not a recommendation to deploy Stripe."
    },
    {
      "title": "IFRS 15 Revenue from Contracts with Customers — standard overview",
      "publisher": "IFRS Foundation",
      "url": "https://www.ifrs.org/issued-standards/list-of-standards/ifrs-15-revenue-from-contracts-with-customers/",
      "checkedOn": "2026-12-04",
      "supports": "Revenue depicts transfer of promised goods/services; performance obligations and timing require assessment beyond this operational unit ledger."
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "licenseScope": "Original DN compilation, template, software and hypothetical examples only; linked third-party works retain their rights and are not included or relicensed.",
  "decision": "How many compatible research units are accepted, reserved, disputed, removed or unallocated, and what discrepancy remains between an entered approved refund and recorded settlement?",
  "notDecision": [
    "How much revenue to recognize",
    "Whether a refund or expiry is legally enforceable",
    "What a new task should cost in units",
    "How to convert units to cash",
    "Whether DN offers a prepaid product"
  ],
  "method": [
    "Scope one compatible unit pool. Keep the underlying grant terms, unit definition, dates and evidence outside this compact snapshot.",
    "Record each work alias exactly once in accepted, reserved or disputed state; retain supporting scope and event history elsewhere.",
    "Enter separately recorded expiry and unit cancellation events. The worksheet neither triggers expiry nor establishes authority to remove units.",
    "Use exact integer hundredths to calculate declared remaining units and arithmetic unallocated units. Reject any over-allocation.",
    "Expose availability under reviewed terms only when the reader declares that the relevant terms are documented; otherwise preserve null alongside the declared arithmetic.",
    "Reconcile approved refund cash and settled cash independently. Unknown approval stays null even if the residual amount field contains text.",
    "Export inputs, exclusive work-item states, results, unknowns and limits. Revenue remains null and refund authorization remains false."
  ],
  "formulas": {
    "acceptedConsumedUnits": "sum of work item units where state = accepted",
    "reservedUnits": "sum of work item units where state = reserved",
    "disputedUnits": "sum of work item units where state = disputed",
    "declaredLedgerBalanceUnits": "issuedUnits - acceptedConsumedUnits - recordedExpiredUnits - cancelledForRefundUnits",
    "arithmeticUnallocatedUnits": "declaredLedgerBalanceUnits - reservedUnits - disputedUnits",
    "availableUnderReviewedTermsUnits": "arithmeticUnallocatedUnits when termsStatus=documented; otherwise null",
    "refundReconciliationDifference": "approvedRefundCash - settledRefundCash when refundStatus=documented; otherwise null",
    "cashAfterEnteredRefunds": "cashReceived - settledRefundCash",
    "conservation": "issuedUnits = accepted + reserved + disputed + recorded expiry + refund cancellations + arithmetic unallocated units",
    "revenueRecognized": null,
    "refundAuthorized": false
  },
  "inputBounds": {
    "unitAndCashFormat": "Non-negative decimals with at most two decimal places; at most 16 characters after trimming; signs, exponents, commas, blank, Infinity and NaN reject",
    "unitMaximum": "1,000,000 per scalar and work entry",
    "cashMaximum": "100,000,000 per cash scalar",
    "currency": "One three-letter ASCII label; uppercase normalization; no FX conversion or validation against a currency registry",
    "termsStatus": [
      "documented",
      "unknown"
    ],
    "refundStatus": [
      "documented",
      "unknown"
    ],
    "termsRefAndRefundRef": "At most 200 characters; nonblank when the corresponding status is documented",
    "workItemsJson": "Explicit JSON array of 0–50 exact-shape items, at most 16,000 characters; [] is a valid unallocated pool",
    "workItemId": "Unique uppercase alias: 1–40 ASCII letters, digits, underscore or hyphen; first character is a letter or digit",
    "workItemState": [
      "accepted",
      "reserved",
      "disputed"
    ],
    "workItemUnits": "Quoted decimal string greater than zero",
    "workItemEvidenceRef": "Non-sensitive nonblank string, at most 160 characters",
    "allocationConstraint": "All accepted, reserved, disputed, expired and cancelled units must fit within issued units",
    "settlementConstraint": "Settled refund cannot exceed cash received within this bounded ledger; separately scoped compensation is excluded"
  },
  "workedExample": {
    "inputsFile": "example.json",
    "status": "Entirely fictional; no live account or DN product",
    "unitDefinition": "One compatible research-work allowance allocated to separately bounded tasks; not automatically one hour or one deliverable",
    "grantNarrative": {
      "grantA": {
        "issued": "12.00",
        "accepted": "10.00",
        "recordedExpired": "2.00"
      },
      "grantB": {
        "issued": "28.00",
        "reserved": "5.00",
        "disputed": "3.00",
        "cancelledForRefund": "2.00",
        "unallocated": "18.00"
      }
    },
    "issuedUnits": "40.00",
    "acceptedConsumedUnits": "10.00",
    "reservedUnits": "5.00",
    "disputedUnits": "3.00",
    "recordedExpiredUnits": "2.00",
    "cancelledForRefundUnits": "2.00",
    "declaredLedgerBalanceUnits": "26.00",
    "arithmeticUnallocatedUnits": "18.00",
    "availableUnderReviewedTermsUnits": "18.00",
    "currency": "USD",
    "cashReceived": "1000.00",
    "approvedRefundCash": "50.00",
    "settledRefundCash": "40.00",
    "refundReconciliationDifference": "10.00",
    "cashAfterEnteredRefunds": "960.00",
    "acceptedReservationScenario": {
      "acceptedConsumedUnits": "15.00",
      "reservedUnits": "0.00",
      "declaredLedgerBalanceUnits": "21.00",
      "arithmeticUnallocatedUnits": "18.00"
    },
    "releasedReservationScenario": {
      "acceptedConsumedUnits": "10.00",
      "reservedUnits": "2.00",
      "arithmeticUnallocatedUnits": "21.00"
    },
    "unknownTerms": {
      "availableUnderReviewedTermsUnits": null,
      "arithmeticUnallocatedUnits": "18.00"
    },
    "unknownApproval": {
      "approvedRefundCash": null,
      "refundReconciliationDifference": null,
      "settledRefundCash": "40.00"
    },
    "revenueRecognized": null,
    "refundAuthorized": false
  },
  "unknownPolicy": "Blank required numbers reject; explicit unknown selectors suppress unsupported conclusions. Unknown terms leave availability null while preserving declared arithmetic. Unknown refund approval ignores the approved amount field and exports null, without erasing entered settlement. A zero value is an explicit declaration, not a substitute for unknown evidence.",
  "export": {
    "entryPoint": "calculateCredits(kind, values)",
    "kind": "N026",
    "schema": "dn-research-credit-ledger/v1",
    "record": "workflowRecord",
    "unknownFields": [
      "inputs.termsStatus",
      "inputs.refundStatus",
      "inputs.approvedRefundCash",
      "results.availableUnderReviewedTermsUnits",
      "results.approvedRefundCash",
      "results.refundReconciliationDifference",
      "uncertainty.termsReviewed",
      "uncertainty.refundApprovalKnown"
    ],
    "authorityFlags": [
      "results.revenueRecognized=null",
      "results.refundAuthorized=false",
      "uncertainty.grantAndEventEvidenceAuthenticated=false",
      "uncertainty.expiryEntitlementDetermined=false",
      "uncertainty.revenueRecognitionDetermined=false"
    ]
  },
  "reproducibility": {
    "command": "node --test tests.mjs",
    "runtime": "Node.js 22 or newer; no package install, credentials or network required",
    "calculatorFile": "tool.js",
    "siteCalculatorFile": "calculator.js",
    "fixtureFile": "browser-cases.json",
    "expectedAnswers": "Independent authored values, including state-transition conservation and exact decimal boundary cases",
    "testTopics": [
      "Forty-unit known answer",
      "Reserved to accepted without double consumption",
      "Reservation release",
      "Unknown terms",
      "Unknown approval",
      "Negative refund discrepancy",
      "Explicit empty allocation and zeros",
      "Exact fractional hundredths",
      "Over-allocation and duplicate aliases",
      "Settlement limit",
      "Required blanks and malformed numeric input",
      "Malformed object shape",
      "Deterministic JSON-safe export"
    ]
  },
  "limits": [
    "The snapshot does not replay event history, assign grants, apply expiry dates or infer allocation order.",
    "Only units with the same definition may be aggregated; differently priced or restricted grants retain separate evidence.",
    "Accepted is an entered ledger state, not independently verified delivery or accounting recognition.",
    "Unit cancellation and refund approval/settlement are separate movements; the calculator performs no conversion.",
    "A negative approved-minus-settled discrepancy is retained as an investigation item, not treated as customer debt.",
    "Cash after entered refunds excludes costs, processor fees, tax, other movements and restrictions; it is not a bank balance or profit.",
    "No payment, invoice, real reservation, notification, account query or network call is performed.",
    "No DN credit product, price or refund entitlement is offered.",
    "Use aliases only; the exported JSON contains entered references and values.",
    "Sources were checked 4 December 2026; no representation is made that 2027 law or product behavior has been verified."
  ],
  "deduplication": {
    "nearestCanonicalId": 44491,
    "nearestCanonicalSlug": "annual-prepayments-revenue-cash-service-obligations-2027",
    "distinctDecision": "The existing annual-prepayments guide assumes even whole-month service and excludes usage-based recognition. This guide reconciles redeemable unit states and separately entered refund cash; it computes no accounting revenue."
  }
}
