initial: toy notes service used to demo pragent

A deliberately small Python service — auth helpers, a sqlite-backed store, and
two request handlers — plus a .pr-review.json that steers the reviewer toward
this repo's house rules. Pull requests against it carry planted defects so the
reviewer has something real to find.
This commit is contained in:
marcos
2026-08-18 12:31:09 +00:00
commit 9378fe0427
8 changed files with 162 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
{
"focus": ["security", "sql-injection", "auth", "path-traversal"],
"exclude_paths": ["tests/fixtures/**"],
"languages": ["python"],
"instructions": "House rules: all SQL must be parameterised — flag any query built by string concatenation or f-string as critical. Secrets and tokens must be compared with hmac.compare_digest, never ==. Any filesystem path derived from user input must be resolved and checked to stay inside its intended root. Public handlers in app/api.py must have an explicit authorisation check, not merely an authentication check."
}