ecosystem_apply_shallow_summary
Submit a shallow summary or failure report for a repository review. Pass a summary to persist and advance stage status, or specify error kind for automatic retry or classification.
Instructions
Stage 0 worker callback: write back a shallow summary OR report a failure.
Success path (default): pass shallow_summary (200-400 char Chinese
markdown) and deep_review_id; the OS will persist the summary,
advance stage_status -> shallow_done, and mark the deep_review
row as completed.
Failure path: leave shallow_summary empty and pass error_kind,
which routes the failure through the §3.1 classifier so the OS
can decide whether to immediate-retry, mark deleted/private, or
feed the self-learning loop. Valid error_kind values:
http / agent_read / agent_timeout / json_parse /
fetch_style.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_id | Yes | EcosystemRepoProfile.id. | |
| error_kind | No | failure category hint (failure path only). | |
| http_status | No | HTTP status code when error_kind='http'. | |
| error_message | No | short message stored in profile.last_fetch_error. | |
| deep_review_id | No | associated deep_review row id (Stage 0 dispatch). | |
| shallow_summary | No | 200-400 字中文 markdown 总结 (success path). | |
| rate_limit_remaining | No | when http_status=403, ``0`` indicates rate-limit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||