Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

stikk — Requirements Specification

Documentstikk Requirements Specification (business-function level)
Versionv0.2 (draft for review) — v0.1 + project-rules alignment: added NFR-U (progressive disclosure, per “Less is more”), NFR-S07 (threat-model maintenance), CON-6/CON-7 (development workflow, project structure), ASM-4 (rules adoption). No existing IDs changed meaning
Date2026-08-31
Basisprikk 0.27.1 @ 3eb3101, as established by the 2026-08-31 audit (audit-2026-08-31-task-{1a,1b,2,3,4}.md); project rules in .git-exclude/rules/ (RFC lifecycle policy; general/Rust/GUI project instructions)
AuthorityThis document defines WHAT stikk does. Technology, architecture, and UI layout belong to the External Design (task 02) and later documents. Where stikk’s needs exceed prikk 0.27.1, the gap is a numbered Upstream Dependency (UD-xxx), never a silent assumption
ID schemeUC- use case · OS- out of scope · FR- functional req · NFR- non-functional req · CON- constraint · ASM- assumption · UD- upstream dependency. Priorities: Must / Should / Could (for v1)

stikk (Norwegian: to set a course, to take a bearing) is the user-facing tool of the prikk ecosystem: a terminal UI (TUI) and a graphical UI (GUI) over one shared operation layer, for navigating, inspecting, and operating on prikk repositories. Its founding stance mirrors prikk’s own: where prikk refuses, stikk explains. Evidence, witnesses, and refusal reasons are first-class content, not error noise.

0. Terminology: arriving from Git

Readers will bring Git mental models. The mapping below is normative for this document’s vocabulary.

Git conceptprikk / stikk reality
commitpatch (signed atomic change, carries its preimages) queued in the active WAL; commit appends to the queue
push to publishseal — a MAINTAINER-signed block freezes the queue into immutable history
commit hashpatch id / block id (SHA-256 object ids)
author name/email/dateAUTHOR key id + signature. No names, no emails, no dates anywhere (no-clock design, permanent). Messages persist on prikk ≥ 0.32 and were validated-then-discarded below it (UD-01, retired — RFC 015 F2); still no author display name
branchref heads/<name>: a signed RefState chain. Created, listed, closed (never deleted)
HEAD / checkout a branchno HEAD. Below prikk 0.42 there is no current-branch pointer; checkout materializes an explicit ref’s state into the worktree. From prikk 0.42 a .prikk/current-branch file names a default for --ref, moved by prikk branch switch — prikk calls it “a default, never an authority”, and it is not a HEAD. stikk keeps a client-side focused ref either way. From 0.42 stikk opens focused on prikk’s current branch; below 0.42, or with an unresolved pointer, on heads/main only if it is published, and otherwise with no ref focused. Switching stikk’s focus never moves prikk’s (RFC 029)
staging area / indexdoes not exist. Whole-worktree commit; the queue (WAL) is the pre-publication holding area
diffa patch is the diff: typed operations (create/delete/edit-text-span/replace-binary/change-perm) with preimages
mergeevidence → plan → execute, only when proven confluent; otherwise a refusal with typed conflict witnesses. No conflict markers, ever
revertrollback flow: preview → inverse draft → verify → seal (preimage-exact)
rebase, cherry-pick, amend, squashdo not exist; sealed history is immutable (see OS-1)
remote / fetch / pushno network. File artifacts: bundles (whole verifiable subsets) and the 9-step sync negotiation loop; received history lands read-only under remotes/
fsckverify — 14 stages; author-signature outcome is Sound or Unverifiable (both values; Unverifiable is non-blocking and must never read as a pass), or a blocking failure (an error, not a value) — see FR-035
reflogsigned RefState/RefUpdate chain per ref (stronger; append-only)
gc / prunedo not exist (append-only, no-GC store)

1. Stakeholders & Use Cases

1.1 Personas

  • P-1 — Solo developer / evaluator (“Astrid”). Tries prikk on a real side project. Needs the daily loop (change → commit → seal → history) to be legible without memorizing CLI flags, and needs refusals explained in plain language.
  • P-2 — Patch-theory reviewer (“Kenji”). Studies commutation, confluence, and merge evidence. Needs deep, faithful rendering of patches, witnesses, state roots, and lineage — the tool as a microscope, not a simplifier.
  • P-3 — Small-team maintainer (“Marta”). Coordinates 2–8 authors exchanging history over files (shared drive, mail, USB). Owns the MAINTAINER key, the trust policy, sealing, tag adoption, and the sync loop. Release-engineer analog.
  • P-4 — Auditor / security reviewer (“Sam”). Reviews someone else’s repository or bundle. Cares about verify outcomes, signature continuity (TOFU), trust-policy state, and whether received history is safe to adopt. Often works read-only.

1.2 Primary use cases

IDNameNarrative (condensed)
UC-01Open & orientUser opens a local repository; stikk shows at a glance: health (verify summary), refs (local / received / closed), queue depth, worktree state, signing readiness
UC-02Browse historyUser walks a ref’s lineage: blocks in sequence order, patches within blocks, the unsealed queue on top; filters narrow the view
UC-03Inspect a patchUser opens one patch and reads it as a diff: operations, preimages, touched paths, author key, signature status
UC-04Compare two blocksUser selects two blocks (any refs) and sees the state-level difference between their trees
UC-05Review & commit worktree changesUser reviews worktree-vs-baseline changes, then commits the whole worktree into the queue with an AUTHOR signature
UC-06Review queue & sealUser reviews queued patches, then performs the seal ceremony (MAINTAINER key; explicit no-audit acknowledgement)
UC-07Materialize a checkoutUser plans a checkout of a ref (dry-run first), reviews the plan incl. any refusals, then materializes; separately plans/executes deletions
UC-08Manage branchesCreate a branch from a ref; close a branch; set the client-side focused ref
UC-09Manage tagsCreate a tag (with persisted message) targeting a ref or block; list tags
UC-10Roll back sealed historyUser previews a rollback, appends the inverse draft, verifies it, and seals — guided end-to-end
UC-11Merge with evidenceUser picks baseline + two sides, reads the evidence/plan, and executes when confluent
UC-12Understand a refusalAny refused operation opens an explanation: the witness(es), what they mean, what the user can and cannot do next
UC-13Exchange via bundleExport a ref to a bundle; verify a bundle offline; import one and see what arrived (received ref, objects, author keys)
UC-14Run the sync loopstikk walks both sides of summary → compare → have → build → accept → pending → seal, telling the user at each step which file to hand to whom
UC-15Review received history & adoptInspect remotes/ refs and received tags; adopt a maintainer key into trust (TOFU conflicts surfaced); adopt tags; merge received work
UC-16Verify & auditRun verify; browse the 14 stages, per-item findings, and three-valued signature outcomes; export the machine-readable report
UC-17RecoverSurface doctor findings; run the safe WAL-tail repair; inspect held locks with liveness info and clear one after explicit confirmation
UC-18Signing readinessSee which roles (AUTHOR / MAINTAINER) are usable in this session, which key ids are active, and whether the trust policy knows the maintainer key — without stikk ever storing a seed
UC-19Resume a sessionReopen stikk and land where they left off: repository, focused ref, view, filters
UC-20Inspect an artifact offlineOpen a bundle file with no repository present and browse what it claims to contain, with verify-level caveats displayed
UC-21Undo one blockUser picks a sealed block, sees file by file what putting it back would do, confirms once, and the reversal is recorded as a new change — history keeps both

1.3 Explicitly out of scope (v1)

IDExcludedRationale (prikk reality)
OS-1rebase, cherry-pick, amend, squash, reorder, any history rewritingSealed blocks are immutable; no core operations exist; contradicts prikk’s model rather than merely missing
OS-2In-tool conflict resolution, “mark resolved”, conflict-marker editingCore non-goal: merges refuse with evidence; resolution is a future core increment, not a UI feature
OS-3Hunk- or file-level stagingNo staging area exists; commit is whole-worktree (partial commit is UD-06, a core change)
OS-4Remote URIs, network transport, hosting/forge featuresprikk moves no bytes; exchange is file-artifact based by design
OS-5Git interoperability (import/export, .git reading)Not provided by core (history import is a proposed RFC 113 track)
OS-6GC / prune surfacesAppend-only no-GC store; nothing to expose beyond compact (which stikk surfaces under recovery, FR-105)
OS-7Displaying wall-clock times for historyprikk history carries no time. stikk must not fabricate chronology from file mtimes or import times as if it were history metadata
OS-8Direct .prikk/ reading/writing, repairs beyond doctor’s safe surfaceThe store’s layout is prikk’s authority; bypassing it voids every core guarantee
OS-9Multiple worktrees per repositoryOne worktree per repository in core
OS-10Telemetry / usage analyticsTrust-sensitive audience; see NFR-S05

2. Functional Requirements

Notation: each requirement is “stikk shall …”. [M/S/C] = v1 priority. (→ UD-x) marks a dependency on a prikk-core change; the FR text states the shipped degraded behaviour until it lands.

2.1 Repository discovery & opening (FR-001 …)

  • FR-001 [M] Open a prikk repository from a local filesystem path (explicit path, or upward discovery of .prikk/ from the current directory). No remote URIs exist to support.
  • FR-002 [M] On open, present an orientation summary: format acceptance, ref counts (local / received / closed), queue depth per active session, worktree dirty marker, last verify status if known, signing readiness (FR-104). (Read from prikk’s JSON since 2026-10-30, RFC 057, at prikk ≥ 0.43: Orientation is built from status-report-v1, which has carried every field it reads since that version; the prose parser stays for the floor’s band, 0.28–0.42. Nothing a user sees changed but three lines’ wording — the active-patch warning and an interrupted checkout are data in the JSON, with no sentence to show, so stikk words them and carries prikk’s numbers and commands exactly, and current_branch: null becomes stikk’s own “unresolved — prikk doctor can say why”. An equivalence suite leg reads each of five measured states both ways and compares every field.)
  • FR-003 [M] Refuse-and-explain unopenable targets: retired repository formats — prikk’s own migration message is surfaced verbatim and classified Environment, grounded on the stable no longer supports clause (RFC 017 §5, captured live: a real format-2 repository built with prikk 0.19.0, read by 0.33.0; prikk’s message says migration is not supported — there is no prikk migrate, and the classifier’s prior string agreed with itself, never with prikk); missing/foreign directories (classified Environment — confirmed via capture that the no such file arm catches this, not the differently-worded arm originally written for it, which no prikk path ever emits — correct by accident until RFC 017); and version skew between stikk and the prikk core in use (ASM-2).
  • FR-004 [S] Open a bundle file as a first-class read-only object with no repository present: show its declared ref, tip, object/author-key counts, and offline-verify result, always displaying prikk’s caveat that offline verification proves structure, not trust (UC-20).
  • FR-005 [S] Maintain a recent-repositories list (stored outside any repository; CON-4).
  • FR-006 [C] Open multiple repositories side by side (required by the sync loop’s two-sided narrative UC-14; degraded alternative: guided single-side mode).

2.2 History browsing (FR-010 …)

  • FR-010 [M] List a ref’s history in lineage order (block sequence via the RefState chain; patches in sealed order within each block), with the unsealed queue rendered as a visually distinct “not yet history” tier above the tip. Ordering is topological/sequential only (OS-7).

  • FR-011 [M] Present, per block row: block id (abbreviated, expandable), kind (Root/Normal/Merge/Repair/Import), patch count, sealing maintainer key id, update-seq; per patch row: patch id, author key id, purpose (normal/rollback-draft), operation summary (counts by type, touched paths).

  • FR-012 [M] Filter the history view by: ref; author key id; block kind; patch purpose; path touched (exact or prefix). (UD-01 retired at prikk 0.32 — RFC 015 F2) Message filtering is now possible for a repository whose patches carry one, but is not built by RFC 015: it is its own increment (RFC 015 decision 7), scoped against messages that may be absent for any pre-0.32 patch.

  • FR-013 [M] Free-text find over what exists: object ids (prefix), path names, tag names and tag messages, ref names. Content search inside blob bytes is [C] and must be labelled by cost (walks blob data). Amended 2026-11-21 (RFC 061 decision 6): not built. TU-05 claimed a / find key for it; no find exists, and the claim is withdrawn rather than carried as a key that does nothing. It gets its own RFC when wanted.

  • FR-014 [M] Show received refs (remotes/…) in the same browser, visually distinct, read-only, with their trust standing (blocks signed by adopted keys or not) summarized at the ref level. *(Measured 2026-09-13, RFC 026 — the ref picker merges branch list --all and tag list, and stikk_core::history::list_refs de-duplicates the two by name, keeping the tag entry. That guard was written defensively in 2026 against undocumented behaviour, and re-verification found it was doing more than avoiding a duplicate row. At prikk 0.28 the same tag appears in both reads with two different ids — branch list --all reports tags/v1 with its RefState id, tag list reports it with the block id a tag actually points at:

    branch list --all   tags/v1 2c83e0e4437efd08d9b1882bb92f126dcaeb0e22f7d3a3c64e5a48b68dd479ae
    tag list            tags/v1 5a1903a2ccb300cf683cd97dd41aa31ab4d9bc15fe8a36997beaf2af51873fee
    

    Keeping the tag entry is therefore what kept the right id on a row that would have looked correct either way. prikk stopped listing tag refs under branch list at 0.39, so the de-duplication is dead code above that — and it stays, because the floor is 0.28. The real-binary suite asserts the leak in both directions rather than only its absence, so the ≤ 0.38 path is exercised rather than assumed.)*

  • FR-015 [S] Show closed branches on demand (default hidden), rendered as closed, with the closure RefState visible in the chain.

  • FR-016 [S] From any block, show its ref-chain context: the RefState/RefUpdate entries that published it (the reflog-equivalent), including recovery-relevant fields (previous state id, update seq, publishing key id).

  • FR-017 [C] Graph view across refs sharing lineage (merge blocks connect two parents; mainline parent distinguished from adopted parent).

2.3 Inspection (FR-030 …)

  • FR-030 [M] Patch detail: every operation rendered as a human-readable diff — text-span edits shown as before/after with surrounding context (the preimage travels in the patch, so no worktree is needed); creates/deletes with content summary; binary replacements as old/new blob identity + size; permission changes as old/new mode. Raw operation view (exact fields, hashes, anchors) available for P-2/P-4. (Unblocked at prikk 0.36 — RFC 021 F1: prikk show <block-id|patch-id> --format json (show-report-v1) renders a patch’s operations, paths, and content, which is the surface this requirement has waited on since 0.1.0 under UD-09. The view itself is not built by RFC 021 (Decision 5: its own increment). One constraint that increment inherits, from RFC 021 F2: prikk’s edits are content-anchored spans, not line ranges — old_span_text/replacement_text, either of which may be empty. Rendering them as line diffs would be invention, and T-T4 forbids it; the span is what prikk knows.) Delivered 2026-10-13 (RFC 035), at prikk ≥ 0.39 — stikk’s JSON floor, not show-report-v1’s own 0.36, since stikk reads no JSON from prikk between 0.36 and 0.38 and the project owner ruled that band unoccupied. Patch detail opens from two places, each one read: Block detail, which now lists the block’s patches from its own show <block-id> report and opens one of them with no second read; and the Queue, which gained a selection and opens a queued patch with one show <patch-id>. Every operation is rendered under prikk’s own kind word with prikk’s own fields — spans labelled as spans, never line numbers or context; a create’s content and mode; a delete’s preimage; a binary replacement’s blob ids and sizes and never its bytes; both modes of a permission change, as octal beside prikk’s integers in the raw view; and a rename’s two paths with the AUTHOR key that asserted it. f toggles the raw view — prikk’s fields exactly as prikk gave them, which is also the only honest place an unresolved_node_id is legible. Content is rendered byte-faithfully: every content row is quoted and escaped, one row per source line with the line’s own terminator inside the quotes, and wrapped by hard-splitting rather than on whitespace — because a span edit is usually a whitespace edit, and a renderer that collapsed runs of spaces showed a re-indent, a tab turned into spaces or a removed trailing newline as no change at all (T-T4; review v1 §2.1 caught it). Two spans that differ in any byte never render identically — including bytes that do not show as themselves (review v2 §2): a bidirectional override (“Trojan Source”, CVE-2021-42574), a zero-width or default-ignorable character and any whitespace other than an ordinary space are written as \uXXXX, as a surrogate pair above U+FFFF, by one escape table in stikk-prikk that the rendered rows and the raw view share so the two spellings cannot drift. char::is_control() alone is Unicode category Cc and let every one of them through. Ordinary visible non-ASCII stays as itself, and the Glossary names the notation, because it is stikk’s own. The same Cc-only rule still applies to inert, which every other repository string passes through — paths, messages, ref names — and widening that is its own increment. A binary file’s create or delete shows its blob id and byte count and never its bytes, the same as replace-binary (review v1 §2.4: prikk’s content kinds are text, binary and unavailable, the last being a blob the object store does not hold — by design — whose id is still named). Content is bounded before it is rendered (one constant in stikk-core), cut at a char boundary, with the withheld UTF-8 byte count said out loud — never a silent truncation. A failed patch read costs only the patch list: the block’s own fields and the tip’s state files do not start depending on it. An unresolved path gets one sentence and no reason (prikk names no path for this operation, with the node id inert): stikk cannot know which of three causes applies. And where a block holds more than one patch, a node-addressed path is labelled as at the end of this block — because prikk resolves a sealed patch’s edit-text, replace-binary and change-perm against the state after all of the block’s patches, so patch 1 can be reported under a name a later patch gave the file, and a later delete can remove the path prikk had already given (A1 F7, measured at 0.46.0 and 0.51.0). stikk renders prikk’s value and labels it; it never corrects the name from a later patch’s rename. prikk fixed the resolution point in 0.52.0 (A2), which RFC 043 validated on 2026-10-15: at 0.52 and above show <block-id> resolves each patch’s path at that patch, so the label is banded below 0.52, where it is still true, rather than deleted.
  • FR-031 [M] Block detail: parents (mainline vs adopted for merge blocks), baseline claim for merges, state Merkle root, patch list, seal signature(s) and their verification standing.
  • FR-032 [M] File tree at a block: browse the replayed state (paths, kinds, modes, blob identities); open file content at that state. (Partly delivered 2026-10-14 (RFC 037 Handoff A), at prikk ≥ 0.46. Block detail lists the files present at any block — not only the ref tip — from prikk tree --ref <block-id> --format json (tree-listing-v1), with each file’s path and mode, and the total bytes as the sum of the entries’ sizes. stikk asks with the block’s own id, never the ref name, so the answer is about the block the reader opened rather than wherever the ref has since moved, and the reader refuses a report whose target_block_id is not the id it asked for — prikk answers target_block_id: null with entries: [] and exit 0 for an unpublished current branch, which a lax reader would have shown as a block with no files (T-T4). Below 0.46 nothing changes: checkout --patch-plan replays to a tip and nowhere else, so an older block’s files are not reported there — never an empty list — and the per-file mode is None, never 0. What is still not built: kind is carried verbatim but prikk emits only file (it refuses to author a symlink at 0.51, measured); blob identities are reported and not shown (content_id, on a binary entry only), as is encoding; and opening a file’s content at that state is not built, though prikk serves it (cat --path <p> --ref <block id>, the measurement that retired UD-10).)
  • FR-033 [M] Compare two blocks (same or different refs): state-level difference (added / removed / content-changed / mode-changed paths), each entry expandable to content diff. This is the range-diff equivalent. (Amended 2026-09-12, RFC 021 Q1 as amended 2026-09-09 — this is the one requirement the 0.34–0.38 window both widens and narrows, because prikk answered the content question and refused the comparison one. prikk diff is not coming: prikk states comparing two arbitrary points as a refusal, not a deferral — a materially more expensive question they have declined to answer (RFC 021 F3). So stikk composes what it can, and says which case it is in: (a) branch-tip comparison, in full — --content-path at each tip yields two contents prikk handed over, and comparing those is not invention; (b) same-ref range comparison, as state-level difference folded from the operations each block reports, plus each block’s own spans — honestly labelled as composed from reported operations, never presented as a byte-level diff stikk did not compute; (c) arbitrary block-to-block comparison stays blocked, on the new UD-10: --ref resolves a published branch only, so a block id is not addressable as a content root. The --content-path seam method is not added by RFC 021 — that is Compare’s own increment, which needs this design work rather than a re-baseline.) (Delivered 2026-10-14 (RFC 038), at prikk ≥ 0.46, for the three comparisons decision 3 names: History’s m-marked block against the selected one (ordered older → newer by prikk’s update_seq, whichever was marked first), History and Block detail‘s block against the previous block in this ref’s history — the next older row in the loaded lineage, named as exactly that and never as “the parent”, since a merge block has two parents and neither need be the row above it (measured at 0.51) — and Changes’ worktree against what commit would author against, which is the bare prikk diff. This RFC’s premise is that the 2026-09-12 amendment above is superseded: prikk diff compares any two points, including bare block ids, so neither the composed state-level fold nor UD-10 is needed. stikk computes no part of a comparison — no renumbering, no re-hunking, no rename inference: prikk’s unified hunks are shown as prikk wrote them, each body line as its marker plus its content quoted with RFC 035 A3’s notation and the terminator inside the quotes, so a CRLF change, a trailing-space edit and a missing final newline are each visible and no two lines differing in any byte render alike. prikk’s @@ header and its \ No newline at end of file are prikk’s words and are not quoted. Each entry is bounded by CONTENT_DISPLAY_BYTES with the withheld byte count said out loud (one measured hunk is 457 KB), minimal: false carries prikk’s note, a binary entry shows both sizes and content ids and never bytes, and unsupported_paths carry commit‘s refusal verbatim. Below 0.46, stikk says it compares from 0.46 on and spawns nothing.) (Delivered in full 2026-10-15 (RFC 041), at prikk ≥ 0.46. The fourth comparison — two refs — is chosen in the ref picker: m marks a ref, d compares the marked one with the selected one. No seam change: Comparison::Points already carried it, and measurement at 0.51 confirmed prikk takes ref names on both sides, swaps the entries when the pair is reversed, and accepts a tag and a received ref (remotes/…, read and not adopted) as ordinary sides. Two refs have no lineage order, so stikk states the one the reader chose — marked → selected — rather than inventing one, and names the block each ref resolved to beside it, because a ref can move and a block cannot; r re-asks by name and the block ids follow. The unpublished current branch cannot be a side: it has no block, and measured at 0.51 prikk answers its name with exit 1, “ref heads/main does not exist in this repository” — false and alarming for a branch the reader is standing on — so stikk refuses the pair in its own words and points at Changes’ d. So FR-033 now has all four comparisons: two blocks in one lineage, a block against the previous one, the worktree against what commit would author, and two refs.)
  • FR-034 [M] Worktree-vs-baseline view for the focused ref: changed / missing / untracked / unsupported paths with per-file diffs. (→ UD-03, resolved; → UD-09 for the per-file diffs) Core’s worktree-status was broken on ordinary repositories at 0.27.x and is verified fixed at prikk 0.28 (RFC 008), so stikk uses it directly, version-gated at ≥ 0.28 and explaining rather than running it below that. The imagined replay/plan workaround is superseded: it was never feasible (it needs per-file baseline content prikk does not expose, and would require stikk to read worktree bytes directly, against CON-1). The view is path-level; per-file content diffs waited on UD-09’s content half, which retires at prikk 0.36 (RFC 021 F1 — show --format json carries operation content). The view stays path-level until its own increment: RFC 021 raised the ceiling and captured the evidence, and deliberately built no view (Decision 5). When prikk reports that the active WAL holds queued patches for a different ref, stikk must carry prikk’s own warning verbatim — paths listed “untracked” there may be committed-but-unsealed work (RFC 009 F4). (prikk 0.38 additionally prints live rename declarations: N unconditionally, with indented <old> -> <new> lines under it when N > 0. Those are declarations, not change entries — stikk read them as entries and fabricated a change for a file that does not exist until RFC 021 F0 scoped the entry scan to its section.. Re-verified at 0.41.0 (RFC 026): unchanged, and one line is new — refused paths: N now sits beside unsupported paths:, and prikk’s own source says why they are separate: “an unrepresentable name and an unauthorable entry are different facts, and a path can be one without the other.” Individual entries carry a [refused: <reason>] suffix. stikk’s parser is unaffected — prikk kept the entry line’s first word as the change kind deliberately, “so a consumer splitting on it reads exactly what it read before” — but the count is unparsed and the suffix is shown only as part of the entry’s verbatim detail Amended 2026-09-13 (RFC 027, accepted): the parser was not unaffected in one respect this note missed — prikk has always named an unrepresentable path unsupported-path, stikk matched unsupported and discarded the line, so since 0.1.0 the Changes view has counted unsupported paths and listed none (RFC 027 F0). At prikk ≥ 0.39 the view reads worktree-status --format json, marks an entry commit would refuse as refused with prikk’s reason verbatim, and counts refusals; below 0.39 it says the verdict is unreported, never zero.) Built 2026-09-16 (RFC 032): the Changes view marks a declared rename (prikk mv) only when prikk lists both halves — a missing entry at the source and an untracked entry at the destination — annotating prikk’s two rows as one rename, counting renames N at prikk ≥ 0.38, and saying once that prikk does not report whether a renamed file’s content also changed — withheld while prikk reports that commit would refuse an entry, since prikk would then author nothing (amendment A7); below prikk 0.39 the verdict is unreported, never a zero, and the sentence stays. A declaration prikk will not author as a rename is named, never counted: its destination is not a file in the worktree (prikk records a deletion), or its source is present again (prikk refuses to commit; where the destination is gone too, prikk mv {new} {old} drops it, as measured at 0.42.0). The untracked filter never hides a paired destination. A ref with no published history — absent from prikk’s refs() — is named in place of “against baseline”, with words chosen from prikk’s queue for that ref. Until prikk 0.43.0 reports each declaration’s resolution, this is inference from the report, stated as such. Superseded 2026-09-22 (RFC 034 decision 4): at prikk ≥ 0.44 the analysis is prikk’s own resolution, not stikk’s inference — a destination that is gone or is a directory (deletion), one that is ignored (deletion-ignored), a source that was never tracked (never-tracked), a rename, or one prikk will refuse — each with its own sentence, because prikk now says why. A resolved rename also carries what prikk reports it does to content and mode, and says nothing where prikk reports null, since unknown is not “unchanged”. 0.43 is skipped deliberately: its classifier resolved a directory destination as rename while commit recorded a deletion (measured). Below 0.44 the inference stands, with one correction: where the report does not list the destination, stikk says only that — an ignored destination is in the worktree, and the report cannot tell the two apart. A checkout or branch switch that stopped part-way (prikk ≥ 0.43) is shown on Orientation in prikk’s own words, which name both ways out; reads are unaffected. (The per-file diff this entry waited on is delivered 2026-10-14 (RFC 038), beside this view rather than inside it: the Changes view stays path-level, and d opens Compare on the worktree against what commit would author against — the bare prikk diff, with prikk’s own hunks. Its foot row said per-file content diff awaits prikk support (UD-09), which prikk diff made false at prikk 0.46 (F4, C-T2b); it now names the key, or, below the band, says in stikk’s own voice that stikk compares from 0.46 on.)
  • FR-035 [S] Signature inspector on any signed object: role, key id, algorithm, and the outcome with a plain-language explanation of what it means and does not mean (TOFU continuity, not identity). The outcome has three user-facing states that stikk must keep distinct: Sound (verifies against recorded key material), Unverifiable (no key material recorded — non-blocking; verify still passes; must never be shown as a pass/green state — prikk’s AuthorSignatureVerification::Unverifiable), and a verification failure (blocking — surfaced by prikk as an error/refusal, not a value). stikk must not collapse Unverifiable into either of the other two.
  • FR-036 [C] Blob detail: kind (text/binary/snapshot), size, referencing patches/blocks (“where is this content used?”).

2.4 Working cycle: commit, queue, seal, checkout (FR-050 …)

  • FR-050 [M] Commit: review the whole-worktree change set (FR-034), require a message input (see UD-01 for its fate), require AUTHOR signing readiness, then queue the patch. Surface prikk’s own result summary (patch id, operation counts, threshold warnings) faithfully. (Carried 2026-09-12, RFC 021 §6 — open question for RFC 014’s own follow-up, deliberately not settled here. Verified at prikk 0.38.0: a symlink in the worktree is reported untracked while unsupported paths: 0, and its presence then blocks every commit — error: integrity error: worktree authoring: unsupported symlink authoring: <path>: worktree symlink authoring is out of scope. So worktree-status did not mark the path that commit would refuse over, and a user saw a normal-looking untracked file and an unexplained blocked commit. Re-verified at prikk 0.41.0 (RFC 026), and prikk has answered it: the same symlink is still untracked with unsupported paths: 0, but the report now carries refused paths: 1 and marks the entry itself — untracked link.txt — worktree file is not in the baseline [refused: precondition not met: link.txt: worktree symlink authoring is out of scope]. The information stikk needed is now in the report it already reads; what stikk does with it is not yet built — the count is unparsed and the [refused: …] suffix reaches the Changes view only as trailing text inside the entry’s verbatim detail. stikk’s current behaviour is honest — the refusal degrades to a verbatim Refusal, prikk’s own words, pinned by a captured test in classify/tests.rs — but whether commit’s preview should prevent this the way it prevents cross-ref and clean-worktree (RFC 014 decision 1) depends on what prikk decides to do with its own report; letter 006 §4 filed it. Prevention on a shape prikk may be about to change would be stikk guessing, so this stays reported-not-prevented until prikk answers. Decided 2026-09-13 (RFC 027, accepted, Q1 ruled (b)): at prikk ≥ 0.39, where worktree-status reports commit’s own authoring verdict per entry, commit is unavailable with a reason whenever an entry is refused — the reason lists each refused path with prikk’s words verbatim, and its next steps are the measured ones: remove or replace the path, or list it in .prikkignore, which is then part of the commit. Below 0.39 commit is offered as before and prikk’s refusal is shown verbatim. unsupported-path entries, which prikk marks authored while commit refuses them, are not prevented on stikk’s inference; prikk has been asked. Amended 2026-09-15 (RFC 030): a confirmed commit authors what its preview showed only as far as stikk can check. Immediately before prikk commit, the confirmation re-reads what prikk reports about the worktree for the previewed ref — which paths are listed, their status, prikk’s verdict on each, and prikk’s rename declarations — and a difference makes the confirmation stale with nothing committed; a change to prikk’s current branch at ≥ 0.42 makes it stale through the change token. The limits, stated rather than implied away: prikk’s report is path-level, so a further edit to a file already listed as modified is not detected; and a window remains between that re-check and prikk commit itself, in which prikk authors whatever the worktree then holds.) Built 2026-09-16 (RFC 032): commit’s confirmation counts renames N over paired declared renames only, says once that each is also counted as one missing and one untracked path, names each declaration prikk will not author as a rename, and names a target with no published history under the targets (“this would be its first commit”, or that it adds to the ref’s queued patches). A clean worktree whose declaration’s source is back is blocked as clean with that notice, because prikk would refuse the commit. Superseded 2026-09-22 (RFC 034 decision 4): at prikk ≥ 0.44 a declaration prikk itself would refuse makes commit unavailable, carrying prikk’s verbatim refusal, which already names prikk’s ways out — RFC 027’s rule (prevention only on prikk’s own verdict) applied to declarations, which RFC 032 could only warn about. It is checked before the clean-worktree block, because the row that provokes it reports clean: true and exits 0. refused_declaration_count and refused_count are different facts and neither implies the other. A checkout that stopped part-way also makes the preview unavailable, in prikk’s own sentence.
  • FR-051 [M] Queue review: show the queue’s depth and the ref it targets, the active-patch warn/limit thresholds as they apply, and make “queued, not yet history” status unmistakable. Amended 2026-09-06: this clause previously required listing queued patches with full patch detail (FR-030), which is not satisfiable — prikk reports the active WAL only as queued patches: N targeting <ref> and exposes no queued-patch ids (verified at 0.32.0; RFC 013 F2 recorded the same ceiling for the seal ceremony, and RFC 015’s log enumeration covers sealed patches only, never the WAL). FR-030 itself also remains blocked on UD-09’s content half. The knowable half is delivered, distributed rather than in a dedicated view: the depth and target ref in Orientation (RFC 009 F1), the “not yet history” tier in History (RFC 006), and prikk’s own threshold warning transported into the commit preview (RFC 014). A dedicated Queue view (TU-01) becomes worth building when prikk grows queued-patch enumeration — the upstream ask filed by RFC 013 — and not before, since it would list nothing. Re-amended 2026-09-12 (RFC 021 §5): the condition above was met — prikk 0.35 shipped status --format json (status-report-v1), which enumerates the queue (patches[] with patch_id and per-operation kind/paths) and carries threshold_status/warn_threshold/hard_limit as data rather than leaving stikk to re-derive thresholds from environment variables. The original clause is therefore satisfiable in full, and the amendment above is kept rather than deleted because the history is the point: it records what was asked upstream, and 0.35 is the release that answered it. The Queue view is still not built — RFC 021 raised the ceiling and captured the evidence only (Decision 5); a capture of the awkward unresolved_node_id case is committed in parse/tests.rs for that increment to start from. The floor is 0.28, so the view must be version-conditional: below 0.35 the queue is still only a count and a target ref. Delivered 2026-09-15 (RFC 028 Handoff A): the Queue view is built, at prikk ≥ 0.39. It reads status --format json and lists each queued patch’s id and operations (the kind verbatim, paths, a rename as from → to with its asserting key id, an unresolved node named as one), the depth, the target ref or prikk’s missing/malformed metadata status, and the thresholds in stikk’s words with prikk’s numbers. At ≥ 0.42 it shows each patch’s message; at 0.39–0.41 it says once that prikk does not report a queued patch’s message or content. What it does not show inline: a queued patch’s content — Enter now opens it in Patch detail (FR-030, RFC 035, which also gave this view a selection to open it from); and below 0.39 — including 0.35–0.38, a band stikk does not read — it shows the depth and target and says prikk does not list queued patches, never an empty list. History’s queue tier now says whose queue it is.
  • FR-052 [M] Seal ceremony: an explicit, multi-step confirmation that (a) shows how many patches will seal into one block, which ref they target, and the block that results — amended 2026-09-05 (RFC 013 F2): this clause previously required showing “exactly which patches”, which is not satisfiable. prikk exposes the queued count and its target ref (status: queued patches: N targeting <ref>) and nothing that enumerates queued patch ids; sync pending lists accepted (received) patches, a different thing. The ceremony states what it knows and says plainly that it cannot enumerate them, rather than under-delivering against a requirement quietly. An enumeration surface is filed upstream, ranked below UD-09’s content surface — re-amended 2026-09-12 (RFC 021 §5): the enumeration arrived at prikk 0.35 (status --format json lists each queued patch’s id and operations), so “exactly which patches” is satisfiable again and the ceremony may name them. The amendment above is kept rather than deleted: it records what the ceremony honestly said when it could not, and which release changed the answer. The ceremony as shipped by RFC 016 still says it cannot enumerate; updating it is the seal ceremony’s own follow-up, not RFC 021’s, and it must stay version-conditional — below 0.35, and down to the 0.28 floor, the count and target ref remain all prikk reports. Delivered 2026-09-15 (RFC 028 Handoff B): at prikk ≥ 0.39 the confirmation names each patch it will freeze — its short id, and at ≥ 0.42 its message — from the same queue read as the count, directly under the count. When the card cannot hold every row, it shows as many as fit and a remainder line saying how many more there are and where to see them (the Queue view); the consequence, its trust-refusal warning and the affordances never give up room to it. At 0.39–0.41 it says prikk does not report a queued patch’s message; below 0.39 it says prikk does not list queued patches — (b) requires MAINTAINER signing readiness, (c) requires an explicit no-audit acknowledgement while core requires --allow-no-audit, presented as informed consent, not a pre-ticked box.
  • FR-053 [M] Checkout, plan-first: every materialization is previewed (files to write, conflicts that will refuse, snapshot-vs-patch route) before any write; the user confirms the plan, not the idea. Refused overwrites are explained per file (UC-12). (Delivered for branch switch 2026-10-17, RFC 045: at prikk ≥ 0.46, Switch to this branch in the ref picker previews the exact files the switch will write and delete, from stikk’s own Compare read inside the preview, and the user confirms that plan. A plan that is not whole — an unmeasured status word, or any unsupported path — blocks rather than hiding what it cannot place. prikk’s refusals are verbatim and every one of them writes nothing. Checkout of a block or a path is not delivered; branch switch takes a branch.) (Its non-destructive half delivered 2026-10-29, RFC 053, at prikk ≥ 0.54: from Block detail, Save this file, as it was here saves one file as it was at that block and Save every file at this block saves every file at it into a new folder — each previewed at Tier Two with no key, outside the repository and never over an existing path, both rules stikk’s own and decided before prikk is asked anything. Nothing in the repository or the worktree changes. Materializing into the worktree is still not delivered: that is this requirement’s destructive half, and FR-054’s.)
  • FR-054 [M] Deletion flow mirrors core’s separation: a distinct deletion plan (with per-path safety verdicts) and a distinct confirmed execution; unsafe candidates are shown and never auto-resolved.
  • FR-055 [S] Focused-ref model: stikk maintains a per-repository client-side focused ref (baseline for FR-034, default target for commit/seal/checkout). Switching focus never touches the worktree by itself; the UI must never imply a HEAD moved (no such thing exists). (Amended 2026-09-13, RFC 029 decision 5: true below prikk 0.42. From 0.42 prikk has a current-branch pointer — a default for --ref, not a HEAD and not an authority. Switching stikk’s focus still never touches the worktree, and the UI still never implies a HEAD moved.) (Amended 2026-09-15, RFC 029 Q1 ruled (b): at prikk ≥ 0.42 stikk opens focused on prikk’s current branch, read from status, and shows prikk’s beside its focus as prikk's default: <branch> when the two differ. Below 0.42, or when prikk’s pointer is unresolved, stikk opens on heads/main only if it is published, and otherwise with no ref focused and the ref picker open. Focus is resolved once, on the first successful read, and a later read never moves it. Switching stikk’s focus never moves prikk’s current branch, and never touches the worktree. Commit and seal confirmations name both refs when they differ.) (Amended 2026-10-17, RFC 045 decision 8: a successful branch switch moves stikk’s focus to the branch switched to. That is not a read moving focus — it is the user’s own action, and leaving History and Changes on the branch they left would describe a worktree that is no longer its files.)
  • FR-056 [C] Partial-scope commit (pathspec). (→ UD-06) Absent core support, out of v1 (OS-3); the commit view must make “commits are whole-worktree” explicit.

2.5 Refs: branches & tags (FR-070 …)

  • FR-070 [M] Branch create (name validation feedback incl. case-collision refusals surfaced with prikk’s reason; --from any ref), branch list (FR-014/015 presentation), branch close with an explanation of closure semantics (pointer retained, history retained, reopenable only by a future core verb — none exists today). (Delivered 2026-10-17, RFC 044: create and close delivered at prikk ≥ 0.42, preview-first at Publication’s tier, with prikk’s refusals verbatim; stikk adds no naming rules of its own, and the branch the repository is on is never offered for closing (F3). Switching is RFC 045.)
  • FR-071 [M] Tag create targeting a ref or block, with message (persisted by core); tag list. Tag deletion does not exist and must not be offered. (Delivered 2026-10-17, RFC 044: tag create delivered at prikk ≥ 0.42, targeting a ref or a block id, with an optional message — an empty one sends no -m.)
  • FR-072 [S] Received-tag review and adoption flow (sync tags / adopt-tag): show the sender’s signature standing, require MAINTAINER confirmation, explain that adoption re-signs under the local key.

2.6 Merge & rollback (FR-080 …)

  • FR-080 [M] Merge evidence browser: for baseline + left + right (blocks or refs, incl. received refs), render the evidence report — outcome, per-pair classifications, and every conflict witness with kind, side/op identification, and a plain-language gloss per witness kind (12 kinds; the glossary is a stikk asset). (Partly delivered 2026-10-19, RFC 047: at prikk ≥ 0.42, m marks a branch in the ref picker and Merge plan on another opens the Merge plan view: prikk’s own plan for merging the marked branch into the selected one, shown verbatim and inert. The evidence report is prose only — --format json is a usage error (F1) — so stikk reads one line of it, evidence outcome:, and parses nothing else; a missing, repeated or unknown word is refused rather than guessed (UD-02). The per-witness glosses are not delivered: prikk’s witness lines are shown as prikk wrote them, with no stikk glossary over them. The baseline is stikk’s own, under FR-084.)
  • FR-081 [M] Merge plan view: what would seal (adopted patches, resulting block shape) when confluent. (Delivered 2026-10-19, RFC 047: the Merge plan view shows prikk’s plan for the pair — whichever of the eight outcomes it carries, not only Confluent — with the two branch names and the baseline stikk found. Executing the merge is not in this increment: nothing on the view acts, and the view says nothing about a key that does nothing.)
  • FR-082 [M] Merge execution: allowed only from a currently-confluent evidence state; requires MAINTAINER readiness + explicit confirmation; on core refusal (e.g., ref advanced meanwhile), re-run evidence and re-present rather than retrying silently. (Delivered 2026-10-19, RFC 047: Enter on the Merge plan view, at prikk ≥ 0.42, preview-first at Publication’s tier with MAINTAINER readiness checked before prikk runs. The preview re-reads everything — every guard, the baseline and prikk’s plan — so a plan that stopped being Confluent, a baseline that moved, or a branch that became the current one all block rather than reaching prikk. The card labels its rows from, into, baseline and from’s tip, opens its sentence with prikk’s verdict in stikk’s words, and keeps prikk’s plan verbatim beneath. No automatic re-run: a refusal is shown and the reader decides, which is NFR-S04’s rule and is why this does not re-present by itself. After success prikk’s lines are shown verbatim and stikk adds one line — the worktree is unchanged, and Switch to this branch goes to the merged branch.)
  • FR-083 [M] Rollback, guided end-to-end (UC-10): preview (what the inverse will do) → append draft (AUTHOR-signed, purpose-tagged) → draft verification result → seal ceremony. Each stage shows core’s own artifacts (inverse operation summary, draft patch id); undoing a single block is FR-085, which is a different operation and not a rollback.
  • FR-084 [S] Merge-base assistance: since core requires an explicit baseline block, stikk computes and proposes common-ancestor candidates from lineage, clearly labelled as proposals the user confirms (core re-derives and checks the claim at verify time). (Delivered, narrowly, 2026-10-19, RFC 047: stikk names one baseline and only where it is provably the merge base — the latest block both mainline lineages list, with no Merge block above it on either side. prikk’s log reports kind and parent_count but no parent ids (F2), so there is nothing to follow past a merge; rather than label a guess a proposal, stikk declines and says why. A wrong baseline is not a weaker answer but a wrong one: measured, a baseline older than the true merge base turned a confluent pair into a Conflict. A list of candidates, and a baseline the user picks, are not delivered.)
  • FR-085 [S] Undo one block (UC-21): preview what goes back, confirm once, and record the undo as an ordinary commit. History is never rewritten (CON-3). It sits beside FR-083, which stays prikk’s whole-branch rollback; stikk never calls this a rollback. (Delivered 2026-10-31, RFC 058: Undo this block, on the selected block in History or in its detail, at prikk ≥ 0.54, on the branch the repository is on. stikk inverts prikk’s own diff --from <parent> --to <block> in the worktree — cat --output for the earlier bytes, prikk mv for a rename back, the diff entry’s own from.mode for the mode — and then commits. Measured at 0.54.1 and 0.55.0: the inverse of a block that did every status prikk reports gives a tip identical to its parent, every path, mode and byte, with verify passing. Tier Three with AUTHOR readiness, previewed file by file, and eight guards that each write nothing: a worktree that is not clean (new files included — a commit here records the whole worktree, measured), queued work, a merge, the first block on the branch, a later block that changed the same paths, something already where a file would go back (asked of the filesystem, since .prikkignore hides a path from worktree-status), a path .prikkignore would keep out of the undo’s own commit, and an entry stikk cannot invert exactly (Windows’s two rows among them, F5). The first operation that writes worktree files itself (C-T4f): every earlier file is fetched outside the repository before the worktree is touched, and a failure after that commits nothing and names the paths it changed. Not delivered: undoing a merge, several blocks at once, a block on another branch, or sealing automatically.)

2.7 Exchange: bundles & sync (FR-090 …)

  • FR-090 [M] Bundle export (ref → file) with destination-collision and durability semantics delegated to core; show the export report (objects, author keys). (Delivered 2026-10-21, RFC 050 Handoff B: Export it to a bundle file, in the ref picker, on your own open published branch, at prikk ≥ 0.53. Preview-first at Exchange’s tier — Tier Two, and no key, because an export signs nothing. The prompt is prefilled with the repository’s parent, the branch’s last segment and the short tip. Two destination rules are stikk’s own: never inside the repository (C-E2’s resolved check — the bundle would sit in the worktree as an untracked file the next commit captures) and never over an existing file (prikk refuses it too without --force, which stikk never passes; stikk says it first and names what to do). Destination collision is therefore not delegated to core as the line above says: stikk answers it, and prikk’s refusal is the fallback. A missing directory is prikk’s refusal, verbatim. Tags, received refs, closed branches and the unpublished row are declined in stikk’s words, in the picker and again inside the preview. The report is prikk’s lines verbatim.)
  • FR-091 [M] Bundle verify (offline) and import, rendering core’s reports and its trust caveats verbatim; after import, land the user on the received ref’s history (FR-014). (Partly delivered 2026-10-21, RFC 050 Handoff A: the verify half, and prikk’s preview of what importing would change. o, wherever a repository is open, asks for a path and opens the Bundle view at prikk ≥ 0.53: prikk’s verification verbatim — its caveat that “a verified bundle is not yet a trusted one” included — or prikk’s refusal verbatim and nothing else, since a file prikk will not read has nothing to preview. Beside it, prikk’s bundle preview against the local branch of the bundle’s own name, restated as one sentence of stikk’s per connectivity and conflict, with prikk’s replay error quoted beneath where there is one, the effects path by path, and the recorded key ids with prikk’s continuity note — never as a trust claim. Nothing is written: import is Handoff B, and with it the landing on the received ref’s history.) (Completed 2026-10-21, RFC 050 Handoff B: Import this bundle, on the Bundle view, at Tier Two and with no key, offered only where prikk’s verification carried a readable tip block: line. prikk’s report is rendered verbatim — its “no local ref was created or advanced, and no MAINTAINER key was trusted” note included — and focus moves to the received branch with its History open, as this line asks. stikk adds two guards prikk has not got (F2, F3): a bundle already received changes nothing, and a bundle older than what was received would move remotes/… back to an older block and hide newer work — prikk does it silently and reports an ordinary import. Both decline without spawning bundle import. Not delivered: adopting a received branch (a merge), trusting its sealer, and sync.)
  • FR-092 [M] Sync loop guidance (UC-14): a stateful checklist walking the user through the full negotiation as the sender or receiver, generating/consuming the right artifact files in the right order, and stating at each hand-off which file goes to the other side. Artifact size/count limits surfaced before building.
  • FR-093 [M] Pending-claims view (sync pending): accepted-but-unsealed patches with their claims; seal-from-claim flow with the same ceremony rigor as FR-052; batch behaviour (stops at first failure) explained before execution.
  • FR-094 [S] Exchange dashboard per peer-ref: what we have vs. what the last summary/have-list said, so Marta can see divergence at a glance without decoding files by hand.

2.8 Integrity, trust & recovery (FR-100 …)

  • FR-100 [M] Verify runner & report browser: every stage prikk reports, with status; per-item findings grouped by object/ref; warnings vs errors distinguished exactly as core does; three-valued author-signature outcomes explained (FR-035). Machine-readable export passes through core’s verify --format json. Amended 2026-10-15 (RFC 040 F4): partly delivered. The stage count above said “all 14 stages”, written when prikk had 14; prikk 0.51 reports 17 and prikk 0.39 reports 14 (both measured), so the text now says what it should always have said — every stage prikk reports, with no count or name written down anywhere in stikk.

    ClauseStateWhy
    Every stage with its statusmet (RFC 040)verify-report-v1 carries one entry per stage, in prikk’s order
    Per-item findings grouped by object and refnot availableprikk’s emitter puts item-level findings deliberately outside verify-report-v1 (RFC 040 F3). The item-failure condition says “see item outcomes above”, and in JSON there is no “above” — they exist only in the prose report
    Warnings distinguished from errorsnot availablethe JSON has no warnings at all; the prose does
    Three-valued author-signature outcomesnot availablethe “unverifiable author signatures: N” count is prose-only (F3)
    Machine-readable exportmet (RFC 040)the raw view (f) is prikk’s own report, bounded and unaltered

    stikk does not parse prose to close these. It never has for a new surface, and prikk’s own integrity reference calls the prose “current CLI vocabulary, not a stable machine-readable schema”. Instead Verify always shows a standing sentence naming where those answers really are (RFC 040 decision 3), so prikk’s dead pointer becomes a live one. The question of whether item outcomes could fit verify-report-v1 additively is held for the next necessary letter to prikk (RFC 040 decision 6).

  • FR-101 [M] Doctor view: findings with core’s codes and recommendations; the one safe repair (WAL-tail truncation) executable after confirmation showing exactly what will be truncated and which patch ids survive.

  • FR-102 [M] Lock inspector: held locks with kind, recorded PID, and advisory liveness exactly as core reports it (positive = reliable refusal, negative = not authorization); clearing a lock requires typed confirmation and shows core’s warning; stikk never auto-clears (NFR-S04).

  • FR-103 [M] Trust management: adopted maintainer keys list; add/remove with TOFU semantics surfaced — a changed key under a known id is refused by core and stikk must present this as the security event it is, not a generic error. Amended 2026-09-06 (RFC 016 F3): the list half is not satisfiable on prikk 0.28–0.33 — prikk trust maintainer offers only add/remove, no way to enumerate adopted keys, and verify’s sealed-block <id>: <key_id> output is historical signer attribution, not current policy (a revoked key still prints), and does not exist before a repository’s first seal — exactly when the question matters. The upstream ask is filed, accepted and ruled (prikk RFC 138: both prikk trust maintainer list and a check --key-id fallback, with --format json, and check exits 0 for a negative answer) but unreleased; stikk designs against released tags only (RFC 009’s own lesson). Even once it ships, stikk’s support floor (ASM-2, prikk ≥ 0.28) keeps the unknown state permanently reachable for every session on a version below it — this is version-conditional, not a gap awaiting closure. Until then, stikk represents adoption as a three-valued MaintainerReadiness (ready / not ready / unknown, RFC 016 §3) rather than claiming a list it cannot produce; the add/remove/TOFU half of this requirement is unaffected and ships as written. Re-amended 2026-09-12 (RFC 021 §5): prikk RFC 138 shipped in 0.34.0 — prikk trust maintainer list and check --key-id both exist, both take --format json, and check exits 0 whichever way the answer comes out (so a negative answer is data, not a failure). The list half is satisfiable at ≥ 0.34, and MaintainerReadiness::Ready is constructible there for the first time. The paragraph above stands unchanged as the record of what was true at 0.28–0.33 and why the three-valued type exists — and that type does not now collapse to two: stikk’s floor is 0.28 (ASM-2), so Unknown stays permanently reachable for every session on 0.28–0.33, exactly as that paragraph predicted. This is the version-conditional case it described arriving, not the gap closing. RFC 021 builds none of it (Decision 5): no seam method for trust maintainer list is added, and the badge still reads ? on every version until the increment that reads it lands. Re-amended 2026-09-13 (RFC 026 B, shipped in 0.6.0): MaintainerReadiness is removed and replaced by RoleReadiness, one per role, mirroring prikk ≥ 0.41’s key status binding vocabulary — not-adopted is now a named, withholding state, and Unknown survives as the ≤ 0.39 band’s answer exactly as the paragraphs above predicted. (Its read half delivered 2026-10-29, RFC 054, at prikk ≥ 0.54, where trust maintainer list --format json finally answers: a Trust view on t lists the adopted maintainer keys in prikk’s order with yours marked — id and public key both matching key status’s maintainer role — and the bundle cards say beside each sealer which adopted key, if any, its id names. Read-only: no key material beyond ids and public keys is shown, key status’s path field is not displayed, and an untrusted sealer declines nothing. Add, remove and the TOFU security event are delivered 2026-10-29 (RFC 056), at prikk ≥ 0.54: Adopt a key in the Trust view adopts a maintainer key and Remove this key removes the selected one, each previewed and confirmed by typing the key id — stikk’s first Tier Three Typed operations, and neither needs a key of your own. stikk checks the public key’s shape and the id’s before prikk is asked; an id already adopted under a different key is shown as the security event it is, with both public keys and no confirmation offered at all; the remove card says that removing a key which sealed this history makes Verify fail it until the same key is adopted again under the same id, and says so for your own key too. A refused adopt is prikk’s own words under stikk’s heading, parsed by nothing. Still undelivered: adopting a received tag (FR-072), author keys, and counting the blocks a removal affects — log-report-v1 does not say which key sealed each block, so stikk says if rather than a number. A card says what the id names and no more, because a bundle records only a name: sealed_by is the key_id string out of the signature envelope, checked against nothing, so a sender can seal under an id the receiver trusts and both preview and import run clean (measured at 0.55.0). Beneath the rows the card says so, and says where it is checked — Verify after import is where prikk tests each signature against the key trusted here, and fails it (publication-trust).) (Delivered 2026-11-19, RFC 063, at prikk ≥ 0.56: prikk now checks each of a bundle’s seals itself, against the keys this repository trusts, and says so in the preview — so the card shows prikk’s answer per seal (the signature checks out / no key is trusted under this id, so it cannot be checked here / a key is trusted under this id, and this signature is not that key’s) rather than stikk’s match on a name, and the sentence above is shown only below 0.56. At ≥ 0.58 the preview also says what an import would be refused for, so stikk withholds Import and lists prikk’s reasons verbatim; at 0.56–0.57 an invalid seal withholds it on its own, since prikk’s refusal list is partial there. A seal that fails against a trusted key, and a removed id offered a different key, are both shown as the security event they are, in the same Two keys, one id card — one renderer, three callers. The two sentences before this paragraph stay true of 0.55: there, that import ran clean and only verify caught it. From 0.56 prikk refuses it (measured, measure063-0.58.txt §D1). Still undelivered: adopting a received tag (FR-072), author keys, and counting the blocks a removal affects.)

  • FR-104 [M] Signing readiness (UC-18): per-role status (key id present? seed material available to the session? maintainer key adopted in trust policy?) with guidance drawn from the security-setup doc; stikk reads key state from the environment/session and never persists or displays seed material (NFR-S03). Example/tutorial seeds are recognized and flagged as unsafe for real use.

  • FR-105 [S] Compaction surface: show compactable containers with plan-only preview; execute per target after confirmation.

  • FR-106 [S] Concurrent-change awareness: stikk detects external repository changes (another CLI/process) and refreshes views rather than acting on stale state; lock conflicts from core are presented as “another writer is active”, never as corruption. Built 2026-09-15 (RFC 031): stikk stamps a change token with every Orientation read, and checks it silently when the terminal reports focus returning and every 5 seconds while idle — never while a request of its own is running or an Orientation read is pending, so its own commit or seal is never taken for an outside change. On a difference it refreshes Orientation and the top screen in place and shows OP-04’s notice; an open commit or seal confirmation becomes stale at once. r refreshes History, the Queue, Changes and the tip’s Block detail. Limit: the token does not include the worktree, so an edit to a file is not noticed this way — it is caught at Enter (RFC 030), or by r.

2.9 Refusal explanation (FR-110 …)

  • FR-110 [M] Every core refusal reaching the user carries: (a) prikk’s original message verbatim (support-grade fidelity, NFR-I03), (b) a plain-language explanation, (c) next-step options that actually exist (e.g., for a non-confluent merge: inspect evidence, choose a different baseline, wait for the other side — never “resolve conflicts”, which does not exist).
  • FR-111 [M] A witness glossary: every conflict-witness kind and verify finding code has a maintained explanation page reachable from wherever it appears.
  • FR-112 [S] Refusal history for the session, so a user can revisit an explanation after closing it.

2.10 Session & cross-cutting UX (FR-120 …)

  • FR-120 [M] Preview-first: every mutating operation offers a dry-run view before execution wherever core provides one (checkout plans, deletion plans, merge plan, rollback preview, compaction plan) — and stikk must not add mutating operations that bypass an available preview.
  • FR-121 [M] Confirmation tiers: read operations free; queue-affecting operations confirmed; history-publishing (seal, merge, rollback-seal, tag/branch publication, trust changes, lock clearing) confirmed with operation-specific summaries. A global read-only mode locks tier 2–3 out entirely (NFR-S01).
  • FR-122 [M] Session persistence: per-repository focused ref, last view, filters, and layout persist across restarts; stored outside the repository (CON-4); absence of stored state degrades to defaults without error. (Delivered 2026-10-18, RFC 046: the focused ref, the last top-level view of four (Orientation, History, Changes, Queue) and the untracked filter are stored outside the repository and re-validated against prikk before any of them is shown; a remembered ref prikk no longer lists falls back with a note. STIKK_PRIVATE=1 reads and writes nothing. Deep restore is not delivered — Block detail, Patch detail and Compare reopen their parent, Verify never reopens (NFR-P05), and DM-04’s scroll and selection anchors are a later increment.)
  • FR-123 [M] TUI/GUI parity: both frontends expose the same operation set via the shared operation layer (CON-2); any operation shipped in one and not the other is a defect, not a variant.
  • FR-124 [S] Everything addressable: ids, paths, and report lines copyable; deep-link identity (repo + object id / ref) shareable between stikk sessions as text. Amended 2026-11-21 (RFC 061 decision 6): not built. TU-05 claimed a y copy key for it, and nothing copies anything; the requirement stands and the key does not. A terminal’s own selection is how a reader copies today, which is why this has not been urgent.
  • FR-125 [C] Command palette exposing every operation by name with its keybinding (external design will specify bindings; the requirement is discoverability parity with menus/keys). Amended 2026-11-23 (RFC 061 decision 2): every key this document names elsewhere was rewritten to the one catalog’s own. Where the catalog still binds a letter it is named — c commit, s seal, p the Queue, v Verify, t Trust, o open a bundle file, f prikk’s own fields, b, w, d, m, r, u — and where RFC 061 withdrew the letter the action is named instead, as Enter’s list names it: Switch to this branch, Merge plan, Undo this block, Export it to a bundle file, Import this bundle, Adopt a key, Remove this key, Save this file, as it was here, Save every file at this block. The letters withdrawn here were C, S, Q, V, T, U, E, I, i, M, F, A, a, x and v as the raw view.

3. Non-Functional Requirements

3.1 Performance & responsiveness (NFR-P…)

  • NFR-P01 [M] The UI never blocks input: any operation that can exceed 100 ms runs asynchronously with visible progress.
  • NFR-P02 [M] Long-running core operations (verify, deep history walks, bundle build/import, sync accept) are cancellable from the UI; cancellation never leaves stikk’s own state inconsistent (core operations are themselves crash-safe; stikk simply re-reads).
  • NFR-P03 [M] Capacity tiers, aligned with prikk’s measured envelope rather than aspirational Git-scale numbers (core verify cost is linear in history; core benchmarks exist to ~160-block / 10k-file scale):
    • Tier 1 (comfort), must: ≤ 2,500 blocks and ≤ 25k tracked files — navigation interactions < 100 ms after initial load; open-to-oriented < 2 s excluding a full verify.
    • Tier 2 (supported), should: ≤ 25k blocks / ≤ 250k files — progressive loading; interactions < 500 ms; verify runs in background with staged results.
    • Beyond tier 2: functional with honest degradation (no hangs, no unbounded memory), no latency promises.
  • NFR-P04 [S] Expensive views (block-state trees, comparisons) are computed lazily and cached per session; cache invalidation keys off repository change detection (FR-106), never off wall-clock. (Recorded 2026-09-12, RFC 021 §6 — prikk’s own published cost curves, carried here so a design sees them before a user does: sealing rises quadratically with history depth, and checkout/merge-evidence at roughly depth^1.45. Both track depth, not repository size — a small repository with deep history is the expensive case, which is the opposite of the intuition most tools train. Compare over a deep range is exactly the shape that pays this (FR-033, UC-04), so its increment must decide what it does on a deep range before it renders one: lazily-and-cached is necessary here but may not be sufficient. Not acted on by RFC 021, which builds no views.)
  • NFR-P05 [M] Verify is never run implicitly on open beyond what orientation needs; full verify is user-initiated or explicitly scheduled (its linear cost belongs to the user’s decision).

3.2 Accessibility (NFR-A…)

  • NFR-A01 [M] TUI: fully keyboard-operable; every view reachable and operable without a pointer.
  • NFR-A02 [M] GUI: exposes platform accessibility APIs (names, roles, focus order, keyboard operability for every action).
  • NFR-A03 [M] Status and severity are never encoded by color alone (shape/label always present); every colour stikk chooses meets 7 : 1 (WCAG AAA) on every reference background of its theme, and on the background the terminal reports. Amended 2026-11-21 (RFC 059 decision 12): was “palettes meet WCAG AA contrast in both light and dark presentation”. AA was the wrong bar for the one requirement that exists for low vision, and the old wording was met by no row of RFC 059 F1’s table: on a light terminal the default theme’s body text measured 1.4 : 1. The bar is now checked by arithmetic on the palette and on every rendered screen, not asserted in a comment.
  • NFR-A04 [S] Reduced-motion preference respected; no information conveyed solely by animation.

3.3 Internationalization (NFR-I…)

  • NFR-I01 [M] All stikk-authored UI strings externalized; initial locales en, ja, nb; locale switch without restart [S].
  • NFR-I02 [M] Ids, paths, ref names, and key ids are never translated or reshaped.
  • NFR-I03 [M] prikk’s own diagnostics are English and are the support-grade ground truth: stikk may add localized explanation (FR-110) but always preserves and can show the original message.

3.4 Security & safety (NFR-S…)

  • NFR-S01 [M] Read-only by default posture: a fresh session performs no mutation until the user acts; a global read-only mode exists (FR-121) and is the default when signing readiness is absent.
  • NFR-S02 [M] stikk writes nothing inside .prikk/ and never modifies repository content except through prikk operations (CON-1). stikk’s own files (session state, config) live in user-scope locations.
  • NFR-S03 [M] Key hygiene: seed material is read from the session environment for the duration of an operation, never persisted, logged, or displayed; UI shows key ids only. Recognized example/tutorial seeds trigger a persistent warning (FR-104).
  • NFR-S04 [M] stikk never auto-clears locks, never bypasses a core refusal, and never retries a refused mutation without user action.
  • NFR-S05 [M] No telemetry, no network calls of any kind (the tool of a no-network VCS is itself no-network).
  • NFR-S06 [S] Untrusted-content discipline: bundle/received content is rendered inert (no execution, no link-following, no format-string interpretation of history content).
  • NFR-S07 [M] stikk maintains a threat model as a first-class document (stikk-03-threat-model). Per project rules, every release whose changes involve new data flows, external integrations, or auth/signing logic updates the threat model; other releases verify existing controls remain valid. (Grounding: .git-exclude/rules/project-instructions-general-common.md §Release Deliverables.)

3.7 Usability & progressive disclosure (NFR-U…)

Grounding: project rule “Less is more — sophisticated UI/UX comes from limited information and considered workflows; users start immature; advanced views can be added for matured users.”

  • NFR-U01 [M] Default views present the minimum information the current task needs; deep or expert detail (raw operation fields, ref-chain internals, per-item verify findings, exchange internals) is opt-in via explicit expanders or an advanced mode, never shown by default.
  • NFR-U02 [M] The primary workflow (open → review changes → commit → seal → history) must be completable end-to-end using only default-view information plus the confirmations of FR-121; nothing on that path may require advanced mode, the glossary, or prior prikk expertise beyond the §0 mapping.
  • NFR-U03 [S] Advanced mode is a persistent per-user preference (CF), switchable at runtime; switching it never changes semantics, only depth of display.

3.5 Portability (NFR-T…)

  • NFR-T01 [M] Mutating stikk runs where mutating prikk runs: Linux, macOS, Windows. Read-only stikk degrades gracefully on read-only prikk platforms, with mutation affordances visibly disabled and explained.
  • NFR-T02 [M] TUI: standard terminal environments on the three platforms (POSIX terminals; Windows Terminal-class on Windows), degrading legibly on limited color/Unicode support.
  • NFR-T03 [S] GUI: cross-platform desktop on the same three platforms, native-conventional (menus, shortcuts, file dialogs) per platform.

3.6 Robustness (NFR-R…)

  • NFR-R01 [M] stikk must be safe to kill at any moment: repository safety is core’s (crash-safe by design); stikk’s own state files are written atomically and tolerate absence/corruption by resetting to defaults.
  • NFR-R02 [M] stikk holds no repository lock across user think-time; every core operation is bracketed (acquire-act-release semantics live in core’s own operations).
  • NFR-R03 [M] Version honesty: stikk states which prikk version range it was validated against (ASM-2) and refuses gracefully (read-only where possible) outside it, rather than misrendering unknown formats. The range has two ends and they behave differently: below the floor stikk degrades or refuses; above the validated ceiling stikk still runs but says the range is unvalidated, because refusing every prikk newer than the last stikk release would break users on the day prikk ships a minor. An unbounded upper range is not honesty — it silently asserts knowledge stikk does not have, and is how a shape change goes unnoticed (RFC 009 decisions 6–7).

4. Constraints & Assumptions

  • CON-1 [M] stikk drives prikk exclusively through prikk’s public surfaces and never reads or writes .prikk/ content directly. The current public surface is: the prikk CLI (stable-ish command set; machine-readable output only on verify; 0/1 exit codes) and pre-1.0 library crates whose APIs may change without notice. The External Design must choose the integration seam; this document constrains the choice by requiring: no direct storage access; behaviour identical to what the CLI would do; and the UD-list below as the honest gap record for whichever seam is chosen.
  • CON-2 [M] One shared operation layer beneath both frontends; TUI and GUI differ only in presentation (FR-123).
  • CON-3 [M] Reversibility is expressed in prikk’s model, not a mutable undo log: sealed history is never rewritten; compensation is the rollback flow (FR-083); the signed ref chain is the audit trail (FR-016); and every mutating operation is preview-first (FR-120) so “undo” pressure is minimized at the source. stikk must not present an “undo” affordance for published history.
  • CON-4 [M] All stikk-owned persistent state (config, sessions, caches) lives outside every repository, in user-scope app locations; a repository must remain byte-identical whether or not stikk ever opened it (except through explicit prikk operations).
  • CON-5 [S] stikk is versioned and released independently of prikk; compatibility is declared per release (NFR-R03).
  • CON-6 [M] Development follows the project workflow: Requirements → External Design → Internal Design → Program Design → Implementation → Testing, with design specifications as the source of truth for test design — test cases validate the specs, not merely the written code. (Grounding: rules §Feature Development.)
  • CON-7 [M] stikk’s own project structure follows the rules: English throughout; concise README in the rules’ six-section shape; full documentation under docs/src (mdBook-compatible) organized by the three documentation personas; Apache-2.0 with LICENSE/NOTICE, author nabbisen; development plans and change tracking via the stikk repository’s own rfcs/ (five-folder variant of the RFC lifecycle policy, adopted to keep “accepted for implementation” a distinct event from “shipped”) and CHANGELOG.md.
  • ASM-1 prikk-core evolution continues along its RFC process; stikk requirements name dependencies (UD-xxx) rather than forking core semantics.
  • ASM-2 v1 targets prikk ≥ 0.28, validated through 0.58.0 (owner ruling 2026-09-04, RFC 009 decision 6; ceiling raised to 0.31.0 by RFC 012 F-e, 2026-09-05, to 0.32.0 by RFC 015, then to 0.33.0 by RFC 017, both 2026-09-06, to 0.38.0 by RFC 021, 2026-09-12, to 0.41.0 by RFC 026, 2026-09-13, then to 0.42.0 by RFC 029, 2026-09-13, to 0.46.0 by RFC 034, 2026-09-22, to 0.51.0 by RFC 035, 2026-10-13, to 0.52.0 by RFC 043, 2026-10-15, to 0.53.0 by RFC 049, 2026-10-19: 0.53’s one output change is to checkout‘s refusals, which stikk calls only below 0.46, so the suite was green at 0.28.0 and 0.53.0 with only the constant moved and no leg changed, and to 0.54.1 by RFC 052, 2026-10-27: 0.54 fixes a read stikk shows — show <block-id> no longer refuses after consecutive text edits of one file, so Block and Patch detail open where 0.53 showed prikk’s refusal verbatim — and adds a verify count line and an extract command stikk does not call, so the suite was green at 0.28.0 and 0.54.1 with only the constant moved and no leg changed. The patch is named because prikk withdrew 0.54.0, whose Windows installer refused some ordinary x64 machines; stikk pins no prikk version, so nothing of stikk’s can hand anyone the withdrawn one), and to 0.55.0 by RFC 055, 2026-10-29: the two things 0.55 changed that come near stikk cost nothing — extract refuses a destination inside the repository, which stikk does not call, and a damaged bundle’s refusal is worded differently, which stikk shows verbatim and parses none of — so the suite was green at 0.28.0 and 0.55.0 with only the constant moved and no leg changed, and to 0.58.0 by RFC 063, 2026-11-19: the first re-baseline whose fixtures and legs had to change for a prikk security fix. With only the constant moved, 8 of the suite’s 97 cases failed — not from output drift, but because 0.56 made the worktree follow the current branch, as stikk’s own letter 023 asked. A merge into the current branch now writes the worktree and refuses on a dirty one, so stikk’s refusal of that merge is lifted from 0.56 and prikk’s own refusal reaches the reader (F2). A commit to a ref whose files differ from the worktree’s is refused, so stikk commits only to prikk’s current branch and names the switch for any other (F4) — before 0.56 that commit succeeded and silently mixed two branches’ work. And an import is refused when a bundle is sealed under an adopted key id by a different key (F5): every fixture had shared the id maintainer, which broke four cases and hid the one that wants the clash, so each fixture now has its own ids — each only on an empirical re-verification, never trusted from prikk’s own changelog. RFC 035’s raise is the first made in order to build on the new version’s report rather than to absorb its drift, and it cost nothing on its own: the suite passed 37 of 37 at 0.28.0 and 0.51.0 with only the constant moved. What 0.47–0.51 changed is read deliberately, not absorbed silently — 0.47 began reporting a path where a queued patch’s show had reported none (prikk files that as ### Changed, which is why no reader keys on a field’s absence), and at 0.51 show <block-id> still resolves a sealed patch’s node-addressed path at the block’s end rather than at that patch, so a two-patch block can name a path the first patch never saw (RFC 035 A1 F7; prikk confirmed it and fixed it in 0.52.0, published 2026-10-15 and validated the same day by RFC 043: show <block-id> now resolves each patch’s path at that patch, so the case that reported z.txt reports a.txt and the case that reported no path reports d.txt. Patch detail’s as at the end of this block label is therefore banded below 0.52, where it is still true, rather than deleted). RFC 026’s raise is the first that had to rebuild the test harness before it could measure anything: prikk 0.40 moved signing seeds out of the environment and into a key directory, so the suite’s own fixture builder had stopped configuring the binary it was testing). 0.27.x is dropped: its worktree-status is the UD-03 defect, which stikk already refuses to run, so carrying 0.27 in the range promised what stikk could not serve. Format changes before stikk v1 are absorbed by re-validation, not by stikk reading old formats itself (core refuses retired formats with migration guidance — FR-003 surfaces it). Re-validation is a standing obligation, not a release chore: prikk is pre-1.0 and changed its output shapes twice between 0.28 and 0.30 (RFC 009), its on-disk schema with no CLI shape change at 0.31 (RFC 012 F-e), both its on-disk schema and a CLI output shape (log gained a per-patch line, RFC 015 F1) at 0.32, and its error-class prefixes plus a new key/setup surface at 0.33 (RFC 017) — each re-baseline caught only by re-running the fixtures, or in 0.33’s case the classifier’s provenance, against the real binary. 0.34–0.38 was the fifth re-baseline and the widest (RFC 021, five releases at once): a trust-enumeration surface at 0.34, status --format json and six error-class reclassifications at 0.35, show --format json retiring UD-09’s content half at 0.36, and an unconditional live rename declarations: section in worktree-status at 0.38 — the last of which made stikk report a file that does not exist until F0 fixed it. It was also the first re-baseline run by a machine rather than performed by hand (RFC 019’s real-binary suite, TS-07), which is what makes “re-validation is a standing obligation” enforceable rather than aspirational.
  • ASM-3 Users hold their own key material and channel for artifact exchange; stikk manages neither.
  • ASM-4 The project rules in .git-exclude/rules/ (RFC lifecycle policy 000-rfc-lifecycle-policy.md; general, Rust, and GUI project instructions) apply to stikk as written. Language and edition are therefore fixed upstream of internal design (Rust, 2024 edition — a fact the internal design consumes; this business document still specifies no technology itself).

5. Upstream Dependencies on prikk (UD-…)

Each names the core gap, the stikk requirements it blocks or degrades, and the shipped behaviour until it lands. These should be filed against prikk as issues/RFC input; several already appear in the 2026-08-31 audit.

IDprikk gap (audit ref)Blocks / degradesstikk behaviour until landed
UD-01Patch messages validated then discarded (audit 1A-High-2) — RETIRED at prikk 0.32: messages are stored (schema 4, tag 6) and log now enumerates a patch id and message for every patch that carries one — verified against a real prikk 0.32.0 binary (RFC 015 F1/F2). No author display name either wayFR-012 (message filter), FR-030/011 (message display), UC-02/03 richnessstikk supports prikk on both sides of the boundary: the commit-message prompt’s copy is version-conditional (checked against the session’s own handshake — neither a blanket “not persisted” nor a blanket “persisted” claim is true), and Block detail shows the id/message list a messaged patch carries, always beside the block’s patch count so a pre-0.32 patch’s absence from the list is never mistaken for its absence from history (RFC 015 F4)
UD-02Machine-readable output exists only on verify (audit CLI findings); library API pre-1.0Nearly all read FRs if the CLI seam is chosen; report exports (FR-100, FR-124)External Design must pick: parse human output (fragile — rejected), drive libraries behind a pinned version (CON-5 discipline), or await --format json on log/status/branch/tag/merge-evidence. Requirement: stikk never screen-scrapes prose it can’t pin
UD-03worktree-status broken on normally-created repositories (audit 1A-High-1) — RESOLVED at prikk 0.28, verified against the live binary (RFC 008)FR-034, UC-05stikk uses worktree-status directly, version-gated at ≥ 0.28; below it stikk explains rather than running the pre-fix command
UD-04CLI panics on EPIPE (audit 1B-Medium)Any CLI-seam integration that closes pipes earlystikk drains subprocess output fully; upstream fix filed
UD-05REVISED at prikk 0.28: exit codes are no longer 0/1 but 0 success / 1 operational failure / 2 usage error. The 1-vs-semantics coarseness remains (a refusal, a dirty worktree and an integrity failure all exit 1); the usage case is now distinguishableScripted error classification behind FR-110’s explanationsstikk classifies exit 1 by message + context, degrading to a generic explanation on unknown messages and always showing the original (NFR-I03). Exit 2 means stikk built a bad argument list — a stikk bug — and is surfaced as stikk-internal, never as prikk’s refusal (RFC 009 F6)
UD-06No pathspec/partial commit; whole-worktree onlyFR-056 (C-priority), OS-3Whole-worktree commit presented honestly; no staging metaphor anywhere in UI copy
UD-07Merge-base discovery is manual in core (README known limit)FR-084 qualitystikk computes candidate ancestors client-side from lineage it reads through the public seam; labelled as proposals
UD-08No ignore mechanism (audit 1A-Medium) — RETIRED at prikk 0.29: .prikkignore at the repository root excludes matching paths from commit’s worktree walk and worktree-status’s untracked scan (verified against the live binary, RFC 009 F5). It binds at discovery only, so it never changes what sealed history means; a malformed file fails closedFR-034/FR-050 signal-to-noise on real projectsprikk filters ignored paths before reporting, so they never reach stikk. stikk still offers its view-level untracked filter, marked display-only, for the paths that are reported — and must not claim there is no way to exclude files, nor report a count of ignored paths, which prikk does not expose
UD-09Per-patch content inspection. Content half RETIRED at prikk 0.36 (RFC 021 F1): prikk show <block-id|patch-id> [--format json] (show-report-v1) renders a patch’s operations, paths and content — edit-text carries old_span_text/replacement_text, create-file carries {"kind":"text","text":…} plus mode. The id half was already narrowed at 0.32 (RFC 015 F3). What remains is not the same gap: (a) no arbitrary-point comparison — prikk diff is refused, not deferred: prikk states comparing two arbitrary points is a materially more expensive question they have declined to answer (RFC 021 F3), so this will not arrive by waiting; (b) no --format json on log/branch/tag — asked in letter 006 §1, and prikk offered to schedule it on our say-so, which we gave, so this one is pending rather than refused; (c) block-addressable content is its own dependency now — see UD-10FR-030 (Patch detail — unblocked at 0.36, view not built: RFC 021 Decision 5), FR-032/033 content diffs, FR-034’s per-file diffs, FR-100/124 machine-readable exportsBlock detail lists a messaged patch’s id and message (RFC 015 decision 2), always beside the block’s patch count. Patch detail as a rendered view is delivered (RFC 035, 2026-10-13 — see FR-030): at prikk ≥ 0.39, from Block detail’s patch list and from the Queue, with prikk’s spans rendered as spans (RFC 021 F2 — rendering them as line diffs would be invention) and a raw view of prikk’s own fields. What is still open under this entry is (a) above: no arbitrary-point comparison, which prikk has refused rather than deferred
UD-10Block-addressable content. RETIRED at prikk 0.46 (RFC 038 F3, measured at 0.46.0 and 0.51.0): prikk cat --path <p> --ref <bare block id> returns the file’s bytes at that block (exit 0), and --format json gives path-content-v1 metadata. The claim was that --ref resolved a published branch only, so a block id was not addressable as a content root — verified three ways in RFC 021 and filed upstream as letter 006 §5.FR-033’s range case, which it blockedNothing depends on it any more. FR-033 is delivered from prikk diff, whose hunks carry the content, so Compare never needed cat at a block; the requirement is unblocked either way.

6. Traceability Matrix (use cases → functional requirements)

Use casePrimary FRsSupporting FRs / NFRs
UC-01 Open & orientFR-001, FR-002, FR-003FR-005, FR-104, NFR-P03, NFR-R03
UC-02 Browse historyFR-010, FR-011, FR-012, FR-013FR-014, FR-015, FR-016, FR-017, UD-01
UC-03 Inspect a patchFR-030FR-035, FR-036, UD-01
UC-04 Compare blocksFR-033FR-032, NFR-P04
UC-05 Review & commitFR-034, FR-050FR-055, UD-03, UD-06, UD-08
UC-06 Queue & sealFR-051, FR-052FR-121, FR-104
UC-07 CheckoutFR-053, FR-054FR-120, FR-110
UC-08 BranchesFR-070, FR-055FR-015, FR-110
UC-09 TagsFR-071FR-072
UC-10 RollbackFR-083FR-120, FR-121, FR-052
UC-11 MergeFR-080, FR-081, FR-082FR-084, FR-110, UD-07
UC-12 RefusalsFR-110, FR-111FR-112, NFR-I03
UC-13 BundlesFR-090, FR-091FR-004, FR-014
UC-14 Sync loopFR-092, FR-093FR-094, FR-006, FR-121
UC-15 Received & adoptFR-014, FR-072, FR-103FR-082, FR-091
UC-16 Verify & auditFR-100FR-035, FR-111, NFR-P05, UD-02
UC-17 RecoverFR-101, FR-102FR-105, FR-106, NFR-S04
UC-18 Signing readinessFR-104NFR-S01, NFR-S03
UC-19 ResumeFR-122FR-005, CON-4, NFR-R01
UC-20 Offline artifactFR-004FR-091, NFR-S06
UC-21 Undo one blockFR-085FR-120, FR-121, FR-050, CON-3, C-T4f

Persona coverage check: P-1 lives in UC-01–08, 12, 19; P-2 in UC-02–04, 11–12, 16, 20; P-3 in UC-06, 08–11, 13–15, 17–18; P-4 in UC-15–16, 20 with NFR-S posture. Every FR traces to at least one UC; UD items trace to the FRs they unblock.

Rules-derived items (v0.2): NFR-U01–U03 cross-cut every UC’s default views (P-1 is the calibration persona; P-2/P-4 are the advanced-mode audience); NFR-S07 and CON-6/CON-7/ASM-4 are process/structure constraints realized by the threat model (stikk-03), the internal design (stikk-04), and the stikk repository skeleton rather than by individual use cases.


End of Requirements Specification v0.1. Next document: External Design (task 02) — note that its current draft also assumes Git semantics (rebase flows, staging views, drag-to-cherry-pick, HEAD in the status bar) and should be revised against this document’s OS-1…OS-10 and the terminology mapping before drafting begins.