vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Rewrite documentation around reader tasks
d1f44d838966c0a4762073f12375ec7562582fdf · Keenan Nemetz · 21h ago · parent 9103f6a8
docs/reference/issue-format.md −110
| @@ -1,110 +0,0 @@ | |||
| 1 | # Issue format | ||
| 2 | |||
| 3 | Issues and their comments are Markdown files on a repository's `vole` branch. | ||
| 4 | This reference describes their durable identity, storage layout, and validation | ||
| 5 | rules. For normal issue work, use [Issues](../issues.md). | ||
| 6 | |||
| 7 | ## Storage layout | ||
| 8 | |||
| 9 | ```text | ||
| 10 | issues/<ulid>/issue.md | ||
| 11 | issues/<ulid>/comments/<ulid>.md | ||
| 12 | ``` | ||
| 13 | |||
| 14 | An issue contains YAML front matter followed by its Markdown body: | ||
| 15 | |||
| 16 | ```markdown | ||
| 17 | --- | ||
| 18 | title: "Nothing renders on the docs page" | ||
| 19 | state: open | ||
| 20 | author: you | ||
| 21 | created: 2026-10-22T21:30:00Z | ||
| 22 | labels: | ||
| 23 | - bug | ||
| 24 | --- | ||
| 25 | Steps to reproduce... | ||
| 26 | ``` | ||
| 27 | |||
| 28 | Vole quotes titles and other free text so characters such as `#` or a leading | ||
| 29 | `-` remain data. The issue id is a 26-character ULID containing uppercase letters | ||
| 30 | and digits, excluding `I`, `L`, `O`, and `U`. Use the full ULID when an | ||
| 31 | identifier must survive metadata-history rewrites or ambiguous short prefixes. | ||
| 32 | |||
| 33 | ## Numbers | ||
| 34 | |||
| 35 | Issues and change requests share one `#number` sequence, ordered by creation. | ||
| 36 | The number is derived from the position of the commit that created the entity in | ||
| 37 | the metadata branch's history; Vole does not store a counter in the issue file. | ||
| 38 | |||
| 39 | Two clones of the same history therefore derive the same numbers, and | ||
| 40 | `vole admin index rebuild` can reconstruct them from Git. Rewriting the branch, | ||
| 41 | such as an admin redaction force-push, can renumber entities created after the | ||
| 42 | rewritten commit. | ||
| 43 | |||
| 44 | The issue and change lookup commands accept a number with or without `#`, a | ||
| 45 | full ULID, or a ULID prefix: | ||
| 46 | |||
| 47 | ```sh | ||
| 48 | vole issue show 42 | ||
| 49 | vole issue close '#42' | ||
| 50 | vole change show 1 | ||
| 51 | ``` | ||
| 52 | |||
| 53 | Use `#42` when reading and quoting current work. Use a full ULID in scripts, | ||
| 54 | commit messages, and `closes:` metadata. `#<ulid>` is also the durable form for a | ||
| 55 | Markdown link that must survive rewritten history. | ||
| 56 | |||
| 57 | ## Writes and validation | ||
| 58 | |||
| 59 | The CLI and browser use the same metadata writers as the pre-receive hook. A | ||
| 60 | write reads the current branch, validates the change, and retries if another | ||
| 61 | writer moved the branch first. Metadata history must remain linear; merge commits | ||
| 62 | are rejected. | ||
| 63 | |||
| 64 | A contributor can create an issue or comment as their own account. A maintainer | ||
| 65 | can triage issues and write as part of repository maintenance. An admin repair or | ||
| 66 | override is recorded in `data/audit.log`. Other paths on the metadata branch are | ||
| 67 | reserved for their documented record types. | ||
| 68 | |||
| 69 | Direct Git writes are possible for tooling, but they must produce the same file | ||
| 70 | layout and metadata and pass the same pre-receive validation. Prefer the CLI or | ||
| 71 | the `metadata` Go package rather than constructing front matter by string | ||
| 72 | concatenation. | ||
| 73 | |||
| 74 | Force-pushing `vole` requires repository admin and is recorded in the audit log. | ||
| 75 | It is intended for redaction, not ordinary issue edits. | ||
| 76 | |||
| 77 | ## Comments | ||
| 78 | |||
| 79 | A comment file contains `author`, `created`, and optional `reply_to` metadata. | ||
| 80 | `reply_to` names another comment in the same issue. The web interface collects a | ||
| 81 | root comment's descendants beneath it and displays one level of nesting. | ||
| 82 | |||
| 83 | Only the comment's author can edit or delete it. Vole compares the author in the | ||
| 84 | old file with the account behind the SSH key or browser session. An admin can | ||
| 85 | override this rule to repair a thread, and Vole records the override in the audit | ||
| 86 | log. | ||
| 87 | |||
| 88 | Deleting a comment replaces its body with a tombstone so replies retain their | ||
| 89 | context. The old text remains in Git history, and a deleted comment cannot be | ||
| 90 | edited. Deletion is not redaction; redaction requires an audited metadata-history | ||
| 91 | rewrite. | ||
| 92 | |||
| 93 | The issue author or a maintainer can edit the issue's title and description | ||
| 94 | without changing its discussion, labels, or assignees. Closing, relabeling, and | ||
| 95 | assigning another person's issue are triage actions, not changes of authorship. | ||
| 96 | |||
| 97 | ## Mentions, links, and search | ||
| 98 | |||
| 99 | - `#42` links to the issue or change request with that number through `/n/42`. | ||
| 100 | - `#<ulid>` links by durable id. | ||
| 101 | - A commit that mentions an entity id appears as a backlink on its page. | ||
| 102 | - `@name` links to that account's profile when the account exists. | ||
| 103 | - Mentions inside code samples remain plain text and do not match workflow | ||
| 104 | `mentioned` filters. | ||
| 105 | - Assignee names use lowercase letters, digits, `-`, and `_`. Retired account | ||
| 106 | names remain reserved. | ||
| 107 | |||
| 108 | The web issue list filters by state, label, and assignee, and searches issue | ||
| 109 | titles and bodies. The generated index in `data/index.db` supports those views; | ||
| 110 | it is not the issue's source of truth. | ||