Skip to content

T-KOTJ-agentpants-real-backend-e2e

State: planning/proposed · Impact: medium · Complexity: medium

Move agentpants’s Playwright suite off its browser mock and onto the real backend over HTTP in a scratch root, using the headless helper and adapter from T-UU4J.

LocationRole today
apps/agentpants/src-tauri/build.rsOntogen generates HTTP (Axum), IPC and MCP servers into src/service/transport/
apps/agentpants/src-tauri/src/lib.rsstart_axum_server binds the generated router to a hardcoded 127.0.0.1:18101 inside the Tauri app; state comes from fleet_tauri::AppDirs::resolve(app); no headless bin
apps/agentpants/src-nuxt/app/composables/transports/http.tsThe web build already has an HTTP transport
apps/agentpants/src-nuxt/app/plugins/browser-mock.client.tsDev-only IPC stand-in
apps/agentpants/src-nuxt/tests/ui/1 Playwright spec (capture-appearance) against bun run dev on 18100 and the mock
apps/agentpants/moon.ymlNo e2e task
dev-ports.yamlagentpants 18100, agentpants-api 18101

An agentpants-server bin on the shared helper builds state from fleet dirs and serves the generated routes and the web build. The suite runs through scratchTauriApp under a moon e2e task, and covers at least one create-and-read flow against real state. The desktop app takes its port from dev-ports.yaml.

  1. Split state construction out of the Tauri setup.
  2. Add agentpants-server on the shared helper.
  3. Port capture-appearance; add one spec that creates a skill and reads it back.
  4. Add the moon e2e task.
  5. Delete the mock if nothing else uses it.
AreaNote
apps/agentpants/src-tauri/State split, agentpants-server bin
apps/agentpants/src-nuxt/Suite, mock removal
apps/agentpants/moon.ymlE2e task
  • AC-1: moon run agentpants:e2e passes against agentpants-server in a scratch root, with the isolation check on.
  • AC-2: The suite creates a skill through the UI and reads it back from the real backend.
  • AC-3: No e2e spec relies on browser-mock.
  • AC-4: The desktop app still serves its HTTP API.
  • The indexer and directory sub-apps (src-indexer, src-directory).
  • Desktop smoke.
  • T-UU4J for the headless helper and scratchTauriApp.
  • Agentpants was out of scope in the first plan. It already has generated HTTP routes, so its gap is the same as pumice’s.

T-UU4J


← Back to Tasks