MCPcopy Create free account
hub / github.com/openai/plugins / _surface_notes

Function _surface_notes

plugins/codex-security/scripts/report_projection.py:250–258  ·  view source on GitHub ↗
(surface: dict[str, Any])

Source from the content-addressed store, hash-verified

248
249
250def _surface_notes(surface: dict[str, Any]) -> str:
251 notes = surface.get("notes", "No additional canonical notes were recorded.")
252 receipt_refs = surface.get("receiptRefs", [])
253 if not isinstance(receipt_refs, list) or not receipt_refs:
254 return _cell(notes)
255 evidence = ", ".join(item for item in receipt_refs if isinstance(item, str))
256 if not evidence:
257 return _cell(notes)
258 return _cell(f"{notes} Evidence: {evidence}")
259
260
261def _finding_section(number: int, finding: dict[str, Any]) -> list[str]:

Callers 1

build_report_markdownFunction · 0.85

Calls 2

_cellFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected