meta(agents): establish agents store category and validator support
Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 7s
Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 7s
This commit is contained in:
1 parent
c049244069
commit
ef142d1854
4 files changed
+66
-2
No files matched your search
@@ -15,6 +15,7 @@ The Brain stores five fundamentally different kinds of information:
|
|||||||
| `projects/` | Contextual, project-specific documents. Each project owns its own sub-folder. |
|
| `projects/` | Contextual, project-specific documents. Each project owns its own sub-folder. |
|
||||||
| `records/` | Historical artifacts: journals, discussions, decisions, experiments. |
|
| `records/` | Historical artifacts: journals, discussions, decisions, experiments. |
|
||||||
| `practice/` | Algorithm exercises, LeetCode writeups, and implementation drills. |
|
| `practice/` | Algorithm exercises, LeetCode writeups, and implementation drills. |
|
||||||
|
| `agents/` | Canonical agent specifications, behavioral guardrails, and role profiles. |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -80,6 +81,12 @@ Sub-directories:
|
|||||||
### `practice/`
|
### `practice/`
|
||||||
Unchanged in structure. Contains LeetCode writeups and Python solution files with their own Nix devShell environment. Do not reorganize this directory without reading its `flake.nix`.
|
Unchanged in structure. Contains LeetCode writeups and Python solution files with their own Nix devShell environment. Do not reorganize this directory without reading its `flake.nix`.
|
||||||
|
|
||||||
|
### `agents/`
|
||||||
|
Canonical store of AI agent profiles, instructions, operational boundaries, and guardrails across projects and workstations. Each document in `agents/` preserves an agent's configuration as a first-class documentation article rather than an active workspace rulebook, ensuring long-term auditability without interfering with Brain repository workflows.
|
||||||
|
|
||||||
|
- *Format*: Metadata Frontmatter → Overview & Operational Scope → Canonical Specification (Fenced Code Block) → Related Context & Documentation.
|
||||||
|
- *Frontmatter*: `type: agent`, `status: active | draft | archived`, `name: <slug>`, `target_workspace: <path-or-repo>`, `project: <optional-project-name>`, `tags: [list, of, tags]`.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Metadata Convention
|
## Metadata Convention
|
||||||
@@ -88,10 +95,10 @@ Every committed markdown document in the knowledge graph must have a YAML frontm
|
|||||||
|
|
||||||
### Core & Optional Fields
|
### Core & Optional Fields
|
||||||
|
|
||||||
- **`type`** *(Required)*: `knowledge`, `project`, `plan`, `guide`, `decision`, `journal`, `discussion`, `experiment`, `practice`, `inbox`, `reference`.
|
- **`type`** *(Required)*: `knowledge`, `project`, `plan`, `guide`, `decision`, `journal`, `discussion`, `experiment`, `practice`, `inbox`, `reference`, `agent`.
|
||||||
- **`tags`** *(Optional)*: List of keyword tags (e.g., `tags: [homelab, ddns, networking]` or YAML list format) applicable to any document type for cross-cutting discovery.
|
- **`tags`** *(Optional)*: List of keyword tags (e.g., `tags: [homelab, ddns, networking]` or YAML list format) applicable to any document type for cross-cutting discovery.
|
||||||
- **`project`** *(Optional)*: Project identifier (e.g., `project: homelab`, `project: dynu-monitor`, `project: bitetrack`) indicating context ownership.
|
- **`project`** *(Optional)*: Project identifier (e.g., `project: homelab`, `project: dynu-monitor`, `project: bitetrack`) indicating context ownership.
|
||||||
- **`status`** *(Conditional)*: Lifecycle status for plans (`draft`, `active`, `completed`, `abandoned`), decisions (`proposed`, `accepted`, `superseded`), projects (`planned`, `active`, `paused`, `completed`), knowledge (`draft`, `stable`), and practice (`active`, `completed`).
|
- **`status`** *(Conditional)*: Lifecycle status for plans (`draft`, `active`, `completed`, `abandoned`), decisions (`proposed`, `accepted`, `superseded`), projects (`planned`, `active`, `paused`, `completed`), knowledge (`draft`, `stable`), practice (`active`, `completed`), and agents (`active`, `draft`, `archived`).
|
||||||
|
|
||||||
### Frontmatter Templates
|
### Frontmatter Templates
|
||||||
|
|
||||||
@@ -169,6 +176,16 @@ topics: [list, of, topics]
|
|||||||
tags: [optional, tags]
|
tags: [optional, tags]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
# agent (agent profiles & specifications)
|
||||||
|
---
|
||||||
|
type: agent
|
||||||
|
status: active | draft | archived
|
||||||
|
name: agent-slug
|
||||||
|
target_workspace: /path/to/workspace
|
||||||
|
project: optional-project-name
|
||||||
|
tags: [optional, tags]
|
||||||
|
---
|
||||||
|
|
||||||
# inbox (unprocessed captures)
|
# inbox (unprocessed captures)
|
||||||
---
|
---
|
||||||
type: inbox
|
type: inbox
|
||||||
@@ -213,6 +230,7 @@ In this repository, commit types directly reflect the Brain's semantic taxonomy
|
|||||||
| `decision` | Architectural Decision Records (ADRs) | `decision(nixos): adopt standalone workstation model` |
|
| `decision` | Architectural Decision Records (ADRs) | `decision(nixos): adopt standalone workstation model` |
|
||||||
| `journal` | Dated journals, post-mortems, RCA logs | `journal(homelab): record Gitea mirror DNS RCA` |
|
| `journal` | Dated journals, post-mortems, RCA logs | `journal(homelab): record Gitea mirror DNS RCA` |
|
||||||
| `practice` | Algorithm writeups and LeetCode drills | `practice(leetcode): add 0075 sort colors solution` |
|
| `practice` | Algorithm writeups and LeetCode drills | `practice(leetcode): add 0075 sort colors solution` |
|
||||||
|
| `agent` | Agent specifications, behavioral guardrails, and role profiles | `agent(homelab): document homelab operations agent spec` |
|
||||||
| `meta` | Brain governance, `AGENTS.md`, taxonomies, root docs | `meta(agents): establish inbox curation protocol` |
|
| `meta` | Brain governance, `AGENTS.md`, taxonomies, root docs | `meta(agents): establish inbox curation protocol` |
|
||||||
| `infra` | Repository tooling, validator scripts, Nix flakes | `infra(validator): add broken link check` |
|
| `infra` | Repository tooling, validator scripts, Nix flakes | `infra(validator): add broken link check` |
|
||||||
| `refactor` | Structural reorganization, directory restructurings | `refactor(homelab): move archive docs to project root` |
|
| `refactor` | Structural reorganization, directory restructurings | `refactor(homelab): move archive docs to project root` |
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ A personal knowledge graph organized by document type, not by subject.
|
|||||||
| [`projects/`](projects/) | Contextual documents that belong to a specific project. |
|
| [`projects/`](projects/) | Contextual documents that belong to a specific project. |
|
||||||
| [`records/`](records/) | Historical artifacts — things that happened. |
|
| [`records/`](records/) | Historical artifacts — things that happened. |
|
||||||
| [`practice/`](practice/) | Algorithm exercises and implementation drills. |
|
| [`practice/`](practice/) | Algorithm exercises and implementation drills. |
|
||||||
|
| [`agents/`](agents/) | Canonical agent specifications, behavioral guardrails, and role profiles. |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -86,6 +87,20 @@ practice/
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Agents Store
|
||||||
|
|
||||||
|
```
|
||||||
|
agents/
|
||||||
|
├── homelab-operations.md ← Homelab operational workstation & diagnostics agent
|
||||||
|
├── homelab-core.md ← Homelab Core platform & deployment invariants agent
|
||||||
|
├── nixos-workstation.md ← Laptop declarative NixOS/Home Manager configuration agent
|
||||||
|
├── magnetflix.md ← MagNetFlix automated media acquisition pipeline agent
|
||||||
|
├── nekoweb.md ← NekoWeb manga platform & full-stack agent
|
||||||
|
└── second-brain.md ← Personal knowledge graph curation & validation agent
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Conventions
|
## Conventions
|
||||||
|
|
||||||
Every document has a `type` field in its YAML frontmatter. See [AGENTS.md](AGENTS.md) for the full metadata convention, directory semantics, link standards, and git commit format.
|
Every document has a `type` field in its YAML frontmatter. See [AGENTS.md](AGENTS.md) for the full metadata convention, directory semantics, link standards, and git commit format.
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
# Agents Store & Specification Catalog
|
||||||
|
|
||||||
|
This directory serves as the durable repository of AI agent profiles, operational boundaries, behavioral contracts, and safety guardrails across all engineering projects and workstations.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Purpose & Architecture
|
||||||
|
|
||||||
|
Rather than treating agent rulebooks (`AGENTS.md`) as transient, untracked local text files or allowing them to interfere with repository workflows, this directory documents each agent specification as a first-class engineering article:
|
||||||
|
|
||||||
|
1. **Context & Role**: Details the target workspace, repository ownership, problem domain, and intended agent role.
|
||||||
|
2. **Operational Scope & Guardrails**: Clarifies permission boundaries (e.g. read-only inspections, forbidden system switches, secret protection).
|
||||||
|
3. **Canonical Specification**: Preserves the complete, verbatim behavioral prompt deployed in the target environment.
|
||||||
|
4. **Cross-References**: Connects the agent profile to project overviews, incident journals, and architecture guides.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Catalog of Agent Specifications
|
||||||
|
|
||||||
|
| Agent | Target Workspace | Primary Role | Status |
|
||||||
|
| :--- | :--- | :--- | :--- |
|
||||||
|
| [Homelab Operations](homelab-operations.md) | `/home/kiskaadee/Homelab` | Local-first server diagnostics, non-destructive triage, and post-incident journaling | `active` |
|
||||||
|
| [Homelab Core Platform](homelab-core.md) | `ssh://git@gitea.roadtotech.me:2223/kiskaadee/homelab-core` | Core platform foundation, NixOS server services, GitOps boundaries, Docker isolation | `active` |
|
||||||
|
| [NixOS Mobile Workstation](nixos-workstation.md) | `ssh://git@gitea.roadtotech.me:2223/kiskaadee/nixos-config` | Declarative NixOS/Home Manager laptop configuration with strict build-only safety barrier | `active` |
|
||||||
|
| [MagNetFlix Media Pipeline](magnetflix.md) | `git@github.com:kiskaadee/MagNetFlix.git` | Media acquisition backend (FastAPI, gRPC, Protobuf, SQLite3 WAL, UV workspaces) | `active` |
|
||||||
|
| [NekoWeb Manga Platform](nekoweb.md) | `git@github.com:kiskaadee/nekoweb.git` | Self-hosted manga web platform (FastAPI, UV, React/TanStack, HakuNeko Daemon) | `active` |
|
||||||
|
| [Second Brain Knowledge Graph](second-brain.md) | `ssh://git@gitea.roadtotech.me:2223/kiskaadee/second-brain` | Personal knowledge graph curation, epistemic validation, and artifact management | `active` |
|
||||||
|
|
||||||
|
---
|
||||||
@@ -22,6 +22,7 @@ ROOT = pathlib.Path(__file__).parent.parent.resolve()
|
|||||||
VALID_TYPES = {
|
VALID_TYPES = {
|
||||||
"knowledge", "project", "plan", "guide", "decision",
|
"knowledge", "project", "plan", "guide", "decision",
|
||||||
"journal", "discussion", "experiment", "practice", "inbox", "reference",
|
"journal", "discussion", "experiment", "practice", "inbox", "reference",
|
||||||
|
"agent",
|
||||||
}
|
}
|
||||||
|
|
||||||
DEPRECATED_DIRS = [
|
DEPRECATED_DIRS = [
|
||||||
@@ -45,6 +46,7 @@ FRONTMATTER_EXEMPT_FILES = {
|
|||||||
ROOT / "README.md",
|
ROOT / "README.md",
|
||||||
ROOT / "AGENTS.md",
|
ROOT / "AGENTS.md",
|
||||||
ROOT / "inbox" / "README.md",
|
ROOT / "inbox" / "README.md",
|
||||||
|
ROOT / "agents" / "README.md",
|
||||||
}
|
}
|
||||||
|
|
||||||
errors: list[str] = []
|
errors: list[str] = []
|
||||||
|
|||||||
Reference in new issue
Block a user