Changes for page Data Model

Last modified by Robert Schaub on 2026/02/08 08:27

From version 2.1
edited by Robert Schaub
on 2025/12/18 12:54
Change comment: Imported from XAR
To version 3.1
edited by Robert Schaub
on 2025/12/19 14:41
Change comment: Imported from XAR

Summary

Details

Page properties
Content
... ... @@ -157,8 +157,6 @@
157 157  * **description** (text): Human-readable description of the scenario
158 158  * **assumptions** (JSONB): Key assumptions that define this scenario context
159 159  * **extracted_from** (UUID): Reference to evidence that this scenario was extracted from
160 -* **verdict_summary** (text): Compiled verdict for this scenario
161 -* **confidence** (decimal 0-1): Confidence level for verdict in this scenario
162 162  * **created_at** (timestamp): When scenario was created
163 163  * **updated_at** (timestamp): Last modification
164 164  **How Found**: Evidence search → Extract context → Create scenario → Link to claim
... ... @@ -168,7 +168,33 @@
168 168  * Scenario 2: "Real-world data (diverse population, Omicron variant)" from hospital data
169 169  * Scenario 3: "Immunocompromised patients" from specialist study
170 170  **V2.0 Evolution**: Many-to-many relationship can be added if users request cross-claim scenario sharing. For V1.0, keeping scenarios tied to single claims simplifies queries and reduces complexity without limiting functionality.
171 -=== 1.5 User ===
169 +
170 +=== 1.5 Verdict ===
171 +
172 +**Purpose**: Assessment of a claim within a specific scenario context. Each verdict provides a conclusion about whether the claim is supported, refuted, or uncertain given the scenario's assumptions and available evidence.
173 +
174 +**Core Fields**:
175 +* **id** (UUID): Primary key
176 +* **scenario_id** (UUID FK): The scenario being assessed
177 +* **created_at** (timestamp): When verdict was first created
178 +
179 +**Versioned via VERDICT_VERSION**: Verdicts evolve as new evidence emerges or analysis improves. Each version captures:
180 +* **likelihood_range** (text): Probabilistic assessment (e.g., "0.40-0.65 (uncertain)", "0.75-0.85 (likely true)")
181 +* **confidence** (decimal 0-1): How confident we are in this assessment
182 +* **explanation_summary** (text): Human-readable reasoning explaining the verdict
183 +* **uncertainty_factors** (text array): Specific factors limiting confidence (e.g., "Small sample sizes", "Lifestyle confounds", "Long-term effects unknown")
184 +* **created_at** (timestamp): When this version was generated
185 +
186 +**Relationship**: Each Scenario has multiple Verdicts over time (as understanding evolves). Each Verdict has multiple versions.
187 +
188 +**Example**:
189 +For claim "Exercise improves mental health" in scenario "Clinical trials (healthy adults, structured programs)":
190 +* Initial verdict (v1): likelihood_range="0.40-0.65 (uncertain)", uncertainty_factors=["Small sample sizes", "Short-term studies only"]
191 +* Updated verdict (v2): likelihood_range="0.70-0.85 (likely true)", uncertainty_factors=["Lifestyle confounds remain"]
192 +
193 +**Key Design**: Separating Verdict from Scenario allows tracking how our understanding evolves without losing history.
194 +
195 +=== 1.6 User ===
172 172  Fields: username, email, **role** (Reader/Contributor/Moderator), **reputation**, contributions_count
173 173  === User Reputation System ==
174 174  **V1.0 Approach**: Simple manual role assignment
... ... @@ -224,8 +224,8 @@
224 224  * Threshold-based promotions
225 225  * Reputation decay for inactive users
226 226  * Track record scoring for contributors
227 -See [[When to Add Complexity>>FactHarbor.Specification.When-to-Add-Complexity]] for triggers.
228 -=== 1.6 Edit ===
251 +See [[When to Add Complexity>>Test.FactHarbor.Specification.When-to-Add-Complexity]] for triggers.
252 +=== 1.7 Edit ===
229 229  **Fields**: entity_type, entity_id, user_id, before_state (JSON), after_state (JSON), edit_type, reason, created_at
230 230  **Purpose**: Complete audit trail for all content changes
231 231  === Edit History Details ===
... ... @@ -258,9 +258,9 @@
258 258  * Legal compliance (audit trail)
259 259  * Rollback capability
260 260  See **Edit History Documentation** for complete details on what gets edited by whom, retention policy, and use cases
261 -=== 1.7 Flag ===
285 +=== 1.8 Flag ===
262 262  Fields: entity_id, reported_by, issue_type, status, resolution_note
263 -=== 1.8 QualityMetric ===
287 +=== 1.9 QualityMetric ===
264 264  **Fields**: metric_type, category, value, target, timestamp
265 265  **Purpose**: Time-series quality tracking
266 266  **Usage**:
... ... @@ -270,7 +270,7 @@
270 270  * **A/B testing**: Compare control vs treatment metrics
271 271  * **Improvement validation**: Measure before/after changes
272 272  **Example**: `{type: "ErrorRate", category: "Politics", value: 0.12, target: 0.10, timestamp: "2025-12-17"}`
273 -=== 1.9 ErrorPattern ===
297 +=== 1.10 ErrorPattern ===
274 274  **Fields**: error_category, claim_id, description, root_cause, frequency, status
275 275  **Purpose**: Capture errors to trigger system improvements
276 276  **Usage**:
... ... @@ -282,10 +282,10 @@
282 282  
283 283  == 1.4 Core Data Model ERD ==
284 284  
285 -{{include reference="FactHarbor.Specification.Diagrams.Core Data Model ERD.WebHome"/}}
309 +{{include reference="Test.FactHarbor.Specification.Diagrams.Core Data Model ERD.WebHome"/}}
286 286  
287 287  == 1.5 User Class Diagram ==
288 -{{include reference="FactHarbor.Specification.Diagrams.User Class Diagram.WebHome"/}}
312 +{{include reference="Test.FactHarbor.Specification.Diagrams.User Class Diagram.WebHome"/}}
289 289  == 2. Versioning Strategy ==
290 290  **All Content Entities Are Versioned**:
291 291  * **Claim**: Every edit creates new version (V1→V2→V3...)
... ... @@ -548,6 +548,6 @@
548 548  * Source names (autocomplete)
549 549  Synchronized from PostgreSQL via change data capture or periodic sync.
550 550  == 4. Related Pages ==
551 -* [[Architecture>>FactHarbor.Specification.Architecture.WebHome]]
552 -* [[Requirements>>FactHarbor.Specification.Requirements.WebHome]]
553 -* [[Workflows>>FactHarbor.Specification.Workflows.WebHome]]
575 +* [[Architecture>>Test.FactHarbor.Specification.Architecture.WebHome]]
576 +* [[Requirements>>Test.FactHarbor.Specification.Requirements.WebHome]]
577 +* [[Workflows>>Test.FactHarbor.Specification.Workflows.WebHome]]