ad4d0435cedf16b49522152d7b73f2435699a4ef
Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 7s
- Introduce Document NamedTuple (path, rel, content, validates_frontmatter)
as the unit of discovery; all inclusion/exclusion policy lives in
discover_documents() — no check ever calls is_exempt() again.
- Introduce Issue NamedTuple (severity, path, line, message) with
Severity = Literal['error', 'warning']; line field reserved for Phase 2.
- Replace four independent rglob traversals with a single discovery pass
that reads each file once.
- Encapsulate all checks as pure functions returning list[Issue] with no
global state mutation.
- Eliminate the global errors/warnings lists and module-level execution.
- Remove the any('Deprecated' in e ...) reporting smell; per-check
pass/fail now derived from returned Issue lists, not string inspection.
- Add explicit check registry tuple in main() — the manifest of what
validation means is now visible at a glance.
- Separate report() function prepares for --format json without redesign.
- Move MERMAID_TYPES to module-level configuration alongside other constants.
- Behavioral specification preserved: exit 0, same error messages.
- Pyright: 0 errors, 0 warnings.
Also fixes two Mermaid edge label parse errors caught by the improved
validator from the previous session:
projects/magnetflix/README.md: quote |gRPC Event Stream (SSE)|
projects/homelab/guides/mail-deliverability-rdns-relay-guide.md:
quote |Encrypted TLS (587)| and |Port 25 (In & Out)|
🧠 Brain
A personal knowledge graph organized by document type, not by subject.
Structure
| Directory | What it contains |
|---|---|
inbox/ |
Zero-friction capture. Write here when you don't know where something belongs yet. |
knowledge/ |
Durable understanding — things you know and want to keep. |
projects/ |
Contextual documents that belong to a specific project. |
records/ |
Historical artifacts — things that happened. |
practice/ |
Algorithm exercises and implementation drills. |
agents/ |
Canonical agent specifications, behavioral guardrails, and role profiles. |
Knowledge
knowledge/
├── concepts/ ← Disciplinary ideas: algorithms, data structures
├── technologies/ ← Tool and language knowledge: Python, Docker, Nix, tmux
│ └── python/
└── methods/ ← Backend practices: testing, auth, SQL, CI/CD, ADRs
Key documents:
- Binary Search
- HashMap
- Pydantic
- Docker
- Authentication & JWT
- SQL
- Testing
- CI/CD & GitOps
- Deterministic Tag Extraction
Projects
projects/
├── nixos/ ← Declarative multi-machine OS fleet & flake architecture
│ └── plans/ ← Migration and optimization roadmaps
├── homelab/ ← Infrastructure, Docker services, appctl, GitOps, networking
│ ├── plans/ ← Migration and strategy documents
│ └── guides/ ← Architecture and runbook documents
├── dynu-monitor/ ← Smart DDNS change detection daemon (Python/Rust)
├── new-repo/ ← Automated repository provisioning CLI
├── magnetflix/ ← Media indexing and streaming application
├── nekoweb/ ← Web showcase and static site generation
├── supervisor/ ← Personal engineering progress tracking & supervisory system
└── brain/ ← Second Brain platform, validation, and metadata extraction tooling
Key documents:
- NixOS Fleet Overview
- Homelab Overview
- Dynu Monitor Overview
- New-Repo CLI Overview
- MagNetFlix Overview
- Nekoweb Overview
- Supervisor Overview
- Second Brain Platform Overview
Records
records/
└── journal/ ← Dated engineering retrospectives
Practice
practice/
└── LeetCode/
├── 00-practiced-patterns.md ← Pattern index
├── 0001-two-sum.md
└── Solutions/ ← Python solution files
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
Every document has a type field in its YAML frontmatter. See AGENTS.md for the full metadata convention, directory semantics, link standards, and git commit format.
Inbox
Documents that haven't been classified yet live in inbox/. See inbox/README.md for the capture rule.
Description
Personal knowledge graph and lifelong learning vault structured by document type, progressive summarization, and ADRs.
Readme
Unlicense
1.8 MiB
0 Stars
1 Watchers
0 Forks
Languages
Python
93.6%
Shell
3.3%
Nix
3.1%