Skip to content

[Squad] squad-log.py counts the hand-back as a second round; Tester tests can hold unsatisfiable expectations (from PiMonitor#219) #302

Backlog

Description

@LarsLaskowski

Lessons from the squad run of feature #219 (#219 (comment), PR #301). Both concern managed files, so they are fixed in the template repository.

1. squad-log.py --agent-id counts the hand-back as a second round (role: Orchestrator, .squad/tools/squad-log.py)

When a subagent ends with a SubagentHandback message and the harness then sends a completion notification, the agent's transcript holds two rounds. Logging its first launch with --agent-id <id> then fails with "ran 2 rounds: its latest continues it — log it with --continued ...", although the agent was never continued. In this run it happened for the first Lead launch (2a Spec) and the first Devil's Advocate launch; --round 1 was needed (the Devil's Advocate row only worked without it, because the notification arrived later).

Proposal: do not count a round that consists only of the hand-back or completion notification as a continuation, or have the error text name --round 1 first for a fresh launch whose second round holds no assistant work.

2. A Tester test can contain an expectation that no input can satisfy (role: Tester, .claude/agents/squad-tester.md)

In G2 the Tester wrote TestStyleCSS_ConsoleSegmentedBars_AC6 with the want "12px|100%", meaning two allowed values, but its own checkWants helper treats | as alternatives only in the property field and only a re: prefix as a pattern. No CSS could pass; the same step held a second test whose ban contradicted another test (+ ' %' banned in app.js while TestAppJS_BarLabelSplit_AC6 required it). Both cost a Dev round and a Lead decide launch.

Proposal: in mode tests-first, require the Tester to prove each new test can pass, e.g. by writing the expected implementation snippet in the test's own fixture case (a helper sanity subtest for each new matcher form), and to grep existing tests for patterns a new ban could contradict before adding it.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions