Last modified by Robert Schaub on 2025/12/24 20:35

From version 6.3
edited by Robert Schaub
on 2025/11/27 12:36
Change comment: Renamed back-links.
To version 4.1
edited by Robert Schaub
on 2025/11/27 12:11
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,7 +1,171 @@
1 -(((
1 +== 1. Overall analysis & review of the data model ==
2 2  
3 +=== 1.1 Strengths of the current design ===
4 +
5 +* (((
6 +**Identity vs. version pattern**
7 +Using base entities plus version entities (CLAIM + CLAIM_VERSION, SCENARIO + SCENARIO_VERSION, etc.) is exactly how modern knowledge systems handle:
8 +
9 +* auditability
10 +* time evolution
11 +* re-evaluation triggers
12 +* federation and partial replication
3 3  )))
14 +* (((
15 +**Scenario-centric reasoning**
16 +Separating //Claim// (what people argue about) from //Scenario// (interpretive frame) is very aligned with “truth landscape” style systems:
4 4  
18 +* Scenarios explain //why people disagree//.
19 +* Verdicts are tied to specific scenario versions → avoids mixing incompatible assumptions.
20 +)))
21 +* **Evidence and verdicts as first-class entities**
22 +Evidence is explicit, linked to scenarios, and verdicts are per scenario. This matches good practice from fact-checking, scientific assessment panels, and trust graphs.
23 +* (((
24 +**Cluster level (CLAIM_CLUSTER)**
25 +Grouping related claims avoids duplication and lets you:
26 +
27 +* reuse scenarios across paraphrases
28 +* share embeddings / semantic search
29 +* keep the system scalable as the corpus grows.
30 +)))
31 +* (((
32 +**Explicit review layer (REVIEW_ACTION, roles, etc.)**
33 +Separating “data” from “who reviewed what” keeps the model clean, and is exactly what you want for:
34 +
35 +* governance
36 +* permissions
37 +* audit trails
38 +* future trust scoring per user / role.
39 +)))
40 +
41 +----
42 +
43 +=== 1.2 Design decisions I’m locking in (based on our discussions) ===
44 +
45 +To make the model consistent and “state-of-the-art”, I will assume the following as //current intended design//:
46 +
47 +1. (((
48 +**Claims vs Scenarios**
49 +
50 +* CLAIM is the stable identity for “what people argue about”.
51 +* CLAIM_VERSION are individual phrasings / formulations / metadata.
52 +* (((
53 +SCENARIO belongs to a **CLAIM**, not to a specific CLAIM_VERSION.
54 +Rationale:
55 +
56 +* Many different phrasings share the //same// scenario.
57 +* You avoid duplicating scenarios per wording.
58 +)))
59 +* SCENARIO_VERSION holds detailed definitions, assumptions, boundaries, etc.
60 +)))
61 +1. (((
62 +**Version-specific reasoning**
63 +
64 +* **Verdicts** are always attached to SCENARIO_VERSION (not base SCENARIO).
65 +* **Evidence links** are between SCENARIO_VERSION and EVIDENCE_VERSION.
66 +→ This is what we agreed when we said //“SCENARIO_EVIDENCE_LINK should link the respective versions instead”//.
67 +)))
68 +1. (((
69 +**Clusters**
70 +
71 +* CLAIM_CLUSTER groups Claims (semantically close claims).
72 +* It is visible in **both diagrams** (Core Data Model and Data Use).
73 +)))
74 +1. (((
75 +**Review vs data**
76 +
77 +* (((
78 +All review happens **on versioned entities**:
79 +
80 +* CLAIM_VERSION
81 +* SCENARIO_VERSION
82 +* EVIDENCE_VERSION
83 +* SCENARIO_EVIDENCE_LINK_VERSION
84 +* VERDICT_VERSION
85 +)))
86 +* REVIEW_ACTION is the generic log of //who// did //what// on //which version//.
87 +)))
88 +1. (((
89 +**Users & roles**
90 +
91 +* USER has an attribute (or a linked entity) that distinguishes **technical users** from normal accounts.
92 +* We //keep// TECHNICAL_USER as a specialisation of USER (strictly technical accounts).
93 +* All human & technical accounts can hold roles via USER_ROLE_MEMBERSHIP.
94 +* (((
95 +Roles include:
96 +
97 +* READER
98 +* CONTRIBUTOR
99 +* TRUSTED_CONTRIBUTOR
100 +* REVIEWER
101 +* MODERATOR
102 +* SYSTEM_ADMIN / MAINTAINER
103 +* FEDERATION_OPERATOR
104 +* FEDERATION_ADMIN
105 +(all present in the Data Use ERD, but as rows of ROLE rather than separate entities).
106 +)))
107 +)))
108 +
109 +----
110 +
111 +=== 1.3 Gaps / potential problems ===
112 +
113 +These are the main issues & missing areas I see:
114 +
115 +1. (((
116 +**Versioning text in chapter 5 is currently too thin (‘…’ placeholders)**
117 +
118 +* (((
119 +The spec does not yet //verbally// spell out:
120 +
121 +* the identity vs version pattern, systematically
122 +* how re-evaluation triggers are derived from version changes
123 +* how this aligns with federation (which versions are replicated where).
124 +)))
125 +)))
126 +1. (((
127 +**No explicit “provenance granularity” in the model**
128 +
129 +* (((
130 +EVIDENCE is a single entity. For more advanced use cases, you may later want:
131 +
132 +* EVIDENCE_SOURCE (the whole article/report/video)
133 +* EVIDENCE_FRAGMENT (specific paragraph/clip with its own reliability, quote, etc.)
134 +)))
135 +* For now, I’ll keep EVIDENCE/EVIDENCE_VERSION as is, but I’ll mention this as a possible extension.
136 +)))
137 +1. (((
138 +**Review target polymorphism**
139 +
140 +* (((
141 +REVIEW_ACTION can apply to multiple entity types. In the diagram this shows as multiple relationships:
142 +
143 +* CLAIM_VERSION → REVIEW_ACTION
144 +* SCENARIO_VERSION → REVIEW_ACTION
145 +* etc.
146 +)))
147 +* A more “pure” relational modeling would use a generic “subjectType + subjectId” or an intermediate “REVIEW_TARGET” table.
148 +* For readability, I’ll keep the simpler multi-edge representation and mention the polymorphism in text.
149 +)))
150 +1. (((
151 +**Federation details missing from core ERD**
152 +
153 +* There is no explicit FEDERATION_NODE / REPLICATION_LOG in the Data Model chapter.
154 +* This is ok for “core logical data model”, but I’ll add a short note that federation metadata is handled in the Federation chapter and via additional entities.
155 +)))
156 +1. (((
157 +**Automation / AKEL artifacts left implicit**
158 +
159 +* (((
160 +The Data Model chapter currently doesn’t describe:
161 +
162 +* AKEL task queues
163 +* extraction runs
164 +* model versions
165 +)))
166 +* That’s fine for now; I’ll just clarify that those belong to a “Processing / AKEL” submodel, not the core logical data model.
167 +)))
168 +
5 5  = 5. Data Model =
6 6  
7 7  The FactHarbor data model centers on four fully versioned, immutable entities:
... ... @@ -61,13 +61,6 @@
61 61  The convention is that fields ending in {{code}}Id{{/code}} are primary keys,
62 62  and fields with {{code}}...IdFk{{/code}} are foreign keys.
63 63  
64 -{{comment}} Core Data Model ERD (Mermaid, from /Specification/Diagrams/Data Model) {{/comment}}
65 -{{include document="FactHarbor.Playground.Core Data Model ERD Page (from Specification chat).WebHome" reference="FactHarbor.Playground.data.Core Data Model ERD Page (from Specification chat).WebHome"/}}
66 -
67 -= Core Data Model ERD (Versioned) =
68 -
69 -This diagram shows the full core data model with all versioned entities.
70 -
71 71  {{mermaid}}
72 72  erDiagram
73 73   CLAIM_CLUSTER {
... ... @@ -158,14 +158,9 @@
158 158  
159 159   SCENARIO ||--o{ VERDICT : assessed
160 160   VERDICT ||--o{ VERDICT_VERSION : versions
318 +
161 161  {{/mermaid}}
162 162  
163 -{{info}}
164 -All key entities are explicitly versioned here (…VERSION tables).
165 -This reflects the versioning requirements in the textual Data Model chapter.
166 -{{/info}}
167 -
168 -
169 169  **Important points:**
170 170  
171 171  * Scenarios and Evidence are **linked via their versions**
... ... @@ -186,14 +186,6 @@
186 186  * Roles and role assignments
187 187  * Review actions on versioned entities
188 188  
189 -{{comment}} Data Use ERD (Mermaid, from /Specification/Diagrams/Data Use ERD) {{/comment}}
190 -{{include document="FactHarbor.Playground.Data Use ERD Page (from Specification chat).WebHome" reference="FactHarbor.Playground.data.Data Use ERD Page (from Specification chat).WebHome"/}}
191 -
192 -= Data Use ERD (Roles, Review & Versioned Entities) =
193 -
194 -This diagram shows how users, roles, and review actions relate to the
195 -versioned core entities.
196 -
197 197  {{mermaid}}
198 198  erDiagram
199 199   %% Core clusters shown for context
... ... @@ -334,16 +334,9 @@
334 334   REVIEW_ACTION }o--|| SCENARIO_VERSION : reviews
335 335   REVIEW_ACTION }o--|| EVIDENCE_VERSION : reviews
336 336   REVIEW_ACTION }o--|| VERDICT_VERSION : reviews
481 +
337 337  {{/mermaid}}
338 338  
339 -{{info}}
340 -This diagram focuses on *who* uses and reviews *which* versioned entities.
341 -USER is the base type; TECHNICAL_USER and CONTRIBUTING_USER are specializations.
342 -Other roles (REVIEWER, EXPERT, TRUSTED_CONTRIBUTOR, FEDERATION_ADMIN, FEDERATION_NODE)
343 -are modelled as specializations or technical subtypes.
344 -{{/info}}
345 -
346 -
347 347  Notes:
348 348  
349 349  * Most roles (READER, CONTRIBUTOR, TRUSTED_CONTRIBUTOR, REVIEWER, MODERATOR,
... ... @@ -410,173 +410,3 @@
410 410  Federation-specific entities (such as {{code}}FEDERATION_NODE{{/code}},
411 411  replication logs, and trust rules) are described in the Federation &
412 412  Decentralization chapter and build on top of the core data model defined here.
413 -
414 -----
415 -
416 -== 1. Overall analysis & review of the data model ==
417 -
418 -=== 1.1 Strengths of the current design ===
419 -
420 -* (((
421 -**Identity vs. version pattern**
422 -Using base entities plus version entities (CLAIM + CLAIM_VERSION, SCENARIO + SCENARIO_VERSION, etc.) is exactly how modern knowledge systems handle:
423 -
424 -* auditability
425 -* time evolution
426 -* re-evaluation triggers
427 -* federation and partial replication
428 -)))
429 -* (((
430 -**Scenario-centric reasoning**
431 -Separating //Claim// (what people argue about) from //Scenario// (interpretive frame) is very aligned with “truth landscape” style systems:
432 -
433 -* Scenarios explain //why people disagree//.
434 -* Verdicts are tied to specific scenario versions → avoids mixing incompatible assumptions.
435 -)))
436 -* **Evidence and verdicts as first-class entities**
437 -Evidence is explicit, linked to scenarios, and verdicts are per scenario. This matches good practice from fact-checking, scientific assessment panels, and trust graphs.
438 -* (((
439 -**Cluster level (CLAIM_CLUSTER)**
440 -Grouping related claims avoids duplication and lets you:
441 -
442 -* reuse scenarios across paraphrases
443 -* share embeddings / semantic search
444 -* keep the system scalable as the corpus grows.
445 -)))
446 -* (((
447 -**Explicit review layer (REVIEW_ACTION, roles, etc.)**
448 -Separating “data” from “who reviewed what” keeps the model clean, and is exactly what you want for:
449 -
450 -* governance
451 -* permissions
452 -* audit trails
453 -* future trust scoring per user / role.
454 -)))
455 -
456 -----
457 -
458 -=== 1.2 Design decisions I’m locking in (based on our discussions) ===
459 -
460 -To make the model consistent and “state-of-the-art”, I will assume the following as //current intended design//:
461 -
462 -1. (((
463 -**Claims vs Scenarios**
464 -
465 -* CLAIM is the stable identity for “what people argue about”.
466 -* CLAIM_VERSION are individual phrasings / formulations / metadata.
467 -* (((
468 -SCENARIO belongs to a **CLAIM**, not to a specific CLAIM_VERSION.
469 -Rationale:
470 -
471 -* Many different phrasings share the //same// scenario.
472 -* You avoid duplicating scenarios per wording.
473 -)))
474 -* SCENARIO_VERSION holds detailed definitions, assumptions, boundaries, etc.
475 -)))
476 -1. (((
477 -**Version-specific reasoning**
478 -
479 -* **Verdicts** are always attached to SCENARIO_VERSION (not base SCENARIO).
480 -* **Evidence links** are between SCENARIO_VERSION and EVIDENCE_VERSION.
481 -→ This is what we agreed when we said //“SCENARIO_EVIDENCE_LINK should link the respective versions instead”//.
482 -)))
483 -1. (((
484 -**Clusters**
485 -
486 -* CLAIM_CLUSTER groups Claims (semantically close claims).
487 -* It is visible in **both diagrams** (Core Data Model and Data Use).
488 -)))
489 -1. (((
490 -**Review vs data**
491 -
492 -* (((
493 -All review happens **on versioned entities**:
494 -
495 -* CLAIM_VERSION
496 -* SCENARIO_VERSION
497 -* EVIDENCE_VERSION
498 -* SCENARIO_EVIDENCE_LINK_VERSION
499 -* VERDICT_VERSION
500 -)))
501 -* REVIEW_ACTION is the generic log of //who// did //what// on //which version//.
502 -)))
503 -1. (((
504 -**Users & roles**
505 -
506 -* USER has an attribute (or a linked entity) that distinguishes **technical users** from normal accounts.
507 -* We //keep// TECHNICAL_USER as a specialisation of USER (strictly technical accounts).
508 -* All human & technical accounts can hold roles via USER_ROLE_MEMBERSHIP.
509 -* (((
510 -Roles include:
511 -
512 -* READER
513 -* CONTRIBUTOR
514 -* TRUSTED_CONTRIBUTOR
515 -* REVIEWER
516 -* MODERATOR
517 -* SYSTEM_ADMIN / MAINTAINER
518 -* FEDERATION_OPERATOR
519 -* FEDERATION_ADMIN
520 -(all present in the Data Use ERD, but as rows of ROLE rather than separate entities).
521 -)))
522 -)))
523 -
524 -----
525 -
526 -=== 1.3 Gaps / potential problems ===
527 -
528 -These are the main issues & missing areas I see:
529 -
530 -1. (((
531 -**Versioning text in chapter 5 is currently too thin (‘…’ placeholders)**
532 -
533 -* (((
534 -The spec does not yet //verbally// spell out:
535 -
536 -* the identity vs version pattern, systematically
537 -* how re-evaluation triggers are derived from version changes
538 -* how this aligns with federation (which versions are replicated where).
539 -)))
540 -)))
541 -1. (((
542 -**No explicit “provenance granularity” in the model**
543 -
544 -* (((
545 -EVIDENCE is a single entity. For more advanced use cases, you may later want:
546 -
547 -* EVIDENCE_SOURCE (the whole article/report/video)
548 -* EVIDENCE_FRAGMENT (specific paragraph/clip with its own reliability, quote, etc.)
549 -)))
550 -* For now, I’ll keep EVIDENCE/EVIDENCE_VERSION as is, but I’ll mention this as a possible extension.
551 -)))
552 -1. (((
553 -**Review target polymorphism**
554 -
555 -* (((
556 -REVIEW_ACTION can apply to multiple entity types. In the diagram this shows as multiple relationships:
557 -
558 -* CLAIM_VERSION → REVIEW_ACTION
559 -* SCENARIO_VERSION → REVIEW_ACTION
560 -* etc.
561 -)))
562 -* A more “pure” relational modeling would use a generic “subjectType + subjectId” or an intermediate “REVIEW_TARGET” table.
563 -* For readability, I’ll keep the simpler multi-edge representation and mention the polymorphism in text.
564 -)))
565 -1. (((
566 -**Federation details missing from core ERD**
567 -
568 -* There is no explicit FEDERATION_NODE / REPLICATION_LOG in the Data Model chapter.
569 -* This is ok for “core logical data model”, but I’ll add a short note that federation metadata is handled in the Federation chapter and via additional entities.
570 -)))
571 -1. (((
572 -**Automation / AKEL artifacts left implicit**
573 -
574 -* (((
575 -The Data Model chapter currently doesn’t describe:
576 -
577 -* AKEL task queues
578 -* extraction runs
579 -* model versions
580 -)))
581 -* That’s fine for now; I’ll just clarify that those belong to a “Processing / AKEL” submodel, not the core logical data model.
582 -)))