Skip to content

feat(agents): [OPE-1759] fully decommission PettBro (Pett.ai)#2058

Merged
atepem merged 3 commits into
stagingfrom
precious/decommission-pettbro
Jul 3, 2026
Merged

feat(agents): [OPE-1759] fully decommission PettBro (Pett.ai)#2058
atepem merged 3 commits into
stagingfrom
precious/decommission-pettbro

Conversation

@atepem

@atepem atepem commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

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

  1. Existing PettBro agents can't runuseDeployability.ts:136 disables Start; autoRunHelpers.ts:358 + AutoRunProvider/utils/utils.ts:166 exclude it from auto-run; useNotifyOnNewEpoch.ts:59 stops new-epoch nudges.
  2. User sees an "no longer supported" alertAgentDisabledAlert/index.tsx:68 makes AgentPhasedOutAlert pre-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.
  3. Withdraw + unstake, no locked funds — kept isAgentEnabled: true so the sidebar entry and wallet stay reachable. ServicesService.withdrawBalance unstakes 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 — add isPhasedOut: true to 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

  • Lint: clean.
  • 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

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>
@atepem
atepem requested a review from Tanya-atatakai as a code owner July 2, 2026 14:06
@atepem atepem changed the title feat(agents): fully decommission PettBro (Pett.ai) feat(agents): [fully decommission PettBro (Pett.ai) Jul 2, 2026
@atepem atepem changed the title feat(agents): [fully decommission PettBro (Pett.ai) feat(agents): [OPE-1759] fully decommission PettBro (Pett.ai) Jul 2, 2026
@atepem
atepem changed the base branch from main to staging July 2, 2026 14:50
@valory-coding-agent
valory-coding-agent Bot requested a review from OjusWiZard as a code owner July 2, 2026 19:52
@atepem
atepem merged commit 91e854c into staging Jul 3, 2026
17 checks passed
@atepem
atepem deleted the precious/decommission-pettbro branch July 3, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants