The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
Remove obsolete harness initialization flow
Steven Enamakel29bd03fc4577
diff --git a/app/src/App.tsx b/app/src/App.tsxindex 421ccb209c..6dc0e61a1e 100644--- a/app/src/App.tsx+++ b/app/src/App.tsx@@ -19,7 +19,6 @@ import CommandProvider from './components/commands/CommandProvider';import ServiceBlockingGate from './components/daemon/ServiceBlockingGate';import DictationHotkeyManager from './components/DictationHotkeyManager';import ErrorFallbackScreen from './components/ErrorFallbackScreen';-import HarnessInitOverlay from './components/InitProgressScreen/HarnessInitOverlay';import KeyringConsentOverlay from './components/keyring/KeyringConsentOverlay';import AppSidebar from './components/layout/shell/AppSidebar';import RootShellLayout from './components/layout/shell/RootShellLayout';@@ -151,7 +150,6 @@ function App() {{!onMobile && <PttHotkeyManager />}{!onMobile && <AppUpdatePrompt />}<KeyringConsentOverlay />- <HarnessInitOverlay /><AnnouncementGate /></ServiceBlockingGate></CommandProvider>diff --git a/app/src/components/InitProgressScreen/HarnessInitOverlay.test.tsx b/app/src/components/InitProgressScreen/HarnessInitOverlay.test.tsxdeleted file mode 100644index 964bdaaca8..0000000000--- a/app/src/components/InitProgressScreen/HarnessInitOverlay.test.tsx+++ /dev/null@@ -1,227 +0,0 @@-import { act, fireEvent, screen, waitFor } from '@testing-library/react';-import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';--import { CoreRpcError } from '../../services/coreRpcClient';-import type { HarnessInitSnapshot } from '../../services/harnessInitService';-import { renderWithProviders } from '../../test/test-utils';-// Imported after the mock is registered.-import HarnessInitOverlay from './HarnessInitOverlay';--// The overlay polls the service; drive it with a controllable mock.-const fetchHarnessInitStatus = vi.fn<() => Promise<HarnessInitSnapshot | null>>();-const runHarnessInit = vi.fn<(force?: boolean) => Promise<HarnessInitSnapshot | null>>();--vi.mock('../../services/harnessInitService', () => ({- fetchHarnessInitStatus: () => fetchHarnessInitStatus(),- runHarnessInit: (force?: boolean) => runHarnessInit(force),-}));--function snapshot(overrides: Partial<HarnessInitSnapshot> = {}): HarnessInitSnapshot {- return {- overall: 'running',- startedAt: '2026-07-20T00:00:00Z',- finishedAt: null,- steps: [- {- id: 'python_runtime',- label: 'Python runtime',- required: false,- state: 'running',- message: null,- percent: null,- updatedAt: null,- },- ],- ...overrides,- };-}--beforeEach(() => {- fetchHarnessInitStatus.mockReset();- runHarnessInit.mockReset();- window.sessionStorage.clear();-});--afterEach(() => {- vi.restoreAllMocks();- vi.useRealTimers();-});--describe('HarnessInitOverlay', () => {- it('renders nothing on a warm start (already done)', async () => {- fetchHarnessInitStatus.mockResolvedValue(snapshot({ overall: 'done', startedAt: 'warm-run' }));-- const { container } = renderWithProviders(<HarnessInitOverlay />);-- await waitFor(() => expect(fetchHarnessInitStatus).toHaveBeenCalled());- expect(screen.queryByText('Run in background')).not.toBeInTheDocument();- expect(container).toBeEmptyDOMElement();- });-- it('shows the blocking overlay while a provisioning run is in progress', async () => {- fetchHarnessInitStatus.mockResolvedValue(snapshot({ startedAt: 'cold-run' }));-- renderWithProviders(<HarnessInitOverlay />);-- expect(await screen.findByText('Run in background')).toBeInTheDocument();- });-- it('keeps the overlay dismissed across a remount for the same run (GH-5047)', async () => {- const run = snapshot({ startedAt: 'same-run' });- fetchHarnessInitStatus.mockResolvedValue(run);-- const first = renderWithProviders(<HarnessInitOverlay />);- fireEvent.click(await screen.findByText('Run in background'));- await waitFor(() => expect(screen.queryByText('Run in background')).not.toBeInTheDocument());- first.unmount();-- // Remount while the same run is still in progress — it must not reopen.- const second = renderWithProviders(<HarnessInitOverlay />);- await waitFor(() => expect(fetchHarnessInitStatus).toHaveBeenCalled());- // Give any pending poll a chance to (wrongly) re-render the overlay.- await Promise.resolve();- expect(screen.queryByText('Run in background')).not.toBeInTheDocument();- expect(second.container).toBeEmptyDOMElement();- });-- it('coalesces overlapping status polls into one RPC (StrictMode double-mount)', async () => {- // Hold the fetch pending so both mounts' immediate polls overlap.- let resolveFetch: (snap: HarnessInitSnapshot) => void = () => {};- fetchHarnessInitStatus.mockImplementation(- () =>- new Promise<HarnessInitSnapshot>(resolve => {- resolveFetch = resolve;- })- );-- // Two concurrent overlays stand in for the effect→cleanup→effect double-mount.- renderWithProviders(<HarnessInitOverlay />);- renderWithProviders(<HarnessInitOverlay />);-- // Both immediate polls should share a single in-flight request.- expect(fetchHarnessInitStatus).toHaveBeenCalledTimes(1);-- resolveFetch(snapshot({ overall: 'done', startedAt: 'warm-run' }));- await waitFor(() => expect(screen.queryByText('Run in background')).not.toBeInTheDocument());- });-- it('reopens for a genuinely new provisioning run after a prior dismissal', async () => {- // Dismiss the first run.- fetchHarnessInitStatus.mockResolvedValue(snapshot({ startedAt: 'run-1' }));- const first = renderWithProviders(<HarnessInitOverlay />);- fireEvent.click(await screen.findByText('Run in background'));- await waitFor(() => expect(screen.queryByText('Run in background')).not.toBeInTheDocument());- first.unmount();-- // A new run (fresh startedAt) is allowed to surface again.- fetchHarnessInitStatus.mockResolvedValue(snapshot({ startedAt: 'run-2' }));- renderWithProviders(<HarnessInitOverlay />);- expect(await screen.findByText('Run in background')).toBeInTheDocument();- });-- // --- #5157: the poll loop must be bounded -------------------------------- //- // Before the fix, *any* status failure rescheduled the poll unconditionally- // every 2s for the life of the window. Against a core that never serves the- // method that was a permanent 30-calls-per-minute loop, and since the core- // records each miss it produced ~9k Sentry events/day from one client.-- it('stops polling when the core does not expose harness_init_status (#5157)', async () => {- vi.useFakeTimers();- fetchHarnessInitStatus.mockRejectedValue(- new CoreRpcError('unknown method: openhuman.harness_init_status', 'method_not_found')- );-- const { container } = renderWithProviders(<HarnessInitOverlay />);-- // Let the immediate poll settle, then run well past many poll intervals.- await vi.advanceTimersByTimeAsync(0);- expect(fetchHarnessInitStatus).toHaveBeenCalledTimes(1);-- await vi.advanceTimersByTimeAsync(120_000);-- // Permanently absent ⇒ exactly one attempt, ever. No retry, no overlay.- expect(fetchHarnessInitStatus).toHaveBeenCalledTimes(1);- expect(container).toBeEmptyDOMElement();- });-- it('gives up after a bounded number of consecutive transient failures (#5157)', async () => {- vi.useFakeTimers();- // A persistent non-method-not-found fault (core wedged, transport down).- fetchHarnessInitStatus.mockRejectedValue(new Error('error sending request for url'));-- renderWithProviders(<HarnessInitOverlay />);-- // 5 attempts, backing off 2s → 4s → 8s → 16s between them (30s total).- await vi.advanceTimersByTimeAsync(120_000);- expect(fetchHarnessInitStatus).toHaveBeenCalledTimes(5);-- // And it stays stopped rather than resuming later.- await vi.advanceTimersByTimeAsync(600_000);- expect(fetchHarnessInitStatus).toHaveBeenCalledTimes(5);- });-- // Review follow-up on #5157: the failure cap must not strand the *blocking*- // overlay. If the core has a transient outage that outlasts the budget while- // a `running` snapshot is on screen, giving up would pin the app behind stale- // progress for the rest of the session — the pre-#5157 loop recovered from- // exactly that. The cap still applies when nothing blocking is displayed- // (covered by the give-up test above); here the loop drops to a slow cadence- // instead of stopping.- it('keeps watching a running overlay through an outage longer than the failure budget', async () => {- vi.useFakeTimers();- fetchHarnessInitStatus- // A provisioning run is live — the overlay is now blocking the app.- .mockResolvedValueOnce(snapshot({ startedAt: 'stall-run' }))- // The core drops out for well past MAX_TRANSIENT_FAILURES attempts.- .mockRejectedValueOnce(new Error('error sending request for url'))- .mockRejectedValueOnce(new Error('error sending request for url'))- .mockRejectedValueOnce(new Error('error sending request for url'))- .mockRejectedValueOnce(new Error('error sending request for url'))- .mockRejectedValueOnce(new Error('error sending request for url'))- .mockRejectedValueOnce(new Error('error sending request for url'))- .mockRejectedValueOnce(new Error('error sending request for url'))- .mockRejectedValueOnce(new Error('error sending request for url'))- // ...and then comes back, having finished the run.- .mockResolvedValue(- snapshot({ overall: 'done', startedAt: 'stall-run', finishedAt: '2026-07-20T00:05:00Z' })- );-- renderWithProviders(<HarnessInitOverlay />);-- await act(async () => {- await vi.advanceTimersByTimeAsync(0);- });- expect(screen.getByText('Run in background')).toBeInTheDocument();-- await act(async () => {- await vi.advanceTimersByTimeAsync(300_000);- });-- // It kept polling past the 5-attempt cap instead of freezing...- expect(fetchHarnessInitStatus.mock.calls.length).toBeGreaterThan(6);- // ...so the recovered core's terminal snapshot was observed and the- // blocking overlay cleared itself. (Asserted directly rather than through- // `waitFor`, which would wait on real timers while fake ones are installed.)- expect(screen.queryByText('Run in background')).not.toBeInTheDocument();- });-- it('keeps polling after a transient failure while the core is still booting', async () => {- vi.useFakeTimers();- // The legitimate cold-start case the retry exists for: fail once, then the- // core comes up. The failure budget must reset on success, not leak.- fetchHarnessInitStatus- .mockRejectedValueOnce(new Error('error sending request for url'))- .mockResolvedValue(snapshot({ startedAt: 'cold-run' }));-- renderWithProviders(<HarnessInitOverlay />);-- await act(async () => {- await vi.advanceTimersByTimeAsync(2_000);- });-- // Retried once and recovered — the overlay renders the live run.- expect(fetchHarnessInitStatus).toHaveBeenCalledTimes(2);- expect(screen.getByText('Run in background')).toBeInTheDocument();- });-});diff --git a/app/src/components/InitProgressScreen/HarnessInitOverlay.tsx b/app/src/components/InitProgressScreen/HarnessInitOverlay.tsxdeleted file mode 100644index 3adf19506e..0000000000--- a/app/src/components/InitProgressScreen/HarnessInitOverlay.tsx+++ /dev/null@@ -1,302 +0,0 @@-import debugFactory from 'debug';-import { useCallback, useEffect, useRef, useState } from 'react';--import { isMethodNotFoundCoreRpcError } from '../../services/coreRpcClient';-import {- fetchHarnessInitStatus,- type HarnessInitSnapshot,- runHarnessInit,-} from '../../services/harnessInitService';-import InitProgressScreen from './InitProgressScreen';--const log = debugFactory('harness-init');--const POLL_MS = 2000;--// A status poll can legitimately fail while the core is still coming up, so a-// failure is retried. But the retry must be *bounded*: before #5157 any failure-// rescheduled the poll unconditionally every 2s for the life of the window. A-// core that never serves this method (version skew / domain-gated build) turned-// that into a permanent 30-calls-per-minute loop, and because each miss is-// recorded core-side it produced ~9k Sentry events/day from a single client.-//-// Two guards now bound it:-// - a permanent failure (`method_not_found`) stops the loop immediately —-// retrying an absent method can never succeed;-// - any other failure gets a capped number of attempts with exponential-// backoff, so even an unforeseen persistent fault decays and stops.-const MAX_TRANSIENT_FAILURES = 5;-const MAX_BACKOFF_MS = 30_000;--// Exhausting the retries must not strand a *blocking* overlay on stale-// progress. While a `running` snapshot is on screen the UI is covering the app-// and waiting for a terminal snapshot, so a transient outage (brief core-// overload, network blip) that outlasts the cap has to stay watchable — giving-// up there would freeze the overlay on a half-finished run until the user hits-// "Run in background", and the pre-#5157 loop did recover from exactly that.-//-// So the cap still applies whenever nothing blocking is displayed (the #5157-// case: a core that never serves this method, with no UI on screen), and-// otherwise the loop drops to this much slower cadence instead of stopping.-// 2 calls/min is 15x below the runaway loop #5157 fixed, and only ever runs-// while a blocking overlay is actually up.-const STALLED_POLL_MS = MAX_BACKOFF_MS;--/** Backoff for the Nth consecutive transient failure (1-based), capped. */-function transientRetryDelayMs(consecutiveFailures: number): number {- return Math.min(POLL_MS * 2 ** (consecutiveFailures - 1), MAX_BACKOFF_MS);-}--/**- * Whether this snapshot puts the blocking overlay on screen. `running` is also- * the only non-terminal blocking state, so it is what the poll loop must keep- * watching for a terminal result.- */-function isBlockingSnapshot(snapshot: HarnessInitSnapshot): boolean {- return snapshot.overall === 'running' || snapshot.overall === 'failed';-}--// Persist the "Run in background" dismissal for the *current* provisioning run-// so a remount or reload does not reopen the overlay (GH-5047). A run is keyed-// by its `startedAt` timestamp — a genuinely new provisioning run gets a fresh-// timestamp and is allowed to surface again. `sessionStorage` survives a-// renderer reload within the same window; a module-level mirror covers plain-// React remounts even if storage is unavailable.-const DISMISS_KEY = 'harness-init-dismissed-run';-// Runs before `startedAt` is stamped (or when it is absent) still need a stable-// key so an early dismissal sticks.-const UNKEYED_RUN = 'pending';--let dismissedRunMirror: string | null = null;--// Coalesce overlapping status polls onto a single in-flight request. React-// StrictMode double-mounts this overlay in dev (effect → cleanup → effect),-// and each setup fires an immediate poll — without this that boots two-// `harness_init_status` RPCs at the same instant. Concurrent callers share the-// in-flight promise; it clears once settled, so the ongoing (sequential) poll-// loop is unaffected. Also guards any genuine remount during the boot window.-let inflightStatusFetch: Promise<HarnessInitSnapshot | null> | null = null;--function fetchHarnessInitStatusCoalesced(): Promise<HarnessInitSnapshot | null> {- if (inflightStatusFetch) {- log('status poll: joining in-flight request (coalesced)');- return inflightStatusFetch;- }- log('status poll: dispatching harness_init_status');- const pending = fetchHarnessInitStatus().finally(() => {- if (inflightStatusFetch === pending) {- inflightStatusFetch = null;- log('status poll: in-flight request settled, cache cleared');- }- });- inflightStatusFetch = pending;- return pending;-}--function runKey(snapshot: HarnessInitSnapshot | null): string {- return snapshot?.startedAt ?? UNKEYED_RUN;-}--function readDismissedRun(): string | null {- if (dismissedRunMirror !== null) {- return dismissedRunMirror;- }- try {- return window.sessionStorage.getItem(DISMISS_KEY);- } catch {- log('sessionStorage read failed; treating run as not dismissed');- return null;- }-}--function writeDismissedRun(key: string): void {- dismissedRunMirror = key;- try {- window.sessionStorage.setItem(DISMISS_KEY, key);- log('dismissed run persisted to sessionStorage: %s', key);- } catch {- // Non-fatal: the module-level mirror still guards remounts this session.- log('sessionStorage unavailable; dismissed run %s held in module mirror only', key);- }-}--function isRunDismissed(snapshot: HarnessInitSnapshot | null): boolean {- return readDismissedRun() === runKey(snapshot);-}--/**- * Blocking first-run initialization gate.- *- * Polls `openhuman.harness_init_status` and, while the run is in progress,- * covers the app with a full-screen overlay showing per-step progress. The- * overlay offers a "Run in background" action so the user can dismiss it and- * keep working while setup continues — the core runs init as a background task- * regardless of whether the overlay is shown. On a warm host every step is- * already provisioned, so the snapshot reports `done` on the first poll and- * this renders nothing. On a terminal `failed` it offers Retry / Continue —- * failures are non-fatal (the core degrades to a fallback).- *- * Polling-based (not socket) to sidestep the cold-start race where the socket- * is not yet connected when init begins.- */-export default function HarnessInitOverlay() {- const [snapshot, setSnapshot] = useState<HarnessInitSnapshot | null>(null);- const [dismissed, setDismissed] = useState(false);- const [retrying, setRetrying] = useState(false);- const cancelledRef = useRef(false);- // Mirrors `dismissed` so the poll loop can stop without re-running the effect.- const dismissedRef = useRef(false);- // Mirrors "a blocking overlay is currently on screen, still waiting on a- // terminal snapshot", so the failure branch can tell a stranded user from a- // silent background loop without re-running the effect.- const awaitingTerminalRef = useRef(false);-- useEffect(() => {- cancelledRef.current = false;- let timeoutId: number | null = null;-- let consecutiveFailures = 0;-- const poll = async () => {- let retryDelayMs = POLL_MS;- try {- const next = await fetchHarnessInitStatusCoalesced();- if (cancelledRef.current || dismissedRef.current) {- return;- }- consecutiveFailures = 0;- if (next) {- setSnapshot(next);- awaitingTerminalRef.current = next.overall === 'running';- // If this run was already dismissed to the background (possibly in a- // prior mount / before a reload), stay hidden and stop polling —- // don't let a remount reopen the overlay (GH-5047).- if (isRunDismissed(next)) {- log(- 'warm poll: run %s already dismissed — staying hidden, stopping poll',- runKey(next)- );- dismissedRef.current = true;- setDismissed(true);- return;- }- // Stop polling once the run is terminal; a `failed` snapshot stays- // on screen (with Retry) but does not need further polling.- if (next.overall === 'done' || next.overall === 'failed') {- return;- }- }- } catch (err) {- if (cancelledRef.current || dismissedRef.current) {- return;- }- // The running core has no `harness_init_status` at all (version skew,- // domain-gated or slim build). Permanent — stop, and render nothing.- // There is no init run to report, so there is nothing to show (#5157).- if (isMethodNotFoundCoreRpcError(err)) {- log('status poll: core does not expose harness_init_status — stopping poll');- return;- }- consecutiveFailures += 1;- // Status can fail while the core is still coming up — keep polling, but- // only for a bounded number of attempts, backing off between each.- if (consecutiveFailures >= MAX_TRANSIENT_FAILURES) {- // Nothing blocking on screen: this is the #5157 runaway loop, stop.- if (!awaitingTerminalRef.current) {- log(- 'status poll failed %d consecutive times — giving up: %O',- consecutiveFailures,- err- );- return;- }- // A `running` overlay is covering the app. Stopping here would pin it- // to stale progress for the rest of the session even after the core- // recovers, so keep watching at a much slower cadence instead.- retryDelayMs = STALLED_POLL_MS;- log(- 'status poll failed %d consecutive times but a running overlay is on screen — ' +- 'continuing at %dms: %O',- consecutiveFailures,- retryDelayMs,- err- );- } else {- retryDelayMs = transientRetryDelayMs(consecutiveFailures);- log(- 'status poll failed (attempt %d/%d), retrying in %dms: %O',- consecutiveFailures,- MAX_TRANSIENT_FAILURES,- retryDelayMs,- err- );- }- }- if (!cancelledRef.current && !dismissedRef.current) {- timeoutId = window.setTimeout(() => void poll(), retryDelayMs);- }- };-- void poll();-- return () => {- cancelledRef.current = true;- if (timeoutId !== null) {- window.clearTimeout(timeoutId);- }- };- }, []);-- const handleRetry = useCallback(async () => {- setRetrying(true);- try {- const next = await runHarnessInit(false);- if (next) {- setSnapshot(next);- }- } catch (err) {- log('retry failed: %O', err);- } finally {- setRetrying(false);- }- }, []);-- const handleContinue = useCallback(() => {- // Hide the overlay and stop polling; the core keeps running init as a- // background task regardless. Persist the dismissal for this run so a- // remount/reload does not reopen it (GH-5047).- log('user dismissed overlay to background for run %s', runKey(snapshot));- writeDismissedRun(runKey(snapshot));- dismissedRef.current = true;- // Nothing is blocking any more, so a later failure must not keep the slow- // watch alive. (`dismissedRef` already stops the loop; this keeps the two- // flags from disagreeing.)- awaitingTerminalRef.current = false;- setDismissed(true);- }, [snapshot]);-- if (dismissed || !snapshot) {- return null;- }-- // A run dismissed to the background stays hidden across remounts.- if (isRunDismissed(snapshot)) {- return null;- }-- // Block only while a run is actively in progress, or hold a failed run on- // screen until the user explicitly continues. `idle` (no run started yet)- // and `done` never block.- if (!isBlockingSnapshot(snapshot)) {- return null;- }-- return (- <InitProgressScreen- snapshot={snapshot}- onRetry={handleRetry}- onContinue={handleContinue}- retrying={retrying}- />- );-}diff --git a/app/src/components/InitProgressScreen/InitProgressScreen.test.tsx b/app/src/components/InitProgressScreen/InitProgressScreen.test.tsxdeleted file mode 100644index fa1abd7151..0000000000--- a/app/src/components/InitProgressScreen/InitProgressScreen.test.tsx+++ /dev/null@@ -1,106 +0,0 @@-import { fireEvent, screen } from '@testing-library/react';-import { describe, expect, it, vi } from 'vitest';--import type { HarnessInitSnapshot } from '../../services/harnessInitService';-import { renderWithProviders } from '../../test/test-utils';-import InitProgressScreen from './InitProgressScreen';--function snapshot(overrides: Partial<HarnessInitSnapshot> = {}): HarnessInitSnapshot {- return {- overall: 'running',- startedAt: null,- finishedAt: null,- steps: [- {- id: 'python_runtime',- label: 'Python runtime',- required: false,- state: 'done',- message: null,- percent: 100,- updatedAt: null,- },- {- id: 'kompress',- label: 'Compression runtime',- required: false,- state: 'running',- message: null,- percent: null,- updatedAt: null,- },- {- id: 'node_runtime',- label: 'Node.js runtime',- required: false,- state: 'pending',- message: null,- percent: null,- updatedAt: null,- },- ],- ...overrides,- };-}--describe('InitProgressScreen', () => {- it('renders each step with its localized label and state', () => {- renderWithProviders(- <InitProgressScreen snapshot={snapshot()} onRetry={vi.fn()} onContinue={vi.fn()} />- );-- expect(screen.getByText('Python runtime')).toBeInTheDocument();- expect(screen.getByText('Compression runtime')).toBeInTheDocument();- expect(screen.getByText('Node.js runtime')).toBeInTheDocument();- expect(screen.getByText('Ready')).toBeInTheDocument();- expect(screen.getByText('Installing…')).toBeInTheDocument();- expect(screen.getByText('Waiting')).toBeInTheDocument();- // No failure actions while running.- expect(screen.queryByText('Retry')).not.toBeInTheDocument();- });-- it('offers a Run in background action while running', () => {- const onContinue = vi.fn();- renderWithProviders(- <InitProgressScreen snapshot={snapshot()} onRetry={vi.fn()} onContinue={onContinue} />- );-- expect(screen.getByTestId('harness-init-background')).toBeInTheDocument();- expect(screen.queryByTestId('harness-init-continue-anyway')).not.toBeInTheDocument();- fireEvent.click(screen.getByText('Run in background'));- expect(onContinue).toHaveBeenCalledTimes(1);- });-- it('shows the failing message and Retry / Continue on a failed run', () => {- const onRetry = vi.fn();- const onContinue = vi.fn();- const failed = snapshot({- overall: 'failed',- steps: [- {- id: 'kompress',- label: 'Compression runtime',- required: false,- state: 'failed',- message: 'pip install timed out',- percent: null,- updatedAt: null,- },- ],- });-- renderWithProviders(- <InitProgressScreen snapshot={failed} onRetry={onRetry} onContinue={onContinue} />- );-- expect(screen.getByText('pip install timed out')).toBeInTheDocument();- expect(screen.getByTestId('harness-init-continue-anyway')).toBeInTheDocument();- expect(screen.queryByTestId('harness-init-background')).not.toBeInTheDocument();-- fireEvent.click(screen.getByText('Retry'));- expect(onRetry).toHaveBeenCalledTimes(1);-- fireEvent.click(screen.getByText('Continue anyway'));- expect(onContinue).toHaveBeenCalledTimes(1);- });-});diff --git a/app/src/components/InitProgressScreen/InitProgressScreen.tsx b/app/src/components/InitProgressScreen/InitProgressScreen.tsxdeleted file mode 100644index f9aed711db..0000000000--- a/app/src/components/InitProgressScreen/InitProgressScreen.tsx+++ /dev/null@@ -1,145 +0,0 @@-import { useT } from '../../lib/i18n/I18nContext';-import type { HarnessInitSnapshot, HarnessInitStep } from '../../services/harnessInitService';-import { CheckIcon, CloseIcon, Spinner } from '../ui/icons';--/** Map a known step id to its i18n label key; fall back to the server label. */-function stepLabel(t: (key: string) => string, step: HarnessInitStep): string {- switch (step.id) {- case 'python_runtime':- return t('harnessInit.stepPython');- case 'node_runtime':- return t('harnessInit.stepNode');- default:- return step.label;- }-}--function StepRow({ step }: { step: HarnessInitStep }) {- const { t } = useT();- const label = stepLabel(t, step);-- let icon: React.ReactNode;- let stateText: string;- switch (step.state) {- case 'running':- icon = <Spinner className="h-4 w-4 text-primary-500" />;- stateText = t('harnessInit.stateRunning');- break;- case 'done':- icon = <CheckIcon className="h-4 w-4 text-sage-500" />;- stateText = t('harnessInit.stateDone');- break;- case 'failed':- icon = <CloseIcon className="h-4 w-4 text-coral-400" />;- stateText = t('harnessInit.stateFailed');- break;- case 'skipped':- icon = <CloseIcon className="h-4 w-4 text-amber-400" />;- stateText = t('harnessInit.stateSkipped');- break;- case 'pending':- default:- icon = <span className="block h-2 w-2 rounded-full bg-stone-500/60" />;- stateText = t('harnessInit.statePending');- break;- }-- return (- <li className="flex items-center gap-3 py-2">- <span className="flex h-5 w-5 items-center justify-center" aria-hidden>- {icon}- </span>- <span className="flex-1 text-sm text-stone-200">{label}</span>- <span className="text-xs text-content-faint">{stateText}</span>- </li>- );-}--interface InitProgressScreenProps {- snapshot: HarnessInitSnapshot;- onRetry: () => void;- onContinue: () => void;- retrying?: boolean;-}--/**- * Presentational first-run initialization screen. Renders the step list with- * per-step status. On a terminal `failed` overall it surfaces the failing step- * and offers Retry / Continue (failures are non-fatal — the app degrades to a- * fallback).- */-export default function InitProgressScreen({- snapshot,- onRetry,- onContinue,- retrying = false,-}: InitProgressScreenProps) {- const { t } = useT();- const failed = snapshot.overall === 'failed';- const failedStep = snapshot.steps.find(s => s.state === 'failed');-- return (- <div className="fixed inset-0 z-9999 flex items-center justify-center bg-stone-950/90 p-4 backdrop-blur-sm">- <div- role="dialog"- data-testid="harness-init-dialog"- aria-modal="true"- aria-labelledby="harness-init-title"- className="w-full max-w-md rounded-2xl border border-stone-700/60 bg-stone-900 p-6 shadow-2xl">- <h2 id="harness-init-title" className="text-lg font-semibold text-white">- {t('harnessInit.title')}- </h2>- <p className="mt-1 text-sm text-content-faint">{t('harnessInit.subtitle')}</p>-- <ul className="mt-5 divide-y divide-stone-800">- {snapshot.steps.map(step => (- <StepRow key={step.id} step={step} />- ))}- </ul>-- {!failed && (- <div className="mt-5 flex items-center justify-between gap-3">- <p className="text-xs text-content-muted">{t('harnessInit.backgroundHint')}</p>- <button- type="button"- data-testid="harness-init-background"- onClick={onContinue}- className="shrink-0 rounded-lg border border-stone-700 px-3 py-1.5 text-sm text-content-faint hover:bg-stone-800 hover:text-white">- {t('harnessInit.runInBackground')}- </button>- </div>- )}-- {failed && (- <div className="mt-5">- <div className="rounded-xl border border-coral-500/20 bg-coral-500/10 p-3">- <p className="text-xs text-coral-300">{t('harnessInit.failedMessage')}</p>- {failedStep?.message && (- <p className="mt-1 wrap-break-word text-[11px] text-coral-400/80">- {failedStep.message}- </p>- )}- </div>- <div className="mt-4 flex justify-end gap-2">- <button- type="button"- data-testid="harness-init-continue-anyway"- onClick={onContinue}- className="rounded-lg px-3 py-1.5 text-sm text-content-faint hover:text-white">- {t('harnessInit.continueAnyway')}- </button>- <button- type="button"- onClick={onRetry}- disabled={retrying}- className="inline-flex items-center gap-2 rounded-lg bg-primary-500 px-3 py-1.5 text-sm font-medium text-content-inverted hover:bg-primary-500/90 disabled:opacity-60">- {retrying && <Spinner className="h-3 w-3" />}- {t('harnessInit.retry')}- </button>- </div>- </div>- )}- </div>- </div>- );-}diff --git a/app/src/lib/i18n/ar.ts b/app/src/lib/i18n/ar.tsindex c6ff272486..96a579ab29 100644--- a/app/src/lib/i18n/ar.ts+++ b/app/src/lib/i18n/ar.ts@@ -3324,23 +3324,7 @@ const messages: TranslationMap = {'إجراءات قابلة لإعادة الاستخدام والتشغيل: هدف مع الخطوات للوصول إليه.','activity.tabs.alerts': 'التنبيهات',- 'harnessInit.title': 'جارٍ الإعداد',-'announcement.gotIt': 'حسناً',- 'harnessInit.subtitle': 'يقوم OpenHuman بتجهيز المكونات التي يحتاجها عند التشغيل الأول.',- 'harnessInit.stepPython': 'بيئة تشغيل Python',- 'harnessInit.stepNode': 'بيئة تشغيل Node.js',- 'harnessInit.statePending': 'في الانتظار',- 'harnessInit.stateRunning': 'جارٍ التثبيت…',- 'harnessInit.stateDone': 'جاهز',- 'harnessInit.stateSkipped': 'تم التخطي',- 'harnessInit.stateFailed': 'فشل',- 'harnessInit.failedMessage':- 'لم تكتمل بعض خطوات الإعداد. يمكنك إعادة المحاولة أو المتابعة: سيستخدم OpenHuman بديلاً مدمجاً.',- 'harnessInit.retry': 'إعادة المحاولة',- 'harnessInit.continueAnyway': 'المتابعة على أي حال',- 'harnessInit.runInBackground': 'التشغيل في الخلفية',- 'harnessInit.backgroundHint': 'يمكنك مواصلة استخدام OpenHuman حتى ينتهي هذا.','keyring.consent.title': 'التخزين الآمن غير متاح','keyring.consent.description':diff --git a/app/src/lib/i18n/bn.ts b/app/src/lib/i18n/bn.tsindex fab6da5b24..7c416c11ea 100644--- a/app/src/lib/i18n/bn.ts+++ b/app/src/lib/i18n/bn.ts@@ -3394,23 +3394,7 @@ const messages: TranslationMap = {'activity.tabs.alerts': 'সতর্কতা',// Keyring consent & security- 'harnessInit.title': 'সেটআপ করা হচ্ছে','announcement.gotIt': 'বুঝেছি',- 'harnessInit.subtitle': 'প্রথম চালুর সময় OpenHuman প্রয়োজনীয় উপাদানগুলো প্রস্তুত করছে।',- 'harnessInit.stepPython': 'Python রানটাইম',- 'harnessInit.stepNode': 'Node.js রানটাইম',- 'harnessInit.statePending': 'অপেক্ষমাণ',- 'harnessInit.stateRunning': 'ইনস্টল করা হচ্ছে…',- 'harnessInit.stateDone': 'প্রস্তুত',- 'harnessInit.stateSkipped': 'এড়িয়ে যাওয়া হয়েছে',- 'harnessInit.stateFailed': 'ব্যর্থ',- 'harnessInit.failedMessage':- 'কিছু সেটআপ ধাপ সম্পন্ন হয়নি। আপনি পুনরায় চেষ্টা করতে পারেন, অথবা চালিয়ে যেতে পারেন: OpenHuman একটি অন্তর্নির্মিত ফলব্যাক ব্যবহার করবে।',- 'harnessInit.retry': 'পুনরায় চেষ্টা করুন',- 'harnessInit.continueAnyway': 'তবুও চালিয়ে যান',- 'harnessInit.runInBackground': 'ব্যাকগ্রাউন্ডে চালান',- 'harnessInit.backgroundHint':- 'এটি শেষ হওয়া পর্যন্ত আপনি OpenHuman ব্যবহার করা চালিয়ে যেতে পারেন।','keyring.consent.title': 'নিরাপদ সঞ্চয়স্থান অনুপলব্ধ','keyring.consent.description':diff --git a/app/src/lib/i18n/de.ts b/app/src/lib/i18n/de.tsindex 6a9b915439..5849b27410 100644--- a/app/src/lib/i18n/de.ts+++ b/app/src/lib/i18n/de.ts@@ -3495,24 +3495,7 @@ const messages: TranslationMap = {'Wiederverwendbare, ausführbare Abläufe: ein Ziel und die Schritte dorthin.','activity.tabs.alerts': 'Benachrichtigungen',- 'harnessInit.title': 'Einrichtung läuft',-'announcement.gotIt': 'Verstanden',- 'harnessInit.subtitle': 'OpenHuman bereitet beim ersten Start benötigte Komponenten vor.',- 'harnessInit.stepPython': 'Python-Laufzeitumgebung',- 'harnessInit.stepNode': 'Node.js-Laufzeitumgebung',- 'harnessInit.statePending': 'Wartet',- 'harnessInit.stateRunning': 'Wird installiert…',- 'harnessInit.stateDone': 'Bereit',- 'harnessInit.stateSkipped': 'Übersprungen',- 'harnessInit.stateFailed': 'Fehlgeschlagen',- 'harnessInit.failedMessage':- 'Einige Einrichtungsschritte wurden nicht abgeschlossen. Du kannst es erneut versuchen oder fortfahren: OpenHuman verwendet dann eine integrierte Ausweichlösung.',- 'harnessInit.retry': 'Erneut versuchen',- 'harnessInit.continueAnyway': 'Trotzdem fortfahren',- 'harnessInit.runInBackground': 'Im Hintergrund ausführen',- 'harnessInit.backgroundHint':- 'Du kannst OpenHuman weiter verwenden, während dies abgeschlossen wird.','keyring.consent.title': 'Sicherer Speicher nicht verfügbar','keyring.consent.description':diff --git a/app/src/lib/i18n/en.ts b/app/src/lib/i18n/en.tsindex 9bb9671237..c18796b728 100644--- a/app/src/lib/i18n/en.ts+++ b/app/src/lib/i18n/en.ts@@ -3958,24 +3958,7 @@ const en: TranslationMap = {'chat.files.error.delete_failed': 'Couldn’t delete the file. Please try again.','chat.files.error.reveal_failed':'Couldn’t show the file. It may have been moved or deleted outside OpenHuman.',-- // First-run initialization (harness_init)- 'harnessInit.title': 'Setting things up','announcement.gotIt': 'Got it',- 'harnessInit.subtitle': 'OpenHuman is preparing components it needs on first launch.',- 'harnessInit.stepPython': 'Python runtime',- 'harnessInit.stepNode': 'Node.js runtime',- 'harnessInit.statePending': 'Waiting',- 'harnessInit.stateRunning': 'Installing…',- 'harnessInit.stateDone': 'Ready',- 'harnessInit.stateSkipped': 'Skipped',- 'harnessInit.stateFailed': 'Failed',- 'harnessInit.failedMessage':- 'Some setup steps did not finish. You can retry, or continue: OpenHuman will use a built-in fallback.',- 'harnessInit.retry': 'Retry',- 'harnessInit.continueAnyway': 'Continue anyway',- 'harnessInit.runInBackground': 'Run in background',- 'harnessInit.backgroundHint': 'You can keep using OpenHuman while this finishes.',// Keyring consent & security'keyring.consent.title': 'Secure Storage Unavailable',diff --git a/app/src/lib/i18n/es.ts b/app/src/lib/i18n/es.tsindex a1f1d81d27..ffbcca2a4e 100644--- a/app/src/lib/i18n/es.ts+++ b/app/src/lib/i18n/es.ts@@ -3463,24 +3463,7 @@ const messages: TranslationMap = {'Procedimientos reutilizables y ejecutables: un objetivo y los pasos para alcanzarlo.','activity.tabs.alerts': 'Alertas',- 'harnessInit.title': 'Preparando todo',-'announcement.gotIt': 'Entendido',- 'harnessInit.subtitle':- 'OpenHuman está preparando los componentes que necesita en el primer inicio.',- 'harnessInit.stepPython': 'Entorno de ejecución de Python',- 'harnessInit.stepNode': 'Entorno de ejecución de Node.js',- 'harnessInit.statePending': 'En espera',- 'harnessInit.stateRunning': 'Instalando…',- 'harnessInit.stateDone': 'Listo',- 'harnessInit.stateSkipped': 'Omitido',- 'harnessInit.stateFailed': 'Error',- 'harnessInit.failedMessage':- 'Algunos pasos de la configuración no se completaron. Puedes reintentar o continuar: OpenHuman usará una alternativa integrada.',- 'harnessInit.retry': 'Reintentar',- 'harnessInit.continueAnyway': 'Continuar de todos modos',- 'harnessInit.runInBackground': 'Ejecutar en segundo plano',- 'harnessInit.backgroundHint': 'Puedes seguir usando OpenHuman mientras esto termina.','keyring.consent.title': 'Almacenamiento seguro no disponible','keyring.consent.description':diff --git a/app/src/lib/i18n/fr.ts b/app/src/lib/i18n/fr.tsindex febbe25dec..e76ab26ea2 100644--- a/app/src/lib/i18n/fr.ts+++ b/app/src/lib/i18n/fr.ts@@ -3478,25 +3478,7 @@ const messages: TranslationMap = {"Procédures réutilisables et exécutables: un objectif et les étapes pour l'atteindre.",'activity.tabs.alerts': 'Alertes',- 'harnessInit.title': 'Configuration en cours',-'announcement.gotIt': 'Compris',- 'harnessInit.subtitle':- 'OpenHuman prépare les composants dont il a besoin lors du premier lancement.',- 'harnessInit.stepPython': "Environnement d'exécution Python",- 'harnessInit.stepNode': "Environnement d'exécution Node.js",- 'harnessInit.statePending': 'En attente',- 'harnessInit.stateRunning': 'Installation…',- 'harnessInit.stateDone': 'Prêt',- 'harnessInit.stateSkipped': 'Ignoré',- 'harnessInit.stateFailed': 'Échec',- 'harnessInit.failedMessage':- 'Certaines étapes de configuration ne se sont pas terminées. Vous pouvez réessayer ou continuer: OpenHuman utilisera une solution de secours intégrée.',- 'harnessInit.retry': 'Réessayer',- 'harnessInit.continueAnyway': 'Continuer quand même',- 'harnessInit.runInBackground': 'Exécuter en arrière-plan',- 'harnessInit.backgroundHint':- 'Vous pouvez continuer à utiliser OpenHuman pendant que cela se termine.','keyring.consent.title': 'Stockage sécurisé indisponible','keyring.consent.description':diff --git a/app/src/lib/i18n/hi.ts b/app/src/lib/i18n/hi.tsindex 91bb11ea32..8e639fda77 100644--- a/app/src/lib/i18n/hi.ts+++ b/app/src/lib/i18n/hi.ts@@ -3396,23 +3396,7 @@ const messages: TranslationMap = {'पुन: उपयोग योग्य, चलाने योग्य प्रक्रियाएँ: एक लक्ष्य और उसे प्राप्त करने के चरण।','activity.tabs.alerts': 'अलर्ट',- 'harnessInit.title': 'सेटअप किया जा रहा है',-'announcement.gotIt': 'समझ गया',- 'harnessInit.subtitle': 'OpenHuman पहली बार शुरू होने पर आवश्यक घटक तैयार कर रहा है।',- 'harnessInit.stepPython': 'Python रनटाइम',- 'harnessInit.stepNode': 'Node.js रनटाइम',- 'harnessInit.statePending': 'प्रतीक्षारत',- 'harnessInit.stateRunning': 'इंस्टॉल हो रहा है…',- 'harnessInit.stateDone': 'तैयार',- 'harnessInit.stateSkipped': 'छोड़ा गया',- 'harnessInit.stateFailed': 'विफल',- 'harnessInit.failedMessage':- 'कुछ सेटअप चरण पूरे नहीं हुए। आप पुनः प्रयास कर सकते हैं, या जारी रख सकते हैं: OpenHuman एक अंतर्निहित फॉलबैक का उपयोग करेगा।',- 'harnessInit.retry': 'पुनः प्रयास करें',- 'harnessInit.continueAnyway': 'फिर भी जारी रखें',- 'harnessInit.runInBackground': 'पृष्ठभूमि में चलाएँ',- 'harnessInit.backgroundHint': 'जब तक यह पूरा होता है, आप OpenHuman का उपयोग जारी रख सकते हैं।','keyring.consent.title': 'सुरक्षित भंडारण अनुपलब्ध','keyring.consent.description':diff --git a/app/src/lib/i18n/id.ts b/app/src/lib/i18n/id.tsindex 774fba96c7..a829e02121 100644--- a/app/src/lib/i18n/id.ts+++ b/app/src/lib/i18n/id.ts@@ -3421,24 +3421,7 @@ const messages: TranslationMap = {'Prosedur yang dapat digunakan kembali dan dijalankan: tujuan beserta langkah-langkah untuk mencapainya.','activity.tabs.alerts': 'Peringatan',- 'harnessInit.title': 'Menyiapkan semuanya',-'announcement.gotIt': 'Mengerti',- 'harnessInit.subtitle':- 'OpenHuman sedang menyiapkan komponen yang dibutuhkan saat pertama kali dijalankan.',- 'harnessInit.stepPython': 'Runtime Python',- 'harnessInit.stepNode': 'Runtime Node.js',- 'harnessInit.statePending': 'Menunggu',- 'harnessInit.stateRunning': 'Memasang…',- 'harnessInit.stateDone': 'Siap',- 'harnessInit.stateSkipped': 'Dilewati',- 'harnessInit.stateFailed': 'Gagal',- 'harnessInit.failedMessage':- 'Beberapa langkah penyiapan tidak selesai. Anda dapat mencoba lagi atau melanjutkan: OpenHuman akan menggunakan cadangan bawaan.',- 'harnessInit.retry': 'Coba lagi',- 'harnessInit.continueAnyway': 'Lanjutkan saja',- 'harnessInit.runInBackground': 'Jalankan di latar belakang',- 'harnessInit.backgroundHint': 'Anda dapat terus menggunakan OpenHuman saat proses ini selesai.','keyring.consent.title': 'Penyimpanan aman tidak tersedia','keyring.consent.description':diff --git a/app/src/lib/i18n/it.ts b/app/src/lib/i18n/it.tsindex fcc7b9cfc0..dcfd806d3a 100644--- a/app/src/lib/i18n/it.ts+++ b/app/src/lib/i18n/it.ts@@ -3456,24 +3456,7 @@ const messages: TranslationMap = {'Procedure riutilizzabili ed eseguibili: un obiettivo e i passi per raggiungerlo.','activity.tabs.alerts': 'Avvisi',- 'harnessInit.title': 'Preparazione in corso',-'announcement.gotIt': 'Ho capito',- 'harnessInit.subtitle': 'OpenHuman sta preparando i componenti necessari al primo avvio.',- 'harnessInit.stepPython': 'Ambiente di esecuzione Python',- 'harnessInit.stepNode': 'Ambiente di esecuzione Node.js',- 'harnessInit.statePending': 'In attesa',- 'harnessInit.stateRunning': 'Installazione…',- 'harnessInit.stateDone': 'Pronto',- 'harnessInit.stateSkipped': 'Saltato',- 'harnessInit.stateFailed': 'Non riuscito',- 'harnessInit.failedMessage':- "Alcuni passaggi di configurazione non sono stati completati. Puoi riprovare o continuare: OpenHuman userà un'alternativa integrata.",- 'harnessInit.retry': 'Riprova',- 'harnessInit.continueAnyway': 'Continua comunque',- 'harnessInit.runInBackground': 'Esegui in background',- 'harnessInit.backgroundHint':- 'Puoi continuare a usare OpenHuman mentre questa operazione termina.','keyring.consent.title': 'Archivio sicuro non disponibile','keyring.consent.description':diff --git a/app/src/lib/i18n/ja.ts b/app/src/lib/i18n/ja.tsindex 3123b9712a..82d7743c44 100644--- a/app/src/lib/i18n/ja.ts+++ b/app/src/lib/i18n/ja.ts@@ -3993,24 +3993,7 @@ const messages: TranslationMap = {'chat.files.error.delete_failed': 'ファイルを削除できませんでした。もう一度お試しください。','chat.files.error.reveal_failed':'ファイルを表示できませんでした。OpenHuman の外部で移動または削除された可能性があります。',-- // First-run initialization (harness_init)- 'harnessInit.title': 'セットアップ中','announcement.gotIt': '了解',- 'harnessInit.subtitle': 'OpenHuman は初回起動時に必要なコンポーネントを準備しています。',- 'harnessInit.stepPython': 'Python ランタイム',- 'harnessInit.stepNode': 'Node.js ランタイム',- 'harnessInit.statePending': '待機中',- 'harnessInit.stateRunning': 'インストール中…',- 'harnessInit.stateDone': '準備完了',- 'harnessInit.stateSkipped': 'スキップ済み',- 'harnessInit.stateFailed': '失敗',- 'harnessInit.failedMessage':- '一部のセットアップ手順が完了しませんでした。再試行するか、続行できます。OpenHuman は組み込みのフォールバックを使用します。',- 'harnessInit.retry': '再試行',- 'harnessInit.continueAnyway': '続行',- 'harnessInit.runInBackground': 'バックグラウンドで実行',- 'harnessInit.backgroundHint': 'この処理が完了するまで OpenHuman を引き続き使用できます。',// Keyring consent & security'keyring.consent.title': '安全なストレージが利用できません',diff --git a/app/src/lib/i18n/ko.ts b/app/src/lib/i18n/ko.tsindex 108d362097..99f3a3ceda 100644--- a/app/src/lib/i18n/ko.ts+++ b/app/src/lib/i18n/ko.ts@@ -3360,23 +3360,7 @@ const messages: TranslationMap = {'재사용 가능하고 실행 가능한 절차: 목표와 그것을 달성하기 위한 단계.','activity.tabs.alerts': '알림',- 'harnessInit.title': '설정하는 중',-'announcement.gotIt': '확인',- 'harnessInit.subtitle': 'OpenHuman이 처음 실행에 필요한 구성 요소를 준비하고 있습니다.',- 'harnessInit.stepPython': 'Python 런타임',- 'harnessInit.stepNode': 'Node.js 런타임',- 'harnessInit.statePending': '대기 중',- 'harnessInit.stateRunning': '설치 중…',- 'harnessInit.stateDone': '준비됨',- 'harnessInit.stateSkipped': '건너뜀',- 'harnessInit.stateFailed': '실패',- 'harnessInit.failedMessage':- '일부 설정 단계가 완료되지 않았습니다. 다시 시도하거나 계속 진행할 수 있습니다: OpenHuman이 내장 대체 기능을 사용합니다.',- 'harnessInit.retry': '다시 시도',- 'harnessInit.continueAnyway': '그래도 계속',- 'harnessInit.runInBackground': '백그라운드에서 실행',- 'harnessInit.backgroundHint': '이 작업이 완료되는 동안 계속 OpenHuman을 사용할 수 있습니다.','keyring.consent.title': '보안 저장소를 사용할 수 없음','keyring.consent.description':diff --git a/app/src/lib/i18n/pl.ts b/app/src/lib/i18n/pl.tsindex 1d5f738375..6caa9ab7db 100644--- a/app/src/lib/i18n/pl.ts+++ b/app/src/lib/i18n/pl.ts@@ -3444,24 +3444,7 @@ const messages: TranslationMap = {'chat.files.error.reveal_failed':'Nie udało się pokazać pliku. Mógł zostać przeniesiony lub usunięty poza OpenHuman.',- 'harnessInit.title': 'Trwa konfiguracja',-'announcement.gotIt': 'Rozumiem',- 'harnessInit.subtitle':- 'OpenHuman przygotowuje komponenty potrzebne przy pierwszym uruchomieniu.',- 'harnessInit.stepPython': 'Środowisko uruchomieniowe Python',- 'harnessInit.stepNode': 'Środowisko uruchomieniowe Node.js',- 'harnessInit.statePending': 'Oczekiwanie',- 'harnessInit.stateRunning': 'Instalowanie…',- 'harnessInit.stateDone': 'Gotowe',- 'harnessInit.stateSkipped': 'Pominięto',- 'harnessInit.stateFailed': 'Niepowodzenie',- 'harnessInit.failedMessage':- 'Niektóre kroki konfiguracji nie zostały ukończone. Możesz spróbować ponownie lub kontynuować: OpenHuman użyje wbudowanego rozwiązania zastępczego.',- 'harnessInit.retry': 'Spróbuj ponownie',- 'harnessInit.continueAnyway': 'Kontynuuj mimo to',- 'harnessInit.runInBackground': 'Uruchom w tle',- 'harnessInit.backgroundHint': 'Możesz dalej korzystać z OpenHuman, dopóki to się nie zakończy.','keyring.consent.title': 'Bezpieczne przechowywanie niedostępne','keyring.consent.description':diff --git a/app/src/lib/i18n/pt.ts b/app/src/lib/i18n/pt.tsindex 5d7c2eef53..33ae4bbc19 100644--- a/app/src/lib/i18n/pt.ts+++ b/app/src/lib/i18n/pt.ts@@ -3442,24 +3442,7 @@ const messages: TranslationMap = {'Procedimentos reutilizáveis e executáveis: um objetivo e os passos para alcançá-lo.','activity.tabs.alerts': 'Alertas',- 'harnessInit.title': 'Preparando tudo',-'announcement.gotIt': 'Entendi',- 'harnessInit.subtitle':- 'O OpenHuman está preparando os componentes necessários na primeira inicialização.',- 'harnessInit.stepPython': 'Ambiente de execução Python',- 'harnessInit.stepNode': 'Ambiente de execução Node.js',- 'harnessInit.statePending': 'Aguardando',- 'harnessInit.stateRunning': 'Instalando…',- 'harnessInit.stateDone': 'Pronto',- 'harnessInit.stateSkipped': 'Ignorado',- 'harnessInit.stateFailed': 'Falhou',- 'harnessInit.failedMessage':- 'Algumas etapas de configuração não foram concluídas. Você pode tentar novamente ou continuar: o OpenHuman usará uma alternativa integrada.',- 'harnessInit.retry': 'Tentar novamente',- 'harnessInit.continueAnyway': 'Continuar mesmo assim',- 'harnessInit.runInBackground': 'Executar em segundo plano',- 'harnessInit.backgroundHint': 'Você pode continuar usando o OpenHuman enquanto isso termina.','keyring.consent.title': 'Armazenamento seguro indisponível','keyring.consent.description':diff --git a/app/src/lib/i18n/ru.ts b/app/src/lib/i18n/ru.tsindex 4d7fed1b55..fd3cf8f4cf 100644--- a/app/src/lib/i18n/ru.ts+++ b/app/src/lib/i18n/ru.ts@@ -3434,24 +3434,7 @@ const messages: TranslationMap = {'Многократно используемые, запускаемые процедуры: цель и шаги для её достижения.','activity.tabs.alerts': 'Уведомления',- 'harnessInit.title': 'Идёт настройка',-'announcement.gotIt': 'Понятно',- 'harnessInit.subtitle': 'OpenHuman готовит компоненты, необходимые при первом запуске.',- 'harnessInit.stepPython': 'Среда выполнения Python',- 'harnessInit.stepNode': 'Среда выполнения Node.js',- 'harnessInit.statePending': 'Ожидание',- 'harnessInit.stateRunning': 'Установка…',- 'harnessInit.stateDone': 'Готово',- 'harnessInit.stateSkipped': 'Пропущено',- 'harnessInit.stateFailed': 'Ошибка',- 'harnessInit.failedMessage':- 'Некоторые шаги настройки не завершились. Вы можете повторить попытку или продолжить: OpenHuman использует встроенный резервный вариант.',- 'harnessInit.retry': 'Повторить',- 'harnessInit.continueAnyway': 'Всё равно продолжить',- 'harnessInit.runInBackground': 'Запустить в фоновом режиме',- 'harnessInit.backgroundHint':- 'Вы можете продолжать пользоваться OpenHuman, пока это завершается.','keyring.consent.title': 'Безопасное хранилище недоступно','keyring.consent.description':diff --git a/app/src/lib/i18n/tr.ts b/app/src/lib/i18n/tr.tsindex 1c84f667c5..68a2cb2eba 100644--- a/app/src/lib/i18n/tr.ts+++ b/app/src/lib/i18n/tr.ts@@ -3649,23 +3649,7 @@ const messages: TranslationMap = {'chat.files.error.delete_failed': 'Dosya silinemedi. Lütfen yeniden deneyin.','chat.files.error.reveal_failed':'Dosya gösterilemedi. OpenHuman dışında taşınmış veya silinmiş olabilir.',- 'harnessInit.title': 'Hazırlık yapılıyor','announcement.gotIt': 'Anladım',- 'harnessInit.subtitle': 'OpenHuman, ilk açılışta ihtiyaç duyduğu bileşenleri hazırlıyor.',- 'harnessInit.stepPython': 'Python çalışma zamanı',- 'harnessInit.stepNode': 'Node.js çalışma zamanı',- 'harnessInit.statePending': 'Bekliyor',- 'harnessInit.stateRunning': 'Yükleniyor…',- 'harnessInit.stateDone': 'Hazır',- 'harnessInit.stateSkipped': 'Atlandı',- 'harnessInit.stateFailed': 'Başarısız',- 'harnessInit.failedMessage':- 'Bazı kurulum adımları tamamlanmadı. Yeniden deneyebilir veya devam edebilirsiniz: OpenHuman yerleşik bir yedek kullanacak.',- 'harnessInit.retry': 'Yeniden dene',- 'harnessInit.continueAnyway': 'Yine de devam et',- 'harnessInit.runInBackground': 'Arka planda çalıştır',- 'harnessInit.backgroundHint':- "Bu işlem tamamlanırken OpenHuman'ı kullanmaya devam edebilirsiniz.",'keyring.consent.title': 'Güvenli depolama kullanılamıyor','keyring.consent.description':'İşletim sisteminizin anahtar zincirine erişilemiyor. OpenHuman, gizli bilgileri bunun yerine yerel şifreli depolamada saklamak için izninize ihtiyaç duyuyor.',diff --git a/app/src/lib/i18n/zh-CN.ts b/app/src/lib/i18n/zh-CN.tsindex 36940c4091..fb4f1155d3 100644--- a/app/src/lib/i18n/zh-CN.ts+++ b/app/src/lib/i18n/zh-CN.ts@@ -3202,23 +3202,7 @@ const messages: TranslationMap = {'activity.tabs.automationsDescription': '可复用、可运行的流程:目标及达成目标的步骤。','activity.tabs.alerts': '提醒',- 'harnessInit.title': '正在进行设置',-'announcement.gotIt': '知道了',- 'harnessInit.subtitle': 'OpenHuman 正在准备首次启动所需的组件。',- 'harnessInit.stepPython': 'Python 运行时',- 'harnessInit.stepNode': 'Node.js 运行时',- 'harnessInit.statePending': '等待中',- 'harnessInit.stateRunning': '正在安装…',- 'harnessInit.stateDone': '就绪',- 'harnessInit.stateSkipped': '已跳过',- 'harnessInit.stateFailed': '失败',- 'harnessInit.failedMessage':- '部分设置步骤未完成。你可以重试或继续:OpenHuman 将使用内置的后备方案。',- 'harnessInit.retry': '重试',- 'harnessInit.continueAnyway': '仍然继续',- 'harnessInit.runInBackground': '在后台运行',- 'harnessInit.backgroundHint': '在此完成期间,你可以继续使用 OpenHuman。','keyring.consent.title': '安全存储不可用','keyring.consent.description':diff --git a/app/src/services/__tests__/coreRpcClient.test.ts b/app/src/services/__tests__/coreRpcClient.test.tsindex 3f39f0ae83..e97c080c1f 100644--- a/app/src/services/__tests__/coreRpcClient.test.ts+++ b/app/src/services/__tests__/coreRpcClient.test.ts@@ -794,7 +794,6 @@ describe('classifyRpcError', () => {['HTTP 429 rate-limit exceeded', undefined, 'rate_limited'],// #5157 verbatim from Sentry (CORE-RUST-1PY) — the running core does not// expose the method. Permanent, so pollers must be able to stop.- ['unknown method: openhuman.harness_init_status', undefined, 'method_not_found'],['unknown method: openhuman.memory_tree_create_namespace', undefined, 'method_not_found'],['Budget exceeded for current period', undefined, 'budget_exceeded'],['Insufficient budget for request', undefined, 'budget_exceeded'],@@ -869,9 +868,6 @@ describe('classifyRpcError', () => {// `dispatch::unknown_method_name` classifies with `strip_prefix`, so the// frontend anchors identically — a nested/quoted occurrence is not the// core telling us *this* call's method is absent.- expect(classifyRpcError('unknown method: openhuman.harness_init_status')).toBe(- 'method_not_found'- );expect(classifyRpcError('tool failed: unknown method: openhuman.foo_bar')).toBe('unknown');});diff --git a/app/src/services/harnessInitService.test.ts b/app/src/services/harnessInitService.test.tsdeleted file mode 100644index 06850e6de4..0000000000--- a/app/src/services/harnessInitService.test.ts+++ /dev/null@@ -1,72 +0,0 @@-import { describe, expect, it } from 'vitest';--import { parseHarnessInitSnapshot } from './harnessInitService';--describe('parseHarnessInitSnapshot', () => {- it('parses a well-formed snapshot envelope', () => {- const snap = parseHarnessInitSnapshot({- snapshot: {- overall: 'running',- started_at: '2026-06-23T00:00:00Z',- finished_at: null,- steps: [- {- id: 'python_runtime',- label: 'Python runtime',- required: false,- state: 'done',- message: 'already provisioned',- percent: 100,- updated_at: '2026-06-23T00:00:01Z',- },- {- id: 'kompress',- label: 'Compression runtime',- required: false,- state: 'running',- message: null,- percent: null,- updated_at: null,- },- ],- },- });-- expect(snap).not.toBeNull();- expect(snap?.overall).toBe('running');- expect(snap?.startedAt).toBe('2026-06-23T00:00:00Z');- expect(snap?.steps).toHaveLength(2);- expect(snap?.steps[0]).toMatchObject({ id: 'python_runtime', state: 'done', percent: 100 });- expect(snap?.steps[1]).toMatchObject({ id: 'kompress', state: 'running', percent: null });- });-- it('returns null when the envelope has no snapshot', () => {- expect(parseHarnessInitSnapshot({})).toBeNull();- expect(parseHarnessInitSnapshot(null)).toBeNull();- expect(parseHarnessInitSnapshot({ snapshot: 'nope' })).toBeNull();- });-- it('returns null on an unknown overall state', () => {- expect(parseHarnessInitSnapshot({ snapshot: { overall: 'bogus', steps: [] } })).toBeNull();- });-- it('drops malformed step entries but keeps valid ones', () => {- const snap = parseHarnessInitSnapshot({- snapshot: {- overall: 'done',- steps: [- { id: 'node_runtime', state: 'done' },- { id: 'missing_state' },- { state: 'done' },- { id: 'bad_state', state: 'exploded' },- ],- },- });-- expect(snap?.steps).toHaveLength(1);- expect(snap?.steps[0].id).toBe('node_runtime');- // Defaults applied for absent optional fields.- expect(snap?.steps[0].label).toBe('node_runtime');- expect(snap?.steps[0].required).toBe(false);- });-});diff --git a/app/src/services/harnessInitService.ts b/app/src/services/harnessInitService.tsdeleted file mode 100644index c89eb840fb..0000000000--- a/app/src/services/harnessInitService.ts+++ /dev/null@@ -1,102 +0,0 @@-/**- * Harness Init Service- *- * Thin RPC wrappers around the core `harness_init` controller plus parsing into- * typed snapshots. The initialization overlay polls `fetchHarnessInitStatus`- * (read-only) and calls `runHarnessInit` to retry after a failure.- *- * Mirrors the polling contract used by `daemonHealthService`, but stays a plain- * data layer — the React overlay owns the interval and visibility.- */-import { callCoreRpc } from './coreRpcClient';--export type HarnessInitStepState = 'pending' | 'running' | 'done' | 'failed' | 'skipped';-export type HarnessInitOverall = 'idle' | 'running' | 'done' | 'failed';--export interface HarnessInitStep {- id: string;- label: string;- required: boolean;- state: HarnessInitStepState;- message: string | null;- percent: number | null;- updatedAt: string | null;-}--export interface HarnessInitSnapshot {- overall: HarnessInitOverall;- steps: HarnessInitStep[];- startedAt: string | null;- finishedAt: string | null;-}--interface RawSnapshotEnvelope {- snapshot?: unknown;-}--const STEP_STATES: HarnessInitStepState[] = ['pending', 'running', 'done', 'failed', 'skipped'];-const OVERALL_STATES: HarnessInitOverall[] = ['idle', 'running', 'done', 'failed'];--function asString(value: unknown): string | null {- return typeof value === 'string' ? value : null;-}--function parseStep(raw: unknown): HarnessInitStep | null {- if (!raw || typeof raw !== 'object') {- return null;- }- const data = raw as Record<string, unknown>;- const id = asString(data.id);- const state = asString(data.state) as HarnessInitStepState | null;- if (!id || !state || !STEP_STATES.includes(state)) {- return null;- }- return {- id,- label: asString(data.label) ?? id,- required: data.required === true,- state,- message: asString(data.message),- percent: typeof data.percent === 'number' ? data.percent : null,- updatedAt: asString(data.updated_at),- };-}--/** Parse the `{ snapshot: {...} }` RPC result envelope into a typed snapshot. */-export function parseHarnessInitSnapshot(payload: unknown): HarnessInitSnapshot | null {- const envelope = (payload ?? {}) as RawSnapshotEnvelope;- const raw = envelope.snapshot;- if (!raw || typeof raw !== 'object') {- return null;- }- const data = raw as Record<string, unknown>;- const overall = asString(data.overall) as HarnessInitOverall | null;- if (!overall || !OVERALL_STATES.includes(overall)) {- return null;- }- const stepsRaw = Array.isArray(data.steps) ? data.steps : [];- const steps = stepsRaw.map(parseStep).filter((s): s is HarnessInitStep => s !== null);- return {- overall,- steps,- startedAt: asString(data.started_at),- finishedAt: asString(data.finished_at),- };-}--/** Read the current init progress. Read-only — never triggers provisioning. */-export async function fetchHarnessInitStatus(): Promise<HarnessInitSnapshot | null> {- const payload = await callCoreRpc<unknown>({ method: 'openhuman.harness_init_status' });- return parseHarnessInitSnapshot(payload);-}--/** Re-run init (retry). `force` re-runs even already-satisfied steps. */-export async function runHarnessInit(force = false): Promise<HarnessInitSnapshot | null> {- const payload = await callCoreRpc<unknown>({- method: 'openhuman.harness_init_run',- params: { force },- // Provisioning can download Python / Node — allow a long budget.- timeoutMs: 10 * 60 * 1000,- });- return parseHarnessInitSnapshot(payload);-}diff --git a/app/src/utils/tauriCommands/localAi.ts b/app/src/utils/tauriCommands/localAi.tsindex 57a9cd2529..af4a4bfdaa 100644--- a/app/src/utils/tauriCommands/localAi.ts+++ b/app/src/utils/tauriCommands/localAi.ts@@ -21,7 +21,6 @@ export interface LocalAiStatus {embedding_model_id: string;stt_model_id: string;tts_voice_id: string;- quantization: string;vision_state: string;vision_mode: string;embedding_state: string;diff --git a/crates/openhuman-core/src/agent/README.md b/crates/openhuman-core/src/agent/README.mdindex 84f1c22ceb..2ce842511c 100644--- a/crates/openhuman-core/src/agent/README.md+++ b/crates/openhuman-core/src/agent/README.md@@ -320,7 +320,6 @@ Persistence, setup and RPC:| `artifacts/` | Agent-generated artifact storage and the `ai` RPC namespace ([README](artifacts/README.md)) || `session_db/` | `run_ledger` RPC over `tinyagents_session::run_ledger` || `session_import/` | One-time import of legacy session files and the optional live dual-write ([README](session_import/README.md)) |-| `harness_init/` | First-run provisioning (Python, spaCy, Kompress, Node) ([README](harness_init/README.md)) || [`schemas.rs`](./schemas.rs) | The `agent` namespace controllers |## Key types and entry points@@ -364,7 +363,6 @@ All controllers register under `DomainGroup::Agent` in [`core/all.rs`](../core/a| `agent` | [`tinyagents/replay/`](./tinyagents/replay/) | `runs_active`, `run_status`, `run_events` (read-only journal replay) || `agent` | [`tinyagents/run_mode.rs`](./tinyagents/run_mode.rs) | `set_run_mode`, `get_run_mode` || `agent_registry` | `registry/` | `list`, `available_tools`, `get`, `upsert_custom`, `create_custom`, `update`, `set_enabled`, `remove` |-| `harness_init` | `harness_init/` | `status`, `run` || `plan_review` | `plan_review/` | `decide` || `ai` | `artifacts/` | `list_artifacts`, `get_artifact`, `delete_artifact`, `regenerate` || `run_ledger` | `session_db/` | `list`, `get`, `events` |diff --git a/crates/openhuman-core/src/agent/harness_init/README.md b/crates/openhuman-core/src/agent/harness_init/README.mddeleted file mode 100644index cab0d42699..0000000000--- a/crates/openhuman-core/src/agent/harness_init/README.md+++ /dev/null@@ -1,61 +0,0 @@-# harness_init--First-run provisioning orchestration. Several setup steps (managed Python-runtime, spaCy + model, Kompress/torch, the runtime Python server, managed-Node) used to run lazily on first use with no user-visible feedback. This-domain runs them eagerly at core startup without blocking the ready signal,-tracks per-step progress in an in-memory snapshot, and exposes it over-`openhuman.harness_init_status` / `openhuman.harness_init_run` for the-frontend's initialization screen ([`app/src/services/harnessInitService.ts`](../../../../../app/src/services/harnessInitService.ts)).--Steps delegate to existing idempotent provisioning code: `runtime::python`-(`PythonBootstrap`), `runtime::node` (`NodeBootstrap`), and-`runtime::python_server` (`ensure_spacy`, `ensure_kompress`, `ensure_started`).-This module only orchestrates and reports; it does not reimplement downloads.--## Files--- [`mod.rs`](./mod.rs): module doc and re-exports.-- [`registry.rs`](./registry.rs): the ordered `HarnessInitStep` list from `all_steps()`:- `python_runtime`, `spacy`, `kompress`, `runtime_python_server`, and- `node_runtime` (only when the `runtime-node` feature is compiled in). Each- step is a durable, network-free `is_done` probe plus a `run` closure, and a- `provisioning` flag that says whether the step may download/install (and so- justify the blocking first-run overlay) or is routine startup that must run- silently (relaunching an already-installed local server). All steps are- `required: false`; a failure degrades to a fallback.-- [`ops.rs`](./ops.rs): `run_harness_init` / `run_harness_init_with(config, force)`:- walks the registry, marks steps `Done` instantly when already satisfied,- otherwise runs them. `provisioning_required` decides up front whether any- *provisioning* step still needs work, so an already-provisioned host never- flashes the overlay on a warm restart (GH-5047). Also hosts the RPC handlers- `handle_status` / `handle_run` (`force` re-runs satisfied steps).-- [`store.rs`](./store.rs): process-lifetime `HarnessInitSnapshot` behind a mutex.- `set_overall` and `update_step` mutate it; `update_step` publishes- `DomainEvent::HarnessInitProgress` and `publish_completed` publishes- `DomainEvent::HarnessInitCompleted` (both in [`core/events.rs`](../../core/events.rs)).-- [`types.rs`](./types.rs): `HarnessInitSnapshot`, `StepStatus`, `OverallState`,- `StepState` (serialized `snake_case`).-- [`bus.rs`](./bus.rs): placeholder; progress is published directly from `store`, so- there is no subscriber today.-- [`schemas.rs`](./schemas.rs): `harness_init` namespace controller schemas (`status`,- `run`).-- `*_tests.rs`: focused behavior tests beside each file.--## Wiring--- `core::runtime::services::start_boot_once_jobs` spawns `run_harness_init`- (fire-and-forget) when `ServiceSet.harness_init` is true. It is called from- `start_core_runtime_services` in [`core/runtime/bootstrap.rs`](../../core/runtime/bootstrap.rs), deliberately outside- `bootstrap_core_runtime`, so a build-only embedder never starts it.-- `ServiceSet` ([`core/runtime/builder.rs`](../../core/runtime/builder.rs)) turns it on in the `desktop()` and- `embedded()` presets and off in `headless_api()` and `none()`.-- Controllers are registered under `DomainGroup::Agent` via- `agent::harness_init::all_harness_init_registered_controllers` in- [`core/all.rs`](../../core/all.rs).--## Further reading--- [Parent module README](../README.md)-- [Agent harness architecture](../../../../../gitbooks/developing/architecture/agent-harness.md)-- [Deep architecture reference](../../../../../gitbooks/developing/architecture.md)diff --git a/crates/openhuman-core/src/agent/harness_init/bus.rs b/crates/openhuman-core/src/agent/harness_init/bus.rsdeleted file mode 100644index 86f954278a..0000000000--- a/crates/openhuman-core/src/agent/harness_init/bus.rs+++ /dev/null@@ -1,6 +0,0 @@-//! Event-bus glue for `harness_init`.-//!-//! Progress events are published directly from [`super::store::update_step`],-//! so no subscriber is required today. This module is kept for canonical-//! module shape and as the home for any future health re-publishing (e.g.-//! mirroring Python/Node readiness into the `health` domain).diff --git a/crates/openhuman-core/src/agent/harness_init/mod.rs b/crates/openhuman-core/src/agent/harness_init/mod.rsdeleted file mode 100644index 679020dd1e..0000000000--- a/crates/openhuman-core/src/agent/harness_init/mod.rs+++ /dev/null@@ -1,27 +0,0 @@-//! `harness_init` — first-class orchestration of one-time, first-run setup.-//!-//! On a fresh install several provisioning steps (managed Python runtime,-//! Kompress/torch, managed Node runtime) used to run lazily on-//! first use, with no user-visible feedback. This domain runs them eagerly at-//! core startup (spawned non-blocking after the RPC server is ready), tracks-//! per-step progress in an in-memory snapshot, and exposes it over-//! `openhuman.harness_init_status` / `openhuman.harness_init_run` for the-//! frontend initialization screen.-//!-//! Steps delegate to the existing idempotent provisioning code-//! (`crate::runtime::python`, `crate::runtime::python_server` for-//! Kompress, `crate::runtime::node`) — this module orchestrates and reports,-//! it does not reimplement downloads.--pub mod bus;-pub mod ops;-pub mod registry;-pub mod schemas;-pub mod store;-pub mod types;--pub use ops::run_harness_init;-pub use schemas::{- all_controller_schemas as all_harness_init_controller_schemas,- all_registered_controllers as all_harness_init_registered_controllers,-};diff --git a/crates/openhuman-core/src/agent/harness_init/ops.rs b/crates/openhuman-core/src/agent/harness_init/ops.rsdeleted file mode 100644index 4ada205b85..0000000000--- a/crates/openhuman-core/src/agent/harness_init/ops.rs+++ /dev/null@@ -1,146 +0,0 @@-//! Harness-init orchestrator + RPC handlers.-//!-//! `run_harness_init` is spawned (non-blocking) from-//! `core::runtime::services::start_boot_once_jobs` once the runtime enters-//! `serve()`, so the frontend can connect and watch progress.-//! It walks the [`registry`] step list, marking each `Done` instantly when its-//! cheap `is_done` probe passes, otherwise running it and recording the result.--use serde_json::{json, Map, Value};--use super::registry::{self, HarnessInitStep};-use super::store;-use super::types::{HarnessInitSnapshot, OverallState, StepState};-use crate::config::Config;-use crate::core::all::ControllerFuture;--/// Run every registered step once. `force` re-runs steps even when their-/// `is_done` probe passes (used by the retry RPC). Failures of non-required-/// steps are recorded as `Skipped`; the overall state is `Failed` only when a-/// *required* step fails.-pub async fn run_harness_init_with(config: Config, force: bool) -> HarnessInitSnapshot {- log::info!("[harness_init] starting one-time init run (force={force})");-- let steps = registry::all_steps();-- // Warm-start guard (GH-5047): decide visibility *before* publishing any- // `Running` state. The blocking overlay is justified only when a- // provisioning step (download/install/repair) genuinely needs work. Routine- // startup — e.g. re-launching an already-installed local Python server — is- // NOT provisioning and must run silently in the background on every launch.- // Probing on-disk readiness first (durably) keeps the overlay off warm- // restarts entirely instead of flashing it while the run settles.- let needs_provisioning = force || provisioning_required(&config, &steps).await;- if needs_provisioning {- log::info!("[harness_init] provisioning required — surfacing setup overlay");- store::set_overall(OverallState::Running);- } else {- log::info!(- "[harness_init] warm start — all provisioning satisfied; running remaining startup silently"- );- }-- let mut failed_required = false;-- for step in &steps {- run_one(&config, step, force, &mut failed_required).await;- }-- let overall = if failed_required {- OverallState::Failed- } else {- OverallState::Done- };- store::set_overall(overall);- store::publish_completed(overall, failed_required);- log::info!("[harness_init] init run finished overall={overall:?}");- store::snapshot()-}--/// Boot entrypoint: run all not-yet-done steps.-pub async fn run_harness_init(config: Config) {- run_harness_init_with(config, false).await;-}--/// Whether any *provisioning* step (download/install/repair) still needs work.-///-/// Only provisioning steps gate the visible overlay; a non-provisioning step-/// (routine service startup) is ignored here so an already-installed host never-/// surfaces the blocking screen just to relaunch a background server. Each-/// probe is the step's durable, network-free `is_done` — see [`registry`].-async fn provisioning_required(config: &Config, steps: &[HarnessInitStep]) -> bool {- for step in steps {- if !step.provisioning {- continue;- }- if !(step.is_done)(config).await {- log::info!(- "[harness_init] provisioning step {} not satisfied on disk — setup needed",- step.id- );- return true;- }- }- false-}--async fn run_one(config: &Config, step: &HarnessInitStep, force: bool, failed_required: &mut bool) {- if !force && (step.is_done)(config).await {- log::debug!("[harness_init] step {} already satisfied", step.id);- store::update_step(- step.id,- StepState::Done,- Some("already provisioned".to_string()),- Some(100),- );- return;- }-- store::update_step(step.id, StepState::Running, None, None);- match (step.run)(config).await {- Ok(()) => {- store::update_step(step.id, StepState::Done, None, Some(100));- }- Err(msg) => {- log::warn!("[harness_init] step {} failed: {msg}", step.id);- if step.required {- *failed_required = true;- store::update_step(step.id, StepState::Failed, Some(msg), None);- } else {- // Non-fatal: the app proceeds with a fallback.- store::update_step(step.id, StepState::Skipped, Some(msg), None);- }- }- }-}--// ── RPC handlers ────────────────────────────────────────────────────────────--/// `openhuman.harness_init_status` — return the current snapshot.-pub fn handle_status(_params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move { snapshot_response(store::snapshot()) })-}--/// `openhuman.harness_init_run` — re-run init (retry). `force` re-runs even-/// already-satisfied steps; defaults to false (only retries pending/failed).-pub fn handle_run(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let force = params- .get("force")- .and_then(|v| v.as_bool())- .unwrap_or(false);- let config = crate::config::rpc::load_config_with_timeout().await?;- let snapshot = run_harness_init_with(config, force).await;- snapshot_response(snapshot)- })-}--fn snapshot_response(snapshot: HarnessInitSnapshot) -> Result<Value, String> {- let value = serde_json::to_value(snapshot)- .map_err(|e| format!("failed to serialize harness-init snapshot: {e}"))?;- Ok(json!({ "snapshot": value }))-}--#[cfg(test)]-#[path = "ops_tests.rs"]-mod tests;diff --git a/crates/openhuman-core/src/agent/harness_init/ops_tests.rs b/crates/openhuman-core/src/agent/harness_init/ops_tests.rsdeleted file mode 100644index c54e86d653..0000000000--- a/crates/openhuman-core/src/agent/harness_init/ops_tests.rs+++ /dev/null@@ -1,12 +0,0 @@-use super::*;--#[tokio::test]-async fn status_response_wraps_snapshot_key() {- let resp = handle_status(Map::new()).await.unwrap();- assert!(resp.get("snapshot").is_some());- let overall = resp["snapshot"]["overall"].as_str().unwrap();- // Idle before any run, or a later state if a boot run already executed- // in this process — both are valid, we only assert the shape.- assert!(["idle", "running", "done", "failed"].contains(&overall));- assert!(resp["snapshot"]["steps"].is_array());-}diff --git a/crates/openhuman-core/src/agent/harness_init/registry.rs b/crates/openhuman-core/src/agent/harness_init/registry.rsdeleted file mode 100644index 532a0b8cd5..0000000000--- a/crates/openhuman-core/src/agent/harness_init/registry.rs+++ /dev/null@@ -1,250 +0,0 @@-//! The set of one-time initialization steps run eagerly at core startup.-//!-//! Each [`HarnessInitStep`] is a thin descriptor of function pointers that-//! delegate to the existing, already-idempotent provisioning code — this module-//! orchestrates and reports; it does not reimplement any download logic.-//!-//! Current steps (all non-required — failure degrades to a fallback):-//! 1. `python_runtime` — managed CPython. Only provisions eagerly when a-//! Python backend is actually enabled (`enabled_backends` non-empty);-//! otherwise it is a no-op and lazy consumers (Python tools / skills)-//! resolve the interpreter on first use (#5056).-//! 2. `kompress` — dedicated torch venv for the TokenJuice ML-//! compressor. Only when `tokenjuice.ml_compression_enabled`.-//! 3. `runtime_python_server` — long-running Python backend host. Derived:-//! launches only when `enabled_backends` is non-empty.-//! 4. `node_runtime` — managed Node.js (skills / MCP); absent when the-//! `runtime-node` feature is compiled out.-//!-//! Voice models (Piper) and Ollama stay lazy/opt-in and are-//! intentionally NOT registered here; they can be added later as steps.--use std::future::Future;-use std::pin::Pin;--use crate::config::Config;--/// Future returned by a step's probe/run hooks. Borrows the `Config` for the-/// duration of the call.-pub type StepFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;--/// A single startup provisioning step.-pub struct HarnessInitStep {- /// Stable identifier used as the dedupe key and the UI i18n key.- pub id: &'static str,- /// Default human-readable label.- pub label: &'static str,- /// When true, a failure blocks the app. All steps are non-required today.- pub required: bool,- /// When true this step may **download/install/repair** — the only kind of- /// work that justifies the blocking first-run overlay. When false the step- /// is routine startup (e.g. launching an already-provisioned local server)- /// that must run silently in the background on every launch and must NOT- /// surface the overlay. Drives the warm-start visibility decision in- /// [`super::ops`].- pub provisioning: bool,- /// Cheap, network-free probe: is this step already satisfied on this host?- /// When true the orchestrator marks it `Done` without invoking `run`.- ///- /// **Must be durable across process restarts** for provisioning steps — a- /// process-local memo (e.g. `try_cached`) reads empty on every launch and- /// would wrongly re-enter a visible `running` state (GH-5047). Probe the- /// on-disk install instead.- pub is_done: for<'a> fn(&'a Config) -> StepFuture<'a, bool>,- /// Perform the work. `Ok(())` → done; `Err(msg)` → failed/skipped.- pub run: for<'a> fn(&'a Config) -> StepFuture<'a, Result<(), String>>,-}--/// The ordered list of mandatory eager steps.-pub fn all_steps() -> Vec<HarnessInitStep> {- vec![- python_runtime_step(),- kompress_step(),- runtime_python_server_step(),- // Registration-site gate: no managed toolchain to provision when- // `runtime-node` is compiled out, so the step is absent.- #[cfg(feature = "runtime-node")]- node_runtime_step(),- ]-}--// ── python_runtime ──────────────────────────────────────────────────────────--fn python_runtime_step() -> HarnessInitStep {- HarnessInitStep {- id: "python_runtime",- label: "Python runtime",- required: false,- provisioning: true,- is_done: |config| Box::pin(python_is_done(config)),- run: |config| Box::pin(python_run(config)),- }-}--/// Whether the managed interpreter must be provisioned **eagerly at boot**.-/// True only when Python is enabled AND a Python backend (Kompress)-/// actually needs it. When no backend is enabled we skip the speculative-/// managed-CPython download entirely (#5056) — lazy consumers (Python tools /-/// skills, Python MCP servers) still resolve the interpreter on first use.-fn python_needed_eagerly(config: &Config) -> bool {- config.runtime_python.enabled- && !crate::runtime::python_server::enabled_backends(config).is_empty()-}--async fn python_is_done(config: &Config) -> bool {- if !python_needed_eagerly(config) {- // Nothing at boot needs the interpreter → treat as satisfied. Never- // downloads CPython speculatively.- return true;- }- // Durable on-disk probe: survives restarts (unlike the process-local- // `try_cached`), so an already-installed interpreter is detected without- // entering a user-visible provisioning run (GH-5047). Never downloads.- use crate::runtime::python::PythonBootstrap;- PythonBootstrap::new(std::sync::Arc::new(config.clone()))- .probe_installed()- .await- .is_some()-}--async fn python_run(config: &Config) -> Result<(), String> {- if !python_needed_eagerly(config) {- return Ok(());- }- use crate::runtime::python::PythonBootstrap;- PythonBootstrap::new(std::sync::Arc::new(config.clone()))- .resolve()- .await- .map(|resolved| {- log::info!(- "[harness_init] python runtime ready version={} source={:?}",- resolved.version,- resolved.source- );- })- .map_err(|e| format!("{e:#}"))-}--fn runtime_python_server_step() -> HarnessInitStep {- HarnessInitStep {- id: "runtime_python_server",- label: "Runtime Python server",- required: false,- // Routine service startup, not an install: launching an already- // provisioned server must stay silent (its venv is provisioned by the- // `kompress` step, which is the one that surfaces progress).- provisioning: false,- is_done: |config| Box::pin(runtime_python_server_is_done(config)),- run: |config| Box::pin(runtime_python_server_run(config)),- }-}--async fn runtime_python_server_is_done(config: &Config) -> bool {- if crate::runtime::python_server::enabled_backends(config).is_empty() {- return true;- }- let status = crate::runtime::python_server::status().await;- status.running-}--async fn runtime_python_server_run(config: &Config) -> Result<(), String> {- if crate::runtime::python_server::enabled_backends(config).is_empty() {- return Ok(());- }- crate::runtime::python_server::ensure_started(config)- .await- .map(|_| {- log::info!("[harness_init] runtime Python server ready");- })- .map_err(|e| format!("{e:#}"))-}--// ── node_runtime ────────────────────────────────────────────────────────────--fn kompress_step() -> HarnessInitStep {- HarnessInitStep {- id: "kompress",- label: "TokenJuice ML compressor (torch)",- required: false,- provisioning: true,- is_done: |config| Box::pin(kompress_is_done(config)),- run: |config| Box::pin(kompress_run(config)),- }-}--/// Whether this step should provision the Kompress venv.-fn kompress_needs_dedicated_venv(config: &Config) -> bool {- config.runtime_python.enabled && config.tokenjuice.ml_compression_enabled-}--async fn kompress_is_done(config: &Config) -> bool {- if !kompress_needs_dedicated_venv(config) {- return true;- }- crate::runtime::python_server::kompress_provisioned(config)-}--async fn kompress_run(config: &Config) -> Result<(), String> {- if !kompress_needs_dedicated_venv(config) {- return Ok(());- }- crate::runtime::python_server::ensure_kompress(config)- .await- .map(|_| {- log::info!("[harness_init] Kompress (torch) provisioned");- })- .map_err(|e| format!("{e:#}"))-}--#[cfg(feature = "runtime-node")]-fn node_runtime_step() -> HarnessInitStep {- HarnessInitStep {- id: "node_runtime",- label: "Node.js runtime",- required: false,- provisioning: true,- is_done: |config| Box::pin(node_is_done(config)),- run: |config| Box::pin(node_run(config)),- }-}--#[cfg(feature = "runtime-node")]-fn build_node_bootstrap(config: &Config) -> crate::runtime::node::NodeBootstrap {- crate::runtime::node::NodeBootstrap::new(std::sync::Arc::new(config.clone()))-}--#[cfg(feature = "runtime-node")]-async fn node_is_done(config: &Config) -> bool {- if !config.node.enabled {- return true;- }- // Durable on-disk probe: survives restarts (unlike the process-local- // `try_cached`), so an already-installed toolchain is detected without- // entering a user-visible provisioning run (GH-5047). Never downloads.- build_node_bootstrap(config)- .probe_installed()- .await- .is_some()-}--#[cfg(feature = "runtime-node")]-async fn node_run(config: &Config) -> Result<(), String> {- if !config.node.enabled {- return Ok(());- }- build_node_bootstrap(config)- .resolve()- .await- .map(|resolved| {- log::info!(- "[harness_init] node runtime ready version={} source={:?}",- resolved.version,- resolved.source- );- })- .map_err(|e| format!("{e:#}"))-}--#[cfg(test)]-#[path = "registry_tests.rs"]-mod tests;diff --git a/crates/openhuman-core/src/agent/harness_init/registry_tests.rs b/crates/openhuman-core/src/agent/harness_init/registry_tests.rsdeleted file mode 100644index 88db39ce9c..0000000000--- a/crates/openhuman-core/src/agent/harness_init/registry_tests.rs+++ /dev/null@@ -1,81 +0,0 @@-use super::*;--#[test]-fn all_steps_have_stable_ids_and_are_non_required() {- let steps = all_steps();- let ids: Vec<_> = steps.iter().map(|s| s.id).collect();- let mut expected = vec!["python_runtime", "kompress", "runtime_python_server"];- // `node_runtime` is a registration-site gate: it is absent (not- // dead-but-listed) when the managed Node runtime is compiled out. `cfg!`- // (not `#[cfg]`) keeps `expected` mutable-and-used in both builds — same- // idiom as `tools/ops_tests.rs`.- if cfg!(feature = "runtime-node") {- expected.push("node_runtime");- }- assert_eq!(ids, expected);- assert!(steps.iter().all(|s| !s.required));- assert!(steps.iter().all(|s| !s.label.is_empty()));-}--/// GH-5047: only genuine install/download steps may surface the blocking-/// overlay. `runtime_python_server` is routine service startup and must be-/// classified non-provisioning so a warm restart never re-shows setup.-#[test]-fn provisioning_classification_excludes_service_startup() {- for step in all_steps() {- let expected = step.id != "runtime_python_server";- assert_eq!(- step.provisioning, expected,- "step {} provisioning flag mismatch",- step.id- );- }-}--/// #5056: on a fresh install (`Config::default()`) `runtime_python.enabled`-/// is `true` but no Python backend (Kompress) is on, so the-/// `python_runtime` step must report itself already `Done` and `run` must-/// be a no-op — proving the eager managed-CPython download is skipped-/// when nothing at boot needs it. This is a pure gating check-/// (`python_needed_eagerly` returns `false`): it never touches disk or-/// resolves a real interpreter, so it stays hermetic.-#[tokio::test]-async fn python_runtime_step_is_done_by_default_with_no_backend_enabled() {- let config = Config::default();- assert!(- !python_needed_eagerly(&config),- "default config should not need Python eagerly (no backend enabled)"- );- assert!(- python_is_done(&config).await,- "python_runtime step should be Done without provisioning when no backend is enabled"- );- assert!(- python_run(&config).await.is_ok(),- "python_runtime run should no-op when no backend is enabled"- );-}--/// Inverse of the above: once a backend (Kompress) is enabled, the step must-/// no longer be trivially `Done` via the eager-skip branch — proving the-/// gate still allows provisioning when a backend genuinely needs Python.-/// We only assert the gating predicate here (not `is_done`/`run`), so the-/// test never attempts a real interpreter probe/download.-#[tokio::test]-async fn disabled_runtimes_report_done_without_work() {- let mut config = Config::default();- config.runtime_python.enabled = false;- config.node.enabled = false;- for step in all_steps() {- assert!(- (step.is_done)(&config).await,- "step {} should be done when its runtime is disabled",- step.id- );- assert!(- (step.run)(&config).await.is_ok(),- "step {} run should no-op when disabled",- step.id- );- }-}diff --git a/crates/openhuman-core/src/agent/harness_init/schemas.rs b/crates/openhuman-core/src/agent/harness_init/schemas.rsdeleted file mode 100644index 49b25efc8a..0000000000--- a/crates/openhuman-core/src/agent/harness_init/schemas.rs+++ /dev/null@@ -1,164 +0,0 @@-//! Controller schemas for the `harness_init` namespace.-//!-//! Two functions, both returning a `HarnessInitSnapshot` under the `snapshot`-//! output key:-//! - `openhuman.harness_init_status` — read the current init progress.-//! - `openhuman.harness_init_run` — re-run init (retry), optionally forced.--use crate::core::all::RegisteredController;-use crate::core::{ControllerSchema, FieldSchema, TypeSchema};--use super::ops::{handle_run, handle_status};--pub fn all_controller_schemas() -> Vec<ControllerSchema> {- vec![schemas("status"), schemas("run")]-}--pub fn all_registered_controllers() -> Vec<RegisteredController> {- vec![- RegisteredController {- schema: schemas("status"),- handler: handle_status,- },- RegisteredController {- schema: schemas("run"),- handler: handle_run,- },- ]-}--/// The shape of a single init step in the snapshot output.-fn step_status_type() -> TypeSchema {- TypeSchema::Object {- fields: vec![- FieldSchema {- name: "id",- ty: TypeSchema::String,- comment: "Stable step identifier (e.g. 'python_runtime').",- required: true,- },- FieldSchema {- name: "label",- ty: TypeSchema::String,- comment: "Human-readable step label.",- required: true,- },- FieldSchema {- name: "required",- ty: TypeSchema::Bool,- comment: "Whether a failure blocks the app.",- required: true,- },- FieldSchema {- name: "state",- ty: TypeSchema::Enum {- variants: vec!["pending", "running", "done", "failed", "skipped"],- },- comment: "Current step lifecycle state.",- required: true,- },- FieldSchema {- name: "message",- ty: TypeSchema::Option(Box::new(TypeSchema::String)),- comment: "Optional detail (error string or note).",- required: false,- },- FieldSchema {- name: "percent",- ty: TypeSchema::Option(Box::new(TypeSchema::U64)),- comment: "Optional 0–100 progress hint.",- required: false,- },- FieldSchema {- name: "updated_at",- ty: TypeSchema::Option(Box::new(TypeSchema::String)),- comment: "RFC3339 timestamp of the last state change.",- required: false,- },- ],- }-}--/// The `snapshot` output field shared by both functions.-fn snapshot_output() -> FieldSchema {- FieldSchema {- name: "snapshot",- ty: TypeSchema::Object {- fields: vec![- FieldSchema {- name: "overall",- ty: TypeSchema::Enum {- variants: vec!["idle", "running", "done", "failed"],- },- comment: "Overall init lifecycle state.",- required: true,- },- FieldSchema {- name: "steps",- ty: TypeSchema::Array(Box::new(step_status_type())),- comment: "Per-step status, in run order.",- required: true,- },- FieldSchema {- name: "started_at",- ty: TypeSchema::Option(Box::new(TypeSchema::String)),- comment: "RFC3339 timestamp when the run started.",- required: false,- },- FieldSchema {- name: "finished_at",- ty: TypeSchema::Option(Box::new(TypeSchema::String)),- comment: "RFC3339 timestamp when the run finished.",- required: false,- },- ],- },- comment: "Current harness-init progress snapshot.",- required: true,- }-}--pub fn schemas(function: &str) -> ControllerSchema {- match function {- "status" => ControllerSchema {- namespace: "harness_init",- function: "status",- description: "Read the current one-time initialization progress.",- inputs: vec![],- outputs: vec![snapshot_output()],- },- "run" => ControllerSchema {- namespace: "harness_init",- function: "run",- description: "Re-run one-time initialization (retry failed/pending steps).",- inputs: vec![FieldSchema {- name: "force",- ty: TypeSchema::Option(Box::new(TypeSchema::Bool)),- comment: "Re-run even steps already marked done. Defaults to false.",- required: false,- }],- outputs: vec![snapshot_output()],- },- _other => ControllerSchema {- namespace: "harness_init",- function: "unknown",- description: "Unknown harness_init controller function.",- inputs: vec![FieldSchema {- name: "function",- ty: TypeSchema::String,- comment: "Unknown function requested for schema lookup.",- required: true,- }],- outputs: vec![FieldSchema {- name: "error",- ty: TypeSchema::String,- comment: "Lookup error details.",- required: true,- }],- },- }-}--#[cfg(test)]-#[path = "schemas_tests.rs"]-mod tests;diff --git a/crates/openhuman-core/src/agent/harness_init/schemas_tests.rs b/crates/openhuman-core/src/agent/harness_init/schemas_tests.rsdeleted file mode 100644index 7bdb27ec9f..0000000000--- a/crates/openhuman-core/src/agent/harness_init/schemas_tests.rs+++ /dev/null@@ -1,42 +0,0 @@-use super::*;--#[test]-fn status_has_no_inputs_and_snapshot_output() {- let s = schemas("status");- assert_eq!(s.namespace, "harness_init");- assert_eq!(s.function, "status");- assert!(s.inputs.is_empty());- assert_eq!(s.outputs.len(), 1);- assert_eq!(s.outputs[0].name, "snapshot");-}--#[test]-fn run_has_optional_force_input() {- let s = schemas("run");- let force = s.inputs.iter().find(|f| f.name == "force").unwrap();- assert!(!force.required);-}--#[test]-fn unknown_function_returns_placeholder_with_error_output() {- let s = schemas("does-not-exist");- assert_eq!(s.function, "unknown");- assert_eq!(s.outputs[0].name, "error");-}--#[test]-fn all_controller_schemas_covers_supported_functions() {- let names: Vec<_> = all_controller_schemas()- .into_iter()- .map(|s| s.function)- .collect();- assert_eq!(names, vec!["status", "run"]);-}--#[test]-fn all_registered_controllers_has_handler_per_schema() {- let controllers = all_registered_controllers();- assert_eq!(controllers.len(), 2);- let names: Vec<_> = controllers.iter().map(|c| c.schema.function).collect();- assert_eq!(names, vec!["status", "run"]);-}diff --git a/crates/openhuman-core/src/agent/harness_init/store.rs b/crates/openhuman-core/src/agent/harness_init/store.rsdeleted file mode 100644index 387a991211..0000000000--- a/crates/openhuman-core/src/agent/harness_init/store.rs+++ /dev/null@@ -1,105 +0,0 @@-//! In-memory status holder for the harness-init run.-//!-//! Mirrors the `STATUS_TABLE` pattern used by the local-inference installers:-//! a process-lifetime singleton guarded by a mutex. `update_step` is the single-//! mutation point and also publishes the matching `DomainEvent` so the event-//! bus stays in lockstep with the snapshot the RPC returns.--use std::sync::{Mutex, OnceLock};--use chrono::Utc;--use super::registry;-use super::types::{HarnessInitSnapshot, OverallState, StepState, StepStatus};-use crate::core::bus::BUS;-use crate::core::events::DomainEvent;--static STATE: OnceLock<Mutex<HarnessInitSnapshot>> = OnceLock::new();--fn state() -> &'static Mutex<HarnessInitSnapshot> {- STATE.get_or_init(|| Mutex::new(seed_snapshot()))-}--/// Build the initial snapshot: every registered step `Pending`, overall `Idle`.-fn seed_snapshot() -> HarnessInitSnapshot {- let steps = registry::all_steps()- .into_iter()- .map(|s| StepStatus {- id: s.id.to_string(),- label: s.label.to_string(),- required: s.required,- state: StepState::Pending,- message: None,- percent: None,- updated_at: None,- })- .collect();- HarnessInitSnapshot {- overall: OverallState::Idle,- steps,- started_at: None,- finished_at: None,- }-}--/// Clone the current snapshot for the RPC layer.-pub fn snapshot() -> HarnessInitSnapshot {- state().lock().unwrap().clone()-}--/// Set the overall lifecycle state, stamping start/finish timestamps once.-pub fn set_overall(overall: OverallState) {- let mut guard = state().lock().unwrap();- let now = Utc::now().to_rfc3339();- match overall {- OverallState::Running if guard.started_at.is_none() => {- guard.started_at = Some(now.clone());- }- OverallState::Done | OverallState::Failed => {- guard.finished_at = Some(now.clone());- }- _ => {}- }- guard.overall = overall;-}--/// Update one step's state and publish a `HarnessInitProgress` event.-pub fn update_step(id: &str, step_state: StepState, message: Option<String>, percent: Option<u8>) {- {- let mut guard = state().lock().unwrap();- if let Some(step) = guard.steps.iter_mut().find(|s| s.id == id) {- step.state = step_state;- step.message = message.clone();- step.percent = percent;- step.updated_at = Some(Utc::now().to_rfc3339());- } else {- log::warn!("[harness_init] update_step for unknown id={id}");- return;- }- }- BUS.publish(DomainEvent::HarnessInitProgress {- step_id: id.to_string(),- state: serde_json::to_value(step_state)- .ok()- .and_then(|v| v.as_str().map(|s| s.to_string()))- .unwrap_or_default(),- message,- percent,- });-}--/// Publish the terminal event once the run finishes.-pub fn publish_completed(overall: OverallState, failed_required: bool) {- let overall_str = serde_json::to_value(overall)- .ok()- .and_then(|v| v.as_str().map(|s| s.to_string()))- .unwrap_or_default();- BUS.publish(DomainEvent::HarnessInitCompleted {- overall: overall_str,- failed_required,- });-}--#[cfg(test)]-#[path = "store_tests.rs"]-mod tests;diff --git a/crates/openhuman-core/src/agent/harness_init/store_tests.rs b/crates/openhuman-core/src/agent/harness_init/store_tests.rsdeleted file mode 100644index e5f8a4cb92..0000000000--- a/crates/openhuman-core/src/agent/harness_init/store_tests.rs+++ /dev/null@@ -1,11 +0,0 @@-use super::*;--#[test]-fn seed_snapshot_starts_idle_with_pending_steps() {- let snap = seed_snapshot();- assert_eq!(snap.overall, OverallState::Idle);- assert!(!snap.steps.is_empty());- assert!(snap.steps.iter().all(|s| s.state == StepState::Pending));- assert!(snap.started_at.is_none());- assert!(snap.finished_at.is_none());-}diff --git a/crates/openhuman-core/src/agent/harness_init/types.rs b/crates/openhuman-core/src/agent/harness_init/types.rsdeleted file mode 100644index fd54686625..0000000000--- a/crates/openhuman-core/src/agent/harness_init/types.rs+++ /dev/null@@ -1,81 +0,0 @@-//! Serde types for the harness-init status snapshot.-//!-//! These are the wire shapes returned by `openhuman.harness_init_status` /-//! `openhuman.harness_init_run` and consumed by the frontend initialization-//! screen. All enums serialize `snake_case` so the TypeScript side can match-//! on plain string literals.--use serde::{Deserialize, Serialize};--/// State of a single init step.-#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]-#[serde(rename_all = "snake_case")]-pub enum StepState {- /// Not started yet.- Pending,- /// Work in progress.- Running,- /// Completed successfully (or already provisioned).- Done,- /// A required step failed.- Failed,- /// A non-required step failed; the app proceeds with a fallback.- Skipped,-}--impl StepState {- /// A step in `Done`/`Failed`/`Skipped` will not change again this run.- pub fn is_terminal(self) -> bool {- matches!(self, Self::Done | Self::Failed | Self::Skipped)- }-}--/// Per-step status surfaced to the UI.-#[derive(Debug, Clone, Serialize, Deserialize)]-pub struct StepStatus {- /// Stable identifier, e.g. `"python_runtime"`.- pub id: String,- /// Human-readable label (the UI may prefer its own i18n key by `id`).- pub label: String,- /// Whether a failure of this step blocks the app. All steps are currently- /// non-required (their absence degrades to a fallback).- pub required: bool,- /// Current lifecycle state.- pub state: StepState,- /// Optional detail (error string, "already provisioned", etc.).- pub message: Option<String>,- /// Optional 0–100 progress hint; `None` for indeterminate steps.- pub percent: Option<u8>,- /// RFC3339 timestamp of the last state change.- pub updated_at: Option<String>,-}--/// Overall init lifecycle.-#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]-#[serde(rename_all = "snake_case")]-pub enum OverallState {- /// No run has started.- Idle,- /// At least one step is pending/running.- Running,- /// All steps reached a terminal state and no required step failed.- Done,- /// A required step failed.- Failed,-}--impl OverallState {- /// The UI stops polling / unblocks once the run is terminal.- pub fn is_terminal(self) -> bool {- matches!(self, Self::Done | Self::Failed)- }-}--/// Full snapshot returned over RPC.-#[derive(Debug, Clone, Serialize, Deserialize)]-pub struct HarnessInitSnapshot {- pub overall: OverallState,- pub steps: Vec<StepStatus>,- pub started_at: Option<String>,- pub finished_at: Option<String>,-}diff --git a/crates/openhuman-core/src/agent/mod.rs b/crates/openhuman-core/src/agent/mod.rsindex a75e899984..6acb781b57 100644--- a/crates/openhuman-core/src/agent/mod.rs+++ b/crates/openhuman-core/src/agent/mod.rs@@ -28,7 +28,6 @@ pub mod debug;pub mod error;pub mod goals;pub mod harness;-pub mod harness_init;pub mod hooks;/// Host-registered agents the core's own drivers (cron, workflow nodes) can/// resolve by id, with their definition, host tools and context.diff --git a/crates/openhuman-core/src/config/schema/load_env_overlay_tests.rs b/crates/openhuman-core/src/config/schema/load_env_overlay_tests.rsindex 7dcbb0c121..15c1de3882 100644--- a/crates/openhuman-core/src/config/schema/load_env_overlay_tests.rs+++ b/crates/openhuman-core/src/config/schema/load_env_overlay_tests.rs@@ -556,7 +556,7 @@ fn env_overlay_ignores_removed_local_ai_tier_var() {}/// A config.toml written while OpenHuman still downloaded local models carries-/// tier, quantization, preload, binary-path and download-URL keys under+/// tier, quantization, preload, binary-path, model-id and download-URL keys under/// `[local_ai]`. Those keys are no longer read, but such a file must still/// load with the user's endpoint and model choices intact.#[test]@@ -593,6 +593,23 @@ tts_config_download_url = "https://example.invalid/voice.onnx.json");assert_eq!(cfg.local_ai.chat_model_id, "llama3.1:8b");assert_eq!(cfg.local_ai.embedding_model_id, "bge-m3");+ let saved = toml::to_string(&cfg).expect("updated config serializes");+ for retired in [+ "quantization",+ "preload_vision_model",+ "preload_embedding_model",+ "preload_stt_model",+ "preload_tts_voice",+ "download_url",+ "stt_download_url",+ "tts_download_url",+ "tts_config_download_url",+ ] {+ assert!(+ !saved.contains(retired),+ "retired config key {retired} must not be written back"+ );+ }// The runtime projection carries only endpoint and model settings.let runtime = crate::inference::local_runtime_config(&cfg);diff --git a/crates/openhuman-core/src/config/schema/local_ai.rs b/crates/openhuman-core/src/config/schema/local_ai.rsindex 3a365136e1..8632e9d66f 100644--- a/crates/openhuman-core/src/config/schema/local_ai.rs+++ b/crates/openhuman-core/src/config/schema/local_ai.rs@@ -51,10 +51,9 @@ pub struct LocalAiConfig {pub vision_model_id: String,#[serde(default = "default_embedding_model_id")]pub embedding_model_id: String,+ /// Speech recognition model selector exposed by voice settings.#[serde(default = "default_stt_model_id")]pub stt_model_id: String,- #[serde(default = "default_stt_download_url")]- pub stt_download_url: Option<String>,/// Legacy voice STT routing string. `"cloud"` (the default) means "use/// `voice_server.stt_engine`"; a third-party `"<slug>[:<model>]"` overrides/// the engine outright. The local `"whisper"` value it once accepted is@@ -68,22 +67,6 @@ pub struct LocalAiConfig {/// local Piper via the `PIPER_BIN` env var.#[serde(default = "default_tts_provider")]pub tts_provider: String,- #[serde(default = "default_tts_download_url")]- pub tts_download_url: Option<String>,- #[serde(default = "default_tts_config_download_url")]- pub tts_config_download_url: Option<String>,- #[serde(default = "default_quantization")]- pub quantization: String,- #[serde(default = "default_preload_vision_model")]- pub preload_vision_model: bool,- #[serde(default = "default_preload_embedding_model")]- pub preload_embedding_model: bool,- #[serde(default = "default_preload_stt_model")]- pub preload_stt_model: bool,- #[serde(default = "default_preload_tts_voice")]- pub preload_tts_voice: bool,- #[serde(default = "default_download_url")]- pub download_url: Option<String>,#[serde(default = "default_autosummary_debounce_ms")]pub autosummary_debounce_ms: u64,#[serde(default)]@@ -125,18 +108,9 @@ impl std::fmt::Debug for LocalAiConfig {.field("vision_model_id", &self.vision_model_id).field("embedding_model_id", &self.embedding_model_id).field("stt_model_id", &self.stt_model_id)- .field("stt_download_url", &self.stt_download_url).field("stt_provider", &self.stt_provider).field("tts_voice_id", &self.tts_voice_id).field("tts_provider", &self.tts_provider)- .field("tts_download_url", &self.tts_download_url)- .field("tts_config_download_url", &self.tts_config_download_url)- .field("quantization", &self.quantization)- .field("preload_vision_model", &self.preload_vision_model)- .field("preload_embedding_model", &self.preload_embedding_model)- .field("preload_stt_model", &self.preload_stt_model)- .field("preload_tts_voice", &self.preload_tts_voice)- .field("download_url", &self.download_url).field("autosummary_debounce_ms", &self.autosummary_debounce_ms).field("selected_tier", &self.selected_tier).field("opt_in_confirmed", &self.opt_in_confirmed)@@ -175,7 +149,7 @@ fn default_embedding_model_id() -> String {}fn default_stt_model_id() -> String {- "ggml-base-q5_1.bin".to_string()+ "whisper-1".to_string()}fn default_tts_voice_id() -> String {@@ -190,51 +164,6 @@ fn default_tts_provider() -> String {"cloud".to_string()}-fn default_stt_download_url() -> Option<String> {- Some(- "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base-q5_1.bin?download=true"- .to_string(),- )-}--fn default_tts_download_url() -> Option<String> {- Some(- "https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_US/lessac/medium/en_US-lessac-medium.onnx?download=true"- .to_string(),- )-}--fn default_tts_config_download_url() -> Option<String> {- Some(- "https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_US/lessac/medium/en_US-lessac-medium.onnx.json?download=true"- .to_string(),- )-}--fn default_quantization() -> String {- "q4".to_string()-}--fn default_preload_vision_model() -> bool {- false-}--fn default_preload_embedding_model() -> bool {- true-}--fn default_preload_stt_model() -> bool {- false-}--fn default_preload_tts_voice() -> bool {- false-}--fn default_download_url() -> Option<String> {- None-}-fn default_autosummary_debounce_ms() -> u64 {2500}@@ -284,18 +213,9 @@ impl Default for LocalAiConfig {vision_model_id: default_vision_model_id(),embedding_model_id: default_embedding_model_id(),stt_model_id: default_stt_model_id(),- stt_download_url: default_stt_download_url(),stt_provider: default_stt_provider(),tts_voice_id: default_tts_voice_id(),tts_provider: default_tts_provider(),- tts_download_url: default_tts_download_url(),- tts_config_download_url: default_tts_config_download_url(),- quantization: default_quantization(),- preload_vision_model: default_preload_vision_model(),- preload_embedding_model: default_preload_embedding_model(),- preload_stt_model: default_preload_stt_model(),- preload_tts_voice: default_preload_tts_voice(),- download_url: default_download_url(),autosummary_debounce_ms: default_autosummary_debounce_ms(),selected_tier: None,opt_in_confirmed: false,diff --git a/crates/openhuman-core/src/core/README.md b/crates/openhuman-core/src/core/README.mdindex 8a516935a7..897f7ff8b3 100644--- a/crates/openhuman-core/src/core/README.md+++ b/crates/openhuman-core/src/core/README.md@@ -155,7 +155,7 @@ and the host is the one that knows `E`. [`events.rs`](./events.rs) is the event`DomainEvent`, a `#[non_exhaustive]` enum whose `domain()` value is appendedto `EVENTS_ROOT` (`/ai/tinyhumans/openhuman/events`) as the routing key.The catalog is published under `EVENTS_INTERFACE`-(`ai.tinyhumans.openhuman.Events`) at `EVENTS_VERSION`, currently `1.8.0`.+(`ai.tinyhumans.openhuman.Events`) at `EVENTS_VERSION`, currently `1.10.0`.`bus::init()` starts the in-process broker and announces a peer manifest(advisory; failure only logs). Every accessor is safe before `init`:@@ -411,10 +411,6 @@ surface.(`approval_gate_boot_decision`). `HostKind::detect_standalone` picks`Docker` from `/.dockerenv` or `OPENHUMAN_DOCKER=1`; the shell must pass`TauriShell` explicitly.-- `openhuman.harness_init_status` is in `KNOWN_PROBE_METHODS` because older- cores, narrowed `DomainSet`s and slim builds legitimately lack it, not- because it is retired. It is a live method, and a test pins that it is- registered in a full build.- `openhuman.auth_clear_session` is a legacy alias whose params get`kind: "session"` filled in during dispatch, preserving its session-onlycontract while the canonical method clears every kind by default.diff --git a/crates/openhuman-core/src/core/all.rs b/crates/openhuman-core/src/core/all.rsindex 9f1e197e0c..6743bfaebf 100644--- a/crates/openhuman-core/src/core/all.rs+++ b/crates/openhuman-core/src/core/all.rs@@ -403,12 +403,6 @@ fn build_registered_controllers() -> Vec<GroupedController> {DomainGroup::Platform,crate::core::subsystem::all_subsystems_registered_controllers(),);- // One-time first-run initialization (Python/Node provisioning)- push(- &mut controllers,- DomainGroup::Agent,- crate::agent::harness_init::all_harness_init_registered_controllers(),- );// Diagnostic toolspush(&mut controllers,diff --git a/crates/openhuman-core/src/core/all_tests.rs b/crates/openhuman-core/src/core/all_tests.rsindex 5c5df5ed1b..d9935c5897 100644--- a/crates/openhuman-core/src/core/all_tests.rs+++ b/crates/openhuman-core/src/core/all_tests.rs@@ -1282,7 +1282,6 @@ fn carved_out_families_report_their_own_group() {// Mis-tagged before the realignment: these live inside a named family// directory but answered `Platform`, so `harness()` registered nothing// for them despite claiming to enable their family.- ("harness_init", DomainGroup::Agent),("ai", DomainGroup::Agent),("auth", DomainGroup::Security),("devices", DomainGroup::Security),@@ -1328,7 +1327,6 @@ fn platform_holds_only_kernel_surfaces() {| "dashboard"| "notification"| "sandbox"- | "harness_init"| "ai"| "auth"| "devices"@@ -1340,21 +1338,12 @@ fn platform_holds_only_kernel_surfaces() {}}-/// `harness()` claims agent + memory + threads + config + security. Before the-/// realignment it silently dropped several of their namespaces into `Platform`,-/// most damagingly `harness_init` — an agent harness that never runs harness-/// init. This asserts the claim is now true.+/// `harness()` claims agent + memory + threads + config + security. This+/// asserts the enabled families are registered.#[test]fn harness_preset_registers_the_families_it_claims() {let harness = crate::core::runtime::DomainSet::harness();- for ns in [- "harness_init",- "ai",- "auth",- "devices",- "workspace",- "memory",- ] {+ for ns in ["ai", "auth", "devices", "workspace", "memory"] {let group =group_for_namespace(ns).unwrap_or_else(|| panic!("namespace `{ns}` is not registered"));assert!(@@ -1414,7 +1403,7 @@ fn embedded_preset_excludes_desktop_and_hosted() {// `tool_group()` (tools/ops.rs), `StoreInitPlan` and `DomainSubscriberPlan`.// Adding a variant compiles cleanly while leaving a tool ungated or a store// unkeyed — both of which actually happened during the realignment (#5332):-// `harness_init` stayed in Platform, and `people`'s store keyed on a different+// `people`'s store keyed on a different// group than its controllers, which would have served an RPC surface with no// store behind it. These tests close that gap.diff --git a/crates/openhuman-core/src/core/bus.rs b/crates/openhuman-core/src/core/bus.rsindex 9bf21bc78b..7ca75c3c20 100644--- a/crates/openhuman-core/src/core/bus.rs+++ b/crates/openhuman-core/src/core/bus.rs@@ -87,7 +87,8 @@ pub const EVENTS_INTERFACE: &str = "ai.tinyhumans.openhuman.Events";/// ingestion) and `CronSystemJobDue` (host-owned cron jobs)./// `1.9.0` adds an optional `agent_id` to `ApprovalRequested`,/// `ApprovalDecided` and `FlowApprovalRequested` (additive).-pub const EVENTS_VERSION: Version = Version::new(1, 9, 0);+/// `1.10.0` removes the first-run harness initialization progress events.+pub const EVENTS_VERSION: Version = Version::new(1, 10, 0);/// The bus. Initialised once by [`init`]; safe to touch before that.pub static BUS: OnceBus<DomainEvent> = OnceBus::new();diff --git a/crates/openhuman-core/src/core/dispatch.rs b/crates/openhuman-core/src/core/dispatch.rsindex 948a76c01e..0f69102ba7 100644--- a/crates/openhuman-core/src/core/dispatch.rs+++ b/crates/openhuman-core/src/core/dispatch.rs@@ -122,17 +122,6 @@ pub const UNKNOWN_METHOD_PREFIX: &str = "unknown method: ";/// This also covers retired feature calls from older clients when no safe/// canonical handler exists (#3565: `openhuman.memory_tree_create_namespace`).///-/// `openhuman.harness_init_status` (#5157) is in the list for a *different*-/// reason and must not be read as retired — it is a **live, registered**-/// method (`harness_init::all_harness_init_registered_controllers`, tagged-/// `DomainGroup::Platform`). It only misses when the caller and the running-/// core disagree about the surface: an older core behind a newer UI bundle, a-/// runtime `DomainSet` without `Platform` (e.g. `DomainSet::harness()`), or a-/// slim feature build. Those are legitimate configurations, not core defects,-/// so the miss stays debug-only — but do **not** delete the controller on the-/// strength of this entry. `harness_init_status_is_registered_in_a_full_build`-/// below pins that the method really is served, so a genuine regression fails-/// a test instead of being silently swallowed by this allow-list.////// Each miss previously produced recurring Sentry events with zero user/// impact. The transport layer keeps these debug-only (never captured). The@@ -145,7 +134,6 @@ const KNOWN_PROBE_METHODS: &[&str] = &["auth.status","config/get","openhuman.memory_tree_create_namespace",- "openhuman.harness_init_status",];/// Returns `true` when `method` is a known non-actionable unknown method namediff --git a/crates/openhuman-core/src/core/dispatch_tests.rs b/crates/openhuman-core/src/core/dispatch_tests.rsindex 10a14b6796..ef01dddf26 100644--- a/crates/openhuman-core/src/core/dispatch_tests.rs+++ b/crates/openhuman-core/src/core/dispatch_tests.rs@@ -122,7 +122,6 @@ fn is_known_probe_method_matches_allow_list_exactly() {"auth.status","config/get","openhuman.memory_tree_create_namespace",- "openhuman.harness_init_status",] {assert!(is_known_probe_method(m),@@ -139,27 +138,6 @@ fn is_known_probe_method_matches_allow_list_exactly() {assert!(!is_known_probe_method(""));}-/// `openhuman.harness_init_status` is allow-listed as a debug-only miss so-/// client/core surface skew stops paging Sentry (#5157) — but it is a-/// **live** method, not a retired one. That allow-list entry means a-/// genuine regression (controller dropped from the registry) would go-/// completely silent: no error, no warn, no Sentry event. This test is the-/// replacement signal — if the method stops being served in a full build,-/// this fails instead of the regression shipping unnoticed.-#[test]-fn harness_init_status_is_registered_in_a_full_build() {- let served: Vec<String> = crate::core::all::all_controller_schemas()- .iter()- .map(crate::core::all::rpc_method_name)- .collect();- assert!(- served.iter().any(|m| m == "openhuman.harness_init_status"),- "harness_init_status must remain a registered controller — it is \- allow-listed in KNOWN_PROBE_METHODS for client/core skew only, so \- losing the real handler would be silently swallowed"- );-}-#[tokio::test]#[cfg(feature = "channels")]async fn dispatch_dotted_channel_list_aliases_route_to_registry() {diff --git a/crates/openhuman-core/src/core/domain_group.rs b/crates/openhuman-core/src/core/domain_group.rsindex bde765f420..43820a4136 100644--- a/crates/openhuman-core/src/core/domain_group.rs+++ b/crates/openhuman-core/src/core/domain_group.rs@@ -26,10 +26,9 @@/// of a family to name. That made two things wrong which are now fixed:////// - `harness()` claimed "agent + memory + threads + config + security" but-/// silently dropped `agent::{harness_init, artifacts, learning}`,+/// silently dropped `agent::{artifacts, learning}`,/// `security::{credentials, devices}`, `config::workspace`,/// `memory::people` and `skills::webhooks`, all of which sat in `Platform`.-/// An agent harness that does not register `harness_init` is a latent bug./// - `embedded()` had to set `platform: true` purely to reach credentials and/// config, which dragged in the desktop and hosted-backend surfaces it has no/// use for. Those are now `Desktop` and `Hosted` and stay off.diff --git a/crates/openhuman-core/src/core/events.rs b/crates/openhuman-core/src/core/events.rsindex edfe2e3608..e2fdf3a062 100644--- a/crates/openhuman-core/src/core/events.rs+++ b/crates/openhuman-core/src/core/events.rs@@ -1222,21 +1222,6 @@ pub enum DomainEvent {},/// A component restart was observed.HealthRestarted { component: String },- /// A one-time harness-init step changed state (pending → running → done /- /// failed / skipped). Surfaced to the frontend initialization screen.- HarnessInitProgress {- step_id: String,- state: String,- message: Option<String>,- percent: Option<u8>,- },- /// The harness-init run reached a terminal state. `failed_required` is true- /// only when a *required* step failed (no required steps today).- HarnessInitCompleted {- overall: String,- failed_required: bool,- },-// ── Keyring ─────────────────────────────────────────────────────────/// The OS keyring is unavailable and no user consent for local fallback/// has been recorded. Published once (deduplicated) when a secret@@ -1439,9 +1424,7 @@ impl DomainEvent {| Self::AgentPathsChanged| Self::ActiveWorkspaceChanged { .. }| Self::HealthChanged { .. }- | Self::HealthRestarted { .. }- | Self::HarnessInitProgress { .. }- | Self::HarnessInitCompleted { .. } => "system",+ | Self::HealthRestarted { .. } => "system",Self::KeyringConsentRequired | Self::KeyringDecryptFailed { .. } => "keyring",@@ -1568,8 +1551,6 @@ impl DomainEvent {Self::ActiveWorkspaceChanged { .. } => "ActiveWorkspaceChanged",Self::HealthChanged { .. } => "HealthChanged",Self::HealthRestarted { .. } => "HealthRestarted",- Self::HarnessInitProgress { .. } => "HarnessInitProgress",- Self::HarnessInitCompleted { .. } => "HarnessInitCompleted",Self::KeyringConsentRequired => "KeyringConsentRequired",Self::KeyringDecryptFailed { .. } => "KeyringDecryptFailed",Self::SessionExpired { .. } => "SessionExpired",diff --git a/crates/openhuman-core/src/core/runtime/boot_guard.rs b/crates/openhuman-core/src/core/runtime/boot_guard.rsindex 3ff5705f4b..56e5392f80 100644--- a/crates/openhuman-core/src/core/runtime/boot_guard.rs+++ b/crates/openhuman-core/src/core/runtime/boot_guard.rs@@ -373,7 +373,7 @@ fn root_problem(root: &Path, home: Option<&Path>) -> Option<String> {None}-fn service_flags(s: &ServiceSet) -> [(&'static str, bool); 12] {+fn service_flags(s: &ServiceSet) -> [(&'static str, bool); 11] {[("rpc_http", s.rpc_http),("socketio", s.socketio),@@ -382,7 +382,6 @@ fn service_flags(s: &ServiceSet) -> [(&'static str, bool); 12] {("login_gated", s.login_gated),("update_scheduler", s.update_scheduler),("memory_queue", s.memory_queue),- ("harness_init", s.harness_init),("skill_catalog_refresh", s.skill_catalog_refresh),("mcp_boot", s.mcp_boot),("integrations", s.integrations),diff --git a/crates/openhuman-core/src/core/runtime/bootstrap.rs b/crates/openhuman-core/src/core/runtime/bootstrap.rsindex 12cdee27a5..53c6166c8e 100644--- a/crates/openhuman-core/src/core/runtime/bootstrap.rs+++ b/crates/openhuman-core/src/core/runtime/bootstrap.rs@@ -390,12 +390,6 @@ pub(crate) async fn start_core_runtime_services(};// Long-lived bootstrap loops selected by ServiceSet.- // One-time first-run initialization (managed Python runtime, Kompress,- // managed Node runtime). Spawned AFTER subscribers are live but does NOT- // block the ready signal — the core becomes RPC-ready immediately and the- // frontend watches per-step progress via `openhuman.harness_init_status`.- // On a warm host every step's `is_done` probe passes and this settles- // instantly. See `crate::agent::harness_init`.crate::core::runtime::services::start_boot_once_jobs(services, cfg).await;// Long-lived bootstrap loops selected by ServiceSet. These start onlydiff --git a/crates/openhuman-core/src/core/runtime/builder.rs b/crates/openhuman-core/src/core/runtime/builder.rsindex 2ca7430def..4779bff014 100644--- a/crates/openhuman-core/src/core/runtime/builder.rs+++ b/crates/openhuman-core/src/core/runtime/builder.rs@@ -51,8 +51,6 @@ pub struct ServiceSet {pub update_scheduler: bool,/// Start memory queue workers during runtime bootstrap.pub memory_queue: bool,- /// Run one-shot harness initialization during runtime bootstrap.- pub harness_init: bool,/// Refresh the skill catalog during runtime bootstrap.pub skill_catalog_refresh: bool,/// Boot installed MCP servers and supervise reconnects during runtime bootstrap.@@ -74,7 +72,6 @@ impl ServiceSet {login_gated: true,update_scheduler: true,memory_queue: true,- harness_init: true,skill_catalog_refresh: true,mcp_boot: true,integrations: true,@@ -93,7 +90,6 @@ impl ServiceSet {login_gated: false,update_scheduler: false,memory_queue: false,- harness_init: false,skill_catalog_refresh: false,mcp_boot: false,integrations: false,@@ -112,7 +108,6 @@ impl ServiceSet {login_gated: false,update_scheduler: false,memory_queue: false,- harness_init: false,skill_catalog_refresh: false,mcp_boot: false,integrations: false,@@ -141,7 +136,6 @@ impl ServiceSet {login_gated: true,update_scheduler: false,memory_queue: true,- harness_init: true,skill_catalog_refresh: true,mcp_boot: false,integrations: false,diff --git a/crates/openhuman-core/src/core/runtime/builder_tests.rs b/crates/openhuman-core/src/core/runtime/builder_tests.rsindex 4bbbddd2d3..c6c59bb68c 100644--- a/crates/openhuman-core/src/core/runtime/builder_tests.rs+++ b/crates/openhuman-core/src/core/runtime/builder_tests.rs@@ -141,7 +141,6 @@ fn embedded_service_set_binds_no_transport() {// But a long-lived operator session still wants background work.assert!(services.cron);assert!(services.login_gated);- assert!(services.harness_init);assert!(services.memory_sync);}@@ -151,14 +150,12 @@ fn boot_jobs_are_independent_from_runtime_service_flags() {custom.rpc_http = true;custom.login_gated = true;custom.update_scheduler = true;- assert!(!custom.harness_init);assert!(!custom.skill_catalog_refresh);assert!(!custom.mcp_boot);assert!(!custom.integrations);assert!(!custom.memory_sync);let desktop = ServiceSet::desktop();- assert!(desktop.harness_init);assert!(desktop.skill_catalog_refresh);assert!(desktop.mcp_boot);assert!(desktop.integrations);diff --git a/crates/openhuman-core/src/core/runtime/services.rs b/crates/openhuman-core/src/core/runtime/services.rsindex 07cbaf7cd4..55dba8991b 100644--- a/crates/openhuman-core/src/core/runtime/services.rs+++ b/crates/openhuman-core/src/core/runtime/services.rs@@ -426,15 +426,6 @@ pub async fn start_boot_once_jobs(services: ServiceSet, config: &Config) {// `CoreBuilder::build`, which every runtime goes through — these jobs only// run from `serve()`, so a build-only embedder would never be swept.- if services.harness_init {- let cfg_for_init = config.clone();- tokio::spawn(async move {- crate::agent::harness_init::run_harness_init(cfg_for_init).await;- });- } else {- log::debug!("[runtime] harness init disabled by ServiceSet");- }-if services.skill_catalog_refresh {crate::skills::catalog::ops::start_boot_catalog_refresh();} else {diff --git a/crates/openhuman-core/src/mcp/mod.rs b/crates/openhuman-core/src/mcp/mod.rsindex 42cae169e1..19d9dc6da5 100644--- a/crates/openhuman-core/src/mcp/mod.rs+++ b/crates/openhuman-core/src/mcp/mod.rs@@ -73,8 +73,8 @@ pub fn start(_config: &crate::config::Config) {}/// Boots the domain from the runtime's startup path.///-/// This is MCP's one entry in `start_boot_once_jobs`, the way `harness_init`-/// and the skill-catalog refresh each have theirs. The orchestration here —+/// This is MCP's one entry in `start_boot_once_jobs`, alongside the+/// skill-catalog refresh. The orchestration here —/// that the service must exist before installed servers can dial it, and that/// the reconnect supervisor must run until the process ends — is this domain's/// own, and the `Once` guard on the supervisor keeps a repeated boot fromdiff --git a/crates/openhuman-core/src/platform/about_app/catalog_localai_settings_mobile.rs b/crates/openhuman-core/src/platform/about_app/catalog_localai_settings_mobile.rsindex 794796629d..6776a0be4f 100644--- a/crates/openhuman-core/src/platform/about_app/catalog_localai_settings_mobile.rs+++ b/crates/openhuman-core/src/platform/about_app/catalog_localai_settings_mobile.rs@@ -66,17 +66,6 @@ Capability {status: CapabilityStatus::Beta,privacy: None,},-Capability {- id: "local_ai.python_runtime_installer",- name: "Managed Python Runtime",- domain: "runtime_python",- category: CapabilityCategory::LocalAI,- description:- "Download and reuse an OpenHuman-managed CPython runtime for Python-backed local integrations such as MCP servers, with a system-Python override reserved for development.",- how_to: "Configured by the core `runtime_python` module; future UI surfaces can expose install state and overrides.",- status: CapabilityStatus::Beta,- privacy: MODEL_DOWNLOAD,- },Capability {id: "settings.configure_ai",name: "Configure AI",diff --git a/crates/openhuman-core/src/platform/about_app/catalog_tests.rs b/crates/openhuman-core/src/platform/about_app/catalog_tests.rsindex e35b8c259a..c54aa412bf 100644--- a/crates/openhuman-core/src/platform/about_app/catalog_tests.rs+++ b/crates/openhuman-core/src/platform/about_app/catalog_tests.rs@@ -433,6 +433,7 @@ fn local_ai_catalog_does_not_advertise_model_downloads_or_installers() {"local_ai.download_model","local_ai.manage_model_assets","local_ai.piper_installer",+ "local_ai.python_runtime_installer",] {assert!(lookup(removed).is_none(), "`{removed}` is still advertised");}diff --git a/crates/openhuman-core/src/runtime/README.md b/crates/openhuman-core/src/runtime/README.mdindex 3bb6de72b1..be48cccbe9 100644--- a/crates/openhuman-core/src/runtime/README.md+++ b/crates/openhuman-core/src/runtime/README.md@@ -16,7 +16,7 @@ answers and adapts them onto the types the rest of the core already uses```texttools/impl/system (node_exec, npm_exec, python_exec, shell)- skills runtime, agent harness_init, flows oh: backend, tokenjuice ml+ skills runtime, flows oh: backend, tokenjuice ml| | | |v v v vruntime::node runtime::python runtime::pool runtime::python_serverdiff --git a/crates/openhuman-core/src/runtime/node/README.md b/crates/openhuman-core/src/runtime/node/README.mdindex b3bccaee57..d0bd5d8d43 100644--- a/crates/openhuman-core/src/runtime/node/README.md+++ b/crates/openhuman-core/src/runtime/node/README.md@@ -117,8 +117,6 @@ crate: those went with the machinery.- `crates/openhuman-core/src/tools/impl/system/{node_exec,npm_exec,shell}.rs`: hold an`Arc<NodeBootstrap>`; the exec tools call `resolve()`, `shell` uses thenon-blocking `try_cached()`.-- `crates/openhuman-core/src/agent/harness_init/registry.rs`: the `node_runtime` init step- uses `probe_installed()` to decide whether provisioning is visible work.- `crates/openhuman-core/src/core/all.rs`: registers the `javascript.*` controllers.## Notes / gotchasdiff --git a/crates/openhuman-core/src/runtime/python/README.md b/crates/openhuman-core/src/runtime/python/README.mdindex 1fe19ed4e6..d6a710cc2e 100644--- a/crates/openhuman-core/src/runtime/python/README.md+++ b/crates/openhuman-core/src/runtime/python/README.md@@ -46,8 +46,6 @@ client, no archive crates, no `walkdir`, no `fs2`: those went with the pipeline.non-blocking `try_cached()` for `PATH` injection.- `crates/openhuman-core/src/skills/runtime/ops.rs`: resolves an interpreter forPython-backed skills.-- `crates/openhuman-core/src/agent/harness_init/registry.rs`: the Python init step uses- `probe_installed()` to decide whether provisioning is visible work.## Notes / gotchasdiff --git a/crates/openhuman-core/src/runtime/python_server/README.md b/crates/openhuman-core/src/runtime/python_server/README.mdindex 2cf11f8bf2..31759f30fe 100644--- a/crates/openhuman-core/src/runtime/python_server/README.md+++ b/crates/openhuman-core/src/runtime/python_server/README.md@@ -122,7 +122,7 @@ stderr is drained continuously by a background task and only logged at(`pip install spacy click`, `python -m spacy download en_core_web_sm`),tracked by a versioned ready marker (`SPACY_READY_MARKER_VERSION`) so apackage-set change forces re-provisioning; `spacy_provisioned` is a cheap,-network-free check used by `harness_init`. `extract` sends `spacy.extract` and+network-free readiness check. `extract` sends `spacy.extract` andreturns the shared `tinymemory_api::host::SpacyResponse` type. Called from`modules::memory_host` for the memory tree's query extractor.@@ -144,9 +144,7 @@ don't race the same venv build.is returned by `status()` and reflects the cache directly: `Empty` reports`disabled`, `Failed` reports the last error, `Ready` reports each backend's`ready` flag from the worker's handshake `backends` list. There is no public-RPC method for this; `crates/openhuman-core/src/agent/harness_init/registry.rs`-reads `status().running` to decide whether the `runtime_python_server` init-step is done.+RPC method for this.## Persistence@@ -172,8 +170,6 @@ sent, not here.## Used by-- `crates/openhuman-core/src/agent/harness_init/registry.rs`: the `runtime_python_server`- and `kompress` init steps.- `crates/openhuman-core/src/inference/tokenjuice/ml/mod.rs`: `request_kompress` forplain-text compression.diff --git a/crates/openhuman-embed/examples/README.md b/crates/openhuman-embed/examples/README.mdindex c24342786b..9922e16ac6 100644--- a/crates/openhuman-embed/examples/README.md+++ b/crates/openhuman-embed/examples/README.md@@ -13,6 +13,7 @@- [A per-agent post-turn hook observes completed turns](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/hooks.rs): A per-agent post-turn hook observes completed turns. (offline; optional live via OPENHUMAN_EXAMPLE_LIVE=1 and BASE_URL/API_KEY/MODEL.)- [Host tools and HostOnly keep the advertised tool catalog exact](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/host_tools.rs): Host tools and HostOnly keep the advertised tool catalog exact. (offline with loopback stubs; no live path.)- [Lean runtime without background services](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/lean_headless.rs): Lean runtime without background services. (offline with loopback stubs; optional live via OPENHUMAN_EXAMPLE_LIVE.)+- [Linux agent fleet memory and latency](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/linux_fleet.rs): Measure retained runtime-owned agents using loopback inference and two worker threads. (offline on Linux; use a fresh constrained cgroup for release measurements.)- [Connect an actual MCP protocol stub over loopback](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/mcp.rs): Connect an actual MCP protocol stub over loopback. (offline with loopback stubs; no live path.; feature: mcp)- [Tenant scoped memory facade with an in-memory engine](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/memory.rs): Tenant scoped memory facade with an in-memory engine. (offline with loopback stubs; no live path.)- [SaaS profiles isolate conversation history](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/profiles.rs): SaaS profiles isolate conversation history. (offline with loopback stubs; no live path.)diff --git a/crates/openhuman-embed/src/runtime/README.md b/crates/openhuman-embed/src/runtime/README.mdindex edf3205eb8..c60ea5d8dd 100644--- a/crates/openhuman-embed/src/runtime/README.md+++ b/crates/openhuman-embed/src/runtime/README.md@@ -14,7 +14,7 @@ for what many agents on one runtime cost in memory.`RuntimeBuilder::new()` starts from safe defaults: an ephemeral workspace,`Provider::inherit()`, `Access::supervised()`, `HostKind::Library`, only the-`harness_init` background service, and `DomainSet::embedded()` plus `mcp` and+no background services by default, and `DomainSet::embedded()` plus `mcp` and`skills` when those features are compiled in. `build()` then runs these stepsin order:diff --git a/crates/openhuman-embed/src/runtime/builder.rs b/crates/openhuman-embed/src/runtime/builder.rsindex 3127c514d2..b68ce6fed3 100644--- a/crates/openhuman-embed/src/runtime/builder.rs+++ b/crates/openhuman-embed/src/runtime/builder.rs@@ -30,13 +30,9 @@ use crate::Session;// the default triples through this module.pub(crate) use super::build::apply_provider;-/// Whether `services` asks for any background work beyond the one-shot-/// harness init, which a library runtime has never started on its own.+/// Whether `services` asks for any background work.pub(crate) fn requests_background_services(services: ServiceSet) -> bool {- ServiceSet {- harness_init: false,- ..services- } != ServiceSet::none()+ services != ServiceSet::none()}#[cfg(test)]@@ -347,12 +343,12 @@ impl RuntimeBuilder {/// Override which background services run.///- /// The library default is deliberately minimal (only the harness init- /// step): cron, the login-gated services and the memory queue each write+ /// The library default is deliberately minimal (no services): cron, the+ /// login-gated services and the memory queue each write/// to the workspace on their own schedule, turning a library call into a/// background process the caller did not ask for.///- /// A set that selects anything beyond `harness_init` (`cron: true` to let+ /// A set that selects background work (`cron: true` to let/// [`crate::Runtime::cron`] jobs fire on their own, say) is started by/// [`build`](Self::build) and stopped when the runtime drops; see/// [`crate::Runtime::start_services`] / [`crate::Runtime::stop_services`]. Starting isdiff --git a/crates/openhuman-embed/src/runtime/builder_tests.rs b/crates/openhuman-embed/src/runtime/builder_tests.rsindex 7ca6b78de9..92900dcfe7 100644--- a/crates/openhuman-embed/src/runtime/builder_tests.rs+++ b/crates/openhuman-embed/src/runtime/builder_tests.rs@@ -59,7 +59,6 @@ fn default_services_start_no_background_writers() {// own schedule. A library call that started them would become a background// process the caller never asked for.let services = default_services();- assert!(services.harness_init, "the agent harness must be prepared");assert!(!services.cron);assert!(!services.login_gated);assert!(!services.memory_sync);@@ -91,7 +90,7 @@ async fn a_blank_api_key_is_refused_before_the_slot_is_claimed() {}#[test]-fn only_services_beyond_harness_init_start_background_work() {+fn only_selected_services_start_background_work() {assert!(!requests_background_services(default_services()));assert!(!requests_background_services(ServiceSet::none()));assert!(requests_background_services(ServiceSet {diff --git a/crates/openhuman-embed/src/runtime/info.rs b/crates/openhuman-embed/src/runtime/info.rsindex b50bbf984d..66ed2b9d88 100644--- a/crates/openhuman-embed/src/runtime/info.rs+++ b/crates/openhuman-embed/src/runtime/info.rs@@ -228,7 +228,6 @@ fn make_info(("login_gated", services.login_gated),("update_scheduler", services.update_scheduler),("memory_queue", services.memory_queue),- ("harness_init", services.harness_init),("skill_catalog_refresh", services.skill_catalog_refresh),("mcp_boot", services.mcp_boot),("integrations", services.integrations),diff --git a/crates/openhuman-embed/src/runtime/info_tests.rs b/crates/openhuman-embed/src/runtime/info_tests.rsindex 947b3137d4..9a9673d709 100644--- a/crates/openhuman-embed/src/runtime/info_tests.rs+++ b/crates/openhuman-embed/src/runtime/info_tests.rs@@ -116,7 +116,7 @@ fn presets_report_consistent_module_weight_and_optional_gates() {assert!(full.modules.contains(&module));}assert!(full.services.contains(&"cron".into()));- assert!(lean.services.iter().all(|s| s == "harness_init"));+ assert!(lean.services.is_empty());assert!(!lean.domains.contains(&"modules".into()));assert!(!lean.domains.contains(&"flows".into()));for info in [diff --git a/crates/openhuman-embed/src/runtime/mod.rs b/crates/openhuman-embed/src/runtime/mod.rsindex 576e65c9a4..281449a3c5 100644--- a/crates/openhuman-embed/src/runtime/mod.rs+++ b/crates/openhuman-embed/src/runtime/mod.rs@@ -431,7 +431,7 @@ impl Runtime {/// Start the background services this runtime's [`ServiceSet`] selects/// (the cron scheduler, channel listeners, …). [`RuntimeBuilder::build`]- /// already does this when the set asks for more than `harness_init`; call+ /// already does this when the set asks for background work; call/// it after [`stop_services`](Self::stop_services) to restart them./// Idempotent while they run.pub async fn start_services(&self) {diff --git a/crates/openhuman-embed/src/runtime/presets.rs b/crates/openhuman-embed/src/runtime/presets.rsindex e180e66cfd..fbe897dd96 100644--- a/crates/openhuman-embed/src/runtime/presets.rs+++ b/crates/openhuman-embed/src/runtime/presets.rs@@ -6,7 +6,7 @@//!//! | Preset | HostKind | DomainSet | ServiceSet | Workspace / config |//! |---|---|---|---|---|-//! | [`library`](RuntimeBuilder::library) | `Library` | `embedded` (+`mcp`/`skills` when compiled) | `harness_init` only | ephemeral, [`Resolved`](ConfigSource::Resolved) |+//! | [`library`](RuntimeBuilder::library) | `Library` | `embedded` (+`mcp`/`skills` when compiled) | none | ephemeral, [`Resolved`](ConfigSource::Resolved) |//! | [`desktop`](RuntimeBuilder::desktop) | `TauriShell` | `full` | `desktop` | inherit, [`Discovered`](ConfigSource::Discovered) |//! | [`cli`](RuntimeBuilder::cli) | `detect_standalone()` | `full` | `desktop` | inherit, `Discovered` |//! | [`tui`](RuntimeBuilder::tui) | `detect_standalone()` | `full` | `none` | inherit, `Discovered` |@@ -104,12 +104,9 @@ pub(crate) fn default_domains() -> DomainSet {domains}-/// Background services a library runtime runs by default: only `harness_init`.+/// Background services a library runtime runs by default: none.pub(crate) fn default_services() -> ServiceSet {- ServiceSet {- harness_init: true,- ..ServiceSet::none()- }+ ServiceSet::none()}#[cfg(test)]diff --git a/crates/openhuman-embed/src/runtime/presets_tests.rs b/crates/openhuman-embed/src/runtime/presets_tests.rsindex b11131423e..d2c933525a 100644--- a/crates/openhuman-embed/src/runtime/presets_tests.rs+++ b/crates/openhuman-embed/src/runtime/presets_tests.rs@@ -87,7 +87,6 @@ fn library_defaults_start_no_background_writers() {assert_eq!(default_services(),ServiceSet {- harness_init: true,..ServiceSet::none()});diff --git a/crates/openhuman-embed/src/runtime/selection.rs b/crates/openhuman-embed/src/runtime/selection.rsindex 30ab123ced..a44216ee3c 100644--- a/crates/openhuman-embed/src/runtime/selection.rs+++ b/crates/openhuman-embed/src/runtime/selection.rs@@ -134,7 +134,6 @@ impl RuntimeBuilder {let mut builder = Self::new().modules(modules).weight(WeightClass::Full);let domains = builder.domains.unwrap();builder.services = Some(ServiceSet {- harness_init: true,cron: domains.automation,channels: domains.channels,integrations: domains.integrations,@@ -213,7 +212,6 @@ impl RuntimeBuilder {self.domains = Some(d);self.tool_groups = Some(g);self.services = Some(ServiceSet {- harness_init: d.agent,skill_catalog_refresh: d.skills,mcp_boot: d.mcp,..ServiceSet::none()diff --git a/crates/openhuman-rpc/src/server/socketio.rs b/crates/openhuman-rpc/src/server/socketio.rsindex 772611ca20..ced3cd6510 100644--- a/crates/openhuman-rpc/src/server/socketio.rs+++ b/crates/openhuman-rpc/src/server/socketio.rs@@ -869,30 +869,6 @@ pub fn spawn_web_channel_bridge(io: SocketIo) {break;};match event {- crate::core_host::core::events::DomainEvent::HarnessInitProgress {- step_id,- state,- message,- percent,- } => {- let payload = serde_json::json!({- "step_id": step_id,- "state": state,- "message": message,- "percent": percent,- });- let _ = io_memory_sync.emit("init:progress", &payload);- }- crate::core_host::core::events::DomainEvent::HarnessInitCompleted {- overall,- failed_required,- } => {- let payload = serde_json::json!({- "overall": overall,- "failed_required": failed_required,- });- let _ = io_memory_sync.emit("init:completed", &payload);- }// Live per-step progress of an in-flight flow run (issue G2).// Best-effort: the durable `flow_runs` row is the source of// truth and the Workflows UI keeps a 2s poller as fallback, sodiff --git a/crates/openhuman-rpc/tests/host_desktop.rs b/crates/openhuman-rpc/tests/host_desktop.rsindex da46f41c80..f633684f31 100644--- a/crates/openhuman-rpc/tests/host_desktop.rs+++ b/crates/openhuman-rpc/tests/host_desktop.rs@@ -21,7 +21,6 @@ fn http_only() -> ServiceSet {login_gated: false,update_scheduler: false,memory_queue: false,- harness_init: false,skill_catalog_refresh: false,mcp_boot: false,integrations: false,diff --git a/docs/TEST-COVERAGE-MATRIX.md b/docs/TEST-COVERAGE-MATRIX.mdindex 96872f4804..1b50b3bd02 100644--- a/docs/TEST-COVERAGE-MATRIX.md+++ b/docs/TEST-COVERAGE-MATRIX.md@@ -45,7 +45,6 @@ Canonical mapping of every product feature to its test source(s). Drives gap-fil| 0.2.2 | Gatekeeper Validation | MS | release-manual-smoke | 🚫 | OS-level signature check || 0.2.3 | Code Signing Verification | MS | release-manual-smoke | 🚫 | `codesign --verify` capture in checklist || 0.2.4 | First Launch Permissions Prompt | MS | release-manual-smoke | 🚫 | TCC prompts non-driver-automatable |-| 0.2.5 | First-Run Harness Init (Python/spaCy/Node) | RU+RI+VU | `crates/openhuman-core/src/agent/harness_init/*` (`#[cfg(test)]`), `crates/openhuman-core/src/runtime/python/bootstrap_tests.rs`, `tests/json_rpc_e2e.rs`, `app/src/services/harnessInitService.test.ts`, `app/src/components/InitProgressScreen/InitProgressScreen.test.tsx` | ✅ | Eager startup provisioning + `harness_init_status`/`_run` RPC + blocking init overlay; managed CPython pinned to 3.13.x. Live download/model fetch is `MS` (network) |### 0.3 Updates & Reinstallationdiff --git a/docs/gitbooks/en/developing/embed/api-index.json b/docs/gitbooks/en/developing/embed/api-index.jsonindex 76919ff831..109c1d3601 100644--- a/docs/gitbooks/en/developing/embed/api-index.json+++ b/docs/gitbooks/en/developing/embed/api-index.json@@ -76,6 +76,7 @@"ModelDefaults","OpenError","PendingApproval",+ "PermissionFuture","PermissionLevel","PickListenPortError","ProfileError",@@ -126,6 +127,7 @@"TrustedAccess","TrustedAutomationSource","Turn",+ "TurnCancellation","TurnContext","TurnOutcome","TurnRequest",@@ -136,6 +138,8 @@"absolute","agent_progress","artifacts",+ "budget",+ "cancellation","channels","chat_surface","complete",@@ -143,75 +147,80 @@"cron","embeddings","events",+ "fanout","identity","install_backend_transport","installed_backend_transport","memory","modules",+ "observe","process","profiles","providers",+ "repository",+ "routing","run_from_args","schema_for_rpc_method","seams","session_store","skill_registry",- "stream"+ "stream",+ "structured"],"builder_setters": [{"name": "access","signature": "pub fn access(mut self, access: Access) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 343+ "line": 339},{"name": "action_dir","signature": "pub fn action_dir(mut self, dir: impl Into<PathBuf>) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 300+ "line": 296},{"name": "agent_defaults","signature": "pub fn agent_defaults(mut self, defaults: super::AgentDefaults) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 151+ "line": 147},{"name": "api_key","signature": "pub fn api_key(mut self, key: impl Into<ApiKey>) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 320+ "line": 316},{"name": "autonomy","signature": "pub fn autonomy(mut self, value: openhuman_core::config::schema::AutonomyConfig) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 186+ "line": 182},{"name": "backend_transport","signature": "pub fn backend_transport(mut self, transport: Arc<dyn BackendTransport>) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 225+ "line": 221},{"name": "backend_url","signature": "pub fn backend_url(mut self, url: impl Into<String>) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 330+ "line": 326},{"name": "config","signature": "pub fn config(mut self, config: Config) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 444+ "line": 440},{"name": "config_source","signature": "pub fn config_source(mut self, source: ConfigSource) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 308+ "line": 304},{"name": "controller_extension",@@ -223,49 +232,49 @@"name": "cron","signature": "pub fn cron(mut self, value: openhuman_core::config::schema::CronConfig) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 211+ "line": 207},{"name": "definition_base","signature": "pub fn definition_base(mut self, definition: crate::AgentDefinitionSpec) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 170+ "line": 166},{"name": "domains","signature": "pub fn domains(mut self, domains: DomainSet) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 374+ "line": 370},{"name": "host_kind","signature": "pub fn host_kind(mut self, host_kind: HostKind) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 391+ "line": 387},{"name": "learning","signature": "pub fn learning(mut self, value: super::LearningSettings) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 206+ "line": 202},{"name": "listen","signature": "pub fn listen(self, host: impl Into<String>, port: u16) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 413+ "line": 409},{"name": "listen_host","signature": "pub fn listen_host(mut self, host: impl Into<String>) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 418+ "line": 414},{"name": "listen_port","signature": "pub fn listen_port(mut self, port: u16) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 424+ "line": 420},{"name": "live_policy",@@ -277,31 +286,31 @@"name": "max_agents","signature": "pub fn max_agents(mut self, limit: usize) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 263+ "line": 259},{"name": "mcp_baseline","signature": "pub fn mcp_baseline(mut self, servers: impl IntoIterator<Item = crate::McpServer>) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 181+ "line": 177},{"name": "memory_engine","signature": "pub fn memory_engine(mut self, engine: Arc<dyn tinymemory_api::MemoryEngine>) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 239+ "line": 235},{"name": "model_defaults","signature": "pub fn model_defaults(mut self, model: super::ModelDefaults) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 160+ "line": 156},{"name": "modules","signature": "pub fn modules(mut self, modules: impl IntoIterator<Item = RuntimeModule>) -> Self","source": "crates/openhuman-embed/src/runtime/selection.rs",- "line": 156+ "line": 155},{"name": "post_turn_hook",@@ -313,25 +322,25 @@"name": "privacy","signature": "pub fn privacy(mut self, value: openhuman_core::config::schema::PrivacyConfig) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 196+ "line": 192},{"name": "provider","signature": "pub fn provider(mut self, provider: Provider) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 336+ "line": 332},{"name": "sandbox","signature": "pub fn sandbox(mut self, mode: crate::SandboxModeSpec) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 165+ "line": 161},{"name": "secrets","signature": "pub fn secrets(mut self, value: openhuman_core::config::schema::SecretsConfig) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 201+ "line": 197},{"name": "server_launcher",@@ -343,25 +352,25 @@"name": "services","signature": "pub fn services(mut self, services: ServiceSet) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 362+ "line": 358},{"name": "session","signature": "pub fn session(mut self, session: Session) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 434+ "line": 430},{"name": "session_store","signature": "pub fn session_store(mut self, provider: Arc<dyn SessionStoreProvider>) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 254+ "line": 250},{"name": "skills","signature": "pub fn skills(mut self, policy: super::SkillsPolicy) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 175+ "line": 171},{"name": "storage",@@ -373,13 +382,13 @@"name": "token","signature": "pub fn token(mut self, token: TokenSource) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 401+ "line": 397},{"name": "tool_groups","signature": "pub fn tool_groups(mut self, tool_groups: ToolGroups) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 383+ "line": 379},{"name": "tool_hook",@@ -397,19 +406,19 @@"name": "tool_rules","signature": "pub fn tool_rules(mut self, value: tinytools::ToolRules) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 191+ "line": 187},{"name": "workspace","signature": "pub fn workspace(mut self, workspace: Workspace) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 273+ "line": 269},{"name": "workspace_dir","signature": "pub fn workspace_dir(mut self, dir: impl Into<PathBuf>) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 287+ "line": 283}],"capabilities": {@@ -435,7 +444,7 @@"skills": true,"storage-file": false,"storage-mongodb": false,- "storage-sqlite": false,+ "storage-sqlite": true,"tinymemes": true,"voice": false,"web3": false,@@ -456,9 +465,7 @@"runtimes","platform"],- "services": [- "harness_init"- ],+ "services": [],"tool_groups": {"audio": "withheld","coding": "withheld",diff --git a/docs/gitbooks/en/developing/embed/api-index.md b/docs/gitbooks/en/developing/embed/api-index.mdindex 3e386b0c6d..1a54a9f35b 100644--- a/docs/gitbooks/en/developing/embed/api-index.md+++ b/docs/gitbooks/en/developing/embed/api-index.md@@ -79,6 +79,7 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`ModelDefaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`OpenError`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`PendingApproval`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`PermissionFuture`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`PermissionLevel`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`PickListenPortError`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`ProfileError`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)@@ -129,6 +130,7 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`TrustedAccess`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TrustedAutomationSource`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`Turn`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`TurnCancellation`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TurnContext`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TurnOutcome`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TurnRequest`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)@@ -139,6 +141,8 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`absolute`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`agent_progress`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`artifacts`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`budget`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`cancellation`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`channels`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`chat_surface`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`complete`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)@@ -146,20 +150,25 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`cron`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`embeddings`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`events`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`fanout`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`identity`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`install_backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`installed_backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`memory`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`modules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`observe`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`process`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`profiles`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`providers`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`repository`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`routing`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`run_from_args`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`schema_for_rpc_method`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`seams`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`session_store`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`skill_registry`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`stream`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`structured`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)The compiled capability report describes this build:@@ -187,7 +196,7 @@ The compiled capability report describes this build:"skills": true,"storage-file": false,"storage-mongodb": false,- "storage-sqlite": false,+ "storage-sqlite": true,"tinymemes": true,"voice": false,"web3": false,@@ -208,9 +217,7 @@ The compiled capability report describes this build:"runtimes","platform"],- "services": [- "harness_init"- ],+ "services": [],"tool_groups": {"audio": "withheld","coding": "withheld",diff --git a/docs/gitbooks/en/developing/embed/builder-setters.md b/docs/gitbooks/en/developing/embed/builder-setters.mdindex f2cded84d6..67d5eee8fd 100644--- a/docs/gitbooks/en/developing/embed/builder-setters.md+++ b/docs/gitbooks/en/developing/embed/builder-setters.md@@ -4,45 +4,45 @@Public consuming methods that return `Self`, extracted from the RuntimeBuilder implementations. Static host and weight presets, inspection methods and build/run methods are excluded.-- [`access`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L343): `pub fn access(mut self, access: Access) -> Self`-- [`action_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L300): `pub fn action_dir(mut self, dir: impl Into<PathBuf>) -> Self`-- [`agent_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L151): `pub fn agent_defaults(mut self, defaults: super::AgentDefaults) -> Self`-- [`api_key`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L320): `pub fn api_key(mut self, key: impl Into<ApiKey>) -> Self`-- [`autonomy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L186): `pub fn autonomy(mut self, value: openhuman_core::config::schema::AutonomyConfig) -> Self`-- [`backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L225): `pub fn backend_transport(mut self, transport: Arc<dyn BackendTransport>) -> Self`-- [`backend_url`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L330): `pub fn backend_url(mut self, url: impl Into<String>) -> Self`-- [`config`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L444): `pub fn config(mut self, config: Config) -> Self`-- [`config_source`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L308): `pub fn config_source(mut self, source: ConfigSource) -> Self`+- [`access`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L339): `pub fn access(mut self, access: Access) -> Self`+- [`action_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L296): `pub fn action_dir(mut self, dir: impl Into<PathBuf>) -> Self`+- [`agent_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L147): `pub fn agent_defaults(mut self, defaults: super::AgentDefaults) -> Self`+- [`api_key`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L316): `pub fn api_key(mut self, key: impl Into<ApiKey>) -> Self`+- [`autonomy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L182): `pub fn autonomy(mut self, value: openhuman_core::config::schema::AutonomyConfig) -> Self`+- [`backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L221): `pub fn backend_transport(mut self, transport: Arc<dyn BackendTransport>) -> Self`+- [`backend_url`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L326): `pub fn backend_url(mut self, url: impl Into<String>) -> Self`+- [`config`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L440): `pub fn config(mut self, config: Config) -> Self`+- [`config_source`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L304): `pub fn config_source(mut self, source: ConfigSource) -> Self`- [`controller_extension`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L415): `pub fn controller_extension(mut self, extension: ControllerExtension) -> Self`-- [`cron`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L211): `pub fn cron(mut self, value: openhuman_core::config::schema::CronConfig) -> Self`-- [`definition_base`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L170): `pub fn definition_base(mut self, definition: crate::AgentDefinitionSpec) -> Self`-- [`domains`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L374): `pub fn domains(mut self, domains: DomainSet) -> Self`-- [`host_kind`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L391): `pub fn host_kind(mut self, host_kind: HostKind) -> Self`-- [`learning`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L206): `pub fn learning(mut self, value: super::LearningSettings) -> Self`-- [`listen`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L413): `pub fn listen(self, host: impl Into<String>, port: u16) -> Self`-- [`listen_host`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L418): `pub fn listen_host(mut self, host: impl Into<String>) -> Self`-- [`listen_port`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L424): `pub fn listen_port(mut self, port: u16) -> Self`+- [`cron`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L207): `pub fn cron(mut self, value: openhuman_core::config::schema::CronConfig) -> Self`+- [`definition_base`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L166): `pub fn definition_base(mut self, definition: crate::AgentDefinitionSpec) -> Self`+- [`domains`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L370): `pub fn domains(mut self, domains: DomainSet) -> Self`+- [`host_kind`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L387): `pub fn host_kind(mut self, host_kind: HostKind) -> Self`+- [`learning`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L202): `pub fn learning(mut self, value: super::LearningSettings) -> Self`+- [`listen`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L409): `pub fn listen(self, host: impl Into<String>, port: u16) -> Self`+- [`listen_host`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L414): `pub fn listen_host(mut self, host: impl Into<String>) -> Self`+- [`listen_port`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L420): `pub fn listen_port(mut self, port: u16) -> Self`- [`live_policy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L464): `pub fn live_policy(mut self, policy: Arc<SecurityPolicy>) -> Self`-- [`max_agents`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L263): `pub fn max_agents(mut self, limit: usize) -> Self`-- [`mcp_baseline`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L181): `pub fn mcp_baseline(mut self, servers: impl IntoIterator<Item = crate::McpServer>) -> Self`-- [`memory_engine`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L239): `pub fn memory_engine(mut self, engine: Arc<dyn tinymemory_api::MemoryEngine>) -> Self`-- [`model_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L160): `pub fn model_defaults(mut self, model: super::ModelDefaults) -> Self`-- [`modules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/selection.rs#L156): `pub fn modules(mut self, modules: impl IntoIterator<Item = RuntimeModule>) -> Self`+- [`max_agents`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L259): `pub fn max_agents(mut self, limit: usize) -> Self`+- [`mcp_baseline`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L177): `pub fn mcp_baseline(mut self, servers: impl IntoIterator<Item = crate::McpServer>) -> Self`+- [`memory_engine`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L235): `pub fn memory_engine(mut self, engine: Arc<dyn tinymemory_api::MemoryEngine>) -> Self`+- [`model_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L156): `pub fn model_defaults(mut self, model: super::ModelDefaults) -> Self`+- [`modules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/selection.rs#L155): `pub fn modules(mut self, modules: impl IntoIterator<Item = RuntimeModule>) -> Self`- [`post_turn_hook`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L430): `pub fn post_turn_hook(mut self, hook: Arc<dyn PostTurnHook>) -> Self`-- [`privacy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L196): `pub fn privacy(mut self, value: openhuman_core::config::schema::PrivacyConfig) -> Self`-- [`provider`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L336): `pub fn provider(mut self, provider: Provider) -> Self`-- [`sandbox`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L165): `pub fn sandbox(mut self, mode: crate::SandboxModeSpec) -> Self`-- [`secrets`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L201): `pub fn secrets(mut self, value: openhuman_core::config::schema::SecretsConfig) -> Self`+- [`privacy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L192): `pub fn privacy(mut self, value: openhuman_core::config::schema::PrivacyConfig) -> Self`+- [`provider`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L332): `pub fn provider(mut self, provider: Provider) -> Self`+- [`sandbox`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L161): `pub fn sandbox(mut self, mode: crate::SandboxModeSpec) -> Self`+- [`secrets`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L197): `pub fn secrets(mut self, value: openhuman_core::config::schema::SecretsConfig) -> Self`- [`server_launcher`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L444): `pub fn server_launcher(mut self, launcher: ServerLauncher) -> Self`-- [`services`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L362): `pub fn services(mut self, services: ServiceSet) -> Self`-- [`session`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L434): `pub fn session(mut self, session: Session) -> Self`-- [`session_store`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L254): `pub fn session_store(mut self, provider: Arc<dyn SessionStoreProvider>) -> Self`-- [`skills`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L175): `pub fn skills(mut self, policy: super::SkillsPolicy) -> Self`+- [`services`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L358): `pub fn services(mut self, services: ServiceSet) -> Self`+- [`session`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L430): `pub fn session(mut self, session: Session) -> Self`+- [`session_store`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L250): `pub fn session_store(mut self, provider: Arc<dyn SessionStoreProvider>) -> Self`+- [`skills`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L171): `pub fn skills(mut self, policy: super::SkillsPolicy) -> Self`- [`storage`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L457): `pub fn storage(mut self, source: impl Into<StorageSource>) -> Self`-- [`token`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L401): `pub fn token(mut self, token: TokenSource) -> Self`-- [`tool_groups`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L383): `pub fn tool_groups(mut self, tool_groups: ToolGroups) -> Self`+- [`token`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L397): `pub fn token(mut self, token: TokenSource) -> Self`+- [`tool_groups`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L379): `pub fn tool_groups(mut self, tool_groups: ToolGroups) -> Self`- [`tool_hook`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L437): `pub fn tool_hook(mut self, hook: Arc<dyn ToolHook>) -> Self`- [`tool_ranker`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L422): `pub fn tool_ranker(mut self, ranker: Arc<dyn ToolRanker>) -> Self`-- [`tool_rules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L191): `pub fn tool_rules(mut self, value: tinytools::ToolRules) -> Self`-- [`workspace`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L273): `pub fn workspace(mut self, workspace: Workspace) -> Self`-- [`workspace_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L287): `pub fn workspace_dir(mut self, dir: impl Into<PathBuf>) -> Self`+- [`tool_rules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L187): `pub fn tool_rules(mut self, value: tinytools::ToolRules) -> Self`+- [`workspace`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L269): `pub fn workspace(mut self, workspace: Workspace) -> Self`+- [`workspace_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L283): `pub fn workspace_dir(mut self, dir: impl Into<PathBuf>) -> Self`diff --git a/docs/gitbooks/en/developing/embed/capability-matrix.md b/docs/gitbooks/en/developing/embed/capability-matrix.mdindex aba183fbf7..c621982188 100644--- a/docs/gitbooks/en/developing/embed/capability-matrix.md+++ b/docs/gitbooks/en/developing/embed/capability-matrix.md@@ -25,7 +25,7 @@ This matrix comes from the default-feature compiled capability-report example. R| `skills` | Yes || `storage-file` | No || `storage-mongodb` | No |-| `storage-sqlite` | No |+| `storage-sqlite` | Yes || `tinymemes` | Yes || `voice` | No || `web3` | No |diff --git a/docs/gitbooks/en/developing/embed/cookbook.md b/docs/gitbooks/en/developing/embed/cookbook.mdindex 6b7caefc55..3462bef8af 100644--- a/docs/gitbooks/en/developing/embed/cookbook.md+++ b/docs/gitbooks/en/developing/embed/cookbook.md@@ -76,6 +76,14 @@ Lean runtime without background services.Run: `cargo run -p openhuman-embed --example lean_headless`+## Linux agent fleet memory and latency++Measure retained runtime-owned agents using loopback inference and two worker threads.++[Source](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/linux_fleet.rs) · offline on Linux; use a fresh constrained cgroup for release measurements.++Run: `cargo run -p openhuman-embed --example linux_fleet`+## Connect an actual MCP protocol stub over loopbackConnect an actual MCP protocol stub over loopback.diff --git a/docs/specs/agent-runtime-upstream-boundary.md b/docs/specs/agent-runtime-upstream-boundary.mdindex 7e7865e040..0107e0a5b1 100644--- a/docs/specs/agent-runtime-upstream-boundary.md+++ b/docs/specs/agent-runtime-upstream-boundary.md@@ -277,7 +277,6 @@ all consumers import the owner directly, not that behavior is dropped.| `file_state/` | Keep | OpenHuman parallel-write safety policy; pass explicit context rather than task-local scope. || `git_attribution/` | Delete | Obsolete host feature; removed independently before this migration. || `harness/` | Split then shrink | Move generic definitions, recursion, parsing, filtering, graph and loop helpers to TinyAgents; keep public OpenHuman session facade only until live callers use the crate harness, then replace it with host construction/routing. |-| `harness_init/` | Keep | Product dependency provisioning/startup service. || `learning/` | Keep | Product learning/profile policy behind `LearningSink`. Generic post-turn callback timing moves to harness. || `library/` | Keep | Product-facing safe definition projection/RPC DTO. || `orchestration/` | Split | Move generic graph lifecycle/delegation/selection; keep worktrees, workflow business rules, delivery, RPC, ledgers, and host tools. |diff --git a/gitbooks/developing/embed/api-index.json b/gitbooks/developing/embed/api-index.jsonindex 76919ff831..109c1d3601 100644--- a/gitbooks/developing/embed/api-index.json+++ b/gitbooks/developing/embed/api-index.json@@ -76,6 +76,7 @@"ModelDefaults","OpenError","PendingApproval",+ "PermissionFuture","PermissionLevel","PickListenPortError","ProfileError",@@ -126,6 +127,7 @@"TrustedAccess","TrustedAutomationSource","Turn",+ "TurnCancellation","TurnContext","TurnOutcome","TurnRequest",@@ -136,6 +138,8 @@"absolute","agent_progress","artifacts",+ "budget",+ "cancellation","channels","chat_surface","complete",@@ -143,75 +147,80 @@"cron","embeddings","events",+ "fanout","identity","install_backend_transport","installed_backend_transport","memory","modules",+ "observe","process","profiles","providers",+ "repository",+ "routing","run_from_args","schema_for_rpc_method","seams","session_store","skill_registry",- "stream"+ "stream",+ "structured"],"builder_setters": [{"name": "access","signature": "pub fn access(mut self, access: Access) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 343+ "line": 339},{"name": "action_dir","signature": "pub fn action_dir(mut self, dir: impl Into<PathBuf>) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 300+ "line": 296},{"name": "agent_defaults","signature": "pub fn agent_defaults(mut self, defaults: super::AgentDefaults) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 151+ "line": 147},{"name": "api_key","signature": "pub fn api_key(mut self, key: impl Into<ApiKey>) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 320+ "line": 316},{"name": "autonomy","signature": "pub fn autonomy(mut self, value: openhuman_core::config::schema::AutonomyConfig) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 186+ "line": 182},{"name": "backend_transport","signature": "pub fn backend_transport(mut self, transport: Arc<dyn BackendTransport>) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 225+ "line": 221},{"name": "backend_url","signature": "pub fn backend_url(mut self, url: impl Into<String>) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 330+ "line": 326},{"name": "config","signature": "pub fn config(mut self, config: Config) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 444+ "line": 440},{"name": "config_source","signature": "pub fn config_source(mut self, source: ConfigSource) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 308+ "line": 304},{"name": "controller_extension",@@ -223,49 +232,49 @@"name": "cron","signature": "pub fn cron(mut self, value: openhuman_core::config::schema::CronConfig) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 211+ "line": 207},{"name": "definition_base","signature": "pub fn definition_base(mut self, definition: crate::AgentDefinitionSpec) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 170+ "line": 166},{"name": "domains","signature": "pub fn domains(mut self, domains: DomainSet) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 374+ "line": 370},{"name": "host_kind","signature": "pub fn host_kind(mut self, host_kind: HostKind) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 391+ "line": 387},{"name": "learning","signature": "pub fn learning(mut self, value: super::LearningSettings) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 206+ "line": 202},{"name": "listen","signature": "pub fn listen(self, host: impl Into<String>, port: u16) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 413+ "line": 409},{"name": "listen_host","signature": "pub fn listen_host(mut self, host: impl Into<String>) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 418+ "line": 414},{"name": "listen_port","signature": "pub fn listen_port(mut self, port: u16) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 424+ "line": 420},{"name": "live_policy",@@ -277,31 +286,31 @@"name": "max_agents","signature": "pub fn max_agents(mut self, limit: usize) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 263+ "line": 259},{"name": "mcp_baseline","signature": "pub fn mcp_baseline(mut self, servers: impl IntoIterator<Item = crate::McpServer>) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 181+ "line": 177},{"name": "memory_engine","signature": "pub fn memory_engine(mut self, engine: Arc<dyn tinymemory_api::MemoryEngine>) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 239+ "line": 235},{"name": "model_defaults","signature": "pub fn model_defaults(mut self, model: super::ModelDefaults) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 160+ "line": 156},{"name": "modules","signature": "pub fn modules(mut self, modules: impl IntoIterator<Item = RuntimeModule>) -> Self","source": "crates/openhuman-embed/src/runtime/selection.rs",- "line": 156+ "line": 155},{"name": "post_turn_hook",@@ -313,25 +322,25 @@"name": "privacy","signature": "pub fn privacy(mut self, value: openhuman_core::config::schema::PrivacyConfig) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 196+ "line": 192},{"name": "provider","signature": "pub fn provider(mut self, provider: Provider) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 336+ "line": 332},{"name": "sandbox","signature": "pub fn sandbox(mut self, mode: crate::SandboxModeSpec) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 165+ "line": 161},{"name": "secrets","signature": "pub fn secrets(mut self, value: openhuman_core::config::schema::SecretsConfig) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 201+ "line": 197},{"name": "server_launcher",@@ -343,25 +352,25 @@"name": "services","signature": "pub fn services(mut self, services: ServiceSet) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 362+ "line": 358},{"name": "session","signature": "pub fn session(mut self, session: Session) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 434+ "line": 430},{"name": "session_store","signature": "pub fn session_store(mut self, provider: Arc<dyn SessionStoreProvider>) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 254+ "line": 250},{"name": "skills","signature": "pub fn skills(mut self, policy: super::SkillsPolicy) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 175+ "line": 171},{"name": "storage",@@ -373,13 +382,13 @@"name": "token","signature": "pub fn token(mut self, token: TokenSource) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 401+ "line": 397},{"name": "tool_groups","signature": "pub fn tool_groups(mut self, tool_groups: ToolGroups) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 383+ "line": 379},{"name": "tool_hook",@@ -397,19 +406,19 @@"name": "tool_rules","signature": "pub fn tool_rules(mut self, value: tinytools::ToolRules) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 191+ "line": 187},{"name": "workspace","signature": "pub fn workspace(mut self, workspace: Workspace) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 273+ "line": 269},{"name": "workspace_dir","signature": "pub fn workspace_dir(mut self, dir: impl Into<PathBuf>) -> Self","source": "crates/openhuman-embed/src/runtime/builder.rs",- "line": 287+ "line": 283}],"capabilities": {@@ -435,7 +444,7 @@"skills": true,"storage-file": false,"storage-mongodb": false,- "storage-sqlite": false,+ "storage-sqlite": true,"tinymemes": true,"voice": false,"web3": false,@@ -456,9 +465,7 @@"runtimes","platform"],- "services": [- "harness_init"- ],+ "services": [],"tool_groups": {"audio": "withheld","coding": "withheld",diff --git a/gitbooks/developing/embed/api-index.md b/gitbooks/developing/embed/api-index.mdindex 3e386b0c6d..1a54a9f35b 100644--- a/gitbooks/developing/embed/api-index.md+++ b/gitbooks/developing/embed/api-index.md@@ -79,6 +79,7 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`ModelDefaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`OpenError`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`PendingApproval`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`PermissionFuture`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`PermissionLevel`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`PickListenPortError`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`ProfileError`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)@@ -129,6 +130,7 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`TrustedAccess`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TrustedAutomationSource`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`Turn`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`TurnCancellation`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TurnContext`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TurnOutcome`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TurnRequest`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)@@ -139,6 +141,8 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`absolute`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`agent_progress`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`artifacts`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`budget`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`cancellation`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`channels`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`chat_surface`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`complete`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)@@ -146,20 +150,25 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`cron`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`embeddings`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`events`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`fanout`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`identity`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`install_backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`installed_backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`memory`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`modules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`observe`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`process`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`profiles`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`providers`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`repository`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`routing`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`run_from_args`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`schema_for_rpc_method`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`seams`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`session_store`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`skill_registry`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`stream`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`structured`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)The compiled capability report describes this build:@@ -187,7 +196,7 @@ The compiled capability report describes this build:"skills": true,"storage-file": false,"storage-mongodb": false,- "storage-sqlite": false,+ "storage-sqlite": true,"tinymemes": true,"voice": false,"web3": false,@@ -208,9 +217,7 @@ The compiled capability report describes this build:"runtimes","platform"],- "services": [- "harness_init"- ],+ "services": [],"tool_groups": {"audio": "withheld","coding": "withheld",diff --git a/gitbooks/developing/embed/builder-setters.md b/gitbooks/developing/embed/builder-setters.mdindex f2cded84d6..67d5eee8fd 100644--- a/gitbooks/developing/embed/builder-setters.md+++ b/gitbooks/developing/embed/builder-setters.md@@ -4,45 +4,45 @@Public consuming methods that return `Self`, extracted from the RuntimeBuilder implementations. Static host and weight presets, inspection methods and build/run methods are excluded.-- [`access`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L343): `pub fn access(mut self, access: Access) -> Self`-- [`action_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L300): `pub fn action_dir(mut self, dir: impl Into<PathBuf>) -> Self`-- [`agent_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L151): `pub fn agent_defaults(mut self, defaults: super::AgentDefaults) -> Self`-- [`api_key`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L320): `pub fn api_key(mut self, key: impl Into<ApiKey>) -> Self`-- [`autonomy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L186): `pub fn autonomy(mut self, value: openhuman_core::config::schema::AutonomyConfig) -> Self`-- [`backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L225): `pub fn backend_transport(mut self, transport: Arc<dyn BackendTransport>) -> Self`-- [`backend_url`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L330): `pub fn backend_url(mut self, url: impl Into<String>) -> Self`-- [`config`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L444): `pub fn config(mut self, config: Config) -> Self`-- [`config_source`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L308): `pub fn config_source(mut self, source: ConfigSource) -> Self`+- [`access`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L339): `pub fn access(mut self, access: Access) -> Self`+- [`action_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L296): `pub fn action_dir(mut self, dir: impl Into<PathBuf>) -> Self`+- [`agent_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L147): `pub fn agent_defaults(mut self, defaults: super::AgentDefaults) -> Self`+- [`api_key`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L316): `pub fn api_key(mut self, key: impl Into<ApiKey>) -> Self`+- [`autonomy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L182): `pub fn autonomy(mut self, value: openhuman_core::config::schema::AutonomyConfig) -> Self`+- [`backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L221): `pub fn backend_transport(mut self, transport: Arc<dyn BackendTransport>) -> Self`+- [`backend_url`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L326): `pub fn backend_url(mut self, url: impl Into<String>) -> Self`+- [`config`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L440): `pub fn config(mut self, config: Config) -> Self`+- [`config_source`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L304): `pub fn config_source(mut self, source: ConfigSource) -> Self`- [`controller_extension`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L415): `pub fn controller_extension(mut self, extension: ControllerExtension) -> Self`-- [`cron`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L211): `pub fn cron(mut self, value: openhuman_core::config::schema::CronConfig) -> Self`-- [`definition_base`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L170): `pub fn definition_base(mut self, definition: crate::AgentDefinitionSpec) -> Self`-- [`domains`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L374): `pub fn domains(mut self, domains: DomainSet) -> Self`-- [`host_kind`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L391): `pub fn host_kind(mut self, host_kind: HostKind) -> Self`-- [`learning`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L206): `pub fn learning(mut self, value: super::LearningSettings) -> Self`-- [`listen`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L413): `pub fn listen(self, host: impl Into<String>, port: u16) -> Self`-- [`listen_host`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L418): `pub fn listen_host(mut self, host: impl Into<String>) -> Self`-- [`listen_port`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L424): `pub fn listen_port(mut self, port: u16) -> Self`+- [`cron`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L207): `pub fn cron(mut self, value: openhuman_core::config::schema::CronConfig) -> Self`+- [`definition_base`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L166): `pub fn definition_base(mut self, definition: crate::AgentDefinitionSpec) -> Self`+- [`domains`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L370): `pub fn domains(mut self, domains: DomainSet) -> Self`+- [`host_kind`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L387): `pub fn host_kind(mut self, host_kind: HostKind) -> Self`+- [`learning`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L202): `pub fn learning(mut self, value: super::LearningSettings) -> Self`+- [`listen`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L409): `pub fn listen(self, host: impl Into<String>, port: u16) -> Self`+- [`listen_host`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L414): `pub fn listen_host(mut self, host: impl Into<String>) -> Self`+- [`listen_port`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L420): `pub fn listen_port(mut self, port: u16) -> Self`- [`live_policy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L464): `pub fn live_policy(mut self, policy: Arc<SecurityPolicy>) -> Self`-- [`max_agents`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L263): `pub fn max_agents(mut self, limit: usize) -> Self`-- [`mcp_baseline`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L181): `pub fn mcp_baseline(mut self, servers: impl IntoIterator<Item = crate::McpServer>) -> Self`-- [`memory_engine`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L239): `pub fn memory_engine(mut self, engine: Arc<dyn tinymemory_api::MemoryEngine>) -> Self`-- [`model_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L160): `pub fn model_defaults(mut self, model: super::ModelDefaults) -> Self`-- [`modules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/selection.rs#L156): `pub fn modules(mut self, modules: impl IntoIterator<Item = RuntimeModule>) -> Self`+- [`max_agents`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L259): `pub fn max_agents(mut self, limit: usize) -> Self`+- [`mcp_baseline`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L177): `pub fn mcp_baseline(mut self, servers: impl IntoIterator<Item = crate::McpServer>) -> Self`+- [`memory_engine`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L235): `pub fn memory_engine(mut self, engine: Arc<dyn tinymemory_api::MemoryEngine>) -> Self`+- [`model_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L156): `pub fn model_defaults(mut self, model: super::ModelDefaults) -> Self`+- [`modules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/selection.rs#L155): `pub fn modules(mut self, modules: impl IntoIterator<Item = RuntimeModule>) -> Self`- [`post_turn_hook`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L430): `pub fn post_turn_hook(mut self, hook: Arc<dyn PostTurnHook>) -> Self`-- [`privacy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L196): `pub fn privacy(mut self, value: openhuman_core::config::schema::PrivacyConfig) -> Self`-- [`provider`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L336): `pub fn provider(mut self, provider: Provider) -> Self`-- [`sandbox`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L165): `pub fn sandbox(mut self, mode: crate::SandboxModeSpec) -> Self`-- [`secrets`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L201): `pub fn secrets(mut self, value: openhuman_core::config::schema::SecretsConfig) -> Self`+- [`privacy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L192): `pub fn privacy(mut self, value: openhuman_core::config::schema::PrivacyConfig) -> Self`+- [`provider`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L332): `pub fn provider(mut self, provider: Provider) -> Self`+- [`sandbox`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L161): `pub fn sandbox(mut self, mode: crate::SandboxModeSpec) -> Self`+- [`secrets`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L197): `pub fn secrets(mut self, value: openhuman_core::config::schema::SecretsConfig) -> Self`- [`server_launcher`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L444): `pub fn server_launcher(mut self, launcher: ServerLauncher) -> Self`-- [`services`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L362): `pub fn services(mut self, services: ServiceSet) -> Self`-- [`session`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L434): `pub fn session(mut self, session: Session) -> Self`-- [`session_store`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L254): `pub fn session_store(mut self, provider: Arc<dyn SessionStoreProvider>) -> Self`-- [`skills`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L175): `pub fn skills(mut self, policy: super::SkillsPolicy) -> Self`+- [`services`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L358): `pub fn services(mut self, services: ServiceSet) -> Self`+- [`session`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L430): `pub fn session(mut self, session: Session) -> Self`+- [`session_store`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L250): `pub fn session_store(mut self, provider: Arc<dyn SessionStoreProvider>) -> Self`+- [`skills`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L171): `pub fn skills(mut self, policy: super::SkillsPolicy) -> Self`- [`storage`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L457): `pub fn storage(mut self, source: impl Into<StorageSource>) -> Self`-- [`token`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L401): `pub fn token(mut self, token: TokenSource) -> Self`-- [`tool_groups`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L383): `pub fn tool_groups(mut self, tool_groups: ToolGroups) -> Self`+- [`token`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L397): `pub fn token(mut self, token: TokenSource) -> Self`+- [`tool_groups`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L379): `pub fn tool_groups(mut self, tool_groups: ToolGroups) -> Self`- [`tool_hook`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L437): `pub fn tool_hook(mut self, hook: Arc<dyn ToolHook>) -> Self`- [`tool_ranker`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L422): `pub fn tool_ranker(mut self, ranker: Arc<dyn ToolRanker>) -> Self`-- [`tool_rules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L191): `pub fn tool_rules(mut self, value: tinytools::ToolRules) -> Self`-- [`workspace`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L273): `pub fn workspace(mut self, workspace: Workspace) -> Self`-- [`workspace_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L287): `pub fn workspace_dir(mut self, dir: impl Into<PathBuf>) -> Self`+- [`tool_rules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L187): `pub fn tool_rules(mut self, value: tinytools::ToolRules) -> Self`+- [`workspace`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L269): `pub fn workspace(mut self, workspace: Workspace) -> Self`+- [`workspace_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L283): `pub fn workspace_dir(mut self, dir: impl Into<PathBuf>) -> Self`diff --git a/gitbooks/developing/embed/capability-matrix.md b/gitbooks/developing/embed/capability-matrix.mdindex aba183fbf7..c621982188 100644--- a/gitbooks/developing/embed/capability-matrix.md+++ b/gitbooks/developing/embed/capability-matrix.md@@ -25,7 +25,7 @@ This matrix comes from the default-feature compiled capability-report example. R| `skills` | Yes || `storage-file` | No || `storage-mongodb` | No |-| `storage-sqlite` | No |+| `storage-sqlite` | Yes || `tinymemes` | Yes || `voice` | No || `web3` | No |diff --git a/gitbooks/developing/embed/cookbook.md b/gitbooks/developing/embed/cookbook.mdindex 6b7caefc55..3462bef8af 100644--- a/gitbooks/developing/embed/cookbook.md+++ b/gitbooks/developing/embed/cookbook.md@@ -76,6 +76,14 @@ Lean runtime without background services.Run: `cargo run -p openhuman-embed --example lean_headless`+## Linux agent fleet memory and latency++Measure retained runtime-owned agents using loopback inference and two worker threads.++[Source](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/linux_fleet.rs) · offline on Linux; use a fresh constrained cgroup for release measurements.++Run: `cargo run -p openhuman-embed --example linux_fleet`+## Connect an actual MCP protocol stub over loopbackConnect an actual MCP protocol stub over loopback.diff --git a/llms-full.txt b/llms-full.txtindex 1658cc4d62..b079a63cd1 100644--- a/llms-full.txt+++ b/llms-full.txt@@ -2441,6 +2441,85 @@ The [cookbook](https://github.com/tinyhumansai/openhuman/blob/main/gitbooks/deveHosts supply transport, credentials and application resources. Runtime settings establish shared defaults; agents narrow provider, access, prompt and tool behavior. Use ProfileRuntime when users require separate credentials and workspaces.+## Cancelling one turn++Acquire `Turn::cancellation_handle()` before sending a turn. The handle is+cloneable and `cancel().await` waits for the turn to stop and for tracked+commands to be reaped. The agent remains available for later turns:++++Cancellation is scoped to this turn, including while waiting for inference.+Turns with a cancellation handle use owned interpreter subprocesses rather+than the Node/Python pool, which has no acknowledged per-job abort API. This+trades warm-worker reuse for awaited cleanup; ordinary turns retain pooling.+The `meter` callback fires once on cancellation or a dropped send future,+with `None` when dispatch has not supplied usage yet.++Before send, cancellation prevents dispatch; after completion it is a no-op.+On Unix, the built-in shell, Node, Python and npm commands kill their process+group, including descendants. Other platforms stop the direct command. Host+tools that spawn independent tasks or processes must provide their own cleanup;+MCP server lifecycles remain owned by the agent. Keep polling `send()` while+awaiting cancellation, for example in a spawned task.++## Scoped worker hooks++Hooks can be supplied at three levels: `RuntimeBuilder::tool_hook` /+`post_turn_hook` for all agents, `AgentSpec::tool_hook` / `post_turn_hook`+for one agent, and `Turn::tool_hook` / `post_turn_hook` for one dispatch.+Tool callbacks run in that order. Named agent updates replace only that agent’s callback; per-turn callbacks are additional.+`ToolHookContext` carries the agent/session identity when known, and `cwd`+follows the execution workspace descriptor (including `Turn::cwd`), falling+back to the embedding context's configured action root.+The agent and turn hooks are never installed in the global registry, so+concurrent workers and later turns do not pick up one another's callbacks.+Post-turn callbacks run asynchronously with an owned session snapshot.+Independently spawned tasks that build sessions must explicitly inherit+`openhuman_core::agent::hooks::HookScope` to carry scoped hooks.++Gateway attribution headers can be attached to `Route::header(name, value)`+and used with `Turn::route`, or with `Provider::routed(route)` on an agent.+They follow only that route's endpoint and are never saved to configuration,+sent to background providers, or included as values in `Route`'s `Debug`.++### Inline permission and usage policy++`AgentSpec::can_use_tool` and `Turn::can_use_tool` await a host callback before+executing each tool. The callback can wait for an approval UI and return+`ToolHookDecision::Proceed`, `Deny`, or `ProceedWith`. It owns that wait;+returning `Ask` denies execution. These callbacks add to existing tool policies,+and a turn callback cannot override an agent denial.++`AgentSpec::stop_hook` and `Turn::stop_hook` receive cumulative usage after each+completed model call. Return `StopDecision::Continue` to observe usage, or+`Stop` to prevent subsequent calls. Completed tool rounds may still execute;+this is an after-call budget boundary, so hosts must refuse an already exhausted+budget before sending a turn. Provider-reported charges remain authoritative,+including known zero; missing charges remain unknown unless pricing is known.+A policy stop uses a deterministic partial summary rather than spending on+final-answer repair calls.++### Per-turn tools and subprocess environment++`Turn::tools` replaces this turn's host tool belt, including attached sources.+An empty belt revokes host tools; the next turn returns to the agent's belt.+Builtin tools still follow the agent definition. This supplies dynamic tools for+in-process hosts; statically declared MCP servers retain their creation-time+configuration.++`Turn::tool_env` supplies the base environment of owned builtin subprocesses.+Variables absent from it are not inherited from the daemon. The builtin command+builders retain their own security/runtime additions, including Git restrictions,+managed interpreter paths and scratch directories. Scoped turns bypass Node and+Python pools, which cannot acknowledge per-job cancellation or swap a job's+process environment. A host tool that spawns a separate Tokio task must explicitly+carry the command environment and cleanup scopes into that task.++Standalone exact source pins and generated Cargo patches: [consumer setup](CONSUMERS.md).+Ordered fallbacks and required exploration: [routing](ROUTING.md).+Host telemetry and the existing exporter: [observers](OBSERVERS.md).+<!-- Source: gitbooks/developing/embedding.md --># Embedding OpenHuman@@ -2529,6 +2608,14 @@ Lean runtime without background services.Run: `cargo run -p openhuman-embed --example lean_headless`+## Linux agent fleet memory and latency++Measure retained runtime-owned agents using loopback inference and two worker threads.++[Source](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/linux_fleet.rs) · offline on Linux; use a fresh constrained cgroup for release measurements.++Run: `cargo run -p openhuman-embed --example linux_fleet`+## Connect an actual MCP protocol stub over loopbackConnect an actual MCP protocol stub over loopback.@@ -2661,7 +2748,7 @@ This matrix comes from the default-feature compiled capability-report example. R| `skills` | Yes || `storage-file` | No || `storage-mongodb` | No |-| `storage-sqlite` | No |+| `storage-sqlite` | Yes || `tinymemes` | Yes || `voice` | No || `web3` | No |@@ -2674,48 +2761,48 @@ This matrix comes from the default-feature compiled capability-report example. RPublic consuming methods that return `Self`, extracted from the RuntimeBuilder implementations. Static host and weight presets, inspection methods and build/run methods are excluded.-- [`access`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L343): `pub fn access(mut self, access: Access) -> Self`-- [`action_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L300): `pub fn action_dir(mut self, dir: impl Into<PathBuf>) -> Self`-- [`agent_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L151): `pub fn agent_defaults(mut self, defaults: super::AgentDefaults) -> Self`-- [`api_key`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L320): `pub fn api_key(mut self, key: impl Into<ApiKey>) -> Self`-- [`autonomy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L186): `pub fn autonomy(mut self, value: openhuman_core::config::schema::AutonomyConfig) -> Self`-- [`backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L225): `pub fn backend_transport(mut self, transport: Arc<dyn BackendTransport>) -> Self`-- [`backend_url`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L330): `pub fn backend_url(mut self, url: impl Into<String>) -> Self`-- [`config`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L444): `pub fn config(mut self, config: Config) -> Self`-- [`config_source`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L308): `pub fn config_source(mut self, source: ConfigSource) -> Self`+- [`access`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L339): `pub fn access(mut self, access: Access) -> Self`+- [`action_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L296): `pub fn action_dir(mut self, dir: impl Into<PathBuf>) -> Self`+- [`agent_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L147): `pub fn agent_defaults(mut self, defaults: super::AgentDefaults) -> Self`+- [`api_key`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L316): `pub fn api_key(mut self, key: impl Into<ApiKey>) -> Self`+- [`autonomy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L182): `pub fn autonomy(mut self, value: openhuman_core::config::schema::AutonomyConfig) -> Self`+- [`backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L221): `pub fn backend_transport(mut self, transport: Arc<dyn BackendTransport>) -> Self`+- [`backend_url`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L326): `pub fn backend_url(mut self, url: impl Into<String>) -> Self`+- [`config`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L440): `pub fn config(mut self, config: Config) -> Self`+- [`config_source`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L304): `pub fn config_source(mut self, source: ConfigSource) -> Self`- [`controller_extension`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L415): `pub fn controller_extension(mut self, extension: ControllerExtension) -> Self`-- [`cron`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L211): `pub fn cron(mut self, value: openhuman_core::config::schema::CronConfig) -> Self`-- [`definition_base`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L170): `pub fn definition_base(mut self, definition: crate::AgentDefinitionSpec) -> Self`-- [`domains`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L374): `pub fn domains(mut self, domains: DomainSet) -> Self`-- [`host_kind`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L391): `pub fn host_kind(mut self, host_kind: HostKind) -> Self`-- [`learning`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L206): `pub fn learning(mut self, value: super::LearningSettings) -> Self`-- [`listen`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L413): `pub fn listen(self, host: impl Into<String>, port: u16) -> Self`-- [`listen_host`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L418): `pub fn listen_host(mut self, host: impl Into<String>) -> Self`-- [`listen_port`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L424): `pub fn listen_port(mut self, port: u16) -> Self`+- [`cron`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L207): `pub fn cron(mut self, value: openhuman_core::config::schema::CronConfig) -> Self`+- [`definition_base`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L166): `pub fn definition_base(mut self, definition: crate::AgentDefinitionSpec) -> Self`+- [`domains`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L370): `pub fn domains(mut self, domains: DomainSet) -> Self`+- [`host_kind`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L387): `pub fn host_kind(mut self, host_kind: HostKind) -> Self`+- [`learning`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L202): `pub fn learning(mut self, value: super::LearningSettings) -> Self`+- [`listen`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L409): `pub fn listen(self, host: impl Into<String>, port: u16) -> Self`+- [`listen_host`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L414): `pub fn listen_host(mut self, host: impl Into<String>) -> Self`+- [`listen_port`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L420): `pub fn listen_port(mut self, port: u16) -> Self`- [`live_policy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L464): `pub fn live_policy(mut self, policy: Arc<SecurityPolicy>) -> Self`-- [`max_agents`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L263): `pub fn max_agents(mut self, limit: usize) -> Self`-- [`mcp_baseline`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L181): `pub fn mcp_baseline(mut self, servers: impl IntoIterator<Item = crate::McpServer>) -> Self`-- [`memory_engine`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L239): `pub fn memory_engine(mut self, engine: Arc<dyn tinymemory_api::MemoryEngine>) -> Self`-- [`model_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L160): `pub fn model_defaults(mut self, model: super::ModelDefaults) -> Self`-- [`modules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/selection.rs#L156): `pub fn modules(mut self, modules: impl IntoIterator<Item = RuntimeModule>) -> Self`+- [`max_agents`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L259): `pub fn max_agents(mut self, limit: usize) -> Self`+- [`mcp_baseline`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L177): `pub fn mcp_baseline(mut self, servers: impl IntoIterator<Item = crate::McpServer>) -> Self`+- [`memory_engine`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L235): `pub fn memory_engine(mut self, engine: Arc<dyn tinymemory_api::MemoryEngine>) -> Self`+- [`model_defaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L156): `pub fn model_defaults(mut self, model: super::ModelDefaults) -> Self`+- [`modules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/selection.rs#L155): `pub fn modules(mut self, modules: impl IntoIterator<Item = RuntimeModule>) -> Self`- [`post_turn_hook`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L430): `pub fn post_turn_hook(mut self, hook: Arc<dyn PostTurnHook>) -> Self`-- [`privacy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L196): `pub fn privacy(mut self, value: openhuman_core::config::schema::PrivacyConfig) -> Self`-- [`provider`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L336): `pub fn provider(mut self, provider: Provider) -> Self`-- [`sandbox`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L165): `pub fn sandbox(mut self, mode: crate::SandboxModeSpec) -> Self`-- [`secrets`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L201): `pub fn secrets(mut self, value: openhuman_core::config::schema::SecretsConfig) -> Self`+- [`privacy`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L192): `pub fn privacy(mut self, value: openhuman_core::config::schema::PrivacyConfig) -> Self`+- [`provider`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L332): `pub fn provider(mut self, provider: Provider) -> Self`+- [`sandbox`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L161): `pub fn sandbox(mut self, mode: crate::SandboxModeSpec) -> Self`+- [`secrets`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L197): `pub fn secrets(mut self, value: openhuman_core::config::schema::SecretsConfig) -> Self`- [`server_launcher`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L444): `pub fn server_launcher(mut self, launcher: ServerLauncher) -> Self`-- [`services`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L362): `pub fn services(mut self, services: ServiceSet) -> Self`-- [`session`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L434): `pub fn session(mut self, session: Session) -> Self`-- [`session_store`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L254): `pub fn session_store(mut self, provider: Arc<dyn SessionStoreProvider>) -> Self`-- [`skills`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L175): `pub fn skills(mut self, policy: super::SkillsPolicy) -> Self`+- [`services`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L358): `pub fn services(mut self, services: ServiceSet) -> Self`+- [`session`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L430): `pub fn session(mut self, session: Session) -> Self`+- [`session_store`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L250): `pub fn session_store(mut self, provider: Arc<dyn SessionStoreProvider>) -> Self`+- [`skills`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L171): `pub fn skills(mut self, policy: super::SkillsPolicy) -> Self`- [`storage`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L457): `pub fn storage(mut self, source: impl Into<StorageSource>) -> Self`-- [`token`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L401): `pub fn token(mut self, token: TokenSource) -> Self`-- [`tool_groups`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L383): `pub fn tool_groups(mut self, tool_groups: ToolGroups) -> Self`+- [`token`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L397): `pub fn token(mut self, token: TokenSource) -> Self`+- [`tool_groups`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L379): `pub fn tool_groups(mut self, tool_groups: ToolGroups) -> Self`- [`tool_hook`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L437): `pub fn tool_hook(mut self, hook: Arc<dyn ToolHook>) -> Self`- [`tool_ranker`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/seams.rs#L422): `pub fn tool_ranker(mut self, ranker: Arc<dyn ToolRanker>) -> Self`-- [`tool_rules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L191): `pub fn tool_rules(mut self, value: tinytools::ToolRules) -> Self`-- [`workspace`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L273): `pub fn workspace(mut self, workspace: Workspace) -> Self`-- [`workspace_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L287): `pub fn workspace_dir(mut self, dir: impl Into<PathBuf>) -> Self`+- [`tool_rules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L187): `pub fn tool_rules(mut self, value: tinytools::ToolRules) -> Self`+- [`workspace`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L269): `pub fn workspace(mut self, workspace: Workspace) -> Self`+- [`workspace_dir`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/runtime/builder.rs#L283): `pub fn workspace_dir(mut self, dir: impl Into<PathBuf>) -> Self`<!-- Source: gitbooks/developing/embed/api-index.md --># API index@@ -2799,6 +2886,7 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`ModelDefaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`OpenError`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`PendingApproval`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`PermissionFuture`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`PermissionLevel`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`PickListenPortError`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`ProfileError`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)@@ -2849,6 +2937,7 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`TrustedAccess`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TrustedAutomationSource`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`Turn`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`TurnCancellation`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TurnContext`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TurnOutcome`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TurnRequest`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)@@ -2859,6 +2948,8 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`absolute`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`agent_progress`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`artifacts`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`budget`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`cancellation`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`channels`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`chat_surface`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`complete`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)@@ -2866,20 +2957,25 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`cron`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`embeddings`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`events`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`fanout`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`identity`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`install_backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`installed_backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`memory`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`modules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`observe`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`process`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`profiles`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`providers`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`repository`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`routing`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`run_from_args`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`schema_for_rpc_method`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`seams`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`session_store`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`skill_registry`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`stream`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`structured`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)The compiled capability report describes this build:@@ -2907,7 +3003,7 @@ The compiled capability report describes this build:"skills": true,"storage-file": false,"storage-mongodb": false,- "storage-sqlite": false,+ "storage-sqlite": true,"tinymemes": true,"voice": false,"web3": false,@@ -2928,9 +3024,7 @@ The compiled capability report describes this build:"runtimes","platform"],- "services": [- "harness_init"- ],+ "services": [],"tool_groups": {"audio": "withheld","coding": "withheld",@@ -3003,6 +3097,7 @@ The compiled capability report describes this build:- [A per-agent post-turn hook observes completed turns](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/hooks.rs): A per-agent post-turn hook observes completed turns. (offline; optional live via OPENHUMAN_EXAMPLE_LIVE=1 and BASE_URL/API_KEY/MODEL.)- [Host tools and HostOnly keep the advertised tool catalog exact](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/host_tools.rs): Host tools and HostOnly keep the advertised tool catalog exact. (offline with loopback stubs; no live path.)- [Lean runtime without background services](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/lean_headless.rs): Lean runtime without background services. (offline with loopback stubs; optional live via OPENHUMAN_EXAMPLE_LIVE.)+- [Linux agent fleet memory and latency](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/linux_fleet.rs): Measure retained runtime-owned agents using loopback inference and two worker threads. (offline on Linux; use a fresh constrained cgroup for release measurements.)- [Connect an actual MCP protocol stub over loopback](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/mcp.rs): Connect an actual MCP protocol stub over loopback. (offline with loopback stubs; no live path.; feature: mcp)- [Tenant scoped memory facade with an in-memory engine](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/memory.rs): Tenant scoped memory facade with an in-memory engine. (offline with loopback stubs; no live path.)- [SaaS profiles isolate conversation history](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/profiles.rs): SaaS profiles isolate conversation history. (offline with loopback stubs; no live path.)diff --git a/scripts/ci/check-openhuman-rust-layout.mjs b/scripts/ci/check-openhuman-rust-layout.mjsindex e59d2e4094..2551bb3432 100644--- a/scripts/ci/check-openhuman-rust-layout.mjs+++ b/scripts/ci/check-openhuman-rust-layout.mjs@@ -54,9 +54,9 @@ const LEGACY_LIMIT_ENTRIES = [// their current sizes while follow-up work separates their test concerns.// `core/` was pruned from the line limit by name until these pins; its// oversized files are pinned at the size they had when enforcement began.- ["crates/openhuman-core/src/core/all.rs", 1355],- ["crates/openhuman-core/src/core/all_tests.rs", 1533],- ["crates/openhuman-core/src/core/events.rs", 1808],+ ["crates/openhuman-core/src/core/all.rs", 1349],+ ["crates/openhuman-core/src/core/all_tests.rs", 1522],+ ["crates/openhuman-core/src/core/events.rs", 1789],["crates/openhuman-core/src/core/events_tests.rs", 997],["crates/openhuman-core/src/core/observability.rs", 3493],];