Skuld — Norn of what shall be. Multi-agent issue/feature/release tracker (Go + SQLite, REST behind traefik). Backlog = owed futures.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Xavier REVEILLON a9b86b247f
All checks were successful
/ secrets-scan (gitleaks 8.28.0, all refs, redacted) (push) Successful in 5s
/ test (linux/amd64, full suite) (push) Successful in 1m25s
/ alias (re-point latest, main pushes only) (push) Has been skipped
/ build darwin/arm64 (push) Successful in 31s
/ build windows/amd64 (push) Successful in 32s
/ build linux/amd64 (push) Successful in 39s
/ build darwin/amd64 (push) Successful in 39s
/ build windows/arm64 (push) Successful in 29s
/ build linux/arm64 (push) Successful in 39s
/ image (the release container, tag pushes only) (push) Successful in 14s
/ release (six binaries + checksums.txt, tag pushes only) (push) Successful in 38s
Merge pull request 'docs/tunable-staleness' (#77) from docs/tunable-staleness into dev
Reviewed-on: #77
2026-11-27 05:34:51 +01:00
.agents/skills/skuld skuld: v0.6.0 delivered — source items closed, init heal to template v4 2026-11-11 16:33:59 +00:00
.forgejo/workflows alias-tag-shape: the multi-tag selection two-stage — the release wins over its provisional 2026-11-20 06:45:06 +00:00
.opencode/agents process: the round bubble lands — PM-driven rounds, epic round records, the full ladder (2026-11-20 rulings) 2026-11-21 07:51:06 +00:00
.skuld plans: untrack .skuld/.lock — machine-owned runtime artifact, the flip dropped its ignore line (flagged for documenter) 2026-11-20 17:50:32 +00:00
cmd closing-spec-gaps: tests — the planted-config verb walk covers the config verbs themselves: config show, config set and config unset refuse E_STALE_THRESHOLD at the load gate like the other ten verbs, the owner actors proving the answer is the load's and the store left as it was 2026-11-25 22:40:36 +00:00
docs docs: the v0.12.2 admin docs — the v0.12.2 upgrade section takes the three details of the mixed-version rule its first draft left out, as the release body now carries them: exit 1 beside the malformed request and the malformed payload; the older CLI losing no command because it drops the members it does not know; and the threshold's unset against an older server carrying no new member and finding no setting to remove 2026-11-25 23:21:15 +00:00
internal closing-spec-gaps: ClaimReplaced's dialect comment carries ADR-054's two commits 2026-11-25 22:43:46 +00:00
vendor deps: accept pflag v1.0.10 direct — ADR-022, guard set updated, post-merge regeneration (9bhsz8) 2026-11-14 06:52:15 +00:00
.gitignore gitignore: .skuld/.lock re-ignored — the runtime lock never rides git (the flip dropped the line; restored by the Principal) 2026-11-20 19:22:30 +00:00
.mise.toml Add .mise.toml: pin go toolchain to 1.26 series 2026-10-25 07:19:54 +00:00
AGENTS.md docs: the v0.12.1 user and admin docs — the README states the free-number rule, the raced child create, the history bounds' whole-second grain and the liveness verdict's grain; the admin guide gains the v0.12.1 upgrade (clients move with the server, rows retire codes, E_DUPLICATE_ITEM on a child create, the closed lockouts, the creating commit's read); the code map's conformance line names four harnesses 2026-11-24 15:44:35 +00:00
CONTRIBUTING.md docs: two older errors — the README's documentation map names fifteen spec files (claim liveness, item activity and migration join the twelve, in INDEX order); CONTRIBUTING's CI sentence states the six-combo build matrix the workflow runs from one Linux runner, the version stamped on tags 2026-11-24 16:53:57 +00:00
Dockerfile container-image: the clean two-entry index and the noun-level --data in the exec docs 2026-11-19 22:19:55 +00:00
go.mod deps: accept pflag v1.0.10 direct — ADR-022, guard set updated, post-merge regeneration (9bhsz8) 2026-11-14 06:52:15 +00:00
go.sum server-store-engine: the typed precondition-error family (ADR-021 point 6) 2026-11-13 17:47:56 +00:00
LICENSE ci-secrets-gate: add MIT LICENSE (holder: Xavier REVEILLON) 2026-10-26 20:10:49 +00:00
Makefile version-stamping: retire the 0.0.0-dev placeholder wording — Makefile + ci.yml build-step comments truthful, functional lines byte-identical 2026-10-27 14:00:24 +00:00
README.md docs: the v0.12.2 user docs — the README's liveness passage names the threshold actually judged (the claim's declaration, else the project's setting, else the default of three days) where it said a fixed three days; the six verbs join it — config show, config set and config unset with --stale-threshold, claim with a declared leash, claim set and claim unset — with the grammar and its one literal, the ended claim's whole ground, the additive machine members, the setting and the declaration riding git, and the two store keys 2026-11-25 23:14:39 +00:00

skuld

A CLI-first issue, feature and release tracker for LLM agents and humans — named for the Norn of what shall be. One static binary, two modes. Local (the default): the tracker's entire state lives under .skuld/ inside the git repository it tracks, and git itself is the transport between machines. Server (since v0.10.0): the same binary serves (skuld serve) and the CLI becomes its client — one self-hosted server, many projects and machines, identical commands once a repo is bound (.skuld/config.json carries the mode; absent means local). Running one is the administrator's half: docs/admin/.

What it is

Skuld tracks what must be done (items: epic, task, bug, issue, feature), when it can be done (dependencies and vX.Y.Z version scopes), and what is being done where and by whom (claims bound to an agent, a branch, a worktree, a machine). Its primary consumer is an agent: output contracts are machine-stable first, human tables second. Every command is one non-interactive shot — boot, one use case, render, exit — and every mutation lands as a discrete, reviewable working-tree change under .skuld/ — init's onboarding artifacts (Quickstart) are the one write outside it. Skuld never stages or commits; you commit the tracker with your work, exactly like source code.

Vision

A backlog is a list of owed futures. Skuld tracks what must be done (items of various types), when it can be done (dependencies, version scopes), what is currently being done and where (agent, worktree, branch), and by who (responsible agent). Two operating modes with identical CLI calls once a project is configured: local (items and configuration live inside the repo under .skuld/, version-controlled in git, the recorded history riding along as activity rows beside the state) and server (the CLI acts as a client to a centralized server: multi-project, multi development machines). Lean by design: LLM-first ergonomics over enterprise breadth — explicitly not aiming to become a fully-featured Jira. The CLI is the first and only surface for now; dashboards and web interfaces are not rejected, just far too early to even think about them.

Install

Binary — grab the release for your OS/arch (Linux, macOS, Windows × amd64, arm64) from the repository's releases, put it in your PATH:

skuld --version

skuld version and -v/--version are the two binary-version surfaces — byte-identical answers; the version-scope surface is the release noun (below). Every build reports truthfully — a from-source build (below) answers dev on a default clone (tracks dev, untagged); a checkout of a release tag answers the tag's version plus a -dev suffix — never mistakable for the official release binary of the same tag.

go install — Go ≥ 1.26 and nothing else; dependencies come from the module proxy:

go install forgejo.xreveillon.eu/assistant/skuld/cmd/skuld@latest

An install-built binary answers --version with the resolved tag's version plus a -dev suffix (X.Y.Z-dev) — never mistakable for the official release binary of the same tag.

From source — Go ≥ 1.26 (the repo pins the toolchain via mise; go.mod pins the patch). Dependencies are vendored and closed by policy (cobra, pflag, oklog/ulid, bbolt), no cgo:

git clone https://forgejo.xreveillon.eu/assistant/skuld
cd skuld
CGO_ENABLED=0 go build -o skuld ./cmd/skuld

Quickstart

Five minutes inside any git repository:

# 1. Init — .skuld/ at the repo root; the roster is seeded with the
#    default agent "principal" (or name the first agent: init sku --as me).
#    Two onboarding artifacts are also written, meant to be committed
#    (details below)
skuld init sku

# 2. Items — standalone create defaults to type issue, status todo
skuld item create --title "Empty input crashes the parser"

# 3. Hierarchy — children derive their type from the parent along the
#    ladder (feature -> epic, epic -> task, task -> task), and take the
#    next free number under it: a number some item's history holds
#    (a detached or deleted sibling's) is skipped, never re-issued
skuld item create --type feature --title "Parser rewrite"
skuld item create --parent <feature-code> --title "Grammar epic"
skuld item create --parent <epic-code> --title "Lexer task"

# 4. Dependencies — items become ready/blocked by the needs graph
skuld link needs <epic-code> <task-code>   # the epic waits on the task
skuld ready                                # todo items with no unmet needs

# 5. Claim — take exclusive execution of an item, bound to where the
#    work happens: the claim captures agent, branch, worktree, machine —
#    and may carry a stale-claim leash of its own (optional)
git checkout -b sk/<task-code>
skuld agent add dev-agent          # grow the roster; mutations name their actor
skuld claim <task-code> --as dev-agent   # -> in-progress
skuld claim <task-code> --stale-threshold 2h --as dev-agent  # on a declared leash
skuld claims                       # in-flight work, filterable by
                                   # --agent/--branch/--worktree/--machine,
                                   # each claim's liveness and declared leash
skuld unclaim <task-code> --as dev-agent # -> todo, episode archived
skuld item set <task-code> --status done --as dev-agent \
                 --evidence "commit a1b2c3"  # a receipt: proof pointer riding
                                             # the write; recorded, never verified

# 6. Releases — version scopes exist before items reference them
skuld release create v0.1.0
skuld item set <feature-code> --version v0.1.0
skuld release show v0.1.0         # members grouped open / in-progress /
                                  # blocked (with blocking chains)

Init writes two onboarding artifacts beside .skuld/, meant to be committed so every clone gets them for free: a marked skuld block in the repo-root AGENTS.md — created if the file is absent, appended if you keep a curated one, bytes outside the markers never touched — and the skuld skill at .agents/skills/skuld/SKILL.md, the Agent Skills standard project location, discovered in place by OpenCode, Codex, Cursor, Gemini CLI, Copilot, Amp, goose, Cline. Claude Code reads only .claude/skills/; there the AGENTS.md block is the carrier that names the skill.

Init is re-runnable: on an initialized repo it is an idempotent ensure — identity and roster untouched (a re-run --as is a roster no-op, answered with a notice) — and the artifacts refresh to the current template; a newer on-disk template is left untouched with an upgrade notice. The one roster change a re-run may make: healing a zero-owner roster — the run's rostered seed actor gains the owner flag; owner_seeded in the response says when. After a binary upgrade, re-run skuld init in every project: the refreshed block and skill are the migration path for copy changes (the v0.3.0 CLI rename rode exactly this). --no-onboarding skips both artifacts for that one invocation — "not now", not "never": nothing is recorded, and a later unflagged run installs them.

Then commit — .skuld/ rides along with your work; that is the whole transport. The project root resolves as --repo → SKULD_REPO env → the config's data-location key (at git worktree boundaries) → the nearest .skuld/ walking up from the working directory. Working in a linked git worktree? It carries its branch's own .skuld/: claim there and the claim records that worktree. Or record the board-at-root decision once — skuld config set --data-location main-tree (owner-gated; skuld init --data-location sets it from birth) — and verbs run in the worktree bind the main tree's .skuld/, never silently: the boundary-crossing notice names the bound root in every output shape, and the same notice attends the walk-up's adoption of a parent store from a store-less worktree. --repo . stays the branch-local escape under the key; --repo and SKULD_REPO always outrank it (a forgotten SKULD_REPO export silently retargets every verb, so unset it when done).

Day-to-day reads:

skuld brief                           # session opener: the round, the ready
                                      # work, your claims — or, with no --as,
                                      # the unowned work
skuld item list                       # tables on a TTY; default view hides
                                      # done and cancelled (--any-status restores)
skuld item show <code>                # + computed facts (blocked, ready,
                                      # progress, active_claim) + full receipts
skuld item comment <code> --body "…"  # appended; edit/rm are
                                      # author-only
skuld item history <code>            # the item's recorded history: who
                                      # moved what, when — former codes
                                      # included, never another item's
                                      # rows; --actor/--since/--until
                                      # filters AND-combine
skuld agent history <name>           # one actor's trail across the project,
                                      # same filters; the time bounds are
                                      # RFC 3339 and inclusive, judged at
                                      # the whole second — a fraction in a
                                      # bound names its second
skuld item list --json --label parser # machine form, see below

Claims carry liveness: every read that renders one shows the verdict — live or stale — beside the claimant's last recorded act and the threshold actually judged: the claim's own declaration, else the project's setting, else the default of three days. Verdict and ending's gate judge at the same grain — the whole second every moment is recorded at — so the verdict shown is the one an ending attempted at that instant meets, in either mode. Staleness derives at read time and writes nothing (it means the claimant has gone quiet, never that the work is stalled); past the threshold, any rostered agent may end the claim with unclaim or abandon — the ground derives at the gate, no flag, and the archived episode records it with its ender, the anchor moment, the threshold judged and the rung that supplied it. Live claims stay sovereign (a re-livening act — or a threshold grown so the claim is live again — blocks a pending ending at the commit gate), and the claimant's own ending needs no ground at all.

The board's threshold is a setting an owner writes — the same verbs in both modes; on a server it is a fact of the project, one write that every clone sees at once. A claimant expecting a long quiet stretch declares the slack on the claim, and while the claim is held the claimant or an owner tightens or removes it. A declaration is absolute — a later change of the project's setting leaves it alone, and every ending of the claim ends it — and binds both ways: declared tighter than its board, the claim is reclaimable at its declared leash; declared looser, no third party reclaims it before that leash. No threshold change rewrites a claim — every verdict re-derives at the next read, so a board shortened makes its quiet claims reclaimable that much sooner.

  • skuld config show — a read, nothing written: the project's config facts, among them the stale threshold in force and its origin, set or default.
  • skuld config set --stale-threshold 16h --as <owner> — sets the board's threshold; owner-gated.
  • skuld config unset --stale-threshold --as <owner> — back to the default, three days.
  • skuld claim <code> --stale-threshold 2h --as <agent> — declares the claim's own leash, at the claim.
  • skuld claim set <code> --stale-threshold 4h --as <agent> — changes it while the claim is held; the claimant or an owner.
  • skuld claim unset <code> --stale-threshold --as <agent> — removes it, the claim returning to the project's threshold at once.

A threshold is a duration in the decimal duration form — a whole number and a unit, h, m or s, compounded largest unit first, each at most once, at least one minute: 16h, 45m, 1h30m, 5400s; no sign, no fraction, no other unit. Each duration has one literal, its largest whole units, and every surface prints it — 90m reads back 1h30m. A value outside the grammar is refused E_STALE_THRESHOLD, naming the value and the rule, nothing written — on a claim command the claim is rejected whole.

The acting agent for mutations resolves as --as → SKULD_AS env → the roster's sole member (solo convenience); first-run init seeds the roster through the same chain, defaulting to principal. A one-agent project never types --as.

Machine output & exit codes

Agents script skuld over its stable contract (full grammar: cli.md):

  • Channels — TTY renders human tables; non-TTY defaults to machine output; --json forces it. Lists are JSONL (one record per line); single records are one-line JSON. Item records carry the stored fields plus computed blocked, ready, progress, active_claim and a receipts count — full receipts on the item read alone. A boundary crossing — implicit resolution binding outside the working tree — adds a notice line (human) / bound_root field (machine) naming the bound root; it appears only when a crossing happens.
  • Determinism — same command + same state ⇒ byte-identical stdout: fixed field order, pinned sort (items by code, parents before dotted children; versions newest-first, numerically).
  • Idempotent creates — retrying item create with the same (type, title) returns the existing item with "already_exists": true, exit 0; --force mints a distinct item.
  • Two clients never share a child number — creating a child under one parent in the same instant, both compute the same next number: one lands, the other is refused E_DUPLICATE_ITEM naming the code, and nothing is overwritten. Run it again: it takes the next free number — or, with the same type and title as the item that landed, converges on it (already_exists). In local mode no server arbitrates: each clone's own binary holds the free-number rule, so a clone on an older skuld can still land a retired number until every clone upgrades.
  • Liveness and the threshold — every record rendering an active claim carries the claim's declared stale_threshold (null when undeclared) directly before its liveness arm — verdict, anchor and threshold, the last naming the value actually judged, in the one literal (45m, never 0h45m); the skuld claims rows carry both. A stale-ended episode carries stale_threshold and stale_rung beside its anchor — both null on an ending recorded before the threshold was tunable. skuld config show is one JSON object ending in stale_threshold and stale_threshold_origin (set | default).
  • Errors — always self-correctable: the message names the offending input and the correction. Default rendering is a block on stderr; with --json, a one-line {"error":{"code":"E_…","message":"…"}} on stdout. Domain rejections carry stable machine codes (E_CYCLE, E_CLAIMED, E_UNKNOWN_ITEM, …). Init's onboarding failures with the fix in your hands — an unwritable, occupied or symlinked artifact target, corrupt markers, a foreign skill file — exit 1 under E_ONBOARDING; disk I/O faults stay internal (exit 3).
Exit Meaning
0 success — including idempotent "already exists"
1 domain rejection — self-correctable (cycle, double claim, bad version id, …; init onboarding failures)
2 usage error — unknown flag, bad grammar, not a skuld project
3 internal — corrupt state, unknown file, lock timeout, disk I/O

Concurrency, in two paragraphs

Within one working tree, all mutations serialize on a lock inside .skuld/ and land as atomic write-sets — you never see partial state. Across working trees (other clones, other machines, linked worktrees), local mode is optimistic and git is the arbiter: the store is laid out one file per fact with deterministic bytes, so two agents changing different facts — two comments, a comment vs a status change, independently created items — merge cleanly with plain git merge/git pull. Two agents changing the same fact — both setting a status, both claiming one item — write different bytes to the same path and git refuses the merge loudly. The project's stale threshold rides in .skuld/config.json and a claim's declaration in its claim.json, so two clones setting either differently refuse the merge the same way. Nothing is ever silently lost.

The subtle case: a delete racing a comment (or a detach racing one) touches no common path, so git merges clean but strands the comment in a directory with no item. Skuld then reads loud — whole-set reads (item list, computed facts) exit 3 naming the directory — until you remove the stranded directory by hand or re-point its files. That is by design: loud and resolvable beats silent loss. The complete fact × fact matrix (including byte-identical duplicates that auto-resolve clean, and the rename/rename case on concurrent detaches) is pinned in the filestore merge matrix and verified by merge-fixture tests driving real git merges.

Where the state lives

.skuld/
  config.json             # format, mode ("local"; absent ≡ local),
                          # project acronym, optional data-location key
                          # (worktree binding), optional stale-threshold key —
                          # the project's setting; a server-bound repo carries mode
                          # "server" + base URL, and neither key
  agents/<name>.json      # the roster, one file per agent
  items/<code>/           # one directory per item
    item.json             # identity + singleton facts
    claim.json            # present ⇔ actively claimed, with any declared threshold
    claims/<ulid>.json    # ended-claim episodes — a stale one names its ground
    comments/<ulid>.json  # one file per comment
    receipts/<ulid>.json  # one file per transition receipt
    needs/<code>.json     # one file per dependency edge
  versions/vX.Y.Z.json    # one file per version scope
  activity/<ulid>.json    # one recorded-history row per mutation,
                          # landing with its facts — the `item history` /
                          # `agent history` reads' substrate (v0.12.0+)

Raw files serve the tool — agents and humans interact through the CLI, never by editing files. Full layout and schemas: filestore.md.

Documentation map

  • docs/specs/ — functional truth: the FR registry (INDEX.md) and fifteen spec files (item model, links & dependencies, version scopes, agents & claiming, claim liveness, item activity, CLI ergonomics, agent onboarding, local mode, server mode, mode transparency, project-server binding, migration, agent authentication, distribution).
  • docs/architecture/ — design as built: ARCHITECTURE.md, one file per component, and append-only ADRs in DECISIONS.md.
  • docs/plans/ — frozen history: the round records of the file era (up to v0.11.2), kept read-only. Rounds now live entirely in the tracker — the round epic is the round record — and this repo tracks itself with skuld (skuld item list, skuld release show, skuld item show <epic>).
  • docs/admin/ — the server administrator's guide (INDEX.md): running the server (bare CLI and container), machine-token administration, backup and upgrade.

Developing

See CONTRIBUTING.md — build and test instructions, the documentation flow, and how work is planned and landed.

License

MIT — see LICENSE.