docs(spec): v1 decisions, module cut and C4 hand-over #4

Merged
ComputerCrack merged 11 commits from feature/sf-f4d-m1-walking-skeleton into develop 2026-10-22 23:43:37 +00:00

Summary

Wave 2 of map sf-f4d: the remaining v1 decisions and the hand-over into phase 1 implementation. Docs only.

 GLOSSARY.md                     # Supervisor, Gateway Token, Sync, Grant, Allow Delete, …
 docs/
 ├── adr/
+│   ├── 0003 …                  # amendment: Sync fetches into refs/remotes/forgejo/*
 │   └── 0004, 0005              # result out, model access
 ├── architecture/
 │   ├── threat-model.md         # C2, C6, C8, C9, C10; RR-9 … RR-14; §6 per decision
+│   ├── module-cut.md           # processes, modules, seams, DI rules, M1 slices
+│   ├── system-context · container · deployment .d2/.svg
+│   ├── module-cut-host · module-cut-vm .d2/.svg
 │   ├── ticket-flow.md          # session → loop, workflows, closing after merge
 │   ├── forge-gateway-*.d2/.svg, test-server-observation, ticket-transition-*
 │   └── arc42.md                # chapters 3, 5, 6, 7, 11 linked
 └── requirements/
     ├── quality.md              # Q-008, Q-009
+    ├── security.md             # Q-010 … Q-027 for threat model §6
     └── ticket-flow.md          # F-FLOW-001 … 006

Decisions in this branch: forge actions from interactive sessions (sf-f4d.11), v1 boundary for web access and test server observation (sf-f4d.14), observation browser (sf-f4d.19, sf-f4d.20), transition interactive session → loop (sf-f4d.13), module cut and C4 hand-over (sf-f4d.16).

Module cut in one line per process (each holds at most one secret):

host  sf               terminal filter (C10), sf setup, releases holds
host  Supervisor       VMs via systemd sf-vm@ + polkit, session module (grants), slot tokens, Sync; no token
host  Model Gateway    inference only, cloud credential, worker token: one request in flight
host  Forge Gateway    only token holder: typed actions, push check, Release Hold, mirror fetch
vm    vsock entry      socat as root on ports < 1024, kernel without vsock loopback
vm    Loop             Loop-Checkout = only ref writer; Sandcastle as adapter behind runPhase/runCheck
vm    sessiond         session users, grants, SessionHarness

Evidence

  • Before: no C4 views, no module cut, §6 without owners; Sync would reset loop-advanced strand branches.
    After: scripts/render-diagrams.sh --check on all changed diagrams exits 0 (TALA, SVGs current); 67 relative links in docs/ and GLOSSARY.md resolve, 0 broken; every requirement shell is draft.

Merge Danger

Door: two-way

Documentation only; no code, CI or config change. All shells stay draft until the maintainer sets valid. The branch is one commit behind develop (#3) and merges without conflict.

Blast Radius: docs

Phase 1 tickets will be cut from docs/architecture/module-cut.md; amending ADR 0003 and the threat model changes what implementation must enforce.

Suggested squash: docs(spec): v1 decisions, module cut and C4 hand-over with trailer Refs: sf-f4d.

## Summary Wave 2 of map `sf-f4d`: the remaining v1 decisions and the hand-over into phase 1 implementation. Docs only. ```diff GLOSSARY.md # Supervisor, Gateway Token, Sync, Grant, Allow Delete, … docs/ ├── adr/ +│ ├── 0003 … # amendment: Sync fetches into refs/remotes/forgejo/* │ └── 0004, 0005 # result out, model access ├── architecture/ │ ├── threat-model.md # C2, C6, C8, C9, C10; RR-9 … RR-14; §6 per decision +│ ├── module-cut.md # processes, modules, seams, DI rules, M1 slices +│ ├── system-context · container · deployment .d2/.svg +│ ├── module-cut-host · module-cut-vm .d2/.svg │ ├── ticket-flow.md # session → loop, workflows, closing after merge │ ├── forge-gateway-*.d2/.svg, test-server-observation, ticket-transition-* │ └── arc42.md # chapters 3, 5, 6, 7, 11 linked └── requirements/ ├── quality.md # Q-008, Q-009 + ├── security.md # Q-010 … Q-027 for threat model §6 └── ticket-flow.md # F-FLOW-001 … 006 ``` Decisions in this branch: forge actions from interactive sessions (`sf-f4d.11`), v1 boundary for web access and test server observation (`sf-f4d.14`), observation browser (`sf-f4d.19`, `sf-f4d.20`), transition interactive session → loop (`sf-f4d.13`), module cut and C4 hand-over (`sf-f4d.16`). Module cut in one line per process (each holds at most one secret): ```text host sf terminal filter (C10), sf setup, releases holds host Supervisor VMs via systemd sf-vm@ + polkit, session module (grants), slot tokens, Sync; no token host Model Gateway inference only, cloud credential, worker token: one request in flight host Forge Gateway only token holder: typed actions, push check, Release Hold, mirror fetch vm vsock entry socat as root on ports < 1024, kernel without vsock loopback vm Loop Loop-Checkout = only ref writer; Sandcastle as adapter behind runPhase/runCheck vm sessiond session users, grants, SessionHarness ``` ## Evidence - **Before:** no C4 views, no module cut, §6 without owners; Sync would reset loop-advanced strand branches. **After:** `scripts/render-diagrams.sh --check` on all changed diagrams exits 0 (TALA, SVGs current); 67 relative links in `docs/` and `GLOSSARY.md` resolve, 0 broken; every requirement shell is `draft`. ## Merge Danger **Door:** two-way Documentation only; no code, CI or config change. All shells stay `draft` until the maintainer sets `valid`. The branch is one commit behind `develop` (#3) and merges without conflict. **Blast Radius:** docs Phase 1 tickets will be cut from `docs/architecture/module-cut.md`; amending ADR 0003 and the threat model changes what implementation must enforce. Suggested squash: `docs(spec): v1 decisions, module cut and C4 hand-over` with trailer `Refs: sf-f4d`.
One Gateway Token per session serves both gateways; the Forge Gateway
accepts only role session. Typed actions, PRs only by AGit push through
pack check and Release Hold, other projects anonymous read-only. Allow
Delete replaces accept-risk. Review path via audit-preview. Adds the
forge gateway diagrams and shared D2 style.

Refs: sf-f4d.11
Refs: sf-f4d.14
Refs: sf-f4d.14
Refs: sf-f4d.14
Refs: sf-f4d.13
Refs: sf-f4d.13
Refs: sf-f4d.13
Refs: sf-f4d.13
Refs: sf-f4d.13
Refs: sf-f4d.13
Module cut for v1 with one secret per process: sf, Supervisor (no
token), systemd unit for the jailer, Model Gateway, Forge Gateway (only
token holder, also fetches the mirror), loop and sessiond in the VM.
Loop-Checkout is the only ref writer; Sandcastle is an adapter behind
the worker execution seam; enforced dependency injection rules.

C4 context, container and deployment diagrams plus host and VM
module-cut diagrams. Threat model: channel C10 (session terminal),
slot tokens with one request in flight, Sync only into
refs/remotes/forgejo/*, holds released via sf. ADR 0003 amendment,
glossary updates, shells Q-010 to Q-027.

Refs: sf-f4d.16
ComputerCrack force-pushed feature/sf-f4d-m1-walking-skeleton from a25c37dafb to 4399b25036 2026-10-22 23:43:28 +00:00 Compare
ComputerCrack deleted branch feature/sf-f4d-m1-walking-skeleton 2026-10-22 23:43:37 +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!4
No description provided.