EMRY-014: JSONL store + v1 compat #59
No reviewers
Labels
No labels
blocked
bug
compat
docs
documentation
duplicate
emry-cli
emry-core
emry-engine
emry-ingest
emry-py
emry-store
emry-tui
emry-web
enhancement
good first issue
gpu-compute
help wanted
hpc
infra
integrations
invalid
needs-design
P0-blocker
P1-core
P2-enhanced
P3-future
performance
pull-request
python
pytorch
question
rust
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
femboy/emry!59
Loading…
Reference in a new issue
No description provided.
Delete branch "emry-014-jsonl-store"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes EMRY-014 (#12). Branched off
main. First emry-store work; first real I/O.What
writer.rs— synchronousJsonlWriterowningevents.jsonl(fullEventaudit trail) +metrics.jsonl(wideMetricRecordrows). Opens append (create if absent) so re-opening a run dir continues the log. Directly testable by reading files back.sink.rs— backgroundJsonlSink: a writer thread fed by a bounded crossbeam channel; batches and flushes every 64 records or 100ms; drops+counts on overflow (project queue invariant);finish()flushes all pending and joins;Dropflushes best-effort.test_util.rs— self-cleaning temp-dir helper (no external dep).metrics.jsonlstays wide / v1-parseable: resolved metric names + SCREAMING_SNAKEphase. Test feeds an external v1 line and parses it.Verification
./scripts/pre-commit-rust.shgreen: clippy-D warnings, 10 store tests, writer.rs 100% / sink.rs 92% lines, total 98.12% linesReview-driven changes
File::createtruncation (conf 85) — protects the audit trail on sidecar restart.Dropsurfaces flush failures on stderr rather than swallowing them (conf 80).