# @lssm-tech/module.growth-os

Reusable participant and admin UI for GrowthOS referral and affiliate programs.

## Source and release context

- Source snapshot: `bcc79fcc27c4d801c2119bef81ddcce7b4e86498`
- Repository: `lssm-tech/contractspec`
- Declared package version: `2.1.4`
- Package path: `packages/domains/growth/module`
- Manifest path: `packages/domains/growth/module/package.json`
- Manifest Git blob: `6ce2da196ecec8766f622938b939b8f4396e27bb`
- Manifest origin: pinned GitHub manifest fetch
- Manual: [@lssm-tech/module.growth-os](https://lssm.co/docs/packages/module.growth-os/)
- 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/growth/module)
- [Manifest source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/module/package.json)
- [Readme source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/module/README.md)
- [Guide source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/module.growth-os.txt)

## Package metadata

```json
{
  "layer": "domains",
  "physicalArea": "growth",
  "primaryArea": "content-and-growth",
  "classification": {
    "privateDeclared": null,
    "catalogFamily": "solutions",
    "catalogKind": "module",
    "catalogStatus": "active",
    "adoptionMode": "adoptable",
    "stability": "experimental"
  },
  "descriptionOrigin": "package.json",
  "manifestComplete": true,
  "publicationPolicyApplied": false
}
```

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

Primary area: [Content, growth and creator operations](https://lssm.co/docs/areas/content-and-growth/)

## Package guide

```json
{
  "status": "available",
  "sourcePath": "packages/domains/growth/module/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/module/README.md",
  "blobSha": "979a0ca2ddaa7b9e019846fbb14d2451600df9d5",
  "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/module.growth-os`

Design-system UI for referral and affiliate participants and administrators. Components are controlled, provider-neutral, responsive, and available with English, French, and Spanish catalogs. They cover loading/error/empty states, participant links/conversions/earnings/payout history, and permission-gated program, reward, reversal, retry, batch, and reconciliation controls.

The module does not compute attribution, rewards, or balances. Hosts pass authoritative GrowthOS projections and invoke ContractSpec-backed callbacks. Raw acquisition tokens, provider details, and host error payloads are never rendered.


The optional marketing workspace registrar binds the library-owned workspace query.
Tenant/workspace/actor identity comes from HandlerCtx, while the injected brand loader
authorizes access and resolves the approved revision. Bootstrap never grants inference
or publishing approval.


`registerMarketingPlanningApproval` mounts scoped quote, issuance and recovery contracts.
Its injected authority owns durable pricing, explicit human review and receipt issuance.
Request scope is checked against HandlerCtx before calling that authority.


`registerMarketingMetricReports` composes the library-owned reporting calculation with
an authorized observation loader and canonical REST/MCP contracts. It rejects foreign
workspace scope before reads and preserves missing-data results.


## Declared capabilities

### Module Growth Os

Capability ID: `package.lssm.tech.module.growth.os`

Reusable participant and admin UI for GrowthOS referral and affiliate programs.

Use cases:

- Adopt reusable participant and admin ui for growthos referral and affiliate programs

Constraints:

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

Other capability declarations:

```json
{
  "status": "active",
  "aliases": [
    "module",
    "growth"
  ],
  "pythonEquivalents": [],
  "alternatives": [],
  "relationships": [],
  "resolutionPriority": 50
}
```

Capability imports:

```json
[
  {
    "from": "@lssm-tech/module.growth-os",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.growth-os/acquisition",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.growth-os/i18n",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.growth-os/ui",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.growth-os/ui/AdminGrowthPanel",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.growth-os/ui/ParticipantGrowthPanel",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.growth-os/ui/ProgramPolicyEditor",
    "symbols": []
  }
]
```

## Catalogue metadata

```json
{
  "family": "solutions",
  "kind": "module",
  "status": "active",
  "adoptionMode": "adoptable",
  "stability": "experimental",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    ".",
    "./acquisition",
    "./i18n",
    "./ui",
    "./ui/AdminGrowthPanel",
    "./ui/ParticipantGrowthPanel",
    "./ui/ProgramPolicyEditor",
    "./marketing"
  ],
  "examples": [],
  "replacements": [],
  "visualTesting": {
    "status": "deferred",
    "owner": "@contractspec-core",
    "targetWave": "wave-3-react-packages",
    "rationale": "Foundational Storybook adoption establishes shared catalogs and guardrails before this package migrates."
  }
}
```

## 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.module.growth.os",
    "from": "@lssm-tech/module.growth-os",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.growth.os",
    "from": "@lssm-tech/module.growth-os/acquisition",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.growth.os",
    "from": "@lssm-tech/module.growth-os/i18n",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.growth.os",
    "from": "@lssm-tech/module.growth-os/ui",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.growth.os",
    "from": "@lssm-tech/module.growth-os/ui/AdminGrowthPanel",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.growth.os",
    "from": "@lssm-tech/module.growth-os/ui/ParticipantGrowthPanel",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.growth.os",
    "from": "@lssm-tech/module.growth-os/ui/ProgramPolicyEditor",
    "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/module.growth-os` — subpath `.`
  - `unconditional`: `./src/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/module/src/index.ts); verified source file.

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

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

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

- `@lssm-tech/module.growth-os/marketing/conversions` — subpath `./marketing/conversions`
  - `unconditional`: `./src/marketing/conversions.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/module/src/marketing/conversions.ts); verified source file.

- `@lssm-tech/module.growth-os/marketing/measurement-report` — subpath `./marketing/measurement-report`
  - `unconditional`: `./src/marketing/measurement-report.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/module/src/marketing/measurement-report.ts); verified source file.

- `@lssm-tech/module.growth-os/marketing/observations` — subpath `./marketing/observations`
  - `unconditional`: `./src/marketing/observations.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/module/src/marketing/observations.ts); verified source file.

- `@lssm-tech/module.growth-os/marketing/planning` — subpath `./marketing/planning`
  - `unconditional`: `./src/marketing/planning.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/module/src/marketing/planning.ts); verified source file.

- `@lssm-tech/module.growth-os/marketing/planning-approval` — subpath `./marketing/planning-approval`
  - `unconditional`: `./src/marketing/planning-approval.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/module/src/marketing/planning-approval.ts); verified source file.

- `@lssm-tech/module.growth-os/marketing/workspace` — subpath `./marketing/workspace`
  - `unconditional`: `./src/marketing/workspace.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/module/src/marketing/workspace.ts); verified source file.

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

- `@lssm-tech/module.growth-os/ui/AdminGrowthPanel` — subpath `./ui/AdminGrowthPanel`
  - `unconditional`: `./src/ui/AdminGrowthPanel.tsx` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/module/src/ui/AdminGrowthPanel.tsx); verified source file.

- `@lssm-tech/module.growth-os/ui/ParticipantGrowthPanel` — subpath `./ui/ParticipantGrowthPanel`
  - `unconditional`: `./src/ui/ParticipantGrowthPanel.tsx` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/module/src/ui/ParticipantGrowthPanel.tsx); verified source file.

- `@lssm-tech/module.growth-os/ui/ProgramPolicyEditor` — subpath `./ui/ProgramPolicyEditor`
  - `unconditional`: `./src/ui/ProgramPolicyEditor.tsx` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/module/src/ui/ProgramPolicyEditor.tsx); 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"
    },
    "./acquisition": {
      "types": "./dist/acquisition.d.ts",
      "browser": "./dist/browser/acquisition.js",
      "bun": "./dist/acquisition.js",
      "node": "./dist/node/acquisition.js",
      "default": "./dist/acquisition.js"
    },
    "./i18n": {
      "types": "./dist/i18n.d.ts",
      "browser": "./dist/browser/i18n.js",
      "bun": "./dist/i18n.js",
      "node": "./dist/node/i18n.js",
      "default": "./dist/i18n.js"
    },
    "./marketing": {
      "types": "./dist/marketing/index.d.ts",
      "browser": "./dist/browser/marketing/index.js",
      "bun": "./dist/marketing/index.js",
      "node": "./dist/node/marketing/index.js",
      "default": "./dist/marketing/index.js"
    },
    "./marketing/conversions": {
      "types": "./dist/marketing/conversions.d.ts",
      "browser": "./dist/browser/marketing/conversions.js",
      "bun": "./dist/marketing/conversions.js",
      "node": "./dist/node/marketing/conversions.js",
      "default": "./dist/marketing/conversions.js"
    },
    "./marketing/measurement-report": {
      "types": "./dist/marketing/measurement-report.d.ts",
      "browser": "./dist/browser/marketing/measurement-report.js",
      "bun": "./dist/marketing/measurement-report.js",
      "node": "./dist/node/marketing/measurement-report.js",
      "default": "./dist/marketing/measurement-report.js"
    },
    "./marketing/observations": {
      "types": "./dist/marketing/observations.d.ts",
      "browser": "./dist/browser/marketing/observations.js",
      "bun": "./dist/marketing/observations.js",
      "node": "./dist/node/marketing/observations.js",
      "default": "./dist/marketing/observations.js"
    },
    "./marketing/planning": {
      "types": "./dist/marketing/planning.d.ts",
      "browser": "./dist/browser/marketing/planning.js",
      "bun": "./dist/marketing/planning.js",
      "node": "./dist/node/marketing/planning.js",
      "default": "./dist/marketing/planning.js"
    },
    "./marketing/planning-approval": {
      "types": "./dist/marketing/planning-approval.d.ts",
      "browser": "./dist/browser/marketing/planning-approval.js",
      "bun": "./dist/marketing/planning-approval.js",
      "node": "./dist/node/marketing/planning-approval.js",
      "default": "./dist/marketing/planning-approval.js"
    },
    "./marketing/workspace": {
      "types": "./dist/marketing/workspace.d.ts",
      "browser": "./dist/browser/marketing/workspace.js",
      "bun": "./dist/marketing/workspace.js",
      "node": "./dist/node/marketing/workspace.js",
      "default": "./dist/marketing/workspace.js"
    },
    "./ui": {
      "types": "./dist/ui/index.d.ts",
      "browser": "./dist/browser/ui/index.js",
      "bun": "./dist/ui/index.js",
      "node": "./dist/node/ui/index.js",
      "default": "./dist/ui/index.js"
    },
    "./ui/AdminGrowthPanel": {
      "types": "./dist/ui/AdminGrowthPanel.d.ts",
      "browser": "./dist/browser/ui/AdminGrowthPanel.js",
      "bun": "./dist/ui/AdminGrowthPanel.js",
      "node": "./dist/node/ui/AdminGrowthPanel.js",
      "default": "./dist/ui/AdminGrowthPanel.js"
    },
    "./ui/ParticipantGrowthPanel": {
      "types": "./dist/ui/ParticipantGrowthPanel.d.ts",
      "browser": "./dist/browser/ui/ParticipantGrowthPanel.js",
      "bun": "./dist/ui/ParticipantGrowthPanel.js",
      "node": "./dist/node/ui/ParticipantGrowthPanel.js",
      "default": "./dist/ui/ParticipantGrowthPanel.js"
    },
    "./ui/ProgramPolicyEditor": {
      "types": "./dist/ui/ProgramPolicyEditor.d.ts",
      "browser": "./dist/browser/ui/ProgramPolicyEditor.js",
      "bun": "./dist/ui/ProgramPolicyEditor.js",
      "node": "./dist/node/ui/ProgramPolicyEditor.js",
      "default": "./dist/ui/ProgramPolicyEditor.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- [@lssm-tech/lib.content-gen](https://lssm.co/docs/packages/lib.content-gen/): `workspace:^`
- [@lssm-tech/lib.contracts-runtime-core](https://lssm.co/docs/packages/lib.contracts-runtime-core/): `workspace:^`
- [@lssm-tech/lib.contracts-spec-core](https://lssm.co/docs/packages/lib.contracts-spec-core/): `workspace:^`
- [@lssm-tech/lib.design-system](https://lssm.co/docs/packages/lib.design-system/): `workspace:^`
- [@lssm-tech/lib.growth-runtime](https://lssm.co/docs/packages/lib.growth-runtime/): `workspace:^`
- [@lssm-tech/lib.growth-spec](https://lssm.co/docs/packages/lib.growth-spec/): `workspace:^`
- `react`: `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:*`
- `@types/react`: `catalog:types`
- `@types/react-dom`: `catalog:types`
- `react-dom`: `catalog:`
- `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:check": "node ../../../../scripts/biome.cjs check .",
  "lint:fix": "node ../../../../scripts/biome.cjs check --write .",
  "test": "bun test",
  "prebuild": "contractspec-bun-build prebuild",
  "typecheck": "tsgo --noEmit"
}
```

## Declared documentation links

- [Module Growth Os documentation](https://www.npmjs.com/package/%40lssm-tech%2Fmodule.growth-os) — declared link; destination not verified.

```json
{
  "url": "https://www.npmjs.com/package/%40lssm-tech%2Fmodule.growth-os",
  "kind": "readme"
}
```

## Existing agent-guide projection

```json
{
  "path": "packages/apps/web-landing/public/llms-packages/module.growth-os.txt",
  "route": "/llms/module.growth-os",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/module.growth-os.txt",
  "blobSha": "979a0ca2ddaa7b9e019846fbb14d2451600df9d5",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "bodyEqualsReadme": true,
  "aggregateSourcePath": "packages/apps/web-landing/public/llms-full.txt",
  "aggregateBlobSha": "691b1d33efee24c440598b9106c81432f56aafaf"
}
```
