Recommended actions
- [Eval problem | High] Preserve the full
spacetime publish stderr in failure reports. Every shown failure reports only the first line of stderr (Saving config to /tmp/stdb-llm-cli-...). The compiler or publish diagnostic that explains each failure is cut off, so root causes have to be inferred from diffs against the golden answer. Evidence: all 15 shown tasks, most clearly t_065_materialized_aggregate.
- [API/ergonomics problem | Medium] Address the
Index name collision in C# module attributes. In t_050, the only difference from the golden answer is [Index.BTree(...)] instead of [SpacetimeDB.Index.BTree(...)]. Every golden answer fully qualifies this attribute, which suggests the unqualified form conflicts with another Index type, likely System.Index. Possible fixes are an unambiguous alias, an analyzer or diagnostic that suggests the qualified name, or a clearer compile error. Evidence: t_050_normalized_schema (also present in t_028, t_029, t_063).
Failure patterns
Name = used instead of Accessor = on tables and indexes (8 tasks)
- Classification: Model limitation
- Confidence: Medium
- What the model wrote:
[Table(Name = "Order", Public = false)] // t_029
[SpacetimeDB.Index.BTree(Name = "by_user_day", Columns = ...)] // t_021
[SpacetimeDB.Index.BTree(Name = "by_owner", Columns = new[] { "OwnerId" })] // t_047
[SpacetimeDB.Table(Public = true)] public partial class Announcement // t_022
ScheduledAt = ScheduleAt.Interval(new TimeDuration(60_000_000)), // t_039
- What was expected:
[Table(Accessor = "Order")]
[SpacetimeDB.Index.BTree(Accessor = "by_user_day", Columns = ...)]
[Table(Accessor = "Announcement", Public = true)] public partial struct Announcement
ScheduledAt = new ScheduleAt.Interval(new TimeDuration { Microseconds = 60_000_000 }),
- What the error says:
publish_error: spacetime publish (csharp) failed (exit=1). The actual diagnostic is truncated.
- Why this happened: With no documentation, the model fell back on an older or guessed attribute shape (
Name =) instead of Accessor =. In t_021, this is the only difference from the golden answer, which strongly suggests Name is the cause. Some tasks have additional errors:
- t_022 omits the table accessor, uses a
class, and returns IEnumerable rather than List.
- t_028 and t_029 also use unqualified
Index.BTree.
- t_039 calls
ScheduleAt.Interval without new and uses a nonexistent TimeDuration(long) constructor.
- Suggested action: None. No context was supplied, so this is a base-knowledge gap.
- Suggested area: None
- Affected tasks: t_013_spacetime_sum_type, t_021_multi_column_index, t_022_view_basic, t_028_cascade_delete, t_029_filter_and_aggregate, t_037_multi_column_filter, t_039_cancel_schedule, t_047_normalized_collection
Unqualified Index.BTree attribute (1 task)
- Classification: API/ergonomics problem
- Confidence: Medium
- What the model wrote:
[Index.BTree(Accessor = "by_organization", Columns = new[] { nameof(OrganizationId) })]
- What was expected:
[SpacetimeDB.Index.BTree(Accessor = "by_organization", Columns = new[] { nameof(OrganizationId) })]
- What the error says:
publish_error: spacetime publish (csharp) failed (exit=1). The actual diagnostic is truncated.
- Why this happened: Apart from formatting, the generated code in t_050 matches the golden answer exactly except for the namespace qualification. Every golden answer consistently writes
SpacetimeDB.Index.BTree, which points to a name conflict with another Index type. This is a natural trap for anyone writing the obvious form after using SpacetimeDB;.
- Suggested action: Make the index attribute usable without full qualification, or emit a targeted diagnostic that points to
SpacetimeDB.Index.BTree.
- Suggested area: C# module bindings / attribute definitions and the source generator diagnostics
- Affected tasks: t_050_normalized_schema
Hallucinated or misremembered API members (5 tasks)
- Classification: Model limitation
- Confidence: Medium
- What the model wrote:
var conn1 = new ConnectionId((UInt128)1); // t_070
ctx.Timestamp + TimeDuration.FromTimeSpan(TimeSpan.FromMilliseconds(1)) // t_071
if (result is Result<HttpResponse, HttpError>.Ok(var response)) ... response.Body.ToStringUtf8() // t_074
ctx.From.Ticket.Where(t => t.Status.Eq("open")) // t_066
new Bound<Timestamp>.Included(start)..new Bound<Timestamp>.Included(end) // t_063
- What was expected:
ConnectionId.From(firstBytes) ?? throw new InvalidOperationException();
ctx.Timestamp + new TimeDuration { Microseconds = 1_000 }
#pragma warning disable STDB_UNSTABLE ... result.Match(response => ..., error => ...); response.Body.ToStringUtf8Lossy()
ctx.From.Ticket().Where(ticket => ticket.Status.Eq("open"))
ctx.Db.Event.OccurredAt.Filter((new Timestamp(200), new Timestamp(400)))
- What the error says:
publish_error: spacetime publish (csharp) failed (exit=1). The actual diagnostic is truncated.
- Why this happened: Without documentation, the model invented plausible but nonexistent constructors, helpers, and range syntaxes. It also missed that
ctx.From.Ticket is a method call and that HTTP procedures need the unstable-feature pragma. t_063 also uses unqualified Index.BTree.
- Suggested action: None
- Suggested area: None
- Affected tasks: t_063_timestamp_window, t_066_query_builder_view, t_070_connection_scoped_presence, t_071_scheduled_private, t_074_fetch_and_store
Undiagnosable failure due to truncated publish output (1 task)
- Classification: Eval problem
- Confidence: High
- What the model wrote: The visible portion of t_065 uses
Table(Accessor = ...), a pattern-matched Find(...) is CategoryTotal existing, and Category.Update(existing). None of this is obviously wrong. The code shown is cut off.
- What was expected: Structurally equivalent code:
Find followed by .Value, Update, and Delete.
- What the error says: The error is only
Saving config to /tmp/stdb-llm-cli-...-views-t-065-materialized-aggreg. No diagnostic is shown.
- Why this happened: The report keeps only the first stderr line. Here, the root cause cannot be determined, and in every other shown task it can only be inferred.
- Suggested action: Capture and report the full stderr, or at least the compiler error lines, from
spacetime publish.
- Suggested area: Benchmark harness publish-error reporting
- Affected tasks: t_065_materialized_aggregate. The same truncation affects all shown tasks.
8 additional failures were not shown and are not analyzed.