Skip to content

Fix circuit-breaker false trips, upload path traversal, and HTML expo…#39

Merged
ATaylorAerospace merged 2 commits into
mainfrom
claude/repo-code-recommendations-83rc4j
Jul 14, 2026
Merged

Fix circuit-breaker false trips, upload path traversal, and HTML expo…#39
ATaylorAerospace merged 2 commits into
mainfrom
claude/repo-code-recommendations-83rc4j

Conversation

@ATaylorAerospace

Copy link
Copy Markdown
Owner
  • Loop detector signature now includes step metadata, so scoring many provisions no longer trips a spurious ReasoningLoopError; genuinely identical repeated steps still trip.
  • Upload filenames are sanitized to their basename and resolved paths are validated to stay inside the session upload directory; size limit is now enforced even when the client omits Content-Length.
  • Jinja autoescaping enabled for HTML report export so document-derived text cannot inject markup; also fixed section['items'] template lookup that crashed every HTML export.
  • Added regression tests for all three fixes.

ATaylorAerospace added 2 commits July 14, 2026 17:21
…rt XSS

- Loop detector signature now includes step metadata, so scoring many
  provisions no longer trips a spurious ReasoningLoopError; genuinely
  identical repeated steps still trip.
- Upload filenames are sanitized to their basename and resolved paths
  are validated to stay inside the session upload directory; size limit
  is now enforced even when the client omits Content-Length.
- Jinja autoescaping enabled for HTML report export so document-derived
  text cannot inject markup; also fixed section['items'] template lookup
  that crashed every HTML export.
- Added regression tests for all three fixes.
CI installs only requirements.txt (the package itself is never
installed), so test collection failed with ModuleNotFoundError on
Python 3.11. Point pytest at the src layout explicitly.
@ATaylorAerospace
ATaylorAerospace merged commit 8b4dcc0 into main Jul 14, 2026
4 checks passed
@ATaylorAerospace
ATaylorAerospace deleted the claude/repo-code-recommendations-83rc4j branch July 14, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant