feat: add traceable scoped AIOps diagnosis

This commit is contained in:
aruo
2026-07-04 22:57:28 +08:00
parent 246c99b954
commit 23ee05c7c3
32 changed files with 1179 additions and 25 deletions
@@ -0,0 +1,21 @@
## 1. Flow Records
- [x] 1.1 Add devflow brief, decisions with lightweight Grill, evidence, and acceptance records.
- [x] 1.2 Record local impact analysis and GitNexus skip context.
## 2. Prompt Scope Control
- [x] 2.1 Add payload detection helper in `AiOpsService`.
- [x] 2.2 Update `buildTaskPrompt(...)` with payload-mode and auto-discovery-mode rules.
## 3. Tests And Docs
- [x] 3.1 Add tests for payload-mode prompt rules.
- [x] 3.2 Add tests for no-payload auto-discovery prompt rules.
- [x] 3.3 Update AIOps demo acceptance wording for single-alert payload mode.
## 4. Verification
- [x] 4.1 Run targeted tests.
- [x] 4.2 Run compile verification.
- [x] 4.3 Run OpenSpec validation.