# @lssm-tech/integration.lssm-os-state-git

Atomic Git-tracked desired state and immutable LSSM OS receipts.

## Source and release context

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

## Package metadata

```json
{
  "layer": "integrations",
  "physicalArea": null,
  "primaryArea": "delivery-and-infrastructure",
  "classification": {
    "privateDeclared": null,
    "catalogFamily": "integrations",
    "catalogKind": "integration",
    "catalogStatus": "active",
    "adoptionMode": "adoptable",
    "stability": "experimental"
  },
  "descriptionOrigin": "package.json",
  "manifestComplete": true,
  "publicationPolicyApplied": false
}
```

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

Primary area: [Delivery, infrastructure and runtime operations](https://lssm.co/docs/areas/delivery-and-infrastructure/)

## Package guide

```json
{
  "status": "available",
  "sourcePath": "packages/integrations/lssm-os-state-git/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/lssm-os-state-git/README.md",
  "blobSha": "24bb9b27d0be50b2b6f6b892c8a7a54bb1cdd78c",
  "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/integration.lssm-os-state-git`

Atomic, Git-trackable persistence for LSSM OS desired/observed state, plans, and
append-only receipts. The adapter writes canonical JSON, keeps revision history
immutable, rejects revision equivocation, and uses scoped filesystem locks and
atomic renames for current pointers.

Lock ownership uses an atomically created directory with a unique owner token.
Claims do not expire or depend on wall-clock age: a contender cannot overlap an
active owner after a clock jump or stale heartbeat, and a claimant only removes
its own token. Crash residue fails closed and must be pruned during explicit
offline maintenance. Data files are synced before publication and containing directories are
synced after link, rename, or unlink. Directory `fsync` is best-effort only on
filesystems that explicitly report it unsupported; file-level durability and
atomic publication remain enforced there.

The adapter rejects symlink roots and symlink ancestors for all state and lock
paths. Deploy it on a filesystem whose state root is writable only by the
Runtime Node process; filesystem permission boundaries remain part of the
operator threat model.

The configured root is data, not a credential location. Consumers decide when
and how the resulting files are committed or synchronized with Git.


## Declared capabilities

### Integration Lssm Os State Git

Capability ID: `package.lssm.tech.integration.lssm.os.state.git`

Atomic Git-tracked desired state and immutable LSSM OS receipts.

Use cases:

- Adopt atomic git-tracked desired state and immutable lssm os receipts

Constraints:

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

Other capability declarations:

```json
{
  "status": "active",
  "aliases": [
    "integration",
    "lssm",
    "state",
    "git"
  ],
  "pythonEquivalents": [],
  "alternatives": [],
  "relationships": [],
  "resolutionPriority": 50
}
```

Capability imports:

```json
[
  {
    "from": "@lssm-tech/integration.lssm-os-state-git",
    "symbols": []
  }
]
```

## Catalogue metadata

```json
{
  "family": "integrations",
  "kind": "integration",
  "status": "active",
  "adoptionMode": "adoptable",
  "stability": "experimental",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    "."
  ],
  "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.integration.lssm.os.state.git",
    "from": "@lssm-tech/integration.lssm-os-state-git",
    "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/integration.lssm-os-state-git` — subpath `.`
  - `unconditional`: `./src/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/lssm-os-state-git/src/index.ts); verified source file.

- `@lssm-tech/integration.lssm-os-state-git/files` — subpath `./files`
  - `unconditional`: `./src/files.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/lssm-os-state-git/src/files.ts); verified source file.

- `@lssm-tech/integration.lssm-os-state-git/lock` — subpath `./lock`
  - `unconditional`: `./src/lock.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/lssm-os-state-git/src/lock.ts); verified source file.

- `@lssm-tech/integration.lssm-os-state-git/path-safety` — subpath `./path-safety`
  - `unconditional`: `./src/path-safety.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/lssm-os-state-git/src/path-safety.ts); verified source file.

- `@lssm-tech/integration.lssm-os-state-git/store` — subpath `./store`
  - `unconditional`: `./src/store.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/lssm-os-state-git/src/store.ts); verified source file.

- `@lssm-tech/integration.lssm-os-state-git/store.test-fixtures` — subpath `./store.test-fixtures`
  - `unconditional`: `./src/store.test-fixtures.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/lssm-os-state-git/src/store.test-fixtures.ts); verified source file.

- `@lssm-tech/integration.lssm-os-state-git/validation` — subpath `./validation`
  - `unconditional`: `./src/validation.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/lssm-os-state-git/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",
    "!dist/**/*.test.*",
    "README.md",
    "evidence"
  ],
  "publishExports": {
    ".": {
      "types": "./dist/index.d.ts",
      "bun": "./dist/index.js",
      "node": "./dist/node/index.js",
      "default": "./dist/index.js"
    },
    "./files": {
      "types": "./dist/files.d.ts",
      "bun": "./dist/files.js",
      "node": "./dist/node/files.js",
      "default": "./dist/files.js"
    },
    "./lock": {
      "types": "./dist/lock.d.ts",
      "bun": "./dist/lock.js",
      "node": "./dist/node/lock.js",
      "default": "./dist/lock.js"
    },
    "./path-safety": {
      "types": "./dist/path-safety.d.ts",
      "bun": "./dist/path-safety.js",
      "node": "./dist/node/path-safety.js",
      "default": "./dist/path-safety.js"
    },
    "./store": {
      "types": "./dist/store.d.ts",
      "bun": "./dist/store.js",
      "node": "./dist/node/store.js",
      "default": "./dist/store.js"
    },
    "./store.test-fixtures": {
      "types": "./dist/store.test-fixtures.d.ts",
      "bun": "./dist/store.test-fixtures.js",
      "node": "./dist/node/store.test-fixtures.js",
      "default": "./dist/store.test-fixtures.js"
    },
    "./validation": {
      "types": "./dist/validation.d.ts",
      "bun": "./dist/validation.js",
      "node": "./dist/node/validation.js",
      "default": "./dist/validation.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- [@lssm-tech/lib.lssm-os-runtime](https://lssm.co/docs/packages/lib.lssm-os-runtime/): `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:*`
- `@types/bun`: `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",
  "build:bundle": "contractspec-bun-build transpile",
  "build:types": "contractspec-bun-build types",
  "lint:check": "node ../../../scripts/biome.cjs check .",
  "test": "bun test",
  "typecheck": "tsgo --noEmit"
}
```

## Declared documentation links

- [Integration Lssm Os State Git documentation](https://www.npmjs.com/package/%40lssm-tech%2Fintegration.lssm-os-state-git) — declared link; destination not verified.

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

## Existing agent-guide projection

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