Repository navigation
GridForge v1.7.2 — Bounded Fetch Timeouts, Shared Lifecycle & Mutation-Hardened Suites
Reliability, maintainability, and test-hardening maintenance release consolidating Studio modal/drawer abort lifecycles, bounding browser API requests with explicit timeout signals, centralizing auth-mode configuration lookup, allowing the Cloudflare Web Analytics beacon in CSP, adding repository-level anti-slop guardrails, and substantially expanding mutation-verified frontend and backend test coverage.
Improved & Hardened
- Bounded Browser API Timeouts & Shared Modal Lifecycle (
web/src/api.ts,web/src/components/{lifecycle,adminModal,packsModal,authModal,projectsDrawer}.ts,web/src/{turnstile,deeplink,main}.ts):- Added a default 90 s
AbortSignal.timeoutfallback composed with callerAbortSignals (AbortSignal.any) inweb/src/api.tsso browser API probes and actions never hang indefinitely while preserving instant workspace-switch cancellation. - Extracted shared
linkAbortSignal,initModalBackdrop, andreportAbortAwareErrorhelpers intoweb/src/components/lifecycle.tsand unifiedAdminModaluser mutations,TurnstileControllerexpiry/timeout widget resets, job cancel/delete list updates, and one-time launch URL parameter stripping (stripOneTimeLaunchParamsinweb/src/deeplink.ts). - Logged caught errors at debug level in the Studio offline-basemap availability probe instead of silently swallowing failures.
- Added a default 90 s
- Centralized Auth-Mode Resolution, CSP & Repository Quality Guardrails (
src/gridforge/web/{app,auth,worker}.py,src/gridforge/mcp/http.py,.anti-slop/learned/rules.json):- Allowed the Cloudflare Web Analytics beacon (
https://static.cloudflareinsights.com) inContent-Security-Policyscript-srcwhile keeping strict no-unsafe-inlinescript rules intact. - Centralized
GRIDFORGE_AUTH_MODEparsing and validation intogridforge.web.auth.resolve_auth_mode()across the web app, background worker, and/mcpStreamable HTTP router to prevent cross-module configuration drift. - Added verified repository-level
anti-sloplearned rules covering subprocess shell safety, safe YAML loading, dynamiceval/exec, pinned Dockerfile base images, least-privilege file modes, Python HTTP timeouts, and live end-to-end verification discipline.
- Allowed the Cloudflare Web Analytics beacon (
Verification
- Automated & Mutation-Hardened Suites (
618offline PyQGIS pytest +65frontend tests +26live multi-region E2E):- Expanded frontend DOM, API, Turnstile, and deep-link tests (
web/tests/{modal-dom,api-auth-admin,turnstile,deeplink}.test.mjs), raising diff-scoped TypeScript mutation kill rate acrossv1.7.xchanges from23.3%to80.0%. - Expanded backend security and budget boundary tests (
tests/unit/test_{source_work_budgets,preview_work_budgets,auth_and_limits,mcp}.py), covering COG request-count caps, direct NRCan_warp_cogsallowlist validation, default Overpassfollow_redirects=False, exact WFS/SA ZIP limits, low-res preview DEM routing, symlinked sheet-workspace confinement, and empty/mcpclient host handling (95.8%sources /91.7%web+MCP mutation kill rates). - Verified
618offline PyQGIS pytest tests (--network none),65frontend tests + production Studio/MCP App builds (0npm audit --omit=devvulnerabilities), and26live multi-region open-data E2E renders.
- Expanded frontend DOM, API, Turnstile, and deep-link tests (
Docker Image
docker pull ghcr.io/jremick/gridforge:v1.7.2Attached below are the 5 verified 300–600 DPI sample print PDFs rendered directly from ghcr.io/jremick/gridforge:v1.7.2.