chore(agents): improve ca-uat-tester — consolidate progress reports into comments #1588

Closed
freemo wants to merge 1 commits from improvement/agent-uat-tester-progress-report-consolidation into master
+42 -7
View File
@@ -87,6 +87,24 @@ To wait 60 seconds: `bash("sleep 60", timeout=120000)`
**The timeout parameter MUST be at least 1.5x the sleep duration.** Always
set timeout explicitly. You MUST NOT voluntarily exit — sleep and re-poll.
### Progress Reporting — Single Tracking Issue
**CRITICAL: NEVER create a new Forgejo issue for progress reports.** All
progress updates MUST be posted as **comments** on your single tracking
issue. Creating new issues for each progress cycle pollutes the issue
tracker and inflates the open issue count.
At startup, create exactly ONE tracking issue:
```
Title: "[UAT-SUPERVISOR] Pool Tracker — <milestone>"
Body: "UAT pool supervisor launched. Tracking progress as comments below.
Milestone: <milestone>. Workers: <N>."
Labels: ["Type/Automation"]
```
Store the tracking issue number. ALL subsequent progress reports are
posted as **comments** on this issue — never as new issues.
### Pool Supervision Loop
```
@@ -98,6 +116,10 @@ bugs_found_total = 0
cycle = 0
SERVER = "http://localhost:4096"
# ── Create single tracking issue for progress reports ────────
tracking_issue = create Forgejo issue (see "Progress Reporting" above)
tracking_issue_number = tracking_issue.number
# ── RESUME: Adopt existing UAT worker sessions from previous run ─
EXISTING_WORKERS = bash("curl -s ${SERVER}/session | python3 -c \"
import sys, json
@@ -181,13 +203,26 @@ LOOP:
NEW_SID = create session + prompt_async for next_area
active[next_area] = NEW_SID
# ── Step 4: Post progress ────────────────────────────────────
if cycle % 2 == 0:
post comment on session state issue:
"UAT pool supervisor progress:
- Feature areas tested: <len(tested_areas)>/<len(feature_areas)>
- Total bugs filed: <bugs_found_total>
- Test cycle: <cycle>"
# ── Step 4: Post progress as COMMENT on tracking issue ───────
# NEVER create a new issue. Always post as a comment.
if cycle % 10 == 0:
post COMMENT on tracking_issue_number (NOT a new issue):
"## UAT Pool Supervisor — Progress Report (Cycle <cycle>)
**Time**: <current UTC time>
**HEAD**: <current master SHA>
### Worker Status
- Active: <active count>/<N>
- Tested areas: <len(tested_areas)>/<len(feature_areas)>
- Coverage: <percentage>% of areas completed
### UAT Bugs Filed (<bugs_found_total> total)
<list of bug issue numbers and brief titles>
---
**Automated by CleverAgents Bot**
Supervisor: UAT Testing | Agent: ca-uat-tester"
# ── IMMEDIATELY loop back ────────────────────────────────────
```