feat(runs): pi runs on the owner's workers; a refused run says where it can go #66
Closed
gabrielvidal
wants to merge 0 commits from
pi-on-workers into main
pull from: pi-on-workers
merge into: gabrielvidal:main
gabrielvidal:main
gabrielvidal:unfinished-conversations
gabrielvidal:conversation-chain
gabrielvidal:llm-proxy-harbor
gabrielvidal:llm-proxy
gabrielvidal:worker-macos-app
gabrielvidal:macos-app-hub
gabrielvidal:macos-app-signin
gabrielvidal:promote-child-conversation
gabrielvidal:unsend-message
gabrielvidal:fix/link-rotation-race
gabrielvidal:bots-plugin-exploration
gabrielvidal:live-group-current-action
gabrielvidal:mobile-drawer-toast
gabrielvidal:pi-steer
gabrielvidal:model-field
gabrielvidal:preset-machine-split
gabrielvidal:tasks-plugin
gabrielvidal:conversation-titles
gabrielvidal:card-icon-beside-title
gabrielvidal:worktrees-cli
gabrielvidal:worktrees-plugin
gabrielvidal:agent-presets
gabrielvidal:no-plugin-white-flash
gabrielvidal:agy-tasks
gabrielvidal:home-declutter
gabrielvidal:perf-plugin-batching
gabrielvidal:fresh-context-plugin
gabrielvidal:remove-hooks-page
gabrielvidal:palette-plugins
gabrielvidal:linear-projects
gabrielvidal:agent-messaging
gabrielvidal:model-router
gabrielvidal:conv-card-layout
gabrielvidal:ask-more-options
gabrielvidal:agent-limits
gabrielvidal:generic-ui-strings
gabrielvidal:android-push-bridge
gabrielvidal:auto-translate
gabrielvidal:filter-chips
gabrielvidal:plugin-catalog
gabrielvidal:file-viewers
gabrielvidal:plugins-page-rework
gabrielvidal:hub-mcp-plugin
gabrielvidal:translation-plugin
gabrielvidal:scheduled-doors
gabrielvidal:cron-jobs-plugin
gabrielvidal:context-skills-plugin
gabrielvidal:files-plugins
gabrielvidal:worker-names
gabrielvidal:details-panel-perf
gabrielvidal:services-plugin-only
gabrielvidal:fix-test-env-leaks
gabrielvidal:bg-shells-plugin
gabrielvidal:feat-commits-plugins
gabrielvidal:fix-branch-line-tag-rows
gabrielvidal:retire-dead-leftovers
gabrielvidal:runner-into-harness-pi
gabrielvidal:retire-tool-proxy
gabrielvidal:new-project-policy-plugin-only
gabrielvidal:guest-jobs-sonnet
gabrielvidal:push-buttons-everywhere
gabrielvidal:mail-send-plugin
gabrielvidal:ui-polish-batch
gabrielvidal:command-palette-plugin
gabrielvidal:keyboard-shortcuts-plugin
gabrielvidal:prompt-shortcuts-plugin
gabrielvidal:matomo-site-grants
gabrielvidal:lab-chrome-plugin
gabrielvidal:performance-plugin
gabrielvidal:whats-new-plugin
gabrielvidal:skills-agents-plugin
gabrielvidal:goals-plugin-only
gabrielvidal:storage-server-side
gabrielvidal:plugin-scheduled-conversations
gabrielvidal:plugin-fences
gabrielvidal:handoff-plugin
gabrielvidal:plugin-commands
gabrielvidal:plugin-speed
gabrielvidal:cleanup-provider-harness
gabrielvidal:plugin-conversation-labels
gabrielvidal:plugin-plan-usage
gabrielvidal:fix-worker-harness-sync
gabrielvidal:plugin-gcloud-reauth
gabrielvidal:feat/plugin-cards-in-thread
gabrielvidal:feat/plugin-proxy-wake
gabrielvidal:unify-subagents-children
gabrielvidal:wave3d-frontend-typed-plugins
gabrielvidal:wave3c-sidecar-strict-plugins
gabrielvidal:wave3a-catalog-accounts-profiles
gabrielvidal:wave3b-pricing-usage-cutover
gabrielvidal:wave1a-typed-plugins
gabrielvidal:wave1b-sidecar-runtime
gabrielvidal:fix-ios-overlay-scroll
gabrielvidal:batch2-work-resources-core
gabrielvidal:batch2-apikeys
gabrielvidal:plugin-blue-green-deploy
gabrielvidal:plugin-ship
gabrielvidal:plugin-project-env
gabrielvidal:plugin-memories
gabrielvidal:plugin-activity
gabrielvidal:plugin-templates
gabrielvidal:plugin-desk-phone
gabrielvidal:batch1-platform
gabrielvidal:plugins-list-view
gabrielvidal:dash-plugins
gabrielvidal:pets-plugin
gabrielvidal:ha-push-channel
gabrielvidal:mail-agents
gabrielvidal:graph-fix
gabrielvidal:graph-plugin
gabrielvidal:services-plugin
gabrielvidal:left-to-do-plugin
gabrielvidal:plugins-gallery
gabrielvidal:home-conv-menu
gabrielvidal:meta-business
gabrielvidal:agy-rdrand
gabrielvidal:bg-lag
gabrielvidal:conv-load-perf
gabrielvidal:askform-instant
gabrielvidal:fix/drawer-menu-done-chip
gabrielvidal:pi-midrun-compaction
gabrielvidal:interrupt-menu-btn
gabrielvidal:authz
gabrielvidal:inkling
gabrielvidal:repo-plugins
gabrielvidal:work-sync
gabrielvidal:leftovers
gabrielvidal:fix/agy-guest-guard
gabrielvidal:feat/model-presets
gabrielvidal:scroll-back
gabrielvidal:feedback-bell
gabrielvidal:feat/movies-tool
gabrielvidal:feat/running-thread-padding
gabrielvidal:feat/drawer-filter-button-card-chat
gabrielvidal:burn-rate
gabrielvidal:guest-install
gabrielvidal:guest-usage
gabrielvidal:guest-palette
gabrielvidal:guest-form-links
gabrielvidal:form-open-buttons
gabrielvidal:clarifier-lean
gabrielvidal:auto-archive
gabrielvidal:guests-profile
gabrielvidal:conv-motion
gabrielvidal:share-target
gabrielvidal:terminal-sync
gabrielvidal:work-context-past
gabrielvidal:work-context-brief
gabrielvidal:enroll-codes
gabrielvidal:open-image-file
gabrielvidal:worker-uploads
gabrielvidal:conv-drawer-search
gabrielvidal:stack-motion-v3
gabrielvidal:notif-stack-fixes
gabrielvidal:home-motion
gabrielvidal:i18n-fr
gabrielvidal:local-electricity-cost
gabrielvidal:cache-pill-thread
gabrielvidal:cache-scenarios
gabrielvidal:fresh-start
gabrielvidal:msg-select
gabrielvidal:shortcuts-setup
gabrielvidal:ui-0-40-3
gabrielvidal:outbox-landing
gabrielvidal:resume-scope
gabrielvidal:conv-filter-range
gabrielvidal:fix-subagent-form-session
gabrielvidal:ask-form-integration
gabrielvidal:form-visual-options
gabrielvidal:watcher-perf
gabrielvidal:last-msg-summary
gabrielvidal:secret-fields
gabrielvidal:commit-review
gabrielvidal:summary-mode-fixes
gabrielvidal:service-tag-parser
gabrielvidal:clarifier
gabrielvidal:fetch-diet-2
gabrielvidal:fetch-diet
gabrielvidal:conv-look
gabrielvidal:pwa-links
gabrielvidal:tool-widgets
gabrielvidal:worker-autoupdate
gabrielvidal:usage-rings
gabrielvidal:opencode-harness
gabrielvidal:notif-diet
gabrielvidal:conv-resources
gabrielvidal:scheduled-tasks
gabrielvidal:profiles
gabrielvidal:notify-exact-cost
gabrielvidal:usage-measuring
gabrielvidal:guest-projects
gabrielvidal:usage-calibration
gabrielvidal:account-switch
gabrielvidal:multiuser-improve
gabrielvidal:form-groups
gabrielvidal:multiuser
gabrielvidal:motion-reel
gabrielvidal:dashboards-fixes
gabrielvidal:split-big-files
gabrielvidal:held-regex
gabrielvidal:subagent-interrupts
gabrielvidal:form-html
gabrielvidal:tokunia-video
gabrielvidal:settings-uniform
gabrielvidal:worker-ask-fix
gabrielvidal:worker-generic-mac
gabrielvidal:runner-shortcuts
gabrielvidal:notify-unify
gabrielvidal:perf-list-cache
gabrielvidal:mac-worker
gabrielvidal:model-switch
gabrielvidal:pipeline-paths
gabrielvidal:multi-account
gabrielvidal:feature-flags
gabrielvidal:qwen38-support
gabrielvidal:url-prompt
gabrielvidal:running-pages
gabrielvidal:homelab-tag
gabrielvidal:root-project
gabrielvidal:or-models
gabrielvidal:deploying-loader
gabrielvidal:worktree-diff
gabrielvidal:conv-tags
gabrielvidal:tags-page
gabrielvidal:agents-page
gabrielvidal:icon-picker-shortcuts
gabrielvidal:conv-cta
gabrielvidal:stamp-refine
gabrielvidal:post-task-cache
gabrielvidal:post-tidy-completed
gabrielvidal:form-badge
gabrielvidal:hooks-delay-seconds
gabrielvidal:cost-dashboard
gabrielvidal:plan-forms
gabrielvidal:form-mobile
gabrielvidal:guidelines-dag
gabrielvidal:skills-view
gabrielvidal:navbar-hold
gabrielvidal:spawnbox-status
gabrielvidal:hold-editable-expand
gabrielvidal:drawer-transparent
gabrielvidal:hold-fix
gabrielvidal:hold-editable
gabrielvidal:charroll-bump
No Reviewers
Labels
No items
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
gabrielvidal (Gabriel Vidal)
Clear assignees
No Assignees
gabrielvidal
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gabrielvidal/ai-agent#66
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
pi runs can now live on one of the owner's workers, and a refused run says where it can go. Conversation
01a23883was a pi/Qwen 3.8 Abliterated run told to spawn its next step on the Mac. It ranai-agent new --on <worker> --model qwen3.8-27b-abliteratedand got "pi runs on the Homelab only". It then dropped--modelto get past the error, and three Opus 5.5 children ran (two on the EVOX2, one on the Mac). #65 already fixed the "no model → Opus" half: a child now runs like its parent. This PR fixes the other half. pi can run on a worker that's asked for, and refusals name a way out instead of leaving the caller to drop its pick.Key changes
runs/service.pyroute_new_run):--on/ Runs on, or the machine a child inherits. An unpinned pi run still goes to the lab (_no_login).runReady).hint(_hint): the other machines that run this harness on the model's vendor, and the other harnesses that run it on the machine asked for.profiles/store.worker_logins_by_harness): a worker whose/healthsaysrunReady: {pi: true}holds pi's keyless accounts (EVOX2, Colab). Never a guest's computer, never OpenRouter.workers/storepersistsrunReadyfrom/health.runs/service.harness_extras, in_launchand the fork): for a pi run on an owner worker, the hub asks the host sidecar's newGET /harnesses/{id}/worker-extras(the driver'sworker_extras()). It passes the answer as the run body'sharnessExtras(new on the sidecar's Spawn/Resume/Fork bodies).harness_base): two optional hooks,run_ready()(→ the worker's/healthrunReadymap) andworker_extras()(host only).sidecar.pyfeed roots,config.PI_RUNNER_TRANSCRIPTS,workers/remotefeed.py,core/state.py): a worker's/feedlists the pi runner's mirror as@pi/local/<slug>/<sid>.jsonl. The hub lands it in the usual layout and stampsworkerSourceonly, since the spawn already stamped the account. Resume and fork then follow the session to that worker.cli/ai_agent.py, the ai-agent skill): refusals print their hint. A refusednew/send/forkthat named--model/--on/--harnessadds "Don't retry without --model / --on / --harness to get past this: pick what the hint names, or stop and say so." The help text and the guest skill say the same.runsOn: "any". The worker Setup row and the Logins hint no longer say pi runs stay on the lab (i18n key list regenerated). CLAUDE.md gets a "pi runs on a worker" section.Key decisions
worker_harness).runReadyinstead of a login. pi has no login, so "can this machine run it" is the driver's call: its pi, or node + npm to install it.Changelog
--on, Runs on) with an EVOX2 or Colab model and pi runs there.ai-agentCLI tells agents not to drop--model/--on/--harnessto get past a refusal.Test notes
backend/test_pi_on_workers.py, 8 passed (bwrap + throwaway/data, pinned to the backend fixtures). They cover:harnessExtrasand billsevox2;harness_extrasscoping;@pi/localfeed rel landing and stampingworkerSourceonly.sidecar/test_worker_extras.py, 6 passed: the route on host vs worker,harnessExtrasreaching spawn, resume and fork,runReadyper driver, and a broken driver never failing/health.cli/test_ai_agent.py, 74 OK, including the hint and the retry warning.ANTHROPIC_BASE_URL, …).test_authz_matrix×2 (POST /api/ask/{id}/cancelhas no authz entry, as the 2026-12-02 ship run found) andtest_typed_plugins×1.test_pi_on_workers8 passed.tsc --noEmitclean;UPDATE_I18N_KEYS=1 npx vitest run src/i18n, then 7 passed.npm ci, and inkling-2-mini answered OK throughhttp://fedora:8091/v1. The transcript was mirrored under~/.pi-runner/transcripts/, the new feed root.runReady/@pisidecar code with their next update.🤖 Generated with Claude Code
Merged into
mainas4002cb4e59by the auto-ship batch https://ai-agent.lab.gabvdl.xyz/conversation/ef142e75-018b-4282-b8d6-b661f406bcec.Pull request closed