📝 docs: homogenize API + BDD env docs (verifier skill audit) #36
Reference in New Issue
Block a user
Delete Branch "docs/homogenize-api-and-bdd-env"
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?
Context
First PR shipping after
~/.vibe/skills/verifier/went live. The verifier ran a Dimension-B (docs homogeneity + code↔docs confrontation) audit on already-merged PRs and flagged 3 BLOCK issues — endpoints / env vars introduced in code but never documented:GET /api/healthzdocumentation/POST /api/admin/cache/flushdocumentation/BDD_SCHEMA_ISOLATIONenv vardocumentation/oradr/Changes
documentation/API.md(new — 90 lines)Reference for HTTP endpoints exposed by the Go server:
/api/healthz)/api/admin/cache/flush) — with admin-only-network warning/api/v1/login,/api/v1/register,/api/v1/greet/{lang}(auth-gated)Each endpoint documents method, path, auth requirement, request body, response schema, status codes — with curl examples.
documentation/BDD_TEST_ENV.md(new — 89 lines)Companion to existing
BDD_GUIDE.md. Documents the env-var surface:DLC_DATABASE_*(host, port, user, password, name, ssl_mode)BDD_SCHEMA_ISOLATION(the new flag from PR #35 — featured prominently with 2.85x speedup note + ADR-0025 ref),FEATURE,GODOG_TAGS,BDD_ENABLE_CLEANUP_LOGSWhy ship this now
Closes the verifier feedback loop:
This is also the first proof point that the Trinity-inspired explicit Verifier role (added today to
vibe-workspace.sh) catches real bugs that ad-hoc review would miss. PRs #20, #29, #35 all passed code review and CI — only the systematic Dim-B audit found the doc gaps.Verification
docs-homogeneity.mdB.1 checklistpkg/server/server.go,pkg/auth/handlers.go)pkg/config/config.gopkg/bdd/testserver/server.goOut of scope
/api/healthzand/api/admin/cache/flush— these endpoints currently lack@routerswag comments. Will be a follow-up if user wants the Swagger UI to be the single source of truth.