feat(service,panel): graduate Managers act for whoever asked
Why
Dean reported that PRs from Charles's Manager still open under Charles's GitHub account when Dean is the one asking. The cause is that MANAGER_ACTS_FOR_ASKER was never turned on: it has been listed: false since #10788, and no workspace in production has a row for it. So every agent a Manager starts belongs to the Manager's owner. Dean decided it should be on for everyone, with no setting.
What changes
- Start (
agent-tools.ts,startAccountOf): an agent a Manager starts always belongs to the member who asked for the turn (turnAsker). It runs on that member's payer, machines, and GitHub account. - Integrations (
connection-door.ts,callActor): a Manager's integration calls always run on the asker's own grants. - Settings: the experiment's key, entry, anchor, counted mapping, and Experimental-page row are deleted.
PRODUCT_EXPERIMENTkeeps its value, as earlier graduations did (#9767), so an older build's analytics batch is still read. - Manager Settings › Model: a reader who is not the Manager's owner is now always told "Agents it starts for you run on yours."
- Tests: the flag-on setup and the flag-off clause leave the start test and the integrations test. The behavior with the flag on stays tested.
An asker with no subscription or key for the model: this was already handled. The start is refused with a sentence the Manager can relay ("Not started: an agent you start is …'s, who asked for this turn, and no subscription or API key of theirs pays for that model …"), and it is never paid for by the owner. The start test still asserts this.
managerAssigneeOf stays. It still opens PRs as the task's assignee for Manager agents that run on the owner's account. Those are agents started in a turn the owner asked for, or in one no member asked for (a wakeup, a GitHub event). They also include every agent started before this change, since the flag was never on anywhere. Its header now says so.
There is no hosted wire change: the experiment had no rows to read and no client sends it.
Tests
Run locally:
connection-door.test.tsmanager-assignee.test.ts- The edited
start_agent from a Manager …case incoder-agent-tools.test.ts experimental-page.test.ts,settings-search.test.ts, andpackages/settings- Typecheck for
@repo/serviceand@repo/panel - Lint
The rest is left to CI.
🤖 Generated with Claude Code