81 Commits

Author SHA1 Message Date
udo
8c3f8c5e01 fix persisted unit failure identity 2026-07-14 21:44:31 +00:00
udo
d33d5e80ba fix canonical component artifact identity 2026-07-14 21:32:29 +00:00
udo
afb17fc334 test: retry transient doc gate reads 2026-07-14 04:34:52 +00:00
udo
2a1400b78c test: run CLI gates by group 2026-07-14 04:04:55 +00:00
udo
8eec28a639 Clarify CSRF field raw rendering 2026-07-14 00:04:43 +00:00
udo
7fabccd90a Add CSRF hidden field helper 2026-07-13 23:52:49 +00:00
root
8da6cad305 fix: retain resolved component paths 2026-07-13 21:26:01 +00:00
udo
0187bb60cf docs: publish password hashing APIs 2026-07-13 19:47:06 +00:00
udo
4414972079 feat: add native scrypt password hashing 2026-07-13 19:35:38 +00:00
udo
c1039f5094 Parse standard absolute URL paths 2026-07-13 09:31:45 +00:00
udo
02ed75fc85 Invalidate units when loaded sources change 2026-07-13 07:42:52 +00:00
udo
d857930ceb Expose MySQL affected row counts 2026-07-13 07:10:03 +00:00
root
b1dfe6c807 Reuse MySQL connections within requests 2026-07-13 00:08:07 +00:00
udo
0ff42f357f Document request-scoped MySQL cleanup 2026-07-08 18:44:07 +00:00
udo
b8c2efe976 add native csrf helpers 2026-07-06 09:58:25 +00:00
udo
a6cb1c0390 fix wasm session and mysql placeholder state 2026-07-06 07:54:01 +00:00
root
991a0f62b4 harden runtime config and docs 2026-06-27 20:58:07 +00:00
udo
c148c1b36b test: allow skipping nested local service probes 2026-06-22 02:39:36 +00:00
udo
30fcfce103 test: include response tails in site failures 2026-06-22 01:31:44 +00:00
udo
41b034739b test: use explicit failed-count checks 2026-06-22 01:14:07 +00:00
udo
bd007231de test: distinguish case failures from summary labels 2026-06-22 00:56:46 +00:00
udo
7cf930b4a8 test: accept explicit zero-failure summaries 2026-06-22 00:39:12 +00:00
udo
4d17d80f9a test: build failed-count markers explicitly 2026-06-22 00:21:10 +00:00
udo
0d59ea4b1c test: rely on site summary failure counts 2026-06-21 23:54:01 +00:00
udo
a0d085859c test: stabilize cold local service probes 2026-06-21 23:37:01 +00:00
udo
9e70dde366 test: detect site case failures explicitly 2026-06-21 23:05:32 +00:00
udo
c73dbc8503 test: retry cold site suite probes 2026-06-21 22:42:02 +00:00
udo
1d6c882fb7 test: wait for complete local HTTP bodies 2026-06-21 22:24:12 +00:00
udo
245119f952 test: report site suite marker details 2026-06-21 22:07:28 +00:00
udo
e113215ffa test: wait for slow streamed test responses 2026-06-21 21:50:37 +00:00
udo
1088f6b9a5 test: tolerate cold unit browser responses 2026-06-21 21:21:39 +00:00
root
1770323a2a fix test runner repo path handling 2026-06-21 21:05:51 +00:00
root
4a6fc46ec8 docs: document runtime cache request param 2026-06-21 21:02:36 +00:00
root
c0f3c5507c fix doc example cache path 2026-06-21 20:59:01 +00:00
root
4eda629c8d cleanup, docs 2026-06-17 13:02:57 +00:00
root
b8b56cf3dd cleanup, docs 2026-06-16 23:02:45 +00:00
root
ea08d5f28b cleanup, docs 2026-06-16 12:21:31 +00:00
root
dff1959341 cleanup, error pages 2026-06-16 08:46:54 +00:00
root
f2a3503ac3 configurable trans-membrance hostcall blocklist 2026-06-16 01:13:06 +00:00
root
52cf266a5e docs 2026-06-15 21:46:31 +00:00
root
99cd92fb4a docs 2026-06-15 21:42:50 +00:00
root
1a5c6547b9 post-W7 cleanup 2026-06-15 12:00:46 +00:00
root
75bccb778c W7 done done 2026-06-15 11:14:03 +00:00
root
ad2ba7b632 W7 done done 2026-06-15 11:08:44 +00:00
root
abcb66717e W7 done done 2026-06-15 11:06:35 +00:00
root
1743c51e46 W7 done done 2026-06-15 11:04:16 +00:00
root
04745f39a8 W7 done done 2026-06-15 10:53:36 +00:00
root
f5637bb587 W7 done done 2026-06-15 10:28:23 +00:00
root
4f84ac544d feat: request_perf() worker-side timing hostcall; restore demo System Info
Units run in the wasm sandbox, so my_pid/parent_pid/context.server->request_count
read as sandbox stubs — the demo System Info counters were broken, and there was
no authoritative server-side request timing available to unit code (client-side
measurement cannot see queue/dispatch latency).

Add a request_perf() unit API backed by a new uce_host_request_perf hostcall.
The native worker answers it live, returning a DValue:
  worker_pid, parent_pid, request_count,
  accept_us  = (time_start - time_init)*1e6   (entry -> dispatch wait),
  running_us = (now - time_start)*1e6         (since dispatch, live),
  total_us   = (now - time_init)*1e6          (since the request entered UCE),
  workspace_birth_us.
time_init is captured at request entry (handle_request, with a handle_complete
fallback); a RequestPerfSnapshot {pids, request_count, time_init, time_start} is
threaded from wasm_backend_serve through wasm_worker_serve onto the workspace,
and the hostcall computes the live deltas at call time. Wired like uce_host_units
(sized DValue hostcall): core_hostcalls.syms + sys.cpp/sys.h request_perf().

site/demo/index.uce System Info now uses request_perf() and shows the real worker
PID, an incrementing per-worker request count, and the timing counters.

Implemented via the pi agent (gpt-5.3-codex-spark); a review of the live numbers
caught accept_us mistakenly computed as (now - time_init) (== total_us), fixed to
the dispatch wait (time_start - time_init). Independently verified on the host:
System Info shows non-zero PIDs, incrementing count, accept_us ~50us << total_us
~2.4ms with accept+running==total; run_cli_tests --include-wasm-kill => 87 passed,
0 failed, 0 skipped.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 08:18:04 +00:00
root
bfd6d33829 W7f: sweep dead/legacy/fallback leftovers after native-pipeline removal
Post-deletion cleanup (units run only on wasm):
- types.h/compiler.cpp: drop the native-era SharedUnit fields so_name,
  bin_file_name, and the opt_so_optional cache-mode plumbing (no native
  optional .so path remains). The per-unit compile lock is re-keyed from
  so_name+.lock to wasm_name+.lock (still per-unit).
- unit_info() and to_string(SharedUnit*) no longer expose .so artifact fields.
- backend.h: drop the stale "+ fallback-token gate" comment.
- Docs/comments corrected to wasm-only reality: README, tests/README,
  site/doc C++ preprocessor + error_pages + unit_info pages, site/info intro,
  site/demo/unit-browser artifact card; the Phase-5 native-vs-wasm benchmark
  harness (tests/wasm_benchmark.py) reframed for the wasm-only backend.

Audit confirmed no live references remain to so_handle, load_shared_unit,
compiler_load_shared_unit, compiler_invoke*/_cli/_websocket/_serve_http,
COMPILE_SCRIPT/COMPILE_WASM_UNITS, or the native export-symbol constants;
request_ref_handler/dv_call_handler are kept (live wasm funcref casts).

Swept via the pi agent (delegated to a gpt-5.3-codex-spark sub-model);
independently re-verified on the host: run_cli_tests --include-wasm-kill =>
87 passed, 0 failed, 0 skipped.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-14 23:43:16 +00:00