Files
second-brain/records/journal/2026-06-30.md
T
kiskaadee fb0ac3de1b refactor(brain): reorganize repository structure
Replace subject-based folder hierarchy with a document-type-based layout.

Filesystem now establishes broad ownership and locality:
- knowledge/ → concepts/ | technologies/ | methods/
- homelab/ → projects/homelab/plans/ | projects/homelab/guides/
- journal/ → records/journal/
- projects/ flat files → per-project sub-folders with overview.md
- knowledge/parking-lot.md → inbox/

Deleted files:
- Root-level Backend Residency operational files (AGENTS.md, CURRENT.md,
  ROADMAP.md, SKILLS.md, todo.md, todo.txt) — belong in backend-residency repo
- docs/ directory entirely (ADRs belong in bitetrack-api, remaining files unused)
- learning/ directory (backend-residency.md deleted; cicd guide moved to knowledge/methods/)
- projects/README.md (replaced by individual project overview files)
2026-09-05 21:42:55 -05:00

62 lines
1.6 KiB
Markdown

# Daily Journal: 2026-06-30
## Goal
Resume Milestone 0 by stabilizing the Nix development environment before implementing the first `/health` endpoint.
---
## Progress
Today's work focused entirely on debugging the Nix development environment.
The original blocker was that native binaries installed inside the UV virtual environment (notably Ruff) could not execute under NixOS because of dynamically linked executables.
Rather than enabling `nix-ld` globally, I decided to investigate a project-local solution using a declarative `flake.nix`.
---
## Findings
- Created a minimal `flake.nix` providing the project development shell.
- Learned how `eachDefaultSystem` exposes the shell for multiple architectures.
- Confirmed the shell loads automatically through `direnv`.
- Initially encountered a `glibc` symbol mismatch affecting Starship.
- The issue disappeared after removing `LD_LIBRARY_PATH` from the shell and relying on the standard Nix environment.
- Moved Ruff from the Python virtual environment into the Nix devShell.
- Confirmed:
```bash
ruff check .
```
passes.
```bash
uv run ruff check
```
also passes.
Pyright and pytest continue working from the Python virtual environment.
---
## Lessons Learned
- Native tooling belongs in the Nix environment.
- Python libraries belong in the virtual environment.
- The first component reporting an error is not necessarily the component causing it.
- Systematically testing hypotheses is more effective than searching for fixes.
---
## Next Session
Resume the original milestone:
- implement `/health`
- run Docker
- verify `/docs`
- complete Milestone 0 acceptance tests.