embeddednats: store directory becomes a required parameter #15
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ginjiruu/toolbelt#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#14 — Spec: Per-package KCL config fragments — service-owned defaults (db, embeddednats, embeddedfga)
What to build
The embedded NATS setup function takes the JetStream store directory as a required positional parameter, so the platform has no hidden Go default for where NATS data lives. An app author who calls the service setup must pass an explicit directory, and the composition root no longer guards against an empty string — the resolved config value is always passed through.
This removes the last hand-written Go const default among the service packages (user story 7 of the parent spec).
Acceptance criteria
SetupNATSaccepts the store directory as a required positional argument, and theWithStoreDiroption and its default-const are removed.go test ./...passes from the repo root and the tools module.WithStoreDir(t.TempDir())test calls become positional (per spec, consumer migration is a separate later project).Blocked by
Implemented, verified (go test green in root/tools/example, task check-kcl green), and reviewed via /code-review. Landed in commit
f3cbcd0on master.