Recommended actions
No repository changes recommended.
The model received no documentation, and every failure involves SpacetimeDB API surface that it reconstructed from prior knowledge. None of the groups below shows a defect in the eval, skill, docs, or API. Each publish_error shows only the first line of stderr (Saving config to ...), cut off mid-path, with no compiler diagnostics. The root causes below are therefore inferred by comparing the generated code with the golden answers.
Failure patterns
Invented HTTP handler/router API (5 tasks)
- Classification: Model limitation
- Confidence: High
- What the model wrote:
#[spacetimedb::http]
pub fn router() -> Router { Router::new().post("/echo", echo) }
fn echo(_ctx: &HttpContext, req: Request<Body>) -> Response<Body> { ... }
#[spacetimedb::http]
pub fn http(router: &mut Router) { router.post("/webhook", webhook); }
fn webhook(ctx: &ReducerContext, req: Request) -> Response { ... }
In t_077, the model also wrote its own Router struct backed by a HashMap and exposed it through a procedure.
- What was expected:
use spacetimedb::http::{handler, router, Body, HandlerContext, Request, Response, Router};
#[handler]
fn echo(_ctx: &mut HandlerContext, request: Request) -> Response { ... }
#[router]
fn routes() -> Router { Router::new().post("/echo", echo) }
Database work inside handlers goes through ctx.with_tx(|tx| ...), and bodies are built with Body::from_bytes(...).
- What the error says:
publish_error: spacetime publish failed (exit=1). No compiler detail was captured.
- Why this happened: The model has no knowledge of the
#[handler]/#[router] macros or HandlerContext. It invented a #[spacetimedb::http] attribute and an HttpContext type, or reused ReducerContext, and borrowed http-crate idioms such as Request<Body>, StatusCode, Body::from and req.body().as_ref(). This is expected for a recent API when no documentation is supplied.
- 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
Wrong outbound HTTP client and response-body API in procedures (2 tasks)
- Classification: Model limitation
- Confidence: Medium
- What the model wrote:
let response = ctx.http.get(url.as_str()).expect(...); // or ctx.http.get(&url)
let body_bytes: &[u8] = response.body().as_ref();
let body = String::from_utf8_lossy(body_bytes);
- What was expected:
let response = ctx.http.get(url).expect("page request failed");
let body = response.into_body().into_string_lossy();
- What the error says:
publish_error: spacetime publish failed (exit=1). No compiler detail was captured.
- Why this happened: The model treated the response body as a byte slice and passed a borrowed URL, following generic
http/reqwest habits. The golden answer instead consumes the body with into_body().into_string_lossy(). Without the compiler output, it is not certain which line failed. t_079 contains the same mistakes (ctx.http.post(&upload_url, data) and response.body().is_empty() instead of ctx.http.send(request) and into_body().into_bytes()), but it is counted under the HTTP handler pattern above.
- Suggested action: None
- Suggested area: None
- Affected tasks: t_073_http_fetch, t_074_fetch_and_store
Query-builder view uses the wrong method name (1 task)
Wrong import path for 256-bit integer types (1 task)
- Classification: Model limitation
- Confidence: Medium
- What the model wrote:
use spacetimedb::{table, ConnectionId, TimeDuration, Uuid, i256, u256};
- What was expected:
use spacetimedb::{sats::{i256, u256}, table, ConnectionId, TimeDuration, Uuid};
- What the error says:
publish_error: spacetime publish failed (exit=1). No compiler detail was captured.
- Why this happened: The model assumed
i256 and u256 are re-exported at the crate root. In the expected code they come from spacetimedb::sats. The rest of the module matches the golden answer.
- Suggested action: None
- Suggested area: None
- Affected tasks: t_054_special_types
Outdated name = table attribute (1 task)