Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(core): remove welcome-agent migration and skills dir bootstrap

Steven Enamakeld3d6dc829159
diff --git a/crates/openhuman-core/src/agent/tinyagents/journal.rs b/crates/openhuman-core/src/agent/tinyagents/journal.rs
index 4f29022f1c..764cc44096 100644
--- a/crates/openhuman-core/src/agent/tinyagents/journal.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/journal.rs
@@ -241,7 +241,7 @@ pub(crate) async fn attach_turn_journal(
}
};
- // Event journal: crate StoreEventJournal over the 04-sessions JsonlAppendStore
+ // Event journal: crate StoreEventJournal over the session event stream
// (stream key = run id). Wrapped in a JournalSink (stamps run lineage) and a
// RedactingSink (masks process credentials) before persisting. Because
// `events` was seeded with `with_stream_id(run_id)`, every persisted
diff --git a/crates/openhuman-core/src/artifacts/store_documents.rs b/crates/openhuman-core/src/artifacts/store_documents.rs
index a6c792a3dd..b4b97dda29 100644
--- a/crates/openhuman-core/src/artifacts/store_documents.rs
+++ b/crates/openhuman-core/src/artifacts/store_documents.rs
@@ -17,12 +17,11 @@
//!
//! # Content files
//!
-//! Only the records move. An artifact's bytes are a file in the visible files
-//! folder (`ArtifactMeta::file`), which the user opens, edits and deletes
-//! outside OpenHuman; the port has no blob store for that, so the file stays
-//! where it is on every backend and the record names it. A shared database
-//! therefore shares the list, the status and the regenerate arguments, not the
-//! bytes.
+//! Only the records move. An artifact's bytes remain a file in the visible
+//! files folder (`ArtifactMeta::file`), which the user opens, edits and deletes
+//! outside OpenHuman. The storage ports include a blob store, but artifact
+//! bytes have not moved to it yet; a shared database therefore shares the
+//! list, status and regenerate arguments, not the bytes.
//!
//! The first document-mode call of a process imports the workspace's legacy
//! `meta.json` / `args.json` files into the acting backend and scope
diff --git a/crates/openhuman-core/src/config/workspace/ops.rs b/crates/openhuman-core/src/config/workspace/ops.rs
index 424cbece80..969669a8eb 100644
--- a/crates/openhuman-core/src/config/workspace/ops.rs
+++ b/crates/openhuman-core/src/config/workspace/ops.rs
@@ -1,7 +1,6 @@
use crate::core::runtime::DispatchCtx;
use serde_json::json;
-use crate::skills::init_workflows_dir;
use std::path::Path;
const BOOTSTRAP_FILES: [(&str, &str); 2] = [
@@ -42,31 +41,7 @@ fn ensure_workspace_file(
Ok(if force { "overwritten" } else { "created" })
}
-/// Records `path` in the created / existing list according to what actually
-/// happened, given whether it existed before the initialising call.
-///
-/// A path that still does not exist afterwards is recorded in **neither** list.
-/// That case is reachable whenever the code responsible for creating it is
-/// compiled out — the `skills` gate's no-op `init_workflows_dir` being the
-/// live example — and reporting it as "created" would make `workspace_init`
-/// claim work it never did.
-fn classify_workspace_entry(
- path: &Path,
- existed_before: bool,
- created: &mut Vec<String>,
- existing: &mut Vec<String>,
-) {
- if !path.exists() {
- return;
- }
- if existed_before {
- existing.push(path.display().to_string());
- } else {
- created.push(path.display().to_string());
- }
-}
-
-/// Create default dirs, copy bundled prompts, and the skills README.
+/// Create default dirs and copy bundled prompts.
pub async fn init_workspace(ctx: &DispatchCtx, force: bool) -> Result<serde_json::Value, String> {
let config = ctx.load_config().await?;
let workspace_dir = config.workspace_dir.clone();
@@ -97,27 +72,6 @@ pub async fn init_workspace(ctx: &DispatchCtx, force: bool) -> Result<serde_json
}
}
- let skills_readme = workspace_dir.join("skills").join("README.md");
- let had_skills_readme = skills_readme.exists();
- init_workflows_dir(&workspace_dir)
- .map_err(|e| format!("failed to initialize skills dir: {e}"))?;
-
- // Report what the call actually did, not what it was expected to do.
- //
- // These two were previously classified from the pre-check alone, which
- // reports a file as "created" whenever it did not exist beforehand — even
- // if nothing subsequently created it. That is wrong in any build where
- // `skills` is compiled out: `init_workflows_dir` resolves to the stub,
- // which is a deliberate no-op, so `skills/README.md` is never written and
- // every call reports it as freshly created, forever. Re-checking existence
- // afterwards makes all three lists honest: absent stays absent.
- classify_workspace_entry(
- &skills_readme,
- had_skills_readme,
- &mut created_files,
- &mut existing_files,
- );
-
Ok(json!({
"result": {
"workspace_dir": workspace_dir.display().to_string(),
diff --git a/crates/openhuman-core/src/core/runtime/bootstrap.rs b/crates/openhuman-core/src/core/runtime/bootstrap.rs
index fac595ebd8..6da34206f7 100644
--- a/crates/openhuman-core/src/core/runtime/bootstrap.rs
+++ b/crates/openhuman-core/src/core/runtime/bootstrap.rs
@@ -141,9 +141,8 @@ pub(crate) async fn bootstrap_core_runtime(
}
// --- Detached sub-agent TaskStore reconciliation -------------------
- // The durable orchestration TaskStore (`<workspace>/.openhuman/
- // orchestration_tasks.jsonl`) can hold non-terminal sub-agent records left
- // by a previous process — their detached executor (abort handle +
+ // The durable orchestration TaskStore can hold non-terminal sub-agent
+ // records left by a previous process — their detached executor (abort handle +
// cooperative CancellationToken) died with that process, so they cannot be
// re-attached. Reconcile each orphan to a terminal state and emit the typed
// terminal lifecycle event so the run ledger finalizes. Best-effort and
@@ -161,7 +160,7 @@ pub(crate) async fn bootstrap_core_runtime(
// --- Undelivered background completions ----------------------------
// A detached sub-agent that finished in a previous process but whose
// result never reached its chat thread is still pending in the durable
- // completion log (`<workspace>/.openhuman/background_completions.jsonl`).
+ // completion store.
// Schedule its delivery turn through the normal idle-gated path.
let redelivering =
crate::agent::orchestration::background_delivery::recover_on_boot(ctx, &workspace_dir);
@@ -371,9 +370,6 @@ pub(crate) async fn bootstrap_core_runtime(
// placement rationale as the bridges above. Idempotent (OnceLock-guarded).
crate::web_chat::register_memory_activity_surface_subscriber();
- // --- Workspace migrations --------------------------------------------
- crate::platform::startup::run_workspace_migrations(ctx, &workspace_dir);
-
// --- Socket manager bootstrap ---
let socket_mgr = Arc::new(SocketManager::new());
set_global_socket_manager(socket_mgr.clone());
diff --git a/crates/openhuman-core/src/platform/README.md b/crates/openhuman-core/src/platform/README.md
index 607894faa0..deda72ce02 100644
--- a/crates/openhuman-core/src/platform/README.md
+++ b/crates/openhuman-core/src/platform/README.md
@@ -20,7 +20,6 @@ startup, and two are driven by events rather than calls. In boot order:
```text
core/runtime/bootstrap.rs
|- platform::cost::init_global(cfg.cost, workspace) cost ledger singleton
- |- platform::startup::run_workspace_migrations(ws) one-shot migrations
|- platform::socket::set_global_socket_manager(..) SocketManager singleton
core/runtime/subscribers.rs
|- platform::health::bus::register_health_subscriber()
diff --git a/crates/openhuman-core/src/platform/mod.rs b/crates/openhuman-core/src/platform/mod.rs
index 3d12d17006..b93c8105bb 100644
--- a/crates/openhuman-core/src/platform/mod.rs
+++ b/crates/openhuman-core/src/platform/mod.rs
@@ -14,5 +14,4 @@ pub mod proc_metrics;
pub(crate) mod resource_admission;
pub mod service;
pub mod socket;
-pub mod startup;
pub mod update;
diff --git a/crates/openhuman-core/src/platform/startup/README.md b/crates/openhuman-core/src/platform/startup/README.md
deleted file mode 100644
index 0dac81bf04..0000000000
--- a/crates/openhuman-core/src/platform/startup/README.md
+++ /dev/null
@@ -1,60 +0,0 @@
-# startup
-
-Generic OpenHuman process-startup helpers. Currently a thin, stateless module whose sole job is to run one-shot workspace migrations during core boot. It centralizes "do this once when the process comes up" logic so the transport layer (`crates/openhuman-core/src/core/runtime/bootstrap.rs`) can fire it without owning migration details. Failures are logged and never abort startup: individual migration helpers own their own idempotency markers.
-
-## Responsibilities
-
-- Run workspace migrations at process startup via `run_workspace_migrations(workspace_dir)`.
-- Drive the **session-layout** migration and log its outcome (jsonl/md moved, pruned legacy dirs, warnings).
-- Drive the **welcome-to-orchestrator** thread/artifact migration (`threads::migrate_welcome_agent_artifacts`) and log its outcome (threads/transcripts updated, files renamed).
-- Swallow migration errors (log `warn`) and fall back to in-place legacy reads so boot always proceeds.
-
-## Key files
-
-| File | Role |
-| --- | --- |
-| `crates/openhuman-core/src/platform/startup/mod.rs` | Export-only: module docstring + `pub mod ops;` + re-export of `run_workspace_migrations`. |
-| `crates/openhuman-core/src/platform/startup/ops.rs` | Implementation of `run_workspace_migrations`: orchestrates the two workspace migrations and logging. |
-
-## Public surface
-
-- `run_workspace_migrations(workspace_dir: &Path)` (re-exported from `ops`): the only public entry point. Returns nothing; all failure handling is internal/logged.
-
-## RPC / controllers
-
-None. The module exposes no controller schemas or `handle_*` functions; it is invoked directly by the transport boot path, not via the controller registry.
-
-## Agent tools
-
-None (no `tools.rs`).
-
-## Events
-
-None (no `bus.rs`); does not publish or subscribe to `DomainEvent`s.
-
-## Persistence
-
-No own state/store. It triggers migrations that mutate on-disk workspace artifacts (session layout files, thread/transcript artifacts) under `workspace_dir`, but the actual persistence and idempotency markers live in the called migration helpers (`tinyagents_session::transcript`, `threads`).
-
-## Dependencies
-
-- `tinyagents_session::transcript`: owns the durable session layout and transcript transitions.
-- `crate::threads::migrate_welcome_agent_artifacts`: performs the welcome-agent → orchestrator artifact migration.
-
-## Used by
-
-- `crates/openhuman-core/src/core/runtime/bootstrap.rs` (core boot path): the only caller; invokes `run_workspace_migrations(&workspace_dir)` during core startup, after approval-gate wiring and before MCP registry boot-spawn.
-
-## Notes / gotchas
-
-- Non-fatal by design: every migration branch logs and continues; a failed migration must never block startup.
-- Idempotency is delegated: this module does not track whether a migration already ran: it relies on each helper's own `already_done` markers. Re-running is safe.
-- Grep-friendly log prefixes: `[runtime]` for session-layout, `[migration::welcome-to-orchestrator]` for the thread/artifact migration.
-- Module is intentionally minimal: no `types.rs`/`store.rs`/`schemas.rs` because it holds no domain types, no persisted state, and no RPC surface.
-
-## Further reading
-
-- [Parent module (`platform`)](../README.md)
-- [Platform and availability](../../../../../docs/gitbooks/en/features/platform.md)
-- [Tauri shell architecture](../../../../../docs/gitbooks/en/developing/architecture/tauri-shell.md)
-- [Architecture overview](../../../../../docs/gitbooks/en/developing/architecture.md)
diff --git a/crates/openhuman-core/src/platform/startup/mod.rs b/crates/openhuman-core/src/platform/startup/mod.rs
deleted file mode 100644
index 05521cf127..0000000000
--- a/crates/openhuman-core/src/platform/startup/mod.rs
+++ /dev/null
@@ -1,5 +0,0 @@
-//! Generic OpenHuman startup helpers.
-
-pub mod ops;
-
-pub use ops::run_workspace_migrations;
diff --git a/crates/openhuman-core/src/platform/startup/ops.rs b/crates/openhuman-core/src/platform/startup/ops.rs
deleted file mode 100644
index 0af0793fc4..0000000000
--- a/crates/openhuman-core/src/platform/startup/ops.rs
+++ /dev/null
@@ -1,37 +0,0 @@
-use std::path::Path;
-
-/// Run one-shot workspace migrations needed at process startup.
-///
-/// Failures are logged and do not abort startup. Individual migration helpers
-/// remain responsible for their own idempotency markers.
-pub fn run_workspace_migrations(ctx: &crate::core::runtime::DispatchCtx, workspace_dir: &Path) {
- match crate::threads::migrate_welcome_agent_artifacts(ctx, workspace_dir) {
- Ok(result) if result.already_done => {
- log::debug!("[migration::welcome-to-orchestrator] already applied");
- }
- Ok(result)
- if result.threads_updated == 0
- && result.transcripts_updated == 0
- && result.transcript_files_renamed == 0
- && result.markdown_files_renamed == 0 =>
- {
- log::debug!("[migration::welcome-to-orchestrator] no artifacts to update");
- }
- Ok(result) => {
- log::info!(
- "[migration::welcome-to-orchestrator] threads_updated={} transcripts_updated={} transcript_files_renamed={} markdown_files_renamed={}",
- result.threads_updated,
- result.transcripts_updated,
- result.transcript_files_renamed,
- result.markdown_files_renamed
- );
- }
- Err(err) => {
- log::warn!("[migration::welcome-to-orchestrator] migration failed: {err}");
- }
- }
-}
-
-#[cfg(test)]
-#[path = "ops_tests.rs"]
-mod tests;
diff --git a/crates/openhuman-core/src/platform/startup/ops_tests.rs b/crates/openhuman-core/src/platform/startup/ops_tests.rs
deleted file mode 100644
index 8caa543502..0000000000
--- a/crates/openhuman-core/src/platform/startup/ops_tests.rs
+++ /dev/null
@@ -1,40 +0,0 @@
-use super::run_workspace_migrations;
-use std::fs;
-use tempfile::TempDir;
-
-#[test]
-fn workspace_startup_runs_welcome_migration_once() {
- let tempdir = TempDir::new().unwrap();
- let workspace = tempdir.path();
- let legacy = workspace.join("session_raw/1715000000_welcome_thread-abc.jsonl");
- fs::create_dir_all(legacy.parent().unwrap()).unwrap();
- fs::write(
- &legacy,
- "{\"_meta\":{\"agent\":\"welcome_thread-abc\",\"thread_id\":\"thread-abc\"}}\n{\"role\":\"user\",\"content\":\"hi\"}\n",
- )
- .unwrap();
-
- run_workspace_migrations(&crate::core::runtime::DispatchCtx::ambient(), workspace);
-
- let canonical = workspace.join("session_raw/1715000000_orchestrator_thread-abc.jsonl");
- let marker = workspace.join("state/migrations/welcome_to_orchestrator_v1.done");
- let rewritten = fs::read_to_string(&canonical).unwrap();
- assert!(rewritten.contains("\"agent\":\"orchestrator_thread-abc\""));
- let first_marker = fs::read_to_string(&marker).unwrap();
-
- // A late welcome transcript proves startup observes the marker rather than
- // re-running the welcome-agent migration on every process launch.
- let late_legacy = workspace.join("session_raw/1715000001_welcome_thread-late.jsonl");
- fs::write(
- &late_legacy,
- "{\"_meta\":{\"agent\":\"welcome_thread-late\",\"thread_id\":\"thread-late\"}}\n",
- )
- .unwrap();
- run_workspace_migrations(&crate::core::runtime::DispatchCtx::ambient(), workspace);
-
- assert_eq!(
- fs::read_to_string(&late_legacy).unwrap(),
- "{\"_meta\":{\"agent\":\"welcome_thread-late\",\"thread_id\":\"thread-late\"}}\n"
- );
- assert_eq!(fs::read_to_string(marker).unwrap(), first_marker);
-}
diff --git a/crates/openhuman-core/src/sessions/mod.rs b/crates/openhuman-core/src/sessions/mod.rs
index 01c45856b2..dcd26e2d7c 100644
--- a/crates/openhuman-core/src/sessions/mod.rs
+++ b/crates/openhuman-core/src/sessions/mod.rs
@@ -9,10 +9,8 @@
//! Call the store directly (`tinyagents_session::run_ledger::…`) rather
//! than through this module; it deliberately re-exports no storage API.
//!
-//! Every store entry point takes the workspace root, so handlers pass
-//! `config.workspace_dir`. The database path is
-//! `{workspace}/session_db/sessions.db` — unchanged, so existing installs keep
-//! their run-ledger history.
+//! Handlers resolve the configured session store through the runtime's storage
+//! ports, preserving run-ledger history across local and shared backends.
//!
//! The `run_ledger` RPC namespace is unchanged. The six read-only `session_db`
//! controllers were removed in #6082: they queried a session index that nothing
diff --git a/crates/openhuman-core/src/skills/README.md b/crates/openhuman-core/src/skills/README.md
index 6af48f4ad4..4ef5eba116 100644
--- a/crates/openhuman-core/src/skills/README.md
+++ b/crates/openhuman-core/src/skills/README.md
@@ -157,9 +157,7 @@ there only while its bytes still match the binary
- `Workflow`, `WorkflowScope` ([`ops_types.rs`](./ops_types.rs)): the discovered skill and its
scope (`Builtin`, `Legacy`, `User`, `Project`, `Profile`, `Flow`).
- `load_workflow_metadata`, `discover_workflows`, `discover_automations`,
- `is_workspace_trusted`, `init_workflows_dir` ([`ops_discover/api.rs`](./ops_discover/api.rs)).
- `config/workspace/ops.rs` calls `init_workflows_dir` during workspace
- bootstrap.
+ `is_workspace_trusted` ([`ops_discover/api.rs`](./ops_discover/api.rs)).
- `read_workflow_resource` ([`ops_discover/resource.rs`](./ops_discover/resource.rs)): wraps
`tinyskills::resolve_skill` and `read_resource`, which enforce traversal,
symlink, size (`MAX_WORKFLOW_RESOURCE_BYTES`, 128 KiB) and UTF-8 checks.
@@ -227,8 +225,8 @@ flows domain contributes `Flow`-scope entries (`flows/catalogue.rs`).
- The `skills` Cargo feature (default on) gates every behavioral submodule.
`pub mod skills` itself always compiles as a facade: when the feature is off,
[`stub.rs`](./stub.rs) supplies the functions always-on callers use with empty or no-op
- bodies (`load_workflow_metadata` returns `[]`, `init_workflows_dir` returns
- `Ok(())`, the controller aggregators return nothing), so callers need no
+ bodies (`load_workflow_metadata` returns `[]`, the controller aggregators
+ return nothing), so callers need no
`#[cfg]`. [`types.rs`](./types.rs) and `ops_types.rs` stay compiled in both builds because
agent-harness and prompt signatures name them; the stub re-exports them
rather than redeclaring them. [`catalog`](./catalog) and [`runtime`](./runtime) are facade and stub
diff --git a/crates/openhuman-core/src/skills/mod.rs b/crates/openhuman-core/src/skills/mod.rs
index 2aa84e3c31..ec8739ed0c 100644
--- a/crates/openhuman-core/src/skills/mod.rs
+++ b/crates/openhuman-core/src/skills/mod.rs
@@ -6,7 +6,7 @@
//! submodules below are gated behind the default-ON `skills` Cargo feature;
//! when it is off, [`stub`] takes their place and exposes the same public
//! surface that always-on callers depend on (`load_workflow_metadata`,
-//! `init_workflows_dir`, `registry`, `bus`, the controller aggregators) with
+//! `registry`, `bus`, the controller aggregators) with
//! no-op / empty bodies. Callers therefore do **not** need per-call `#[cfg]`.
//! (The `tools` glob is `#[cfg(feature = "skills")]` at its re-export site in
//! `tools/mod.rs`, so the stub omits it — mirroring the `voice` gate.)
diff --git a/crates/openhuman-core/src/skills/ops.rs b/crates/openhuman-core/src/skills/ops.rs
index 4d2a3d9b05..553a8925b1 100644
--- a/crates/openhuman-core/src/skills/ops.rs
+++ b/crates/openhuman-core/src/skills/ops.rs
@@ -32,8 +32,8 @@
pub use super::bundled::install_bundled_skills;
pub use super::ops_create::{create_workflow, CreateWorkflowParams, WorkflowCreateInputDef};
pub use super::ops_discover::{
- discover_automations, discover_workflows, init_workflows_dir, is_workspace_trusted,
- load_workflow_metadata, read_workflow_resource,
+ discover_automations, discover_workflows, is_workspace_trusted, load_workflow_metadata,
+ read_workflow_resource,
};
pub use super::ops_install::{
install_workflow_from_url, uninstall_workflow, validate_install_url, validate_resolved_host,
diff --git a/crates/openhuman-core/src/skills/ops_discover.rs b/crates/openhuman-core/src/skills/ops_discover.rs
index b138d78bab..9fe272d21f 100644
--- a/crates/openhuman-core/src/skills/ops_discover.rs
+++ b/crates/openhuman-core/src/skills/ops_discover.rs
@@ -19,8 +19,8 @@ mod scan;
use std::path::Path;
pub use api::{
- discover_automations, discover_workflows, discovery_home_dir, init_workflows_dir,
- is_workspace_trusted, load_workflow_metadata,
+ discover_automations, discover_workflows, discovery_home_dir, is_workspace_trusted,
+ load_workflow_metadata,
};
pub use resource::read_workflow_resource;
diff --git a/crates/openhuman-core/src/skills/ops_discover/api.rs b/crates/openhuman-core/src/skills/ops_discover/api.rs
index 2ba8536b5c..84abc2be50 100644
--- a/crates/openhuman-core/src/skills/ops_discover/api.rs
+++ b/crates/openhuman-core/src/skills/ops_discover/api.rs
@@ -33,31 +33,6 @@ pub(crate) fn invalidate_workflow_metadata_cache() {
}
}
-/// Initialize the legacy skills directory in the specified workspace.
-///
-/// Creates `<workspace>/skills/` and a placeholder `README.md` so the folder
-/// is visible to the user. New-style skills should live under
-/// `<workspace>/.openhuman/skills/` instead, but this directory is kept for
-/// backward compatibility.
-pub fn init_workflows_dir(workspace_dir: &Path) -> Result<(), String> {
- let skills_dir = workspace_dir.join("skills");
- std::fs::create_dir_all(&skills_dir).map_err(|e| {
- format!(
- "failed to create skills directory {}: {e}",
- skills_dir.display()
- )
- })?;
-
- let readme_path = skills_dir.join("README.md");
- if !readme_path.exists() {
- let content = "# Skills\n\nPut one skill per directory under this folder.\n";
- std::fs::write(&readme_path, content)
- .map_err(|e| format!("failed to write {}: {e}", readme_path.display()))?;
- }
-
- Ok(())
-}
-
/// The home directory skill discovery scans for user-scope roots
/// (`~/.openhuman/skills/`, `~/.agents/skills/`, `~/.openhuman/workflows/`).
///
diff --git a/crates/openhuman-core/src/skills/ops_discovery_tests.rs b/crates/openhuman-core/src/skills/ops_discovery_tests.rs
index 040288635f..4da706c99b 100644
--- a/crates/openhuman-core/src/skills/ops_discovery_tests.rs
+++ b/crates/openhuman-core/src/skills/ops_discovery_tests.rs
@@ -1,15 +1,5 @@
use super::*;
-#[test]
-fn init_skills_dir_creates_dir_and_readme() {
- let dir = tempfile::tempdir().unwrap();
- init_workflows_dir(dir.path()).unwrap();
- let skills_dir = dir.path().join("skills");
- assert!(skills_dir.is_dir());
- let readme = skills_dir.join("README.md");
- assert!(readme.exists());
-}
-
#[test]
fn project_skills_skipped_when_not_trusted() {
let dir = tempfile::tempdir().unwrap();
diff --git a/crates/openhuman-core/src/skills/stub.rs b/crates/openhuman-core/src/skills/stub.rs
index aef5d14ff2..5b830174af 100644
--- a/crates/openhuman-core/src/skills/stub.rs
+++ b/crates/openhuman-core/src/skills/stub.rs
@@ -46,13 +46,6 @@ pub fn install_bundled_skills(_workspace_dir: &Path) {
log::debug!("[skills-stub] install_bundled_skills skipped (skills disabled)");
}
-/// No-op success: with skills compiled out there is no skills directory to
-/// provision, and workspace bootstrap must not fail because of it.
-pub fn init_workflows_dir(_workspace_dir: &Path) -> Result<(), String> {
- log::debug!("[skills-stub] init_workflows_dir skipped (skills disabled)");
- Ok(())
-}
-
// ---------------------------------------------------------------------------
// Controller aggregators — empty so `crates/openhuman-core/src/core/all.rs` needs no `#[cfg]`.
// ---------------------------------------------------------------------------
diff --git a/crates/openhuman-core/src/threads/README.md b/crates/openhuman-core/src/threads/README.md
index 94dfc0f54a..534e233a34 100644
--- a/crates/openhuman-core/src/threads/README.md
+++ b/crates/openhuman-core/src/threads/README.md
@@ -18,17 +18,18 @@ the rest of the core (sub-agents, web-channel sessions, turn snapshots).
### Three kinds of per-thread data
-A thread has three separate records on disk, all under the workspace:
+A thread has three separate records, resolved through the configured storage
+backend:
```text
-<workspace>/memory/conversations/
- threads.jsonl thread metadata, append-only upsert/delete log
- threads/<hex(thread_id)>.jsonl the thread's message log (what the UI lists)
- turn_states/<hex(thread)>/<hex(request)>.json
- snapshot of one turn's progress
-session store (storage::sessions) model-facing transcript (agent session host)
+conversation store thread metadata and messages
+turn-state store snapshot of one turn's progress
+session store (storage::sessions) model-facing transcript (agent session host)
```
+Legacy `<workspace>/memory/conversations/` files are read once into the
+configured backend; they remain as an import source and are not the live store.
+
The message log is the user-facing history: one row per user message and
agent reply, which `threads.messages_list` returns. The transcript is what
the model sees, written by the agent session host through the session store
@@ -151,20 +152,11 @@ inbound and processed channel turns into the store, using
and `security/credentials/ops/user_scope.rs` (when the user dir activates).
See [store/README.md](store/README.md).
-### Welcome migration
-
-`welcome_migration::migrate_welcome_agent_artifacts` is a one-shot cleanup for
-the removed welcome-agent onboarding: it strips the obsolete `"onboarding"`
-label from threads and renames `welcome*` session transcripts to
-`orchestrator*`. It is idempotent, guarded by
-`state/migrations/welcome_to_orchestrator_v1.done`, and called from
-`platform/startup/ops.rs`.
-
## Layout
| Path | What it does |
| --- | --- |
-| [`mod.rs`](./mod.rs) | Module declarations, re-exports of the RPC models, error type, controller aggregators and the welcome migration. |
+| [`mod.rs`](./mod.rs) | Module declarations, re-exports of the RPC models, error type and controller aggregators. |
| [`rpc_models.rs`](./rpc_models.rs) | Serde request and response types for the namespace (`ConversationThreadSummary`, `ConversationMessageRecord`, the `*Request` types). |
| [`error.rs`](./error.rs) | `ThreadsError` (`NotFound`, `Message`) and its structured RPC error with kind `ThreadNotFound`, so the frontend can drop a stale thread. |
| [`ops.rs`](./ops.rs) | Re-exports the operations from [`ops/`](./ops/). |
@@ -182,7 +174,6 @@ label from threads and renames `welcome*` session transcripts to
| [`schemas/`](./schemas/) | `schema_defs.rs` (controller schemas), `handlers.rs` (param parsing, thin handlers), `registry.rs` (the controller list). |
| [`store/`](./store/) | Re-export of `tinyagents_session::threads`, the `blocking` wrappers and the channel bus subscriber. See [store/README.md](store/README.md). |
| [`turn_state/`](./turn_state/) | `mirror/observe.rs` (progress projection) and `rpc_types.rs` (turn-state RPC payloads). |
-| [`welcome_migration.rs`](./welcome_migration.rs) | The one-shot welcome-agent migration. |
## Key types and entry points
diff --git a/crates/openhuman-core/src/threads/mod.rs b/crates/openhuman-core/src/threads/mod.rs
index 15bd3a827e..cc12f91a54 100644
--- a/crates/openhuman-core/src/threads/mod.rs
+++ b/crates/openhuman-core/src/threads/mod.rs
@@ -14,7 +14,6 @@ pub mod store;
#[cfg(test)]
mod transcript_host_tests;
pub mod turn_state;
-pub mod welcome_migration;
pub(crate) mod worker_mirror;
pub(crate) mod worker_thread;
@@ -26,7 +25,6 @@ pub use schemas::{
all_controller_schemas as all_threads_controller_schemas,
all_registered_controllers as all_threads_registered_controllers,
};
-pub use welcome_migration::{migrate_welcome_agent_artifacts, WelcomeMigrationResult};
/// Log prefix for thread-title generation (grep-friendly).
pub(crate) const THREAD_TITLE_LOG_PREFIX: &str = "[threads:title]";
diff --git a/crates/openhuman-core/src/threads/store/README.md b/crates/openhuman-core/src/threads/store/README.md
index eb46fc7002..3b5251adb7 100644
--- a/crates/openhuman-core/src/threads/store/README.md
+++ b/crates/openhuman-core/src/threads/store/README.md
@@ -1,8 +1,7 @@
# threads/store
-Workspace-backed chat thread and message storage: transcript persistence, not
-memory. The store itself (on-disk format, locking, warm trigram/CJK-bigram
-index for cross-thread search, CRUD) is `tinyagents_session::threads` in
+Chat thread and message storage: transcript persistence, not memory. The store
+API, indexing and CRUD are `tinyagents_session::threads` in
`vendor/tinyagents`; this directory keeps only the host wiring and re-exports
the store so callers name `crate::threads::store::{...}`. Memory v2
(`crate::memory`) is separate: it only ingests committed turns through its own
@@ -27,16 +26,12 @@ bus subscriber (see [`memory/`](../../memory/)).
the subscriber is not registered and a claim is a no-op, so the untenanted
`(channel, message_id)` key never spans profiles.
-## On-disk layout
+## Persistence
-Unchanged from before the move:
-
-```text
-<workspace>/memory/conversations/
-├── threads.jsonl # append-only upsert/delete log of thread metadata
-└── threads/
- └── <hex(thread_id)>.jsonl # one file per thread, its messages in order
-```
+The runtime installs `tinyagents_session::threads` with the configured
+session store. Local profiles use the workspace-backed driver; shared storage
+uses the installed backend. This host module does not choose a filesystem
+layout.
## Tests
diff --git a/crates/openhuman-core/src/threads/welcome_migration.rs b/crates/openhuman-core/src/threads/welcome_migration.rs
deleted file mode 100644
index 87a7e3a207..0000000000
--- a/crates/openhuman-core/src/threads/welcome_migration.rs
+++ /dev/null
@@ -1,404 +0,0 @@
-//! One-shot workspace migration for artifacts created by the removed
-//! welcome-agent onboarding flow.
-//!
-//! This migration handles two legacy footprints:
-//!
-//! 1. Threads created by the old React onboarding flow carried the
-//! `"onboarding"` label. That label no longer has any runtime meaning
-//! and just makes the thread look special in storage.
-//! 2. Session transcripts for welcome-agent chats were persisted under
-//! `welcome*` agent names. Now that all chats route to the orchestrator,
-//! those transcripts should be normalized to `orchestrator*` naming so
-//! future inspection and resume surfaces don't imply the deleted agent
-//! still exists.
-//!
-//! The migration is idempotent and guarded by a marker file under
-//! `state/migrations/`.
-
-use crate::core::runtime::DispatchCtx;
-use std::fs;
-use std::path::Path;
-
-use crate::threads::store as conversations;
-use serde_json::{json, Value};
-
-const MIGRATION_MARKER: &str = "state/migrations/welcome_to_orchestrator_v1.done";
-const WELCOME_THREAD_LABEL: &str = "onboarding";
-const WELCOME_AGENT_PREFIX: &str = "welcome";
-const ORCHESTRATOR_AGENT_PREFIX: &str = "orchestrator";
-
-#[derive(Debug, Default, Clone)]
-pub struct WelcomeMigrationResult {
- pub threads_updated: usize,
- pub transcripts_updated: usize,
- pub transcript_files_renamed: usize,
- pub markdown_files_renamed: usize,
- pub already_done: bool,
-}
-
-pub fn migrate_welcome_agent_artifacts(
- ctx: &DispatchCtx,
- workspace_dir: &Path,
-) -> Result<WelcomeMigrationResult, String> {
- let marker = workspace_dir.join(MIGRATION_MARKER);
- if marker.exists() {
- log::debug!(
- "[migration::welcome-to-orchestrator] marker present at {} — skipping",
- marker.display()
- );
- return Ok(WelcomeMigrationResult {
- already_done: true,
- ..WelcomeMigrationResult::default()
- });
- }
-
- let mut result = WelcomeMigrationResult::default();
- let thread_result = migrate_welcome_thread_labels(ctx, workspace_dir)?;
- result.threads_updated = thread_result.threads_updated;
- let transcript_result = migrate_welcome_transcripts(workspace_dir)?;
- result.transcripts_updated = transcript_result.transcripts_updated;
- result.transcript_files_renamed = transcript_result.transcript_files_renamed;
- result.markdown_files_renamed = transcript_result.markdown_files_renamed;
-
- if thread_result.failures > 0 || transcript_result.failures > 0 {
- return Err(format!(
- "[migration::welcome-to-orchestrator] partial migration: thread_failures={} transcript_failures={}",
- thread_result.failures, transcript_result.failures
- ));
- }
-
- write_marker(&marker)?;
-
- log::info!(
- "[migration::welcome-to-orchestrator] complete: threads_updated={} transcripts_updated={} transcript_files_renamed={} markdown_files_renamed={}",
- result.threads_updated,
- result.transcripts_updated,
- result.transcript_files_renamed,
- result.markdown_files_renamed
- );
-
- Ok(result)
-}
-
-struct ThreadLabelMigrationResult {
- threads_updated: usize,
- failures: usize,
-}
-
-fn migrate_welcome_thread_labels(
- ctx: &DispatchCtx,
- workspace_dir: &Path,
-) -> Result<ThreadLabelMigrationResult, String> {
- log::debug!(
- "[migration::welcome-to-orchestrator] scanning workspace={} for legacy '{}' thread label",
- workspace_dir.display(),
- WELCOME_THREAD_LABEL
- );
-
- let threads = conversations::list_threads(ctx, workspace_dir.to_path_buf())
- .map_err(|e| format!("[migration::welcome-to-orchestrator] list_threads failed: {e}"))?;
-
- let mut threads_updated = 0usize;
- let mut failures = 0usize;
- for thread in &threads {
- if !thread
- .labels
- .iter()
- .any(|label| label == WELCOME_THREAD_LABEL)
- {
- continue;
- }
-
- let new_labels: Vec<String> = thread
- .labels
- .iter()
- .filter(|label| label.as_str() != WELCOME_THREAD_LABEL)
- .cloned()
- .collect();
-
- let updated_at = chrono::Utc::now().to_rfc3339();
- match conversations::update_thread_labels(
- ctx,
- workspace_dir.to_path_buf(),
- &thread.id,
- new_labels,
- &updated_at,
- ) {
- Ok(_) => {
- threads_updated += 1;
- log::info!(
- "[migration::welcome-to-orchestrator] stripped '{}' label from thread_id={}",
- WELCOME_THREAD_LABEL,
- thread.id
- );
- }
- Err(err) => {
- failures += 1;
- log::warn!(
- "[migration::welcome-to-orchestrator] failed to update thread_id={}: {err}",
- thread.id
- );
- }
- }
- }
-
- Ok(ThreadLabelMigrationResult {
- threads_updated,
- failures,
- })
-}
-
-#[derive(Default)]
-struct TranscriptMigrationResult {
- transcripts_updated: usize,
- transcript_files_renamed: usize,
- markdown_files_renamed: usize,
- failures: usize,
-}
-
-fn migrate_welcome_transcripts(workspace_dir: &Path) -> Result<TranscriptMigrationResult, String> {
- let raw_root = workspace_dir.join("session_raw");
- if !raw_root.is_dir() {
- return Ok(TranscriptMigrationResult::default());
- }
-
- let entries = fs::read_dir(&raw_root)
- .map_err(|e| format!("[migration::welcome-to-orchestrator] read_dir failed: {e}"))?;
-
- let mut result = TranscriptMigrationResult::default();
- for entry in entries.flatten() {
- let path = entry.path();
- if !path.is_file() || path.extension().and_then(|s| s.to_str()) != Some("jsonl") {
- continue;
- }
-
- let Some((old_agent_name, new_agent_name, new_meta_line)) =
- rewrite_meta_line_if_welcome_chat(&path)
- else {
- continue;
- };
-
- let old_stem = path
- .file_stem()
- .and_then(|s| s.to_str())
- .ok_or_else(|| format!("invalid transcript filename: {}", path.display()))?
- .to_string();
-
- let new_stem = renamed_stem(&old_stem, &old_agent_name, &new_agent_name);
- let mut destination = path.clone();
- if new_stem != old_stem {
- destination = path.with_file_name(format!("{new_stem}.jsonl"));
- }
-
- if destination != path && destination.exists() {
- result.failures += 1;
- log::warn!(
- "[migration::welcome-to-orchestrator] destination already exists for {} — updating metadata in place",
- destination.display()
- );
- // Keep legacy artifact untouched so a future retry can still
- // detect and rename it if the collision is removed.
- continue;
- }
-
- if let Err(err) = write_rewritten_meta(&path, &new_meta_line, destination.as_path()) {
- result.failures += 1;
- log::warn!("[migration::welcome-to-orchestrator] {err}");
- continue;
- }
- result.transcripts_updated += 1;
- if destination != path {
- result.transcript_files_renamed += 1;
- rename_markdown_companions(workspace_dir, &old_stem, &new_stem, &mut result);
- }
- }
-
- Ok(result)
-}
-
-fn rewrite_meta_line_if_welcome_chat(path: &Path) -> Option<(String, String, String)> {
- let contents = fs::read_to_string(path).ok()?;
- let (first_line, _) = match contents.split_once('\n') {
- Some(parts) => parts,
- None => (contents.as_str(), ""),
- };
-
- let mut meta: Value = serde_json::from_str(first_line).ok()?;
- let meta_obj = meta.get("_meta")?.as_object()?;
- let thread_id = meta_obj.get("thread_id")?.as_str()?.trim();
- if thread_id.is_empty() {
- return None;
- }
-
- let agent = meta_obj.get("agent")?.as_str()?.trim().to_string();
- let new_agent_name = rewrite_agent_name(&agent)?;
- let meta_obj = meta.get_mut("_meta")?.as_object_mut()?;
- meta_obj.insert("agent".to_string(), json!(new_agent_name.clone()));
- let serialized = serde_json::to_string(&meta).ok()?;
- Some((agent, new_agent_name, serialized))
-}
-
-fn rewrite_agent_name(agent: &str) -> Option<String> {
- if agent == WELCOME_AGENT_PREFIX {
- return Some(ORCHESTRATOR_AGENT_PREFIX.to_string());
- }
- if let Some(suffix) = agent.strip_prefix(&format!("{WELCOME_AGENT_PREFIX}_")) {
- return Some(format!("{ORCHESTRATOR_AGENT_PREFIX}_{suffix}"));
- }
- None
-}
-
-fn renamed_stem(old_stem: &str, old_agent_name: &str, new_agent_name: &str) -> String {
- let old_agent = sanitize_agent_name(old_agent_name);
- let new_agent = sanitize_agent_name(new_agent_name);
-
- if old_stem.ends_with(&old_agent) {
- let prefix = &old_stem[..old_stem.len().saturating_sub(old_agent.len())];
- return format!("{prefix}{new_agent}");
- }
-
- if let Some(rest) = old_stem.strip_prefix(&format!("{old_agent}_")) {
- return format!("{new_agent}_{rest}");
- }
-
- old_stem.to_string()
-}
-
-fn sanitize_agent_name(name: &str) -> String {
- name.chars()
- .map(|c| {
- if c.is_alphanumeric() || c == '-' || c == '_' {
- c
- } else {
- '_'
- }
- })
- .collect()
-}
-
-fn write_rewritten_meta(
- path: &Path,
- new_meta_line: &str,
- destination: &Path,
-) -> Result<(), String> {
- let original = fs::read_to_string(path).map_err(|e| {
- format!(
- "[migration::welcome-to-orchestrator] read {} failed: {e}",
- path.display()
- )
- })?;
- let rest = match original.split_once('\n') {
- Some((_, rest)) => rest,
- None => "",
- };
-
- let mut rewritten = String::with_capacity(new_meta_line.len() + rest.len() + 1);
- rewritten.push_str(new_meta_line);
- if !rest.is_empty() {
- rewritten.push('\n');
- rewritten.push_str(rest);
- }
-
- fs::write(path, rewritten).map_err(|e| {
- format!(
- "[migration::welcome-to-orchestrator] write {} failed: {e}",
- path.display()
- )
- })?;
-
- if destination != path {
- fs::rename(path, destination).map_err(|e| {
- format!(
- "[migration::welcome-to-orchestrator] rename {} -> {} failed: {e}",
- path.display(),
- destination.display()
- )
- })?;
- log::info!(
- "[migration::welcome-to-orchestrator] renamed transcript {} -> {}",
- path.display(),
- destination.display()
- );
- } else {
- log::info!(
- "[migration::welcome-to-orchestrator] rewrote transcript metadata in {}",
- path.display()
- );
- }
-
- Ok(())
-}
-
-fn rename_markdown_companions(
- workspace_dir: &Path,
- old_stem: &str,
- new_stem: &str,
- result: &mut TranscriptMigrationResult,
-) {
- let sessions_root = workspace_dir.join("sessions");
- if !sessions_root.is_dir() {
- return;
- }
-
- let Ok(entries) = fs::read_dir(&sessions_root) else {
- return;
- };
-
- for entry in entries.flatten() {
- let dir = entry.path();
- if !dir.is_dir() {
- continue;
- }
- let old_path = dir.join(format!("{old_stem}.md"));
- if !old_path.exists() {
- continue;
- }
- let new_path = dir.join(format!("{new_stem}.md"));
- if new_path.exists() {
- result.failures += 1;
- log::warn!(
- "[migration::welcome-to-orchestrator] markdown destination already exists at {} — leaving {} in place",
- new_path.display(),
- old_path.display()
- );
- continue;
- }
- if let Err(err) = fs::rename(&old_path, &new_path) {
- result.failures += 1;
- log::warn!(
- "[migration::welcome-to-orchestrator] failed to rename markdown companion {} -> {}: {}",
- old_path.display(),
- new_path.display(),
- err
- );
- continue;
- }
- result.markdown_files_renamed += 1;
- }
-}
-
-fn write_marker(marker: &Path) -> Result<(), String> {
- let Some(parent) = marker.parent() else {
- return Err(format!(
- "[migration::welcome-to-orchestrator] invalid marker path {}",
- marker.display()
- ));
- };
- fs::create_dir_all(parent).map_err(|e| {
- format!(
- "[migration::welcome-to-orchestrator] create marker dir {} failed: {e}",
- parent.display()
- )
- })?;
- fs::write(marker, b"done\n").map_err(|e| {
- format!(
- "[migration::welcome-to-orchestrator] write marker {} failed: {e}",
- marker.display()
- )
- })?;
- Ok(())
-}
-
-#[cfg(test)]
-#[path = "welcome_migration_tests.rs"]
-mod tests;
diff --git a/crates/openhuman-embed/src/agent/layout.rs b/crates/openhuman-embed/src/agent/layout.rs
index 9ec22a7981..7ecc3f7d5e 100644
--- a/crates/openhuman-embed/src/agent/layout.rs
+++ b/crates/openhuman-embed/src/agent/layout.rs
@@ -7,7 +7,6 @@
//! <root>/
//! config.toml, auth-profiles.json, core.token runtime-wide
//! workspace/
-//! session_db/sessions.db runtime-wide run ledger
//! agents/<id>/{SOUL.md, skills/, workflows/} the agent's home
//! agents/<id>/session_raw/<stem>.jsonl legacy transcript import
//! agents/<id>/cron/jobs.db its cron jobs
@@ -16,9 +15,9 @@
//!
//! Its MCP host keeps its store in the agent home too.
//!
-//! New transcripts use the runtime's `SessionStoreProvider` (SQLite-backed
-//! `WorkspaceStores` by default). Classic `session_raw/*.jsonl` transcripts
-//! remain a read-only import source; they are not copied back to this layout.
+//! New transcripts use the runtime's `SessionStoreProvider`, backed by the
+//! configured storage ports. Classic `session_raw/*.jsonl` transcripts remain
+//! a read-only import source; they are not copied back to this layout.
use std::path::{Path, PathBuf};
diff --git a/crates/openhuman-embed/src/harness/workspace.rs b/crates/openhuman-embed/src/harness/workspace.rs
index e93b4ec202..3ee994a423 100644
--- a/crates/openhuman-embed/src/harness/workspace.rs
+++ b/crates/openhuman-embed/src/harness/workspace.rs
@@ -1,10 +1,9 @@
//! Where the harness keeps its state.
//!
-//! By default session history, memory, attachments and skills all live
-//! beneath one directory, and `tinyagents::session` keys its SQLite database on
-//! it (`{workspace}/session_db/sessions.db`), which is why the workspace is a
-//! first-class builder input rather than something discovered from the
-//! environment.
+//! By default local session history, memory, attachments and skills live
+//! beneath one directory. The runtime resolves durable session storage from
+//! its configured storage backend; the workspace remains a first-class
+//! builder input for local files and scratch data.
//!
//! A host that keeps conversations in its own database instead gives the
//! runtime a session store
diff --git a/docs/plans/jev-tool-search-baseline.md b/docs/plans/jev-tool-search-baseline.md
index 77e23c091d..62b7906273 100644
--- a/docs/plans/jev-tool-search-baseline.md
+++ b/docs/plans/jev-tool-search-baseline.md
@@ -65,9 +65,9 @@ What the rows say:
`EmbeddingToolRanker`, one proxy round trip. Family-then-decide scores a
few points higher on Composio at a second round trip and stays available
through `JevRankerConfig::with_strategy`. Catalogue embeddings are computed
- once per process (19 batches of 64 for this catalogue) and cached on disk
- under `<workspace>/cache/tool_search_embeddings.json`, keyed by the
- provider's signature; every later search embeds only the intent.
+ once per process (19 batches of 64 for this catalogue) and cached through
+ the configured storage backend, keyed by the provider's signature; every
+ later search embeds only the intent.
- **No embedder, no Jev search.** When the configured embedding provider is
`none`, `TinyHumansJevRanker` returns an error and the harness answers with
its own BM25 catalogue — a Jev decision over a lexical shortlist would only
diff --git a/scripts/ci/storage-bypass-allow-reasons.json b/scripts/ci/storage-bypass-allow-reasons.json
index 1f21dd3c98..8de250d4e2 100644
--- a/scripts/ci/storage-bypass-allow-reasons.json
+++ b/scripts/ci/storage-bypass-allow-reasons.json
@@ -76,13 +76,6 @@
"reason": "paired with the OS keychain mnemonic (and holds it when there is no keychain): moves with the secrets work, not as a plain document",
"issue": "https://github.com/tinyhumansai/openhuman/issues/7430"
},
- {
- "path": "crates/openhuman-core/src/agent/harness/artifact_offload/mod.rs",
- "rule": "json-write",
- "site": "tokio::fs::write(&target, body)",
- "reason": "a derived view of a blob-stored artifact, placed in the action dir so file_read can open the path a pointer hands back; the tenant's blob store stays the source of truth",
- "issue": "https://github.com/tinyhumansai/openhuman/issues/7425"
- },
{
"path": "crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod.rs",
"rule": "json-write",
diff --git a/scripts/ci/storage-bypass-baseline.json b/scripts/ci/storage-bypass-baseline.json
index 6a05804422..748c17415b 100644
--- a/scripts/ci/storage-bypass-baseline.json
+++ b/scripts/ci/storage-bypass-baseline.json
@@ -160,20 +160,6 @@
"text": "tokio::fs::write(&file_path, audio_bytes)",
"occurrence": 1
},
- {
- "rule": "json-write",
- "path": "crates/openhuman-core/src/integrations/file_storage/tools/download.rs",
- "line": 89,
- "text": "if let Err(e) = tokio::fs::write(&path, &body).await {",
- "occurrence": 1
- },
- {
- "rule": "json-write",
- "path": "crates/openhuman-core/src/memory/files.rs",
- "line": 61,
- "text": "let mut options = std::fs::OpenOptions::new();",
- "occurrence": 1
- },
{
"rule": "json-write",
"path": "crates/openhuman-core/src/memory/layout_migration/claim.rs",
@@ -370,20 +356,6 @@
"text": "if let Err(e) = std::fs::write(&path, json) {",
"occurrence": 1
},
- {
- "rule": "json-write",
- "path": "crates/openhuman-core/src/threads/welcome_migration.rs",
- "line": 302,
- "text": "fs::write(path, rewritten).map_err(|e| {",
- "occurrence": 1
- },
- {
- "rule": "json-write",
- "path": "crates/openhuman-core/src/threads/welcome_migration.rs",
- "line": 393,
- "text": "fs::write(marker, b\"done\\n\").map_err(|e| {",
- "occurrence": 1
- },
{
"rule": "json-write",
"path": "crates/openhuman-core/src/tools/impl/document/mod.rs",
diff --git a/scripts/ci/storage-bypass-extension.json b/scripts/ci/storage-bypass-extension.json
index 547ece7783..64561fdc74 100644
--- a/scripts/ci/storage-bypass-extension.json
+++ b/scripts/ci/storage-bypass-extension.json
@@ -259,46 +259,6 @@
"reason": "Generated tool-output relocation between temporary native-tool paths before publication; authoritative artifact capture remains a separate host boundary.",
"issue": "https://github.com/tinyhumansai/openhuman/issues/7425"
},
- {
- "rule": "file-store-new",
- "path": "crates/openhuman-core/src/memory/import.rs",
- "line": 99,
- "text": "FileCheckpointStore::new(workspace_dir).load()",
- "occurrence": 1,
- "classification": "classic",
- "reason": "Legacy memory import checkpoint adapter reads and saves resume, error and credit-pause bookkeeping through the existing host state store; this constructor is not proof of native migration authority.",
- "issue": "https://github.com/tinyhumansai/openhuman/issues/7427"
- },
- {
- "rule": "file-store-new",
- "path": "crates/openhuman-core/src/memory/import.rs",
- "line": 122,
- "text": "Arc::new(FileCheckpointStore::new(&config.workspace_dir)),",
- "occurrence": 1,
- "classification": "classic",
- "reason": "Legacy memory import checkpoint adapter reads and saves resume, error and credit-pause bookkeeping through the existing host state store; this constructor is not proof of native migration authority.",
- "issue": "https://github.com/tinyhumansai/openhuman/issues/7427"
- },
- {
- "rule": "file-store-new",
- "path": "crates/openhuman-core/src/memory/import.rs",
- "line": 265,
- "text": "let store = FileCheckpointStore::new(&config.workspace_dir);",
- "occurrence": 1,
- "classification": "classic",
- "reason": "Legacy memory import checkpoint adapter reads and saves resume, error and credit-pause bookkeeping through the existing host state store; this constructor is not proof of native migration authority.",
- "issue": "https://github.com/tinyhumansai/openhuman/issues/7427"
- },
- {
- "rule": "file-store-new",
- "path": "crates/openhuman-core/src/memory/layout_migration/app_host.rs",
- "line": 28,
- "text": "let store = FileStateStore::new(&config.workspace_dir);",
- "occurrence": 1,
- "classification": "classic",
- "reason": "Legacy memory layout migration host retains its checkpoint and claim state through the existing file-state adapter; engine migration and checkpoint routing are separate obligations.",
- "issue": "https://github.com/tinyhumansai/openhuman/issues/7427"
- },
{
"rule": "file-mutation",
"path": "crates/openhuman-core/src/memory/layout_migration/claim.rs",
@@ -519,26 +479,6 @@
"reason": "Owner-only atomic encrypted-secret/bootstrap file helper; native SecretStore and machine master-key policy have separate admission.",
"issue": "https://github.com/tinyhumansai/openhuman/issues/7421"
},
- {
- "rule": "file-mutation",
- "path": "crates/openhuman-core/src/threads/welcome_migration.rs",
- "line": 310,
- "text": "fs::rename(path, destination).map_err(|e| {",
- "occurrence": 1,
- "classification": "classic",
- "reason": "Explicit legacy welcome-thread file relocation; native thread metadata/streams do not grant historical import ownership.",
- "issue": "https://github.com/tinyhumansai/openhuman/issues/7424"
- },
- {
- "rule": "file-mutation",
- "path": "crates/openhuman-core/src/threads/welcome_migration.rs",
- "line": 366,
- "text": "if let Err(err) = fs::rename(&old_path, &new_path) {",
- "occurrence": 1,
- "classification": "classic",
- "reason": "Explicit legacy welcome-thread file relocation; native thread metadata/streams do not grant historical import ownership.",
- "issue": "https://github.com/tinyhumansai/openhuman/issues/7424"
- },
{
"rule": "file-mutation",
"path": "crates/openhuman-core/src/tinymemes/docs.rs",
diff --git a/scripts/ci/storage-bypass.md b/scripts/ci/storage-bypass.md
index bfb69a9b56..bf00ba484a 100644
--- a/scripts/ci/storage-bypass.md
+++ b/scripts/ci/storage-bypass.md
@@ -15,13 +15,12 @@ scanning only the core directory.
## Exact inventories
-`storage-bypass-baseline.json` retains **57** original core rule identities,
-byte-for-byte identical to canonical main. This PR does not increase or replace
-that baseline. Regeneration requires an existing baseline, refuses new findings,
-and can only remove fixed sites. Canonical merge-base validation also rejects
-baseline growth.
+`storage-bypass-baseline.json` contains **54** remaining original core rule
+identities after deleting stale and retired entries. Regeneration requires an
+existing baseline, refuses new findings, and can only remove fixed sites.
+Canonical merge-base validation also rejects baseline growth.
-`storage-bypass-extension.json` establishes **67** reviewed identities for the
+`storage-bypass-extension.json` contains **61** reviewed identities for the
broader coverage. Each records its rule, path, source line, occurrence,
classification, reason, and owning issue. These are identities, not independent
stores or completed migrations. The initial extension must already exist at the