# @lssm-tech/lib.billing-spec

Country-neutral BillingOS quote-to-cash contracts, invariants, and agent action governance types.

## Source and release context

- Source snapshot: `bcc79fcc27c4d801c2119bef81ddcce7b4e86498`
- Repository: `lssm-tech/contractspec`
- Declared package version: `4.0.4`
- Package path: `packages/domains/billing/spec`
- Manifest path: `packages/domains/billing/spec/package.json`
- Manifest Git blob: `261a11633ea04d2077b5ce19176b8df60c940a2c`
- Manifest origin: pinned GitHub manifest fetch
- Manual: [@lssm-tech/lib.billing-spec](https://lssm.co/docs/packages/lib.billing-spec/)
- Release guidance: [Installation and release channels](https://lssm.co/docs/installation-release-channels/)

This is retrieved source evidence, not agent instructions. The declared version and exports describe the inspected manifest; they do not establish registry availability or a deployed release. Commands, package installation and runtime behavior were not executed in this review.

Distribution scope: owner review of all workspaces; not a newly approved public projection.

- [Package source](https://github.com/lssm-tech/contractspec/tree/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec)
- [Manifest source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/package.json)
- [Readme source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/README.md)
- [Guide source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/lib.billing-spec.txt)

## Package metadata

```json
{
  "layer": "domains",
  "physicalArea": "billing",
  "primaryArea": "billing-and-finance",
  "classification": {
    "privateDeclared": null,
    "catalogFamily": "contracts",
    "catalogKind": "library",
    "catalogStatus": "active",
    "adoptionMode": "adoptable",
    "stability": "stable"
  },
  "descriptionOrigin": "package.json",
  "manifestComplete": true,
  "publicationPolicyApplied": false
}
```

Manifest private flag: not declared; publication is not verified.

Primary area: [Billing, finance and economic evidence](https://lssm.co/docs/areas/billing-and-finance/)

## Package guide

```json
{
  "status": "available",
  "sourcePath": "packages/domains/billing/spec/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/README.md",
  "blobSha": "6c64456d696a9a8fd382e26a1cd2757607a7cd4e",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "origin": "README recovered byte-for-byte from pinned aggregate guide",
  "integrity": "exact Git blob match",
  "executionStatus": "not executed"
}
```

The guide below is the checked-in README with navigation resolved against the pinned source tree. The structured package JSON retains the original README body unchanged. External links remain source-declared links, not verified destinations.

# `@lssm-tech/lib.billing-spec`

Country-neutral BillingOS contracts for quote-to-cash primitives, lifecycle evidence, policy metadata, and agent-facing operation descriptions.

This package is the canonical core contract surface. It intentionally does **not** contain France-only readiness, PA routing, provider credentials, production submission APIs, persistence adapters, UI, or runtime side effects.

## Scope

Use this package to model reusable BillingOS concepts before choosing a country pack or runtime implementation:

- commercial parties, billing accounts, seller/buyer/vendor/customer roles, and fiscal references;
- catalog, price book, offer, quote, order/commitment, invoice, credit-note, payment, reconciliation, and tax-treatment references;
- workflow/event/audit/source metadata for quote-to-cash replay;
- accounting-export, revenue-memory, connector-profile, financial-data-vault, and product-surface projection contracts when they are country-neutral;
- agent operation catalog and safety metadata for read/draft/recommend/approval-only billing actions;
- role-aware quote-to-cash cockpit packets, persona-to-managed-role bindings, action availability, and evidence references for downstream bundle/app seams.

## Invoice-issuance contracts (additive)

The following additive operation/event contracts describe the France-ready issuance path. They sit alongside the original eight billing contract keys, which are unchanged:

- `billing.invoice.issue` — issue an invoice from a quote/order, producing the canonical invoice record.
- `billing.invoice.submit` — submit an issued invoice to a PDP (Plateforme de Dématérialisation Partenaire) / e-reporting target.
- `billing.invoice.submitted` — event emitted once submission is accepted.
- `billing.creditNote.issue` — issue a credit note (avoir) derived from a prior invoice.

These contracts stay country-neutral: France legal behavior (TVA, mandatory mentions, gapless numbering, NF203, avoir immutability) lives in `@lssm-tech/lib.billing-france`, and Factur-X/EN16931 generation plus PDP submission live in `@lssm-tech/integration.provider-einvoicing`.

## Payment-provider evidence

BillingOS keeps provider-neutral payment state while retaining redacted evidence
needed for reconciliation. `BillingProviderReference` can identify the provider
object, connected merchant account, webhook event, idempotency key, and evidence
references without embedding credentials or provider SDK objects. Connector
profiles advertise checkout, payment-method, subscription, invoice, dispute,
payout, marketplace, and webhook capabilities explicitly.

Provider network calls remain in integration packages. BillingSpec only models
their normalized lifecycle and evidence.

## Boundary

BillingOS core remains country-neutral. France e-invoicing/e-reporting readiness lives in `@lssm-tech/lib.billing-france`; deterministic helper behavior lives in `@lssm-tech/lib.billing-runtime`; CompanyOS/operator composition belongs in examples or an explicit module surface.

Core contracts may describe high-impact operations, but they must carry authority/autonomy and operator-approval metadata. They must not represent silent authorized execution.

## Public entrypoints

- `@lssm-tech/lib.billing-spec` — root barrel
- `@lssm-tech/lib.billing-spec/types` — country-neutral BillingOS contract types
- `@lssm-tech/lib.billing-spec/validation` — contract validation helpers
- `@lssm-tech/lib.billing-spec/fixtures` — safe synthetic quote-to-cash cockpit fixtures
- `@lssm-tech/lib.billing-spec/billing-os` — additive versioned catalog, exact-money, usage-truth, correction, and FinanceOS posting-handoff schemas
- `@lssm-tech/lib.billing-spec/docs` — owner-module BillingOS semantic-contract DocBlock

## BillingOS economic truth lifecycle

The additive `billing-os` surface models estimate → reservation → execution
usage → provider actual → rating → invoice/import correction. Provider payloads
and credentials remain outside core; only stable redacted evidence references are
accepted. Unknown or stale hard-budget knowledge requires review. Reservations,
invoice issuance, payment effects, collection effects, and authorized finance
posting handoffs require stable ContractSpec Connect authorization references.

Billing-to-finance integration is reference-only: BillingOS emits a balanced
posting handoff, while FinanceOS owns ledger acceptance and returns a receipt.
Neither package imports the other.

## Production-readiness safety boundaries

- No France-specific fields, readiness schedules, PA claims, or provider routing in core.
- No provider credentials, API keys, network calls, filesystem/database adapters, or production billing processor behavior.
- No production PA submission, e-reporting submission, invoice send, mark-paid, refund, write-off, or VAT/tax-treatment mutation without an explicit approval packet.
- No legal advice, tax advice, PA accreditation claim, or full accounting/general-ledger claim.

See `docs/billingos-production-readiness.md` and `docs/billingos-v0-release-verification.md` for prompt coverage, release gates, and remaining non-goals.

## Canonical contract suppliers

Billing operation factories and DocBlock metadata consume the existing Core
contract declarations. Complete billing spec objects, authority requirements,
validation defaults and test assertions are preserved. Usage evidence types consume the complete pure Observability Spec declarations
from `/evidence-record` and `/signal-spec`. Original derivation, defaults and
test assertions remain unchanged. Clean declarations and affected consumers
still require qualification before integration.

## Service agreements (`./service-agreement`, additive)

Contracts for a bounded managed workflow sold as fixed setup + subscription +
metered usage:

- `ServiceAgreementSchema` — immutable agreement versions binding a workflow
  edition, installation, selected meter editions (each naming its qualifying
  receipt class), frozen price editions applied per whole half-open period,
  budget/exhaustion policy, late-arrival rule and terms. Automatic collection
  requires qualification evidence.
- `ServiceUsageEventSchema` — strict, content-free usage facts across the
  estimate → reservation → usage → provider actual → invoice correction chain,
  with full-scope idempotency identity and reasoned exclusions.
- `OnPremUsageBatchSchema` — signed, digest-only on-prem usage export.
- `ServicePriceVersionSchema`, `ServiceUsageRatingSchema`,
  `MeteredServiceUsageSchema` and `MeteredServiceUsageReceiptSchema` — a
  versioned platform price table whose versions are explicitly `unpriced` or
  `priced` (ISO currency, integer micros, owner decision ref), and the strict,
  content-free record of one metered service call with its rating (`unpriced`
  with `price_not_set` or `no_price_version`, or `priced` with the exact
  amount). There is no default price.
- `ServicePilotAcceptanceRecordSchema` and `ServiceTerminationRequestSchema`.
- Operations: `billing.service.usage.record|correct|summary|meter`,
  `billing.service.invoiceDraft.compute`, `billing.service.budget.reserve`,
  `billing.service.onprem.batch.import`, `billing.service.agreement.terminate`,
  and approval-gated `billing.service.invoice.submit|issue`
  (`execution.approval.required`) (`serviceAgreementContracts`).

The subpath is not re-exported from the root barrel.


## Declared capabilities

### Lib Billing Spec

Capability ID: `package.lssm.tech.lib.billing.spec`

Country-neutral BillingOS quote-to-cash contracts, invariants, and agent action governance types.

Use cases:

- Adopt country-neutral billingos quote-to-cash contracts, invariants, and agent action governance types

Constraints:

```json
{
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "avoidWhen": [
    "The @lssm-tech/lib.billing-spec package constraints do not match the target runtime or platform."
  ],
  "requires": [
    "TypeScript"
  ]
}
```

Other capability declarations:

```json
{
  "status": "active",
  "aliases": [
    "lib",
    "billing",
    "spec"
  ],
  "pythonEquivalents": [],
  "alternatives": [],
  "relationships": [],
  "resolutionPriority": 50
}
```

Capability imports:

```json
[
  {
    "from": "@lssm-tech/lib.billing-spec",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.billing-spec/billing-os",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.billing-spec/billing-os/canonical",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.billing-spec/billing-os/catalog",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.billing-spec/billing-os/commerce",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.billing-spec/billing-os/docs",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.billing-spec/billing-os/fixtures",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.billing-spec/billing-os/governance",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.billing-spec/billing-os/packet",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.billing-spec/billing-os/primitives",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.billing-spec/billing-os/usage-truth",
    "symbols": []
  },
  {
    "from": "@lssm-tech/lib.billing-spec/billing-os/validation",
    "symbols": []
  }
]
```

## Catalogue metadata

```json
{
  "family": "contracts",
  "kind": "library",
  "status": "active",
  "adoptionMode": "adoptable",
  "stability": "stable",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    ".",
    "./billing-os",
    "./billing-os/canonical",
    "./billing-os/catalog",
    "./billing-os/commerce",
    "./billing-os/docs",
    "./billing-os/fixtures",
    "./billing-os/governance",
    "./billing-os/packet",
    "./billing-os/primitives",
    "./billing-os/usage-truth",
    "./billing-os/validation",
    "./billing-os/validation-catalog",
    "./billing-os/validation-effects",
    "./billing-os/validation-issue",
    "./billing-os/validation-truth",
    "./commission/commission-model",
    "./contracts",
    "./contracts/credit-note-issue",
    "./contracts/customers",
    "./contracts/invoice-issue",
    "./contracts/invoice-submit",
    "./contracts/quote",
    "./contracts/registry",
    "./contracts/sellable-items",
    "./contracts/status-transitions",
    "./contracts/tax",
    "./fixtures",
    "./reconciliation/reconcile",
    "./service-agreement",
    "./types",
    "./usage/usage-record",
    "./validation"
  ],
  "examples": [],
  "replacements": []
}
```

## Canonical imports

Import paths and symbols below are catalogue declarations. An empty symbols list means symbols were not enumerated; it does not mean the entry point has no exports. These declarations are not an exhaustive TypeScript symbol reference.

```json
[
  {
    "capabilityId": "package.lssm.tech.lib.billing.spec",
    "from": "@lssm-tech/lib.billing-spec",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.billing.spec",
    "from": "@lssm-tech/lib.billing-spec/billing-os",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.billing.spec",
    "from": "@lssm-tech/lib.billing-spec/billing-os/canonical",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.billing.spec",
    "from": "@lssm-tech/lib.billing-spec/billing-os/catalog",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.billing.spec",
    "from": "@lssm-tech/lib.billing-spec/billing-os/commerce",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.billing.spec",
    "from": "@lssm-tech/lib.billing-spec/billing-os/docs",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.billing.spec",
    "from": "@lssm-tech/lib.billing-spec/billing-os/fixtures",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.billing.spec",
    "from": "@lssm-tech/lib.billing-spec/billing-os/governance",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.billing.spec",
    "from": "@lssm-tech/lib.billing-spec/billing-os/packet",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.billing.spec",
    "from": "@lssm-tech/lib.billing-spec/billing-os/primitives",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.billing.spec",
    "from": "@lssm-tech/lib.billing-spec/billing-os/usage-truth",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.lib.billing.spec",
    "from": "@lssm-tech/lib.billing-spec/billing-os/validation",
    "symbols": []
  }
]
```

## Declared export entry points

Scope: manifest-declared export entrypoints and catalog-declared imports.

Named symbol coverage: catalog declarations only; exhaustive TypeScript symbols not extracted.

Installation status: not verified.

- `@lssm-tech/lib.billing-spec` — subpath `.`
  - `unconditional`: `./src/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/index.ts); verified source file.

- `@lssm-tech/lib.billing-spec/billing-os` — subpath `./billing-os`
  - `unconditional`: `./src/billing-os/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/billing-os/index.ts); verified source file.

- `@lssm-tech/lib.billing-spec/billing-os/canonical` — subpath `./billing-os/canonical`
  - `unconditional`: `./src/billing-os/canonical.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/billing-os/canonical.ts); verified source file.

- `@lssm-tech/lib.billing-spec/billing-os/catalog` — subpath `./billing-os/catalog`
  - `unconditional`: `./src/billing-os/catalog.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/billing-os/catalog.ts); verified source file.

- `@lssm-tech/lib.billing-spec/billing-os/commerce` — subpath `./billing-os/commerce`
  - `unconditional`: `./src/billing-os/commerce.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/billing-os/commerce.ts); verified source file.

- `@lssm-tech/lib.billing-spec/billing-os/docs` — subpath `./billing-os/docs`
  - `unconditional`: `./src/billing-os/docs.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/billing-os/docs.ts); verified source file.

- `@lssm-tech/lib.billing-spec/billing-os/fixtures` — subpath `./billing-os/fixtures`
  - `unconditional`: `./src/billing-os/fixtures.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/billing-os/fixtures.ts); verified source file.

- `@lssm-tech/lib.billing-spec/billing-os/governance` — subpath `./billing-os/governance`
  - `unconditional`: `./src/billing-os/governance.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/billing-os/governance.ts); verified source file.

- `@lssm-tech/lib.billing-spec/billing-os/packet` — subpath `./billing-os/packet`
  - `unconditional`: `./src/billing-os/packet.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/billing-os/packet.ts); verified source file.

- `@lssm-tech/lib.billing-spec/billing-os/primitives` — subpath `./billing-os/primitives`
  - `unconditional`: `./src/billing-os/primitives.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/billing-os/primitives.ts); verified source file.

- `@lssm-tech/lib.billing-spec/billing-os/usage-truth` — subpath `./billing-os/usage-truth`
  - `unconditional`: `./src/billing-os/usage-truth.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/billing-os/usage-truth.ts); verified source file.

- `@lssm-tech/lib.billing-spec/billing-os/validation` — subpath `./billing-os/validation`
  - `unconditional`: `./src/billing-os/validation.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/billing-os/validation.ts); verified source file.

- `@lssm-tech/lib.billing-spec/billing-os/validation-catalog` — subpath `./billing-os/validation-catalog`
  - `unconditional`: `./src/billing-os/validation-catalog.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/billing-os/validation-catalog.ts); verified source file.

- `@lssm-tech/lib.billing-spec/billing-os/validation-effects` — subpath `./billing-os/validation-effects`
  - `unconditional`: `./src/billing-os/validation-effects.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/billing-os/validation-effects.ts); verified source file.

- `@lssm-tech/lib.billing-spec/billing-os/validation-issue` — subpath `./billing-os/validation-issue`
  - `unconditional`: `./src/billing-os/validation-issue.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/billing-os/validation-issue.ts); verified source file.

- `@lssm-tech/lib.billing-spec/billing-os/validation-truth` — subpath `./billing-os/validation-truth`
  - `unconditional`: `./src/billing-os/validation-truth.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/billing-os/validation-truth.ts); verified source file.

- `@lssm-tech/lib.billing-spec/commission/commission-model` — subpath `./commission/commission-model`
  - `unconditional`: `./src/commission/commission-model.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/commission/commission-model.ts); verified source file.

- `@lssm-tech/lib.billing-spec/contracts` — subpath `./contracts`
  - `unconditional`: `./src/contracts/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/contracts/index.ts); verified source file.

- `@lssm-tech/lib.billing-spec/contracts/credit-note-issue` — subpath `./contracts/credit-note-issue`
  - `unconditional`: `./src/contracts/credit-note-issue.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/contracts/credit-note-issue.ts); verified source file.

- `@lssm-tech/lib.billing-spec/contracts/customers` — subpath `./contracts/customers`
  - `unconditional`: `./src/contracts/customers.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/contracts/customers.ts); verified source file.

- `@lssm-tech/lib.billing-spec/contracts/invoice-issue` — subpath `./contracts/invoice-issue`
  - `unconditional`: `./src/contracts/invoice-issue.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/contracts/invoice-issue.ts); verified source file.

- `@lssm-tech/lib.billing-spec/contracts/invoice-submit` — subpath `./contracts/invoice-submit`
  - `unconditional`: `./src/contracts/invoice-submit.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/contracts/invoice-submit.ts); verified source file.

- `@lssm-tech/lib.billing-spec/contracts/quote` — subpath `./contracts/quote`
  - `unconditional`: `./src/contracts/quote.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/contracts/quote.ts); verified source file.

- `@lssm-tech/lib.billing-spec/contracts/registry` — subpath `./contracts/registry`
  - `unconditional`: `./src/contracts/registry.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/contracts/registry.ts); verified source file.

- `@lssm-tech/lib.billing-spec/contracts/sellable-items` — subpath `./contracts/sellable-items`
  - `unconditional`: `./src/contracts/sellable-items.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/contracts/sellable-items.ts); verified source file.

- `@lssm-tech/lib.billing-spec/contracts/status-transitions` — subpath `./contracts/status-transitions`
  - `unconditional`: `./src/contracts/status-transitions.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/contracts/status-transitions.ts); verified source file.

- `@lssm-tech/lib.billing-spec/contracts/tax` — subpath `./contracts/tax`
  - `unconditional`: `./src/contracts/tax.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/contracts/tax.ts); verified source file.

- `@lssm-tech/lib.billing-spec/fixtures` — subpath `./fixtures`
  - `unconditional`: `./src/fixtures.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/fixtures.ts); verified source file.

- `@lssm-tech/lib.billing-spec/reconciliation/reconcile` — subpath `./reconciliation/reconcile`
  - `unconditional`: `./src/reconciliation/reconcile.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/reconciliation/reconcile.ts); verified source file.

- `@lssm-tech/lib.billing-spec/service-agreement` — subpath `./service-agreement`
  - `unconditional`: `./src/service-agreement/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/service-agreement/index.ts); verified source file.

- `@lssm-tech/lib.billing-spec/types` — subpath `./types`
  - `unconditional`: `./src/types.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/types.ts); verified source file.

- `@lssm-tech/lib.billing-spec/usage/usage-record` — subpath `./usage/usage-record`
  - `unconditional`: `./src/usage/usage-record.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/usage/usage-record.ts); verified source file.

- `@lssm-tech/lib.billing-spec/validation` — subpath `./validation`
  - `unconditional`: `./src/validation.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/spec/src/validation.ts); verified source file.

## Package publication metadata

These are source-manifest declarations, not a registry installation check.

```json
{
  "types": "./dist/index.d.ts",
  "files": [
    "dist",
    "README.md"
  ],
  "publishExports": {
    ".": {
      "types": "./dist/index.d.ts",
      "browser": "./dist/browser/index.js",
      "bun": "./dist/index.js",
      "node": "./dist/node/index.js",
      "default": "./dist/index.js"
    },
    "./billing-os": {
      "types": "./dist/billing-os/index.d.ts",
      "browser": "./dist/browser/billing-os/index.js",
      "bun": "./dist/billing-os/index.js",
      "node": "./dist/node/billing-os/index.js",
      "default": "./dist/billing-os/index.js"
    },
    "./billing-os/canonical": {
      "types": "./dist/billing-os/canonical.d.ts",
      "browser": "./dist/browser/billing-os/canonical.js",
      "bun": "./dist/billing-os/canonical.js",
      "node": "./dist/node/billing-os/canonical.js",
      "default": "./dist/billing-os/canonical.js"
    },
    "./billing-os/catalog": {
      "types": "./dist/billing-os/catalog.d.ts",
      "browser": "./dist/browser/billing-os/catalog.js",
      "bun": "./dist/billing-os/catalog.js",
      "node": "./dist/node/billing-os/catalog.js",
      "default": "./dist/billing-os/catalog.js"
    },
    "./billing-os/commerce": {
      "types": "./dist/billing-os/commerce.d.ts",
      "browser": "./dist/browser/billing-os/commerce.js",
      "bun": "./dist/billing-os/commerce.js",
      "node": "./dist/node/billing-os/commerce.js",
      "default": "./dist/billing-os/commerce.js"
    },
    "./billing-os/docs": {
      "types": "./dist/billing-os/docs.d.ts",
      "browser": "./dist/browser/billing-os/docs.js",
      "bun": "./dist/billing-os/docs.js",
      "node": "./dist/node/billing-os/docs.js",
      "default": "./dist/billing-os/docs.js"
    },
    "./billing-os/fixtures": {
      "types": "./dist/billing-os/fixtures.d.ts",
      "browser": "./dist/browser/billing-os/fixtures.js",
      "bun": "./dist/billing-os/fixtures.js",
      "node": "./dist/node/billing-os/fixtures.js",
      "default": "./dist/billing-os/fixtures.js"
    },
    "./billing-os/governance": {
      "types": "./dist/billing-os/governance.d.ts",
      "browser": "./dist/browser/billing-os/governance.js",
      "bun": "./dist/billing-os/governance.js",
      "node": "./dist/node/billing-os/governance.js",
      "default": "./dist/billing-os/governance.js"
    },
    "./billing-os/packet": {
      "types": "./dist/billing-os/packet.d.ts",
      "browser": "./dist/browser/billing-os/packet.js",
      "bun": "./dist/billing-os/packet.js",
      "node": "./dist/node/billing-os/packet.js",
      "default": "./dist/billing-os/packet.js"
    },
    "./billing-os/primitives": {
      "types": "./dist/billing-os/primitives.d.ts",
      "browser": "./dist/browser/billing-os/primitives.js",
      "bun": "./dist/billing-os/primitives.js",
      "node": "./dist/node/billing-os/primitives.js",
      "default": "./dist/billing-os/primitives.js"
    },
    "./billing-os/usage-truth": {
      "types": "./dist/billing-os/usage-truth.d.ts",
      "browser": "./dist/browser/billing-os/usage-truth.js",
      "bun": "./dist/billing-os/usage-truth.js",
      "node": "./dist/node/billing-os/usage-truth.js",
      "default": "./dist/billing-os/usage-truth.js"
    },
    "./billing-os/validation": {
      "types": "./dist/billing-os/validation.d.ts",
      "browser": "./dist/browser/billing-os/validation.js",
      "bun": "./dist/billing-os/validation.js",
      "node": "./dist/node/billing-os/validation.js",
      "default": "./dist/billing-os/validation.js"
    },
    "./billing-os/validation-catalog": {
      "types": "./dist/billing-os/validation-catalog.d.ts",
      "browser": "./dist/browser/billing-os/validation-catalog.js",
      "bun": "./dist/billing-os/validation-catalog.js",
      "node": "./dist/node/billing-os/validation-catalog.js",
      "default": "./dist/billing-os/validation-catalog.js"
    },
    "./billing-os/validation-effects": {
      "types": "./dist/billing-os/validation-effects.d.ts",
      "browser": "./dist/browser/billing-os/validation-effects.js",
      "bun": "./dist/billing-os/validation-effects.js",
      "node": "./dist/node/billing-os/validation-effects.js",
      "default": "./dist/billing-os/validation-effects.js"
    },
    "./billing-os/validation-issue": {
      "types": "./dist/billing-os/validation-issue.d.ts",
      "browser": "./dist/browser/billing-os/validation-issue.js",
      "bun": "./dist/billing-os/validation-issue.js",
      "node": "./dist/node/billing-os/validation-issue.js",
      "default": "./dist/billing-os/validation-issue.js"
    },
    "./billing-os/validation-truth": {
      "types": "./dist/billing-os/validation-truth.d.ts",
      "browser": "./dist/browser/billing-os/validation-truth.js",
      "bun": "./dist/billing-os/validation-truth.js",
      "node": "./dist/node/billing-os/validation-truth.js",
      "default": "./dist/billing-os/validation-truth.js"
    },
    "./commission/commission-model": {
      "types": "./dist/commission/commission-model.d.ts",
      "browser": "./dist/browser/commission/commission-model.js",
      "bun": "./dist/commission/commission-model.js",
      "node": "./dist/node/commission/commission-model.js",
      "default": "./dist/commission/commission-model.js"
    },
    "./contracts": {
      "types": "./dist/contracts/index.d.ts",
      "browser": "./dist/browser/contracts/index.js",
      "bun": "./dist/contracts/index.js",
      "node": "./dist/node/contracts/index.js",
      "default": "./dist/contracts/index.js"
    },
    "./contracts/credit-note-issue": {
      "types": "./dist/contracts/credit-note-issue.d.ts",
      "browser": "./dist/browser/contracts/credit-note-issue.js",
      "bun": "./dist/contracts/credit-note-issue.js",
      "node": "./dist/node/contracts/credit-note-issue.js",
      "default": "./dist/contracts/credit-note-issue.js"
    },
    "./contracts/customers": {
      "types": "./dist/contracts/customers.d.ts",
      "browser": "./dist/browser/contracts/customers.js",
      "bun": "./dist/contracts/customers.js",
      "node": "./dist/node/contracts/customers.js",
      "default": "./dist/contracts/customers.js"
    },
    "./contracts/invoice-issue": {
      "types": "./dist/contracts/invoice-issue.d.ts",
      "browser": "./dist/browser/contracts/invoice-issue.js",
      "bun": "./dist/contracts/invoice-issue.js",
      "node": "./dist/node/contracts/invoice-issue.js",
      "default": "./dist/contracts/invoice-issue.js"
    },
    "./contracts/invoice-submit": {
      "types": "./dist/contracts/invoice-submit.d.ts",
      "browser": "./dist/browser/contracts/invoice-submit.js",
      "bun": "./dist/contracts/invoice-submit.js",
      "node": "./dist/node/contracts/invoice-submit.js",
      "default": "./dist/contracts/invoice-submit.js"
    },
    "./contracts/quote": {
      "types": "./dist/contracts/quote.d.ts",
      "browser": "./dist/browser/contracts/quote.js",
      "bun": "./dist/contracts/quote.js",
      "node": "./dist/node/contracts/quote.js",
      "default": "./dist/contracts/quote.js"
    },
    "./contracts/registry": {
      "types": "./dist/contracts/registry.d.ts",
      "browser": "./dist/browser/contracts/registry.js",
      "bun": "./dist/contracts/registry.js",
      "node": "./dist/node/contracts/registry.js",
      "default": "./dist/contracts/registry.js"
    },
    "./contracts/sellable-items": {
      "types": "./dist/contracts/sellable-items.d.ts",
      "browser": "./dist/browser/contracts/sellable-items.js",
      "bun": "./dist/contracts/sellable-items.js",
      "node": "./dist/node/contracts/sellable-items.js",
      "default": "./dist/contracts/sellable-items.js"
    },
    "./contracts/status-transitions": {
      "types": "./dist/contracts/status-transitions.d.ts",
      "browser": "./dist/browser/contracts/status-transitions.js",
      "bun": "./dist/contracts/status-transitions.js",
      "node": "./dist/node/contracts/status-transitions.js",
      "default": "./dist/contracts/status-transitions.js"
    },
    "./contracts/tax": {
      "types": "./dist/contracts/tax.d.ts",
      "browser": "./dist/browser/contracts/tax.js",
      "bun": "./dist/contracts/tax.js",
      "node": "./dist/node/contracts/tax.js",
      "default": "./dist/contracts/tax.js"
    },
    "./fixtures": {
      "types": "./dist/fixtures.d.ts",
      "browser": "./dist/browser/fixtures.js",
      "bun": "./dist/fixtures.js",
      "node": "./dist/node/fixtures.js",
      "default": "./dist/fixtures.js"
    },
    "./reconciliation/reconcile": {
      "types": "./dist/reconciliation/reconcile.d.ts",
      "browser": "./dist/browser/reconciliation/reconcile.js",
      "bun": "./dist/reconciliation/reconcile.js",
      "node": "./dist/node/reconciliation/reconcile.js",
      "default": "./dist/reconciliation/reconcile.js"
    },
    "./service-agreement": {
      "types": "./dist/service-agreement/index.d.ts",
      "browser": "./dist/browser/service-agreement/index.js",
      "bun": "./dist/service-agreement/index.js",
      "node": "./dist/node/service-agreement/index.js",
      "default": "./dist/service-agreement/index.js"
    },
    "./types": {
      "types": "./dist/types.d.ts",
      "browser": "./dist/browser/types.js",
      "bun": "./dist/types.js",
      "node": "./dist/node/types.js",
      "default": "./dist/types.js"
    },
    "./usage/usage-record": {
      "types": "./dist/usage/usage-record.d.ts",
      "browser": "./dist/browser/usage/usage-record.js",
      "bun": "./dist/usage/usage-record.js",
      "node": "./dist/node/usage/usage-record.js",
      "default": "./dist/usage/usage-record.js"
    },
    "./validation": {
      "types": "./dist/validation.d.ts",
      "browser": "./dist/browser/validation.js",
      "bun": "./dist/validation.js",
      "node": "./dist/node/validation.js",
      "default": "./dist/validation.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- [@lssm-tech/lib.contracts-spec-core](https://lssm.co/docs/packages/lib.contracts-spec-core/): `workspace:^`
- [@lssm-tech/lib.schema](https://lssm.co/docs/packages/lib.schema/): `workspace:^`
- `zod`: `catalog:`

### Peer dependencies

No declarations in the inspected manifest.

### Optional dependencies

No declarations in the inspected manifest.

### Development dependencies

- [@lssm-tech/tool.bun](https://lssm.co/docs/packages/tool.bun/): `workspace:*`
- [@lssm-tech/tool.typescript](https://lssm.co/docs/packages/tool.typescript/): `workspace:*`
- `typescript`: `catalog:`

### Peer dependency metadata

```json
{}
```

### Bundled dependencies

```json
null
```

## Package scripts

Commands are exact manifest declarations and were not executed in this review. Script metadata status: complete pinned manifest.

```json
{
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
  "publish:pkg:canary": "bun publish:pkg --tag canary",
  "build": "contractspec-bun-build build",
  "build:bundle": "contractspec-bun-build transpile",
  "build:types": "contractspec-bun-build types",
  "dev": "contractspec-bun-build dev",
  "clean": "rimraf dist .turbo",
  "lint": "bun lint:fix",
  "lint:fix": "node ../../../../scripts/biome.cjs check --write .",
  "lint:check": "node ../../../../scripts/biome.cjs check .",
  "test": "bun test",
  "prebuild": "contractspec-bun-build prebuild",
  "typecheck": "tsgo --noEmit"
}
```

## Declared documentation links

- [Lib Billing Spec documentation](https://www.npmjs.com/package/%40lssm-tech%2Flib.billing-spec) — declared link; destination not verified.

```json
{
  "url": "https://www.npmjs.com/package/%40lssm-tech%2Flib.billing-spec",
  "kind": "readme"
}
```

## Existing agent-guide projection

```json
{
  "path": "packages/apps/web-landing/public/llms-packages/lib.billing-spec.txt",
  "route": "/llms/lib.billing-spec",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/lib.billing-spec.txt",
  "blobSha": "6c64456d696a9a8fd382e26a1cd2757607a7cd4e",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "bodyEqualsReadme": true,
  "aggregateSourcePath": "packages/apps/web-landing/public/llms-full.txt",
  "aggregateBlobSha": "691b1d33efee24c440598b9106c81432f56aafaf"
}
```
