docs(spec): requirements engineering wave 1 for the walking skeleton #2

Merged
ComputerCrack merged 16 commits from feature/sf-f4d-requirements-engineering into develop 2026-10-22 17:55:41 +00:00

Summary

First requirements engineering wave of the wayfinder map sf-f4d: the security boundaries and the cross-boundary channels are decided; the effort now continues in agile sprints towards milestone M1 (walking skeleton).

 GLOSSARY.md                     # + Supervisor, Project, Sync, Grant, Forge Gateway, Release Hold,
                                 #   Model Gateway, Gateway Token, Inference Request, asset tiers
 CLAUDE.md                       # + milestones M1–M3, side branches, forge token pointer
 docs/
 ├── adr/
+│   ├── 0001-git-flow-with-squash.md
+│   ├── 0002-two-boundaries.md
+│   ├── 0003-repo-in-as-one-way-sync.md
+│   ├── 0004-result-out-through-checking-gateway.md
+│   └── 0005-model-access-through-credential-holding-gateway.md
 ├── architecture/
+│   ├── threat-model.md          # assets, channels C1–C7, RR-1..RR-11, §6 requirements
+│   ├── arc42.md                 # ch. 1–2
+│   └── diagrams.md              # D2/TALA, C4 rules
 └── requirements/
+    ├── context.md               # stakeholders, system boundary
+    ├── quality.md               # Q-001..Q-007 drafts
+    └── constraints.md           # R-001..R-009 drafts

Decisions in one line each:

VM boundary      one Firecracker VM per project; Unix users inside (ADR 0002)
repo in          host delivers a git bundle from Forgejo; the VM never asks (ADR 0003)
result out       only the interactive session pushes, through the checking Forge Gateway (ADR 0004)
model access     Model Gateway holds the subscription token; Gateway Token per caller;
                 one local llama-server, worker or session mode (ADR 0005)

Research findings and agent docs stay on the long-lived side branches research and agent-docs; nothing here links to them.

Evidence

  • Before: no threat model, ADRs or requirement drafts; the design lived in an uncommitted prior document.
    After: every decision is traceable from the map's "Decisions so far" to a closed beads ticket and to the ADR or threat-model section above. Docs only; the pre-commit hook (Gitleaks) passed on every commit.

Merge Danger

Door: two-way

Documentation only; no code, config or workflow changes. Requirement shells are drafts (valid is set by the maintainer).

Blast Radius: docs

Agents read CLAUDE.md and the ADRs as binding from the merge on; the milestone rule and the side-branch rule change how later sessions work.

Refs: sf-f4d

## Summary First requirements engineering wave of the wayfinder map `sf-f4d`: the security boundaries and the cross-boundary channels are decided; the effort now continues in agile sprints towards milestone M1 (walking skeleton). ```diff GLOSSARY.md # + Supervisor, Project, Sync, Grant, Forge Gateway, Release Hold, # Model Gateway, Gateway Token, Inference Request, asset tiers CLAUDE.md # + milestones M1–M3, side branches, forge token pointer docs/ ├── adr/ +│ ├── 0001-git-flow-with-squash.md +│ ├── 0002-two-boundaries.md +│ ├── 0003-repo-in-as-one-way-sync.md +│ ├── 0004-result-out-through-checking-gateway.md +│ └── 0005-model-access-through-credential-holding-gateway.md ├── architecture/ +│ ├── threat-model.md # assets, channels C1–C7, RR-1..RR-11, §6 requirements +│ ├── arc42.md # ch. 1–2 +│ └── diagrams.md # D2/TALA, C4 rules └── requirements/ + ├── context.md # stakeholders, system boundary + ├── quality.md # Q-001..Q-007 drafts + └── constraints.md # R-001..R-009 drafts ``` Decisions in one line each: ```text VM boundary one Firecracker VM per project; Unix users inside (ADR 0002) repo in host delivers a git bundle from Forgejo; the VM never asks (ADR 0003) result out only the interactive session pushes, through the checking Forge Gateway (ADR 0004) model access Model Gateway holds the subscription token; Gateway Token per caller; one local llama-server, worker or session mode (ADR 0005) ``` Research findings and agent docs stay on the long-lived side branches `research` and `agent-docs`; nothing here links to them. ## Evidence - **Before:** no threat model, ADRs or requirement drafts; the design lived in an uncommitted prior document. **After:** every decision is traceable from the map's "Decisions so far" to a closed beads ticket and to the ADR or threat-model section above. Docs only; the pre-commit hook (Gitleaks) passed on every commit. ## Merge Danger **Door:** two-way Documentation only; no code, config or workflow changes. Requirement shells are drafts (`valid` is set by the maintainer). **Blast Radius:** docs Agents read `CLAUDE.md` and the ADRs as binding from the merge on; the milestone rule and the side-branch rule change how later sessions work. Refs: sf-f4d
Assets in three tiers, untrusted actors, outer (VM) and inner (Unix users)
boundary, channels C1-C7 with STRIDE-lite, accepted residual risks R-1..R-8
and requirements for follow-up tickets.

Refs: sf-f4d.1
Single-user scope; system boundary covers everything on the maintainer's
machine; quality goals ranked security, reliability, replaceability,
performance efficiency; supplier policy "latest via deliberate update".

Refs: sf-f4d.2
Refs: sf-f4d.2
Refs: sf-f4d.2
Refs: sf-f4d.2
Refs: sf-f4d.2
One VM per project with per-repo runner users, per-session users and
session-scoped grants; supervisor on the host manages VMs, budgets and
slot quotas. Host components facing a VM must be memory-safe (R-009).

Refs: sf-f4d.7
Host builds a git bundle from Forgejo and delivers it at VM start and on
manual command; the VM never pulls and has no route, token or remote.
All branches, read-only for loop and workers; force pushes taken over,
nothing deleted. Adds accept-risk mode (RR-9) for sf-f4d.11.

Refs: sf-f4d.8
Only the interactive session delivers, after audit stages 1 and 2, as a
push through the Forge Gateway; it verifies refs and pack with gitoxide,
runs stage 1 completely and holds findings until the maintainer releases
them. Forgejo moves outside the system boundary; adds RR-10.

Refs: sf-f4d.9
Refs: sf-f4d.9
Refs: sf-f4d.9
The Model Gateway on the host is the only model path out of the VM and
holds the subscription credential; Gateway Tokens per session and worker;
one local llama-server with worker or session mode in hardened systemd
units. Closes RR-5, adds RR-11 and ADR 0005.

Refs: sf-f4d.10
Sprints extend requirements, design and implementation per slice towards
M1 walking skeleton, M2 daily driver and M3 extensions. The one-time
inventory of the old loop repo is done; the repo stays closed to agents.

Refs: sf-f4d
research and agent-docs hold development fragments and are never merged;
CLAUDE.md points agents at them.

Refs: sf-f4d
Refs: sf-f4d
ComputerCrack force-pushed feature/sf-f4d-requirements-engineering from d221d754db to dbe4111bc4 2026-10-22 17:54:22 +00:00 Compare
ComputerCrack deleted branch feature/sf-f4d-requirements-engineering 2026-10-22 17:55:41 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ComputerCrack/Sandfortress!2
No description provided.