Repository navigation
feat: onboard frostmarks and build its standalone core on hearth - #3
Merged
Merged
Conversation
Onboard the repository to rows B1 to B19 of frostyard/core's repository baseline with a Go gate (make ci), and build the standalone core of the bookmark manager on hearth v0.1.0 (frostyard/core ADR-0085): - proto/frostyard/frostmarks/v1/marks.proto: the service frostyard.frostmarks.v1.Marks, 11 RPCs with hearth's options, the capabilities marks:read and marks:write on the selector folder, and 5 bookmark events; gen/ holds the generated Connect, permission, MCP, event and manifest code. - marks/: the SQLite store with FTS5 search, the folder and bookmark rules, the permission hooks on the stored folder and the grant filters, and the events in the outbox of the change's transaction. - internal/rpc/, cmd/frostmarksd, cmd/marksctl: the Connect server on the private socket as the local user, the daemon, the CLI with 1 command per RPC, and marksctl mcp, a stdio MCP server. - docs, ADRs 0004 to 0006, the specs, the roadmap and the site.
- internal/rpc: the private socket serves only the daemon's own uid (hearth's lodge.Listener), and only ECONNREFUSED marks a socket stale. - marks: a folder path refuses control characters and paths whose event topic passes hearth's limit; a rename checks every path it makes; the database URI is escaped. - corrections-base: run is tested in temporary git repositories, and records compare by the raw bytes of each member, lone surrogates too. - workflowcheck: guards for B15, B16 and the README surfaces. - Tests use no TCP; the stale-socket test keeps its socket; the docs and the site match the code. Each blocking point has its guard test and 1 record file in .memory/corrections/.
- The grant docs write a plain folder path (/reading), which covers itself and every folder below it: hearth's authz has no wildcard. A test keeps wildcard folder paths out of the docs and the site. - The marksctl guide creates each folder before it uses it. - The README check places the optional How it works once, before Develop, and its missing-status fixture removes the line. The blocking point has its guard test and 1 record file in .memory/corrections/.
Contributor
Author
Cross-review record
|
bketelsen
approved these changes
Nov 16, 2026
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.
Summary
Onboards frostmarks to rows B1 to B19 of frostyard/core's repository baseline, and builds the standalone core of the bookmark manager on hearth v0.1.0 (core ADR-0085).
proto/frostyard/frostmarks/v1/marks.proto, the servicefrostyard.frostmarks.v1.Markswith 11 RPCs (CreateBookmark,GetBookmark,UpdateBookmark,MoveBookmark,DeleteBookmark,ListBookmarks,SearchBookmarks,CreateFolder,RenameFolder,DeleteFolder,ListFolders), the capabilitiesmarks:readandmarks:writeon the selectorfolder, and 5 events (created,updated,deleted,moved_out,moved_in).gen/holds the generated Connect server and client, permission checks, MCP tools, event publishers andgen/manifest.json.buf.yamlexceptsSERVICE_SUFFIX, so the service keeps the nameMarks.marks/: SQLite (modernc) with FTS5 search over title, URL, notes and tags; normalized http/https URLs, unique per folder (already_existsnames the existing id); folders as paths with an existing parent, deleted only when empty; lower-case tags of 1 to 64 characters; the 4Authorize*hooks read the stored folder in the call's transaction (marks/authorize.go); lists and search filter by the grant; every event goes to hearth's outbox in the change's transaction.frostmarksdserves Connect on the private socket ($XDG_RUNTIME_DIR/frostmarks.sock, 0600) as the local user;marksctlhas 1 command per RPC;marksctl mcpis a stdio MCP server whose tools call the daemon. No lodge is needed.make ci=verify gen-check race cross corrections-base manifest-check.Risk tier
Risk tier: 3 — new repository content that touches workflows, governance, supply-chain pins and the permission code.
Matched L1/L2 paths of
.github/risk-paths.json, and why each is safe:.github/workflows/**,.github/risk-paths.json,policies/**,Makefile,internal/workflowcheck/**,internal/repocheck/**,internal/cmd/corrections-base/**(L2): the CI and gate, ported from frostyard/hearth. Actions are SHA-pinned,permissions: {},persist-credentials: false; the jobverifykeeps its context name.mise.toml,mise.lock,go.mod,go.sum,buf.yaml,buf.lock,buf.gen.yaml(L1): the same tool pins as hearth (golangci-lint 2.15.0, buf 1.75.0, protoc-gen-go 1.36.12, svu 3.4.1);protoc-gen-connect-goand hearth's plugins aretoollines of go.mod (go.sum checksums), and no remote BSR plugin runs.proto/frostyard/frostmarks/v1/marks.proto,third_party/**,gen/**(L1/L2): the permission, effect and exposure of each RPC;third_party/is hearth v0.1.0's options file, kept equal byinternal/repocheck;gen/is checked bymake gen-check.marks/authorize.go(L1),marks/**(L2): the hooks check the stored folder, never a request field; tests prove each hook with a grant on another folder.internal/rpc/**(L1): the private socket stripsLodge-*headers and acts as the local user (hearth'slodge.PrivateHandler); it closes every connection whose peer uid is not the daemon's own before it reads a byte (hearth'slodge.Listener), and it removes an old socket only when the kernel refuses a dial. Tests send forged headers, connect as a refused uid, and inject each dial error.Verification
make cigreen locally before the first push;make corrections-base manifest-check BASE=origin/mainpasses (no manifest at the base).TestDuplicateURLInFolder,TestDeleteFolderNotEmpty,TestTagRules,TestSearchBookmarks,TestBookmarkMovedEvents,TestFolderRenameEvents,TestBookmarkDeletedEvent,TestAuthorizeHooks,TestListsFilterByGrant;internal/e2eTestBinariesbuilds both binaries, startsfrostmarksdin a temporary directory, and calls each RPC bymarksctland by stdio MCP.make sitebuilds in strict mode.4765f36, blocking none.