Skip to content

Add sanitized markdown exception export for safe AI diagnostics#34

Open
ohmyfelix wants to merge 1 commit intocontributte:masterfrom
ohmyfelix:chore/issue-74-secrets-inherit
Open

Add sanitized markdown exception export for safe AI diagnostics#34
ohmyfelix wants to merge 1 commit intocontributte:masterfrom
ohmyfelix:chore/issue-74-secrets-inherit

Conversation

@ohmyfelix
Copy link
Copy Markdown
Contributor

Summary

  • add a sanitized markdown renderer and dumper that replace exception, stack trace, and request values with type descriptors only
  • register an opt-in Tracy extension and BlueScreen panel so the markdown can be inspected or passed to an AI agent without replacing Tracy's normal HTML output
  • cover recursive sanitization, HTTP request context, and runtime panel registration with tests and document the new extension

Testing

  • vendor/bin/tester tests/Cases
  • vendor/bin/phpstan analyse src tests --no-progress

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 4, 2026

Codecov Report

❌ Patch coverage is 78.36538% with 45 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (master@78062ef). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/SanitizedMarkdownRenderer.php 74.82% 35 Missing ⚠️
src/SanitizedDumper.php 83.63% 9 Missing ⚠️
src/BlueScreen/SanitizedMarkdownBlueScreen.php 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master      #34   +/-   ##
=========================================
  Coverage          ?   72.72%           
=========================================
  Files             ?        9           
  Lines             ?      253           
  Branches          ?        0           
=========================================
  Hits              ?      184           
  Misses            ?       69           
  Partials          ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants