From 72c79451f4b9deccc6a36b492b0734c9d5269f0d Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Mon, 28 Sep 2026 16:48:18 -0500 Subject: [PATCH] agent(profiles): update homelab and second-brain profiles for 00-06 taxonomy --- 05-agents/profiles/homelab-core.md | 15 ++++++++------- 05-agents/profiles/homelab-operations.md | 18 +++++++++--------- 05-agents/profiles/second-brain.md | 4 ++-- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/05-agents/profiles/homelab-core.md b/05-agents/profiles/homelab-core.md index 7950faf..d42a3f5 100644 --- a/05-agents/profiles/homelab-core.md +++ b/05-agents/profiles/homelab-core.md @@ -183,14 +183,15 @@ and the live documentation viewer. Capture significant: -- Architectural decisions -- Security/threat-model changes -- Debugging discoveries -- Implementation lessons - -in the appropriate `/home/kiskaadee/Brain/homelab/` or -`/home/kiskaadee/Brain/learning/` location. +- Implementation roadmaps & plans (`~/Brain/01-plans/homelab/`) +- Design trade-offs & inquiries (`~/Brain/02-discussions/homelab/`) +- Incident post-mortems & RCAs (`~/Brain/03-records/debug/`) +- Architectural decisions (ADRs) (`~/Brain/03-records/decisions/`) +- Operational guides & runbooks (`~/Brain/04-learning/guides/homelab/`) +- Engineering methodologies & durable knowledge (`~/Brain/04-learning/knowledge/`) +- Staging captures (`~/Brain/00-inbox/`) +Refer to the project topology hub at `~/Brain/06-projects/homelab/README.md`. Do not duplicate entire repository documentation in the Brain Vault. ```` diff --git a/05-agents/profiles/homelab-operations.md b/05-agents/profiles/homelab-operations.md index f69dc42..d020737 100644 --- a/05-agents/profiles/homelab-operations.md +++ b/05-agents/profiles/homelab-operations.md @@ -27,7 +27,7 @@ tags: * **Mandatory Execution Boundaries**: The agent must **never autonomously** create Git commits, push to any remote, merge branches, deploy to production, execute `nixos-rebuild`, or perform service restarts to roll out changes. * **Proposal-Only Commits & Deployment Runbooks**: When local validation passes, the agent proposes atomic commits with rationale and validation proof, and provides structured deployment runbooks with rollback steps. The user owns all commit, branch merge, and production rollout transitions. * **Interactive Execution Harness**: Follows a 6-part checkpoint review protocol (Current State, Reasoning, Changes, Validation, Next Action, Recovery) at meaningful milestones, pausing before crossing user-controlled boundaries. - * **Incident Debugging Invariant**: Directs investigative findings, hypothesis testing, and non-obvious troubleshooting lessons into the Second Brain inbox for staging and subsequent curation into `records/debug/`. + * **Incident Debugging Invariant**: Directs investigative findings, hypothesis testing, and non-obvious troubleshooting lessons into the Second Brain inbox for staging and subsequent curation into `03-records/debug/`. --- @@ -56,7 +56,7 @@ Branching policy is decoupled from diagnostic reasoning: ### D. Checkpoints vs. Durable Debug Record * **Checkpoints**: Transient execution-control mechanisms during the live session that keep the operator aligned on current state, reasoning, and upcoming actions. -* **Debug Record (`records/debug/`)**: The durable historical, technical, and epistemic artifact. Checkpoints are not transcribed verbatim; rather, the verified progression of hypotheses, evidence, declarative changes, and recovery outcomes is synthesized into the permanent Second Brain knowledge base under `records/debug/` and cross-referenced in daily journals (`records/journal/`). +* **Debug Record (`03-records/debug/`)**: The durable historical, technical, and epistemic artifact. Checkpoints are not transcribed verbatim; rather, the verified progression of hypotheses, evidence, declarative changes, and recovery outcomes is synthesized into the permanent Second Brain knowledge base under `03-records/debug/` and cross-referenced in daily journals (`03-records/journal/`). --- @@ -144,7 +144,7 @@ flowchart TD D --> CP4{"Deployment Handoff"} CP4 -->|"User Deploys"| E["5. User-Controlled Production Deployment
(Core rebuild or Sites workload rollout)"] E --> F["6. Post-Deployment Verification
(Agent verifies via SSH)"] - F --> G["7. Document in Brain Inbox
(~/Brain/inbox/YYYY-MM-DD-<slug>-debug.md)"] + F --> G["7. Document in Brain Inbox
(~/Brain/00-inbox/YYYY-MM-DD-<slug>-debug.md)"] ``` ### B. Checkpoint Protocol @@ -213,7 +213,7 @@ This policy applies equally to Core/NixOS system changes and Sites application c 6. **Post-Deployment Verification**: Agent executes read-only SSH diagnostic commands to verify the bug is resolved and no regressions occurred. Checkpoint findings. 7. **Document in Brain Inbox**: - If troubleshooting produced non-obvious diagnostic reasoning, architectural insights, or reusable operational lessons, author an epistemic incident report staged in `~/Brain/inbox/YYYY-MM-DD--debug.md` (`type: inbox`, `project: homelab`). During Second Brain curation, this artifact is normalized to `type: debug`, committed to `records/debug/YYYY-MM-DD-.md`, and referenced in the day's daily journal (`records/journal/YYYY-MM-DD.md`). + If troubleshooting produced non-obvious diagnostic reasoning, architectural insights, or reusable operational lessons, author an epistemic incident report staged in `~/Brain/00-inbox/YYYY-MM-DD--debug.md` (`type: inbox`, `project: homelab`). During Second Brain curation, this artifact is normalized to `type: debug`, committed to `03-records/debug/YYYY-MM-DD-.md`, and referenced in the day's daily journal (`03-records/journal/YYYY-MM-DD.md`). ### F. CI/CD & Gitea Actions (`act_runner`) Invariants * **Pre-Baked Images over In-Job Installers**: Always declare `container: { image: }` (e.g., `nixery.dev/shell/coreutils/git/nix/nodejs:latest`, `python:3.12-slim`, `node:20-alpine`) rather than running dynamic installers in generic Ubuntu runners. Note that `act_runner` expects standard FHS utilities (like `/bin/sleep`) at container initialization; minimal images like raw `nixos/nix` lack `/bin/sleep` and fail container init. @@ -228,9 +228,9 @@ This policy applies equally to Core/NixOS system changes and Sites application c ## 4. Post-Incident Debugging & Epistemic Reporting (Second Brain) -Capture incidents into the Second Brain inbox (`/home/kiskaadee/Brain/inbox/YYYY-MM-DD--debug.md`) whenever troubleshooting produces non-obvious diagnostic reasoning, architectural understanding, or a reusable operational lesson. Routine maintenance and self-explanatory fixes do not require an incident report. +Capture incidents into the Second Brain inbox (`/home/kiskaadee/Brain/00-inbox/YYYY-MM-DD--debug.md`) whenever troubleshooting produces non-obvious diagnostic reasoning, architectural understanding, or a reusable operational lesson. Routine maintenance and self-explanatory fixes do not require an incident report. -During Second Brain curation, the document is moved to `/home/kiskaadee/Brain/records/debug/YYYY-MM-DD-.md` (`type: debug`), and cross-referenced in the day's daily journal (`/home/kiskaadee/Brain/records/journal/YYYY-MM-DD.md`). +During Second Brain curation, the document is moved to `/home/kiskaadee/Brain/03-records/debug/YYYY-MM-DD-.md` (`type: debug`), and cross-referenced in the day's daily journal (`/home/kiskaadee/Brain/03-records/journal/YYYY-MM-DD.md`). ### A. Core Behavioral Contract & Epistemic Principles * **Preserve Investigative Reasoning**: Don't document only what fixed the incident; document how the evidence led from the initial observation to the explanation. @@ -244,7 +244,7 @@ During Second Brain curation, the document is moved to `/home/kiskaadee/Brain/re ### B. Frontmatter Schemas: -**Staging Frontmatter** (`~/Brain/inbox/YYYY-MM-DD--debug.md`): +**Staging Frontmatter** (`~/Brain/00-inbox/YYYY-MM-DD--debug.md`): ```yaml --- type: inbox @@ -258,7 +258,7 @@ tags: --- ``` -**Curated Target Frontmatter** (`~/Brain/records/debug/YYYY-MM-DD-.md`): +**Curated Target Frontmatter** (`~/Brain/03-records/debug/YYYY-MM-DD-.md`): ```yaml --- type: debug @@ -306,7 +306,7 @@ Architectural takeaways, false assumptions dispelled, transferable diagnostic he Links to affected manifests, scripts, canonical documentation, or protocol specs. ``` -*(For detailed methodology, epistemological principles, and diagnostic design, consult canonical documentation in `Brain/knowledge/methods/incident-investigation-and-journaling.md`).* +*(For detailed methodology, epistemological principles, and diagnostic design, consult canonical documentation in `Brain/04-learning/knowledge/methods/incident-investigation-and-journaling.md`).* ```` ### B. Client Adapter Specification: `/home/kiskaadee/Homelab/CLAUDE.md` diff --git a/05-agents/profiles/second-brain.md b/05-agents/profiles/second-brain.md index 4ecff66..d007589 100644 --- a/05-agents/profiles/second-brain.md +++ b/05-agents/profiles/second-brain.md @@ -18,9 +18,9 @@ tags: ## 1. Overview & Operational Scope * **Target Workspace**: `ssh://git@gitea.roadtotech.me:2223/kiskaadee/second-brain` (`/home/kiskaadee/Brain`) -* **Primary Role**: Maintains the personal knowledge graph, curates unprocessed drafts from `inbox/` into canonical knowledge/project/record types, enforces strict frontmatter and link schemas, and executes automated validation. +* **Primary Role**: Maintains the personal knowledge graph, curates unprocessed drafts from `00-inbox/` into canonical lifecycle directories (`01-plans/`, `02-discussions/`, `03-records/`, `04-learning/`, `05-agents/`, `06-projects/`), enforces strict frontmatter and link schemas, and executes automated validation. * **Core Invariants & Taxonomy**: - * **Five Semantic Directories**: `inbox/` (staging), `knowledge/` (durable understanding), `projects/` (contextual docs), `records/` (historical logs), `practice/` (LeetCode drills), and `agents/` (agent catalog). + * **Seven Lifecycle Directories**: `00-inbox/` (capture), `01-plans/` (intent), `02-discussions/` (exploration), `03-records/` (historical memory), `04-learning/` (understanding, guides, practice), `05-agents/` (machine context), and `06-projects/` (system hubs). * **Link Portability**: Relative Markdown links within the repository; forge Git URLs for external cross-repo code. Never use machine-specific absolute file URIs (`file:///`). * **Semantic Commit Standard**: Direct mapping of commit scopes to Brain types (e.g. `knowledge(topic): ...`, `journal(proj): ...`, `agent(name): ...`). * **Integrity Validation**: Must pass `python scripts/validate-brain.py` before every commit.