Files
second-brain/records/journal/2026-07-01.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

1.2 KiB

Daily Journal: 2026-07-01

Summary

Completed Milestone 0 of the Backend Residency and prepared the repository to begin Milestone 1.

BiteTrack

  • Moved health-check endpoints outside the versioned API namespace (/health, /healthz).
  • Added the initial router aggregation structure.
  • Added a placeholder users router under /api/v2/users.
  • Wrote a temporary probe.sh script for quickly verifying HTTP endpoints.
  • Simplified the development flake after discovering that premature LD_LIBRARY_PATH injection introduced runtime issues.
  • Verified:
    • docker compose up
    • FastAPI /docs
    • Ruff
    • Pyright
    • pytest

Backend Residency

  • Marked Milestone 0 as completed.
  • Updated ROADMAP.md.
  • Updated CURRENT.md.
  • Updated todo.md to begin Milestone 1.

Lessons Learned

Keep the devShell minimal

Avoid adding linker configuration until a package actually requires native libraries.

Infrastructure endpoints should not be versioned

Health checks belong outside /api/vX, allowing orchestrators and reverse proxies to probe the application independently from API versions.

Tomorrow

  • Begin Milestone 1.
  • Read FastAPI routing and Pydantic documentation.
  • Design the request/response schema for user registration.