You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8271943
Browse filesBrowse the repository at this point in the historyBrowse files
feat(core): add xAFS dataset adapter to the benchmarks package
supermemory's xAFS (CC-BY-4.0, 13 personas / 110 questions) runs under
the agent-task harness with tokens-per-correct-answer as the headline.
Path-based loader with fail-fast schema validation (vendor-controlled
upstream), persona-subset selection, corpus conversion with anti-leakage
guarantees (probe/gold files never enter the ingested tree; symlinks
rejected; stale files pruned on reconversion), non-markdown skip
accounting, a corrections workflow fingerprinted into the run manifest,
and audit-sampling tooling for the pre-publication question-quality
review. Documented as a secondary dataset pending that audit — never the
headline. Tests fully offline against a miniature hand-written fixture.
Closes#1402
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014pmKq6bqCi6Zp6BTHuZjrp
Signed-off-by: phernandez <paul@basicmachines.co>
# just bench-fetch-xafs — same subset default; personas="" fetches all 837MB
473
+
```
474
+
475
+
The download is a pinned `hf download supermemory/xAFS --repo-type dataset
476
+
--revision 21142b2c...` into `benchmarks/datasets/xafs/upstream/`
477
+
(gitignored). Persona subsetting via `--include 'dp_NNN/*'` patterns is the
478
+
normal mode — full ingestion is ~837MB, and the loader accepts partial
479
+
snapshots (unknown *requested* personas fail fast listing what is on disk).
480
+
481
+
### Workflow
482
+
483
+
```bash
484
+
just bench-fetch-xafs # pinned snapshot (subset default)
485
+
just bench-convert-xafs # -> benchmarks/generated/xafs/{groups,tasks.json,conversion.json}
486
+
BM_LOCAL_PATH=.. just bench-run-xafs-agent # agent-task run over the manifest
487
+
just bench-xafs-audit-sample # seeded human-review sample
488
+
```
489
+
490
+
Conversion copies each persona's `data/` tree byte-for-byte (relpaths
491
+
preserved, no frontmatter render — questions cite exact file content) into
492
+
`groups/xafs-dpNNN/docs/`. BM's sync ingests `.md` files as notes and
493
+
non-markdown files as file resources reachable via `read_content` (rich) or
494
+
`cat`/`grep` (posix) — nothing is skipped, and `conversion.json` records
495
+
per-extension counts plus a `skipped` list that must stay empty (a file the
496
+
copy policy cannot place aborts the conversion). Gold answers and prompts
497
+
exist only in `tasks.json`; an answer-key/scenario filename appearing inside
498
+
`data/` aborts conversion (anti-leakage).
499
+
500
+
### Execution split per question family
501
+
502
+
| Family | Path | Rationale |
503
+
| --- | --- | --- |
504
+
| format_spanning (26) | Agent harness only | Verbatim file reading (`read_content` / `cat`+`grep`) is the point; the retrieval path only searches notes |
505
+
| single_hop (33), multi_hop (51) | Agent harness (headline) | Tokens-per-correct-answer is literally the harness headline; a retrieval+QA diagnostic is deferred (below) |
506
+
507
+
The retrieval diagnostic for single/multi-hop is deliberately NOT emitted in
508
+
v1: the `bm-local` provider normalizes result doc ids to the basename sans
509
+
`.md`, which is unique for rendered corpora but collides across xAFS's
510
+
persona-shaped trees (repeated `notes.md`-style basenames), so recall against
511
+
`gold_file_ids` would be silently wrong. It is planned behind widening the
512
+
provider doc-id seam to full relpaths; at that point a converter
513
+
`--emit-queries` flag plus a dataset-keyed breakout in `scoring/retrieval.py`
514
+
(the BEAM precedent) keeps xAFS's `single_hop`/`multi_hop` labels out of the
515
+
LoCoMo `official_headline` container despite the name collision.
516
+
517
+
Manifest runs are grouped and read-only: each persona is ingested ONCE per
518
+
(surface, group) as project `at-<run-id>-xafs-dpNNN` and every question in
519
+
the group reuses that warm project (copying 837MB per question is untenable).
520
+
To keep reuse safe AND fair, the shared write verbs (`write_note`,
521
+
`edit_note`, `move_note`, `delete_note`) are dropped from BOTH surfaces
0 commit comments