# @lssm-tech/example.companyos-communicationos-operating-cockpit

Deterministic combined CompanyOS and CommunicationOS operating cockpit example for governed conversation-to-work loops.

## Source and release context

- Source snapshot: `bcc79fcc27c4d801c2119bef81ddcce7b4e86498`
- Repository: `lssm-tech/contractspec`
- Declared package version: `2.0.6`
- Package path: `examples/companyos-communicationos-operating-cockpit`
- Manifest path: `examples/companyos-communicationos-operating-cockpit/package.json`
- Manifest Git blob: `9ee89dd94e6dd035392d043d631b6210545a9e18`
- Manifest origin: pinned GitHub manifest fetch
- Manual: [@lssm-tech/example.companyos-communicationos-operating-cockpit](https://lssm.co/docs/packages/example.companyos-communicationos-operating-cockpit/)
- 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/examples/companyos-communicationos-operating-cockpit)
- [Manifest source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/companyos-communicationos-operating-cockpit/package.json)
- [Readme source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/companyos-communicationos-operating-cockpit/README.md)
- [Guide source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/example.companyos-communicationos-operating-cockpit.txt)

## Package metadata

```json
{
  "layer": "examples",
  "physicalArea": null,
  "primaryArea": "examples-and-patterns",
  "classification": {
    "privateDeclared": null,
    "catalogFamily": "ui",
    "catalogKind": "example",
    "catalogStatus": "active",
    "adoptionMode": "reference-only",
    "stability": "experimental"
  },
  "descriptionOrigin": "package.json",
  "manifestComplete": true,
  "publicationPolicyApplied": false
}
```

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

Primary area: [Examples and implementation patterns](https://lssm.co/docs/areas/examples-and-patterns/)

## Package guide

```json
{
  "status": "available",
  "sourcePath": "examples/companyos-communicationos-operating-cockpit/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/companyos-communicationos-operating-cockpit/README.md",
  "blobSha": "7ac74a0c16496c65152a5c06f8818df76338f4d3",
  "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.

# CompanyOS + CommunicationOS Operating Cockpit

Deterministic combined example that turns CommunicationOS thread/action evidence into a CompanyOS work execution plan, runs it through policy-gated dry-run execution, and feeds the result back into a CommunicationOS audit/action state.

## Boundaries

- Provider-free by default: no network I/O, credentials, outbound messages, deployments, or production actions.
- Imports reusable modules/libs only; it does not import other examples.
- Package-local `src/contracts` describe proof fixtures for this example, not canonical reusable cross-OS contracts.
- CompanyOS execution uses deterministic module adapters from `@lssm-tech/module.companyos`.
- Message-originated commands enter the CommunicationOS command inbox as evidence only; production sends and CompanyOS high-impact bypass attempts are blocked before execution.


## Rich cockpit proof

- The UI exports an app-like `TemplateShell` cockpit from `@lssm-tech/lib.example-shared-ui/TemplateShell` with ten named screens: home, dashboard, CommunicationOS inbox, thread detail, evidence map, CompanyOS work graph, policy gate, dry-run console, audit feedback, and starter-kit guide.
- The start/home and dashboard screens introduce the cross-OS story, deterministic safety boundaries, metrics, production-readiness checks, command lanes, operator notes, and quick actions before the deeper workflow screens.
- Sidebar navigation, thread selection, evidence drill-down, workflow-stage inspection, policy approval, dry-run execution, audit viewing, operator notes, and reset are backed by a pure reducer so the preview is interactive without providers or side effects.
- Selecting a CommunicationOS thread advances deterministic state into CompanyOS work mapping; running the dry-run advances the proof into CommunicationOS audit feedback without outbound effects.
- Reusable starter-kit proof imports CompanyOS and CommunicationOS UI/runtime surfaces from `@lssm-tech/module.companyos` and `@lssm-tech/module.communication-os`; scenario copy and fixtures remain package-local.
- The proof summary includes `commandInboxStatus: blocked` and `companyOsBridgeStatus: blocked` so release evidence catches any accidental execution bypass.

## Public integration surfaces

Import the package-native cockpit UI from `@lssm-tech/example.companyos-communicationos-operating-cockpit/ui` when a host wants the combined proof without depending on another example package. The `./ui` subpath exports:

- `OperatingCockpitPreview` for the deterministic app-like cockpit.
- `OperatingCockpitScreen`, `OPERATING_COCKPIT_SCREEN_HREFS`, and `operatingCockpitNavigation` for host routing, docs anchors, and preview catalogs.
- `createInitialOperatingCockpitState`, `reduceOperatingCockpitState`, `serializeOperatingCockpitState`, `parseOperatingCockpitState`, and `createInMemoryOperatingCockpitPersistence` for host-owned state snapshots. The example never writes to browser storage, disk, or a backend by itself; hosts provide persistence adapters explicitly.
- `OriginChip`, `OriginChipProps`, and `COCKPIT_ORIGIN_KINDS` for rendering source-origin context from CompanyOS action-origin types while falling back safely for unknown kinds.

Public discovery is integrated through `@lssm-tech/module.examples`: registry entries point at this package's `./docs`, feature entrypoint, sandbox link, LLMS guide, and package-native `./ui` preview. Regenerate the example registry after changing these exports or discovery fields.

## Commands

```bash
bun run --cwd examples/companyos-communicationos-operating-cockpit test
bun run --cwd examples/companyos-communicationos-operating-cockpit typecheck
bun run --cwd examples/companyos-communicationos-operating-cockpit build
bun run --cwd examples/companyos-communicationos-operating-cockpit lint:check
bun run --cwd examples/registry generate:registry
bun test packages/bundles/marketing/src/components/templates/template-catalog.test.ts packages/bundles/marketing/src/components/templates/template-preview.test.ts
```


## VoiceOps operating cockpit story

The cockpit fixture now starts from the Rivage Retail voice escalation: CommunicationOS holds the redacted voice evidence, CompanyOS drafts an internal security-documentation product gap, and customer-facing promises/security claims remain blocked. The dry-run remains deterministic and side-effect free while surfacing the same receipt/proof language as the VoiceOps workbench.

## Roadmap: UI/UX refresh

The example is still intentionally thin around `@lssm-tech/bundle.managed-companyos` cockpit templates. The next refresh should make the cockpit feel like a proper operator product surface while keeping the package deterministic and provider-free:

- Implement the reusable UI work in `packages/bundles/managed-companyos/src/ui/cockpit/templates/operating-cockpit`, then let this example provide fixtures and proof coverage.
- Upgrade the home/dashboard into an operator-grade command center with loop state, selected thread, policy, dry-run, audit, contact identity, and evidence context.
- Add richer CommunicationOS inbox/thread/contact affordances inspired by the messaging workspace: searchable conversations, contact-to-conversation navigation, detail drawers, edit/delete actions, and evidence-aware actions.
- Keep provider adapters host-owned; the example must remain no-network, no-credential, no-send, and no-production-action by default.

Declaration publication uses `contractspec-bun-build types` through
`build:types`; `build` runs bundle and declaration generation. The build config
preserves declared exports and excludes test-only files from generated build artifacts.
Package tests and typecheck remain separate verification gates.

Full `build` regenerates JavaScript and declarations in one output transaction,
restoring previous `dist` if either stage fails. Standalone `build:bundle` still
preserves declarations; use full `build` to reconcile obsolete output layouts.


## Declared capabilities

This manifest does not declare a capability catalogue. Assess the package using its guide, import map and source.

## Catalogue metadata

```json
{
  "family": "ui",
  "kind": "example",
  "status": "active",
  "adoptionMode": "reference-only",
  "stability": "experimental",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    ".",
    "./contracts",
    "./docs",
    "./example",
    "./fixtures",
    "./proof",
    "./ui",
    "./ui/OperatingCockpitPreview",
    "./companyos-communicationos-operating-cockpit.feature"
  ],
  "examples": [],
  "replacements": [],
  "nonAdoptableRationale": "This example is published for reference and learning, not as a reusable library dependency.",
  "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
[]
```

## 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/example.companyos-communicationos-operating-cockpit` — subpath `.`
  - `unconditional`: `./src/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/companyos-communicationos-operating-cockpit/src/index.ts); verified source file.

- `@lssm-tech/example.companyos-communicationos-operating-cockpit/contracts` — subpath `./contracts`
  - `unconditional`: `./src/contracts/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/companyos-communicationos-operating-cockpit/src/contracts/index.ts); verified source file.

- `@lssm-tech/example.companyos-communicationos-operating-cockpit/docs` — subpath `./docs`
  - `unconditional`: `./src/docs/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/companyos-communicationos-operating-cockpit/src/docs/index.ts); verified source file.

- `@lssm-tech/example.companyos-communicationos-operating-cockpit/example` — subpath `./example`
  - `unconditional`: `./src/example.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/companyos-communicationos-operating-cockpit/src/example.ts); verified source file.

- `@lssm-tech/example.companyos-communicationos-operating-cockpit/fixtures` — subpath `./fixtures`
  - `unconditional`: `./src/fixtures/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/companyos-communicationos-operating-cockpit/src/fixtures/index.ts); verified source file.

- `@lssm-tech/example.companyos-communicationos-operating-cockpit/proof` — subpath `./proof`
  - `unconditional`: `./src/proof/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/companyos-communicationos-operating-cockpit/src/proof/index.ts); verified source file.

- `@lssm-tech/example.companyos-communicationos-operating-cockpit/ui` — subpath `./ui`
  - `unconditional`: `./src/ui/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/companyos-communicationos-operating-cockpit/src/ui/index.ts); verified source file.

- `@lssm-tech/example.companyos-communicationos-operating-cockpit/ui/OperatingCockpitPreview` — subpath `./ui/OperatingCockpitPreview`
  - `unconditional`: `./src/ui/OperatingCockpitPreview.tsx` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/companyos-communicationos-operating-cockpit/src/ui/OperatingCockpitPreview.tsx); verified source file.

- `@lssm-tech/example.companyos-communicationos-operating-cockpit/companyos-communicationos-operating-cockpit.feature` — subpath `./companyos-communicationos-operating-cockpit.feature`
  - `unconditional`: `./src/companyos-communicationos-operating-cockpit.feature.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/companyos-communicationos-operating-cockpit/src/companyos-communicationos-operating-cockpit.feature.ts); verified source file.

## Package publication metadata

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

```json
{
  "types": "./dist/index.d.ts",
  "files": [
    "LICENSE",
    "README.md",
    "dist",
    "!**/*.test.*",
    "!**/*.spec.*",
    "!**/*.tsbuildinfo"
  ],
  "publishExports": {
    ".": {
      "types": "./dist/index.d.ts",
      "browser": "./dist/browser/index.js",
      "bun": "./dist/index.js",
      "node": "./dist/node/index.js",
      "default": "./dist/index.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"
    },
    "./docs": {
      "types": "./dist/docs/index.d.ts",
      "browser": "./dist/browser/docs/index.js",
      "bun": "./dist/docs/index.js",
      "node": "./dist/node/docs/index.js",
      "default": "./dist/docs/index.js"
    },
    "./example": {
      "types": "./dist/example.d.ts",
      "browser": "./dist/browser/example.js",
      "bun": "./dist/example.js",
      "node": "./dist/node/example.js",
      "default": "./dist/example.js"
    },
    "./fixtures": {
      "types": "./dist/fixtures/index.d.ts",
      "browser": "./dist/browser/fixtures/index.js",
      "bun": "./dist/fixtures/index.js",
      "node": "./dist/node/fixtures/index.js",
      "default": "./dist/fixtures/index.js"
    },
    "./proof": {
      "types": "./dist/proof/index.d.ts",
      "browser": "./dist/browser/proof/index.js",
      "bun": "./dist/proof/index.js",
      "node": "./dist/node/proof/index.js",
      "default": "./dist/proof/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"
    },
    "./ui/OperatingCockpitPreview": {
      "types": "./dist/ui/OperatingCockpitPreview.d.ts",
      "browser": "./dist/browser/ui/OperatingCockpitPreview.js",
      "bun": "./dist/ui/OperatingCockpitPreview.js",
      "node": "./dist/node/ui/OperatingCockpitPreview.js",
      "default": "./dist/ui/OperatingCockpitPreview.js"
    },
    "./companyos-communicationos-operating-cockpit.feature": {
      "types": "./dist/companyos-communicationos-operating-cockpit.feature.d.ts",
      "browser": "./dist/browser/companyos-communicationos-operating-cockpit.feature.js",
      "bun": "./dist/companyos-communicationos-operating-cockpit.feature.js",
      "node": "./dist/node/companyos-communicationos-operating-cockpit.feature.js",
      "default": "./dist/companyos-communicationos-operating-cockpit.feature.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- [@lssm-tech/bundle.managed-companyos](https://lssm.co/docs/packages/bundle.managed-companyos/): `workspace:^`
- [@lssm-tech/lib.cockpit-kit-web](https://lssm.co/docs/packages/lib.cockpit-kit-web/): `workspace:^`
- [@lssm-tech/lib.companyos-spec](https://lssm.co/docs/packages/lib.companyos-spec/): `workspace:^`
- [@lssm-tech/lib.contracts-spec](https://lssm.co/docs/packages/lib.contracts-spec/): `workspace:^`
- [@lssm-tech/lib.design-system](https://lssm.co/docs/packages/lib.design-system/): `workspace:^`
- [@lssm-tech/lib.example-shared-ui](https://lssm.co/docs/packages/lib.example-shared-ui/): `workspace:^`
- [@lssm-tech/module.communication-os](https://lssm.co/docs/packages/module.communication-os/): `workspace:^`
- [@lssm-tech/module.companyos](https://lssm.co/docs/packages/module.companyos/): `workspace:^`
- `react`: `catalog:`
- `react-dom`: `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`
- `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
{
  "build": "contractspec-bun-build build",
  "typecheck": "tsgo --noEmit",
  "test": "bun test",
  "smoke": "bun test src/example.smoke.test.ts",
  "lint:check": "node ../../scripts/biome.cjs check .",
  "lint": "bun lint:fix",
  "lint:fix": "node ../../scripts/biome.cjs check --write .",
  "preflight": "bun run build && bun run typecheck && bun run test && bun run smoke",
  "build:bundle": "contractspec-bun-build transpile",
  "build:types": "contractspec-bun-build types"
}
```

## Declared documentation links

- [Example Companyos Communicationos Operating Cockpit documentation](https://www.npmjs.com/package/%40lssm-tech%2Fexample.companyos-communicationos-operating-cockpit) — declared link; destination not verified.

```json
{
  "url": "https://www.npmjs.com/package/%40lssm-tech%2Fexample.companyos-communicationos-operating-cockpit",
  "kind": "readme"
}
```

## Existing agent-guide projection

```json
{
  "path": "packages/apps/web-landing/public/llms-packages/example.companyos-communicationos-operating-cockpit.txt",
  "route": "/llms/example.companyos-communicationos-operating-cockpit",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/example.companyos-communicationos-operating-cockpit.txt",
  "blobSha": "7ac74a0c16496c65152a5c06f8818df76338f4d3",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "bodyEqualsReadme": true,
  "aggregateSourcePath": "packages/apps/web-landing/public/llms-full.txt",
  "aggregateBlobSha": "691b1d33efee24c440598b9106c81432f56aafaf"
}
```
