AntFleet

Disagreement · c9663187-openai-2

Abstract Environment.to_text_prompt is sync while implementations are async, creating a confusing interface contract

solo GPT-5
repo 193af03f·PR #2·reviewed 1 week ago

GPT-5 finding

Abstract Environment.to_text_prompt is sync while implementations are async, creating a confusing interface contract

lowmaintainabilityhigh
  • backend/wonderwall/social_agent/agent_environment.py:36-39
  • backend/wonderwall/social_agent/agent_environment.py:130-136
The abstract base method is declared synchronous but overridden as async in SocialEnvironment, and callers await it. This mismatch can confuse implementers and type checkers, and it weakens the contract enforced by the ABC.

Recommendation

Change the abstract method to be async def to_text_prompt(self) -> str in the Environment base class so subclasses and callers consistently use an async interface.

Other reviewer

The other reviewer flagged nothing in this file/line range.

Why this didn't post

This finding didn't meet AntFleet's unanimous agreement threshold. Both frontier models review every PR independently; only findings they both flag with the same severity and category are posted to the PR. This one fell through.

read the methodology →