diff --git a/AGENTS.md b/AGENTS.md index 466d8219..ad9f4e97 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -86,3 +86,13 @@ design is in `docs/design.md`; read it before changing the architecture, and upd returns 404 for `/api/v1/*` on purpose. - Renderers handle untrusted input: they run only on the render node, under gVisor, with no network and no service-account token. +- serde_json's `arbitrary_precision` feature is on in app/'s build, so a number inside `#[serde(untagged)]` or + `#[serde(flatten)]` fails to deserialize (it arrives as a map, not a number). Read such bodies through + `serde_json::Value` (`domain::lenient`). Tests that build the struct directly won't catch it (4 Dec 2026, visualci.yml + thresholds and update_project floats). +- Code in a bare `tokio::spawn` task has no app context: `laravel::now()`, the database and the cache panic there. Use + `laravel::task::spawn` or `context.scope`, and `spawn_blocking` only for pure CPU work on plain data (decoding + images). Integration tests run inside an app context and won't catch it. +- Before building something other Laravel Rust apps also need (R2 presigned uploads, API key hashing or metering, + sitemaps, OG images, cookie consent, PostHog, Resend, Polar billing), search Talira and check kitze's packages + (github.com/kitze/laravel-rust-*) first. Keep VisualCI's own OAuth and MCP code (Nathan, 4 Dec 2026).