Repository navigation
docs: document closure pinning feature (#1021) - #1370
Conversation
Closure pinning shipped in #1108 (POST/DELETE /pin/{hash}.narinfo and GET /pins, which protect a narinfo and its transitive references from LRU eviction) but was never documented, leaving #1021 open. Add a User Guide > Features > Pinning page modeled on the existing CDC page: an overview of why to pin, the three HTTP endpoints with status codes, idempotency, and worked curl examples. All documented behavior is derived from pkg/server/server.go and pkg/cache/cache.go so the docs cannot drift from the spec. Register the page in the Trilium export index (docs/!!!meta.json) under the features note so it publishes, and cross-link it from Cache Management (LRU cleanup) and Getting Started > Concepts where eviction is introduced. Sync the closure-pinning spec with a documentation requirement and archive the OpenSpec change. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
This change is part of the following stack: Change managed by git-spice. |
📝 WalkthroughWalkthroughThis pull request adds user-facing documentation for the Closure Pinning feature, covering the pin, unpin, and list HTTP endpoints; their request/response formats; idempotency guarantees; and LRU-eviction protection semantics. The feature page is registered in the documentation hierarchy and cross-linked from related guides, with accompanying OpenSpec specification and planning records. ChangesClosure Pinning Feature Documentation
🎯 2 (Simple) | ⏱️ ~8 minutes
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
Comment |
There was a problem hiding this comment.
Code Review
This pull request adds comprehensive user-facing documentation for the closure pinning feature. It introduces a new 'Pinning' page under the Features section, registers it in the documentation metadata, and cross-links it from the Cache Management and Concepts guides. Additionally, it includes the corresponding design proposal, tasks, and specification updates under the openspec directory. No review comments were provided, so there is no feedback to address.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Summary
Closure pinning shipped in #1108 — the
POST/DELETE /pin/{hash}.narinfoandGET /pinsendpoints that protect a narinfo and its transitive references from LRU eviction — but was never documented, leaving #1021 open. This PR documents it.docs/docs/User Guide/Features/Pinning.md(modeled on the existing CDC feature page): overview of why to pin, the three HTTP endpoints with status codes, idempotency notes, the unknown-hash404case, and workedcurlexamples (including the empty/pinsresponse). All behavior is derived frompkg/server/server.goandpkg/cache/cache.goso the docs match the spec.docs/!!!meta.json) under thefeaturesnote with apinningslug.closure-pinningspec and archived thedocument-closure-pinningchange.No code, API, schema, or runtime behavior changes.
Closes #1021.
Test plan
task fmtclean (0 files changed)docs/!!!meta.jsonparses as valid JSON; Pinning note registered with a uniquenoteIdopenspec validate --specspasses forclosure-pinningtask lint/task test— documentation-only change, no Go/SQL touched