Commit Graph
4 Commits
Author SHA1 Message Date
Thomas KarnerandClaude Opus 5 6907d9a014 Add a front door, a user guide in two languages, and an honest list of what is broken
Four documents and two fixes to the deploy directory that the documents
exposed while being written.

The repo had no root README. Cloning it landed you on a 40 KB spec and a 24 KB
plan with nothing to orient you, which mattered more once main stopped being
an empty branch. The new one links rather than duplicates, and its status table
says plainly what has never run on hardware and that there are no backups.

docs/README.USER.md and its German twin are written for someone who will use
this, not build it: what radar buys over a PIR sensor, why there is no sign-up
page, what "pre-trigger" means, what to do when the six-digit code is refused.
Every POORBIRD_* setting is described in plain language, including the two that
cost an hour each the first time they bite. The German version is a
translation, not a mechanical flip of the English.

docs/OPEN-TOPICS.AI.md is the list nobody writes: unfixed security issues,
traps, and test debt, each labelled ACCEPTED, OPEN or TRAP, because the
difference between "known trade-off" and "not done yet" is the only thing that
makes such a list usable. It ends with a section of things that are NOT
problems -- the SHA-256/Argon2id split, the frozen 0001 migration, the finite
pool_timeout -- so they stop being rediscovered and "fixed".

Two real defects surfaced while documenting the install:

Nothing served the WebUI in production. The Caddyfile's human-facing block
only reverse-proxied to FastAPI, and FastAPI mounts no static files, so a
by-the-book install produced a working API and no gallery. It now has a
file_server with a try_files fallback, because the router does client-side
routing and without it only the entry page survives a reload.

INSTALL.md never created an account. With no sign-up endpoint, following it
end to end left you at a login form with no credentials that work -- the exact
wall hit on the dev machine today, and worse on a headless host. It also never
built or copied the UI, so a git pull on the server silently kept the old
bundle; that is now its own step, with --delete spelled out because Vite emits
content-hashed filenames.

Verified: caddy validate via the official caddy:2 image reports "Valid
configuration" (with the cloudflare-DNS block stripped, since that plugin is
not in the stock image and the block is unchanged); npm run build is clean at
192 modules; all 31 relative links across every .md resolve; the committed
line endings are LF, so caddy fmt's complaint was my working tree only.

Not verified: none of the install has run on a real host. The doc says so.

One claim was wrong before it shipped: both guides said signing out ends every
session everywhere. logout calls revoke_session for the current token only --
revoke_all_for_user exists but is not called there -- so it ends that browser's
session alone, and `user passwd` is what clears them all. Corrected in both
languages.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 23:01:20 +02:00
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
Thomas KarnerandClaude Opus 5 7263e1ec63 Move this branch's review to docs/reviews/ui-basic-implementation/
The UI review was living at server/REVIEW.md and server/REVIEW.AI.md - a path
that describes neither its subject nor its scope, since the document reviews
the UI branch and nothing in it is about the server directory it sat in.

The server branch moved its own review to docs/reviews/server-basic-implementation/
for the same reason, and because the fixed path guaranteed an add/add conflict
on both filenames the moment the two branches met. This is the other half of
that fix: with one directory per scope, both reviews survive into develop and
neither has to win.

Pure git mv, no content change. docs/reviews/README.md is taken as the
identical blob from the server branch rather than rewritten, so the two
branches cannot conflict on the file that exists to prevent conflicts.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 17:41:16 +02:00
Thomas KarnerandClaude Opus 5 8cf2329762 Move reviews to docs/reviews/<scope>/ so branches stop colliding
The review documents are branch-scoped snapshots pinned to a commit, not
living documentation of the directory they sit in. Kept at a fixed path,
every reviewed branch writes the same two filenames with different content.

Merging the two feature branches produced exactly that:

  CONFLICT (add/add): server/REVIEW.AI.md
  CONFLICT (add/add): server/REVIEW.md

Neither blob is an ancestor of the other, so git cannot resolve it, and it
would recur on every future review. The same fixed path also caused the
review OF the UI branch to live under server/, which reads as server
documentation and is how it got cherry-picked onto the wrong branch once
already.

One directory per reviewed scope fixes both. The filenames stay REVIEW.md and
REVIEW.AI.md, so existing references in the code still resolve. A merge probe
against feature/UI_Basic_implementation is now clean.

docs/reviews/README.md records the convention, how to read a snapshot whose
commit is behind the tip, and why not to copy a review between branches.

feature/UI_Basic_implementation still holds its review at server/REVIEW*.md.
That no longer conflicts, but it is still the misleading path and wants the
same move.

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