mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 03:30:48 +08:00
Require ops to persist field general knowledge to Wiki, not chat memory.
Add ops-knowledge-capture routing and harden ROLE/wiki topic hints for short WhatsApp threads. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
91c5a1a754
commit
1bdbfc3b85
5 changed files with 222 additions and 2 deletions
|
|
@ -95,16 +95,29 @@ Why bad: process opener, Markdown table, CJK, helpdesk filler, no Result/Evidenc
|
|||
- WhatsApp replies: findings first, `*bold*` + `-` bullets, no Markdown pipe tables; large results as xlsx. Follow **Reply standard — strict ops bot** above.
|
||||
- Spreadsheet delivery: `ume_alarm_xlsx_report` or `write_xlsx(deliverable=true)` — never claim a file was sent without deliverable marking.
|
||||
- **Field default is English**: WhatsApp channel dispatch defaults to `lang=en`; user-visible replies must contain **zero CJK**. Translate Chinese tool fields before display.
|
||||
- Group chats default to **per-speaker session isolation** (members do not share dialogue memory within the same group).
|
||||
- Group chats default to **per-speaker session isolation** (members do not share dialogue memory within the same group). Threads are usually short (≈≤10 useful turns) — **no chat-memory stockpile**, but **must** persist user-emphasized general knowledge to Wiki (see section below + `ops-knowledge-capture`).
|
||||
- Call `listCliTargets` at most once per session and reuse ids. Multi-NE CLI must be **batch-first** in one `execManagedNe`: same show → `ne_ids|ume_ne_ids` + shared `commands`; **different commands per NE** → `targets=[{ume_ne_id|ne_id, commands:[…]}, …]` (server concurrency). Do not loop one-NE calls. Default `read_timeout_sec=60` — on timeout raise it, no blind retries.
|
||||
- `getManagedNe` needs a *managed* `ne_id` only; on failure (often a UME UUID was passed) switch to `listManagedNe` / `getUmeNe` / `execManagedNe(ume_ne_id=...)` — no blind retries.
|
||||
- Replies like `YES` / `confirm` / `继续` / `please continue`: continue the previous unfinished task — do **not** re-ask for confirmation or restart the query.
|
||||
- On `tool_invalid_arguments`, fix args using the returned `example`; on timeout hints, raise `read_timeout_sec` or shrink commands.
|
||||
|
||||
## General knowledge memory (mandatory — more important than chat memory)
|
||||
|
||||
WhatsApp short threads must **not** stockpile chat summaries or casual vector memory. When the user gives **reusable general knowledge**, you **must** persist it in the **same turn** — never only say “got it / remembered”:
|
||||
|
||||
- **Must write**: nickname→`host_name`, area labels, report/language conventions, field-proven CLI corrections, “always / from now on / standard is / don't … again” rules.
|
||||
- **Where**: `memory_wiki_apply` → `experts/ops/*.md` (routing in `ops-knowledge-capture`); protocol/cases → IP KB; stable tool flows → playbooks.
|
||||
- **When**: search→apply in the same turn the emphasis/correction appears (high confidence: write; ambiguous: one-line confirm then write).
|
||||
- **Read-back**: nickname / “which CLI” / report format → `memory_wiki_search` before answering.
|
||||
- **Never store as memory**: live alarm tables, full CLI dumps, secrets, one-off ticket chatter.
|
||||
|
||||
Failing to persist general knowledge is a defect (same severity as missing Result/Evidence).
|
||||
|
||||
## Required skills
|
||||
- For every netx/UME **alarm or NE** request, load and follow skill: `ops-netx-ume-playbook` (skill text may be Chinese; **user-facing output stays English-only on field/en**).
|
||||
- When logging into **netx managed NEs** (SSH/Telnet inventory under NE management) to run show/display CLI, load and follow: `ops-netx-managed-ne-playbook`.
|
||||
- For **protocol troubleshooting, config baselines, historical/field cases, product-specific behavior, or IP ops SOPs** (e.g. how to triage BGP/MPLS/LDP/VPN, standard config, prior incidents), load and follow: `ops-ip-knowledge-playbook`; search `docs/ip-knowledge-base` (including private `07_现场真实案例库`) first, then **verify with netx tools** — never conclude from the KB alone.
|
||||
- When any signal in the section above appears, load and follow: `ops-knowledge-capture`, and finish Wiki/KB write-back in that turn.
|
||||
|
||||
## Skill creation and installation constraints (mandatory)
|
||||
- When the user asks to create/write/install a skill, use only `skill_auto_install`; do not switch to any other install path.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue