oficina / fichas Public

Type designer draft 2: the answers recorded in the rulings and step 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev f415c0042c61ac2305e3becff4198515c3ae08cd parent 8044079
1 file changed, +8 −5
  • docs/superpowers/specs/2026-11-12-type-designer-design.md +8 −5

CI passed — run details

CI log
=== vet ===
go vet ./...
go vet -tags browser ./internal/fichastest/
=== fmt ===
=== test ===
go test ./...
?   	amadan.net/oficina/fichas/cmd/fichas	[no test files]
ok  	amadan.net/oficina/fichas/internal/fichas	(cached)
?   	amadan.net/oficina/fichas/internal/fichas/icons	[no test files]
ok  	amadan.net/oficina/fichas/internal/fichas/seal	(cached)
ok  	amadan.net/oficina/fichas/internal/fichastest	1.003s
?   	amadan.net/oficina/fichas/scripts/mockups	[no test files]
?   	amadan.net/oficina/fichas/scripts/preview	[no test files]
?   	amadan.net/oficina/fichas/scripts/writeestilo	[no test files]
=== migration-check ===
go tool rastrillo migration check
rastrillo migration check: models and migrations agree
diff --git a/docs/superpowers/specs/2026-11-12-type-designer-design.md b/docs/superpowers/specs/2026-11-12-type-designer-design.md
index d76cc96..8164c35 100644
--- a/docs/superpowers/specs/2026-11-12-type-designer-design.md
+++ b/docs/superpowers/specs/2026-11-12-type-designer-design.md
@@ -18,6 +18,9 @@ Today a new type is one form with two questions (singular and plural names). It
| R1 | The frame | The rail stays (Bar was rejected). |
| R2 | How types are grouped | **Folders.** Each type is in at most one group. The rail shows group headings you can collapse. |
| R3 | What the assistant may do | **It drafts and you review.** Its draft opens in the stepped flow, and nothing exists until you press Create. |
+| R4 | Templates | Not "Things" ("I don't think so!"). The five are **People, Organisations (linked to People), Projects, Products and Applications** (for application programmes, beside intake forms). |
+| R5 | Customers and links | **Yes.** Once links exist, Customer gains **Contacts**, a link to People (several), and a People type is seeded. |
+| R6 | The assistant's key | Fichas has **its own TensorX key** (1Password, Oficina vault, "Fichas TensorX Key"), set as the app secret `FICHAS_TENSORX_API_KEY`, named like Slides' `SLIDES_TENSORX_API_KEY`. |
## What this adds, in the order it would be built
@@ -88,12 +91,12 @@ Every step is a server-rendered page at its own URL, with Back, a progress line
There are three ways in, as three large cards:
- **Describe what you need.** A textarea: "What do you want to keep track of?", with examples underneath. This card appears only when the assistant is configured (see §4).
-- **Start from a template.** Five templates:
- - **People:** name, email, phone, organisation, role, notes;
- - **Organisations:** name, web address, email, phone, stage, next action, notes;
+- **Start from a template.** Five templates (R4):
+ - **People:** name, email, phone, role, notes;
+ - **Organisations:** name, web address, email, phone, stage, next action, notes, and **People** (a link holding several), drafted together with People;
- **Projects:** name, status, owner, start, due, notes;
- **Products:** name, status, category, price, launch date, notes;
- - **Things:** name, category, date, number, notes.
+ - **Applications:** applicant's name, email, programme (a Choice), status (Received, Reviewing, Shortlisted, Accepted, Declined), date received, notes.
- **Start blank.** Just a name.
### Step 2 — Name and look (`/types/drafts/{id}/name`)
@@ -169,7 +172,7 @@ The person edits the draft. Nothing exists until they press Create (R3).
- **Client:** reuse Slides' client, `internal/slides/assist/provider.go`, which has the base URL pinned and no way to point it elsewhere in production.
- **Model:** `deepseek/deepseek-v4-flash-0731`. It is fast, and a draft should come back in a few seconds. Seapointish and Slides use the same identifier.
- If Flash's drafts are thin, the same call can use `deepseek/deepseek-v4-pro-0813` instead. That is one setting.
-- **Configuration:** off unless `FICHAS_TENSORX_KEY` is set on the app. Without it the "Describe" card is simply not offered.
+- **Configuration:** off unless `FICHAS_TENSORX_API_KEY` is set on the app (R6). Without it the "Describe" card is simply not offered.
### What is sent