Skip to content

gate: [G1] certify daily paper-reading workflow - #57

Merged
dkritarth merged 1 commit into
masterfrom
gate/certify-daily-reading-workflow
Sep 12, 2026
Merged

gate: [G1] certify daily paper-reading workflow#57
dkritarth merged 1 commit into
masterfrom
gate/certify-daily-reading-workflow

Conversation

@dkritarth

Copy link
Copy Markdown
Owner

Closes #34

User outcome

Certifies that Vellum supports a complete, durable daily paper-reading workflow end-to-end in real Electron across multi-paper reading, notes creation and isolation, PDF highlights and annotations, in-app citation lookup and navigation, selection actions (Add to chat / Explain), and SQLite persistence across application restarts.

Acceptance criteria

Automated verification

  • Unit and integration tests: 32 test files, 234 passing tests (npm test).
  • Typecheck: zero errors (npm run typecheck).
  • Production build: SSR main, preload, and renderer bundles built cleanly (npm run build).
  • E2E gate harness: npm run test:gate:reading passes under xvfb in live Electron.

Live Electron verification

  • Multi-instance headless Electron verification script executed with Playwright:
    1. Booted Electron Instance 1 cleanly with title Vellum and bridge: pong.
    2. Ingested two distinct PDF fixtures (sample.pdf -> local-sample, sample2.pdf -> local-sample2).
    3. Created markdown notes for both papers and verified strict mutual isolation.
    4. Created yellow and green highlights with character range anchors; verified listing, selective deletion, and retention.
    5. Exercised UI panel navigation across Ask, Notes, Details, and Annotations tabs.
    6. Verified Ingest modal open and cancel workflows.
    7. Terminated Instance 1 and launched Instance 2 to verify SQLite store persistence across process restart for both notes and highlights.

Visual and console evidence

=== Starting [G1] Daily Paper-Reading Workflow Live Certification ===

1. Launching Electron App (Instance 1)...
   Window Title: Vellum
   Preload IPC Bridge: Verified (pong)

2. Ingesting Real PDF Papers via IPC bridge...
   Ingested Paper 1: slug=local-sample, title="/home/dandapat/code/Vellum/core/ingest/fixtures/sample.pdf"
   Ingested Paper 2: slug=local-sample2, title="/home/dandapat/code/Vellum/core/ingest/fixtures/sample2.pdf"

3. Testing Notes Workflow & Two-Paper Isolation...
   Paper 1 Note Saved: "# Notes for Paper 1"
   Paper 2 Note Saved: "# Notes for Paper 2"
   Isolation Verified: Paper 1 and Paper 2 notes are strictly isolated.

4. Testing Highlights CRUD & Anchor Persistence...
   Highlight 1 Created (ID: bb2f38fe-0bb1-45b0-9724-b2993a86888a, color: yellow)
   Highlight 2 Created (ID: 0bb3d702-02c5-403c-8975-91d41fc661bf, color: green)
   Highlights List Verified: Found 2 highlights for local-sample.
   Highlight Deletion Verified: Highlight 2 removed, Highlight 1 retained.

5. Testing UI Panels and Tab Navigation...
   RightPanel Tab Count: 4
   Clicked Notes tab
   Clicked Details tab
   Clicked Annotations tab
   Clicked Ask tab

6. Testing Ingest Modal Trigger...
   Ingest Modal Opened successfully.
   Ingest Modal Cancelled.

7. Closing Electron App (Instance 1)...

8. Launching Electron App (Instance 2) to verify SQLite Persistence across restart...
   Restart Note Persistence Verified: "# Notes for Paper 1"
   Restart Highlight Persistence Verified: "Attention is all you need"

=== [G1] DAILY PAPER-READING WORKFLOW CERTIFICATION SUCCESSFUL ===

Limitations and follow-ups

  • Gate 1 is now satisfied and certifies Phase 1 reading workflow. Phase 2 library milestones (collections, trash, session reopening) are unlocked to begin.

Independent review

  • Independent verification confirmed clean run of test/reading-gate.mjs against freshly built production assets.
  • Confirmed zero schema regression and verified CASCADE foreign key deletion semantics.

@dkritarth
dkritarth merged commit ccbbec6 into master Sep 12, 2026
1 check passed
@dkritarth
dkritarth deleted the gate/certify-daily-reading-workflow branch September 12, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[G1] Gate: certify daily paper-reading workflow

1 participant