fix(storage): 强化外部图片导入与 Skill 异常引导
This commit is contained in:
@@ -143,6 +143,22 @@ Report group, project, work ID, `externalId`, created round number, title, image
|
||||
|
||||
If the result is `state_unknown`, do not rerun `apply`. Run `inspect-work` and compare server state to the plan. If the result still cannot be proven, ask the operator before any retry.
|
||||
|
||||
## Failure actions
|
||||
|
||||
On failure, the script exits with code `1` and writes one JSON object to stderr:
|
||||
|
||||
```json
|
||||
{"success": false, "action": "revise", "error": "...", "next_step": "..."}
|
||||
```
|
||||
|
||||
Follow `action` exactly:
|
||||
|
||||
- `retry`: Retry only the same read-only command, with the same target and parameters, after completing `next_step`. Never reinterpret this as permission to retry `apply`.
|
||||
- `revise`: Change only the invalid input identified by `error`, regenerate the plan, show the full changed plan, and obtain a new confirmation code before `apply`.
|
||||
- `ask_operator`: Stop. Show the exact target, `error`, and `next_step` to the operator or administrator. Do not change targets, permissions, project state, or credentials yourself.
|
||||
|
||||
If output is `state_unknown`, it is always `ask_operator`: inspect current server state first and never automatically repeat the write.
|
||||
|
||||
## API troubleshooting
|
||||
|
||||
Read [references/api-contract.md](references/api-contract.md) before calling an endpoint directly, interpreting an error, or changing this skill for a new API version.
|
||||
|
||||
Reference in New Issue
Block a user