sipeed/picoclaw · error
save aggregated
Error message
save aggregated: %w
What it means
Context wrapper in runEval around SaveAggregated: the raw results saved fine, but writing the aggregated summary file to flagOut failed. Same failure class as the results save (permissions, disk, path issues); this wrapper tags the aggregation phase so the failing artifact is identifiable.
Solutions
- Check permissions and disk space in --out
- Verify the aggregated file path is not a directory or locked file
- Re-run with a fresh --out directory if the current one is corrupt
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at cmd/membench/main.go:268 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sipeed/picoclaw@49183d7e8d (2026-08-15).
Data as JSON: /api/errors/1fb0e69c308de4b6.
Report an issue: GitHub.
Appendix: source
Thrown at cmd/membench/main.go:268
}
if useLLM {
results := EvalSeahorseLLM(ctx, samples, ir, flagBudget, answerClient, judgeClient, flagConcurrency)
llmResults = append(llmResults, results...)
log.Printf("seahorse-llm: evaluated %d samples", len(results))
} else {
results := EvalSeahorse(ctx, samples, ir, flagBudget)
tokenResults = append(tokenResults, results...)
log.Printf("seahorse: evaluated %d samples", len(results))
}
}
}
allResults := append(tokenResults, llmResults...)
if err := SaveResults(allResults, flagOut); err != nil {
return fmt.Errorf("save results: %w", err)
}
if err := SaveAggregated(allResults, flagOut); err != nil {
return fmt.Errorf("save aggregated: %w", err)
}
PrintComparison(tokenResults, llmResults)
return nil
}
func runReport(cmd *cobra.Command, args []string) error {
entries, err := os.ReadDir(flagOut)
if err != nil {
return fmt.Errorf("read out dir: %w", err)
}
var allResults []EvalResult
for _, entry := range entries {
if !entry.IsDir() && strings.HasPrefix(entry.Name(), "eval_") && strings.HasSuffix(entry.Name(), ".json") {
path := filepath.Join(flagOut, entry.Name())
var r EvalResult
data, err := os.ReadFile(path)View on GitHub (pinned to 49183d7e8d)