> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memvid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Golden Test Pack

> Authoritative integration tests for memvid-core + CLI

The Golden Test Pack enforces deterministic behavior for the open-source CLI and core.

### Golden corpus

```
test_corpus/
├── short_1.txt ("Hello world.")
├── short_2.txt ("This is a simple test.")
├── chapter_1.txt (Stardust paragraph)
├── event_log.json
├── users.csv
├── multilingual.txt
└── image.blob (1024 pseudo-random bytes)
```

### CLI matrix

| Test name                | Scenario                                                                                 |
| ------------------------ | ---------------------------------------------------------------------------------------- |
| Create + info            | `memvid create` followed by `memvid info --json` to confirm an empty, Free-tier file     |
| Put + enable-lex + find  | Pipe input via `memvid put`, enable lexical search, and run `memvid find`                |
| Find (no results)        | Ensure unknown queries return `[]`                                                       |
| Enable-lex toggles state | `memvid enable-lex` flips `hasLexIndex` in `memvid info --json`                          |
| Capacity exceeded        | Mock a low-capacity memory and assert `Error: CapacityExceeded` exit code                |
| Tickets apply            | Apply a valid ticket and confirm `tier` upgrades                                         |
| Unknown flag             | Passing an unsupported flag returns the CLI usage error (exit code 2)                    |
| Verify + doctor          | `memvid verify --deep` detects corruption and `memvid doctor` repairs the timeline track |
| Import structured file   | `memvid import --format jsonl` ingests structured data                                   |
| Single-file guarantee    | `memvid verify-single-file` confirms there are no `.wal`/`.lock` helpers                 |

Run these tests automatically in CI whenever CLI or core changes land. Use the published CLI JSON schemas (the same ones documented in this site) to check outputs verbatim.

> **Dataset generation** - Keep the downloadable `test_corpus.zip` fixture up to date; corruption or formatting drift invalidates the golden pack.
