Weekly reports
Five packages in ~/.openprogram/programs, independently versioned; source checkouts do not include them. Shared helpers: openprogram.programs._authoring.reports.
| Entry | Purpose | External writes |
|---|---|---|
personal_weekly_report(task) | Personal Feishu drafts, inspection, filling, submission, record updates | Filling changes fields without saving; submitting or updating needs an explicit request |
personal_chat_weekly_report(task) | Owner's three-section WeChat-group copy: progress, discussion topics, next-week plans, in Chinese | Local draft; never sends |
group_weekly_report(task) | Collect group reports, track missing members, prepare a summary | Never sends |
tencent_weekly_report(task) | About 100 Chinese characters of Tencent progress for a leader | Local draft |
weekly_report(task) | Selects the requested Workflows and forwards the complete request; imports the other four | As the child |
Personal-chat and Feishu drafts return the full Markdown body by default, with no file write needed; returning text submits nothing. An explicit Markdown path keeps file delivery, and existing file-delivery resume requests still work.
weekly_report
Select it in Abilities. Natural language goes to a routing agent; JSON requests addresses children directly with no routing inference.
{
"requests": {
"personal": {
"week": "2026-W37",
"materials": [{"id": "p1", "week": "2026-W37", "text": "Experiments remain in progress; next week we will check the results."}]
},
"tencent": {
"week": "2026-W37",
"materials": [{"id": "t1", "week": "2026-W37", "text": "Tencent evaluation is still in progress. No final performance conclusion is available."}]
}
}
}
Materials are separate by audience. Personal and Tencent inputs need matching ISO weeks and unique source IDs. Thin evidence returns a request for input or review, never invented progress.
| Routing | Rule |
|---|---|
| Selection | One to four destinations by meaning and negation; the entire original request passes unchanged to each |
| Never | Splits on punctuation, extracts materials, forces drafts, assigns a common week, asks for clarification |
| Defaults | A generic progress draft without Feishu language is personal_chat; an unspecified audience is the unsent personal-chat draft |
| Results | One: verbatim. Several: labeled by audience |
| Timeouts | Routing, group parsing and personal model calls inherit OPENPROGRAM_EXEC_TIMEOUT_S |
| Child failure | The exception keeps earlier completed results, not rerun. Browser access failures propagate. |
Tencent report
Select tencent_weekly_report and enter Prepare this week's Tencent weekly_report. Uses the current ISO week in Asia/Shanghai, targets 80–120 non-whitespace characters aiming for 100, intended for Friday afternoon. It creates no schedule and sends nothing; a scheduled run needs an exact time and material source configured separately.
| Order | Evidence |
|---|---|
| Explicit materials | Take precedence |
1. reports directory | Original current-week Tencent evidence; optional report_roots selects up to five directories |
| 2. Other report sources | Considered next |
| 3. Recent OpenProgram sessions | Original owner messages, keeping date and session/message reference. At most 20 sessions and the last 200 messages each. |
| 4. Dated memory | Generated notes are lookup candidates, not verified facts |
| Excluded | Assistant drafts, unattributed messages, other weeks, month/year-only dates, pending memory records, untrusted raw memory, test records |
| Other audiences | Need source selection with exact quotes |
A dated request or plan is a candidate, not proof. Combined context is at most 30 records and 18,000 UTF-8 bytes. Insufficient sources require clarification within that scope, which does not establish that no work exists elsewhere.
Output, timeouts and failures
- Success returns the report body. Sources, character count and model calls stay in local drafts.
"result_format": "structured"in the JSON task returns status, artifact paths and a recovery object; the router forwards explicit child options unchanged. - Generation and verification use low effort, 180 seconds per call and preserved retry budgets. Request interpretation inherits the deployment timeout. Every JSON stage declares a schema and reuses Runtime format repair.
- Model failures produce no success draft and keep the typed failure and resume task, never treated as missing input.
Group report
Prepare the group report is enough: identity, roster, materials and author evidence come from memory, local records and the identified WeChat group. Supplied bodies are kept. No period given: the current ISO week, recorded as an assumption.
| Case | Result |
|---|---|
| Default source | auto; source: "supplied" restricts to supplied materials |
| Unresolved authors | Visibly unverified |
| Missing evidence | Partial draft with diagnostics |
| WeChat controls unavailable | Recorded; continues with local evidence as an explicitly partial draft |
| WeChat access fails | Local sources remain |
| Native collection | Verifies the group and keeps source evidence; historical coverage is partial; cannot send or change system permissions |
| Model or provider failure | Keeps the actual error, not missing input |
Personal Feishu report
Select personal_weekly_report and request Fill the personal Feishu weekly report without submitting. It checks records, prepares six fields, fills them and reads each back.
| Situation | FILLED | SUBMITTED |
|---|---|---|
| No record exists, fill requested | Yes | No |
| Explicit submit request, no record | No | Yes |
| Existing record or capped form, fill requested | BLOCKED | No |
| Missing or ambiguous field, truncated value, uncertain write | No | No |
A submit request meeting an existing record returns its inspection result; changing it needs an explicit update request.
Fill, readback and browser rules
| Rule | Behavior |
|---|---|
| Fill-only | Permits the observed records navigation and the exact textbox values; rejects submit and save clicks, keypresses, coordinates and stale observations before the browser runs |
| Readback | Compares complete actual values exactly, including line breaks and repeated spaces. ARIA text alone or browser schemas without values cannot return FILLED |
| Labels | The native backend supports form labels and unique visible labels around contenteditable fields. Missing or ambiguous labels stop before a write |
| Tool | Only computer_use, on web pages in the built-in browser; real tool receipts needed, so quoted calls in model text are not actions |
| Limits | No hard-coded aggregate timeout or round limit; deployment limits apply |
| Submit and update | Same field binding and readback. The final attempt is recorded before dispatch, so an uncertain result never repeats |
| Placeholders | Empty five-dimension placeholders are not progress |
| Uncertain remote writes | Non-retryable: inspect the record first |
| Model failures | Unresolved ones propagate as errors |
Evidence for personal and personal-chat reports
| Topic | Rule |
|---|---|
| Reader | A read-only Agent uses list_agents(scope="all"), read_conversation, memory and original local notes |
| Period | Turns expose UTC timestamps; the default is the current ISO week in Asia/Shanghai. Recent activity does not make older turns current |
| Not proof of work | Requests, plans, generated drafts and README text |
| Failed or incomplete work | Kept, with missing evidence stated |
| Each retained item | Binds to an actual owner statement or tool result, with exact source ID and visible quote |
| Leads only | Memory, files and assistant summaries |
| Supplied owner facts | Must match the owner's input; may describe an earlier period after temporal verification, keeping their input date |
| Weeks | Each audience resolves its own; a unique explicit ISO week is retained |
| Discovery | Lists up to 100 recent sessions and reads up to 10 branches, preferring project titles in the request |
| Source records | Date, operation, arguments, status and error flag |
NEEDS_INPUT | Missing originals |
NEEDS_REVIEW | Unsupported references or claims, before delivery or form writing |
| Semantic verification | Checks every item and week but does not guarantee correctness |
| Create no claims | Identity defaults, explicit clearing and absent optional content |
| Schemas | A JSON Schema validates fields or sparse edits, with prompt fallback and the existing repair attempt before any write. Operation selection and verification declare schemas |
| Iterations | Tool rounds count against max_iterations, not the failed-request allowance; format repairs and failed requests share that. The iteration limit stops without replaying tools |
| Memory tools | Read-only search, grep, get and browse use the safe-tool policy; deny and ask rules and memory.read authority apply |
Continue incomplete work
| Case | Recovery |
|---|---|
| Router | No shared checkpoint: use the relevant child's recovery instructions |
| Old coordinator resume payloads | Rejected with that guidance |
| Local delivery failure | Keeps prepared content for retry |
| Tencent | Keeps generation and verification budgets across resumes |
| External record updates | Never repeat automatically after an uncertain failure |
| Checkpoints and retry payloads | Hold private content: keep them local |