feat(agents): [OPE-1759] fully decommission PettBro (Pett.ai)#2058
Merged
Conversation
Mark the PettAi agent as terminally retired via `isPhasedOut: true`, reusing the same phase-out mechanism as Agents.fun. Existing PettBro instances can no longer run (Start disabled, excluded from auto-run, no new-epoch nudges) and surface the phased-out alert prompting withdrawal. `isAgentEnabled` stays true so the sidebar entry and withdraw/unstake flow remain reachable — funds are not locked. Update config and FundingRequirementStep tests to reflect PettAi's new phased-out state (swap the blocked-but-not-phased-out case to Optimus). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Tanya-atatakai
approved these changes
Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fully decommissions the PettBro (Pett.ai) agent by marking it as terminally retired via
isPhasedOut: true, reusing the existing phase-out mechanism already used by Agents.fun. No new component/infra needed.Functional requirements met
useDeployability.ts:136disables Start;autoRunHelpers.ts:358+AutoRunProvider/utils/utils.ts:166exclude it from auto-run;useNotifyOnNewEpoch.ts:59stops new-epoch nudges.AgentDisabledAlert/index.tsx:68makesAgentPhasedOutAlertpre-empt every other alert: "PettBro by Pett.ai has been phased out and is no longer supported. You can still withdraw funds from your Agent Wallet." with a Withdraw button.isAgentEnabled: trueso the sidebar entry and wallet stay reachable.ServicesService.withdrawBalanceunstakes and sweeps to the Agent Wallet in one backend call; phased-out doesn't block it. The Decommission menu also remains available.Changes
frontend/config/agents.ts— addisPhasedOut: trueto the PettAi config.frontend/tests/config/agents.test.ts— replace the old "creation blocking and deprecation" block with a "PettAi phase-out" block mirroring the Agents.fun assertions.frontend/tests/components/SetupPage/AgentOnboarding/FundingRequirementStep.test.tsx— the "blocked-but-not-phased-out" case relied on PettAi; swapped to Optimus.Testing
tests/config/agents.test.ts— 40/40 pass.FundingRequirementStep+useService+useStakingProgram— 78/78 pass.Out-of-scope follow-up (not fixed here)
The PettAi config still carries
needsOpenProfileEachAgentRun/needsOpenProfileEachAgentRunAlert, now dead code since the agent can never run (and the phased-out alert pre-empts it anyway). Candidate for a follow-up cleanup; left in place to keep this change minimal.🤖 Generated with Claude Code