docs(inbound-api): DB row is authoritative for method scripts — update broken-save warning + Direct SQL Warning for the revision-checked cache

Claude-Session: https://claude.ai/code/session_01MtdgwpEeCUn6cUA5f1LMPj
This commit is contained in:
Joseph Doherty
2026-07-10 04:05:23 -04:00
parent 16bab58d85
commit 899af63b2a
3 changed files with 15 additions and 10 deletions
@@ -417,8 +417,9 @@ public class ManagementActorTests : TestKit, IDisposable
{
// The save still persists, but a script that does not compile must surface a
// top-level compileWarning in the result rather than silently looking like a
// success — and the previously registered handler keeps serving (CompileAndRegister
// never replaces a working delegate with a broken one).
// success. The DB row is authoritative: ExecuteAsync revision-checks the cached
// handler against the fresh row, so the broken script returns a compilation error
// on every request/node rather than a previously registered handler still serving.
var existing = new Commons.Entities.InboundApi.ApiMethod("MyMethod", "return 1;")
{
Id = 7,