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:
@@ -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."
|
||||
}
|
||||
Reference in New Issue
Block a user