# @lssm-tech/module.personal-goals

Pure PersonalOS mission, goals, outcomes, and observed-metrics runtime.

## Source and release context

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

## Package metadata

```json
{
  "layer": "domains",
  "physicalArea": "personal-agency",
  "primaryArea": "personal-and-learning",
  "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: [Personal workflows, learning and progress](https://lssm.co/docs/areas/personal-and-learning/)

## Package guide

```json
{
  "status": "available",
  "sourcePath": "packages/domains/personal-agency/personal-goals/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/personal-agency/personal-goals/README.md",
  "blobSha": "5019e777f662c404e2ab100c5a951784fc342972",
  "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.personal-goals`

Pure, deterministic PersonalOS mission and goals runtime. It establishes a
self-declared mission and principles, attaches goals to explicit outcomes and
metric definitions, and records only observed metric values.

Self-reported observations have an immutable evidence-linked lifecycle. A
correction preserves the prior value, confidence, provenance, actor, and reason;
removal clears the current value while retaining the same bounded history.

## Safety boundary

- Every command uses the PersonalOS subject, expected revision, idempotency key,
  a domain-separated canonical payload digest, and minimized evidence references.
- A host-supplied `PersonalDecisionReceiptV1` must allow the exact command in
  `human_required` mode and bind its name, revision, idempotency key, submission
  time, policy, and payload digest. The reducer never grants authority.
- Replays are deterministic; an idempotency-key collision with another digest is
  rejected.
- Unknown metrics and mission changes that would orphan goals fail closed.
- Observation corrections and removals require an exact current target, subject,
  revision, payload digest, receipt, reason, and evidence. Subject version drift
  and observation-to-metric reassignment fail before reduction.
- The view model renders `null` and `not_observed` when no measurement exists. It
  never substitutes a baseline, target, or model estimate for an observation.

All functions are side-effect free and provider-neutral. Persistence, online
authorization, receipt creation, and event-envelope storage belong to the host.

## Entrypoints

- `@lssm-tech/module.personal-goals`
- `@lssm-tech/module.personal-goals/reducer`
- `@lssm-tech/module.personal-goals/view-model`


## Declared capabilities

### Module Personal Goals

Capability ID: `package.lssm.tech.module.personal.goals`

Pure PersonalOS mission, goals, outcomes, and observed-metrics runtime.

Use cases:

- Adopt pure personalos mission, goals, outcomes, and observed-metrics runtime

Constraints:

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

Other capability declarations:

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

Capability imports:

```json
[
  {
    "from": "@lssm-tech/module.personal-goals",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.personal-goals/guard",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.personal-goals/observations",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.personal-goals/reducer",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.personal-goals/view-model",
    "symbols": []
  }
]
```

## Catalogue metadata

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

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

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

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

- `@lssm-tech/module.personal-goals/view-model` — subpath `./view-model`
  - `unconditional`: `./src/view-model.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/personal-agency/personal-goals/src/view-model.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"
    },
    "./guard": {
      "types": "./dist/guard.d.ts",
      "browser": "./dist/browser/guard.js",
      "bun": "./dist/guard.js",
      "node": "./dist/node/guard.js",
      "default": "./dist/guard.js"
    },
    "./observations": {
      "types": "./dist/observations.d.ts",
      "browser": "./dist/browser/observations.js",
      "bun": "./dist/observations.js",
      "node": "./dist/node/observations.js",
      "default": "./dist/observations.js"
    },
    "./reducer": {
      "types": "./dist/reducer.d.ts",
      "browser": "./dist/browser/reducer.js",
      "bun": "./dist/reducer.js",
      "node": "./dist/node/reducer.js",
      "default": "./dist/reducer.js"
    },
    "./view-model": {
      "types": "./dist/view-model.d.ts",
      "browser": "./dist/browser/view-model.js",
      "bun": "./dist/view-model.js",
      "node": "./dist/node/view-model.js",
      "default": "./dist/view-model.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:^`
- [@lssm-tech/lib.personal-os-spec](https://lssm.co/docs/packages/lib.personal-os-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
{
  "build": "contractspec-bun-build build",
  "build:bundle": "contractspec-bun-build transpile",
  "build:types": "contractspec-bun-build types",
  "clean": "rimraf dist .turbo",
  "lint:check": "node ../../../../scripts/biome.cjs check .",
  "prebuild": "contractspec-bun-build prebuild",
  "test": "bun test",
  "typecheck": "tsgo --noEmit"
}
```

## Declared documentation links

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

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

## Existing agent-guide projection

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