libraryPackage manifestv2.0.4

lib.personal-health-spec

Consent, provenance, safety, sharing, and rights contracts for non-clinical PersonalOS health data.

@lssm-tech/lib.personal-health-spec
Source, release and verification context

Source snapshot bcc79fcc · Declared package version 2.0.4. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.

Package source ↗ Manifest ↗
webservernodebrowser
EXPLORE THE PACKAGE

See where this package fits.

Follow a declared connection, inspect an import, then open the source guide when you need the detail.

THIS PACKAGElib.personal-health-specdomains

Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.

5 declarationsSELECT TO INSPECT

@lssm-tech/lib.personal-health-spec

Strict contracts for a consent-controlled, non-clinical PersonalOS health ledger: connections, measurements, source provenance, quality quarantine, explainable associations, correction/export/deletion, minimized household sharing, and future EU/US qualification packs.

The package deliberately excludes diagnosis, treatment, emergency monitoring, raw provider payloads, credentials, and claims of regulatory qualification.

Additive vertical contracts

  • ./consent-policy defines category-, operation-, purpose-, and provider-level grants plus partial or complete revocation.
  • ./provider-sync defines encrypted host-custodied credential references, connection lifecycle, honest native/API connectivity classes, and durable page/cursor evidence. HealthKit and Health Connect are native SDK ports, not bundled native implementations.
  • ./authorization-broker/client is the browser-safe begin/ticket/status surface; ./authorization-broker/host is deliberately unavailable under the browser export condition. The legacy host dispatch subpath is likewise browser-null in workspace and published resolution. The host surface separates strict browser input from trusted identity context, generates OAuth state and PKCE verifier material inside the broker, captures provider callbacks through a host-only ingress, atomically consumes expiring tickets, and durably persists a consent- and authority-bound pending dispatch before deleting transient secrets. Leased dispatches are acked, retried, or atomically superseded with a fresh revision-bound command; OAuth secrets are never reused. Browser tickets and status never contain credentials, verifiers, raw provider payloads, or OAuth codes.
  • ./ledger defines append-only corrections, quality quarantine, explicit cross-provider overlap evidence that preserves both source records, ref-only goal links, export manifests, and deletion-propagation receipts. A receipt is complete only when every propagation target is deleted; pending, failed, and unsupported targets remain explicit non-complete states.
  • ./sharing permits aggregate household summaries and trends only; raw measurements are structurally forbidden. Household revocation requests, authority receipts, local-invalidated receipts, and consumer acknowledgements bind the exact subject, actor, grant, member, categories, projection IDs, reason, and ordered timestamps.
  • ./insights allowlists descriptive wellness metrics and exact units, binds copy to selected source records, exposes freshness and uncertainty, and structurally forbids clinical, causal, protected-trait, sharing, care, or autonomous-goal authority. User-requested urgent guidance is fixed EN/FR/ES copy and explicitly states that PersonalOS does not monitor emergencies.
  • ./wellbeing-goal defines a human-controlled non-clinical experiment lifecycle. It binds an exact goal, provider fields, accepted baseline and observation records, target range, time window, mandatory stop conditions, consent, revisions, command digest, receipt, and interpretation. Collection and sharing pause on revocation or a verified safety guardrail; observed values never imply causality, diagnosis, treatment, or autonomous goal authority.
  • ./operations provides one online connection command union for connect, consent-bound provider sync, and disconnect. Connect and disconnect require a human decision; scheduled sync may be policy-governed only with an explicit policy and an exact, unrevoked consent reference. All effects require a fully command-bound decision receipt.

Existing health integration contracts

The health/contracts, health/models, health/health.feature, health/health.capability and health/telemetry subpaths own the existing provider contract definitions. Integration-package import paths continue to forward here. This relocation preserves historical wire schemas, operation policy and registration order; it grants no permission to collect or execute provider payloads. The existing PersonalOS subject/consent and authorization surfaces remain separate and unchanged.

These retained legacy integration compatibility leaves preserve their original provider-facing schemas. They do not widen the newer PersonalOS consent, raw-data handling, minor-unit or non-advisory contract guarantees.

Declared capabilities.

Lib Personal Health Spec

Consent, provenance, safety, sharing, and rights contracts for non-clinical PersonalOS health data.

Use it to

  • Adopt consent, provenance, safety, sharing, and rights contracts for non-clinical personalos health data

Requires

  • TypeScript

Choose another boundary when

  • The @lssm-tech/lib.personal-health-spec package constraints do not match the target runtime or platform.

@lssm-tech/lib.personal-health-spec

@lssm-tech/lib.personal-health-spec/authorization-broker

@lssm-tech/lib.personal-health-spec/authorization-broker-client

@lssm-tech/lib.personal-health-spec/authorization-broker-dispatch

@lssm-tech/lib.personal-health-spec/authorization-broker/client

@lssm-tech/lib.personal-health-spec/authorization-broker/host

@lssm-tech/lib.personal-health-spec/common

@lssm-tech/lib.personal-health-spec/consent

@lssm-tech/lib.personal-health-spec/consent-policy

@lssm-tech/lib.personal-health-spec/insights

@lssm-tech/lib.personal-health-spec/jurisdiction

@lssm-tech/lib.personal-health-spec/ledger

Imports and export paths.

29 entries

These are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.

29 imports

Dependencies and related packages.

Runtime dependencies 5
zod
catalog:
Development dependencies 4
@types/bun
catalog:types
typescript
catalog:

Package scripts.

Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.

buildcontractspec-bun-build build
build:bundlecontractspec-bun-build transpile
build:typescontractspec-bun-build types
cleanrimraf dist .turbo
lint:checknode ../../../../scripts/biome.cjs check .
lint:fixnode ../../../../scripts/biome.cjs check --write .
prebuildcontractspec-bun-build prebuild
testbun test
typechecktsgo --noEmit
Your view

Make room for your context.

Shape the presentation around this moment. You can change it whenever you need.

Your context

The different parts of you

Choose a starting point

A useful mix of context, visuals and gentle guidance.

Tune each dimension
Each dimension can change independently. Product permissions and available actions stay unchanged.

Support the way you begin and return

Tune your support

Reading comfort

Choose your language

Interface language changes text only. Markets, prices and workflows keep their own settings.

Translation coverage

Original source

Navigation151
Graph616
Categories378
Portfolio833
Examples2,035
Source preview1,542

More translations will be added as content is reviewed.

This preference is saved on this browser.

Search the website

Useful starting points

No results. Try a shorter phrase, an operation name or another search area.

A LITTLE ROOM TO EXPLORE

Find something to explore.

Open a closer look on this page, try a different perspective, or follow the detail into its own page.

How previews and controls work
01

Look before you leave

Hover a link or focus it with Tab to see a preview. Clicking the original link or pressing Enter always opens its destination.

02

Stay with the context

Move into the preview to explore its sections. Use Alt + ↓ from a focused link to enter it with the keyboard. Escape closes it.

03

Open the possibilities

Disclosure rows, perspective choices and highlighted controls reveal more. Your view changes reading comfort and the context you explore.

A separate button for a closer look

Show small preview buttons beside links where there is room. Tap the eye to inspect, or tap the link to go straight there. This choice stays in this tab.

No browsing history is collected. Reduced motion follows your device and Your view.