๐คฏ LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
Worked example โ Eval (่ฏๆต) module audit
A real run of this skill against the Eval module, 2026-07 โ a benchmark / evaluation
platform: benchmark list (overview) โ benchmark detail (datasets + runs tabs) โ run detail
(long-running execution) โ single test-case detail; plus dataset detail. Five surfaces under
src/routes/(main)/eval/** (feature-in-route layout), backed by
src/store/eval/slices/{benchmark,dataset,run,testCase}. Use it as a template for the output
shape, not current-state truth (re-verify before citing).
Surface class: eval / experiment platform โ benchmark against OpenAI Evals UI / LangSmith / Braintrust. Layers run: L1 (static / code) โ . L2 / L3 โณ not run.
Headline: the write side is mature (run-execution state machine, delete lifecycle, dataset-import wizard), but the read side has no error handling at all โ one root cause (every fetch resolves only on success) hangs all five surfaces on failure.
1 โ Patterns in use
| Pattern (family) | Where | Rating | Note |
|---|---|---|---|
| Overview + Detail (nav) | overview โ bench โ run โ case; dataset detail | โ | clean multi-level drill |
| Empty-as-onboarding (growth) | overview empty (eval/index.tsx:83-95), Datasets/Runs tab empties |
โ | real pages + CTA |
| Loading Skeleton (feedback) | overview SkeletonGrid reuses card chrome |
โ | textbook ยง4.1 |
| Failure + Retry (feedback) | every fetch | โ abs. | systemic root cause (gap A) |
| Loading state on detail (feedback) | run / case / dataset detail | โ abs. | return null โ blank (gap B) |
| Run state machine (act/feedback) | idle / pending / external / running / finished | โ | mature โ highlight |
| Progress + Live poll (data) | run detail 3s poll while active + progress bar | โ | ยง1.7 |
| Entity lifecycle โ delete (act) | benchmark / dataset / testCase / run delete | โ | confirm + success/error toast |
| Entity lifecycle โ create/edit (act) | RunCreate / RunEdit / BenchmarkEdit / BatchResume modals | โ ๏ธ | several lack error toast (gap F) |
| Wizard (input) | DatasetImportModal (Upload โ Mapping) | โ | progress, validation, toast โ highlight |
| Draft safety (edit) | all form modals | โ ๏ธ | in-memory only, no unsaved warn (gap H) |
Read: run-execution + delete + import are solid. The weakness clusters entirely in the
read side โ list/detail error + loading โ plus an inconsistent band of create/edit
mutations that surface success/failure unevenly.
2 โ Strengths / good cases (don't regress)
The write side is mature where it counts โ these are the โ half of the ๅ็ loop and the "don't regress" list for the next refactor. They're the validated โ baseline against which ยง3's read-side โ gaps are measured โ keep them, don't "fix":
- โ ไบฎ็น โ Run-execution state machine. idle / pending / external / running / finished with a 3 s poll while active + progress bar, plus retry-errors / batch-resume / per-case resume โ each path confirm + loading + toast. Mature enough to be the module's flagship โ (act/feedback, ยง1.7).
- โ ไบฎ็น โ Full delete lifecycle. benchmark / dataset / testCase / run delete all pair a confirm with a success/error toast โ the consistent baseline the uneven create/edit writes (gap F) fail to match.
- โ
ไบฎ็น โ DatasetImport two-step wizard.
DatasetImportModal(Upload โ Mapping) runs upload progress, a parse-error toast, mapping validation gating the button, and an import lock with a success/error toast โ textbook staged input. - โ
ไบฎ็น โ Overview empty-with-CTA + chrome-reusing skeleton. the overview empty state is a
real page + "create your first benchmark" CTA (
eval/index.tsx:83-95), and itsSkeletonGridreuses the card chrome for an in-place loadโcontent swap with no relayout (textbook ยง4.1). - No antd
Spinanywhere. loading is always a chrome-matched skeleton rather than a bare spinner โ a quiet correctness win worth keeping.
3 โ Experience gaps (ranked)
๐ด A โ No error/retry anywhere; every fetch resolves only on success โ permanent skeleton /
blank / false-empty. Systemic: each slice inits isLoadingX: true / xInit: false and
flips them only in onSuccess, with no onError across all 9 fetches
(benchmark/action.ts:106-130, dataset/action.ts:35-67, run/action.ts:151-209,
testCase/action.ts:42-72). Consumers hang differently:
- overview false-empty โ reads SWR
isLoading; failure โ empty list โ "create your first benchmark" onboarding (eval/index.tsx:81-95). - sidebar permanent skeleton โ gated on
benchmarkListInit(success-only) (_layout/Sidebar/Body/BenchmarkList.tsx,benchmark/initialState.ts:17). - bench detail permanent skeleton โ
if (!benchmark) return <Skeleton>(bench/[benchmarkId]/index.tsx:114). - run / case / dataset detail permanent blank โ
if (!record) return null(runs/[runId]/index.tsx:85,cases/[caseId]/index.tsx:79,datasets/[datasetId]/index.tsx:202). โ Feedback ยง4.2 + Read ยง1.1 (error before empty). The module's flagship โ example.
๐ B โ run / case / dataset detail have no loading state (return null โ blank flash).
Even on the happy path the first frame is blank, not a skeleton (runs/[runId]/index.tsx:85,
cases/[caseId]/index.tsx:79, datasets/[datasetId]/index.tsx:202). โ Read ยง1.1 ("loading is
a skeleton, never a blank flash"). Distinct from A: A = no error, B = no loading.
๐ C โ case detail deep-linked to a non-existent case โ permanent blank, no not-found.
caseResult comes from results.find(testCaseId === caseId); a miss stays null โ blank, no
"case not found" (cases/[caseId]/index.tsx:41-46,79).
๐ F โ several async writes lack an error toast, inconsistent with the delete paths. Delete (benchmark/dataset/testCase/run) all confirm + success/error toast; but RunCreateModal, RunEditModal, BatchResumeModal, and BenchmarkEditModal surface nothing on failure (rely on silent store handling); BenchmarkEdit also shows no loading button state. Same "submit" intent, uneven feedback. โ Act ยง3.1 (done/error), Feedback ยง4.4.
๐ก D โ i18n: hardcoded English strings. 'Failed to start run' fallback ร3
(RunsTab/RunCard.tsx:220, runs/[runId]/features/RunHeader/index.tsx:231,
runs/[runId]/features/IdleState/index.tsx:122); 'Awaiting for external evaluation'
(CaseResultsTable/index.tsx:211, also should read "Awaiting external evaluation"); two
DatasetEditModal placeholders (features/DatasetEditModal/Content.tsx:204,207).
๐ก E โ same data, two loading sources. The benchmark list loads via SWR isLoading in the
overview but via store benchmarkListInit in the sidebar โ failure diverges (false-empty vs
permanent skeleton). Consolidate to one loading/error/empty source.
๐ก G โ async actions signal success only via polling, no explicit forward feedback. start
run / resume case / batch resume give no success toast; the user waits on the 3s poll to see
the status change (runs/[runId]/index.tsx). โ Act ยง3.1.
๐ก H โ form modals keep in-memory drafts only; no unsaved-changes warning on close. All
create/edit/import modals lose their input on accidental close (features/**Modal/Content.tsx).
โ Edit ยง2.1 (lighter for modals).
4 โ Skill feedback
- Landed as โ examples on existing rules (no new rules โ Eval is a textbook instance):
- Feedback ยง4.2 โ the whole-module
onSuccess-only / no-onErrorpattern (gap A). - Read ยง1.1 โ Eval overview added to the error-before-empty example (gap A); a new โ
that a detail
return nullis not a loading state (gap B), plus a checklist clause.
- Feedback ยง4.2 โ the whole-module
- Validated existing rules: ยง4.2 permanent-skeleton, Read ยง1.1 empty-vs-failed, Act ยง3.1 done/error feedback (gaps F/G).
5 โ Pending: L2 + L3
- L2 โ how the permanent skeleton / blank actually look; the run-detail report layout; narrow-width of the benchmark card grid.
- L3 โ force each fetch to fail to confirm gaps A/B/C live (permanent skeleton / blank); run a real eval to watch runningโfinished, progress, and a mid-run poll failure (gap: silent, keeps polling); force a create/resume failure to confirm gap F (no toast).