Skip to content

[P0] Build semantic-model client consumption, alignment, and query contract #3

Description

@seonghobae

Buyer outcome

A consuming product or data platform can load a governed ConceptWeave semantic release and use it safely without knowing generator internals: validate integrity/provenance, resolve concepts, align local vocabularies, inspect mappings, plan semantic queries, and surface conflicts instead of silently coercing meaning.

Client Consumption boundary

Client Consumption owns the provider-independent public semantic_release contract and deterministic admission/integrity/compatibility/diff/resolution/supersession behavior. It does not own consuming-product tenant/purpose authorization, business truth, physical query execution, catalog UX, or LLM/provider routing.

The generator publishes immutable/versioned artifacts; clients consume only released contracts. No client may depend on generator-private classes, prompts, provider payloads, internal persistence tables, orchestration state, mutable PR heads, or cross-service SQL. semantic-data-portal remains catalog/governance/consumption, context-graph-contracts interop, enterprise-architecture-core EA, and contextual-orchestrator production model/provider routing.

A public release seam must preserve release/version identity, ontology/schema versions, concept/relation identifiers, truth/publication status, evidence/provenance references, physical mappings, dimensions/measures/calculation metadata, constraints, compatibility/deprecation metadata, and cryptographic integrity evidence where the contract defines it.

Current dependency-first Client lane — 2026-09-05

Foundation #1 is b538470c963e6524ddc0c3f652a46a4fc8265150. Client PR #5 is exact fcf36c8a99f015b963c9f812787df127ac2e2f9e, Draft/open/mergeable. It is a non-force successor retaining the previous Client semantic tree while adopting current Foundation ancestry; predecessor/local evidence is not exact-head GREEN.

The current source already contains a versioned public semantic-release schema, offline published/authoritative admission, digest/provenance validation, compatibility checks, deterministic resolution/diff behavior, immutable-content collision rejection, and explicit predecessor/successor supersession validation. The earlier issue text that described the supersession/publication schema and fixtures as still missing is stale and is superseded by this authority.

Repository-owned Product CI still cannot materialize from protected main until bootstrap #35 is normally integrated. #35 remains exact a31ae0c2df920f2794f7ddb456795b04797ab472, open/non-Draft/mergeable with central Security/CodeQL/SAST lanes queued and no independent approving review. Do not move #5 merely to chase a newer central workflow revision or transfer predecessor evidence as GREEN.

Next Client gaps after exact-head verification

  1. Complete generic explain, match, resolve, validate, diff, compatibility, and query-plan client operations with reproducible receipts rather than product-specific forks.
  2. Add ontology/concept alignment APIs that return typed candidate correspondences with lexical/structural/provenance evidence and explicit ambiguity/abstention; they must not mutate either ontology or promote candidates to authority.
  3. Use retrieve/filter/match and graph-neighborhood pruning before any optional LLM assistance. Production LLM calls route only through released contextual-orchestrator; deterministic validation, authorization, publication-state checks, and final acceptance remain non-LLM.
  4. Keep semantic query planning separate from physical execution. Consuming products retain their own authorized data-access boundary and domain calculations.
  5. Add a frozen GRC-shaped conformance fixture only as a consumer of the generic released contract. governance-risk-compliance remains authoritative for its own business truth; no GRC tuple becomes part of ConceptWeave's canonical public model.
  6. Verify older-supported, superseded, malformed, unknown-version, partial, conflicting, unpublished and digest-invalid releases fail or resolve exactly according to the public compatibility policy.
  7. Publish language-neutral contract/package artifacts only from a release-ready protected head with immutable version/tag/SBOM/provenance/reproducibility/rollback evidence.

Research/evaluation basis

Client matching and alignment work remains traceable to the repository's doctoring register, including Hertling & Paulheim (2023) OLaLa, Giglou et al. (2024) LLMs4OM, Sousa et al. (2025) complex ontology matching, Taboada et al. (2025) prioritized graph search, Barcelos et al. (2025) KROMA, Xiao et al. (2025) LLM4VKG, and Li et al. (2026) systematic review. Every cited work must map to an implemented capability, evaluation family, ADR, or explicit rejection reason; bibliography history is evidence, not a mutable runtime dependency.

Evaluation must cover applicable OAEI-style precision/recall/F1, candidate-retrieval recall, ranking quality, complex correspondences, abstention/ambiguity handling, version compatibility, release-diff correctness, stale/superseded handling, provenance completeness, deterministic digest validation, query-plan correctness, unauthorized-access non-occurrence, reproducibility, and LLM-call reduction versus naive full-ontology prompting where an LLM lane exists.

Acceptance

  • a consumer validates and inspects an immutable released contract offline without contacting an LLM provider;
  • generated artifacts are usable through stable public contracts without generator internals;
  • LLM-assisted client behavior is optional, proposed/inferred, and routed only through contextual-orchestrator;
  • alignment outputs retain evidence/truth status and never become authoritative automatically;
  • current/older-supported/superseded/malformed/unknown-version/conflicting cases are covered by deterministic conformance fixtures;
  • physical mappings and governed dimensions/measures can be resolved while downstream products retain authorization and execution authority;
  • owned production doc/test/edge coverage meets the repository's 100% contract and one unchanged exact head reaches terminal protected evidence before integration.

Out of scope

  • becoming an enterprise catalog UI;
  • owning consuming-product authorization or business-domain truth;
  • direct client writes to foreign product databases;
  • auto-accepting LLM mappings as authoritative;
  • duplicating semantic-data-portal search/catalog responsibilities.

Refs #5, #1, #35.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions