mirror of
https://github.com/openprose/prose.git
synced 2026-09-19 05:55:05 +08:00
1.5 KiB
1.5 KiB
name, kind, version
| name | kind | version |
|---|---|---|
| diagnose | function | 0.15.0 |
Parameters
- run-path: path to the failed or problematic run (e.g.
<openprose-root>/runs/20260408-...) - focus: focus area -- "host-runtime", "system", "context", or "external" (optional, default: auto-detect)
Returns
- report: diagnostic analysis with timeline, root cause, causal chain, and prioritized fix recommendations (immediate, permanent, prevention). The returned report classifies the root cause down to the earliest intervention point and proposes concrete fixes — diffs for system errors, process changes for external errors.
Errors
- no-run: run directory does not exist or is missing vm.log.md
- incomplete-run: run is still in progress (no
---endor---errormarker)
Execution
Orchestrate the diagnosis by calling the investigator, classifier, and fixer in turn:
call investigatorto read the run'svm.log.mdexecution log and identify the failure point from event markers; examineworkspace/directories for__error.mdfiles and intermediate artifacts, andbindings/directories for missing or malformed outputs.call classifierto readsources/*.prose.mdservice definitions to understand what each service was supposed to do, readroot.prose.md(the root source snapshot) to understand the system's intent, and classify the root cause by asking "why" iteratively until reaching the earliest intervention point.call fixerto propose concrete fixes: show diffs for system errors, describe process changes for external errors.