Skip to content

Govern inferred relationships across domains and schemas #254

Open

Description

@cafzal

Status: Open — inferred edges are value-confirmed; authority and cardinality governance remains.

Impact: Trust in inferred joins depends on justified domain authority, datatypes, and cardinality. The ReAct agent's retrieve hands these edges to the model directly as join paths.

Evidence

Since #505 and #529:

  • an inferred semantic FK is kept only when value containment and a real join between the two columns confirm it;
  • it never points into another term family's copy of a table;
  • self-references are supported.

upsert_table_term() isolates generated terms by represented table, and candidates stay scoped to their database. Nothing yet requires domain or schema authority or a cardinality justification before an inferred edge is used.

Actions

Require domain and schema authority, compatible datatypes, justified uniqueness and cardinality, and provenance before an inferred edge is promoted. Preserve authorized shared concepts, declared links, and the cross-database guard.

Acceptance

Compile same-named concepts across domains and schemas concurrently, and verify stable table-specific terms. Test unauthorized cross-domain candidates, incompatible types, cardinality conflicts, and missing evidence. Promote authorized edges with retrievable authority and evidence; retain declared links and cross-database rejection.

Review (8466becd): Source inspection of semantic/semantic_fk.py after #505 and #529. Persisted unauthorized-edge coverage unqualified.

Activity

  1. changed the title [-][P0] Cross-domain concept and inferred-relationship contamination[/-] [+]Cross-domain concept and inferred-relationship contamination[/+] on Oct 4, 2026
  2. changed the title [-]Cross-domain concept and inferred-relationship contamination[/-] [+]Govern inferred relationships across domains and schemas[/+] on Oct 4, 2026
  3. added
    correctnessAnswers, queries, and predictions that are right and explainable
    enhancementNew feature or request
    on Nov 16, 2026
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

    correctnessAnswers, queries, and predictions that are right and explainableenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions