The single source of truth for what to build next. Every work session (human or agent) starts here.
- Read AGENTS.md (rules) and the docs linked from the task you pick.
- Find the first unchecked task in the current phase (see Status). Tasks within a group are ordered; groups may run in parallel unless marked
needs:. - Work test-first. A task is done only when its → verify line passes and the Definition of Done holds.
- Tick the box (
- [x]), update Status, and commit with a Conventional Commit whose scope matches the group. - When the whole group is checked: push and run
task release -- vX.Y.Z(one release per group, with changelog and GitHub release — see docs/tooling.md). - Never start a task from a later phase while the current phase's exit criteria are unmet.
Task IDs: <phase>.<group>.<task> (e.g. P.3.2). Reference them in commit bodies (Refs: P.3.2).
| Field | Value |
|---|---|
| Current phase | BETA (stabilisation: B.5) |
| Next task | S.3.1 |
| Updated | 2026-11-23 |
| Topic | Doc |
|---|---|
| Decisions log | docs/brainstorming.md |
| Research | docs/golang-web-search.md |
| Architecture | docs/architecture.md |
| Configuration | docs/configuration.md |
| HTTP (routing, ctx, middleware, validation, sessions, errors) | docs/http.md |
Typed schemas z (validation in and out) |
docs/validation.md |
| REST APIs | docs/api.md |
| Security (OWASP Top 10:2025 defaults) | docs/security.md |
| Databases | docs/database.md |
| Auth | docs/authentication.md |
| Frontend (views, HTMX, Inertia, Vite) | docs/frontend.md |
| CLI | docs/cli.md |
| Subsystems (mail, cache, queue…) | docs/subsystems.md |
| Testing | docs/testing.md |
| Tooling & releases | docs/tooling.md |
Documentation website (site/, vukem.dev) |
docs/site.md |
Applies to every task:
- Tests written first and passing:
task test(andtask test:integrationwhen DB drivers are touched). task lintclean (golangci-lint + markdownlint), no newnolintwithout explanation.- Exported identifiers documented (godoc, full sentences); runnable
Examplefor new public APIs. - Coverage of touched packages does not drop below the gate in docs/testing.md.
- No new third-party dependency unless listed in docs/architecture.md (update it + brainstorming otherwise).
- Core does not import
drivers/*; no package-level mutable state; noinit()registration. - Every security default the task introduces (see docs/security.md) has a
TestSecurity_<Axx>_<Behaviour>test; unsafe options are opt-out with an explicit name; failures deny (fail closed). - Relevant doc in
docs/updated if behaviour or API changed. - Conventional Commit;
CHANGELOG.mdregenerated at release time only.
| Phase | Version | Goal | Exit criteria |
|---|---|---|---|
| Prototype | v0.1.x |
Smallest end-to-end framework: vukem new blog → CRUD with HTMX on SQLite, plus JSON endpoints with problem+json errors, tested |
P exit |
| ALPHA | v0.2–v0.x |
REST API starter, auth, authorization, relations, Postgres, mail, cache, storage, events | A exit |
| BETA | v0.N.0 per group, then v1.0.0 (no release candidates) |
OpenAPI, queue, scheduler, Inertia + React, Vite, Redis, Mongo, i18n, SSE, encryption | B exit |
| 1.0 Stable | v1.0.0 |
API freeze, docs site, stability policy, LTS | S exit |
Goal: a developer installs the CLI, creates an app, and ships a CRUD page with forms, validation, flash messages and HTMX partials on SQLite, plus JSON endpoints for the same data — everything covered by tests.
- P.0.1 Initialise module
github.com/AlexGalhardo/vukem(go 1.27.0), rootdoc.go(package vukem). → verify:go build ./...succeeds. - P.0.2 Add
.editorconfig,.gitattributes,.gitignore. → verify:git ls-files --eolshowsi/lffor text files. - P.0.3 Add
.golangci.yml(v2, formatters + linters + depguard per tooling.md). → verify:golangci-lint config verifyandgolangci-lint run ./...pass. - P.0.4 Add
.markdownlint-cli2.jsonc. → verify:npx markdownlint-cli2 "**/*.md"passes. - P.0.5 Implement
internal/tools/commitlint(Conventional Commits 1.0 validator) with table-driven tests (valid, invalid type, missing colon, uppercase start, trailing period, breaking!, footerBREAKING CHANGE:, merge/revert/fixup exceptions, header > 100). → verify:go test ./internal/tools/commitlint≥ 95% coverage. - P.0.6 Add
lefthook.yml(pre-commit, commit-msg, pre-push). → verify: a commit with messagebad messageis rejected;feat(repo): add hooksis accepted. - P.0.7 Add
Taskfile.yml(setup,fmt,lint,test,test:race,test:integration,cover,vuln,changelog,hooks,ci). → verify:task cipasses on Windows and in CI. - P.0.8 Add
cliff.toml(Keep a Changelog 1.1.0 mapping) and initialCHANGELOG.mdwith[Unreleased]. → verify:git cliff --unreleasedrenders KaC sections; markdownlint passes. - P.0.9 GitHub:
ci.yml,pr-title.yml,codeql.yml,dependabot.yml, issue forms, PR template,CODEOWNERS. → verify: CI green on first push; a PR titledupdate stufffails the title check. - P.0.10 OSS files:
README.md,LICENSE(MIT),CONTRIBUTING.md,SECURITY.md,CODE_OF_CONDUCT.md. → verify: markdownlint passes; GitHub detects MIT license. - P.0.11 Agent config:
AGENTS.md(≤ 50 lines),CLAUDE.md,.claude/rules/*,.claude/settings.json. → verify:AGENTS.md≤ 50 lines; markdownlint passes.
- P.1.1
.envparser (quotes, escapes, comments,export,${VAR}interpolation,file:prefix). → verify: table tests +FuzzParseruns 30s without crash. - P.1.2 Source precedence (
getenv>.env.<env>.local>.env.local>.env.<env>>.env;.env.localskipped in test). → verify: tests with a fake FS and fakegetenv. - P.1.3
config.Load[T]:env/defaulttags, supported types, aggregated errors. → verify: tests for every supported type and an error list with ≥ 2 failures. - P.1.4
config.Secret(redaction inString,slog, JSON,%v). → verify: tests asserting[redacted]in each path. - P.1.5
APP_KEYdecoding + HKDF sub-key derivation helper. → verify: deterministic test vectors; boot fails without key.
- P.2.1
Appstruct,New(opts...), functional options. → verify: unit tests for option application. - P.2.2 Provider interfaces (
Register,Booter,Starter,Shutdowner) + environment filtering. → verify: order test (register all → boot all → start; shutdown reverse). - P.2.3 Runner orchestration with
errgroup+signal.NotifyContext; graceful shutdown with timeout. → verify:synctesttest: SIGINT triggers shutdown in reverse order within timeout. - P.2.4 HTTP server runner with mandatory timeouts and
BaseContext. → verify: test asserts non-zero timeouts; in-flight request completes during shutdown. - P.2.5
run(ctx, args, getenv, stdout)pattern helper forcmd/app. → verify: end-to-end test boots app on random port and polls/up.
- P.3.1 Route registration over
http.ServeMux(verbs, params,{path...},{$}). → verify: table tests per verb/pattern;FuzzRoutePattern. - P.3.2 Groups (prefix, nested, middleware, name prefix). → verify: tests for nesting 3 levels.
- P.3.3 Named routes +
Router.URL(missing/extra params error) + conflict errors naming both routes. → verify: tests including conflict case. - P.3.4
Resource/APIResourcewith interface detection,Only/Except. → verify: controller implementing 3 of 7 actions registers exactly 3 routes. - P.3.5
*Ctx: request helpers, responses (String,HTML,JSON,NoContent,Redirect,RedirectRoute,Back,File,Download,Stream). → verify:httptesttests for each response type (status, headers, body). - P.3.6
Bind[T]for JSON, form, multipart, query (+MaxBytesReader). → verify: tests per content type; oversized body → 413. - P.3.7 Adapters
Adapt/WrapbetweenHandlerFuncandhttp.Handler. → verify: chi-style third-party middleware works in a test. - P.3.8 Three middleware stacks (server, router, named) +
MethodOverride. → verify: unmatched route runs only server stack;_method=DELETErouted correctly. - P.3.9
route:listdata provider ([]RouteInfo). → verify: golden test of the table output. - P.3.10 Benchmarks for routing and ctx allocation.
→ verify:
task benchruns; results recorded in PR description.
- P.4.1
errstypes (HTTPError, sentinels,ValidationError) +errors.Is/AsTypesupport. → verify: unit tests. - P.4.2 Central handler with content negotiation (HTML / problem+json RFC 9457 / HTMX). → verify: golden tests per format.
- P.4.3 Status pages (
errors/<status>.htmlfallback to built-ins) and dev debug page (stack, request, redacted config). → verify: debug page never rendered whenAPP_ENV=production(test). - P.4.4 Middleware:
Recover,RequestID,Logger(slog),Timeout,CORS(deny by default),Static(os.Root, immutable cache for hashed files). → verify: tests each; path traversal attempt onStatic→ 404. - P.4.5
/uphealth route. → verify: test returns 200 after boot. - P.4.6 JSON response helpers (
JSON,Created+Location,Accepted,NoContent,Problem), 405 withAllow, automaticHEAD,middleware.JSONOnly()(415, body limit). → verify: the status table in docs/api.md is covered by tests. - P.4.7
ETag/If-None-Match(304) andIf-Match(412) helpers, gzip middleware. → verify: conditional request tests. - P.4.8 Security headers middleware (nosniff, frame options, referrer, COOP, permissions policy, HSTS on HTTPS) + CSP builder with per-request nonce (
cspNoncetemplate func). → verify:TestSecurity_A02_*header tests; nonce differs per request. - P.4.9 Boot-time misconfiguration guard: refuse
APP_DEBUGin production, short/missingAPP_KEY, CORS*+ credentials, insecure cookies in production;MaxHeaderBytesset. → verify: one failing-boot test per rule. - P.4.10 Security event logging (
eventattribute:csrf.rejected,session.invalid,ratelimit.exceeded…) and redaction ofAuthorization/Cookieheaders and secrets. → verify: log capture tests assert events present and secrets absent.
- P.5.1 Core:
Schema[T]interface,Issues/Issue(path, code, message, params), immutable modifiers (Optional,Nullable,Default,Refine,Transform,Message,Describe). → verify: unit tests for each modifier; schemas safe for concurrent use (-race). - P.5.2 Primitives:
String(+ checks/transforms), integer family,Float,Bool,Time,Enum, with lossless coercion from strings. → verify: table tests per check (pass/fail/edge) and per coercion. - P.5.3 Composites:
Slice,Map,Struct[T](Shape)with field mapping byjson/formtag, type compatibility checked at construction,Strict(), nested paths in issues. → verify: mismatched shape panics at construction; nested issue pathsa.b.2.c. - P.5.4
FromTags[T],Register[T]/For[T]registry,FieldErrorhelper,ParseJSON(io.Reader, schema). → verify: tag schemas equal hand-written ones on a shared test corpus;FuzzParseon JSON input. - P.5.5 Web integration:
web.Parse,web.Bind[T],ParseQuery,ParseParams(form arrays/brackets),JSONWithoutput checks; issues →*errs.ValidationError→ 303+flash / 422 / problem+json. → verify: three end-to-end tests (form, HTMX, JSON) + output mismatch test.
- P.6.1 Session manager (lazy load, dirty write, regenerate, invalidate, idle/absolute timeout).
→ verify:
synctesttests for expiry. - P.6.2 Stores: cookie (AES-GCM, 4 KB guard), memory, database (SQLite). → verify: shared store conformance test suite run against each store.
- P.6.3 Flash, reflash, old input, errors bag. → verify: two-request tests.
- P.6.4 CSRF:
http.CrossOriginProtectionwiring + config (trusted origins, bypass patterns) + optional token fallback. → verify: cross-origin POST rejected; same-origin accepted; webhook bypass works.
- P.7.1
database.Manager, SQLite connection with pragmas, writer/reader pools,BEGIN IMMEDIATE. → verify: concurrent write test (50 goroutines) withoutSQLITE_BUSY. - P.7.2 Dialect interface (placeholders, quoting, type mapping) + SQLite dialect. → verify: unit tests for SQL generation.
- P.7.3 Model metadata cache (table/column naming,
Model,SoftDeletes,ULIDModel, optional interfaces). → verify: tests for naming conventions and overrides. - P.7.4
Query[T]: where family, select/join/group/having/order/limit/offset, unknown-column check. → verify: golden SQL tests + execution tests on SQLite. - P.7.5 Reads:
Get,First,Find,Count,Exists,Pluck[V],Each(iter.Seq2),Chunk,Paginate. → verify: tests incl. earlybreakinEachcloses rows (sqlclosecheckclean). - P.7.6 Writes:
Create,Update,Query.Update,Delete(soft), hooks. → verify: tests incl. timestamps and soft-delete scoping. - P.7.7 Transactions
db.Tx(commit/rollback/panic) + executor interface fordb/tx. → verify: panic inside tx rolls back (test). - P.7.8
orm.JSON[T],sql.Null[T]support. → verify: round-trip tests. - P.7.9 Schema builder (create/alter/drop, column types, modifiers, foreign keys, indexes,
Raw) for SQLite (add/rename/drop column via native ALTER; table rebuild came withSchema.Rebuild, see schema/rebuild.go). → verify: golden DDL tests + apply on SQLite. - P.7.10 Migration runner (batches, up/down, status, reset, fresh, step) with registry slice. → verify: tests for each command on a temp DB.
- P.7.11 Injection hardening: identifiers validated against model metadata,
WhereRaw/Rawrequire placeholders, validator rejects invalid UTF-8/control chars. → verify:TestSecurity_A05_*including payloads from the OWASP SQLi cheat sheet; fuzzFuzzWhere. - P.7.12 Migration checksums;
migrate:statusreports modified applied migrations. → verify: test edits an applied migration and sees the warning.
- P.8.1
view.Engineoverhtml/templatewithfs.FS, per-page sets, layouts, partials, dev reload. → verify: golden render tests; reload test modifies a temp file. - P.8.2 Fragment rendering (
Fragment,htmx.Block). → verify: tests full vs partial request. - P.8.3 Template funcs (
route,asset,csrfField,old,error(s),flash,json,dict) + shared data. → verify: tests each func. - P.8.4
Viewinterface for templ components (c.View). → verify: test with a hand-writtenViewimplementation (no templ dependency). - P.8.5
htmxrequest helpers (v4 headers) + response builder +<hx-partial>/OOB helpers +Vary. → verify: header table tests; golden HTML for partials. - P.8.6 Redirect behaviour (
HX-Locationfor htmx, 303 otherwise). → verify: tests.
- P.9.1
vukemtest.New(t, bootFn)with test env, in-memory SQLite, migrations. → verify: used by ≥ 3 framework tests. - P.9.2 Fluent client (requests, status/redirect/body/session/HTMX assertions) with rich failure output.
→ verify: self-tests using a fake
testing.TBthat records failures. - P.9.3 DB helpers (
RefreshDatabase,AssertDatabaseHas/Missing/Count). → verify: tests. - P.9.4
FakeClock(injectableclock.Clockused by sessions). → verify: session expiry test via fake clock. - P.9.5 API assertions:
WithToken,GetJSON,PostJSON,AssertJSONPath,AssertJSONCount,AssertProblem,AssertJSONValidationErrors. → verify: self-tests with a faketesting.TB.
- P.10.1
cmd/vukemskeleton: command registry,flag-based parsing,list,version, help, exit codes. → verify: golden help output. - P.10.2 Stub engine (
embed.FS, localstubs/override, naming helpers,go/format). → verify: golden tests per stub. - P.10.3 Codemod engine (
go/astappend to known slices/functions + imports; fallback snippet). → verify: golden tests incl. missing-marker fallback. - P.10.4 Generators:
make:controller [--resource|--api],make:model [-m -f -c],make:migration,make:middleware,make:request,make:command,make:provider,make:test. → verify: each generator in a temp project thengo build ./...+go vet ./...pass. - P.10.5
key:generate. → verify: writes valid base64 32-byte key; refuses overwrite without--force. - P.10.6 Delegation to app binary (
go run ./cmd/app <cmd>), with cached build. → verify:vukem migratein a temp project runs migrations. - P.10.7 App commands:
migrate*,route:list,about, userCommandinterface. → verify: tests viarun(ctx, args, …). - P.10.8
servewith polling watcher, rebuild/restart, template reload, optionalnpm run dev. → verify: e2e test edits a handler and observes new response within 5s. - P.10.9
build(optionalvite build,go build -trimpath). → verify: e2e build produces runnable binary.
- P.11.0 Vendored htmx with pinned version and SHA-256 checked by a test; strict CSP in starter layout. → verify: tampered file fails the test; starter pages render with no CSP violations (headless check in e2e).
- P.11.1 HTMX + SQLite starter (skeleton per brainstorming.md), vendored htmx 4.x, minimal CSS, welcome page, example
PostControllerCRUD with validation + flash + partials, tests. → verify: starter's own tests pass. - P.11.2
vukem new <name> [--module]: copy starter, rewrite module path,go mod tidy,key:generate,git init. → verify: e2e on ubuntu/windows/macos:vukem new blog && cd blog && go test ./... && vukem build.
-
P.12.0 Documentation site (
site/, Next.js 16 + Tailwind v4 + Base UI, Resend-like) deployed at vukem.dev with pages for every Prototype feature. → verify:task site:buildgreen; Ctrl+K search, theme toggle, copy + toast work; production URL serves the new pages. -
P.12.1 GoReleaser config +
release.yml. → verify:goreleaser release --snapshot --cleanbuilds all targets. -
P.12.2 README quick start validated by following it on a clean machine/container. → verify: checklist in PR.
-
P.12.3 Tag
v0.1.0, warm proxy, verifygo install …/cmd/vukem@v0.1.0. Done withv0.3.0, the first tag under the publicgithub.com/AlexGalhardo/vukempath (earlier tags declare the old private path):go install …/cmd/vukem@v0.3.0,vukem new blog, migrate, tests and build verified in a cleangolang:1.27container; release binaries attached byrelease.yml. → verify: pkg.go.dev shows docs and MIT license.
-
go install github.com/AlexGalhardo/vukem/cmd/vukem@latestworks on Windows, Linux, macOS (verified on Linux and Windows; macOS via the CI test matrix and release binaries). -
vukem new blog→vukem serve→ CRUD with HTMX partials, validation errors (422), flash messages — no Node required. - The starter's example controller also exposes JSON endpoints that return problem+json on errors, covered by API assertions.
- Core coverage ≥ 80% overall; router, validate, session, orm, schema, config ≥ 90%.
- Zero third-party deps in core except
modernc.org/sqliteandgolang.org/x/crypto. - CI green on the full matrix;
govulncheckclean. - Router benchmark: < 1 µs/op and ≤ 2 allocs for a static route on CI hardware (documented baseline).
-
go test -run TestSecurity ./...covers every Prototype default of docs/security.md (each row names its test or enforcing mechanism);gosecandgovulncheckclean.
Goal: real apps with users, permissions, relations, Postgres, mail, cache, storage and events.
- A.0.1
APIResource, nested andShallow()resources. → verify: route table golden test. - A.0.2 Resource transformers (
make:resource,api.Map) and pagination envelopes for offset and cursor pages (orm.CursorPaginate). → verify: golden JSON tests. - A.0.3 Query conventions (
api.Filters,Sorts,Includes,Fields,PerPage) with allowlists and a 400 problem on unknown params. → verify: table tests including SQL-injection attempts in sort/filter values. - A.0.4 CORS middleware (deny by default, preflight, credentials) and API rate limiting per token/IP. → verify: preflight and 429 tests.
- A.0.5 Unique-violation → 409 mapping per dialect;
Deprecation/Sunsetheader helper. → verify: tests on SQLite and Postgres. - A.0.6
vukem new <name> --apistarter andvukem install:api(token issue/revoke endpoints,routes/api.go, tests). needs: A.3.4 → verify: e2e: generated API app tests pass on all OSes.
- A.1.1
drivers/postgresmodule (pgx stdlib), dialect,go.workwiring, separate CI job. → verify:GOWORK=off go test ./...inside module; integration suite passes againstpostgres:17. - A.1.2 Run the ORM/schema conformance suite against Postgres (shared suite with SQLite). → verify: same suite green on both dialects.
- A.1.3 Database session store + migrations on Postgres. → verify: store conformance suite.
- A.2.1
HasOne,HasMany,BelongsTowithWith(...)eager loading (batchedIN). → verify: query-count assertions (1 + 1 per relation). - A.2.2
ManyToManywith pivot (Attach,Detach,Sync). → verify: tests on both dialects. - A.2.3 Strict mode
ErrNotLoaded. → verify: test. - A.2.4
factorypackage (Faker subset, states,Count,Make,Create, relations). → verify: tests. - A.2.5 Seeders +
db:seed,db:wipe,make:factory,make:seeder. → verify: e2e in temp project. - A.2.6 DB validation rules
unique,exists. → verify: tests.
- A.3.1 Hashers (argon2id default, bcrypt) +
NeedsRehash+ fake. → verify: PHC round-trip tests; 72-byte bcrypt guard. - A.3.2
Authenticatable,UserProvider,ORMProvider. → verify: tests. - A.3.3 Session guard (attempt, login, logout, regenerate, timing-safe miss, remember-me). → verify: tests incl. session fixation check.
- A.3.4 Access-token guard (create, hash, abilities, expiry, revoke,
last_used_at). → verify: tests. - A.3.5 Middleware
Required,Guest,Verified,Ability. → verify: tests. - A.3.6
install:authscaffold (controllers, actions, views, migrations, routes, tests) incl. password reset + email verification. → verify: e2e: generated tests pass in a new app. - A.3.7
ActingAsin test client. → verify: tests. - A.3.8
socialcore: provider interface, Authorization Code + PKCE, signed single-use state cookie, token exchange,social.User, stateless mode. → verify: end-to-end test against an in-process fake OAuth2 server;TestSecurity_A07_SocialStateMismatch, replayed state and PKCE downgrade rejected. - A.3.9 Providers: GitHub, GitLab, Discord, generic OAuth2; OIDC (Google, Microsoft, generic) with discovery, JWKS cache and ID-token checks (iss, aud, exp, nonce, RS256/ES256). → verify: per-provider user-mapping golden tests; forged/expired ID tokens rejected.
- A.3.10
install:auth --socialscaffold (routes,social_accountsmigration, linking action) andFakeSocialtest helper. → verify: generated app tests pass.
- A.4.1 Gates (
Define,Allows,Authorize,Before). → verify: tests. - A.4.2
Policy[T]registry by type, ability resolution at registration,DenyAsNotFound. → verify: tests. - A.4.3
c.Authorize, templatecan,make:policy. → verify: tests + generator e2e. - A.4.4 Fail-closed authorization (unregistered policy/ability denies) +
authz.deniedsecurity event. → verify:TestSecurity_A01_UnregisteredPolicyDenies.
- A.5.1 Mailable interface, SMTP (
net/smtp+ STARTTLS), log, array drivers. → verify: SMTP tested against an in-process fake SMTP server. - A.5.2 HTML + text views, attachments,
mail:previewdev route,make:mail,FakeMail. → verify: tests. - A.5.3 Resend driver (
MAIL_MAILER=resend,RESEND_API_KEY): send, attachments, reply-to, tags, idempotency key, typed errors, retry on 429/5xx. → verify: tests against an in-process fake Resend API (httptest.Server); API key never appears in logs (TestSecurity_A09_ResendKeyRedacted).
- A.6.1 Cache interface + memory (LRU/TTL) + database drivers;
Rememberwith singleflight; locks. → verify: conformance suite; stampede test. - A.6.2 Storage
Disk+ local (os.Root) + memory; signed temporary URLs; uploads helper;storage:link. → verify: traversal tests; conformance suite. - A.6.3 Typed events (
Listen[T],Dispatch), async pool tracked for shutdown,make:event/make:listener,FakeEvents. → verify: tests. - A.6.4 Rate limiter (memory) + middleware + headers; default login throttle.
→ verify:
synctesttests.
- A.6c.1
logging/telegramslog.Handler: HTML formatting (emoji per level, app, env, time, attrs, error chain/stack), escaping, 4096-char truncation,MinLevel, per-level chat routing, thread id, silent mode. → verify: golden message tests;<script>in attributes is escaped. - A.6c.2 Delivery: async bounded queue, timeout, single retry on 429 with capped
retry_after,OnError, drain on shutdown, auto-disable without config. → verify: tests with fake Telegram API incl. 429 and timeout;synctestfor retry timing; app never blocks when Telegram is down. - A.6c.3
Contact(ctx, form)andSend(ctx, html)helpers + config (TELEGRAM_BOT_TOKEN,TELEGRAM_CHAT_ID,TELEGRAM_MIN_LEVEL) + docs page. → verify: tests; token redacted inabout.
- A.6b.1
httpclient.Safe()SSRF-safe client (post-DNS IP checks, redirect re-check, timeouts, size limits). → verify:TestSecurity_A01_SSRF*against loopback, private, link-local, metadata and DNS-rebinding cases. - A.6b.2 Signed URLs (HMAC + expiry) and
webhook.VerifyHMAC. → verify: tampered/expired URL and bad signature rejected in constant time. - A.6b.3
security.Eventstream (events.Listen[security.Event]) for alerting; login/lockout/token events. → verify: events emitted in auth flows. - A.6b.4 Lint guard:
math/randforbidden inauth,session,crypt,tokenpackages (depguard rule). → verify: a test file importing it fails lint in CI.
-
A.7.0 Documentation site updated with every ALPHA feature (API starter, auth, social login, relations, Postgres, mail, cache, storage, events) and redeployed. → verify:
task site:buildgreen; pages live on vukem.dev. -
A.7.1 Each ALPHA group shipped as a minor (
v0.2.0,v0.3.0…) with changelog. → verify: tags exist;CHANGELOG.mdsections per release. -
A.7.2 Example app
examples/blogusing auth + policies + relations on Postgres and SQLite. → verify: CI runs its tests on both.
-
vukem install:authproduces a working login/register/reset/verify flow with passing generated tests. -
vukem new shop --apiproduces a token-authenticated JSON API with pagination, filtering, CORS, rate limiting and problem+json errors, with passing generated tests. - ORM + schema conformance suite green on SQLite and Postgres.
- Mail, cache, storage, events, rate limiting each have a fake and docs.
- Core deps still within the allowlist; Postgres pulled only via
drivers/postgres. - Every ALPHA default of docs/security.md has its
TestSecurity_*test or enforcing mechanism. - Coverage gates hold; integration CI green.
Goal: feature-complete 1.0 surface; API stabilisation begins.
- B.0.1 Typed handlers
api.Register(g, pattern, op, func(c, In) (Out, error)). → verify: tests for binding, validation and response encoding. - B.0.2 OpenAPI 3.1 generator (schemas from
json/validatetags, problem catalogue, security schemes),/openapi.json,vukem openapi:export. → verify: generated document validates against the OpenAPI 3.1 JSON Schema; golden test. - B.0.3
AssertMatchesOpenAPI()test helper. → verify: a mismatching response fails the assertion. - B.0.5
zexports:JSONSchema()andvukem codegen:types(TypeScript types + optional Zod schemas). → verify: golden JSON Schema/TS output;tsc --noEmitpasses on generated types. - B.0.4
Idempotency-Keymiddleware (database/Redis store). → verify: a duplicate POST returns the stored response. - B.0.6 API reference UI with Scalar (scalar.com):
api.Docs(spec)serves the Scalar API Reference for the generated OpenAPI 3.1 document at/docs(configurable path, theme, auth presets), assets vendored with a pinned SHA-256 (no CDN by default), CSP nonce, off in production unless enabled;vukem openapi:servefor previews. → verify: golden HTML; the page loads with the default CSP; disabled in production by default (TestSecurity_A02_APIDocsOffInProduction).
- B.1.1 Queue interface, typed jobs (
Kind()), registry, sync driver, options (retries, backoff, timeout, delay, queue name). → verify: tests. - B.1.2 Database driver (SQLite + Postgres
SKIP LOCKED),DispatchTx,failed_jobs,queue:work/retry/failed, graceful drain. → verify: concurrency tests; transactional enqueue rollback test. - B.1.3
make:job,FakeQueue, queued mail/listeners. → verify: tests. - B.1.4 Scheduler (cron parser,
Every,DailyAt, overlap locks),schedule:run/work/list. → verify:synctesttests; cron parser fuzzed.
- B.2.1
drivers/redis: connection, cache store, session store, queue driver, rate limiter store, locks, SSE pub/sub. → verify: conformance suites againstredis:7(and Valkey). - B.2.2
drivers/mongo: connection manager,Collection[T](find/iterate/insert/update/delete/aggregate), health check. → verify: integration tests againstmongo:8.
- B.3.1
vitepackage: hot file, manifest (recursive imports, CSS, dedupe),asset, React Refresh, CSP nonce, SRI. → verify: golden tests for dev/prod tag output. - B.3.2
inertiacore: page object, root template script, version check (409), 302→303, shared props, validation errors, redirects (Location, fragment). → verify: protocol tests per header/status. - B.3.3 Prop types (Optional, Always, Defer+rescue, Merge, DeepMerge, Prepend, MatchOn, Once, Scroll) with dotted-path recursion; partial reload filtering. → verify: table tests mirroring the protocol spec cases.
- B.3.4 History encryption flags, flash, prefetch, Precognition. → verify: tests.
- B.3.5 SSR client with timeout + CSR fallback + health + dev endpoint discovery;
ssr:start. → verify: fallback test with a failing fake SSR server. - B.3.6 Inertia starters for React, Vue and Svelte (
vukem new --inertia=react|vue|svelte,install:inertia): Vite, TS, Tailwind v4, pages, layouts, auth pages +AssertInertia. → verify: e2e: a new Inertia app per framework builds and its tests pass. - B.3.7
codegen:routes→ typedroutes.ts(warmup boot mode). → verify: golden TS output;tsc --noEmitpasses in starter. - B.3.8 HTMX starter on Vite + Tailwind CSS v4 (
@tailwindcss/vite,resources/css/app.css,{{vite}}in the layout, hot-file plugin);vukem newprompts for the stack on a TTY (HTMX, Inertia → React/Vue/Svelte, API), flags skip it. → verify: e2e:vukem newHTMX app runsnpm run buildand its tests pass; prompt tests with a fake TTY.
- B.4.1 Encryption with key rotation; encrypted cookies;
orm.Encrypted[T]. → verify: rotation tests. - B.4.2 i18n (JSON catalogs, plurals, locale resolution, translated validation messages,
tfunc). → verify: tests. - B.4.3 SSE (
c.SSE, hub, heartbeat, shutdown). → verify:synctesttests. - B.4.4 Maintenance mode (
down --secret,up),install:api(token guard + API routes + problem+json). → verify: tests. - B.4.5 Optional OpenTelemetry module (
drivers/otelorcontrib/otel). → verify: span emitted per request in test exporter. - B.4.6 Youch-style debug error page (decision F7): error chain, stack frames with source snippets (panics +
errsstacks captured outside production), request with redacted secrets, route info; ANSI terminal output. → verify: golden HTML/ANSI tests;TestSecurity_A02_DebugPageOffInProduction, secrets redacted.
- B.6.1
drivers/websocketmodule (coder/websocket): upgrade with origin check, ping/pong, read limits, graceful close on shutdown,c.WebSocket(fn). → verify: tests with an in-process client; cross-origin upgrade rejected (TestSecurity_A01_WebSocketOrigin). - B.6.2
broadcastpackage: channels, private and presence channels authorized through gates, memory fan-out, Redis fan-out (viadrivers/redis), SSE fallback,Broadcast(ctx, event)from events/jobs. → verify: conformance suite (memory, Redis); unauthorized subscribe denied. - B.6.3
contrib/graphqlmodule: SDL parser, executor (queries, mutations, variables, fragments, introspection), typed resolvers, batching loader over the ORM, depth/complexity limits, persisted queries, errors with extensions. → verify: spec-derived parser/executor tests; fuzzed parser; depth-limit test; N+1 avoided (query-count assertion). - B.6.4 GraphQL subscriptions over WebSockets (graphql-ws protocol) using
broadcast. → verify: subscription e2e test.
- B.7.1
adminpackage: resources from ORM models (list with filter/sort/search/pagination, create/edit forms fromzschemas, delete with confirmation), HTMX UI embedded, auth + policies required, audit log of changes. → verify: e2e CRUD through the admin in a test app; access without theadminability denied (TestSecurity_A01_AdminRequiresAbility). - B.7.2
install:adminscaffold andmake:admin-resource. → verify: generated app tests pass. - B.7.3
devtoolsdashboard at/_vukem(development only; boot error if enabled in production): routes, requests with timings, SQL queries with N+1 detection, jobs, events, mail previews, logs, traces (ring buffers). → verify: tests; enabling in production fails at boot (TestSecurity_A02_DevtoolsRefusedInProduction).
- B.8.1 JWT guard (
auth/jwt, stdlib): HS256/RS256/ES256/EdDSA,algallowlist,kid+ JWKS rotation, claim checks, refresh-token rotation with reuse detection. → verify: RFC 7515/7519 test vectors;none/alg-confusion/expired/wrong-aud tokens rejected (TestSecurity_A07_JWT*). - B.8.2 TOTP 2FA (
auth/totp, RFC 6238): enrolment (otpauth URI + QR), hashed recovery codes, per-step replay protection, throttling,install:auth --2fa. → verify: RFC 6238 vectors; replayed code rejected; generated app tests pass. - B.8.3 Social providers Apple (ES256 client secret,
form_post), LinkedIn (OIDC), X (OAuth 2.0 + PKCE) on the ALPHAsocialcore. → verify: per-provider golden user mapping against fake servers. - B.8.4
drivers/s3storage module (stdlib SigV4 client): put/get/delete/list/stat, multipart upload, presigned GET/PUT URLs. → verify: storage conformance suite against MinIO; SigV4 test vectors. - B.8.5
drivers/mysqlmodule (MySQL 8 / MariaDB 11 dialect). → verify: ORM/schema conformance suite green againstmysql:8andmariadb:11.
-
B.9.0 Vukem Boost (Laravel Boost-style):
vukem boost:install(AGENTS.md guidelines,.claude/skills/vukem-*, MCP configs) and theboost:mcpapp command (stdio MCP server with app tools). → verify: MCP protocol and tool tests; read-only query security test; install is idempotent and keeps user content. -
B.9.1
Inertia Vue and Svelte starters— moved into B.3.6 (decision F4, 2026-10-16). -
B.9.2 templ-first starter (
vukem new <name> --templ). → verify: e2e: generated app builds,templ generateis clean and tests pass. -
B.9.3 Typed RPC client generation (
vukem codegen:client, TypeScript and Go) from typed handlers/OpenAPI withztypes. → verify: golden output;tsc --noEmitandgo vetpass on generated clients; round-trip test against a running app.
- B.10.1
contrib/stripemodule with a stdlib HTTP client (no stripe-go): customers, Checkout Sessions, subscriptions, Billing Portal, payment intents, idempotency keys, typed errors, retries on 429/5xx, API version pinned. → verify: tests against an in-process fake Stripe API; secret key never logged (TestSecurity_A09_StripeKeyRedacted). - B.10.2 Stripe webhooks:
Stripe-Signatureverification (HMAC-SHA256, timestamp tolerance, multiple signatures), typed events dispatched toevents.Bus, idempotent processing (event id store). → verify: forged, replayed and stale webhooks rejected (TestSecurity_A08_StripeWebhookSignature); duplicate event processed once. - B.10.3
vukem install:billingscaffold:billablecolumns on users, plans config, checkout/portal routes, subscription sync from webhooks,Subscribed/OnPlanmiddleware, tests with the fake API. → verify: generated app tests pass. - B.10.4 File uploads, beyond
storage.PutUploaded(ALPHA): streaming multipart parsing without buffering whole files, per-route size/type limits, chunked/resumable uploads (tus 1.0 core), direct-to-S3 presigned uploads,zfile rules (z.File().MaxSize().Types()), an htmx upload component with progress, optional scan hook (ClamAV) before files become visible. → verify: large-file upload test with bounded memory; resumed upload completes after interruption; spoofed type and oversize rejected (TestSecurity_A05_UploadValidation).
- B.11.1
contrib/grpcmodule on connect-go (net/http native: gRPC, gRPC-Web and Connect protocols on the same router, HTTP/2 viah2cin development):grpc.Mount(r, path, handler), interceptors bridging auth guards,zvalidation, problem details → gRPC status codes, request id and logging. → verify: unary and server-streaming tests with gRPC and Connect clients against the app router; unauthenticated calls getUnauthenticated. - B.11.2 Codegen and tooling:
vukem make:proto,buf.gen.yamltemplate,vukem codegen:rpc(protoc-gen-go + protoc-gen-connect-go viago tool), gRPC health checking and server reflection (dev only),vukemtestRPC client helpers. → verify: generated service compiles and its tests pass in a new app.
-
B.5.1 Public API review: every exported identifier justified; remove/rename before freeze;
//go:fix inlinefor renamed APIs. → verify:apidiffreport reviewed and committed underdocs/api/. -
B.5.2 Security review against docs/security.md (OWASP Top 10:2025, ASVS L2 checklist for CSRF, sessions, auth, uploads, SQL building, headers) + fuzzing campaign (≥ 1h per fuzz target). → verify: findings tracked and closed; every BETA default of docs/security.md is checked (
[x]) and names its test. -
B.5.5 Supply chain: cosign keyless signing of release artifacts, SBOM published, actions pinned by SHA, OpenSSF Scorecard ≥ 7. → verify:
cosign verify-blobin release workflow; Scorecard badge. -
B.5.3 Performance baseline (router, ORM, render, full request) vs net/http, chi, echo. → verify: baseline committed in performance.md.
-
B.5.4 Docs completeness: every package has overview + examples; guides for each starter. → verify: checklist.
-
B.5.6 Documentation site updated with every BETA feature (OpenAPI, queue, scheduler, Inertia, Vite, Redis, Mongo, i18n, SSE, encryption, GraphQL, WebSockets/broadcasting, admin, dev dashboard, JWT, 2FA, S3, MySQL, new starters, client generation, Stripe, file uploads, Scalar API docs, gRPC) and redeployed. → verify:
task site:buildgreen; pages live on vukem.dev.
- All conformance suites green on SQLite, Postgres, MySQL, Redis, Mongo, S3 (MinIO).
- HTMX, templ and Inertia (React, Vue, Svelte) starters all pass e2e on all OSes.
- No open
securityissues;govulncheckclean; OpenSSF Scorecard ≥ 7.
Goal: a framework others can depend on for years.
- S.1.1
docs/stability.md: compatibility promise (Go 1 style), deprecation policy (≥ 2 minors), supported Go versions (latest two), security support window. → verify: linked from README and SECURITY.md. - S.1.2 Release cadence: minor every ~3 months, patches as needed;
release/1.xLTS branch policy. → verify: documented in CONTRIBUTING. - S.1.3 Upgrade guide template (
docs/upgrade/) used for every minor. → verify: present for 0.x → 1.0.
- S.2.1 Docs site versioned per minor (
site/, see docs/site.md). → verify: version switcher works;task site:buildgreen. - S.2.2 Tutorials: blog with HTMX, SaaS with Inertia, JSON API with tokens.
→ verify: each tutorial's code lives in
examples/and is tested in CI.
- S.3.1
v1.0.0tag for core and all driver modules (drivers/*/v1.0.0). → verify:go geteach module at v1.0.0 works; pkg.go.dev updated. - S.3.2 Announcement (README and GitHub release; posting to Go community channels is left to the maintainer, see brainstorming). → verify: published.
- All previous exit criteria still hold.
- Stability policy published; API frozen (apidiff gate in CI against
v1.0.0). - vukem-quiz/ running on 1.0 in production.
- vukem-rifa/ running on 1.0 in production.
- vukem-marketplace/ running on 1.0 in production.