Contributor guide
This section routes repository contributors to the shortest useful guide. Package consumers should begin with the LeanCorpus documentation.
Note
When this page links to a repository contribution guide, that repository file is the source of truth. Generated site copies should carry a header naming their source and must not be edited directly.
Make a first contribution
- Read the contribution guide.
- Run
pwsh -NoProfile -File ./devops.ps1 bootstrapand./devops build. - Choose the subsystem that owns the behaviour.
- Run one focused test selection.
- Make the change and add tests.
- Run
./devops test affected. - Add compatibility, AOT, documentation or benchmark validation when the claim requires it.
Choose your contributor path
| I want to... | Guide |
|---|---|
| Make a normal LeanCorpus change | General contribution guide |
| Change analysers, filters, tokenisers, stemmers or languages | Rowles.Text contribution guide |
| Add tests, benchmarks or repository tooling | DevOps and tests contribution guide |
| Find DevOps projects and commands | DevOps projects and repository tooling |
Understand devops and devops.ps1 |
DevOps entry point |
| Use the interactive DevOps workbench | Interactive DevOps workbench |
| Change the DocFX site or generated documentation | Documentation |
| Add or assess a benchmark | Benchmarking |
Follow a subsystem into the internals
| Work | Read next |
|---|---|
| Trace indexing, commits, refreshes, merges or file ownership | Architecture internals |
| Change a segment file, commit format, checksum or compatibility rule | Storage formats |
| Work on query rewriting, scoring, FSTs, BKD trees, HNSW or collectors | Search internals |
| Add or evolve a binary codec | CodecKit |
Important
Storage formats, Native AOT and platform-specific filesystem behaviour need validation beyond an ordinary unit test. Record the environment and the boundary actually tested.
Repository map
| Path | Purpose |
|---|---|
src/core/Rowles.LeanCorpus |
Core indexing, search, storage, mapping and codecs |
src/core/Rowles.Text |
Canonical analysis source and standalone package |
src/core/Rowles.LeanCorpus.SourceGen |
Typed mapping source generator |
src/core/Rowles.LeanCorpus.Compression.* |
Optional stored-field compression |
src/server |
Pre-release server contracts and implementation |
src/devops |
Tests, benchmarks, CLI and profiling |
scripts/devops |
Repository automation |
src/examples |
Runnable examples and end-to-end workloads |
docs |
DocFX source and generated documentation inputs |
lexicons |
Language data and generated lexicon assets |
Validate the change you made
Use the narrowest command that can disprove your claim, then widen only where needed:
./devops build
./devops test affected
./devops test architecture
./devops aot
./devops docs build -SkipBenchmarks
Run ./devops --help for the current command surface.