Repository navigation
Conversation
internal/markdown gets Parse and Doc as docs/specs/markdown.md's output table defines them, goldmark v1.8.6 with GFM, footnotes and an empty Obsidian extension, and a fixture reader for the spec's F fixtures. 0001_init.sql gains the index tables and notes_fts. schema/rpc/note.yaml adds the note domain and vault.yaml the scan status and reindex; the engine answers each new method unavailable until Phase 4. Co-Authored-By: Claude Opus 5.5 <[email protected]>
files.go, index.go, search.go, queries.go and versions.go hold the store API that batch 2's cards implement, each with its doc comment and a body that fails until its card lands. tags gains an ord column to keep a note's tag order. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Twelve cards for Phase 5, each checked in order against a reference on top of the batch-1 cards with make verify green, the references then deleted: realistic vaults and the vaultgen command; the three parser cards (T-0002's 35 cases move into T-0011's given test, over Parse); template expansion; five store cards; two notesctl cards that test against a fake note service. Plan 0003 resolves deleting a note (unlink, a deletion version, versions kept 30 days, a stale base refused; no ADR, as it follows ADR-0003, 0005 and 0006) and notesctl write's input (stdin or --file, --base required). The spec records the rules the references settled, and vault.md the index as built. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # docs/plans/0003-m1-headless-vault.md
The planning session's measurements of T-0008's vaults (9 folders, about 300 bytes a note, 2 attachments and quoted dates, at 666 and at 5,000 notes) add two checks to T-0009's given test: every created: line is an unquoted date, and attachments grow with the vault. The folder ceiling at 100 notes rises to 25, since one seed of the reference reached 20. Re-checked against the reference with make verify green. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 3 of plan 0003: the index contracts, and the batch-2 cards T-0009 to T-0020. No card has been run.
What's here
internal/markdown:Parse(note []byte) Doc, with theDoctypes exactly as the spec's "Parse output" table defines them. It uses goldmark v1.8.6 (released 2026-09-03) with GFM, footnotes and an empty Obsidian extension. goldmark's link parser is wrapped to record where each link ends, because goldmark doesn't keep that.fixtures_test.goreads the spec's 14### F..fixtures and compares aDocpart by part, so each parser card checks only its own fields. T-0002's 35 cases move into T-0011's given test, now overParse.0001_init.sql, edited in place:files(with the lower-casednamethatmarkdown.Resolvelooks up),notes,props,tags,links(withdest_id, and anamethat decides when a link must resolve again),headings,blocks,tasks, andversions, which outlive their file.notes_ftsis FTS5 with stored content, plus a trigger so cascades remove its rows.schema/rpc/note.yaml(callerslocal): 12 methods and durablechanged/moved/removedevents.vault.yamlgainsstatus,reindexand ascanevent.make genhas run.unavailableuntil Phase 4.rpctest.Options.Notelets client tests use a fake. The store API exists as signatures with doc comments infiles.go,index.go,search.go,queries.goandversions.go.docs/tasks/todo/: vaultgen realism plus the command, three parser cards, template expansion, five store cards and two notesctl cards. The plan's Phase 5 table gives their order.note.revertrestores the file. A delete names its base, and a stale one is refused, because an edit beats a delete. This follows from ADR-0003, ADR-0005 and ADR-0006, so there is no new ADR; it is recorded in the plan and invault.md.notesctl write's input is settled too: stdin or--file, with--baserequired.How it was checked
m1/cards(batch 1, since merged as feat: M1 batch 1, cards T-0004 to T-0008 #3). At each step the card's given tests and a reference implementation were in place on top of the previous cards' references, and both the acceptance command andmake verifypassed. The references are deleted.TestIndexNote, whichmake testwould skip;repocheckrefused them. Writing the references also settled a few spec rules (tags at a block's start, empty link destinations, setext heading text), now written intodocs/specs/markdown.md.make verifyexits 0 on this branch, stubs in place.make ui-check. The nsl machinefrostnotesdoesn't exist on this host, so the regeneratedapp/src/rpc/gen/api.tshasn't been type-checked.Merging
mainis now merged into this branch, the plan's Status line is resolved, andmake verifypasses on the result.🤖 Generated with Claude Code