Recommended actions
- [Eval problem | Low] Include compiler diagnostics in publish failure output — Each
publish_error above shows only the Saving config to /tmp/... line from stderr, with no C# compiler or codegen error. If the harness is cutting off or dropping the build output, it should keep the actual error lines in the scorer message so the cause can be confirmed rather than inferred from diffs. This may instead be an artifact of how the report was assembled. Evidence: t_070, t_073, t_074, t_075, t_076, t_078, t_079, t_087, t_092, t_093.
All other failures come from a model run with no documentation. They reflect gaps in base-model knowledge of SpacetimeDB's newer, unstable C# APIs. They do not justify changes to skills, docs, or the API.
Failure patterns
Unknown HTTP handler/router API surface (5 tasks)
- Classification: Model limitation
- Confidence: High
- What the model wrote:
[SpacetimeDB.Http]
public static HttpResponse HandleHttp(HttpContext ctx, HttpRequest req)
private static readonly HttpRouter Router = CreateRouter();
return new HttpResponse { StatusCode = 201, Headers = new Dictionary<string, string> {...}, Body = ... };
public static HttpResponse HandleWebhook(ProcedureContext ctx, HttpRequest req) // no attribute
[SpacetimeDB.HttpRouter] public static HttpRouter Router() { var router = new HttpRouter(); router.Post("/upload", HandleUpload); ... }
In t_077 the model built its own Dictionary-based router and used [SpacetimeDB.Type] request/response structs. In t_087 the visible code shows only parsing helpers, with no handler attribute.
- What was expected:
#pragma warning disable STDB_UNSTABLE
[SpacetimeDB.HttpHandler]
public static HttpResponse Echo(HandlerContext ctx, HttpRequest request) => new(201, HttpVersion.Http11, new List<HttpHeader>{...}, HttpBody.FromString(...));
[SpacetimeDB.HttpRouter]
public static Router Routes() => SpacetimeDB.Router.New().Post("/echo", Handlers.Echo);
- What the error says:
publish_error (exit=1) for t_076, t_078, t_079 and t_087. For t_077: schema_parity: failed; router_method_matrix: failed.
- Why this happened: Without documentation, the model guessed at names (
HttpContext, HttpRouter, [SpacetimeDB.Http]) and at the shape of the HttpResponse constructor. It also omitted the HandlerContext, [HttpHandler], Router.New() and Handlers.X conventions, and the STDB_UNSTABLE pragma.
- Suggested action: None
- Suggested area: None
- Affected tasks: t_076_http_handler, t_077_http_router, t_078_idempotent_webhook, t_079_external_upload_flow, t_087_webhook_ordering
Procedure HTTP client result handling (3 tasks)
- Classification: Model limitation
- Confidence: High
- What the model wrote:
var response = ctx.Http.Get(url);
foreach (var header in response.Headers) { header.Key ... header.Value.Contains(...) }
var body = response.Body.ToStringUtf8();
case Result<HttpResponse, HttpError>.OkR(var response):
try { var result = ctx.Http.Get(url); ...
- What was expected:
return result.Match(response => { ... h.Name ... Encoding.UTF8.GetString(contentType.Value) ... response.Body.ToStringUtf8Lossy() ... }, error => throw new Exception(error.Message));
- What the error says:
publish_error (exit=1), with no diagnostic shown.
- Why this happened: The model treated the
Get return value as a plain response or as a guessed Result subtype, or wrapped it in try/catch. The expected code consumes it with .Match(...). The model also guessed wrong header member names (Key and a string Value, where the expected code uses Name and a byte-array Value) and used ToStringUtf8 instead of ToStringUtf8Lossy.
- Suggested action: None
- Suggested area: None
- Affected tasks: t_073_http_fetch, t_074_fetch_and_store, t_092_procedure_cache
WithTx lambda shape and timestamp arithmetic (1 task)
- Classification: Model limitation
- Confidence: Medium
- What the model wrote:
ScheduledAt = new ScheduleAt.Time(ctx.Timestamp + TimeSpan.FromMilliseconds(1)),
ctx.WithTx(tx => { tx.Db.ProcedureResult.Insert(...); });
- What was expected:
new ScheduleAt.Time(ctx.Timestamp + new TimeDuration { Microseconds = 1_000 })
ctx.WithTx(tx => { tx.Db.ProcedureResult.Insert(...); return 0; });
- What the error says:
publish_error (exit=1).
- Why this happened: The model added a
TimeSpan to a Timestamp, where the expected code uses TimeDuration. It also passed a void lambda to WithTx, which the golden answer gives a return value. The same void-lambda WithTx usage appears in t_074.
- Suggested action: None
- Suggested area: None
- Affected tasks: t_075_scheduled_procedure
Invented ConnectionId constructor (1 task)
- Classification: Model limitation
- Confidence: Medium
- What the model wrote:
var firstConnectionId = new ConnectionId(1UL);
- What was expected:
var first = ConnectionId.From(firstBytes) ?? throw new InvalidOperationException(); where firstBytes is a 16-byte array.
- What the error says:
publish_error (exit=1).
- Why this happened: The model assumed a
ulong constructor exists. The expected code builds the ID from 16 bytes via ConnectionId.From.
- Suggested action: None
- Suggested area: None
- Affected tasks: t_070_connection_scoped_presence
Undetermined publish failure (1 task)
- Classification: No action
- Confidence: Low
- What the model wrote: snake_case reducers such as
set_document(ReducerContext ctx, string Title, string SecretBody) and an extra [SpacetimeDB.Type] SafeDocument struct. The rest of the output is truncated.
- What was expected:
SetDocument(ReducerContext ctx, string title, string secretBody) and SetAccess(...). The rest of the golden answer is truncated.
- What the error says:
publish_error (exit=1), with no diagnostic shown.
- Why this happened: The visible generated code looks valid. The failing construct is likely in the truncated portion, possibly a view, but the supplied evidence does not confirm this.
- Suggested action: None
- Suggested area: None
- Affected tasks: t_093_permission_revocation