File size: 2,085 Bytes
bb240a6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Implementation Specs

> Last updated: 2025-12-03
>
> **Note:** Implemented specs archived to `docs/specs/archive/`

---

## Active Specs (Not Yet Implemented)

### SPEC_13: Evidence Deduplication

**File:** `SPEC_13_EVIDENCE_DEDUPLICATION.md`
**Status:** Draft - Ready for Implementation
**Priority:** P1
**GitHub Issue:** #94

**Problem:** Same paper appears 2-3 times because Europe PMC and OpenAlex both index PubMed.

**Solution:** Extract PMID from OpenAlex metadata, deduplicate by paper ID in SearchHandler.

---

### SPEC_14: ClinicalTrials Outcomes

**File:** `SPEC_14_CLINICALTRIALS_OUTCOMES.md`
**Status:** Draft - Ready for Implementation
**Priority:** P1
**GitHub Issue:** #95

**Problem:** ClinicalTrials tool misses critical efficacy data (primary outcomes, results availability).

**Solution:** Add `OutcomesModule` and `HasResults` to API fields, extract outcome measures.

---

## Implemented Specs (Archived)

All implemented specs are in `docs/specs/archive/`. Summary:

| Spec | Description | PR/Commit |
|------|-------------|-----------|
| SPEC_01 | Demo Termination | Archived |
| SPEC_02 | E2E Testing | Archived |
| SPEC_03 | OpenAlex Integration | Archived |
| SPEC_04 | Magentic UX | Archived |
| SPEC_05 | Orchestrator Cleanup | Archived |
| SPEC_06 | Simple Mode Synthesis | Archived (deleted simple.py) |
| SPEC_07 | LangGraph Memory Arch | Archived |
| SPEC_08 | Integrate Memory Layer | Archived |
| SPEC_09 | LlamaIndex Integration | Archived |
| SPEC_10 | Domain Agnostic Refactor | Archived |
| SPEC_11 | Sexual Health Focus | Archived |
| SPEC_12 | Narrative Synthesis | Archived |
| **SPEC_15** | Advanced Mode Performance | PR #65 - max_rounds=5, early termination |
| **SPEC_16** | Unified Chat Client Architecture | PR #115 - HuggingFace + OpenAI factory |
| **SPEC_17** | Accumulator Pattern | PR #117 - Fixes repr bug |

---

## How to Write a Spec

1. Create `docs/specs/SPEC_{N}_{NAME}.md`
2. Include: Problem, Solution, Test Plan, Acceptance Criteria
3. Link to GitHub issue
4. Update this README
5. When implemented, move to `archive/`