Loading...
Loading...
TỰ BẢO TRÌ framework overstack trên máy user (self-maintain) — migrate llmwiki cũ lên harness (case B) hoặc update bản mới (case C). MỘT lệnh `install-harness.sh --self-heal` tự cài + tự backfill nợ wiki (Origin/index/OKF) + refresh bản đồ năng lực + health-check trong 1 process, không vòng lặp re-run. Trigger: "tự bảo trì framework", "self-maintain", "migrate harness", "update harness", "update overstack", "nâng cấp harness", "cài harness vào dự án cũ", "/harness-update".
npx skill4agent add rheinmir/setup harness-update/new-project-setup--self-healinstaller --self-heal (1 process: cài L0–L4 → audit → backfill → re-audit → activate + smoke) → rc (0 sạch · 3 nợ còn lại · khác = hạ tầng) → nghiệm thu + refresh CAPABILITIES + log → báo cáo 4 ý| Field | Required? | Ý nghĩa | |
|---|---|---|---|
| In | dự án đích (thư mục hiện tại) | có | có llmwiki cũ (case B) hoặc harness cũ (case C) |
| In | | không | thiếu thì clone template |
| Out | harness L0–L4 đã cài + nợ wiki đã backfill | có | rc=0 là sạch |
| Out | | khi có build-capabilities | bản cũ không có → bỏ qua |
| Out | dòng log | có | số backfill lấy từ dòng |
raw/--self-heal/new-project-setupraw/rc=3rc/new-project-setup| Step | Type | Inputs | Action | Outputs/exit | Failure/next |
|---|---|---|---|---|---|
| W01 | effect | dự án đích | Chạy installer 1 lần với | output + rc | — |
| W02 | deterministic | rc | Đọc exit code, KHÔNG vòng lặp re-run | rc=0 → W03 | rc=3 → B01; rc khác → blocked |
| W03 | effect | output W01 | Nghiệm thu ⛔×3 + refresh CAPABILITIES + health-check tuỳ chọn + log | log + CAPABILITIES | không có build-capabilities → bỏ qua |
| W04 | deterministic | kết quả | Báo cáo user đủ 4 ý | báo cáo | — |
.llmwiki/.harness-stamp~/.claude/harnesscurl -fsSL https://raw.githubusercontent.com/Rheinmir/setup/orca/harness/poc-vendor-neutral/bootstrap.sh | bashinstall-harness.sh . --self-heal-s -- --with-graphrepo_role: frameworkgit pullllmwiki/harness/--self-healtest -f harness/scripts/install-harness.sh \
&& bash harness/scripts/install-harness.sh . --self-heal \
|| { git clone -q --depth 1 -b orca git@github.com:rheinmir/setup.git /tmp/llmwiki-tpl \
&& bash /tmp/llmwiki-tpl/harness/scripts/install-harness.sh . --self-heal ; rm -rf /tmp/llmwiki-tpl; }audit.pygit log**Type:**rc=0rc=3rc khácpre-commit installpipx install pre-commitpython3 ~/.claude/harness/hooks/build-capabilities.py --root .python3 fdk/tools/build-capabilities.pyCAPABILITIES.md/health-checkpython3 ~/.claude/harness/hooks/health-check.pyllmwiki/wiki/log.md## YYYY-MM-DD — harness-update — migrate/update xong (--self-heal), nợ đã backfill: <n> file[audit] backfill xong — Origin:<a> index:<b> OKF:<c>[audit] backfill xong.bak.*/harness-tour| ID | Kind | Guard | Hành vi | Skip / failure | Rejoin |
|---|---|---|---|---|---|
| B01 | recovery | | sửa thủ công 1 lần các nợ self-heal không tự sửa được (danh sách trong output) | vẫn rc=3 → báo user | W01 |
| B02 | capability_optional | có | sinh lại | bản cũ không có → bỏ qua, không lỗi | W03 |
| B03 | user_optional | muốn xác nhận rào còn cắn | | bỏ qua | W03 |
## Origininstall-harness.sh . --self-heal[audit] backfill xong — Origin:12 index:0 OKF:0python3