Our Hero, James the Summoner, has the Counter-Summoner archetype and is 2nd level. This grants him the following abilities:
Counter-Summon (Su) ... a counter-summoner can attempt to counter a conjuration spell cast by another creature. He must identify the spell being cast as normal for counterspelling. If he does so, he can attempt to counter the spell as a swift or immediate action. To counter the spell, the counter-summoner must attempt a dispel check as if using dispel magic. If the spell being countered is a summon monster or summon nature’s ally spell, the counter-summoner gains a +5 bonus on the dispel check.
Detect Summons (Su) At 2nd level, as a swift action, a counter-summoner can target a single creature he can see and determine if it has been summoned to its current plane from another. This ability reveals whether the target has been conjured by a conjuration (summoning) or (calling) spell, and allows the counter-summoner to attempt a Spellcraft check to identify the spell that conjured it (using the same DC as if the counter-summoner had witnessed the spell being cast).
His arch-rival, Alice the Druid, summoned d3 badgers to assault our Hero in advance of their inevitable combat.
Assuming that James successfully identifies the spell that was used to bring these rabid badgers into being, can he attempt to dispel them or is he restricted to doing so only if he witnesses the spell being cast in the first place?
:-)
Also, it may be worthwhile to include why the Pathfinder Society tag is present; the question doesn't mention that there's anything in particular here that would impact Society play. (I suggest omitting it as no special rules are needed here.) You can add the archetype tag, though. \$\endgroup\$