feat(workflow): example covers security, platform, enterprise and resilience features

105 route tests, matrix crawl, spec and README updated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 02:19:52 +02:00
co-authored by Claude Sonnet 5.5
parent 00af65613d
commit 62fdd08da8
90 changed files with 8038 additions and 11 deletions
+32 -1
View File
@@ -19,6 +19,31 @@ owning sibling plan and the file that will close it.
9. The release demo parses Conventional Commits, maps the bump, renders a
changelog entry, and gates on checks (dry-run: never writes).
10. All pages render on a 360px viewport; wide nav collapses to a dropdown.
11. Browser form posts that fail validation answer 422 with the same form:
a summary box (count, one link per failing field) and the message next
to each invalid input, entered values kept. Never raw JSON in a page.
JSON clients (Accept or Content-Type `application/json`) keep the
`validation_error` body. One partial (`form_page.html`) and one helper
(`app/FormUi.hpp`) serve every form.
12. `GET /stats` renders Chart.js charts from `GET /stats/data`: requests,
errors, latency avg/p50/p95/p99 and histogram, bytes in/out, status
codes, methods, top routes, connections (total, active, peak, timeouts,
malformed, cap left), plus service state (stores, cache hit/miss, tasks,
workers, ORM, metrics registry). History: 90 ten-second buckets.
13. Chart.js 4.4.7 and the page script are embedded at build time:
`example/assets` -> `build/example/gen/assets.{cpp,hpp}` through the
MoloApp embedder (`src/cli/embed`), served at `/embedded/{name}`.
14. Every matrix row answers a plain GET with 2xx/3xx (401 for `/auth/me`
by design). `tests/example/matrix_test.cpp` crawls them all.
15. Feature groups added: security extras (csrf, cors, rate limit, headers,
csp, crypto, roles, secrets, upload, guards, denials, login), platform
(i18n, compression, conditional GET and ranges, probes, prometheus,
logging, trace context, DI, flash, middleware, expose stats, CLI
reference), enterprise (tenancy, audit, governance), resilience (breaker,
bulkhead, shedder, deadline, slo, chaos, deploy, coord, debug, supply
chain, client retry and session, migrations, transactions, query
builder, singleflight, ttl store). Each is a skeleton of the real `src/`
module; per-module gaps are in the header of its `fw/` file.
## Caps
@@ -51,7 +76,8 @@ auth, 403 bad credentials, 404 unknown, 405 wrong method, 406 no format,
## Isolation
May depend on: C++23 stdlib, POSIX sockets, `example/fw/` only. May NOT
May depend on: C++23 stdlib, POSIX sockets, `example/fw/` only. Build-time
only: the embedder sources in `src/cli/embed` (asset embedding). May NOT
depend on: any `src/` tree (does not exist yet in this worktree), wolfSSL
(stub behind `ITlsContext`), real Postgres/SQLite (in-memory doubles),
real network except loopback. Namespaces mirror directories:
@@ -72,6 +98,11 @@ real network except loopback. Namespaces mirror directories:
- Full validation coercions, template sandbox, DI container, flash
messages: owner 05-request-routing.md, files `example/fw/Validate.*`,
`example/fw/Templates.*`, `example/app/App.*`.
- Server accepts sequentially and stops after 512 connections (cap above);
the stats page shows connections left. Owner: 01-runtime.md,
`example/fw/Server.*`.
- Template engine has no `elif`, `not`, or macros. Owner:
05-request-routing.md, `example/fw/Templates.*`.
- Real WS/Socket.IO/SSE framing, rooms, namespaces, realtime clients:
owner 06-realtime.md, file `example/app/RealtimeDemo.*`.
- Worker processes, durable streams, conflict hooks, multi-instance: