Recommended actions
- [Eval problem | High] Capture full publish/build diagnostics — The harness should keep the compiler or
spacetime publish diagnostics in the scorer error. At present only the first stderr line (Saving config to ...) is retained, so the actual cause of every publish failure is hidden. Evidence: t_070, t_029, t_028, t_030, t_048, t_050, t_049, t_051, t_047, t_016, t_021, t_013, t_019, t_018, t_022.
- [API/ergonomics problem | Medium] Make unqualified
[Index.BTree] work, or diagnose it clearly — Every golden answer writes [SpacetimeDB.Index.BTree]. Every failing generation that declares an index writes [Index.BTree] with using SpacetimeDB;. The likely cause is a name collision with System.Index under C# implicit usings. Two fixes are possible: rename or alias the attribute so the short form resolves, or have the C# SDK source generator or analyzer emit a targeted message that says to use SpacetimeDB.Index.BTree. Evidence: t_070, t_029, t_028, t_030, t_048, t_050, t_049, t_051, t_047, t_021, t_019, t_018, t_022.
Failure patterns
Unqualified Index.BTree attribute (13 tasks)
Classification: API/ergonomics problem
Confidence: Medium. The pattern is consistent across all 13 tasks and matches the goldens' deliberate full qualification. The truncated stderr does not confirm the exact compiler error.
What the model wrote:
using SpacetimeDB;
...
[Index.BTree]
public string Category;
...
[Index.BTree(Accessor = "by_user", Columns = new[] { nameof(UserIdentity) })]
What was expected:
[SpacetimeDB.Index.BTree]
public string Category;
...
[SpacetimeDB.Index.BTree(Accessor = "by_user", Columns = new[] { nameof(UserIdentity) })]
What the error says: publish_error: spacetime publish (csharp) failed (exit=1). The only stderr shown is Saving config to /tmp/..., with no compiler diagnostic.
Why this happened: In many tasks the generated code is otherwise nearly identical to the golden. Examples are t_048, t_050, t_047, t_021 and t_028, where the remaining differences are Public = false versus omitted and .ToArray(). The consistent difference is the unqualified Index name. Under .NET implicit usings, Index likely resolves ambiguously between System.Index and SpacetimeDB.Index, so the attribute fails to compile.
Some tasks may also have secondary issues:
- t_049 places an
Index.BTree(Accessor = ...) attribute on a field instead of on the table with Columns.
- t_070 constructs
new ConnectionId((U128)1) instead of using ConnectionId.From(bytes).
- t_022 returns
IEnumerable<Announcement> instead of List<Announcement>.
Suggested action: Make the short attribute form resolve, or emit a clear diagnostic pointing to SpacetimeDB.Index.BTree. Separately, surface the real compiler output in the scorer so the root cause can be confirmed.
Suggested area: C# SDK index attribute / source generator; benchmark publish-error capture
Affected tasks: t_070, t_029, t_028, t_030, t_048, t_050, t_049, t_051, t_047, t_021, t_019, t_018, t_022
Sum type declarations outside Module (2 tasks)
- Classification: Model limitation
- Confidence: Low
- What the model wrote:
[Type]
public partial struct Circle { public int Radius; } // top-level, outside Module
[Type]
public partial record Shape : TaggedEnum<(Circle Circle, Rectangle Rectangle)>;
- What was expected:
public static partial class Module
{
[Type]
public partial struct Circle { public int Radius; }
[Type]
public partial record Shape : TaggedEnum<(Circle Circle, Rectangle Rectangle)> {}
- What the error says:
publish_error: spacetime publish (csharp) failed (exit=1). As in the other group, the stderr is truncated with no diagnostic.
- Why this happened: These tasks contain no index attributes. The visible differences are that the types are declared at top level rather than nested in
Module, and that Shape uses a ; record body rather than {}. Without the compiler output, it cannot be established which difference (if either) causes the failure. This two-task pattern alone does not justify a repository change. Fixing the diagnostics capture, covered above, would clarify it.
- Suggested action: None
- Suggested area: None
- Affected tasks: t_016, t_013
Note: 21 additional failures were not shown and are not analyzed here.