diff --git a/knowledge/methods/incident-investigation-and-journaling.md b/knowledge/methods/incident-investigation-and-journaling.md index 3b64fae..177ea60 100644 --- a/knowledge/methods/incident-investigation-and-journaling.md +++ b/knowledge/methods/incident-investigation-and-journaling.md @@ -98,6 +98,12 @@ Scale investigative depth to the actual learning value of the incident: * For subtle protocol discrepancies, serialization bugs, race conditions, or cryptographic failures, provide full deep-dive rigor. * Never manufacture artificial hypotheses or boilerplate purely to satisfy a template. +### F. Source Attribution for Protocol Contracts +Never rely on remembered behavior for protocol specifications, container entrypoints, or framework internals. Explicitly cite the canonical source (e.g. *"According to Gitea's webhook implementation..."*, *"Per RFC 2104 (HMAC)..."*). + +### G. Safe Credential Verification Without Secret Leakage +When verifying whether two endpoints possess matching credentials, never log raw or truncated secrets. Instead, document cryptographic proof (e.g., comparing SHA-256 digests of the credentials in memory) or safe boolean assertions. + --- ## 3. Modular Investigation Structure @@ -106,7 +112,7 @@ When authoring an incident journal (`Brain/records/journal/YYYY-MM-DD-.md` ### 1. System Context & Fundamentals * Establish the specific role of the affected subsystem. -* Diagram component boundaries, data flow, and security/protocol contracts. +* Diagram component boundaries, data flow, and security/protocol contracts with source citations. * Reference canonical documentation (avoid copying static architectural overviews). ### 2. Problem & Observations @@ -115,7 +121,7 @@ When authoring an incident journal (`Brain/records/journal/YYYY-MM-DD-.md` * Clearly isolate raw facts before offering any interpretations. ### 3. Diagnostic Inquiries -* List the guiding questions that an operator must ask to partition the problem space (e.g., *Did the event reach the boundary? Was it authenticated? Were the payload bytes altered?*). +* Formulate the evolving questions that organize the investigation. ### 4. Investigation & Hypothesis Testing * Walk through each meaningful investigative inquiry: @@ -128,6 +134,7 @@ When authoring an incident journal (`Brain/records/journal/YYYY-MM-DD-.md` ### 5. Findings & Root Cause Analysis * Synthesize the validated evidence. * Detail the exact physical or logical causal chain (e.g. how data structures, memory, networks, or serializers behaved under the hood). +* Explicitly distinguish between evidence proven during triage and insights discovered via retrospective analysis. ### 6. Declarative Remediation & Local Validation * Present the minimal declarative configuration change. @@ -135,12 +142,27 @@ When authoring an incident journal (`Brain/records/journal/YYYY-MM-DD-.md` ### 7. Deployment & Recovery Runbook * Document production deployment steps. +* If deployment requires privileged human execution (such as `nixos-rebuild`), explicitly label it as a **Human Deployment Procedure**. * Provide concrete post-deployment verification proving that the service recovered under real operating conditions. ### 8. Discussion & Generalization * **Architectural Takeaways**: Design flaws or implicit assumptions exposed by the incident. -* **Transferable Diagnostic Rules**: General heuristics that apply to future troubleshooting across other domains. +* **Transferable Diagnostic Rules**: General heuristics that apply to future troubleshooting across other domains (avoiding overgeneralization). * **Preventative Measures**: Systemic hardening or monitoring improvements. ### 9. References * Code pointers, forge commit links, external RFCs, and upstream issue trackers. + +--- + +## 4. Epistemic & Evidence Self-Audit Checklist + +Before finalizing an incident journal, execute the following 7-point audit: + +1. **Epistemic Classification**: Is every substantive statement clearly categorized as an *observation*, *inference*, *hypothesis*, or *conclusion*? +2. **Evidence Demonstration**: Does the journal *demonstrate* the causal mechanism with concrete evidence rather than merely asserting it? +3. **Auditability**: Is the supporting evidence actually shown in the record rather than assumed? +4. **Chronological Integrity**: Is historical investigation reasoning distinguished from retrospective reconstruction? +5. **Proportional Claims**: Does the conclusion claim only what the evidence strictly establishes without overreaching? +6. **Sound Generalization**: Are local lessons generalized safely (avoiding absolute claims like *"it is always X"* when other failure modes exist)? +7. **Transferability**: Could an unfamiliar engineer apply the diagnostic reasoning to a dissimilar problem without already knowing the solution?