kiskaadee 70188228a0
Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 8s
infra(validator): phase 2 — precise line numbers in all diagnostics
Add _line_of(content, pos) helper that computes the 1-indexed line number
from a character position in any content string. Thread it through every
document check:

  check_frontmatter
    - Missing frontmatter → line 1
    - Malformed frontmatter → line 1
    - Missing type field → line 1
    - Invalid type → exact line of the 'type:' field in the frontmatter block

  check_links
    - Broken relative link → exact line of the [text](url) span

  check_code_fences
    - Unclosed fence → line number of the last unpaired backtick delimiter
    - Switch from counting fence strings to enumerating (line_no, line) pairs

  check_mermaid
    - Pair every raw block line with its file-level line number via
      fence_line + 1 + i so each issue can report an exact location
    - Structural issues (unbalanced subgraph, sequenceDiagram blocks)
      anchor to the diagram header line
    - Edge-label issues anchor to the exact line where the label appears
    - Empty diagram block anchors to the first line after the fence

Update report() to render 'path:line  message' prefixes via _location();
fall back to 'path  message' when line is None, or bare message for
tool-level issues where path is also None.

Clean redundant path embedding from all error message strings — the
location is now structural data in Issue, not prose.

Smoke-tested: all six assertion cases pass with exact line numbers.
2026-09-26 05:44:42 -05:00

🧠 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:


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:


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.

S
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%