Skip to content

Commit 6ce09bc

Browse files
Document shared action foundation
1 parent da0fefd commit 6ce09bc

3 files changed

Lines changed: 20 additions & 18 deletions

File tree

crates/tree-ring-memory-cli/src/actions/recall.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ pub struct RecallReport {
1717
pub results: Vec<RecallResult>,
1818
}
1919

20-
pub fn recall(
21-
store: &SQLiteMemoryStore,
22-
request: RecallRequest,
23-
) -> ActionResult<RecallReport> {
20+
pub fn recall(store: &SQLiteMemoryStore, request: RecallRequest) -> ActionResult<RecallReport> {
2421
let results = MemoryRetriever::new(store)
2522
.recall(
2623
&request.query,

crates/tree-ring-memory-cli/src/main.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
use clap::{Parser, Subcommand};
22
use std::ffi::OsString;
3-
use std::fs;
43
use std::path::PathBuf;
54
use tree_ring_memory_core::sensitivity::SensitivityGuard;
65
use tree_ring_memory_core::{
7-
AuditReport, ConsolidationPeriod, ConsolidationReport, ConsolidationRequest, DoxSyncReport,
8-
MaintenanceReport, RevolveSyncReport,
6+
AuditReport, ConsolidationReport, DoxSyncReport, MaintenanceReport, RevolveSyncReport,
97
};
108
use tree_ring_memory_core::{MemoryEvent, MemoryLink};
11-
use tree_ring_memory_sqlite::{MemoryRetriever, SQLiteMemoryStore};
9+
use tree_ring_memory_sqlite::SQLiteMemoryStore;
1210

1311
use actions::adapters::{sync_dox, sync_revolve, DoxSyncActionRequest, RevolveSyncActionRequest};
1412
use actions::audit::{audit_store, AuditActionRequest};
@@ -1021,7 +1019,10 @@ fn print_agent_awareness_summary(report: &agent_awareness::AgentAwarenessReport)
10211019
#[cfg(test)]
10221020
mod tests {
10231021
use super::*;
1022+
use std::fs;
10241023
use tempfile::tempdir;
1024+
use tree_ring_memory_core::{ConsolidationPeriod, ConsolidationRequest};
1025+
use tree_ring_memory_sqlite::MemoryRetriever;
10251026

10261027
#[test]
10271028
fn cli_init_creates_store() {

docs/architecture/rust-core-status.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ v0.11 Rust-native source adapters plus framework discovery.
1818
recall, forget, import/export, audit, consolidate, maintain, DOX sync,
1919
Revolve sync, framework discovery, welcome onboarding, and TUI operation.
2020
- Rust CLI has JSON output for machine-readable adapter use.
21+
- CLI and TUI durable operations now share action request/report contracts for
22+
behavior-preserving command execution. This keeps CLI output ownership, TUI
23+
state/render ownership, and storage ownership separate while preparing the
24+
TUI cockpit and integration-link workflows.
2125
- The repository no longer tracks a root Python package, Python wrapper layer,
2226
pytest suite, Python smoke scripts, PyO3 crate, or CPython extension.
2327
- The v0.4 Rust core and SQLite store own portable JSONL import/export.
@@ -108,18 +112,18 @@ sh scripts/certify-tree-ring.sh
108112
conservative synthetic-workload thresholds of at least 500 inserts/sec and max
109113
recall latency of 250 ms.
110114

111-
Latest local certification run generated at `2026-07-09T02:42:24Z` with Agent
112-
Zero plugin smoke enabled:
115+
Latest local certification run generated at `2026-07-09T04:14:34Z`:
113116

114-
- Release binary: 6,104,272 bytes.
115-
- Project install with init: 6,032 KB.
116-
- Global install: 5,988 KB.
117+
- Release binary: 6,137,088 bytes.
118+
- Project install with init: 6,064 KB.
119+
- Global install: 6,020 KB.
117120
- CLI import: 10,000 memories in 5 seconds, about 2,000/sec.
118-
- 10k performance smoke: 2,059.6 inserts/sec, recall average 3.887 ms,
119-
recall max 6.740 ms.
120-
- 30k performance smoke: 667.8 inserts/sec, recall average 8.300 ms, recall
121-
max 14.705 ms.
122-
- Agent Zero plugin smoke: passed.
121+
- 10k performance smoke: 2,182.3 inserts/sec, recall average 3.640 ms,
122+
recall max 6.556 ms.
123+
- 30k performance smoke: 717.5 inserts/sec, recall average 8.004 ms, recall
124+
max 14.412 ms.
125+
- Agent Zero plugin smoke: skipped because `TREE_RING_AGENT_ZERO_ROOT` was not
126+
set.
123127
- Extended 50k smoke was skipped; enable it with `TREE_RING_CERT_EXTENDED=1`.
124128

125129
## Compatibility Rule

0 commit comments

Comments
 (0)