Repository navigation
fix: the sweep issues #250, #251, #252 and #253 - #259
Merged
Merged
Conversation
withDaily read vault.yaml and computed the daily note's path before it took the vault's lock, so a Configure in between could move the daily folder and a daily-scoped token could write the note at the old path. docs/specs/lodge-app.md says the day's note is judged under the lock, at the path the settings give. The settings are now read and the path computed after v.lock(). TestDailyReadsItsSettingsUnderTheLock checks, through the dailySettings test hook, that mu is held when the settings are read, for Daily and AppendDaily; it fails on the old order.
… another note (#251) With Plan.md and A/Plan.md, a link from A/X.md to the root Plan.md was written [[Plan]], which resolves to A/Plan.md (a target that is not rooted is first tried in the linking note's folder). docs/specs/rpc-api.md says shortest writes the name only when it resolves to the file. LinkText (Go) and linkTextFor (TypeScript, with a port of markdown.Resolve) now check the shortest and absolute text with the resolver, and write the rooted path (/Plan) when it does not resolve back. TestLinkText and catalog.test.ts hold the cases.
markdownDestination decoded only the part before #, so  found no heading 'My Heading' and embedded the whole note, and data-href kept %20. Obsidian writes a space in such a heading as %20, and docs/specs/render.md says the destination is percent-decoded; the note index (markdown.collectLink) already decodes the subpath. Fixture R19 holds a link and a section embed with a percent-encoded heading.
…253) Baseline row B9 (core ADR-0084) wants README.md to link the tool's user documentation home, Frostnotes' guide on frostyard.org. docs/README.md stays in Where to go next. The Awesome MyGo badge stays: rule R6 allows it since frostyard/core#280.
bketelsen
approved these changes
Nov 22, 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
Fixes 4 of the 5 open sweep issues. 1 commit each:
fix(vault):withDailyreadvault.yamland computed the daily note's path before it took the vault's lock. AConfigurein between could move the daily folder, and adaily-scoped token could then write the note at the old path.docs/specs/lodge-app.mdsays the day's note is judged under the lock, at the path the settings give. The settings are now read and the path computed afterv.lock(). Guard:TestDailyReadsItsSettingsUnderTheLockuses the newdailySettingstest hook (in the style of the existingstagedhook) to check thatmuis held when the settings are read, forDailyandAppendDaily. It fails on the old order. There is no sleep and no goroutine.fix(catalog): withPlan.mdandA/Plan.md, a link fromA/X.mdto the rootPlan.mdwas written[[Plan]]. That resolves toA/Plan.md, because a target that is not rooted is first tried in the linking note's folder.LinkText(Go) andlinkTextFor(web app) now check theshortestandabsolutetext with the resolver. When the text does not resolve back to the chosen file, they write the rooted path (/Plan). The web app has no synchronous resolver, socatalog.tsgets a port ofmarkdown.Resolve.relativeis unchanged. Guards: new cases inTestLinkText(2 fail without the check) and incatalog.test.ts.fix(render):markdownDestinationdecoded only the part before#.found no heading and embedded the whole note, anddata-hrefkept%20. The subpath is now percent-decoded too, asdocs/specs/render.mdsays and as the note index (markdown.collectLink) already does. Guard: fixture R19 indocs/specs/render.md, with a new fixture noteNotes/Harvest.md, holds a link and a section embed. It fails without the fix.docs(readme):**Documentation:**now links the frostyard.org guide (baseline B9, core ADR-0084).docs/README.mdstays inWhere to go next. The Awesome MyGo badge stays: rule R6 allows it since feat(readme): allow the Awesome MyGo listing badge in rule R6 core#280, so the R6 part of the finding no longer holds.Closes #250
Closes #251
Closes #252
Closes #253
#249 (the Secret Service file fallback) needs a design choice between documenting the fallback and removing it, so this PR does not change it.
Risk paths
None of the changed paths is in
.github/risk-paths.json.Checks
make verify(withBASE=origin/main): passed locally.go test ./internal/vault/ ./internal/engine/ ./internal/desktop/... ./internal/markdown/ ./internal/render/: passed. The guard tests for sweep: note.daily computes the daily-note path before it takes the vault's lock, but lodge-app.md says it is judged under the lock #250, sweep: a new link to a root note whose name is not unique can resolve to another note #251 (Go) and sweep: a markdown link's #heading stays percent-encoded, so an embed of Note.md#My%20Heading shows the whole note #252 failed with each fix reverted.catalog.test.tsruns in CI (make ui-check). It was not run locally.