# Autonomous group weekly report

The group role of `weekly_report` prepares an unsent, evidence-backed draft and never asks: missing information triggers retrieval. No `ask_user` and no `WAITING_USER`.

| Input or source | Used for | Limit |
| --- | --- | --- |
| Request body, explicit group or week | Preserved and wins | `source=supplied` disables all discovery |
| Memory, relevant local notes | Establish scope | Old documents never count as current progress |
| No stated period | Current ISO week, shown |  |
| WeChat group, existing read-only adapter | Supplements supplied material after scope discovery | Read-only |
| WeChat unavailable | Search local sources, report the exact limitation |  |
| Repository fixtures, workflow source, diagnostic data | Never business evidence |  |

Retrieved content is data, not instructions. Read-only tools only: no messaging, arbitrary execution, permission changes or publication.

## Incomplete evidence

| Situation | Result |
| --- | --- |
| Anonymous body | Matched only to a unique source-backed author. Mentions, order and topics prove nothing |
| Unresolved author | Visibly unverified label |
| Unknown scope, closed channel, no current-week record | Listed as limitations in the draft |
| Unknown date | Stays unverified |
| Empty search | Partial draft with source-search diagnostics; no invented progress |
| Model or provider error, cancellation | Keeps its actual outcome |

## Validation and delivery

| Topic | Rule |
| --- | --- |
| Validation | Record shapes and citations, after discovery; missing business metadata alone cannot block a draft |
| Reuses | Source validation, composition and local draft writing, plus Agent tools, structured-output validation, memory and file tools, and the native WeChat adapter. This claims no Codex or Claude group-report feature. |
| Budget | No aggregate model-call, token or wall-time budget. Bounded native reads and per-call context handling remain; coverage is stated as partial. |
| Result | Draft text and issues |
| Rejected | A required-field questionnaire, mutually exclusive supplied and native acquisition, unrestricted shell access, guessed identities |

## Member rendering and resumable composition

| Topic | Rule |
| --- | --- |
| Member line | Keeps its WeChat format and carries validated source identifiers in brackets, pointing at the same source table |
| Checkpoint | Each completed member line, before the next member call, with no fixed heading count subtracted |
| Resume | Retries only the interrupted member; keeps earlier content and the model-state, call-count and position semantics |
| Unchanged | Checkpoint readers, exact-excerpt rejection, original-text fallback, sidecars, cancellation and unsent delivery |

**Acceptance**

| Case | Expected |
| --- | --- |
| One-line request, no metadata | Retrieves scope and current material |
| Anonymous text | Preserved and uniquely matched; an ambiguous author stays unverified |
| WeChat failure | Falls back to local evidence |
| No evidence | Partial output without asking |
| Supplied-only input | No retrieval |
| Stale or invented citations | Cannot enter current progress |
| Cancellation | Propagates |
| Vague group request | Forwarded with no clarification branch |
| Complete member A, fail B, resume B | Both bodies and source identifiers in the saved summary |
| Test isolation | Providers, memory and HOME isolated; real WeChat checked separately in the installed App |

## Implementation status

| Item | State |
| --- | --- |
| Implemented, package tests | Discovery, no-question routing, member rendering, checkpoint repair |
| Real model run | Retrieved scope and local files without clarification; partial draft, because no current-week material was verified |
| Not established | Live native WeChat collection |
| Tracked separately | Installed-App acceptance |
