{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "alex09x-kyb--record-incident-with-resolution",
 "repo": "alex09x/kyb",
 "repo_url": "https://github.com/alex09x/kyb",
 "repo_slug": "alex09x-kyb",
 "title": "Log an outage with its fix so the next one is faster",
 "page_title": "How to log an outage with its fix so the next one is faster with Kyb",
 "summary": "Capture what broke, the affected windows and how it ended as a searchable incident report.",
 "who": "An on-call engineer or agent handling a production incident who wants the fix findable the next time the same failure happens.",
 "problem": "Incident lessons evaporate when the session ends, so the same failure gets debugged from scratch.",
 "outcome": "A structured incident report with a detection check, affected windows and a resolution that agents can search later.",
 "steps": [
  "Print the report skeleton with `kyb incident --template`.",
  "Create the report with `kyb incident --key inc-2026-07-22-orders-api-oom --title \"...\" --service orders_api --severity high`. (inferred, check the README)",
  "Add a detection check with `--detection \"check + healthy result\"` and affected windows with `--affected` as a JSON list of scope, from and to.",
  "Link related knowledge entries with `--knowledge <key>` and list hosts with `--hosts <host>`. (inferred, check the README)",
  "Check the record and its history with `kyb history inc-2026-07-22-orders-api-oom`. (inferred, check the README)"
 ],
 "agent_prompt": "Use the KYB repo at alex09x/kyb. Create an incident report for <service> using `kyb incident` with the key inc-<date>-<service>-<short-name>. Expected output: the server reply, including any hints about missing parts. Verify that the reply has no missing-field hints, or list the hints you still need to fix.",
 "agents": [
  "claude-code",
  "codex"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "The README says closing an incident requires a resolution and archives it, so plan to write the resolution before you close it, not after.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "A Rust toolchain with cargo, to run cargo install knowyourbusiness --locked",
  "A host or Docker setup where the kyb-server process can keep its data directory",
  "Network access from agent machines to the server port, default 127.0.0.1:9310",
  "Optional: a model directory with model.onnx and tokenizer.json for hybrid search; without it the server runs lexical-only"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/alex09x-kyb/record-incident-with-resolution/",
 "md": "https://dedupedai.com/use-cases/alex09x-kyb/record-incident-with-resolution/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/alex09x-kyb--record-incident-with-resolution.json",
 "api_version": "v1"
}
