@openlifeprotocol/schemas
v0.1.0
Published
Open Life Protocol: Schema-first personal knowledge graph ontology for identity, relationships, health, learning, career, wealth, planning, risk, and legacy.
Downloads
68
Maintainers
Readme
Open Life Protocol
Open Life Protocol is a schema-first personal knowledge graph and digital twin protocol.
It provides a governed ontology for representing life data across identity, relationships, health, learning, career, wealth, planning, risk, legacy, and public impact, with semantic enrichment and reasoning support.
What problem this solves
Personal data is usually fragmented across apps, hard to reason about, and difficult to make trustworthy for AI.
Open Life Protocol addresses this by providing:
- A canonical schema layer for life entities and records.
- Governance constraints for consistency and interoperability.
- Semantic metadata for confidence-aware graph reasoning.
- Rule-based inference for multi-hop impact and consequence analysis.
Current status
Project maturity is documented in ARCHITECTURE_COMPLETE.md and phase reports.
High-level status:
- Phases 1-4 completed (foundation, governance, semantic enrichment, reasoning).
- Reasoning layer includes governed inference rules, transitive inference, and consequence chain detection.
- Registry and audit tooling are in place for schema quality and coverage checks.
Repository structure
Top-level layout:
- schemas: authoritative ontology source, organized by numbered life accounts and platform domains.
- public/schemas: distributable schema artifacts for APIs, clients, and tooling.
- src: Next.js documentation and interface layer for browsing and exploring the protocol.
- ARCHITECTURE_COMPLETE.md: architecture overview and phase completion details.
- PHASE_3_SEMANTIC_ENRICHMENT.md, PHASE_3_5_COMPLETE.md, PHASE_4_REASONING_LAYER.md, PHASE_4_REASONING_COMPLETE.md: implementation history and reasoning design.
How schemas work
Core authoring principles are defined in:
Schema workflow:
- Choose the correct account/domain first.
- Reuse canonical concepts where possible.
- Define relationships with governed predicates.
- Add semantic metadata and lifecycle context.
- Validate registry integrity and quality audits.
Reasoning rules are defined by schemas/0000-platform/meta/reasoning-rule.schema.json, with additional guidance in schemas/0000-platform/meta/README.md.
Development and validation
Install dependencies:
npm installRun the site locally:
npm run devBuild for production:
npm run build
npm run startLint:
npm run lintSchema registry and audits:
npm run registry:generate
npm run registry:validate
npm run schemas:audit
npm run schemas:semantic
npm test
npm run benchmarkEngineering operations
- Contributing guide: CONTRIBUTING.md
- Release/versioning discipline: RELEASING.md
- CI workflow: .github/workflows/ci.yml
- Issue templates: .github/ISSUE_TEMPLATE
- External schema consumption examples: examples/external-consumption
What the app/site does
The application in src is the documentation and exploration interface for Open Life Protocol.
It is used to:
- Browse protocol documentation and architecture.
- Navigate schema concepts and ontology organization.
- Support search-driven discovery of protocol entities and docs.
Roadmap
Near-term focus:
- Phase 5 temporal reasoning extensions.
- API-oriented query surfaces for graph traversal and inference explanations.
- Visualization and impact analysis workflows.
- Expanded test harnesses for rule quality and inference safety.
Project identity
Open Life Protocol is not a UI template project.
This repository is the protocol and reference implementation workspace for a governed, semantically rich, reasoning-capable life graph.
License
See LICENSE.md.
