一键导入
null-hardened-feature-overrides
Validate remote numeric override maps defensively so null, non-finite, or negative flag payloads never corrupt runtime thresholds.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Validate remote numeric override maps defensively so null, non-finite, or negative flag payloads never corrupt runtime thresholds.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Collapse multiple change sources into one caller-facing boolean so headless bootstraps know whether a downstream refresh is necessary.
After awaiting persistence work, update the shared budget state for each `tool_use_id` exactly once so no concurrent reader ever sees a half-committed decision.
Issue continuation nudges while the turn stays under budget, then halt once diminishing returns or the budget cap justify stopping.
Lazily extract referenced files for bundled skills so large prompts stay offline until needed.
Persist a cache-safe stop-hook context snapshot only for main session queries so later helpers can resume from stable state without fork pollution.
Sweep stale extension caches before activation, then fall back to a sticky manual-refresh flag if the live refresh fails.
| name | null-hardened-feature-overrides |
| description | Validate remote numeric override maps defensively so null, non-finite, or negative flag payloads never corrupt runtime thresholds. |
| metadata | {"author":"ychampion"} |
Domain: remote-bridge
Trigger: Apply when remote feature flags or runtime override maps can influence thresholds, but the flag service may return null or malformed values.
Source Pattern: Distilled from reviewed remote override and transport-boundary patterns.
Treat remote override values as untrusted input rather than configuration you can index directly. Validate the flag payload type, require finite positive numbers, and fall back to the hardcoded default when the override is null, missing, non-object, or otherwise malformed. Preserve hard opt-outs, such as Infinity for tools that self-bound their output, before consulting the remote override layer.
NaN, and infinities.Infinity before consulting override maps so remote flags cannot re-enable disabled behavior.If a growth experiment can adjust persistence thresholds per tool, validate the experiment payload before using it; malformed data should simply leave getPersistenceThreshold and getPerMessageBudgetLimit on their safe defaults rather than crashing the result-storage path.