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
fix: stabilize CI and browser e2e
Steven Enamakel16d83ae06071
diff --git a/app/src/components/InitProgressScreen/InitProgressScreen.test.tsx b/app/src/components/InitProgressScreen/InitProgressScreen.test.tsxindex 24168698b8..fa1abd7151 100644--- a/app/src/components/InitProgressScreen/InitProgressScreen.test.tsx+++ b/app/src/components/InitProgressScreen/InitProgressScreen.test.tsx@@ -65,6 +65,8 @@ describe('InitProgressScreen', () => {<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);});@@ -92,6 +94,8 @@ describe('InitProgressScreen', () => {);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);diff --git a/app/src/components/InitProgressScreen/InitProgressScreen.tsx b/app/src/components/InitProgressScreen/InitProgressScreen.tsxindex 3d88efded1..f9aed711db 100644--- a/app/src/components/InitProgressScreen/InitProgressScreen.tsx+++ b/app/src/components/InitProgressScreen/InitProgressScreen.tsx@@ -102,7 +102,7 @@ export default function InitProgressScreen({<p className="text-xs text-content-muted">{t('harnessInit.backgroundHint')}</p><buttontype="button"- data-testid="harness-init-continue"+ 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')}@@ -123,7 +123,7 @@ export default function InitProgressScreen({<div className="mt-4 flex justify-end gap-2"><buttontype="button"- data-testid="harness-init-continue"+ 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')}diff --git a/app/src/features/conversations/Conversations.tsx b/app/src/features/conversations/Conversations.tsxindex 0a5310d36a..3cb7c261df 100644--- a/app/src/features/conversations/Conversations.tsx+++ b/app/src/features/conversations/Conversations.tsx@@ -747,7 +747,15 @@ const Conversations = ({const selectionIntentAtCreate = store.getState().thread.selectionIntentVersion ?? 0;try {const thread = await dispatch(createNewThread()).unwrap();- if ((store.getState().thread.selectionIntentVersion ?? 0) !== selectionIntentAtCreate) return;+ const currentSelectionIntent = store.getState().thread.selectionIntentVersion ?? 0;+ if (currentSelectionIntent !== selectionIntentAtCreate) {+ debug(+ '[chat] create thread selection superseded; dropping result intent_at_create=%d current_intent=%d',+ selectionIntentAtCreate,+ currentSelectionIntent+ );+ return;+ }dispatch(setSelectedThread(thread.id));void dispatch(loadThreadMessages(thread.id));if (shouldSyncChatRoute) {@@ -851,11 +859,16 @@ const Conversations = ({void dispatch(loadThreads()).unwrap().then(data => {- if (- cancelled ||- (store.getState().thread.selectionIntentVersion ?? 0) !== selectionIntentAtLoad- )+ const currentSelectionIntent = store.getState().thread.selectionIntentVersion ?? 0;+ if (cancelled || currentSelectionIntent !== selectionIntentAtLoad) {+ debug(+ '[chat] initial thread load selection superseded; dropping result cancelled=%s intent_at_load=%d current_intent=%d',+ cancelled,+ selectionIntentAtLoad,+ currentSelectionIntent+ );return;+ }// Match the sidebar's default General filter here so initial/resume// selection can't auto-pick a thread hidden by the selected tab.const visibleThreads = data.threads.filter(t => isThreadVisibleInTab(t, GENERAL_TAB_VALUE));diff --git a/app/src/store/__tests__/threadSlice.test.ts b/app/src/store/__tests__/threadSlice.test.tsindex 8f537ad6bd..bc41c63cc4 100644--- a/app/src/store/__tests__/threadSlice.test.ts+++ b/app/src/store/__tests__/threadSlice.test.ts@@ -230,6 +230,21 @@ describe('threadSlice loadThreads thunk', () => {expect(result.type).toBe('thread/loadThreads/rejected');expect(store.getState().thread.isLoadingThreads).toBe(false);});++ it('preserves a newer selection when an older thread-list response omits it', async () => {+ const store = createStore();+ let resolveThreads: ((value: { threads: Thread[]; count: number }) => void) | undefined;+ mockedThreadApi.getThreads.mockImplementationOnce(+ () => new Promise(resolve => (resolveThreads = resolve))+ );++ const request = store.dispatch(loadThreads());+ store.dispatch(setSelectedThread('worker-created-after-request'));+ resolveThreads?.({ threads: [makeThread({ id: 'existing-thread' })], count: 1 });+ await request;++ expect(store.getState().thread.selectedThreadId).toBe('worker-created-after-request');+ });});describe('threadSlice loadThreadMessages thunk', () => {diff --git a/app/src/store/threadSlice.ts b/app/src/store/threadSlice.tsindex 0deaf64311..4ecf91328c 100644--- a/app/src/store/threadSlice.ts+++ b/app/src/store/threadSlice.ts@@ -108,16 +108,19 @@ function appendMessageToCache(// ── Async thunks (thin RPC wrappers) ──────────────────────────────-export const loadThreads = createAsyncThunk(- 'thread/loadThreads',- async (_, { rejectWithValue }) => {- try {- return await threadApi.getThreads();- } catch (error) {- return rejectWithValue(error instanceof Error ? error.message : 'Failed to load threads');- }+export const loadThreads = createAsyncThunk<+ Awaited<ReturnType<typeof threadApi.getThreads>> & { selectionIntentVersionAtRequest?: number },+ void+>('thread/loadThreads', async (_, { getState, rejectWithValue }) => {+ const selectionIntentVersionAtRequest =+ (getState() as { thread?: Pick<ThreadState, 'selectionIntentVersion'> }).thread+ ?.selectionIntentVersion ?? 0;+ try {+ return { ...(await threadApi.getThreads()), selectionIntentVersionAtRequest };+ } catch (error) {+ return rejectWithValue(error instanceof Error ? error.message : 'Failed to load threads');}-);+});/*** Normalise whatever `dispatch(createNewThread()).unwrap()` throws into a@@ -610,7 +613,14 @@ const threadSlice = createSlice({state.isLoadingThreads = false;state.threads = action.payload.threads;const liveThreadIds = new Set(action.payload.threads.map(thread => thread.id));- if (state.selectedThreadId && !liveThreadIds.has(state.selectedThreadId)) {+ const selectionWasSuperseded =+ state.selectionIntentVersion !==+ (action.payload.selectionIntentVersionAtRequest ?? state.selectionIntentVersion);+ if (+ !selectionWasSuperseded &&+ state.selectedThreadId &&+ !liveThreadIds.has(state.selectedThreadId)+ ) {state.selectedThreadId = null;state.messages = [];state.messagesError = null;diff --git a/app/test/playwright/helpers/chat-drive.ts b/app/test/playwright/helpers/chat-drive.tsindex 6ab6ffc68c..0c66d2be2d 100644--- a/app/test/playwright/helpers/chat-drive.ts+++ b/app/test/playwright/helpers/chat-drive.ts@@ -255,9 +255,11 @@ export async function startNewThread(page: Page): Promise<string> {const previous = await selectedThreadId(page);const sidebar = page.getByTestId('new-thread-sidebar-button');if (await sidebar.isVisible().catch(() => false)) {- await sidebar.click();+ // The caller is exercising thread state, not overlay actionability. A+ // transient walkthrough/modal can cover this stable sidebar control.+ await sidebar.click({ force: true });} else {- await page.getByTestId('new-thread-button').click();+ await page.getByTestId('new-thread-button').click({ force: true });}await expect.poll(async () => selectedThreadId(page), { timeout: 20_000 }).not.toBe(previous);return waitForSelectedThreadId(page);diff --git a/app/test/playwright/helpers/core-rpc.ts b/app/test/playwright/helpers/core-rpc.tsindex 33360b7eac..80c9210b1b 100644--- a/app/test/playwright/helpers/core-rpc.ts+++ b/app/test/playwright/helpers/core-rpc.ts@@ -279,7 +279,9 @@ export async function waitForAppReady(page: Page): Promise<void> {);if (alreadyDismissed) return;- const continueButton = page.getByTestId('harness-init-continue');+ const continueButton = page.getByTestId(+ init.overall === 'failed' ? 'harness-init-continue-anyway' : 'harness-init-background'+ );await expect.poll(async () => {diff --git a/app/test/playwright/specs/aui-context-usage.spec.ts b/app/test/playwright/specs/aui-context-usage.spec.tsindex 5acb3bbb21..313244755e 100644--- a/app/test/playwright/specs/aui-context-usage.spec.ts+++ b/app/test/playwright/specs/aui-context-usage.spec.ts@@ -118,14 +118,12 @@ test.describe('assistant-ui context usage on the chat path', () => {const popover = page.getByTestId('composer-token-breakdown');await expect(popover).toBeVisible({ timeout: 20_000 });- // `contextBreakdownSegments` always emits these four rows, in this order,- // whatever the core's section list looks like — that mapping is the whole- // job of the adapter. Asserting the labels pins that the breakdown element- // received segments rather than an empty array, which is what the loading- // and error bodies would leave behind.+ // `contextBreakdownSegments` always emits these three rows, in this order.+ // Output is not a separate prompt partition: provider output may include+ // replies trimmed from the final request, so the breakdown counts only+ // system prompt, tool schemas, and the remaining conversation.await expect(popover).toContainText('System prompt');await expect(popover).toContainText('Tool schemas');- await expect(popover).toContainText('Output');await expect(popover).toContainText('Your input');});});diff --git a/app/test/playwright/specs/chat-composer-primary-slot.spec.ts b/app/test/playwright/specs/chat-composer-primary-slot.spec.tsindex 81d05cbc7d..48dc45fbe5 100644--- a/app/test/playwright/specs/chat-composer-primary-slot.spec.ts+++ b/app/test/playwright/specs/chat-composer-primary-slot.spec.ts@@ -41,7 +41,7 @@*/import { expect, type Locator, type Page, test } from '@playwright/test';-import { clearChatComposer } from '../helpers/chat-composer';+import { clearChatComposer, composerText } from '../helpers/chat-composer';import { bootAuthenticatedPage, dismissWalkthroughIfPresent } from '../helpers/core-rpc';const MOCK_ADMIN_BASE = `http://127.0.0.1:${process.env.E2E_MOCK_PORT || '18473'}`;@@ -93,8 +93,9 @@ const idleAction = (page: Page): Locator => page.getByTestId('composer-human-mod/** Type into the Lexical surface — `fill()` does not apply to contenteditable. */async function typeIntoComposer(page: Page, text: string): Promise<void> {- await composer(page).click();- await page.keyboard.type(text);+ const input = composer(page);+ await input.pressSequentially(text);+ await expect.poll(() => composerText(input), { timeout: 15_000 }).toBe(text);}async function clearComposer(page: Page): Promise<void> {diff --git a/app/test/playwright/specs/chat-scroll-stick.spec.ts b/app/test/playwright/specs/chat-scroll-stick.spec.tsindex 88168aed3d..72efbb60c5 100644--- a/app/test/playwright/specs/chat-scroll-stick.spec.ts+++ b/app/test/playwright/specs/chat-scroll-stick.spec.ts@@ -33,6 +33,7 @@*/import { expect, type Page, test } from '@playwright/test';+import { composerText } from '../helpers/chat-composer';import { bootAuthenticatedPage, dismissWalkthroughIfPresent } from '../helpers/core-rpc';const MOCK_ADMIN_BASE = `http://127.0.0.1:${process.env.E2E_MOCK_PORT || '18473'}`;@@ -162,22 +163,20 @@ async function selectedThreadId(page: Page): Promise<string | null> {async function startNewThread(page: Page): Promise<void> {await dismissWalkthroughIfPresent(page);- const sidebar = page.getByTestId('new-thread-sidebar-button');- if (await sidebar.isVisible().catch(() => false)) {- await sidebar.click({ force: true });- } else {- await page.getByTestId('new-thread-button').click({ force: true });- }+ const previousThread = await selectedThreadId(page);+ await page.getByRole('button', { name: 'New Conversation' }).click();+ await expect.poll(() => selectedThreadId(page), { timeout: 20_000 }).not.toBe(previousThread);}async function sendMessage(page: Page, prompt: string): Promise<void> {await dismissWalkthroughIfPresent(page);// The live input is a Lexical contenteditable, not a textarea — `fill()` and// `toHaveValue()` do not apply to it.- await page.getByTestId('chat-message-input').click();- await page.keyboard.type(prompt);+ const input = page.getByTestId('chat-message-input');+ await input.pressSequentially(prompt);+ await expect.poll(() => composerText(input), { timeout: 15_000 }).toBe(prompt);await expect(page.getByTestId('send-message-button')).toBeVisible();- await page.getByTestId('send-message-button').click();+ await input.press('Enter');}/** Send one turn and wait for the whole reply to land. */@@ -391,7 +390,12 @@ test.describe('Chat transcript stick-to-bottom', () => {// Thread B. Leaving A is what puts A's messages in the cache.await startNewThread(page);+ await expect.poll(() => selectedThreadId(page), { timeout: 15_000 }).not.toBe(threadA);+ const threadB = await selectedThreadId(page);+ expect(threadB, 'the new conversation must select a distinct thread').not.toBeNull();+ expect(threadB).not.toBe(threadA);await completeTurn(page, 'Second thread please', 'THREAD-B-END');+ expect(await selectedThreadId(page)).toBe(threadB);// Scroll UP in B before leaving it. This is what makes the test// discriminating rather than merely passing.@@ -412,6 +416,7 @@ test.describe('Chat transcript stick-to-bottom', () => {// Back to A — the cached path.await page.getByTestId(`thread-row-${threadA}`).click({ force: true });+ await expect.poll(() => selectedThreadId(page), { timeout: 15_000 }).toBe(threadA);await expect(page.getByText('THREAD-A-END', { exact: false }).last()).toBeVisible({timeout: 20_000,});diff --git a/app/test/playwright/specs/chat-thread-selection-race.spec.ts b/app/test/playwright/specs/chat-thread-selection-race.spec.tsnew file mode 100644index 0000000000..0673482595--- /dev/null+++ b/app/test/playwright/specs/chat-thread-selection-race.spec.ts@@ -0,0 +1,81 @@+import { expect, test } from '@playwright/test';++import { selectedThreadId, startNewThread } from '../helpers/chat-drive';+import {+ bootAuthenticatedPage,+ dismissWalkthroughIfPresent,+ waitForAppReady,+} from '../helpers/core-rpc';++test('a stale thread-list response preserves a thread selected while it was in flight', async ({+ page,+}) => {+ await bootAuthenticatedPage(page, 'pw-thread-selection-race', '/chat');+ await waitForAppReady(page);+ await dismissWalkthroughIfPresent(page);++ const selectedDuringLoad = await startNewThread(page);+ const remainingThread = await startNewThread(page);+ expect(remainingThread).not.toBe(selectedDuringLoad);++ let captureRequest: (() => void) | undefined;+ const requestCaptured = new Promise<void>(resolve => {+ captureRequest = resolve;+ });+ let releaseResponse: (() => void) | undefined;+ const responseReleased = new Promise<void>(resolve => {+ releaseResponse = resolve;+ });+ let holdNextThreadList = false;++ await page.route('**/rpc', async (route, request) => {+ const body = JSON.parse(request.postData() || '{}') as { id: number; method: string };+ if (!holdNextThreadList || body.method !== 'openhuman.threads_list') {+ await route.continue();+ return;+ }++ holdNextThreadList = false;+ const response = await route.fetch();+ const payload = (await response.json()) as {+ result: { data: { count: number; threads: Array<{ id: string }> } };+ };+ if (!payload.result?.data?.threads) {+ throw new Error(`unexpected threads_list response: ${JSON.stringify(payload)}`);+ }+ const threadList = payload.result.data;+ payload.result.data = {+ ...threadList,+ threads: threadList.threads.filter(thread => thread.id !== selectedDuringLoad),+ };+ payload.result.data.count = payload.result.data.threads.length;+ captureRequest?.();+ await responseReleased;+ await route.fulfill({ response, body: JSON.stringify(payload) });+ });++ await page.goto('/#/settings/account');+ await waitForAppReady(page);+ holdNextThreadList = true;+ await page.goto('/#/chat');+ await expect(page.getByTestId('chat-message-input')).toBeVisible();+ await requestCaptured;++ await page.getByTestId(`thread-row-${selectedDuringLoad}`).click({ force: true });+ await expect.poll(() => selectedThreadId(page)).toBe(selectedDuringLoad);++ releaseResponse?.();+ await expect+ .poll(() =>+ page.evaluate(() => {+ const store = (+ window as typeof window & {+ __OPENHUMAN_STORE__?: { getState?: () => { thread?: { isLoadingThreads?: boolean } } };+ }+ ).__OPENHUMAN_STORE__;+ return store?.getState?.().thread?.isLoadingThreads === false;+ })+ )+ .toBe(true);+ expect(await selectedThreadId(page)).toBe(selectedDuringLoad);+});diff --git a/app/test/playwright/specs/onboarding-modes.spec.ts b/app/test/playwright/specs/onboarding-modes.spec.tsindex fad2cc3eae..57e7163685 100644--- a/app/test/playwright/specs/onboarding-modes.spec.ts+++ b/app/test/playwright/specs/onboarding-modes.spec.ts@@ -1,11 +1,6 @@import { expect, type Page, test } from '@playwright/test';-import {- bootRuntimeReadyGuestPage,- callCoreRpc,- signInViaBypassUser,- waitForAppReady,-} from '../helpers/core-rpc';+import { bootRuntimeReadyGuestPage, callCoreRpc, waitForAppReady } from '../helpers/core-rpc';const MOCK_ADMIN_BASE = `http://127.0.0.1:${process.env.E2E_MOCK_PORT || '18473'}`;@@ -22,7 +17,7 @@ async function clickTestId(page: Page, testId: string, timeout = 10_000): Promistry {await locator.waitFor({ state: 'visible', timeout });await expect(locator).toBeEnabled({ timeout: 5_000 });- await locator.click({ timeout: 5_000 });+ await locator.click({ force: true, timeout: 5_000 });return true;} catch {return false;@@ -88,8 +83,26 @@ test.describe('Onboarding modes', () => {test('TinyHumans sessions land directly in chat', async ({ page }) => {await resetMock().catch(() => undefined);await bootRuntimeReadyGuestPage(page);- await signInViaBypassUser(page, 'pw-onboarding-cloud');- await expect.poll(() => page.evaluate(() => window.location.hash)).toMatch(/^#\/chat/);+ const userId = 'pw-onboarding-cloud';+ const payload = Buffer.from(+ JSON.stringify({ sub: userId, userId, exp: Math.floor(Date.now() / 1000) + 3600 })+ ).toString('base64url');+ await callCoreRpc('openhuman.auth_store_session', {+ token: `eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.${payload}.sig`,+ userId,+ user: { _id: userId, id: userId, displayName: 'Playwright User' },+ });+ await callCoreRpc('openhuman.config_set_onboarding_completed', { value: false });+ await page.goto('/#/onboarding/welcome');+ await waitForAppReady(page);+ await expect+ .poll(() => page.evaluate(() => window.location.hash), { timeout: 20_000 })+ .toMatch(/^#\/chat/);+ const completed = await callCoreRpc<boolean | { result?: boolean }>(+ 'openhuman.config_get_onboarding_completed',+ {}+ );+ expect(typeof completed === 'boolean' ? completed : completed?.result).toBe(true);});test('advanced custom path walks the three custom wizard steps and finishes on home', async ({diff --git a/app/test/playwright/specs/skills-registry.spec.ts b/app/test/playwright/specs/skills-registry.spec.tsindex 51aedd9111..d191409faf 100644--- a/app/test/playwright/specs/skills-registry.spec.ts+++ b/app/test/playwright/specs/skills-registry.spec.ts@@ -17,6 +17,7 @@ async function openSkillsPage(page: Page, userId: string) {localStorage.removeItem('openhuman:walkthrough_pending');} catch {}});+ await dismissWalkthroughIfPresent(page);// Startup route restoration can replace a hash assigned during sign-in.await page.getByRole('button', { name: 'Connections' }).click();await expectdiff --git a/app/test/playwright/specs/voice-mode.spec.ts b/app/test/playwright/specs/voice-mode.spec.tsindex f474954b9d..be28bf0bbd 100644--- a/app/test/playwright/specs/voice-mode.spec.ts+++ b/app/test/playwright/specs/voice-mode.spec.ts@@ -61,7 +61,9 @@ async function restoreGetUserMedia(page: Page): Promise<void> {async function switchChatIntoMicComposer(page: Page): Promise<void> {await dismissWalkthroughIfPresent(page);- await page.getByRole('button', { name: 'Voice mode' }).click({ force: true });+ const voiceModeButton = page.getByRole('button', { name: 'Voice mode' });+ await expect(voiceModeButton).toBeEnabled();+ await voiceModeButton.click();await expect(page.getByText(/Tap and speak|Waiting for agent/i)).toBeVisible();await expect(page.getByRole('button', { name: 'Switch to text' })).toBeVisible();}diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_failure_policy_class_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_failure_policy_class_tests.rsindex eb4ce9f34b..5449561237 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware_failure_policy_class_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_failure_policy_class_tests.rs@@ -9,7 +9,9 @@//! real names must keep their retryable timeouts from the side-effect//! reading alone.+#[cfg(feature = "modules")]use super::super::call_effect::{call_effect, tool_sets_lookup, CallEffect};+#[cfg(feature = "modules")]use super::super::failure_policy::recovery_policy_with_effect;use super::super::repeated_failure::recovery_policy;use super::*;@@ -183,6 +185,7 @@ async fn a_user_denial_still_stops_on_the_first_refusal() {// ── the timeout floor, by production tool name ──────────────────────────────+#[cfg(feature = "modules")]fn search_spec(name: &str) -> tinysearch_bus::ToolSpec {tinysearch_bus::ToolSpec {name: name.to_string(),@@ -193,6 +196,7 @@ fn search_spec(name: &str) -> tinysearch_bus::ToolSpec {/// The read tools as production registers them, so their own declarations/// (permission level, policy, external effect) decide the timeout class.+#[cfg(feature = "modules")]fn production_read_tools() -> Vec<Box<dyn tinytools::Tool>> {use crate::security::SecurityPolicy;let security = std::sync::Arc::new(SecurityPolicy::default());@@ -231,6 +235,7 @@ const PRODUCTION_READ_TOOLS: &[&str] = &[];#[test]+#[cfg(feature = "modules")]fn production_read_tools_time_out_as_transient() {let lookup = tool_sets_lookup(vec![std::sync::Arc::new(production_read_tools())]);for name in PRODUCTION_READ_TOOLS {diff --git a/crates/openhuman-core/src/web3/x402/seams.rs b/crates/openhuman-core/src/web3/x402/seams.rsindex 26c309e9d7..1465fafdd5 100644--- a/crates/openhuman-core/src/web3/x402/seams.rs+++ b/crates/openhuman-core/src/web3/x402/seams.rs@@ -284,9 +284,9 @@ fn direct_connection_allowed("https_proxy","all_proxy",];- !(config.enabled && config.scope == crate::config::ProxyScope::Environment)- && !config.should_apply_to_service(service)- && !PROXY_ENV_KEYS.iter().any(|key| env_has_value(key))+ !(config.enabled && config.scope == crate::config::ProxyScope::Environment+ || config.should_apply_to_service(service)+ || PROXY_ENV_KEYS.iter().any(|key| env_has_value(key)))}/// The crypto rail's payment builder, over OpenHuman's wallet and transport.diff --git a/crates/openhuman-embed/tests/isolation_autonomy.rs b/crates/openhuman-embed/tests/isolation_autonomy.rsindex 5f7b6b5345..798ea09bd0 100644--- a/crates/openhuman-embed/tests/isolation_autonomy.rs+++ b/crates/openhuman-embed/tests/isolation_autonomy.rs@@ -8,7 +8,7 @@mod common;use common::{- eventually, offline_config, route, runtime, scripted_provider, stub_backend,+ chat_requests, eventually, offline_config, route, runtime, scripted_provider, stub_backend,tool_call_completion,};use openhuman_core::security::AutonomyLevel;@@ -73,10 +73,27 @@ fn every_agent_answers_policy_from_its_own_tier() {assert_eq!(a.config().autonomy.level, AutonomyLevel::ReadOnly);let a_out = a.run("write the marker").await.expect("a's turn returns");assert!(!a_file.exists(), "a read-only agent must not write");+ let requests = chat_requests(&a_provider).await;+ assert_eq!(+ requests.len(),+ 2,+ "the denied tool result returns to the model"+ );+ let followup: serde_json::Value = serde_json::from_slice(&requests[1].body).unwrap();+ let denial = followup["messages"]+ .as_array()+ .unwrap()+ .iter()+ .find(|message| message["role"] == "tool")+ .and_then(|message| message["content"].as_str())+ .expect("the model receives the shell policy denial");assert!(- a_out.reply.contains("read-only mode"),- "a's shell call is refused by its own tier: {}",- a_out.reply+ denial.contains("read-only mode"),+ "the shell tool result explains the read-only refusal: {denial}"+ );+ assert_eq!(+ a_out.reply, "a-done",+ "the final reply comes from the provider");// ── B: supervised, shell on its own allowlist; runs without parking ──diff --git a/scripts/ci/agent-runtime-boundary-baseline.json b/scripts/ci/agent-runtime-boundary-baseline.jsonindex 82f0aa33ca..066fc0306e 100644--- a/scripts/ci/agent-runtime-boundary-baseline.json+++ b/scripts/ci/agent-runtime-boundary-baseline.json@@ -23,28 +23,35 @@{"rule": "openhuman-runtime-bridge","path": "crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs",- "line": 198,+ "line": 199,"text": "let run_result = Box::pin(run_turn_via_tinyagents_shared(","occurrence": 1},{"rule": "openhuman-runtime-bridge","path": "crates/openhuman-core/src/agent/tinyagents/harness_assembly_tests.rs",- "line": 74,+ "line": 77,"text": "assemble_turn_harness(","occurrence": 1},+ {+ "rule": "openhuman-runtime-bridge",+ "path": "crates/openhuman-core/src/agent/tinyagents/harness_assembly_tests.rs",+ "line": 195,+ "text": "let assembled = assemble_turn_harness(",+ "occurrence": 1+ },{"rule": "openhuman-runtime-bridge","path": "crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs",- "line": 110,+ "line": 112,"text": "pub(super) fn assemble_turn_harness(","occurrence": 1},{"rule": "openhuman-runtime-bridge","path": "crates/openhuman-core/src/agent/tinyagents/mod.rs",- "line": 95,+ "line": 98,"text": "pub(crate) use turn_runner::{run_root_turn_via_hosted_agent, run_turn_via_tinyagents_shared};","occurrence": 1},@@ -332,7 +339,7 @@"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs","line": 424,- "text": "let join = tokio::spawn(crate::agent::turn_origin::propagate(",+ "text": "let join = crate::core::runtime::spawn_scoped(crate::agent::turn_origin::propagate(","occurrence": 1},{@@ -429,7 +436,7 @@{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/session_host/runtime_session.rs",- "line": 665,+ "line": 669,"text": "workspace_descriptor: crate::agent::harness::current_parent()","occurrence": 1},@@ -489,6 +496,13 @@"text": "with_current_sandbox_mode(definition.sandbox_mode, async {","occurrence": 1},+ {+ "rule": "openhuman-task-local",+ "path": "crates/openhuman-core/src/agent/tinyagents/host/security_gate.rs",+ "line": 582,+ "text": "crate::agent::turn_origin::current(),",+ "occurrence": 1+ },{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/tools/delegate.rs",@@ -590,7 +604,7 @@{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/channels/proactive.rs",- "line": 305,+ "line": 306,"text": "let (outcome, request_id) = crate::agent::turn_origin::with_origin(","occurrence": 1},@@ -772,7 +786,7 @@{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/inference/provider/openhuman_backend_model_calls.rs",- "line": 81,+ "line": 78,"text": "with_thread_id(apply_reasoning_hint(request), self.thread_id.as_deref()),","occurrence": 2},@@ -881,17 +895,24 @@"text": "crate::agent::harness::fork_context::current_parent()","occurrence": 1},+ {+ "rule": "openhuman-task-local",+ "path": "crates/openhuman-core/src/sandbox/ops.rs",+ "line": 68,+ "text": "crate::agent::harness::current_sandbox_mode(),",+ "occurrence": 1+ },{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/security/approval/gate_intercept.rs",- "line": 58,+ "line": 53,"text": "let origin = turn_origin::current().unwrap_or(AgentTurnOrigin::Unknown);","occurrence": 1},{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/security/approval/gate_intercept.rs",- "line": 275,+ "line": 298,"text": "&& (detached || crate::agent::harness::spawn_depth_context::current_spawn_depth() > 0);","occurrence": 1},@@ -918,44 +939,44 @@},{"rule": "openhuman-task-local",- "path": "crates/openhuman-core/src/skills/webhooks/bus.rs",- "line": 317,- "text": "crate::agent::turn_origin::with_origin(",+ "path": "crates/openhuman-core/src/skills/runtime/schemas.rs",+ "line": 270,+ "text": "let origin = crate::agent::turn_origin::current()","occurrence": 1},{"rule": "openhuman-task-local",- "path": "crates/openhuman-core/src/skills/webhooks/ops.rs",- "line": 171,- "text": "crate::agent::turn_origin::with_origin(",+ "path": "crates/openhuman-core/src/skills/runtime/schemas.rs",+ "line": 272,+ "text": "let started = crate::agent::turn_origin::with_origin(","occurrence": 1},{"rule": "openhuman-task-local",- "path": "crates/openhuman-core/src/tools/impl/system/node_exec.rs",- "line": 259,- "text": "crate::agent::harness::current_sandbox_mode(),",+ "path": "crates/openhuman-core/src/skills/schemas/handlers.rs",+ "line": 155,+ "text": "let origin = crate::agent::turn_origin::current()","occurrence": 1},{"rule": "openhuman-task-local",- "path": "crates/openhuman-core/src/tools/impl/system/npm_exec.rs",- "line": 261,- "text": "crate::agent::harness::current_sandbox_mode(),",+ "path": "crates/openhuman-core/src/skills/schemas/handlers.rs",+ "line": 157,+ "text": "let started = match crate::agent::turn_origin::with_origin(","occurrence": 1},{"rule": "openhuman-task-local",- "path": "crates/openhuman-core/src/tools/impl/system/python_exec.rs",- "line": 252,- "text": "crate::agent::harness::current_sandbox_mode(),",+ "path": "crates/openhuman-core/src/skills/webhooks/bus.rs",+ "line": 317,+ "text": "crate::agent::turn_origin::with_origin(","occurrence": 1},{"rule": "openhuman-task-local",- "path": "crates/openhuman-core/src/tools/impl/system/shell.rs",- "line": 371,- "text": "crate::agent::harness::current_sandbox_mode(),",+ "path": "crates/openhuman-core/src/skills/webhooks/ops.rs",+ "line": 171,+ "text": "crate::agent::turn_origin::with_origin(","occurrence": 1},{@@ -1003,7 +1024,7 @@{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/web_chat/ops/turn_guards.rs",- "line": 111,+ "line": 135,"text": "crate::agent::turn_origin::with_origin(","occurrence": 1},@@ -1150,35 +1171,35 @@{"rule": "openhuman-upstream-reexport","path": "crates/openhuman-embed/src/lib.rs",- "line": 187,+ "line": 195,"text": "pub use tinyagents_session::port::{","occurrence": 1},{"rule": "openhuman-upstream-reexport","path": "crates/openhuman-embed/src/lib.rs",- "line": 191,+ "line": 199,"text": "pub use tinyagents_session::testkit::conformance::{","occurrence": 1},{"rule": "openhuman-upstream-reexport","path": "crates/openhuman-embed/src/lib.rs",- "line": 195,+ "line": 203,"text": "pub use tinyagents_session::transcript::{","occurrence": 1},{"rule": "openhuman-upstream-reexport","path": "crates/openhuman-embed/src/lib.rs",- "line": 200,+ "line": 208,"text": "pub use tinyagents_session::turn_state::{TurnLifecycle, TurnState};","occurrence": 1},{"rule": "openhuman-upstream-reexport","path": "crates/openhuman-embed/src/lib.rs",- "line": 202,+ "line": 210,"text": "pub use tinyagents_session::{Result as StoreResult, TinyAgentsError as StoreError};","occurrence": 1},@@ -1203,17 +1224,45 @@"text": "impl ChatMessage {","occurrence": 1},+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/driver_tests.rs",+ "line": 46,+ "text": "let messages = vec![ChatMessage::user(\"hi\")];",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/driver_tests.rs",+ "line": 457,+ "text": "let messages = [ChatMessage::user(\"hello\")];",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/driver_tests.rs",+ "line": 628,+ "text": "let messages = vec![ChatMessage::user(\"hi\")];",+ "occurrence": 2+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/driver_tests.rs",+ "line": 696,+ "text": "let messages = [ChatMessage::user(\"UNIQUE-PENDING-TURN\")];",+ "occurrence": 1+ },{"rule": "tinyagents-openhuman-domain-name","path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/driver.rs",- "line": 71,+ "line": 145,"text": "use super::bridge::{ChatMessage, ChatResponse, ProviderDelta};","occurrence": 1},{"rule": "tinyagents-openhuman-domain-name","path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/driver.rs",- "line": 237,+ "line": 314,"text": "pub messages: &'a [ChatMessage],","occurrence": 1},@@ -1336,6 +1385,174 @@"text": "&[ChatMessage::user(","occurrence": 4},+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 268,+ "text": "let history = [ChatMessage::user(\"ship it\")];",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 278,+ "text": "let first = [ChatMessage::user(\"first\")];",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 280,+ "text": "let queued = [ChatMessage::user(\"first\"), ChatMessage::user(\"second\")];",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 289,+ "text": "let first = [ChatMessage::user(\"continue\")];",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 292,+ "text": "ChatMessage::user(\"continue\"),",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 293,+ "text": "ChatMessage::assistant(\"step one done\"),",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 294,+ "text": "ChatMessage::user(\"continue\"),",+ "occurrence": 2+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 305,+ "text": "ChatMessage::user(\"continue\"),",+ "occurrence": 3+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 306,+ "text": "ChatMessage::assistant(\"Done\"),",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 307,+ "text": "ChatMessage::user(\"continue\"),",+ "occurrence": 4+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 310,+ "text": "ChatMessage::user(\"continue\"),",+ "occurrence": 5+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 311,+ "text": "ChatMessage::assistant(\"Done\"),",+ "occurrence": 2+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 312,+ "text": "ChatMessage::user(\"continue\"),",+ "occurrence": 6+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 313,+ "text": "ChatMessage::assistant(\"Done\"),",+ "occurrence": 3+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 314,+ "text": "ChatMessage::user(\"continue\"),",+ "occurrence": 7+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 324,+ "text": "let both = [ChatMessage::user(\"one\"), ChatMessage::user(\"two\")];",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 325,+ "text": "let only_second = [ChatMessage::user(\"two\")];",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 334,+ "text": "let fps = pending_fingerprints(&[ChatMessage::user(\"go\"), ChatMessage::user(\"go\")]);",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 340,+ "text": "let short = [ChatMessage::assistant(\"ok\"), ChatMessage::user(\"go\")];",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 342,+ "text": "ChatMessage::user(\"older\"),",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 343,+ "text": "ChatMessage::assistant(\"ok\"),",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 344,+ "text": "ChatMessage::user(\"go\"),",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 351,+ "text": "let history = [ChatMessage::user(\"hello\")];",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder_tests.rs",+ "line": 359,+ "text": "let history = [ChatMessage::user(\"hi\"), ChatMessage::assistant(\"hello\")];",+ "occurrence": 1+ },{"rule": "tinyagents-openhuman-domain-name","path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder.rs",@@ -1346,49 +1563,70 @@{"rule": "tinyagents-openhuman-domain-name","path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder.rs",- "line": 25,+ "line": 32,"text": "pub fn build_stdin(messages: &[ChatMessage], is_new_session: bool) -> Vec<u8> {","occurrence": 1},{"rule": "tinyagents-openhuman-domain-name","path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder.rs",- "line": 35,+ "line": 40,+ "text": "messages: &[ChatMessage],",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder.rs",+ "line": 53,"text": "let non_system: Vec<&ChatMessage> = messages.iter().filter(|m| m.role != \"system\").collect();","occurrence": 1},{"rule": "tinyagents-openhuman-domain-name","path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder.rs",- "line": 93,- "text": "fn pending_user_content(non_system: &[&ChatMessage]) -> Option<String> {",+ "line": 134,+ "text": "fn pending_user_turns<'a>(non_system: &[&'a ChatMessage]) -> Vec<(String, &'a str)> {",+ "occurrence": 1+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder.rs",+ "line": 181,+ "text": "pub fn pending_fingerprints(messages: &[ChatMessage]) -> Vec<String> {","occurrence": 1},{"rule": "tinyagents-openhuman-domain-name","path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder.rs",- "line": 116,+ "line": 182,+ "text": "let non_system: Vec<&ChatMessage> = messages.iter().filter(|m| m.role != \"system\").collect();",+ "occurrence": 2+ },+ {+ "rule": "tinyagents-openhuman-domain-name",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/input_builder.rs",+ "line": 202,"text": "fn prior_conversation_preamble(non_system: &[&ChatMessage], end: usize) -> Option<String> {","occurrence": 1},{"rule": "tinyagents-openhuman-domain-name","path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/mod_tests.rs",- "line": 52,+ "line": 75,"text": "ChatMessage::system(\"base\"),","occurrence": 1},{"rule": "tinyagents-openhuman-domain-name","path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/mod_tests.rs",- "line": 53,+ "line": 76,"text": "ChatMessage::user(\"question\"),","occurrence": 1},{"rule": "tinyagents-openhuman-domain-name","path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/mod_tests.rs",- "line": 54,+ "line": 77,"text": "ChatMessage::system(\"middleware addition\"),","occurrence": 1},@@ -1409,21 +1647,21 @@{"rule": "tinyagents-openhuman-domain-name","path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/mod.rs",- "line": 291,+ "line": 293,"text": "fn coalesce_system_prompt(messages: &[ChatMessage]) -> Option<String> {","occurrence": 1},{"rule": "tinyagents-openhuman-domain-name","path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/mod.rs",- "line": 340,+ "line": 360,"text": "fn request_messages(request: &ModelRequest) -> Vec<ChatMessage> {","occurrence": 1},{"rule": "tinyagents-openhuman-domain-name","path": "vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/mod.rs",- "line": 374,+ "line": 394,"text": "ChatMessage::new(role, content)","occurrence": 1},diff --git a/scripts/ci/check-openhuman-rust-layout.mjs b/scripts/ci/check-openhuman-rust-layout.mjsindex 72c437f51c..96c2ceffe6 100644--- a/scripts/ci/check-openhuman-rust-layout.mjs+++ b/scripts/ci/check-openhuman-rust-layout.mjs@@ -37,18 +37,23 @@ const LEGACY_LIMIT_ENTRIES = [// `spawn_subagent_tool_impl.rs` had its entry DELETED, not lowered: the// parameter schema moved to `spawn_subagent_parameters.rs` and the file is// under the general 750 limit, so it needs no exception at all.- // The session-todo integration added transcript metadata construction to- // this already-exempt composition seam. Keep its allowance exact.- ["crates/openhuman-core/src/agent/session_host/runtime_session.rs", 1406],+ // The latest upstream session-todo integration added transcript metadata+ // construction to this already-exempt composition seam. Keep its allowance+ // exact until the follow-up split.+ ["crates/openhuman-core/src/agent/session_host/runtime_session.rs", 1412],// Session-host factory still assembles the product's deliberately coupled// provider, security, memory, tool and prompt policy. Generic session// state moved to tinyagents-runtime; this remaining composition is split in// a follow-up without reintroducing an old harness/session exception.["crates/openhuman-core/src/agent/session_host/builder/factory.rs", 977],- ["crates/openhuman-core/src/agent/subagent_host/lifecycle.rs", 1306],- ["crates/openhuman-core/src/agent/subagent_host/ops/runner.rs", 1145],- ["crates/openhuman-core/src/tools/ops.rs", 1206],- ["crates/openhuman-core/src/web_chat/progress_bridge.rs", 1304],+ ["crates/openhuman-core/src/agent/subagent_host/lifecycle.rs", 1323],+ ["crates/openhuman-core/src/agent/subagent_host/ops/runner.rs", 1152],+ ["crates/openhuman-core/src/tools/ops.rs", 1209],+ ["crates/openhuman-core/src/web_chat/progress_bridge.rs", 1309],+ // These composition and policy files grew in the upstream runtime changes;+ // retain exact pins while their semantic splits are followed up.+ ["crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs", 760],+ ["crates/openhuman-core/src/agent/tinyagents/host/security_gate.rs", 772],// These established external test modules grew with upstream coverage. Pin// their current sizes while follow-up work separates their test concerns.// `core/` was pruned from the line limit by name until these pins; itsdiff --git a/scripts/ci/module-pin-exemptions.json b/scripts/ci/module-pin-exemptions.jsonindex 9720a45edb..8af2cdaf35 100644--- a/scripts/ci/module-pin-exemptions.json+++ b/scripts/ci/module-pin-exemptions.json@@ -11,5 +11,16 @@"Delete an entry the moment the pins are reconciled. An exemption that has","stopped being true fails the gate too \u2014 `expect` must still match."],- "exemptions": []+ "exemptions": [+ {+ "id": "tinywallet",+ "expect": "v0.7.4-6-gaccb920a",+ "reason": "The vendored tree includes six unreleased commits; the shipped v0.7.4 artifact remains the last published runtime module. Remove this exception when the next artifact is published and both pins advance."+ },+ {+ "id": "tinychannels",+ "expect": "v0.1.12-3-g5e3b2044",+ "reason": "The vendored tree includes three unreleased commits; the shipped v0.1.12 artifact remains the last published runtime module. Remove this exception when the next artifact is published and both pins advance."+ }+ ]}diff --git a/scripts/ci/saas-ambient-baseline.json b/scripts/ci/saas-ambient-baseline.jsonindex c0f85b98d4..8b9150f3fb 100644--- a/scripts/ci/saas-ambient-baseline.json+++ b/scripts/ci/saas-ambient-baseline.json@@ -65,28 +65,28 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/agent/session_host/runtime_session.rs",- "line": 723,+ "line": 732,"text": "tokio::spawn(async move {","occurrence": 1},{"rule": "bare-spawn","path": "crates/openhuman-core/src/agent/session_host/runtime_session.rs",- "line": 725,+ "line": 734,"text": "let transcript = tokio::task::spawn_blocking(move || {","occurrence": 1},{"rule": "bare-spawn","path": "crates/openhuman-core/src/agent/session_host/runtime_session_progress.rs",- "line": 72,+ "line": 93,"text": "tokio::spawn(async move {","occurrence": 1},{"rule": "bare-spawn","path": "crates/openhuman-core/src/agent/session_host/tool_progress.rs",- "line": 232,+ "line": 239,"text": "let forwarder = tokio::spawn(async move {","occurrence": 1},@@ -114,7 +114,7 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs",- "line": 262,+ "line": 263,"text": "tokio::spawn(async move {","occurrence": 1},@@ -247,7 +247,7 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/config/schema/load/impl_load.rs",- "line": 227,+ "line": 258,"text": "match tokio::task::spawn_blocking(move || {","occurrence": 1},@@ -849,14 +849,21 @@{"rule": "home-dir","path": "crates/openhuman-core/src/sandbox/ops.rs",- "line": 116,+ "line": 174,"text": "resolve_local_jail_grants(dirs::home_dir().as_deref(), &runtime_config.local_jail)","occurrence": 1},+ {+ "rule": "home-dir",+ "path": "crates/openhuman-core/src/sandbox/ops.rs",+ "line": 381,+ "text": "resolve_local_jail_grants(dirs::home_dir().as_deref(), &runtime.local_jail);",+ "occurrence": 1+ },{"rule": "bare-spawn","path": "crates/openhuman-core/src/sandbox/ops.rs",- "line": 444,+ "line": 585,"text": "let wait_result = tokio::task::spawn_blocking(move || {","occurrence": 1},@@ -982,7 +989,7 @@{"rule": "ambient-config","path": "crates/openhuman-core/src/skills/runtime/schemas.rs",- "line": 336,+ "line": 342,"text": "let config = crate::config::Config::load_or_init()","occurrence": 1},@@ -1108,7 +1115,7 @@{"rule": "ambient-context","path": "crates/openhuman-core/src/tools/ops.rs",- "line": 926,+ "line": 929,"text": "let domains = crate::core::runtime::context::CoreContext::current().map(|c| c.domains());","occurrence": 1},@@ -1255,14 +1262,14 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/web_chat/ops/parallel_turn.rs",- "line": 233,+ "line": 234,"text": "tokio::spawn(async move {","occurrence": 1},{"rule": "bare-spawn","path": "crates/openhuman-core/src/web_chat/ops/parallel_turn.rs",- "line": 268,+ "line": 270,"text": "tokio::spawn(async move {","occurrence": 2},@@ -1276,7 +1283,7 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/web_chat/ops/start_chat.rs",- "line": 706,+ "line": 707,"text": "tokio::spawn(crate::core::runtime::context::CoreContext::propagate(","occurrence": 1},@@ -1297,7 +1304,7 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/web_chat/presentation.rs",- "line": 235,+ "line": 237,"text": "let persisted = tokio::task::spawn_blocking(move || {","occurrence": 1},