planfile-journal

Ultra-fast reverse-seek JSONL tail, memory-mapped highwater scanner, cryptographic hash chain, and PLOG/1 projection with Rust acceleration for planfile, compliant with wellmanifest/data-plane, wellmanifest/nohardcode, and wellmanifest/performance.

Features

Installation

pip install planfile-journal

Usage

from planfile_journal import (
    read_jsonl_tail,
    scan_journal_highwater,
    verify_journal_integrity,
)

# Read newest 50 events
events = read_jsonl_tail("project/journal.jsonl", limit=50)

# Extract per-prefix ticket ID highwater counters and file signature
highs, signature = scan_journal_highwater(".planfile/events/operations.jsonl")

# Verify tamper-proof cryptographic hash chain
is_valid, error, count = verify_journal_integrity("project/journal.jsonl")
assert is_valid is True