agent(brain): decouple engineering investigation from documentation router skills
Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 6s
Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 6s
Replace monolithic skill with procedural engineering-investigation and second-order documentation-router skills; document decoupling blueprint and walkthrough.
This commit is contained in:
1 parent
8d07f68f16
commit
8cd9460512
6 files changed
+324
-52
No files matched your search
@@ -0,0 +1,154 @@
|
||||
---
|
||||
type: plan
|
||||
status: completed
|
||||
project: brain
|
||||
tags:
|
||||
- brain
|
||||
- skills
|
||||
- investigation
|
||||
- documentation-router
|
||||
- agents
|
||||
---
|
||||
|
||||
# Implementation Plan: Documentation Router & Engineering Investigation Skills Decoupling
|
||||
|
||||
## Executive Summary
|
||||
|
||||
Based on the architectural reasoning, refactoring lessons, and operational feedback, this plan decouples engineering investigation from documentation generation into two cooperating, independent pipelines:
|
||||
|
||||
1. **`engineering-investigation`**: A purely procedural skill focused on empirical troubleshooting, scientific method progression, and interactive checkpoints. Stops cleanly at verification/recovery without forcing documentation capture.
|
||||
2. **`documentation-router`**: A second-order global documentation evaluation and routing system that inspects session context, determines whether durable knowledge capture is justified, classifies knowledge type (not activity type), enforces anti-overlap invariants, and coordinates modular authoring specifications:
|
||||
- `references/discussion-authoring.md`
|
||||
- `references/adr-authoring.md`
|
||||
- `references/plan-authoring.md`
|
||||
- `references/debug-record-authoring.md`
|
||||
3. **Global Rules Update in `~/.gemini/config/AGENTS.md`**: Separating the investigation rule from the documentation governance rule while maintaining the global inbox capture contract.
|
||||
|
||||
---
|
||||
|
||||
## 1. System Topology & Architectural Boundary
|
||||
|
||||
```text
|
||||
Engineering Session
|
||||
│
|
||||
┌─────────────┴─────────────┐
|
||||
│ │
|
||||
▼ ▼
|
||||
Investigation Skill Documentation Router
|
||||
"How do I reason?" "What should be preserved?"
|
||||
(Procedural / Empirical) (Second-Order Knowledge Filter)
|
||||
│ │
|
||||
▼ ▼
|
||||
Verified System State Is an artifact justified?
|
||||
│
|
||||
┌───────────┼───────────┬───────────┐
|
||||
▼ ▼ ▼ ▼
|
||||
Discussion ADR Plan Debug Record
|
||||
(WHY) (WHAT) (HOW) (RCA)
|
||||
```
|
||||
|
||||
### The Cardinal Invariant
|
||||
> **Documentation type is determined by the nature of the knowledge being preserved, not by the activity that produced it.**
|
||||
>
|
||||
> - A debugging session discovering an architectural flaw produces a **Discussion** or an **ADR**, not necessarily a Debug Record.
|
||||
> - A design session that converges on an architectural commitment produces an **ADR**; if it remains exploratory, it stays a **Discussion**.
|
||||
> - An implementation request requiring a new architectural commitment must pause and route to an **ADR** before resuming the **Plan**.
|
||||
> - Routine maintenance or trivial bug fixes produce **NO ARTIFACT**.
|
||||
|
||||
---
|
||||
|
||||
## 2. Refactored Skill: `engineering-investigation`
|
||||
|
||||
**Runtime Location**: `~/.gemini/config/skills/engineering-investigation/SKILL.md`
|
||||
*(Replaces `~/.gemini/config/skills/engineering-investigation-and-knowledge/`)*
|
||||
|
||||
### Key Changes
|
||||
- **Removed**: "Evaluate Durable Learning" decision branch, "Conditional Knowledge Capture Decision" section, "Staging & Epistemic Reporting Protocol" (report markdown template, Brain staging paths, vault curation).
|
||||
- **Retained**:
|
||||
- The 8-stage scientific method lifecycle (Observe $\to$ Hypotheses $\to$ Rationalized Inspection $\to$ Narrow Failure Domain $\to$ Root Cause Determination $\to$ Declarative Remediation $\to$ Local Validation $\to$ Runtime Verification).
|
||||
- Core epistemic principles: preserve reasoning, separate observation from inference, explain diagnostic command rationale, eliminate hindsight bias, proportional depth, zero secret leakage.
|
||||
- The 6-part interactive checkpoint protocol (Current State, Reasoning, Changes, Validation, Next Action, Recovery) with pauses before user-controlled state boundaries.
|
||||
- **Handoff Boundary**: Explicitly stops upon successful runtime verification. Emits findings to session context; if non-obvious learning or architectural questions emerged, hands off to `documentation-router`.
|
||||
|
||||
---
|
||||
|
||||
## 3. New Skill: `documentation-router`
|
||||
|
||||
**Runtime Location**: `~/.gemini/config/skills/documentation-router/SKILL.md`
|
||||
|
||||
### Responsibilities
|
||||
1. **Gatekeeping (Anti-Markdown Factory)**: Answers *"Did something worth preserving happen?"* Routine maintenance, trivial syntax, standard operations $\to$ **NO ARTIFACT**.
|
||||
2. **Epistemic Classification**: Matches knowledge produced to the appropriate epistemic container:
|
||||
- Exploration, trade-offs, uncertainty, alternatives $\to$ **Discussion**
|
||||
- Formal architectural/design commitment constraining future work $\to$ **ADR**
|
||||
- Ordered implementation steps, contracts, runbooks, verification $\to$ **Plan**
|
||||
- Empirical root-cause post-mortem of broken system $\to$ **Debug Record**
|
||||
3. **Multi-Artifact Decomposition**: Detects when a session produces distinct knowledge products and decomposes them into distinct artifacts rather than blending them.
|
||||
4. **Anti-Overlap Invariants & Canonical Fact Ownership**:
|
||||
- **Optional Flow and Authority**: Discussions may inform ADRs; ADRs may constrain Plans. These describe information flow and authority boundaries, not a mandatory documentation pipeline. A Discussion, ADR, Plan, or Debug Record may exist independently when justified.
|
||||
- **Rule of Epistemic Purpose**: The same fact may appear in multiple documents *only* when it serves a different epistemic purpose.
|
||||
- **Decision Authority**: ADRs are authoritative for decisions; Plans are authoritative for implementation specifications; Discussions preserve historical exploration and have no decision authority.
|
||||
- **Preservation of History**: Superseded documents are kept in lineage folders marked `superseded`, never rewritten into synthetic history.
|
||||
|
||||
---
|
||||
|
||||
## 4. Cooperating Authoring Modules
|
||||
|
||||
Stored under `~/.gemini/config/skills/documentation-router/references/`:
|
||||
|
||||
### A. `discussion-authoring.md`
|
||||
- **Core Question**: *"What are we trying to understand, and what did we learn while exploring it?"*
|
||||
- **Epistemic Voice**: Narrative, exploratory, retrospective.
|
||||
- **Strict Invariants**:
|
||||
- **Zero "Decision Voice"**: Never uses phrases like `"The Decision: ..."` or imperative directives. Uses `"The exploration ultimately converged on..."` or `"Resulting Direction: ..."`.
|
||||
- **Preserves Uncertainty & Failed Ideas**: Retains rejected alternatives and why they were explored.
|
||||
- **Tempered Tone**: Avoids absolutes.
|
||||
- **Convergence**: Closes by linking forward to resulting ADRs/Plans without duplicating their resolution contracts.
|
||||
|
||||
### B. `adr-authoring.md`
|
||||
- **Core Question**: *"What did we decide, and why?"*
|
||||
- **Structural Basis**: **MADR 4.0 Standard**:
|
||||
`Context and Problem Statement` $\to$ `Decision Drivers` $\to$ `Considered Options` $\to$ `Decision Outcome` $\to$ `Pros and Cons` $\to$ `Consequences` $\to$ `More Information`.
|
||||
- **Strict Invariants**:
|
||||
- **Architectural Commitments Only**: Prohibits implementation procedures, bash runbooks, execution timeouts, and internal schema field names.
|
||||
- **Independent Identity Requirement**: Mandates that deployment configuration, source provenance, and artifact identity must be independently observable, delegating exact schema representations to the Plan.
|
||||
- **Artifact Digest Immutability**: Distinguishes mutable container image tags from content-addressed immutable OCI digests.
|
||||
- **Neutral Systems Language**: Justifies outcomes through trade-offs rather than subjective/evaluative claims.
|
||||
|
||||
### C. `plan-authoring.md`
|
||||
- **Core Question**: *"What exactly are we going to change, in what order, under which constraints, and how will we prove it worked?"*
|
||||
- **Epistemic Role**: **Authoritative Implementation Specification**.
|
||||
- **Strict Invariants**:
|
||||
- **No Disguised ADRs**: Must not silently introduce new architectural commitments. If implementation uncovers an architectural dilemma, it must pause and route to an ADR.
|
||||
- **Pure Constraints, No Re-argument**: Technical decisions are stated as strict implementation invariants, without repeating historical debate.
|
||||
- **Actionable Execution**: Contains system topology, controller authority, resource ownership, schema contracts, security invariants, ordered phases (P0–P5), non-destructive runbooks, rollback procedures, and Definition of Done.
|
||||
|
||||
### D. `debug-record-authoring.md`
|
||||
- **Core Question**: *"What empirically broke, how did the investigation diagnose it, and what was the root cause?"*
|
||||
- **Epistemic Role**: Historical incident post-mortem / RCA record.
|
||||
- **Structure**: System Context $\to$ Problem & Observations $\to$ Diagnostic Inquiries $\to$ Hypothesis Testing $\to$ Root Cause $\to$ Remediation & Validation $\to$ Deployment & Recovery Runbook $\to$ Transferable Learnings.
|
||||
|
||||
---
|
||||
|
||||
## 5. Global Rules & Canonical Catalog Updates
|
||||
|
||||
1. **Global Configuration (`~/.gemini/config/AGENTS.md`)**:
|
||||
- Separated into three distinct global rules:
|
||||
- `Global Rule: Brain Inbox Capture` (Physical artifact capture mechanism)
|
||||
- `Global Rule: Engineering Investigation` (Procedural scientific method & checkpoints)
|
||||
- `Global Rule: Architectural & Project Documentation` (Epistemic router governance)
|
||||
2. **Canonical Brain Agent Store (`05-agents/`)**:
|
||||
- Documented `05-agents/skills/engineering-investigation.md`.
|
||||
- Documented `05-agents/skills/documentation-router.md`.
|
||||
- Updated catalog index in `05-agents/README.md`.
|
||||
|
||||
---
|
||||
|
||||
## 6. Verification
|
||||
|
||||
1. Verified skills in `~/.gemini/config/skills/`:
|
||||
- `engineering-investigation/SKILL.md`
|
||||
- `documentation-router/SKILL.md`
|
||||
- `documentation-router/references/` (4 authoring specifications)
|
||||
2. Verified global AGENTS.md rules formatting and syntax.
|
||||
3. Verified Brain vault integrity: `python scripts/validate-brain.py` and `python scripts/test_validator.py`.
|
||||
@@ -0,0 +1,81 @@
|
||||
---
|
||||
type: guide
|
||||
project: brain
|
||||
tags:
|
||||
- brain
|
||||
- skills
|
||||
- investigation
|
||||
- documentation-router
|
||||
- walkthrough
|
||||
---
|
||||
|
||||
# Walkthrough: Global Documentation Router & Investigation Skills
|
||||
|
||||
Operational walkthrough for the implementation of the decoupled, reusable global skill system separating **procedural engineering investigation** from **second-order architectural documentation treatment**.
|
||||
|
||||
---
|
||||
|
||||
## 1. System Architecture
|
||||
|
||||
```text
|
||||
Engineering Session
|
||||
│
|
||||
┌─────────────┴─────────────┐
|
||||
│ │
|
||||
▼ ▼
|
||||
Investigation Skill Documentation Router
|
||||
"How do I reason?" "What should be preserved?"
|
||||
(Procedural / Empirical) (Second-Order Knowledge Filter)
|
||||
│ │
|
||||
▼ ▼
|
||||
Verified System State Is an artifact justified?
|
||||
│
|
||||
┌───────────┼───────────┬───────────┐
|
||||
▼ ▼ ▼ ▼
|
||||
Discussion ADR Plan Debug Record
|
||||
(WHY) (WHAT) (HOW) (RCA)
|
||||
```
|
||||
|
||||
### The Cardinal Invariant
|
||||
> **Documentation type is determined by the nature of the knowledge being preserved, not by the activity that produced it.**
|
||||
|
||||
---
|
||||
|
||||
## 2. Implemented Artifacts & Locations
|
||||
|
||||
### A. Procedural Investigation Skill
|
||||
- **Runtime Location**: `~/.gemini/config/skills/engineering-investigation/SKILL.md`
|
||||
- **Vault Specification**: [`05-agents/skills/engineering-investigation.md`](../../../05-agents/skills/engineering-investigation.md)
|
||||
- **Role**: Purely empirical troubleshooting following the scientific method (Observation $\to$ Verification) and the 6-part interactive checkpoint protocol.
|
||||
- **Boundary**: Stops cleanly upon verified recovery; hands off to `documentation-router` if non-obvious learning or architectural questions emerged.
|
||||
|
||||
### B. Documentation Router Skill
|
||||
- **Runtime Location**: `~/.gemini/config/skills/documentation-router/SKILL.md`
|
||||
- **Vault Specification**: [`05-agents/skills/documentation-router.md`](../../../05-agents/skills/documentation-router.md)
|
||||
- **Role**: Second-order knowledge filter and gatekeeper (anti-markdown factory).
|
||||
- **Core Rules**:
|
||||
- **Gatekeeping**: Routine/trivial tasks produce **NO ARTIFACT**.
|
||||
- **Classification**: Maps knowledge to Discussion (WHY), ADR (WHAT decided), Plan (HOW to build), or Debug Record (Empirical RCA).
|
||||
- **Multi-Artifact Coordination**: Decomposes multi-faceted sessions into discrete artifacts.
|
||||
- **Optional Relationships vs. Pipelines**: Discussions may inform ADRs; ADRs may constrain Plans. These describe optional information flow and authority boundaries, not a mandatory documentation pipeline. Each artifact may exist independently whenever justified.
|
||||
- **Anti-Overlap**: The same fact may appear in multiple documents only when it serves a different epistemic purpose.
|
||||
|
||||
### C. Modular Authoring Reference Specifications
|
||||
Packaged under `~/.gemini/config/skills/documentation-router/references/`:
|
||||
1. **`discussion-authoring.md`**: Exploratory narrative, preserves uncertainty and rejected alternatives, zero "decision voice".
|
||||
2. **`adr-authoring.md`**: Strict **MADR 4.0** standard, compact architectural commitments, content-addressed OCI digest immutability vs. mutable tags, delegating field-level schema representation to the Plan.
|
||||
3. **`plan-authoring.md`**: Authoritative implementation specification, ordered execution (P0–P5), pure constraints without re-arguing rationale, verification gates, runbooks, and DoD.
|
||||
4. **`debug-record-authoring.md`**: Historical investigation / RCA record covering bugs, regressions, system anomalies, failed migrations, configuration errors, and unexpected behaviors.
|
||||
|
||||
### D. Global Rules Decoupling
|
||||
- **Location**: `~/.gemini/config/AGENTS.md`
|
||||
- Separated `Global Rule: Engineering Investigation` from `Global Rule: Architectural & Project Documentation`.
|
||||
|
||||
---
|
||||
|
||||
## 3. Verification
|
||||
|
||||
- Skills discovered in `~/.gemini/config/skills/`:
|
||||
- `engineering-investigation`
|
||||
- `documentation-router` (with 4 authoring reference documents)
|
||||
- `python scripts/validate-brain.py && python scripts/test_validator.py`: **`✅ All checks passed.`**
|
||||
+2
-1
@@ -30,4 +30,5 @@ Rather than treating agent rulebooks (`AGENTS.md`) as transient, untracked local
|
||||
|
||||
| Skill | Target Workspace | Primary Capability | Status |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| [Engineering Investigation & Knowledge](skills/engineering-investigation-and-knowledge.md) | Global (`~/.gemini/config/skills/`) | Scientific investigation lifecycle, 6-part checkpoints, RCA, and conditional Brain staging | `active` |
|
||||
| [Engineering Investigation](skills/engineering-investigation.md) | Global (`~/.gemini/config/skills/`) | Scientific investigation lifecycle, 6-part interactive checkpoints, and runtime verification | `active` |
|
||||
| [Documentation Router](skills/documentation-router.md) | Global (`~/.gemini/config/skills/`) | Second-order knowledge evaluation, epistemic classification, anti-overlap invariants, and authoring modules | `active` |
|
||||
@@ -0,0 +1,71 @@
|
||||
---
|
||||
type: agent
|
||||
status: active
|
||||
name: documentation-router
|
||||
kind: skill
|
||||
project: brain
|
||||
tags:
|
||||
- documentation
|
||||
- router
|
||||
- epistemic-taxonomy
|
||||
- knowledge-governance
|
||||
---
|
||||
|
||||
# Documentation Router Skill
|
||||
|
||||
Canonical store of the global agent skill for session context evaluation, epistemic classification, anti-overlap enforcement, and modular documentation authoring.
|
||||
|
||||
* **Runtime Customization Path**: `~/.gemini/config/skills/documentation-router/SKILL.md`
|
||||
* **Applicable Workspaces**: Global (workstation-wide across all repositories and directories).
|
||||
|
||||
---
|
||||
|
||||
## 1. The Cardinal Invariant
|
||||
|
||||
> **Documentation type is determined by the nature of the knowledge being preserved, not by the activity that produced it.**
|
||||
|
||||
* A debugging session discovering an underlying architectural misconception produces a **Discussion** or an **ADR**, not merely a Debug Record.
|
||||
* An architectural debate that reaches a firm point-in-time consensus produces an **ADR**; if it remains exploratory, it remains a **Discussion**.
|
||||
* An implementation task that uncovers an unaddressed architectural question must pause and route to an **ADR** before proceeding with the **Plan**.
|
||||
* A routine bug fix or maintenance chore produces **NO ARTIFACT**.
|
||||
|
||||
---
|
||||
|
||||
## 2. Epistemic Classification & Routing
|
||||
|
||||
| Knowledge Produced | Epistemic Role | Target Container | Governing Module |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| Explorations, inquiries, trade-offs, pain points, alternatives evaluated, and historical evolution. | **WHY** | `02-discussions/` (`type: discussion`) | `references/discussion-authoring.md` |
|
||||
| Point-in-time architectural commitments, decision drivers, forces, and accepted trade-offs. | **WHAT was decided** | `03-records/decisions/` (`type: decision`) | `references/adr-authoring.md` |
|
||||
| Authoritative implementation specifications, constraints, phased execution (P0–P5), runbooks, and DoD. | **HOW to build it** | `01-plans/` (`type: plan`) | `references/plan-authoring.md` |
|
||||
| Historical investigation of unexpected system behaviors, regressions, bugs, or anomalies. | **Empirical RCA** | `03-records/debug/` (`type: debug`) | `references/debug-record-authoring.md` |
|
||||
|
||||
---
|
||||
|
||||
## 3. Relationships & Authority Boundaries
|
||||
|
||||
```text
|
||||
Discussion ──informs──> ADR ──constrains──> Plan
|
||||
^ ^ |
|
||||
└──────────────────────┴─────────────────┘
|
||||
cross-references
|
||||
```
|
||||
|
||||
> **Rule on Relationships vs. Pipelines**:
|
||||
> Discussions may inform ADRs; ADRs may constrain Plans. These relationships describe **optional information flow and authority boundaries, not a mandatory documentation lifecycle**.
|
||||
>
|
||||
> * A Discussion may exist and remain open or resolved without generating an ADR or Plan.
|
||||
> * An ADR may be authored directly for a clear architectural commitment without requiring a preceding Discussion artifact.
|
||||
> * A Plan may be authored for a known engineering project without requiring a preceding Discussion or ADR.
|
||||
> * A Debug Record stands alone as historical memory of an investigation.
|
||||
|
||||
---
|
||||
|
||||
## 4. Anti-Overlap Invariants & Fact Ownership
|
||||
|
||||
1. **Rule of Epistemic Purpose**: The same fact may appear in multiple documents **only when it serves a different epistemic purpose**.
|
||||
2. **Canonical Ownership of Facts**:
|
||||
- The **Discussion** owns the exploratory narrative, rejected alternatives, and justification.
|
||||
- The **ADR** owns the decision outcome, forces, and accepted trade-offs.
|
||||
- The **Plan** owns the technical specification, constraints, and phased execution runbooks.
|
||||
- The **Debug Record** owns the empirical observation, diagnostic tests, and root-cause mechanism.
|
||||
+14
-51
@@ -1,7 +1,7 @@
|
||||
---
|
||||
type: agent
|
||||
status: active
|
||||
name: engineering-investigation-and-knowledge
|
||||
name: engineering-investigation
|
||||
kind: skill
|
||||
project: brain
|
||||
tags:
|
||||
@@ -9,15 +9,14 @@ tags:
|
||||
- debugging
|
||||
- troubleshooting
|
||||
- scientific-method
|
||||
- epistemic-reporting
|
||||
- rca
|
||||
- checkpoints
|
||||
---
|
||||
|
||||
# Engineering Investigation & Epistemic Knowledge Skill
|
||||
# Engineering Investigation Skill
|
||||
|
||||
Canonical store of the global agent skill for engineering investigations, diagnostic checkpoint reviews, and conditional epistemic knowledge capture.
|
||||
Canonical store of the global agent skill for disciplined engineering investigations, scientific method progression, and interactive checkpoint reviews.
|
||||
|
||||
* **Runtime Customization Path**: `~/.gemini/config/skills/engineering-investigation-and-knowledge/SKILL.md`
|
||||
* **Runtime Customization Path**: `~/.gemini/config/skills/engineering-investigation/SKILL.md`
|
||||
* **Applicable Workspaces**: Global (workstation-wide across all repositories and directories).
|
||||
|
||||
---
|
||||
@@ -34,10 +33,8 @@ flowchart TD
|
||||
Narrow --> RCA["5. Root Cause Determination<br/>(Underlying causal mechanism proven)"]
|
||||
RCA --> Fix["6. Declarative Remediation<br/>(Minimal, isolated, reversible fix)"]
|
||||
Fix --> Val["7. Local & Environment Validation<br/>(Tests, linters, flake checks)"]
|
||||
Val --> Deploy["8. Handoff / Deployment & Verification<br/>(Verify fix in runtime environment)"]
|
||||
Deploy --> Decision{"Evaluate Durable Learning"}
|
||||
Decision -->|"Routine / Self-explanatory"| Done["Close Investigation<br/>(Standard commit/PR docs)"]
|
||||
Decision -->|"Non-obvious / Architectural"| Capture["9. Stage Epistemic Artifact<br/>(~/Brain/00-inbox/)"]
|
||||
Val --> Deploy["8. Handoff / Deployment & Verification<br/>(Verify recovery in runtime environment)"]
|
||||
Deploy --> Done["Investigation Concluded<br/>(Handoff to Documentation Router if warranted)"]
|
||||
```
|
||||
|
||||
### Core Epistemic Principles
|
||||
@@ -45,7 +42,7 @@ flowchart TD
|
||||
* **Separate Observation from Inference**: Strictly distinguish what the system reported (raw logs, error outputs, exit codes) from what the operator inferred.
|
||||
* **Explain Diagnostic Command Rationale**: Before running inspections, be clear on why the command is run, what layer of the stack it tests, and what result supports or refutes the working hypothesis.
|
||||
* **No Hindsight Bias**: Avoid fabricating a tidy, linear narrative after the fact. Distinguish working hypotheses held during the investigation from insights discovered retrospectively.
|
||||
* **Proportional Depth**: Scale the depth of investigation and reporting to the learning value. Do not manufacture complex hypotheses or ceremonial boilerplate for trivial syntax errors or routine typos.
|
||||
* **Proportional Depth**: Scale the depth of investigation to the complexity and learning value of the issue. Do not manufacture complex hypotheses or ceremonial boilerplate for trivial syntax errors or routine typos.
|
||||
* **Transferable Diagnostic Knowledge**: Surface heuristics, architectural invariants, and debugging techniques that generalize across system boundaries.
|
||||
* **Zero Secret Leakage**: Never log credentials, API tokens, HMAC keys, or raw secrets. Verify security matches via redacted signatures or non-sensitive metadata.
|
||||
|
||||
@@ -63,7 +60,7 @@ To maintain human-in-the-loop alignment and prevent unchecked autonomous diverge
|
||||
* A production or deployment step is ready for user execution.
|
||||
* Post-deployment evidence confirms recovery or reveals regressions.
|
||||
|
||||
### The 6-Part Checkpoint Format:
|
||||
### The 6-Part Checkpoint Format
|
||||
1. **Current State**: What is empirically known from evidence; what remains uncertain.
|
||||
2. **Reasoning**: Current working hypothesis, why the evidence supports it, and what alternatives have been eliminated.
|
||||
3. **Changes**: What has been changed locally, which files are affected, and what invariant the change establishes.
|
||||
@@ -71,47 +68,13 @@ To maintain human-in-the-loop alignment and prevent unchecked autonomous diverge
|
||||
5. **Next Action**: What should happen next, why it is appropriate, and what evidence is expected.
|
||||
6. **Recovery**: How the change or deployment can be rolled back if validation fails.
|
||||
|
||||
*Rule*: Present the checkpoint concisely, and **pause before crossing user-controlled state boundaries** (such as committing, merging, pushing, or executing production deployments).
|
||||
> **Rule**: Present the checkpoint concisely, and **pause before crossing user-controlled state boundaries** (such as committing, merging, pushing, or executing production deployments).
|
||||
|
||||
---
|
||||
|
||||
## 3. Conditional Knowledge Capture Decision
|
||||
## 3. Investigation Completion & Documentation Boundary
|
||||
|
||||
> **Rule: Investigation is procedural; documentation is conditional.**
|
||||
Investigation is purely procedural and terminates upon post-deployment verification or recovery.
|
||||
|
||||
Routine maintenance, straightforward typos, and self-explanatory fixes **do not require an external knowledge artifact**. They should be documented normally in Git commit messages or repository-local comments.
|
||||
|
||||
Capture an incident into the knowledge system only when troubleshooting produces:
|
||||
* Non-obvious diagnostic reasoning or surprising failure modes.
|
||||
* Architectural insights or incorrect system assumptions dispelled.
|
||||
* A reusable operational or troubleshooting lesson applicable across systems.
|
||||
* A security posture or threat model clarification.
|
||||
|
||||
---
|
||||
|
||||
## 4. Staging & Epistemic Reporting Protocol
|
||||
|
||||
When an incident qualifies for durable capture, stage an epistemic incident report in the knowledge inbox:
|
||||
|
||||
### Staging Destination:
|
||||
`~/Brain/00-inbox/YYYY-MM-DD-<slug>-debug.md`
|
||||
|
||||
### Staging Frontmatter:
|
||||
```yaml
|
||||
---
|
||||
type: inbox
|
||||
created: YYYY-MM-DD
|
||||
project: <project-name>
|
||||
tags:
|
||||
- operations
|
||||
- troubleshooting
|
||||
- debugging
|
||||
- <relevant-subsystems>
|
||||
---
|
||||
```
|
||||
|
||||
### Subsequent Curation (Second Brain Lifecycle):
|
||||
During subsequent knowledge vault curation:
|
||||
1. The artifact is validated and normalized to `type: debug`.
|
||||
2. Moved to its permanent location: `~/Brain/03-records/debug/YYYY-MM-DD-<slug>.md`.
|
||||
3. Cross-referenced in the day's engineering journal: `~/Brain/03-records/journal/YYYY-MM-DD.md`.
|
||||
* Routine maintenance, straightforward typos, and self-explanatory fixes require **no external documentation**—document them normally in Git commit messages or repository-local comments.
|
||||
* If the investigation yielded architectural insights, unexpected failure modes, false system assumptions dispelled, or reusable operational heuristics, hand off to the global skill **`documentation-router`** to evaluate which, if any, durable documentation artifact is justified.
|
||||
@@ -62,6 +62,7 @@ graph TD
|
||||
## 🛠️ Canonical Guides & Runbooks
|
||||
|
||||
* [**Deterministic Tag & Key Term Extraction Guide**](../../04-learning/knowledge/methods/deterministic-tag-extraction.md) — Algorithmic approaches and architectural comparison across statistical heuristics, AST parsers, and taxonomy matchers.
|
||||
* [**Global Documentation Router & Investigation Skills Walkthrough**](../../04-learning/guides/brain/documentation-and-investigation-skills-walkthrough.md) — Operational walkthrough covering procedural investigation, documentation router gatekeeping, anti-overlap invariants, and authoring reference modules.
|
||||
|
||||
---
|
||||
|
||||
@@ -72,3 +73,4 @@ graph TD
|
||||
* 🟢 [**Brain Taxonomy & Lifecycle Migration**](../../01-plans/brain/taxonomy-lifecycle-migration.md) — Reorganized repository from organic structure into 7 numbered lifecycle directories (`00-inbox/` through `06-projects/`), introduced declarative `DirectoryContract` validation, executed 188-file migration and 199-link rewrites, and synchronized distributed `AGENTS.md` integration surfaces.
|
||||
- Companion Discussion: [Brain Epistemic Lifecycle Taxonomy](../../02-discussions/brain/taxonomy-and-lifecycle-architecture.md)
|
||||
* 🟢 [**Incident Debug Records & Daily Journal Workflow Reorganization**](../../01-plans/brain/incident-debug-and-journal-workflow.md) — Established first-class `type: debug` records in `03-records/debug/`, strictly one daily journal per date in `03-records/journal/YYYY-MM-DD.md`, and automated inbox curation protocol.
|
||||
* 🟢 [**Documentation Router & Engineering Investigation Skills Decoupling**](../../01-plans/brain/documentation-and-investigation-skills-decoupling.md) — Decoupled procedural troubleshooting (scientific method, interactive checkpoints) from documentation evaluation and routing; introduced second-order documentation router with modular authoring specifications.
|
||||
Reference in new issue
Block a user