mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-13 14:37:26 +00:00
Implements OpenPRD 0001 through Phase 0 (specification, schemas, example, docs surface) and Phase 1 (local engine, CLI, conformance tests). Schemas (17 contracts, JSON Schema Draft 2020-12, additionalProperties:false) manifest, namespace, entity-type, property, relationship-type, constraint, query, action, entity, claim, source, evidence, changeset, review, approval, event, package — registered in @logicsrc/validators and exported from @logicsrc/schemas under https://logicsrc.com/schemas/openontology/. @logicsrc/openontology - canonical JSON + sha256 package digests; YAML, JSON, NDJSON, and inline authoring all compile to the same bytes, so digests are authoring-agnostic - id profile: compact / IRI / urn with one canonicalization rule, prefix bound by a Namespace object so IRIs reverse unambiguously - validation: schema, graph (domain/range, datatypes, dangling refs), provenance (source-or-firstParty, agent runId, derivation inputs), policy (excerpt limits, licensing, visibility, staleness) and declared constraints; four severities, stable codes, text/json/yaml/markdown - portable triple-pattern query AST: multi-hop, 14 operators, asOf and recordedAsOf, per-status filtering, distinct/order/limit, explanation mode, and enforced depth/binding/row limits - append-only store: claims are immutable; dispute/retract/supersede append status transitions and the effective status is the latest one - change sets: 9 operations, atomic pre-flight, conflict detection on stale base revisions, semantic diff with duplicate-identity warnings and affected-query deltas, per-operation reviewer decisions - policy: agents propose but can never apply — the denial keys on actor type, so every scope plus high confidence plus --yolo still cannot apply; merges need approval, bulk retractions need two, undeclared action side effects are denied - JSON-LD 1.1 export/import with PROV-O aliases and lossy-field reporting - pluggable signature envelope with a jws-ed25519 reference profile and a fail-closed trust policy CLI: logicsrc ontology init|validate|lint|build|inspect, entity, claim, query, changeset, import, export, audit. Reads take --format, writes default to a proposal, exit codes are stable for CI. Example: examples/openontology/ethereum-ecosystem — 12 entity types, 17 relationship types, 63 entities, 169 claims, 25 sources, 31 evidence records, 5 saved queries, every claim lifecycle state, and a pending merge proposal. All data is fictional; the directory is removable without affecting any core test. Docs: docs/openontology{,-governance,-interoperability}.md, a real /openontology route, homepage + nav + sitemap entries, and a root README section. Verification: 112 new tests; full monorepo build and every workspace test pass; conformance bundle (18 valid + 13 invalid fixtures) runs against the published schemas alone; Node.js 25 and Bun 1.3 produce byte-identical digests, revisions, event trails, and query results. Not included (later PRD phases): MCP resources, REST/SSE, Turso adapter, TUI and PWA surfaces, RDF/SHACL mappings, source adapters, governed actions. Refs: prd/0001-add-logicsrc-openontology-spec.md Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
63 lines
13 KiB
Text
63 lines
13 KiB
Text
{"openontology":"0.1","kind":"Entity","id":"eth:person:avery-lindqvist","type":"Person","canonicalName":"Avery Lindqvist","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org","aliases":["avery.eth"],"externalIds":{"github":"averyl"}}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:person:marisol-tan","type":"Person","canonicalName":"Marisol Tan","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org","externalIds":{"github":"mtan"}}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:person:dev-okafor","type":"Person","canonicalName":"Dev Okafor","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org","aliases":["devo"]}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:person:ingrid-halvorsen","type":"Person","canonicalName":"Ingrid Halvorsen","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:person:rafael-benitez","type":"Person","canonicalName":"Rafael Benitez","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org","externalIds":{"github":"rbenitez"}}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:person:yuki-shimada","type":"Person","canonicalName":"Yuki Shimada","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org","aliases":["yuki.eth"]}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:person:nadia-farouk","type":"Person","canonicalName":"Nadia Farouk","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:person:tomas-vrba","type":"Person","canonicalName":"Tomas Vrba","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:person:priya-raghavan","type":"Person","canonicalName":"Priya Raghavan","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org","externalIds":{"github":"praghavan"}}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:person:kwame-mensah","type":"Person","canonicalName":"Kwame Mensah","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:person:lena-brandt","type":"Person","canonicalName":"Lena Brandt","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:person:oscar-delgado","type":"Person","canonicalName":"Oscar Delgado","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:person:hana-kovacs","type":"Person","canonicalName":"Hana Kovacs","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:person:samir-haddad","type":"Person","canonicalName":"Samir Haddad","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org","aliases":["samir.eth"]}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:person:s-haddad","type":"Person","canonicalName":"S. Haddad","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org","aliases":["shaddad"]}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:org:northwind-labs","type":"Organization","canonicalName":"Northwind Labs","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:org:bluebird-foundation","type":"Organization","canonicalName":"Bluebird Foundation","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:org:cinder-collective","type":"Organization","canonicalName":"Cinder Collective","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:org:harbor-research","type":"Organization","canonicalName":"Harbor Research","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:org:tessellate-dao","type":"Organization","canonicalName":"Tessellate DAO","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:org:quill-systems","type":"Organization","canonicalName":"Quill Systems","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:project:zk-prover","type":"Project","canonicalName":"ZK Prover","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:project:ledger-indexer","type":"Project","canonicalName":"Ledger Indexer","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:project:state-sync","type":"Project","canonicalName":"State Sync","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:project:rollup-bridge","type":"Project","canonicalName":"Rollup Bridge","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:project:account-toolkit","type":"Project","canonicalName":"Account Toolkit","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:project:mempool-observatory","type":"Project","canonicalName":"Mempool Observatory","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:project:docs-portal","type":"Project","canonicalName":"Docs Portal","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:project:light-client","type":"Project","canonicalName":"Light Client","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:code:zk-prover-core","type":"Codebase","canonicalName":"zk-prover-core","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org","extensions":{"eth:language":"Rust"}}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:code:zk-prover-cli","type":"Codebase","canonicalName":"zk-prover-cli","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org","extensions":{"eth:language":"Rust"}}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:code:indexer-node","type":"Codebase","canonicalName":"indexer-node","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org","extensions":{"eth:language":"Go"}}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:code:indexer-schema","type":"Codebase","canonicalName":"indexer-schema","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org","extensions":{"eth:language":"TypeScript"}}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:code:sync-engine","type":"Codebase","canonicalName":"sync-engine","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org","extensions":{"eth:language":"Rust"}}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:code:bridge-contracts","type":"Codebase","canonicalName":"bridge-contracts","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org","extensions":{"eth:language":"Solidity"}}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:code:account-sdk","type":"Codebase","canonicalName":"account-sdk","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org","extensions":{"eth:language":"TypeScript"}}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:code:light-client-rs","type":"Codebase","canonicalName":"light-client-rs","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org","extensions":{"eth:language":"Rust"}}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:topic:zero-knowledge","type":"ResearchTopic","canonicalName":"Zero Knowledge Proofs","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:topic:account-abstraction","type":"ResearchTopic","canonicalName":"Account Abstraction","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:topic:data-availability","type":"ResearchTopic","canonicalName":"Data Availability","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:topic:consensus-safety","type":"ResearchTopic","canonicalName":"Consensus Safety","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:topic:mev-mitigation","type":"ResearchTopic","canonicalName":"MEV Mitigation","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:protocol:proof-envelope","type":"Protocol","canonicalName":"Proof Envelope Protocol","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:protocol:account-ops","type":"Protocol","canonicalName":"Account Operations Protocol","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:protocol:blob-commit","type":"Protocol","canonicalName":"Blob Commitment Protocol","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:protocol:light-sync","type":"Protocol","canonicalName":"Light Sync Protocol","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:network:mainnet-sim","type":"Network","canonicalName":"Mainnet Simulation","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org","extensions":{"eth:chainId":9001}}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:network:testnet-sim","type":"Network","canonicalName":"Testnet Simulation","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org","extensions":{"eth:chainId":9002}}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:l2:tessera","type":"Layer2","canonicalName":"Tessera","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:l2:cascade","type":"Layer2","canonicalName":"Cascade","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:l2:lattice","type":"Layer2","canonicalName":"Lattice","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:app:swap-desk","type":"Application","canonicalName":"Swap Desk","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:app:lend-pool","type":"Application","canonicalName":"Lend Pool","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:app:name-registry","type":"Application","canonicalName":"Name Registry","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:app:vault-manager","type":"Application","canonicalName":"Vault Manager","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:fund:open-proofs-fund","type":"FundingProgram","canonicalName":"Open Proofs Fund","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:fund:public-goods-round","type":"FundingProgram","canonicalName":"Public Goods Round","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:fund:research-stipends","type":"FundingProgram","canonicalName":"Research Stipends","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:pub:recursive-proofs-paper","type":"Publication","canonicalName":"Recursive Proofs at Scale","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:pub:aa-survey","type":"Publication","canonicalName":"A Survey of Account Abstraction Designs","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:pub:da-sampling-note","type":"Publication","canonicalName":"Notes on Data Availability Sampling","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:event:proof-summit","type":"Event","canonicalName":"Proof Summit","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|
|
{"openontology":"0.1","kind":"Entity","id":"eth:event:rollup-workshop","type":"Event","canonicalName":"Rollup Workshop","createdAt":"2026-07-26T00:00:00Z","createdBy":"mailto:curator@example.org"}
|