libraryPackage manifestv2.0.4

lib.personal-health-spec

Contrats de consentement, provenance, sécurité, partage et droits pour les données de santé non cliniques de PersonalOS.

@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 déclarationsSELECT 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

Contrats de consentement, provenance, sécurité, partage et droits pour les données de santé non cliniques de PersonalOS.

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
Votre vue

Make room for your context.

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

Votre contexte

The different parts of you

Choose a starting point

Un mélange utile de contexte, de visuels et de guidage discret.

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

Confort de lecture

Choisir votre langue

La langue de l’interface change uniquement le texte. Les marchés, les prix et les parcours conservent leurs propres paramètres.

Couverture des traductions

Une partie du contenu est affichée en anglais.

Navigation151
Graphe616
Catégories378
Portfolio833
Exemples2 035
Aperçu de la source1 542

D’autres traductions seront ajoutées à mesure que le contenu sera relu.

Cette préférence est enregistrée dans ce navigateur.

Rechercher sur le site

Des points de départ utiles

Aucun résultat. Essayez une expression plus courte, un nom d’opération ou un autre périmètre de recherche.

UN PEU DE PLACE POUR EXPLORER

Trouvez quelque chose à explorer.

Ouvrez un aperçu détaillé sur cette page, essayez une autre perspective ou suivez le détail vers sa propre page.

Fonctionnement des aperçus et des commandes
01

Regarder avant de partir

Survolez un lien ou sélectionnez-le avec Tab pour voir un aperçu. Cliquer sur le lien d’origine ou appuyer sur Entrée ouvre toujours sa destination.

02

Rester dans le contexte

Entrez dans l’aperçu pour explorer ses sections. Depuis un lien sélectionné, utilisez Alt + ↓ pour y entrer au clavier. Échap le ferme.

03

Ouvrir les possibilités

Les lignes dépliables, les choix de perspective et les commandes mises en évidence révèlent davantage. Votre vue adapte le confort de lecture et le contexte exploré.

Un bouton séparé pour voir de plus près

Affichez de petits boutons d’aperçu à côté des liens quand l’espace le permet. Touchez l’œil pour examiner ou le lien pour y aller directement. Ce choix reste dans cet onglet.

Aucun historique de navigation n’est collecté. La réduction des animations suit votre appareil et Votre vue.