Obelus is a browser-only writing tool. A model may mark the prose and judge a rewrite; it may never write into the document. The repository is deliberately small: one writing surface, one findings rail, one optional Judge, a Library and a Settings page.
- It marks; it never holds the pen. The findings schema has no rewrite field, and the UI has no
apply, accept or insert control for model-derived text. The writer's keyboard is the only way
words enter a document.
scripts/gates/affordances.mjsis a build gate;src/useDocument.tsand thesendseam are the behavioural boundary. - No praise. Prompts forbid it, a client-side linter catches it, and praise is shown struck through. Do not hide it.
- Every request leaves from the writer's browser to the provider the writer configured. Never add
a Worker route that calls a provider, including to work around Ollama's browser block.
worker/is assets and security headers only;scripts/gates/worker.mjsenforces it. - Local-first. Documents, revisions, findings, passes, connections and settings live in IndexedDB. No account, sync or telemetry.
- One seam.
send(ModelRequest) -> Promise<string>insrc/wire/transport.tsis the only test seam.critiqueandjudgeare the entry points above it. Tests assert external behaviour through those entry points; there is no DOM test layer.
docs/spec.md— the current requirement. It is short; read all of it.docs/decisions.md— the load-bearing decisions and the superseded ones.CONTEXT.mdandDESIGN.mdare archived indocs/archive/; usedocs/spec.mdfor the current shape.docs/ollama.mdfor local Ollama setup.CHANGELOG.md— add a line under## [Unreleased]for anything a writer would notice.
pnpm run dev # Vite
pnpm test # full suite, including the constitution harness
pnpm run typecheck # tsc -b
pnpm run gates # affordances, palette, Worker
pnpm run harness # the constitution harness alone
pnpm run build # gates + typecheck + ViteRun the constitution harness before changing any pass prompt. It checks that output parses, praise is flagged, no rewrite survives, and findings stay inside their target.
The schema is Dexie version 8 and this release adds no migration. Tables for removed features
(readerAccounts, auditAccounts, runResponses) remain in the schema but are not read or written.
A document's tags and status fields remain in storage without UI. Do not drop a store or field
without a forward-only migration, one per deploy, never in the same deploy as the behaviour change.
On load, only passes in the Starter pack are used; a stored pass outside it is ignored. If you change
the pack, update src/core/starterPasses.ts and the harness together, and keep the load path's filter
so an old row cannot keep running or lock the writer out.
- New behaviour has a test through the seam; a prompt change has a harness run.
- No affordance was added that inserts model-derived text.
pnpm test,pnpm run typecheck,pnpm run gatesandpnpm run buildpass.- A writer-visible change has its
CHANGELOG.mdline. - Names match
docs/decisions.mdand the current spec. "Pass" is internal; the UI says Rules and Review.