Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
424 commits
Select commit Hold shift + click to select a range
3599374
docs(phase-95): evolve PROJECT.md after phase completion
sickerine Apr 15, 2026
c23bc77
docs(96): capture phase context
sickerine Apr 15, 2026
886ce00
docs(state): record phase 96 context session
sickerine Apr 15, 2026
050116e
docs(96): research phase domain
sickerine Apr 15, 2026
9580a0a
docs(96): add research and validation strategy
sickerine Apr 15, 2026
70d476e
docs(96): add pattern mapping
sickerine Apr 15, 2026
cbdb240
docs(96): create phase plan — eval loop and quality sampling
sickerine Apr 15, 2026
fefc7da
docs(96): add phase plans and update state
sickerine Apr 15, 2026
a7693f7
feat(96-02): add qualityChecks table and reviewStatus validator
sickerine Apr 15, 2026
2e9a47b
feat(96-01): install eval dependencies and create 20-case golden set
sickerine Apr 15, 2026
64cb2b2
feat(96-02): add quality sampling action and hourly cron
sickerine Apr 15, 2026
7b64925
feat(96-02): add quality trend query, review queue, and review status…
sickerine Apr 15, 2026
d543da6
feat(96-01): create eval test runner with Factuality and citation sco…
sickerine Apr 15, 2026
45b6664
feat(96-01): create CI eval workflow with extraction path filter
sickerine Apr 15, 2026
f8d6549
docs(96-02): complete quality sampling backend plan
sickerine Apr 15, 2026
bc3ce84
docs(96-01): complete golden set + eval runner + CI workflow plan
sickerine Apr 15, 2026
7c2a896
docs(97): capture phase context
sickerine Apr 15, 2026
4b953e9
docs(state): record phase 97 context session
sickerine Apr 15, 2026
b28c99f
docs(97): UI design contract
sickerine Apr 15, 2026
300e7d4
docs(97): fix copywriting block and add focal point narrative
sickerine Apr 15, 2026
fd94d74
docs(97): research extraction UI polish phase domain
sickerine Apr 15, 2026
a013641
docs(97): add validation strategy
sickerine Apr 15, 2026
67aa4f8
docs(97): create phase plan
sickerine Apr 15, 2026
64a50f4
fix(97): revise plans based on checker feedback
sickerine Apr 15, 2026
ef09653
feat(97-01): seed extraction i18n keys in all 6 locale files
sickerine Apr 15, 2026
2c8002b
feat(97-01): add getExtractionResults and getExtractionResultsForExpo…
sickerine Apr 15, 2026
5874a1f
feat(97-01): create extraction export module with CSV/JSON/XLSX funct…
sickerine Apr 15, 2026
5ca7ff8
docs(97-01): complete data foundation plan summary
sickerine Apr 15, 2026
fea6888
docs(phase-97): update tracking after wave 1
sickerine Apr 15, 2026
68d2934
feat(97-03): create StatusBadge and PaperResultCard components
sickerine Apr 15, 2026
ead68a3
feat(97-03): create results route page and error boundaries
sickerine Apr 15, 2026
485238e
docs(97-03): complete results page and paper cards plan
sickerine Apr 15, 2026
89c5e26
feat(97-02): create QuestionBuilder and TierSelector sub-components
sickerine Apr 15, 2026
2d855cf
feat(97-02): create ExtractionDialog with full job creation flow
sickerine Apr 15, 2026
4815944
docs(97-02): complete extraction dialog and job creation plan
sickerine Apr 15, 2026
238171d
docs(phase-97): update tracking after wave 2
sickerine Apr 15, 2026
1ed15b1
feat(97-04): create ExtractionJobHistory and ExtractionJobsDialog com…
sickerine Apr 15, 2026
ee668b8
feat(97-04): wire sidebar integration and extraction list page
sickerine Apr 15, 2026
6ffc5f7
docs(97-04): complete sidebar integration and job history plan
sickerine Apr 15, 2026
30c872f
docs(phase-97): update tracking after wave 3
sickerine Apr 15, 2026
037dff2
docs(97-05): complete verification plan summary
sickerine Apr 15, 2026
894c841
docs(phase-97): mark phase complete in STATE.md and ROADMAP.md
sickerine Apr 15, 2026
82168c4
docs(v6.0): milestone audit — 53/63 requirements satisfied, 3 unsatis…
sickerine Apr 15, 2026
3e22b41
chore: archive v6.0 milestone files
sickerine Apr 15, 2026
3313d06
chore: remove REQUIREMENTS.md and archive v6.0 phase directories
sickerine Apr 15, 2026
bdde32d
fix(extraction): resolve convex dev typecheck failures from v6.0 mile…
sickerine Apr 15, 2026
f5f452c
docs(quick-14): summary + STATE.md entry for convex typecheck fix
sickerine Apr 15, 2026
9826a78
docs: start milestone v7.0 Extraction Workbench
sickerine Apr 15, 2026
a5d7331
docs: research for v7.0 Extraction Workbench (STACK+FEATURES+ARCH+PIT…
sickerine Apr 15, 2026
5d80984
docs: synthesize v7.0 research into SUMMARY.md
sickerine Apr 15, 2026
4d18a5d
docs: define milestone v7.0 requirements (42 reqs, 6 categories)
sickerine Apr 15, 2026
0ff9593
docs: create milestone v7.0 roadmap (8 phases, 42 reqs)
sickerine Apr 15, 2026
0ed27a1
docs(98): capture phase context
sickerine Apr 15, 2026
d091857
docs(state): record phase 98 context session
sickerine Apr 15, 2026
47a6d3e
docs(98): research phase domain
sickerine Apr 15, 2026
e63f721
docs(98): create phase plan — 2 plans, 2 waves
sickerine Apr 15, 2026
34531b3
docs(98): add validation strategy, patterns map, and update state
sickerine Apr 15, 2026
4c4a4e3
docs(98): capture phase context
sickerine Apr 15, 2026
0520ebf
docs(state): record phase 98 context session
sickerine Apr 15, 2026
c85b5da
feat(98-01): restructure queryBounds.ts with per-tier limit map
sickerine Apr 15, 2026
63ae4ec
feat(98-01): add extraction limit helper and reactive query
sickerine Apr 15, 2026
e6a6ba3
docs(98-01): complete per-tier limit constants plan
sickerine Apr 15, 2026
f1313d6
feat(98-02): rewire extraction call sites to per-user limits and dedi…
sickerine Apr 15, 2026
27f9389
test(98-02): add 1000-paper payload size benchmark for GAP-04
sickerine Apr 15, 2026
273c7bd
docs(98-02): complete call-site rewiring and payload benchmark plan
sickerine Apr 15, 2026
7ae6e09
docs(state): mark phase 98 complete, update velocity and resolve benc…
sickerine Apr 15, 2026
7bf792b
docs(99): capture phase context
sickerine Apr 15, 2026
ebb7f32
docs(state): record phase 99 context session
sickerine Apr 15, 2026
944b602
docs(99): UI design contract
sickerine Apr 15, 2026
56a1c1b
docs(99): UI design contract
sickerine Apr 15, 2026
a086c25
docs(99): research phase domain
sickerine Apr 15, 2026
b19d033
docs(phase-99): add validation strategy
sickerine Apr 15, 2026
28925e9
docs(99): create phase plan — selection basket core
sickerine Apr 15, 2026
c8d631e
feat(99-01): normalizeOpenAlexId utility with 15 unit tests
sickerine Apr 15, 2026
31dc623
feat(99-01): Zustand basket store with sessionStorage persistence and…
sickerine Apr 15, 2026
eae3f83
feat(99-01): useAddToBasket public hook API
sickerine Apr 15, 2026
66954d9
fix(99-01): narrow PersistStorage.getItem return type in store test
sickerine Apr 15, 2026
f56084b
docs(99-01): complete selection basket core plan
sickerine Apr 15, 2026
6325a7d
docs(phase-99): update tracking after wave 1
sickerine Apr 15, 2026
f67d656
feat(99-02): basket sub-components (paper row, source section, empty …
sickerine Apr 15, 2026
25363b7
feat(99-02): ExtractionBasketDrawer shell + i18n keys in all 6 locales
sickerine Apr 15, 2026
894cd34
docs(99-02): complete extraction basket drawer UI plan
sickerine Apr 15, 2026
a29e63d
docs(phase-99): update tracking after wave 2
sickerine Apr 15, 2026
1e5eaae
docs(99): add code review report
sickerine Apr 15, 2026
4afe936
test(99): phase verification — human_needed (auto-approved)
sickerine Apr 15, 2026
beeb488
docs(phase-99): complete phase execution
sickerine Apr 15, 2026
3782e5f
docs(phase-99): evolve PROJECT.md after phase completion
sickerine Apr 15, 2026
4b7065d
docs(100): capture phase context
sickerine Apr 15, 2026
9a53f37
docs(state): record phase 100 context session
sickerine Apr 15, 2026
e939fbd
docs(100): UI design contract
sickerine Apr 15, 2026
b94025e
docs(100): research phase domain
sickerine Apr 15, 2026
c8ca081
docs(phase-100): add validation strategy
sickerine Apr 15, 2026
f98667b
docs(100): capture phase context
sickerine Apr 16, 2026
0c9b6ea
docs(state): record phase 100 context session
sickerine Apr 16, 2026
f5b51a8
docs(100): create phase plan
sickerine Apr 16, 2026
96201c6
fix(100): Plan 02 depends_on 01, wave 1 -> 2
sickerine Apr 16, 2026
3ac0317
docs(state): record phase 100 planning complete (3 plans, 2 waves)
sickerine Apr 16, 2026
154e9c6
feat(100-03): add resolveManualIds and resolveByDoi OpenAlex actions
sickerine Apr 16, 2026
e5bcd5f
feat(100-01): thread tier selection through extraction pipeline
sickerine Apr 16, 2026
c9c1726
docs(100-03): complete OpenAlex resolve actions plan
sickerine Apr 16, 2026
a77374c
test(100-01): add TIER-03 unit tests for cascade filtering
sickerine Apr 16, 2026
422d739
docs(100-01): complete thread-tier-through-extraction plan
sickerine Apr 16, 2026
1860ab1
feat(100-02): extend error code, toast resolver, and i18n for extract…
sickerine Apr 16, 2026
d6c1c01
feat(100-02): migrate ExtractionDialog error handling and wire tier +…
sickerine Apr 16, 2026
2ff0278
docs(100-02): complete error system wiring and dialog migration plan
sickerine Apr 16, 2026
e40ab24
docs(phase-100): update tracking after wave 2
sickerine Apr 16, 2026
aef5260
docs(100): add code review report
sickerine Apr 16, 2026
948f39a
docs(phase-100): complete phase execution
sickerine Apr 16, 2026
21dd109
docs(phase-100): evolve PROJECT.md after phase completion
sickerine Apr 16, 2026
3154d7d
docs(101): capture phase context
sickerine Apr 16, 2026
1f15733
docs(state): record phase 101 context session
sickerine Apr 16, 2026
d5e7390
docs(101): research phase domain
sickerine Apr 16, 2026
e08bb3d
docs(101): UI design contract
sickerine Apr 16, 2026
27c2ce0
docs(101): fix typography weight blocker and copywriting action path
sickerine Apr 16, 2026
913eb09
docs(phase-101): add validation strategy
sickerine Apr 16, 2026
439bc7c
docs(101): research, patterns, and UI-SPEC artifacts
sickerine Apr 16, 2026
7b45d48
docs(101): create phase plan — 3 plans in 2 waves
sickerine Apr 16, 2026
9e449c7
test(101-01): add failing tests for extraction-results-view store
sickerine Apr 16, 2026
1255c45
feat(101-01): implement extraction-results-view Zustand store
sickerine Apr 16, 2026
2f0d00f
feat(101-02): install TanStack React Table and seed workbench i18n keys
sickerine Apr 16, 2026
2bea706
test(101-01): add failing tests for workbench column definitions
sickerine Apr 16, 2026
74d5873
feat(101-01): implement workbench column definitions factory
sickerine Apr 16, 2026
efcdd6d
feat(101-02): create WorkbenchDataTable renderer component
sickerine Apr 16, 2026
a1b93c3
docs(101-01): complete workbench primitives plan
sickerine Apr 16, 2026
1bceb74
docs(101-02): complete TanStack Table + DataTable renderer + i18n plan
sickerine Apr 16, 2026
a9e34d4
chore: merge executor worktree (worktree-agent-a27b2a7a)
sickerine Apr 16, 2026
0fc413f
docs(recovery): restore 101-02-SUMMARY.md after worktree merge
sickerine Apr 16, 2026
dcc2d6a
docs(phase-101): update tracking after wave 1
sickerine Apr 16, 2026
f42c8cd
feat(101-03): ViewSwitcher and ColumnVisibilityToggle components
sickerine Apr 16, 2026
685081b
feat(101-03): WorkbenchToolbar with FilterSection-wrapped filter groups
sickerine Apr 16, 2026
99a70d6
feat(101-03): WorkbenchShell owns single useReactTable instance
sickerine Apr 16, 2026
1dc18b2
docs(101-03): complete workbench shell, toolbar, and view components …
sickerine Apr 16, 2026
9f18f9f
docs(phase-101): update tracking after wave 2
sickerine Apr 16, 2026
b5a4f94
docs(101): add code review report
sickerine Apr 16, 2026
49d7eed
test(101): persist human verification items as UAT
sickerine Apr 16, 2026
445f794
docs(phase-101): complete phase execution
sickerine Apr 16, 2026
ca8f750
docs(phase-101): evolve PROJECT.md after phase completion
sickerine Apr 16, 2026
0c6f4f2
docs(102): capture phase context
sickerine Apr 16, 2026
bc4cf45
docs(state): record phase 102 context session
sickerine Apr 16, 2026
d47668d
docs(102): research phase domain — entry points & counter UX
sickerine Apr 16, 2026
5d97f1e
docs(phase-102): add validation strategy
sickerine Apr 16, 2026
eda2262
docs(102): UI design contract for entry points & counter UX
sickerine Apr 16, 2026
a22a2e5
docs(102): reduce typography weights to 2 in UI design contract
sickerine Apr 16, 2026
22d0e35
docs(102): create phase plan
sickerine Apr 16, 2026
5391624
feat(102-01): seed i18n keys for extraction counter and add button
sickerine Apr 16, 2026
99a1b28
test(102-01): add failing tests for cap-aware basket truncation
sickerine Apr 16, 2026
42e3465
feat(102-01): cap-aware addToBasket with batch truncation
sickerine Apr 16, 2026
1c3a7d3
feat(102-01): create ExtractionCounter component with 3-state progres…
sickerine Apr 16, 2026
bd0b60c
docs(102-01): complete i18n + cap-aware hook + counter plan
sickerine Apr 16, 2026
aa718d9
docs(phase-102): update tracking after wave 1
sickerine Apr 16, 2026
d58eb8e
feat(102-02): create AddToExtractionButton component
sickerine Apr 16, 2026
655b226
feat(102-02): wire sidebar badge and replace drawer header with Extra…
sickerine Apr 16, 2026
807d851
feat(102-02): mount AddToExtractionButton in library and all 3 card v…
sickerine Apr 16, 2026
d6cbf82
docs(102-02): complete AddToExtractionButton + mount points plan
sickerine Apr 16, 2026
85db8ac
docs(phase-102): update tracking after wave 2
sickerine Apr 16, 2026
21957a9
docs(102): add code review report
sickerine Apr 16, 2026
1d3c507
test(102): persist human verification items as UAT
sickerine Apr 16, 2026
42d41b0
docs(phase-102): complete phase execution
sickerine Apr 16, 2026
b8094a0
docs(phase-102): evolve PROJECT.md after phase completion
sickerine Apr 16, 2026
431bb72
docs(103): capture phase context
sickerine Apr 16, 2026
6d0215d
docs(state): record phase 103 context session
sickerine Apr 16, 2026
728fe2f
docs(103): research phase domain
sickerine Apr 16, 2026
e469491
docs(phase-103): add validation strategy
sickerine Apr 16, 2026
fba46ef
docs(103): UI design contract for Workbench Views + Selector Page
sickerine Apr 16, 2026
5eec54e
docs(103): revise UI design contract per checker feedback
sickerine Apr 16, 2026
d48f602
docs(103): create phase plan
sickerine Apr 16, 2026
b59dbca
docs(103): populate VALIDATION.md task map and resolve RESEARCH.md op…
sickerine Apr 16, 2026
db436b0
feat(103-01): i18n keys, Zustand store v2, GAP-02 useProtectedQuery f…
sickerine Apr 16, 2026
290e6d2
feat(103-01): add optional paperIds filter to export query (D-19)
sickerine Apr 16, 2026
192721a
feat(103-02): add selector page with tabs, sticky footer, and Extract…
sickerine Apr 16, 2026
c2bf0b6
docs(103-01): complete foundations plan summary
sickerine Apr 16, 2026
d2af5cb
feat(103-02): implement four source tab components for selector page
sickerine Apr 16, 2026
6268005
docs(103-02): complete selector page plan summary
sickerine Apr 16, 2026
9787c83
merge(103-02): integrate selector page plan from worktree
sickerine Apr 16, 2026
fef5396
docs(103): update tracking — mark plans 01+02 complete (2/5)
sickerine Apr 16, 2026
cb116df
feat(103-04): install @tanstack/react-virtual and create CardView com…
sickerine Apr 16, 2026
e44f3fb
feat(103-04): create SplitView, SplitViewRow, and EvidenceDrawer comp…
sickerine Apr 16, 2026
3daf834
docs(103-04): complete workbench view components plan
sickerine Apr 16, 2026
f23a31b
docs(state): record phase 103 context session
sickerine Apr 16, 2026
9bef499
feat(103-03): enhance WorkbenchShell with pagination, globalFilter, e…
sickerine Apr 16, 2026
7f56109
feat(103-03): add toolbar search input with layered debounce and expo…
sickerine Apr 16, 2026
21201f9
docs(103-03): complete workbench enhancements plan
sickerine Apr 16, 2026
46f0587
docs(phase-103): update tracking after wave 2
sickerine Apr 16, 2026
471acaf
feat(103-05): wire CardView, SplitView, EvidenceDrawer into Workbench…
sickerine Apr 16, 2026
9643fc6
feat(103-05): refactor extraction-results-client to use WorkbenchShell
sickerine Apr 16, 2026
2639268
docs(103-05): complete integration wiring plan
sickerine Apr 16, 2026
bcb2821
docs(phase-103): update tracking after wave 3
sickerine Apr 16, 2026
ae0a03a
docs(103): add code review report
sickerine Apr 16, 2026
7d9080a
docs(phase-103): add verification report
sickerine Apr 16, 2026
90820e3
docs(104): capture phase context
sickerine Apr 16, 2026
1daeadf
docs(state): record phase 104 context session
sickerine Apr 16, 2026
31f0fbe
docs(104): UI design contract
sickerine Apr 16, 2026
a6a2b5c
fix(104): replace gap-1.5 (6px) with gap-1 (4px) in UI-SPEC badge layout
sickerine Apr 16, 2026
e21fc46
docs(104): research phase domain
sickerine Apr 16, 2026
46d4ea4
docs(phase-104): add validation strategy
sickerine Apr 16, 2026
f6f5f76
docs(104): create phase plan — 3 plans in 2 waves
sickerine Apr 16, 2026
aa5a185
feat(104-01): env validation + purge action + purge test
sickerine Apr 16, 2026
4823244
feat(104-01): seed i18n keys for Zotero across all 6 locales
sickerine Apr 16, 2026
21c94cf
docs(104-01): complete foundation plan summary
sickerine Apr 16, 2026
dd146b1
docs(104): refresh phase context (auto-update)
sickerine Apr 16, 2026
323c6cf
docs(state): record phase 104 context session
sickerine Apr 16, 2026
6827e68
docs(104): replan phases 02+03 with deploy gate and deep-work spec
sickerine Apr 16, 2026
fe2d2c2
fix(104-03): correct wave assignment from 2 to 3 (depends on 104-02)
sickerine Apr 16, 2026
720b5c6
fix(104-02): add explicit return type to purgeStaleZoteroState handler
sickerine Apr 16, 2026
bc09997
feat(104-02): create ZoteroConnectionCard component
sickerine Apr 16, 2026
93519e6
feat(104-02): mount ZoteroConnectionCard and OAuth param handler on C…
sickerine Apr 16, 2026
dd84aba
docs(104-02): complete ZoteroConnectionCard plan summary
sickerine Apr 16, 2026
9095e64
docs(phase-104): update tracking after wave 2
sickerine Apr 16, 2026
d337f69
feat(104-03): create ZoteroItemRow with 5-state resolution state machine
sickerine Apr 16, 2026
6814599
feat(104-03): create ZoteroTab with collection picker, pagination, DO…
sickerine Apr 16, 2026
53fb32f
feat(104-03): enable Zotero tab in selector page
sickerine Apr 16, 2026
5727363
docs(104-03): complete ZoteroTab + ZoteroItemRow plan summary
sickerine Apr 16, 2026
ae7de63
docs(phase-104): update tracking after wave 3
sickerine Apr 16, 2026
14b8c3e
docs(104): add code review report
sickerine Apr 16, 2026
fcf1133
test(104): add phase verification report
sickerine Apr 16, 2026
6b757a7
test(104): persist human verification items as UAT
sickerine Apr 16, 2026
39efb4d
docs(phase-104): complete phase execution
sickerine Apr 16, 2026
805e5d9
docs(phase-104): evolve PROJECT.md after phase completion
sickerine Apr 16, 2026
8b5c33f
docs(105): capture phase context
sickerine Apr 16, 2026
84d6533
docs(state): record phase 105 context session
sickerine Apr 16, 2026
5e33459
docs(105): research phase domain
sickerine Apr 16, 2026
51e76e0
docs(phase-105): add validation strategy
sickerine Apr 16, 2026
1fc38d3
docs(105): resolve research open questions and reconcile validation map
sickerine Apr 16, 2026
cfe6a13
plan(105): add 3 plans covering GAP-03 + SC-1..SC-5
sickerine Apr 16, 2026
b38c6ae
docs(state): record phase 105 planning complete (3 plans)
sickerine Apr 16, 2026
7000fde
docs(phase-105): mark phase start in STATE
sickerine Apr 16, 2026
086a6a5
feat(105-02): wire global reduced-motion support
sickerine Apr 16, 2026
3329822
feat(i18n): add mobileViewFallbackToast key to all 6 locales (105-02 …
sickerine Apr 16, 2026
c7c04a4
feat(extraction): switch to mobileViewFallbackToast + hide card/split…
sickerine Apr 16, 2026
02a5434
docs(state): confirm phase 105 context in auto re-run
sickerine Apr 16, 2026
c9f0f81
chore(i18n): remove orphan splitMobileToast key from all 6 locales (1…
sickerine Apr 16, 2026
42bf874
feat(extraction): 44px touch-target audit + mobile toolbar stack + ba…
sickerine Apr 16, 2026
d9362eb
docs(105-02): complete mobile-polish + reduced-motion plan
sickerine Apr 16, 2026
c7c3d49
chore(105-01): bootstrap ESLint 9 flat config with GAP-03 no-restrict…
sickerine Apr 16, 2026
08e1515
test(105-01): structural test protecting GAP-03 no-restricted-syntax …
sickerine Apr 16, 2026
a392c8e
docs(105-01): complete ESLint bootstrap + GAP-03 rule plan
sickerine Apr 16, 2026
ebfebe0
fix(extraction): resolve GAP-03 violations surfaced by 105-01 lint rule
sickerine Apr 16, 2026
2fedcae
docs(state): re-confirm phase 105 context (auto --no-transition)
sickerine Apr 16, 2026
b592a8e
test(105-03): i18n key parity test + remove en-GB drift (reportBuilde…
sickerine Apr 16, 2026
f9ae103
feat(105-03): dev-guarded Convex seed action + companion mutation (sp…
sickerine Apr 16, 2026
96a89a0
test(105-03): full v7.0 workbench E2E spec + sign-in helper + Zotero …
sickerine Apr 16, 2026
6845058
docs(105-03): complete polish-integration-e2e plan
sickerine Apr 16, 2026
4481d4e
docs(phase-105): update tracking after wave 2
sickerine Apr 16, 2026
d4997ca
docs(105): add code review report
sickerine Apr 16, 2026
3d18663
test(105): persist human verification items as UAT
sickerine Apr 16, 2026
33e5d49
docs(phase-105): complete phase execution
sickerine Apr 16, 2026
8248ce9
docs(phase-105): evolve PROJECT.md after phase completion
sickerine Apr 16, 2026
d665a5c
chore: archive v7.0 milestone files
sickerine Apr 16, 2026
790f9a9
chore: remove REQUIREMENTS.md for v7.0 milestone
sickerine Apr 16, 2026
ce658de
feat: add roadmap and phase patterns for v7.0 Extraction Workbench
sickerine Apr 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
38 changes: 38 additions & 0 deletions .github/workflows/evals.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Evals

on:
pull_request:
paths:
- 'convex/extraction/**'
- 'lib/extraction/**'
- 'tests/evals/**'
- 'lib/ai/core/prompts.ts'

jobs:
eval-suite:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
RUN_EVALS: "1"
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
# autoevals Factuality scorer uses OpenAI-compatible API.
# Route through OpenRouter's OpenAI-compatible endpoint.
OPENAI_BASE_URL: "https://openrouter.ai/api/v1"
OPENAI_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
# Placeholder env vars required by transitive imports
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: pk_test_placeholder
CLERK_SECRET_KEY: sk_test_placeholder
NEXT_PUBLIC_CONVEX_URL: https://example.convex.cloud
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: Run eval suite
run: pnpm vitest run tests/evals/ --reporter=verbose
257 changes: 257 additions & 0 deletions .planning/.!20562!ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,257 @@
# Roadmap: OpenAlex Count

## Milestones

- ✅ **v1.0 Stripe Integration Audit** — Phases 1-3 (shipped 2026-02-27)
- ✅ **v1.1 Upgrade Flow** — Phases 4-6 (shipped 2026-02-27)
- ✅ **v1.2 E2E Billing Tests** — Phases 7-13 (shipped 2026-02-28)
- ✅ **v2.0 TDD & Test Coverage** — Phases 14-21 (shipped 2026-02-28)
- ✅ **v2.1 Library & Collections** — Phases 22-30 (shipped 2026-03-01)
- ✅ **v2.2 Library UI Overhaul** — Phases 31-34 (shipped 2026-03-02)
- ✅ **v2.3 Codebase Hardening** — Phases 35-42 (shipped 2026-03-02)
- ✅ **v2.4 Concerns Sweep** — Phases 43-46 (shipped 2026-03-03)
- ✅ **v2.5 Tech Debt Purge** — Phases 47-53 (shipped 2026-03-03)
- ✅ **v3.0 Zero-Any Overhaul** — Phases 54-59 (shipped 2026-03-04)
- ✅ **v3.1 Complete Type Safety** — Phases 60-71 (shipped 2026-03-05)
- ✅ **v3.2 Production Readiness** — Phases 72-74 (shipped 2026-03-06)
- ✅ **v4.0 Bulk Screening & Auto-Rating** — Phases 75-78 (shipped 2026-03-09)
- ✅ **v4.1 Screening Export** — Phases 79-82 (shipped 2026-03-09)
- ✅ **v5.0 Extraction Insights Overhaul** — Phases 83-87 (shipped 2026-03-10)
- ✅ **v6.0 Extraction MVP Rebuild** — Phases 88-97 (shipped 2026-04-15)
- 🚧 **v7.0 Extraction Workbench** — Phases 98-105 (in progress)

## Phases

<details>
<summary>✅ v1.0 Stripe Integration Audit (Phases 1-3) — SHIPPED 2026-02-27</summary>

- [x] Phase 1: Subscription Lifecycle Correctness (3/3 plans) — completed 2026-02-27
- [x] Phase 2: Credit System Correctness (2/2 plans) — completed 2026-02-27
- [x] Phase 3: Operational Hardening (2/2 plans) — completed 2026-02-27

Full details: `.planning/milestones/v1.0-ROADMAP.md`

</details>

<details>
<summary>✅ v1.1 Upgrade Flow (Phases 4-6) — SHIPPED 2026-02-27</summary>

- [x] Phase 4: Upgrade Correctness (2/2 plans) — completed 2026-02-27
- [x] Phase 5: Upgrade Resilience (2/2 plans) — completed 2026-02-27
- [x] Phase 6: UX Polish (2/2 plans) — completed 2026-02-27

Full details: `.planning/milestones/v1.1-ROADMAP.md`

</details>

<details>
<summary>✅ v1.2 E2E Billing Tests (Phases 7-13) — SHIPPED 2026-02-28</summary>

- [x] Phase 7: Test Infrastructure Foundation (3/3 plans) — completed 2026-02-28
- [x] Phase 8: Subscription and Upgrade Specs (2/2 plans) — completed 2026-02-28
- [x] Phase 9: Lifecycle and Credit Specs (2/2 plans) — completed 2026-02-28
- [x] Phase 10: Fix Credits Spec Auth Wiring (1/1 plan) — completed 2026-02-28
- [x] Phase 11: Tech Debt Cleanup (1/1 plan) — completed 2026-02-28
- [x] Phase 12: Billing E2E CI Wiring (1/1 plan) — completed 2026-02-28
- [x] Phase 13: CI Env Hardening & CRED-02 Regression (1/1 plan) — completed 2026-02-28

Full details: `.planning/milestones/v1.2-ROADMAP.md`

</details>

<details>
<summary>✅ v2.0 TDD & Test Coverage (Phases 14-21) — SHIPPED 2026-02-28</summary>

Full details: `.planning/milestones/v2.0-ROADMAP.md`

</details>

<details>
<summary>✅ v2.1 Library & Collections (Phases 22-30) — SHIPPED 2026-03-01</summary>

Full details: `.planning/milestones/v2.1-ROADMAP.md`

</details>

<details>
<summary>✅ v2.2 Library UI Overhaul (Phases 31-34) — SHIPPED 2026-03-02</summary>

Full details: `.planning/milestones/v2.2-ROADMAP.md`

</details>

<details>
<summary>✅ v2.3 Codebase Hardening (Phases 35-42) — SHIPPED 2026-03-02</summary>

Full details: `.planning/milestones/v2.3-ROADMAP.md`

</details>

<details>
<summary>✅ v2.4 Concerns Sweep (Phases 43-46) — SHIPPED 2026-03-03</summary>

Full details: `.planning/milestones/v2.4-ROADMAP.md`

</details>

<details>
<summary>✅ v2.5 Tech Debt Purge (Phases 47-53) — SHIPPED 2026-03-03</summary>

Full details: `.planning/milestones/v2.5-ROADMAP.md`

</details>

<details>
<summary>✅ v3.0 Zero-Any Overhaul (Phases 54-59) — SHIPPED 2026-03-04</summary>

Full details: `.planning/milestones/v3.0-ROADMAP.md`

</details>

<details>
<summary>✅ v3.1 Complete Type Safety (Phases 60-71) — SHIPPED 2026-03-05</summary>

Full details: `.planning/milestones/v3.1-ROADMAP.md`

</details>

<details>
<summary>✅ v3.2 Production Readiness (Phases 72-74) — SHIPPED 2026-03-06</summary>

- [x] Phase 72: Debug Endpoint Hardening (1/1 plan) — completed 2026-03-06
- [x] Phase 73: O(1) Library Count (1/1 plan) — completed 2026-03-06
- [x] Phase 74: Bounded Queries Sweep (2/2 plans) — completed 2026-03-06

Full details: `.planning/milestones/v3.2-ROADMAP.md`

</details>

<details>
<summary>✅ v4.0 Bulk Screening & Auto-Rating (Phases 75-78) — SHIPPED 2026-03-09</summary>

Full details: `.planning/milestones/v4.0-ROADMAP.md`

</details>

<details>
<summary>✅ v4.1 Screening Export (Phases 79-82) — SHIPPED 2026-03-09</summary>

Full details: `.planning/milestones/v4.1-ROADMAP.md`

</details>

<details>
<summary>✅ v5.0 Extraction Insights Overhaul (Phases 83-87) — SHIPPED 2026-03-10</summary>

Full details: `.planning/milestones/v5.0-ROADMAP.md`

</details>

<details>
<summary>✅ v6.0 Extraction MVP Rebuild (Phases 88-97) — SHIPPED 2026-04-15</summary>

- [x] Phase 88: Scorched-Earth Teardown (4/4 plans) — completed 2026-04-14
- [x] Phase 89: Core Schema & Workflow Skeleton (2/2 plans) — completed 2026-04-15
- [x] Phase 90: Free-First Parsing Waterfall (3/3 plans) — completed 2026-04-15
- [x] Phase 91: Extraction Cascade Core (2/2 plans) — completed 2026-04-15
- [x] Phase 92: Deterministic Citation Grounding (2/2 plans) — completed 2026-04-15
- [x] Phase 93: Workflow Cancel, Retry, and Progress (3/3 plans) — completed 2026-04-15
- [x] Phase 94: Crash Prevention Sweep (2/2 plans) — completed 2026-04-15
- [x] Phase 95: Structured Observability & SLO Metrics (4/4 plans) — completed 2026-04-15
- [x] Phase 96: Eval Loop & Quality Sampling (2/2 plans) — completed 2026-04-15
- [x] Phase 97: Extraction UI Polish (5/5 plans) — completed 2026-04-15

Full details: `.planning/milestones/v6.0-ROADMAP.md`

</details>

### v7.0 Extraction Workbench (In Progress)

**Milestone Goal:** Restore the pre-v6.0 results workbench (4 views), build a unified cross-source paper selector with persistent basket, enforce a 1000-paper per-job hard limit (per-tier-ready), revive the orphaned Zotero OAuth flow, wire the orphaned TierSelector, and close the v6.0 integration gaps.

**Critical path:** `98 → 99 → 100 → 102 → 103 → 104 → 105`.
**Parallelizable:** Phase 101 runs independently against 99 and 100; they converge at 103.

- [x] **Phase 98: Pre-flight & Hard-Limit Foundation** — Bump `MAX_EXTRACTION_PAPERS_PER_JOB` 200→1000, split internal bound, benchmark 1k-paper payload, seed per-tier-ready limit shape (completed 2026-04-15)
Plans:
- [x] 98-01-PLAN.md — Constants + helper + reactive query (LIM-01, LIM-02, LIM-03)
- [x] 98-02-PLAN.md — Call-site rewiring + payload benchmark (LIM-01, GAP-04)
- [x] **Phase 99: Selection Basket Core** — Zustand store + `normalizeOpenAlexId` + `<ExtractionBasketDrawer>` + `useAddToBasket` hook (completed 2026-04-15)
Plans:
- [x] 99-01-PLAN.md — Normalize utility + basket store + useAddToBasket hook (SEL-07, SEL-08, SEL-09, SEL-10)
- [x] 99-02-PLAN.md — Drawer UI components + i18n keys (SEL-09, SEL-10)
- [x] **Phase 100: Backend Wiring + TierSelector Fix** — `convex/openalex/actions.ts` (resolveByDoi, resolveManualIds), extractionLimit helpers, 5-edit TierSelector wiring, server-side hard-reject (completed 2026-04-16)
Plans:
- [x] 100-01-PLAN.md — TierSelector threading: schema + mutation + workpool + cascade + tests (TIER-01, TIER-02, TIER-03)
- [x] 100-02-PLAN.md — Error system + ExtractionDialog wiring + i18n keys (LIM-07)
- [x] 100-03-PLAN.md — OpenAlex actions: resolveManualIds + resolveByDoi (SEL-05, ZOT-03)
- [ ] **Phase 101: Workbench Primitives** — `DataTable` wrapper, shared toolbar, filter toolbar, view switcher (TanStack Table v8.21.3 + re-added shadcn `<Table />`)
- [ ] **Phase 102: Entry Points & Counter UX** — `<AddToExtractionButton>` mounts, sidebar nav badge, "X / 1000" counter with cap-disabled checkboxes and bulk-paste drop toast
- [ ] **Phase 103: Workbench Views + Selector Page** — 4 views (table/card/split/highlight) + evidence drawer + `parsingSource` badge + `/extraction/new` + SelectorTabs (Library/Collections/Search/Manual) + ExtractionDialog wiring
- [ ] **Phase 104: Zotero Revival** — Settings card + `<ZoteroTab>` + lazy DOI resolution + env verification + `purgeStaleZoteroState`
- [ ] **Phase 105: Polish, Integration, E2E** — E2E Playwright, mobile responsive, reduced-motion, i18n audit, ESLint rule forbidding literal `1000`/`200` in extraction code

## Phase Details

### Phase 98: Pre-flight & Hard-Limit Foundation
**Goal**: Ship the per-tier-ready paper-limit constants and prove that a 1000-paper extraction job's reactive query stays under Convex's 8 MB result-size cap before the bump lands in production.
**Depends on**: Nothing (first v7.0 phase; builds on v6.0 `extractionJobs` + `extractionResults` schema)
**Requirements**: LIM-01, LIM-02, LIM-03, GAP-04
**Success Criteria** (what must be TRUE):
1. `convex/lib/queryBounds.ts` exports `MAX_EXTRACTION_PAPERS_PER_JOB = 1000` (separate from `MAX_EXTRACTION_RESULTS_QUERY`) with every call-site cascade repaired — LIM-01
2. `EXTRACTION_LIMITS_BY_TIER: Record<SubscriptionPlan, number>` exists with `free/go/pro/enterprise` all resolving to 1000, so v7.1 per-tier tuning requires editing one file only — LIM-02
3. `getExtractionLimitForUser(ctx)` helper and `getExtractionLimit` reactive query return the caller's per-job limit by routing through `resolveEffectivePlan` — LIM-03
4. A recorded benchmark run (1000 papers x 7 questions) confirms the `getExtractionResults` payload is <= 5 MB, or the query is migrated to paginated mode before any other v7.0 phase ships — GAP-04
**Plans**: 2 plans
- 98-01-PLAN.md — Constants + helper + reactive query (Wave 1)
- 98-02-PLAN.md — Call-site rewiring + payload benchmark (Wave 2)

**Research flag**: MEDIUM — benchmark outcome determines whether Phase 100 must also include pagination migration of `getExtractionResults`.
**Pitfalls mitigated**: PITFALL 1 (200→1000 cascade at 15 call sites with `MAX * 10` multipliers), PITFALL 6 (env-var drift — verify via `npx convex env list`).

### Phase 99: Selection Basket Core
**Goal**: A tab-scoped, dedupe-safe paper basket that survives in-app navigation and can be peeked from anywhere via a drawer — with zero backend dependency so it can ship in parallel with phases 100 and 101.
**Depends on**: Phase 98
**Requirements**: SEL-07, SEL-08, SEL-09, SEL-10
**Success Criteria** (what must be TRUE):
1. User adds papers in one tab of the app, navigates to a different page, and the basket count is still correct when they return (sessionStorage-backed Zustand store, cleared only on successful job creation) — SEL-07
2. User adds the same paper via `W123`, `https://openalex.org/W123`, and `openalex:W123` from three different sources and the basket shows exactly one entry — SEL-08 (via `normalizeOpenAlexId` utility)
3. User clicks the Extraction basket icon from any page and a shadcn `Sheet` drawer opens showing the global count, per-source breakdown, and a "Review & start extraction" CTA — SEL-09
4. User removes an individual paper from the basket drawer, and while browsing any source list in the app sees a visible "already in basket" indicator next to papers already staged — SEL-10
**Plans**: 2 plans
Plans:
- 99-01-PLAN.md — Normalize utility + basket store + useAddToBasket hook (Wave 1)
- 99-02-PLAN.md — Drawer UI components + i18n keys (Wave 2)

**Research flag**: LOW.
**Pitfalls mitigated**: PITFALL 3 (dedupe race on mixed-format OpenAlex IDs), PITFALL 5 (navigation loss on in-memory Zustand), PITFALL 7 (silent cap overflow — single source of truth is the basket store).
**UI hint**: yes

### Phase 100: Backend Wiring + TierSelector Fix
**Goal**: Ship all the Convex actions and server-side hard rejects that Phases 102, 103, and 104 will consume — including the 5-edit fix that finally threads `TierSelector` through `createExtractionJob` → workpool → `createCascadeTiers(tier)`.
**Depends on**: Phase 98
**Requirements**: SEL-05, LIM-07, TIER-01, TIER-02, TIER-03, ZOT-03
**Success Criteria** (what must be TRUE):
1. User pastes a list of OpenAlex IDs at the Manual tab and sees them resolved and added to the basket via `convex/openalex/actions.ts:resolveManualIds` — SEL-05
2. When a user attempts to submit an over-limit job (bypassing client-side UI), the `createExtractionJob` mutation hard-rejects with a typed `EXTRACTION_LIMIT_EXCEEDED` error routed to a localized toast via `lib/toast/error-resolver.ts` — LIM-07
3. User selects the "accurate" tier in the UI, creates an extraction job, and the job row persists `tier: "accurate"` — TIER-01
4. The workpool action reads `tier` from the job row and calls `createCascadeTiers(tier)` so `auto` runs all 3 tiers, `accurate` runs top tier only, and `cheap` runs bottom tier only — TIER-02
5. A unit test inspects the constructed OpenRouter request payload and asserts tier selection filters the 3-tier cascade as expected — TIER-03
6. When a user checks a Zotero item with a DOI, `convex/openalex/actions.ts:resolveByDoi` returns within 10 seconds and the resolved OpenAlex ID is attached to the basket entry — ZOT-03 (wired by Phase 104 UI)
**Plans**: 3 plans

**Research flag**: LOW — smallest feature in the milestone per research, ~5 edits, no migration. `tier` field is optional on `extractionJobs` (new rows only; legacy rows null-coalesce to `auto`).
**Closes v6.0 gap**: EXTR-01 (orphan TierSelector value).
**Anti-feature to NOT ship**: migration of existing v6.0 extraction jobs to the new `tier` field — new rows only.

### Phase 101: Workbench Primitives
**Goal**: Re-install the shadcn `<Table />` primitive and build the reusable headless primitives (`DataTable` wrapper, filter toolbar, view switcher) that Phase 103's 4-view workbench will consume — without ever importing the shadcn `data-table` block.
**Depends on**: Phase 98
**Requirements**: WB-01, WB-02, WB-03, WB-10
**Success Criteria** (what must be TRUE):
1. `components/ui/table.tsx` re-exists (re-added via `npx shadcn@latest add table`) and `@tanstack/react-table@^8.21.3` is installed with peer-deps verified against React 19 — WB-01 (primitive layer; full table view ships in Phase 103)
2. `useReactTable(...)` instance created in the workbench shell is shared across views, and column visibility toggles persist across job navigations via a Zustand store keyed `extraction-results-view` (using the existing `createSidebarStore` factory pattern) — WB-02
3. Sort and filter toolbar primitives exist and drive the table's `sorting`/`columnFilters` state (status, confidence, year, venue, answer value) without recomputing `useReactTable` options inline — WB-03
4. The v2.2 `FilterSection` primitive from library/search pages is reused (not re-implemented) as the outer chrome for all workbench filter toggles — WB-10
**Plans**: 3 plans
Plans:
Loading
Loading