Research software
Building Fieldnotes, a research workspace that keeps evidence traceable
A locally runnable research workspace for writing notes, revisiting exact quotations, and checking what an AI draft used as evidence.
Start in the library
I built Fieldnotes around a problem that comes up after saving a lot of reading. Finding an old note is only half the work. I also want to recover the passage that informed it and decide whether I still agree with what I wrote.
For this walkthrough I start in the library and choose Reliable software, a fictional collection about retries, worker leases, and safe publication. A collection keeps related reading and notes together. Tags let me find themes that cut across those groups. From there I can go to Search to find the source material behind a note.
Find the passage that matters
I search for “lease” in Words & phrases mode. The excerpt helps me recognize the note about idempotency and who may finish a job. I can narrow the search to Reliable software, then use “Open exact passage” on a matching source result to read the evidence in context.
Keyword retrieval, reading, and writing work without a model provider. In the built local configuration, Meaning and Hybrid visibly fall back to keyword search when embeddings are disabled. PostgreSQL holds the research records, and pgvector is available when embedding search is enabled.
Keep the source version behind a quotation
The exact-passage link matters most when a source changes. In the same collection, a fictional report recommends seven days of retention in its first revision and three in its second. The reader shown here is displaying revisions-v2.md. A note quoting the first revision still opens the seven-day passage.
Fieldnotes keeps the source identity stable while making source revisions and published extraction versions immutable. A citation identifies a passage in the specific published version that supplied its text. Replacement can change what new searches find while preserving the evidence older notes relied on.
Keep the quotation and the interpretation separate
I return to the note about idempotency and worker leases. The imported quotation reads “A worker can finish an operation.” The note works through the acknowledgement gap that occurs when a worker finishes an operation and crashes before acknowledging it. My interpretation is that an idempotency key identifies the logical action across retries, while a lease identifies who is currently allowed to finish the job.
In the editor, the Markdown note remains separate from the imported quotation and the commentary attached to it. That distinction makes it easier to change my interpretation and still see what the source said. Saves carry a revision precondition, so a tab working from an older revision cannot silently overwrite a newer save.
Record why the ideas connect
I connect this note to the one about rejecting stale work at publication. The relation is “This note extends.” Its explanation asks me to compare the evidence, assumptions, and limits in the two interpretations. Following that connection takes me from duplicate work after a crash to the question of who can publish after a lease expires.
That distinction matters in Fieldnotes itself. The SvelteKit and TypeScript frontend reaches FastAPI through a same-origin API boundary. FastAPI and the Python worker share the backend domain layer, and PostgreSQL stores durable job state. A worker claims a job with a lease and does the expensive work outside the claim transaction. Before making the result visible, it verifies that it still owns the lease and that the target revision is current.
This lets eligible work retry without letting a stale worker publish over a newer result. A source deletion removes it from view immediately and queues artifact cleanup. Pending work must respect that deletion when it reaches the publication step.
Open the citation and judge the draft
I end the walkthrough by asking what protects publication when a worker lease expires. Generating a draft through Groq is optional. It requires a personal API key and explicit consent to send the question and selected evidence to the provider.
The draft cites “A stale worker must not publish.” I open E1 and read the fictional example in which worker A resumes after its lease expires and a token-and-generation check rejects its publication. That passage gives me something to inspect when I judge the draft. A valid citation tells me which evidence was used. I still have to decide whether the passage supports the claim.
What runs locally today
Fieldnotes is an independent, locally runnable application. It imports Markdown, UTF-8 text, and text-based PDFs. Scanned PDFs need OCR before import. Answer quality remains experimental, and public hosting and production backup and restore qualification are open.
Technology
SvelteKit · TypeScript · FastAPI · Python · PostgreSQL · pgvector