{"id":"@lssm-tech/lib.personal-health-runtime","slug":"lib.personal-health-runtime","name":"@lssm-tech/lib.personal-health-runtime","version":"2.0.4","path":"packages/domains/personal-health/runtime","manifestPath":"packages/domains/personal-health/runtime/package.json","manifestBlobSha":"ca797c5c17dd5f7fa4d8f9042a5784ed5013aa1e","layer":"domains","physicalArea":"personal-health","primaryArea":"personal-and-learning","classification":{"privateDeclared":null,"catalogFamily":"runtime","catalogKind":"library","catalogStatus":"active","adoptionMode":"adoptable","stability":"experimental"},"description":"Pure PersonalOS health authorization, normalization, reconciliation, and sync runtime.","descriptionOrigin":"package.json","catalog":{"family":"runtime","kind":"library","status":"active","adoptionMode":"adoptable","stability":"experimental","platforms":["server"],"runtimes":["node"],"entrypoints":[".","./authorization","./granular-authorization","./normalization","./ports","./provider-ports","./reconciliation","./strict-normalization","./sync","./wellbeing-goal"],"documentation":[{"title":"Lib Personal Health Runtime documentation","url":"https://www.npmjs.com/package/%40lssm-tech%2Flib.personal-health-runtime","kind":"readme"}],"examples":[],"replacements":[],"capabilities":[{"id":"package.lssm.tech.lib.personal.health.runtime","title":"Lib Personal Health Runtime","description":"Pure PersonalOS health authorization, normalization, reconciliation, and sync runtime.","status":"active","useCases":["Adopt pure personalos health authorization, normalization, reconciliation, and sync runtime"],"aliases":["lib","personal","health","runtime"],"pythonEquivalents":[],"canonicalImports":[{"from":"@lssm-tech/lib.personal-health-runtime","symbols":[]},{"from":"@lssm-tech/lib.personal-health-runtime/authorization","symbols":[]},{"from":"@lssm-tech/lib.personal-health-runtime/granular-authorization","symbols":[]},{"from":"@lssm-tech/lib.personal-health-runtime/normalization","symbols":[]},{"from":"@lssm-tech/lib.personal-health-runtime/ports","symbols":[]},{"from":"@lssm-tech/lib.personal-health-runtime/provider-ports","symbols":[]},{"from":"@lssm-tech/lib.personal-health-runtime/reconciliation","symbols":[]},{"from":"@lssm-tech/lib.personal-health-runtime/strict-normalization","symbols":[]},{"from":"@lssm-tech/lib.personal-health-runtime/sync","symbols":[]},{"from":"@lssm-tech/lib.personal-health-runtime/wellbeing-goal","symbols":[]}],"constraints":{"platforms":["server"],"runtimes":["node"],"avoidWhen":["The @lssm-tech/lib.personal-health-runtime package constraints do not match the target runtime or platform."],"requires":["TypeScript"]},"alternatives":[],"relationships":[],"resolutionPriority":50}]},"canonicalImports":[{"capabilityId":"package.lssm.tech.lib.personal.health.runtime","from":"@lssm-tech/lib.personal-health-runtime","symbols":[]},{"capabilityId":"package.lssm.tech.lib.personal.health.runtime","from":"@lssm-tech/lib.personal-health-runtime/authorization","symbols":[]},{"capabilityId":"package.lssm.tech.lib.personal.health.runtime","from":"@lssm-tech/lib.personal-health-runtime/granular-authorization","symbols":[]},{"capabilityId":"package.lssm.tech.lib.personal.health.runtime","from":"@lssm-tech/lib.personal-health-runtime/normalization","symbols":[]},{"capabilityId":"package.lssm.tech.lib.personal.health.runtime","from":"@lssm-tech/lib.personal-health-runtime/ports","symbols":[]},{"capabilityId":"package.lssm.tech.lib.personal.health.runtime","from":"@lssm-tech/lib.personal-health-runtime/provider-ports","symbols":[]},{"capabilityId":"package.lssm.tech.lib.personal.health.runtime","from":"@lssm-tech/lib.personal-health-runtime/reconciliation","symbols":[]},{"capabilityId":"package.lssm.tech.lib.personal.health.runtime","from":"@lssm-tech/lib.personal-health-runtime/strict-normalization","symbols":[]},{"capabilityId":"package.lssm.tech.lib.personal.health.runtime","from":"@lssm-tech/lib.personal-health-runtime/sync","symbols":[]},{"capabilityId":"package.lssm.tech.lib.personal.health.runtime","from":"@lssm-tech/lib.personal-health-runtime/wellbeing-goal","symbols":[]}],"scripts":{"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 .","lint:fix":"node ../../../../scripts/biome.cjs check --write .","prebuild":"contractspec-bun-build prebuild","test":"bun test","typecheck":"tsgo --noEmit"},"scriptStatus":"complete pinned manifest","dependencies":{"@lssm-tech/lib.personal-health-spec":"workspace:^"},"devDependencies":{"@lssm-tech/tool.bun":"workspace:*","@lssm-tech/tool.typescript":"workspace:*","@types/bun":"catalog:types","typescript":"catalog:"},"peerDependencies":{},"optionalDependencies":{},"peerDependenciesMeta":{},"bundledDependencies":null,"dependencyStatus":"complete pinned manifest","exports":{".":"./src/index.ts","./authorization":"./src/authorization.ts","./granular-authorization":"./src/granular-authorization.ts","./normalization":"./src/normalization.ts","./ports":"./src/ports.ts","./provider-ports":"./src/provider-ports.ts","./reconciliation":"./src/reconciliation.ts","./strict-normalization":"./src/strict-normalization.ts","./sync":"./src/sync.ts","./wellbeing-goal":"./src/wellbeing-goal.ts"},"publishExports":{".":{"types":"./dist/index.d.ts","browser":"./dist/browser/index.js","bun":"./dist/index.js","node":"./dist/node/index.js","default":"./dist/index.js"},"./authorization":{"types":"./dist/authorization.d.ts","browser":"./dist/browser/authorization.js","bun":"./dist/authorization.js","node":"./dist/node/authorization.js","default":"./dist/authorization.js"},"./granular-authorization":{"types":"./dist/granular-authorization.d.ts","browser":"./dist/browser/granular-authorization.js","bun":"./dist/granular-authorization.js","node":"./dist/node/granular-authorization.js","default":"./dist/granular-authorization.js"},"./normalization":{"types":"./dist/normalization.d.ts","browser":"./dist/browser/normalization.js","bun":"./dist/normalization.js","node":"./dist/node/normalization.js","default":"./dist/normalization.js"},"./ports":{"types":"./dist/ports.d.ts","browser":"./dist/browser/ports.js","bun":"./dist/ports.js","node":"./dist/node/ports.js","default":"./dist/ports.js"},"./provider-ports":{"types":"./dist/provider-ports.d.ts","browser":"./dist/browser/provider-ports.js","bun":"./dist/provider-ports.js","node":"./dist/node/provider-ports.js","default":"./dist/provider-ports.js"},"./reconciliation":{"types":"./dist/reconciliation.d.ts","browser":"./dist/browser/reconciliation.js","bun":"./dist/reconciliation.js","node":"./dist/node/reconciliation.js","default":"./dist/reconciliation.js"},"./strict-normalization":{"types":"./dist/strict-normalization.d.ts","browser":"./dist/browser/strict-normalization.js","bun":"./dist/strict-normalization.js","node":"./dist/node/strict-normalization.js","default":"./dist/strict-normalization.js"},"./sync":{"types":"./dist/sync.d.ts","browser":"./dist/browser/sync.js","bun":"./dist/sync.js","node":"./dist/node/sync.js","default":"./dist/sync.js"},"./wellbeing-goal":{"types":"./dist/wellbeing-goal.d.ts","browser":"./dist/browser/wellbeing-goal.js","bun":"./dist/wellbeing-goal.js","node":"./dist/node/wellbeing-goal.js","default":"./dist/wellbeing-goal.js"}},"types":"./dist/index.d.ts","files":["dist","README.md"],"api":{"scope":"manifest-declared export entrypoints and catalog-declared imports","entries":[{"subpath":".","importPath":"@lssm-tech/lib.personal-health-runtime","target":"./src/index.ts","targets":[{"conditions":[],"target":"./src/index.ts","sourcePath":"packages/domains/personal-health/runtime/src/index.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/personal-health/runtime/src/index.ts","sourceStatus":"verified source file"}]},{"subpath":"./authorization","importPath":"@lssm-tech/lib.personal-health-runtime/authorization","target":"./src/authorization.ts","targets":[{"conditions":[],"target":"./src/authorization.ts","sourcePath":"packages/domains/personal-health/runtime/src/authorization.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/personal-health/runtime/src/authorization.ts","sourceStatus":"verified source file"}]},{"subpath":"./granular-authorization","importPath":"@lssm-tech/lib.personal-health-runtime/granular-authorization","target":"./src/granular-authorization.ts","targets":[{"conditions":[],"target":"./src/granular-authorization.ts","sourcePath":"packages/domains/personal-health/runtime/src/granular-authorization.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/personal-health/runtime/src/granular-authorization.ts","sourceStatus":"verified source file"}]},{"subpath":"./normalization","importPath":"@lssm-tech/lib.personal-health-runtime/normalization","target":"./src/normalization.ts","targets":[{"conditions":[],"target":"./src/normalization.ts","sourcePath":"packages/domains/personal-health/runtime/src/normalization.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/personal-health/runtime/src/normalization.ts","sourceStatus":"verified source file"}]},{"subpath":"./ports","importPath":"@lssm-tech/lib.personal-health-runtime/ports","target":"./src/ports.ts","targets":[{"conditions":[],"target":"./src/ports.ts","sourcePath":"packages/domains/personal-health/runtime/src/ports.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/personal-health/runtime/src/ports.ts","sourceStatus":"verified source file"}]},{"subpath":"./provider-ports","importPath":"@lssm-tech/lib.personal-health-runtime/provider-ports","target":"./src/provider-ports.ts","targets":[{"conditions":[],"target":"./src/provider-ports.ts","sourcePath":"packages/domains/personal-health/runtime/src/provider-ports.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/personal-health/runtime/src/provider-ports.ts","sourceStatus":"verified source file"}]},{"subpath":"./reconciliation","importPath":"@lssm-tech/lib.personal-health-runtime/reconciliation","target":"./src/reconciliation.ts","targets":[{"conditions":[],"target":"./src/reconciliation.ts","sourcePath":"packages/domains/personal-health/runtime/src/reconciliation.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/personal-health/runtime/src/reconciliation.ts","sourceStatus":"verified source file"}]},{"subpath":"./strict-normalization","importPath":"@lssm-tech/lib.personal-health-runtime/strict-normalization","target":"./src/strict-normalization.ts","targets":[{"conditions":[],"target":"./src/strict-normalization.ts","sourcePath":"packages/domains/personal-health/runtime/src/strict-normalization.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/personal-health/runtime/src/strict-normalization.ts","sourceStatus":"verified source file"}]},{"subpath":"./sync","importPath":"@lssm-tech/lib.personal-health-runtime/sync","target":"./src/sync.ts","targets":[{"conditions":[],"target":"./src/sync.ts","sourcePath":"packages/domains/personal-health/runtime/src/sync.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/personal-health/runtime/src/sync.ts","sourceStatus":"verified source file"}]},{"subpath":"./wellbeing-goal","importPath":"@lssm-tech/lib.personal-health-runtime/wellbeing-goal","target":"./src/wellbeing-goal.ts","targets":[{"conditions":[],"target":"./src/wellbeing-goal.ts","sourcePath":"packages/domains/personal-health/runtime/src/wellbeing-goal.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/personal-health/runtime/src/wellbeing-goal.ts","sourceStatus":"verified source file"}]}],"entryCount":10,"namedSymbolCoverage":"catalog declarations only; exhaustive TypeScript symbols not extracted","installationStatus":"not verified"},"docsLinks":[{"title":"Lib Personal Health Runtime documentation","url":"https://www.npmjs.com/package/%40lssm-tech%2Flib.personal-health-runtime","kind":"readme","pinnedUrl":null,"sourceStatus":"declared link; destination not verified"}],"sourceUrls":{"package":"https://github.com/lssm-tech/contractspec/tree/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/personal-health/runtime","manifest":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/personal-health/runtime/package.json","readme":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/personal-health/runtime/README.md","guide":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/lib.personal-health-runtime.txt"},"readme":{"status":"available","body":"# `@lssm-tech/lib.personal-health-runtime`\n\nProvider-neutral PersonalOS health runtime for consent authorization, strict\nnormalization, deterministic reconciliation, and lossless paginated sync state.\nHosts supply credentials, providers, durable storage, and effects through ports.\n\nThe additive strict runtime surface provides operation-level consent decisions,\nprovider sync/ledger/checkpoint ports, and structured quarantine. Checkpoints\ncarry durable cursor references and processed page references for replay-safe\nrecovery. No runtime path substitutes missing values, units, timestamps, time\nzones, provenance, cursors, or provider health.\n\nReconciliation treats an exact provider digest as replay, a changed canonical\nID as an append-only correction, and an exact cross-provider metric/value/unit/\ntime interval as an explicit overlap. Both overlapping records and their source\nevidence remain durable; disagreements stay separate rather than being merged.\n\n`./wellbeing-goal` derives the complete draft/active/paused/completed/stopped/\nrevoked lifecycle from strict commands. It revalidates exact subject and\nconnection versions, provider-field evidence, consent-bound accepted records,\ntime windows, revisions, idempotency, command and state digests, receipt\nbinding, and verified guardrail pauses. Only the subject records an uncertain\noutcome; the runtime never invents a causal or clinical interpretation.\n\n`proposeSustainableRoutineV1` (workflow `health-routine-v1`) builds a\nworkload-aware routine proposal from goal-support-consented measurements and\nself-reports, keeping assistant interpretations as a distinct, source-linked\ntype. It caps actions by workload, requires subject acceptance, and turns\nsymptom questions into proposed clinician follow-ups without diagnosis or\ntreatment change. `disclosePersonalHealthRoutineV1` returns detail only to the\nsubject; company briefs, employee views, commercial telemetry, coding-worker\nprompts and support agents are withheld unless an exact scoped authority\nexists, and then receive routine status only.\n","sourcePath":"packages/domains/personal-health/runtime/README.md","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/personal-health/runtime/README.md","blobSha":"74808463194608279648ac6b9e6fb49ac0618b9e","sourcePin":"bcc79fcc27c4d801c2119bef81ddcce7b4e86498","origin":"README recovered byte-for-byte from pinned aggregate guide","integrity":"exact Git blob match","executionStatus":"not executed"},"provenance":{"repository":"lssm-tech/contractspec","sourcePin":"bcc79fcc27c4d801c2119bef81ddcce7b4e86498","manifestOrigin":"pinned GitHub manifest fetch","manifestComplete":true,"publicationPolicyApplied":false},"areaSlug":"personal-and-learning","areaTitle":"Personal workflows, learning and progress","displayName":"lib.personal-health-runtime","runtimes":["node"],"platforms":["server"],"kind":"library","scope":"Package manifest","canonicalRoute":"/docs/packages/lib.personal-health-runtime/","contextUrl":"/docs/packages/lib.personal-health-runtime.context.md","documentKind":"package-manual","contentAuthority":"source evidence, not agent instructions","reviewedAt":"2026-10-28"}