Files
poorBird/docs/reviews
Thomas KarnerandClaude Opus 5 89ebe99bed Merge Phase 2 into the UI branch, so auth is built on top of it
Phase 3 auth is next, and this branch's server/ was still at Phase 1. Building
sessions here without merging first would have meant writing them against a
config.py with credentials still defaulted, no deps.py device auth to follow as
a pattern, and - the one that actually matters - no rate limiter, leaving a
login endpoint brute-forceable until the branches finally met.

So the branches meet now, while the only conflict is a documentation one, rather
than later on top of an auth implementation.

TODO.md was the single conflict: both sides had edited Phase 3, which is exactly
what should happen when one branch finishes Phase 2 and the other starts the UI.
Both sides' content is kept - the Phase 2 ticks and the UI decisions in 3.0 -
and the resolution fixed two things a purely textual merge leaves broken:

  - "Minimal gallery page, no auth yet" is struck. SPEC 3.3 requires image
    serving to be auth-checked, so that is not a state the gallery can
    legitimately pass through, and the scaffold's System page already proves the
    browser-to-Postgres path that item existed to prove.
  - The themes line appeared twice, once ticked by the scaffold and once not.
    The genuinely open half is persisting the choice per user, which needs
    accounts, so that is what it now says.

web/ is untouched by the merge: it had no files at the merge base and none on
the server branch, so that side contributes no deletion. Verified - 27 files
before and after.

Verified both halves after resolving: server 194 passed, ruff clean, alembic
clean; UI typecheck clean, build green, 36 contrast pairs across 3 themes with
no failures.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 17:48:55 +02:00
..

Code reviews

One directory per reviewed scope:

docs/reviews/<scope>/REVIEW.md      human-readable review
docs/reviews/<scope>/REVIEW.AI.md   long-form context, written for an AI to
                                    read before working on that scope

<scope> is the branch the review was made against, with slashes flattened — feature/Server_Basic_implementation becomes server-basic-implementation.

Why the directory, and not server/REVIEW.md

These documents are branch-scoped snapshots, pinned to a commit that is named in their header. They are not living documentation of the directory they sit in.

Kept at a fixed path like server/REVIEW.md, every reviewed branch writes the same two filenames with different content, and every merge is an unresolvable add/add conflict. That happened: the review of the UI branch lived at server/REVIEW.md — a path that describes neither its subject nor its scope — and merging the two feature branches conflicted on both files.

A directory per scope means two reviews never collide, both survive into develop, and the path says what was reviewed without opening the file.

Reading one

Check the header first. Every review states its branch and commit:

**Branch:** feature/Server_Basic_implementation (Commit: 142b476)

If that commit is behind the branch tip, the review is a snapshot of an older state — treat its "what's missing" sections as of that date, not as current. Verify a claim against the code before acting on it. Several findings in the existing reviews are accurate; several reference implementations in them are not, and the ones that were wrong are noted in the code that replaced them.

Adding one

Create docs/reviews/<scope>/ and write both files. Do not copy a review from one branch to another: a review describes the branch it was made against, and a branch without one simply has not been reviewed yet.