CLI: expose active/retracted journal counts and log filters #22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Summary
Expose active/retracted journal accounting in theory inspection and add first-class
filters to
log.Motivation from the grounded two-machine run
elephant theory listreported53 entries, but the meaningful breakdown was:The single total was easy to misread as 53 active statements. Establishing the actual
state required dumping all of
log --jsonand writing severaljqpredicates. Thesame dump was needed to find six entries by signer, SID, performative, and status.
Issue #14 made retraction entries addressable; this proposal builds usable accounting
and query surfaces on top of that structure.
Proposed CLI
For example:
theory listcould retain its compact total whiletheory inspectreports:If
active contentrequires a product-specific definition, omit it or expose themeta/member count separately rather than guessing.
Acceptance criteria
and retraction entries.
logand remain deterministicafter merge/restart.
logfilters support signer, status, performative, SID/entry ID, and retractiontarget; filters compose with AND semantics.
Environment / evidence
Observed with Elephant 0.1.2. The 53-entry signed journal is retained here:
github.com/anuna-cooperative/flf-elephant-experiment@96ca63675e/runs/2026-07-16/grounded-machineB/log.jsonAddressed in PR #28 (branch
fix/cli-convergence-observability).