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>
31 lines
5 KiB
Text
31 lines
5 KiB
Text
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:001","source":"eth:source:roadmap-2026","selector":{"type":"line-range","start":26,"end":28}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:002","source":"eth:source:roadmap-2026","selector":{"type":"line-range","start":27,"end":29}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:003","source":"eth:source:roadmap-2026","selector":{"type":"line-range","start":28,"end":30}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:004","source":"eth:source:roadmap-2026","selector":{"type":"line-range","start":29,"end":31}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:005","source":"eth:source:roadmap-2026","selector":{"type":"line-range","start":30,"end":32}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:006","source":"eth:source:roadmap-2026","selector":{"type":"line-range","start":31,"end":33}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:007","source":"eth:source:roadmap-2026","selector":{"type":"line-range","start":32,"end":34}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:008","source":"eth:source:roadmap-2026","selector":{"type":"line-range","start":33,"end":35}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:009","source":"eth:source:roadmap-2026","selector":{"type":"line-range","start":34,"end":36}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:010","source":"eth:source:roadmap-2026","selector":{"type":"line-range","start":35,"end":37}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:011","source":"eth:source:roadmap-2026","selector":{"type":"line-range","start":36,"end":38}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:012","source":"eth:source:roadmap-2026","selector":{"type":"line-range","start":37,"end":39}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:013","source":"eth:source:roadmap-2026","selector":{"type":"line-range","start":38,"end":40}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:014","source":"eth:source:roadmap-2026","selector":{"type":"line-range","start":39,"end":41}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:015","source":"eth:source:roadmap-2026","selector":{"type":"line-range","start":40,"end":42}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:016","source":"eth:source:roadmap-2026","selector":{"type":"line-range","start":41,"end":43}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:017","source":"eth:source:roadmap-2026","selector":{"type":"line-range","start":42,"end":44}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:018","source":"eth:source:roadmap-2026","selector":{"type":"line-range","start":43,"end":45}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:019","source":"eth:source:commit-a41f","selector":{"type":"commit-path","path":"src/zk-prover-core.rs","commit":"a41f"}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:020","source":"eth:source:commit-a41f","selector":{"type":"commit-path","path":"src/zk-prover-core.rs","commit":"a41f"}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:021","source":"eth:source:commit-a41f","selector":{"type":"commit-path","path":"src/zk-prover-cli.rs","commit":"a41f"}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:022","source":"eth:source:commit-b72c","selector":{"type":"commit-path","path":"src/indexer-node.rs","commit":"b72c"}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:023","source":"eth:source:commit-b72c","selector":{"type":"commit-path","path":"src/indexer-schema.rs","commit":"b72c"}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:024","source":"eth:source:commit-c93d","selector":{"type":"commit-path","path":"src/sync-engine.rs","commit":"c93d"}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:025","source":"eth:source:commit-c93d","selector":{"type":"commit-path","path":"src/sync-engine.rs","commit":"c93d"}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:026","source":"eth:source:commit-d10e","selector":{"type":"commit-path","path":"src/bridge-contracts.rs","commit":"d10e"}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:027","source":"eth:source:commit-d10e","selector":{"type":"commit-path","path":"src/bridge-contracts.rs","commit":"d10e"}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:028","source":"eth:source:commit-a41f","selector":{"type":"commit-path","path":"src/account-sdk.rs","commit":"a41f"}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:029","source":"eth:source:commit-a41f","selector":{"type":"commit-path","path":"src/account-sdk.rs","commit":"a41f"}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:030","source":"eth:source:commit-c93d","selector":{"type":"commit-path","path":"src/light-client-rs.rs","commit":"c93d"}}
|
|
{"openontology":"0.1","kind":"Evidence","id":"eth:evidence:031","source":"eth:source:commit-c93d","selector":{"type":"commit-path","path":"src/light-client-rs.rs","commit":"c93d"}}
|