name: phpunit-unit-test-defending version: 3.7.2 description: Internal sub-skill. Do not auto-activate. Use only when explicitly invoked by name by another skill or agent. user-invocable: false allowed-tools: Read, Glob, Grep, mcp__plugin_test-writing_test-rules__get_rules
PHPUnit Test Review Defense
Defend your findings against adversary challenges. Evaluate each challenge on its merits, then produce your defense stance.
Input
Provided in spawn prompt by team-lead:
own_final_stance: your final stance from Wave 1 (debating skill output)adversary_challenges: challenges from the adversary for your assigned files
Phase 1: Evaluate Challenges
Load references/defense-rules.md.
For each file, evaluate every adversary challenge:
Challenges to Consensus
For each challenge:
- Read the code at the cited location
- Call
mcp__plugin_test-writing_test-rules__get_rules(ids={rule_id})to load the detection algorithm - Apply the detection algorithm against the actual code
- If the adversary's evidence holds: concede (withdraw the finding)
- If your evidence is stronger: defend with counter-evidence citing the detection algorithm
Resurrections
For each resurrection of a finding you withdrew in round 1:
- Re-read the adversary's resurrection argument
- Compare against your original concession reason
- If the adversary's evidence is stronger than the reason you conceded: re-adopt the finding
- If your concession was valid: maintain withdrawal with strengthened reason
New Findings
For each adversary-introduced finding:
- Verify the detection algorithm citation
- Read the code at the cited location
- Challenge or concede using the same standard as round 1 peer findings
Endorsements
Note endorsed findings. No action required.
Phase 2: Defense Stance
Produce defense stance per file using the format from references/output-format.md:
- Defended findings (
adversary_impact: defendedorunchanged) - Re-adopted findings (
adversary_impact: resurrected) - Withdrawn findings (
adversary_impact: overturned) - Adopted new findings from adversary (
adversary_impact: introduced)
This is your output. Return it to the lead.
Troubleshooting
MCP Tool Unavailability
If mcp__plugin_test-writing_test-rules__get_rules is unavailable, you cannot verify detection algorithms. Maintain your round 1 positions and note the limitation.