OpenProgram Docs

Weekly reports

Five packages in ~/.openprogram/programs, independently versioned; source checkouts do not include them. Shared helpers: openprogram.programs._authoring.reports.

EntryPurposeExternal writes
personal_weekly_report(task)Personal Feishu drafts, inspection, filling, submission, record updatesFilling 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 ChineseLocal draft; never sends
group_weekly_report(task)Collect group reports, track missing members, prepare a summaryNever sends
tencent_weekly_report(task)About 100 Chinese characters of Tencent progress for a leaderLocal draft
weekly_report(task)Selects the requested Workflows and forwards the complete request; imports the other fourAs 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.

RoutingRule
SelectionOne to four destinations by meaning and negation; the entire original request passes unchanged to each
NeverSplits on punctuation, extracts materials, forces drafts, assigns a common week, asks for clarification
DefaultsA generic progress draft without Feishu language is personal_chat; an unspecified audience is the unsent personal-chat draft
ResultsOne: verbatim. Several: labeled by audience
TimeoutsRouting, group parsing and personal model calls inherit OPENPROGRAM_EXEC_TIMEOUT_S
Child failureThe 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.

OrderEvidence
Explicit materialsTake precedence
1. reports directoryOriginal current-week Tencent evidence; optional report_roots selects up to five directories
2. Other report sourcesConsidered next
3. Recent OpenProgram sessionsOriginal owner messages, keeping date and session/message reference. At most 20 sessions and the last 200 messages each.
4. Dated memoryGenerated notes are lookup candidates, not verified facts
ExcludedAssistant drafts, unattributed messages, other weeks, month/year-only dates, pending memory records, untrusted raw memory, test records
Other audiencesNeed 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.

CaseResult
Default sourceauto; source: "supplied" restricts to supplied materials
Unresolved authorsVisibly unverified
Missing evidencePartial draft with diagnostics
WeChat controls unavailableRecorded; continues with local evidence as an explicitly partial draft
WeChat access failsLocal sources remain
Native collectionVerifies the group and keeps source evidence; historical coverage is partial; cannot send or change system permissions
Model or provider failureKeeps 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.

SituationFILLEDSUBMITTED
No record exists, fill requestedYesNo
Explicit submit request, no recordNoYes
Existing record or capped form, fill requestedBLOCKEDNo
Missing or ambiguous field, truncated value, uncertain writeNoNo

A submit request meeting an existing record returns its inspection result; changing it needs an explicit update request.

Fill, readback and browser rules
RuleBehavior
Fill-onlyPermits the observed records navigation and the exact textbox values; rejects submit and save clicks, keypresses, coordinates and stale observations before the browser runs
ReadbackCompares complete actual values exactly, including line breaks and repeated spaces. ARIA text alone or browser schemas without values cannot return FILLED
LabelsThe native backend supports form labels and unique visible labels around contenteditable fields. Missing or ambiguous labels stop before a write
ToolOnly computer_use, on web pages in the built-in browser; real tool receipts needed, so quoted calls in model text are not actions
LimitsNo hard-coded aggregate timeout or round limit; deployment limits apply
Submit and updateSame field binding and readback. The final attempt is recorded before dispatch, so an uncertain result never repeats
PlaceholdersEmpty five-dimension placeholders are not progress
Uncertain remote writesNon-retryable: inspect the record first
Model failuresUnresolved ones propagate as errors
Evidence for personal and personal-chat reports
TopicRule
ReaderA read-only Agent uses list_agents(scope="all"), read_conversation, memory and original local notes
PeriodTurns expose UTC timestamps; the default is the current ISO week in Asia/Shanghai. Recent activity does not make older turns current
Not proof of workRequests, plans, generated drafts and README text
Failed or incomplete workKept, with missing evidence stated
Each retained itemBinds to an actual owner statement or tool result, with exact source ID and visible quote
Leads onlyMemory, files and assistant summaries
Supplied owner factsMust match the owner's input; may describe an earlier period after temporal verification, keeping their input date
WeeksEach audience resolves its own; a unique explicit ISO week is retained
DiscoveryLists up to 100 recent sessions and reads up to 10 branches, preferring project titles in the request
Source recordsDate, operation, arguments, status and error flag
NEEDS_INPUTMissing originals
NEEDS_REVIEWUnsupported references or claims, before delivery or form writing
Semantic verificationChecks every item and week but does not guarantee correctness
Create no claimsIdentity defaults, explicit clearing and absent optional content
SchemasA JSON Schema validates fields or sparse edits, with prompt fallback and the existing repair attempt before any write. Operation selection and verification declare schemas
IterationsTool 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 toolsRead-only search, grep, get and browse use the safe-tool policy; deny and ask rules and memory.read authority apply

Continue incomplete work

CaseRecovery
RouterNo shared checkpoint: use the relevant child's recovery instructions
Old coordinator resume payloadsRejected with that guidance
Local delivery failureKeeps prepared content for retry
TencentKeeps generation and verification budgets across resumes
External record updatesNever repeat automatically after an uncertain failure
Checkpoints and retry payloadsHold private content: keep them local
Last updated · 2026-11-25