Expand description
Artifact extraction — regex-based scrape of structured references out of free-form event text. Captures the bits that turn a journal entry into a real ledger of what shipped: commit hashes, PR URLs, ticket IDs, branch names, file paths.
Intentionally regex-only and side-effect free: the classifier may
still emit a richer JSON payload in the future, but those will be
merged into the same shape via Artifacts::merge. Keeping the
extractor pure means reclassify can run it offline over historic
events without spawning the model.
Structs§
- Artifacts
- Structured artifacts collected from one or many events. All vectors
are deduplicated (case-sensitive) by the
mergeconstructor — the extractor itself emits raw matches.
Functions§
- extract
- Extract artifacts from a single piece of text (event body, prompt, tool output — anything stringly-typed). Idempotent and free of I/O.