[Canon] Per-concept source/item authority overrides (AuthoritativeFor + GraphEdge.AuthorityTierID)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- sql, typescript
- Área
- authorization, backend, databases
Línea de trabajo
Start with the referenced semantic graph migration, MJGraphEdgeEntityServer.server.ts, and GraphEngine.ts, then review related issues #6675, #6723, and #6724 for the governance and visibility dependencies. The design also points to CanonGraphEngine.ts for concept matching. Done means the schema, edge governance and cache projection, and per-concept authority resolution follow the stated precedence and preserve separate overrides for opposing concepts; the issue leaves visibility and hierarchy tie-breaking open.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What Canon should do
Support per-concept authority overrides from MJ: Content Sources or MJ: Content Items to MJ: Graph Concepts by adding:
- A seeded global
GraphEdgeTypeAuthoritativeFor(InverseName: 'HasAuthoritySource',IsDirected: true,AllowStored: true,DefaultWeight: 1.0) constrained viaMJ: Graph Edge Type Endpointsstrictly to'MJ: Content Sources'/'MJ: Content Items'->'MJ: Graph Concepts'. - A nullable
[AuthorityTierID]foreign key column on__mj.GraphEdgereferencing__mj.GraphAuthorityTier([ID]), guarded byGraph: Approve Edges(Workstream 5a/5b) and cached inGraphEngine. - A resolution contract combining chunk provenance traversal (
SourcedFrom+ParentID/Broader Than) and strictExact/Mentionquery concept matching (later enhanced by Backlog item 1 concept vectorization) without flattening multi-concept overrides across opposing topics.
Who needs this
Associations and multi-topic knowledge bases (e.g., Betty) commonly have two sources that both cover multiple topics with opposite authority:
- 2026 Rulebook (
Reference, 20) is authoritative on Competition Scoring (Board Policy, 80), while its appendix notes on event schedules are secondary. - Public Website (
Reference, 20) is authoritative on Registration Deadlines / Events (Executive SOP, 60), while an older blog post on scoring is secondary.
Why existing primitives cannot express this:
- Flat per-source
AuthorityTier(GraphOverlay.types.ts#L167-L188) assigns one default tier perContentSource, which cannot invert between Concept X and Concept Y. - Binary
Supersedesedges (UQ_GraphEdgeinV202611022300__v6.2.x__Semantic_Graph_And_Graph_Concepts.sql#L199) only allow one(Source, Target)pair per edge type without a concept key, and chunk-anchoredSupersedesedges are disallowed because chunks regenerate on re-ingest and concept-boundary chunk splitting is brittle. - Reusing
SourcedFromconflicts with #6724 (5c, source-bounded concept visibility: a concept is readable if the caller and audience share at least one readableSourcedFromtarget) and with pipeline provenance (ManagedPromptConceptSynthesizer.ts#L99-L116). Adding aStaff-only authority source viaSourcedFromor attaching aPublicsource at low tier would invert intended visibility.
Layer
- Extraction and entity storage
- Concepts and authority
- Search and agents
- Schema
- UI / governance
Related work
- #6675 (
plans/canon-master-plan.md— Dec 3 schema review, Decisions 2/3/6, Backlog item 1) - #6667 (
CanonGraphEnginelexical concept matching:CanonGraphEngine.ts#L75-L90,CanonGraphEngine.ts#L800-L837) - #6731 (Workstream 5a: concept approval & governed edits gate)
- #6723 (Workstream 5b: per-graph
Read/Use/Approvepermissions) - #6724 (Workstream 5c: source-bounded concept visibility &
0-SourcedFromdefaultStewardsOnly) - #6725 (Workstream 5d: graph-scoped concept lookups)
V202611022300__v6.2.x__Semantic_Graph_And_Graph_Concepts.sql#L75-L234(GraphAuthorityTier,GraphEdge,UQ_GraphEdge,GraphConcept)MJGraphEdgeEntityServer.server.ts#L501-L572(CONTENT_FIELDSat#L505,ContentChangedat#L568)GraphEngine.ts#L103-L121,GraphEngine.ts#L849-L904,GraphEngine.ts#L1401-L1417
Rough size
- Small (1-2 days, localized change)
- Medium (a week or two, touches a couple of layers)
- Large (multi-PR / architectural)
Design Sketch
1. Schema & Seed Metadata (Dec 3 Review)
- Add nullable
[AuthorityTierID]on__mj.GraphEdge:ALTER TABLE [${flyway:defaultSchema}].[GraphEdge] ADD [AuthorityTierID] UNIQUEIDENTIFIER NULL CONSTRAINT [FK_GraphEdge_GraphAuthorityTier] REFERENCES [${flyway:defaultSchema}].[GraphAuthorityTier]([ID]);NULLkeeps existing edge semantics untouched (Weightstays strictly for graph traversal relevance, not authority rank). PostgreSQL migration counterpart is generated on release per MJ's schema workflow. - Seed global
GraphEdgeTypeAuthoritativeFor(InverseName: 'HasAuthoritySource',IsDirected: true,AllowStored: true,DefaultWeight: 1.0). - Seed
MJ: Graph Edge Type EndpointsforAuthoritativeForpinned strictly to canonical ISA parent entity names (avoiding ISA childEntityIDdrift across host apps, sinceGraphEnginekeys nodes by<EntityID>|<RecordID>perGraphEngine.ts#L1401-L1417):- SourceEntity:
'MJ: Content Sources','MJ: Content Items' - TargetEntity:
'MJ: Graph Concepts'
- SourceEntity:
- Keep
SourcedFromexclusively for provenance and #6724 (5c) visibility; never overload it for authority overrides.
2. Governance, Decisions 2/3/6 & GraphEngine Caching
MJGraphEdgeEntityServer: Add'AuthorityTierID'toCONTENT_FIELDS(MJGraphEdgeEntityServer.server.ts#L505) so editingAuthorityTierIDon anApprovededge triggersContentChanged(#L568) and requiresGraph: Approve Edges/ #6723 (5b) per-graphApprove.GraphEnginecache projection: IncludeAuthorityTierIDinSTORED_EDGE_FIELDS(GraphEngine.ts#L103-L121) and projectAuthorityTierIDplus resolved tierNameandRank(viaGraphEngine.Instance.AuthorityTiers) ontoGraphEdgeView(GraphEngine.ts#L849-L904).- Decisions 3 & 6 (#6675):
- Steward-created
AuthoritativeForedges setOrigin = 'Declared'and follow Decision 2 (#67235bApprovegating). - Any future automated or feedback-driven proposer creates edges with
Origin = 'Inferred',Status = 'Proposed',DryRun = trueby default, and skips any(GraphID, AuthoritativeFor, SourceEntityID, SourceRecordID, TargetEntityID, TargetRecordID)pair that already exists in anyStatus(Proposed,Approved, orRejected) so rejected or declared overrides are never duplicated or overwritten.
- Steward-created
3. Interaction with #6724 (5c) Visibility & Org-Only Source RLS
0-SourcedFromconcepts:GraphConceptcurrently has noOrigincolumn (V202611022300...sql#L211-L234), and #6724 (5c) defaults concepts with zeroSourcedFromedges toStewardsOnly. Consequently, a steward-authored concept created solely as anAuthoritativeFortarget would not be visible to non-steward callers unless paired with at least one readableSourcedFromedge or handled by an explicit human-origin visibility rule in #6724 (5c).- Host entitlement gating: In deployments where
'MJ: Content Sources'RLS is org-scoped rather than role/entitlement-scoped, authority resolution runs only on hits that have already passed host scoped search and entitlement hydration, and #6724 (5c) visibility checks must honor host entitlement boundaries before surfacing concept metadata.
4. Concept & Override Resolution Contract
- Concept resolution (replacing raw
Token-only triggers from #6667):- Path A (Chunk-to-Concept): For surviving retrieved chunks, traverse inbound
SourcedFromedges (ContentItemChunk/ContentItem->GraphConcept) and climbParentID/Broader Thanhierarchy edges within visible (#67235b+ #67245c) concepts. - Path B (Query-to-Concept): Match the query/sub-query against visible concepts using strict
ExactorMentionclassification only (CanonGraphEngine.ts#L75-L90,#L800-L837)—suppressing weakToken-only matches until Backlog item 1 concept vectorization lands.
- Path A (Chunk-to-Concept): For surviving retrieved chunks, traverse inbound
- Tier precedence for
(ContentItemID, ContentSourceID)on a matched concept:
Concept <- ContentItem (AuthoritativeFor, Approved)>Concept <- ContentSource (AuthoritativeFor, Approved)>ContentSourcedefaultAuthorityTier. - Compound / multi-concept queries: Never collapse multiple matched concepts to
max(rank)across a whole query (which cancels opposite overrides likeRulebook > Websiteon Scoring vsWebsite > Rulebookon Deadlines). Resolve overrides per retrieved passage (RecordID|ChunkID) or per decomposed retrieval sub-request, keeping baseline relevance when opposing concepts co-occur in one undivided request and qualifying composer provenance by concept (e.g.,Authority: Board Policy (for Competition Scoring)).
5. Open Questions for Dec 3 Review
0-SourcedFromhuman concepts (#67245ccoordination): Should steward-authored concepts used forAuthoritativeForalways be paired with a readableSourcedFromsource/item anchor, or shouldGraphConceptadd anOrigin(Declared | Inferred) / explicit audience visibility mechanism?- Hierarchy tie-breaking: When a query matches both a parent concept and a child concept (
ParentID/Broader Than) that have conflictingAuthoritativeFortiers for the same source/item, should nearest-concept-hop (most specific concept) win over highest tier rank?
- Lenguaje dominante
- TSQL
- Estrellas
- 32
- Forks
- 7
- Merge medio
- 1 d 16 h
- PR fusionados (30 d)
- 504
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de MemberJunction/MJ
-
DBAutoDoc: export --state-file writes SQL Server SQL for a PostgreSQL database, ignoring --providerAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
MemberJunction/MJ#7094 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
MemberJunction/MJ#6971 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
MemberJunction/MJ#6947 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
MemberJunction/MJ#6800 ·
Los mantenedores suelen responder en 1 día
-
Convention: saved-query discoverability follows Status — Approved is canon, Pending is a draftAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
MemberJunction/MJ#6746 ·
Los mantenedores suelen responder en 1 día
Todos los issues de MemberJunction/MJ
Issues similares
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
samkerrcode/opengent#113 ·
Los mantenedores suelen responder en 1 día
-
CVE-2026-139999 react-routerAbiertoarea/dependencies area/dependencies/js backport/26.6 backport/26.8 kind/cve severity/medium source/scan-dependencies status/triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 67/100
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
OHDSI/Data2Evidence#3795 ·
Los mantenedores suelen responder en 3 días
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
sharkohark1234/redact-sensitive#120 ·
Los mantenedores suelen responder en 1 día
-
bug vault
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
bancolombia/secrets-manager#150 ·
Los mantenedores suelen responder en 1 día