diff --git a/.jules/bolt.md b/.jules/bolt.md deleted file mode 100644 index 1a1263f..0000000 --- a/.jules/bolt.md +++ /dev/null @@ -1,3 +0,0 @@ -## 2024-05-23 - Thread Pool Overhead in Iterative Tasks -**Learning:** Recreating `ThreadPoolExecutor` inside a frequently called loop (like an optimization loop) introduces significant overhead, especially when the individual tasks are short-lived. -**Action:** Initialize `ThreadPoolExecutor` once in the class `__init__` and reuse it across method calls to amortize the setup cost. diff --git a/.jules/sentinel.md b/.jules/sentinel.md deleted file mode 100644 index c9d15f8..0000000 --- a/.jules/sentinel.md +++ /dev/null @@ -1,4 +0,0 @@ -## 2024-05-23 - Default Security Middleware in FastAPI Templates -**Vulnerability:** Missing default security headers and CORS configuration in API templates. -**Learning:** Developers often copy templates directly into production. If templates lack security headers by default, new services will be insecure. -**Prevention:** Always include `TrustedHostMiddleware` and `CORSMiddleware` in API templates with strict comments on how to configure them for production. Use safe defaults where possible, but permissive defaults with warnings (like `*`) are acceptable for templates if clearly marked with TODOs.