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 declaracionesSELECT 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 importaciones

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
Tu vista

Make room for your context.

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

Tu contexto

The different parts of you

Choose a starting point

Una mezcla útil de contexto, imágenes y orientación discreta.

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

Comodidad de lectura

Elige tu idioma

El idioma de la interfaz solo cambia el texto. Los mercados, precios y flujos de trabajo conservan sus propios ajustes.

Cobertura de traducción

Parte del contenido se muestra en inglés.

Navegación151
Grafo616
Categorías188
Portafolio332
Ejemplos2035
Vista previa de la fuente41

Se añadirán más traducciones a medida que se revise el contenido.

Esta preferencia se guarda en este navegador.

Buscar en el sitio web

Puntos de partida útiles

Sin resultados. Prueba una frase más corta, un nombre de operación u otro ámbito de búsqueda.

UN POCO DE ESPACIO PARA EXPLORAR

Encuentra algo que explorar.

Abre una vista detallada en esta página, prueba otra perspectiva o sigue el detalle a su propia página.

Cómo funcionan las vistas previas y los controles
01

Mirar antes de salir

Pasa el cursor por un enlace o enfócalo con Tab para ver una vista previa. Hacer clic en el enlace original o pulsar Intro siempre abre su destino.

02

Mantener el contexto

Entra en la vista previa para explorar sus secciones. Usa Alt + ↓ desde un enlace enfocado para entrar con el teclado. Escape la cierra.

03

Abrir las posibilidades

Las filas desplegables, las perspectivas y los controles destacados revelan más. Tu vista cambia la comodidad de lectura y el contexto que exploras.

Un botón separado para mirar más de cerca

Muestra pequeños botones de vista previa junto a los enlaces donde haya espacio. Toca el ojo para inspeccionar o el enlace para ir directamente. Esta elección permanece en esta pestaña.

No se recoge historial de navegación. El movimiento reducido sigue tu dispositivo y Tu vista.