# @lssm-tech/module.editions

Reusable deterministic edition platform surfaces for resources, UI, workflows, storage, agents, and evidence.

## Source and release context

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

## Package metadata

```json
{
  "layer": "platform",
  "physicalArea": "governance",
  "primaryArea": "governance-and-approvals",
  "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: [Governance, decisions and approvals](https://lssm.co/docs/areas/governance-and-approvals/)

## Package guide

```json
{
  "status": "available",
  "sourcePath": "packages/platform/governance/editions/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/governance/editions/README.md",
  "blobSha": "ca31f22d62cac3dd3562c27cec456f6ebb34ffb7",
  "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.editions

Reusable deterministic edition platform surfaces for ContractSpec.

This module owns composed behavior around canonical `@lssm-tech/lib.contracts-spec/editions` contracts: resource builders, UI view models, workflows, storage adapter wiring, deterministic agent plans, and evidence composition.

## Boundaries

- Imports libs only.
- No peer modules, bundles, apps, examples, provider SDKs, raw secrets, external database requirement, or production writes.
- Public tracks stay narrow and acyclic: `./resources`, `./ui`, `./workflow`, `./storage`, `./agents`, `./evidence`. `./proof` intentionally composes those tracks into an aggregate readiness proof.

## Public tracks and review boundaries

The module is a composition layer over `@lssm-tech/lib.contracts-spec/editions`;
it must not create a second edition ontology. Keep each track deterministic and
credential-free:

| Track | Responsibility | Review focus |
| --- | --- | --- |
| `./resources` | Resource template metadata for live proof/showcase callers. | No injected resolver side effects or provider calls. |
| `./ui` | View-model projection for edition screens. | Uses typed edition identity/evidence fields; no private source imports. |
| `./workflow` | Lifecycle transitions and audit events. | Published, rollback, archive, and migration transitions preserve evidence refs. |
| `./storage` | Adapter composition over file/database edition projections. | File and database counts derive from lib storage kinds, not product-specific ids. |
| `./agents` | Deterministic improvement plans. | No provider execution; plans cite edition refs and reversible steps. |
| `./evidence` | Harness/replay/knowledge evidence composition. | Reuses canonical evidence refs instead of inventing module-local proof systems. |
| `./proof` | Aggregate platform readiness proof. | Public exports, runtime wiring, and gate refs stay aligned with package exports. |

For published-edition API work, review code and docs against the subject-generic
identity contract in `packages/platform/delivery/contracts-spec-compat/src/editions/README.md`: module
callers should depend on `subjectKey`, `subjectType`, `editionKind`, `editionId`, storage
projection refs, authority scopes, and evidence refs rather than parsing
CompanyOS-specific fixture ids.

## Commands

```bash
bun run test
bun run typecheck
bun run build
node ../../../scripts/biome.cjs check .
```



## Declared capabilities

### Module Editions

Capability ID: `package.lssm.tech.module.editions`

Reusable deterministic edition platform surfaces for resources, UI, workflows, storage, agents, and evidence.

Use cases:

- Adopt reusable deterministic edition platform surfaces for resources, ui, workflows, storage, agents, and evidence

Constraints:

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

Other capability declarations:

```json
{
  "status": "active",
  "aliases": [
    "contractspec",
    "editions",
    "module",
    "workflow",
    "evidence"
  ],
  "pythonEquivalents": [],
  "alternatives": [],
  "relationships": [],
  "resolutionPriority": 50
}
```

Capability imports:

```json
[
  {
    "from": "@lssm-tech/module.editions",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.editions/agents",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.editions/evidence",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.editions/proof",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.editions/resources",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.editions/storage",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.editions/ui",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.editions/workflow",
    "symbols": []
  }
]
```

## Catalogue metadata

```json
{
  "family": "solutions",
  "kind": "module",
  "status": "active",
  "adoptionMode": "adoptable",
  "stability": "experimental",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    ".",
    "./agents",
    "./evidence",
    "./proof",
    "./resources",
    "./storage",
    "./ui",
    "./workflow"
  ],
  "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.module.editions",
    "from": "@lssm-tech/module.editions",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.editions",
    "from": "@lssm-tech/module.editions/agents",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.editions",
    "from": "@lssm-tech/module.editions/evidence",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.editions",
    "from": "@lssm-tech/module.editions/proof",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.editions",
    "from": "@lssm-tech/module.editions/resources",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.editions",
    "from": "@lssm-tech/module.editions/storage",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.editions",
    "from": "@lssm-tech/module.editions/ui",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.editions",
    "from": "@lssm-tech/module.editions/workflow",
    "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.editions` — subpath `.`
  - `unconditional`: `./src/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/governance/editions/src/index.ts); verified source file.

- `@lssm-tech/module.editions/agents` — subpath `./agents`
  - `unconditional`: `./src/agents/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/governance/editions/src/agents/index.ts); verified source file.

- `@lssm-tech/module.editions/evidence` — subpath `./evidence`
  - `unconditional`: `./src/evidence/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/governance/editions/src/evidence/index.ts); verified source file.

- `@lssm-tech/module.editions/proof` — subpath `./proof`
  - `unconditional`: `./src/proof.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/governance/editions/src/proof.ts); verified source file.

- `@lssm-tech/module.editions/resources` — subpath `./resources`
  - `unconditional`: `./src/resources/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/governance/editions/src/resources/index.ts); verified source file.

- `@lssm-tech/module.editions/storage` — subpath `./storage`
  - `unconditional`: `./src/storage/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/governance/editions/src/storage/index.ts); verified source file.

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

- `@lssm-tech/module.editions/workflow` — subpath `./workflow`
  - `unconditional`: `./src/workflow/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/governance/editions/src/workflow/index.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"
    },
    "./agents": {
      "types": "./dist/agents/index.d.ts",
      "browser": "./dist/browser/agents/index.js",
      "bun": "./dist/agents/index.js",
      "node": "./dist/node/agents/index.js",
      "default": "./dist/agents/index.js"
    },
    "./evidence": {
      "types": "./dist/evidence/index.d.ts",
      "browser": "./dist/browser/evidence/index.js",
      "bun": "./dist/evidence/index.js",
      "node": "./dist/node/evidence/index.js",
      "default": "./dist/evidence/index.js"
    },
    "./proof": {
      "types": "./dist/proof.d.ts",
      "browser": "./dist/browser/proof.js",
      "bun": "./dist/proof.js",
      "node": "./dist/node/proof.js",
      "default": "./dist/proof.js"
    },
    "./resources": {
      "types": "./dist/resources/index.d.ts",
      "browser": "./dist/browser/resources/index.js",
      "bun": "./dist/resources/index.js",
      "node": "./dist/node/resources/index.js",
      "default": "./dist/resources/index.js"
    },
    "./storage": {
      "types": "./dist/storage/index.d.ts",
      "browser": "./dist/browser/storage/index.js",
      "bun": "./dist/storage/index.js",
      "node": "./dist/node/storage/index.js",
      "default": "./dist/storage/index.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"
    },
    "./workflow": {
      "types": "./dist/workflow/index.d.ts",
      "browser": "./dist/browser/workflow/index.js",
      "bun": "./dist/workflow/index.js",
      "node": "./dist/node/workflow/index.js",
      "default": "./dist/workflow/index.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- [@lssm-tech/lib.contracts-library](https://lssm.co/docs/packages/lib.contracts-library/): `workspace:^`
- [@lssm-tech/lib.contracts-runtime-kernel](https://lssm.co/docs/packages/lib.contracts-runtime-kernel/): `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 --unsafe --only=nursery/useSortedClasses . && node ../../../../scripts/biome.cjs check --write .",
  "lint:check": "node ../../../../scripts/biome.cjs check .",
  "prebuild": "contractspec-bun-build prebuild",
  "test": "bun test",
  "typecheck": "tsgo --noEmit"
}
```

## Declared documentation links

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

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

## Existing agent-guide projection

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