Adding Parser Adapters
When a source format is nested/custom, contributors should add a parser adapter.
Use this workflow:
- Add a source entry in
registry/sources.tomlwith:
format(jsonlorjson)parser_hint(example:tandem_v1)- bounded
roots+ strictglobs
- Implement parser mapping in:
crates/trace-share-core/src/parser.rs
- Add tests:
- parser extraction + role mapping
- redaction fixture behavior
- dry-run export sanity (
would_upload_docs > 0for sample input)
- Validate:
cargo test -p trace-share-coretrace-share run --source <id> --dry-run --review --export-payload ./out/<id>.jsonlDetailed in-repo guide: