# @lssm-tech/module.work-management

Reusable Work OS application services and web/native view models.

## Source and release context

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

## Package metadata

```json
{
  "layer": "domains",
  "physicalArea": "work",
  "primaryArea": "company-and-work",
  "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: [Company, work and service operations](https://lssm.co/docs/areas/company-and-work/)

## Package guide

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

Reusable Work OS application services and view models.

The module composes `@lssm-tech/lib.work-spec` and
`@lssm-tech/lib.work-runtime` without binding a database, provider, transport,
or product shell. Consumers inject durable event/projection/idempotency ports.

`./transports` exposes REST, GraphQL, and MCP adapters over the same injected
`WorkMutationExecutor`. Hosts bind authentication and tenant context before
calling it; the module never creates a permissive or in-memory fallback.
`createAuthenticatedWorkTransportAdapters` rejects any payload whose actor or
tenant/organization/workspace scope differs from the verified host context.

Managed CompanyOS can compose this module with OPA, Knowledge, Workflow, and
integration packages. Downstream products can consume it independently.

The current command surface covers object lifecycle and transitions, recurrence,
time tracking, relationships, immutable comment creation, attachment linking,
native custom-field values, and explicit Inbox Capture for source-provenanced
`inbox_item` objects. Every command is authorized, idempotent,
correlated, evidence-linked, and committed with at least one explicit
transactional-outbox destination through an injected atomic port before its
projection is published.

Durable command ports expose optional `lookupCommitted` so services can resolve an authorized retry before object-existence or revision validation. The PostgreSQL adapter fences the request identity and returns its persisted receipt, or an idempotency conflict for changed input. Managed hosts keep lookup, projection reads and commit in one outer authority transaction, so concurrent identical creates return one committed event. Other adapters must implement this receipt lookup to qualify equivalent retry behavior.


Work scope validation now includes tenant, organization and workspace on object reads, including both materialized projections and replay fallback. Mismatched projection identities fail closed. Mutation services validate the current object's identity/scope and replay receipts against the authorized actor and scope. PostgreSQL commits serialize by aggregate before revision checks and reject changing an existing aggregate's scope; projection upserts cannot replace a newer revision with an older worker result. These changes preserve existing wire contracts and require no schema migration. Tenant-only event/outbox worker ports remain trusted internal surfaces and must not be exposed as workspace-authorized reads.


## Declared capabilities

### Module Work Management

Capability ID: `package.lssm.tech.module.work.management`

Reusable Work OS application services and web/native view models.

Use cases:

- Adopt reusable work os application services and web/native view models

Constraints:

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

Other capability declarations:

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

Capability imports:

```json
[
  {
    "from": "@lssm-tech/module.work-management",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.work-management/service",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.work-management/transports",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.work-management/view-models",
    "symbols": []
  }
]
```

## Catalogue metadata

```json
{
  "family": "solutions",
  "kind": "module",
  "status": "active",
  "adoptionMode": "adoptable",
  "stability": "experimental",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    ".",
    "./service",
    "./transports",
    "./view-models"
  ],
  "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.work.management",
    "from": "@lssm-tech/module.work-management",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.work.management",
    "from": "@lssm-tech/module.work-management/service",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.work.management",
    "from": "@lssm-tech/module.work-management/transports",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.work.management",
    "from": "@lssm-tech/module.work-management/view-models",
    "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.work-management` — subpath `.`
  - `unconditional`: `./src/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/work/module/src/index.ts); verified source file.

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

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

- `@lssm-tech/module.work-management/view-models` — subpath `./view-models`
  - `unconditional`: `./src/view-models.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/work/module/src/view-models.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"
    },
    "./service": {
      "types": "./dist/service.d.ts",
      "browser": "./dist/browser/service.js",
      "bun": "./dist/service.js",
      "node": "./dist/node/service.js",
      "default": "./dist/service.js"
    },
    "./transports": {
      "types": "./dist/transports.d.ts",
      "browser": "./dist/browser/transports.js",
      "bun": "./dist/transports.js",
      "node": "./dist/node/transports.js",
      "default": "./dist/transports.js"
    },
    "./view-models": {
      "types": "./dist/view-models.d.ts",
      "browser": "./dist/browser/view-models.js",
      "bun": "./dist/view-models.js",
      "node": "./dist/node/view-models.js",
      "default": "./dist/view-models.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- [@lssm-tech/lib.work-runtime](https://lssm.co/docs/packages/lib.work-runtime/): `workspace:^`
- [@lssm-tech/lib.work-spec](https://lssm.co/docs/packages/lib.work-spec/): `workspace:^`

### 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

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

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

## Existing agent-guide projection

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