docs, comments, tests: a consistency pass after the kernel move and the 404

Stale text that outlived the fixes around it: the deleted unit's filename in
libr4d's gated-residual comments, hc_project missing from that unit's header,
"THE SPEED PROJECTION" heading the page's control-vector code, ABI 22 comments
beside a table that says 23, a projection_test header crediting rad-kbench with a
case it does not have, a comment stating the wrong scale arithmetic, a duplicated
<cstring>, and GUIDE's "off in all cases" (the admin switch flips it). libavx's
README transcript is refreshed from a real run (807 checked, at every level).

And the test the alias order needed: a body carrying both `control_vector` and
`experimental_speed_projection`, with the field's own name winning.
This commit is contained in:
C_Tamas authored and StillDeadcode committed 2026-10-21 09:26:17 +02:00
1 parent d09d733b07
commit cd1f2f59cc
7 files changed
+28 -15

No files matched your search

+12
View File
@@ -4570,6 +4570,18 @@ TEST(the_control_vector_field_overrides_the_default_or_is_refused) {
CHECK_EQ(r2.status, 200);
CHECK(f.sched.last_sp.use_control_vector);
/* Both spellings in one body: the field's own name wins over Strata's alias, whichever
* order the parser happens to read them in. */
HttpResponse r3 = f.post("/v1/chat/completions",
R"({"messages":[{"role":"user","content":"hi"}],
"max_tokens":4,
"experimental_speed_projection":true,
"control_vector":false})");
if (r3.streaming()) drain(r3);
f.sched.join_all();
CHECK_EQ(r3.status, 200);
CHECK(!f.sched.last_sp.use_control_vector);
const HttpResponse g = f.get("/admin/control-vector");
CHECK_EQ(g.status, 200);
CHECK(g.body.find("\"default\":true") != std::string::npos);