Skip to content

Commit 2916324

Browse files
committed
test(boundary-safety): refresh inventory after main sync
1 parent 6ccd950 commit 2916324

1 file changed

Lines changed: 12 additions & 110 deletions

File tree

test/fixtures/boundary-safety-inventory.json

Lines changed: 12 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,21 @@
7878
},
7979
{
8080
"file": "extensions/codex/src/app-server/approval-bridge.ts",
81-
"line": 1588,
81+
"line": 1587,
8282
"ruleId": "boundary/text-utf16-truncation",
8383
"match": "value.slice(0, Math.max(0, maxLength - 3))",
8484
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
8585
},
8686
{
8787
"file": "extensions/codex/src/app-server/attempt-notifications.ts",
88-
"line": 332,
88+
"line": 320,
8989
"ruleId": "boundary/text-utf16-truncation",
9090
"match": "text.slice(0, 237)",
9191
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
9292
},
9393
{
9494
"file": "extensions/codex/src/app-server/client.ts",
95-
"line": 743,
95+
"line": 731,
9696
"ruleId": "boundary/text-utf16-truncation",
9797
"match": "redacted.slice(0, CODEX_APP_SERVER_PARSE_LOG_MAX)",
9898
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
@@ -141,7 +141,7 @@
141141
},
142142
{
143143
"file": "extensions/codex/src/app-server/event-projector.ts",
144-
"line": 3135,
144+
"line": 3069,
145145
"ruleId": "boundary/text-utf16-truncation",
146146
"match": "text.slice(0, TOOL_TRANSCRIPT_OUTPUT_MAX_CHARS)",
147147
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
@@ -155,25 +155,18 @@
155155
},
156156
{
157157
"file": "extensions/codex/src/command-handlers.ts",
158-
"line": 1893,
158+
"line": 2054,
159159
"ruleId": "boundary/text-utf16-truncation",
160160
"match": "formatCodexTextForDisplay(error).slice(0, CODEX_DIAGNOSTICS_ERROR_MAX_CHARS)",
161161
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
162162
},
163163
{
164164
"file": "extensions/diagnostics-otel/src/service.ts",
165-
"line": 679,
165+
"line": 685,
166166
"ruleId": "boundary/text-utf16-truncation",
167167
"match": "value.slice(0, maxChars)",
168168
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
169169
},
170-
{
171-
"file": "extensions/discord/src/error-body.ts",
172-
"line": 21,
173-
"ruleId": "boundary/text-utf16-truncation",
174-
"match": "summary.slice(0, DISCORD_RESPONSE_BODY_SUMMARY_MAX_CHARS)",
175-
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
176-
},
177170
{
178171
"file": "extensions/discord/src/monitor/gateway-metadata.ts",
179172
"line": 199,
@@ -216,13 +209,6 @@
216209
"match": "singleLine.slice(0, maxChars)",
217210
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
218211
},
219-
{
220-
"file": "extensions/feishu/src/monitor.transport.ts",
221-
"line": 154,
222-
"ruleId": "boundary/text-utf16-truncation",
223-
"match": "redacted.slice(0, FEISHU_WS_LOG_ERROR_MAX_LENGTH)",
224-
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
225-
},
226212
{
227213
"file": "extensions/google/embedding-batch.ts",
228214
"line": 223,
@@ -482,13 +468,6 @@
482468
"match": "sanitized.slice(0, TELEGRAM_QA_PROGRESS_DETAIL_LIMIT - 3)",
483469
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
484470
},
485-
{
486-
"file": "extensions/qa-lab/src/qa-credentials-admin.runtime.ts",
487-
"line": 395,
488-
"ruleId": "boundary/response-body-limit",
489-
"match": "response.text()",
490-
"guidance": "Use readResponseWithLimit(...), readProviderJsonResponse(...), readResponseTextSnippet(...), or openclaw/plugin-sdk/response-limit-runtime from plugin code."
491-
},
492471
{
493472
"file": "extensions/qa-lab/src/runtime-parity.ts",
494473
"line": 995,
@@ -587,20 +566,6 @@
587566
"match": "lastError.message.slice(0, 100)",
588567
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
589568
},
590-
{
591-
"file": "extensions/qqbot/src/engine/messaging/reply-dispatcher.ts",
592-
"line": 284,
593-
"ruleId": "boundary/text-utf16-truncation",
594-
"match": "value\n .replace(/[\\r\\n\\t]/g, \" \")\n .replaceAll(\"\\0\", \" \")\n .slice(0, maxLen)",
595-
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
596-
},
597-
{
598-
"file": "extensions/qqbot/src/engine/messaging/reply-dispatcher.ts",
599-
"line": 516,
600-
"ruleId": "boundary/text-utf16-truncation",
601-
"match": "ttsText.slice(0, 50)",
602-
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
603-
},
604569
{
605570
"file": "extensions/qqbot/src/engine/utils/log.ts",
606571
"line": 51,
@@ -629,13 +594,6 @@
629594
"match": "currentText.slice(0, chunkLength)",
630595
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
631596
},
632-
{
633-
"file": "extensions/telegram/src/raw-update-log.ts",
634-
"line": 83,
635-
"ruleId": "boundary/text-utf16-truncation",
636-
"match": "value.slice(0, MAX_RAW_UPDATE_STRING)",
637-
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
638-
},
639597
{
640598
"file": "extensions/thread-ownership/index.ts",
641599
"line": 192,
@@ -664,27 +622,13 @@
664622
"match": "req.text.slice(0, 50)",
665623
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
666624
},
667-
{
668-
"file": "extensions/voice-call/src/media-stream.ts",
669-
"line": 112,
670-
"ruleId": "boundary/text-utf16-truncation",
671-
"match": "sanitized.slice(0, maxChars)",
672-
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
673-
},
674625
{
675626
"file": "extensions/voice-call/src/realtime-agent-context.ts",
676627
"line": 25,
677628
"ruleId": "boundary/text-utf16-truncation",
678629
"match": "text.slice(0, Math.max(0, maxChars - 32))",
679630
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
680631
},
681-
{
682-
"file": "extensions/voice-call/src/webhook.ts",
683-
"line": 82,
684-
"ruleId": "boundary/text-utf16-truncation",
685-
"match": "sanitized.slice(0, TRANSCRIPT_LOG_MAX_CHARS)",
686-
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
687-
},
688632
{
689633
"file": "extensions/whatsapp/src/auto-reply/monitor/echo.ts",
690634
"line": 51,
@@ -736,7 +680,7 @@
736680
},
737681
{
738682
"file": "packages/markdown-core/src/ir.ts",
739-
"line": 1109,
683+
"line": 1111,
740684
"ruleId": "boundary/text-utf16-truncation",
741685
"match": "state.text.slice(0, finalLength)",
742686
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
@@ -748,27 +692,6 @@
748692
"match": "text.slice(0, maxChars)",
749693
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
750694
},
751-
{
752-
"file": "packages/speech-core/src/tts.ts",
753-
"line": 2031,
754-
"ruleId": "boundary/text-utf16-truncation",
755-
"match": "textForAudio.slice(0, maxLength - 3)",
756-
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
757-
},
758-
{
759-
"file": "packages/speech-core/src/tts.ts",
760-
"line": 2047,
761-
"ruleId": "boundary/text-utf16-truncation",
762-
"match": "textForAudio.slice(0, config.maxTextLength - 3)",
763-
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
764-
},
765-
{
766-
"file": "packages/speech-core/src/tts.ts",
767-
"line": 2052,
768-
"ruleId": "boundary/text-utf16-truncation",
769-
"match": "textForAudio.slice(0, maxLength - 3)",
770-
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
771-
},
772695
{
773696
"file": "packages/tool-call-repair/src/stream-normalizer.ts",
774697
"line": 414,
@@ -888,20 +811,6 @@
888811
"match": "trimmed.slice(0, headChars)",
889812
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
890813
},
891-
{
892-
"file": "src/agents/embedded-agent-runner/run/attempt.prompt-helpers.ts",
893-
"line": 340,
894-
"ruleId": "boundary/text-utf16-truncation",
895-
"match": "trimmed.slice(0, MAX_STRUCTURED_MEDIA_REF_CHARS)",
896-
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
897-
},
898-
{
899-
"file": "src/agents/embedded-agent-runner/run/attempt.prompt-helpers.ts",
900-
"line": 352,
901-
"ruleId": "boundary/text-utf16-truncation",
902-
"match": "trimmed.slice(0, MAX_STRUCTURED_JSON_STRING_CHARS)",
903-
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
904-
},
905814
{
906815
"file": "src/agents/embedded-agent-runner/tool-result-truncation.ts",
907816
"line": 142,
@@ -953,7 +862,7 @@
953862
},
954863
{
955864
"file": "src/agents/openai-transport-stream.ts",
956-
"line": 408,
865+
"line": 410,
957866
"ruleId": "boundary/text-utf16-truncation",
958867
"match": "names.slice(0, maxNames)",
959868
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
@@ -1373,7 +1282,7 @@
13731282
},
13741283
{
13751284
"file": "src/infra/session-cost-usage.ts",
1376-
"line": 2739,
1285+
"line": 2755,
13771286
"ruleId": "boundary/text-utf16-truncation",
13781287
"match": "content.slice(0, maxLen)",
13791288
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
@@ -1492,14 +1401,14 @@
14921401
},
14931402
{
14941403
"file": "src/skills/loading/workspace.ts",
1495-
"line": 1392,
1404+
"line": 1410,
14961405
"ruleId": "boundary/text-utf16-truncation",
14971406
"match": "skillsForPrompt.slice(0, mid)",
14981407
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
14991408
},
15001409
{
15011410
"file": "src/skills/loading/workspace.ts",
1502-
"line": 1398,
1411+
"line": 1416,
15031412
"ruleId": "boundary/text-utf16-truncation",
15041413
"match": "skillsForPrompt.slice(0, lo)",
15051414
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
@@ -1532,16 +1441,9 @@
15321441
"match": "normalized.slice(0, MAX_SNIPPET_CHARS - 1)",
15331442
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
15341443
},
1535-
{
1536-
"file": "src/tts/status-config.ts",
1537-
"line": 117,
1538-
"ruleId": "boundary/text-utf16-truncation",
1539-
"match": "normalized.slice(0, maxLength - 3)",
1540-
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."
1541-
},
15421444
{
15431445
"file": "src/tui/tui-event-handlers.ts",
1544-
"line": 55,
1446+
"line": 56,
15451447
"ruleId": "boundary/text-utf16-truncation",
15461448
"match": "diagnostic.slice(0, MAX_ABORT_DIAGNOSTIC_LENGTH - 1)",
15471449
"guidance": "Use truncateUtf16Safe(...) for head truncation or sliceUtf16Safe(...) for non-head slicing."

0 commit comments

Comments
 (0)