deprecate_symbol
Record a code symbol replacement to prevent re-emitting outdated signatures. Returns the deprecation status, marking old calls as blocked when superseded.
Instructions
CODING-AGENT REFACTOR RECORD (write, deterministic, no LLM): record that a code symbol old was replaced
by new (a function/method/constant renamed or removed in a refactor). This is the fix for the single most
common coding-loop memory failure — the model re-emitting a call the refactor already deleted because the old
signature is still in its context. A later deprecate_symbol of the same old supersedes the replacement.
Then call check_code(generated) before emitting code. Returns the recorded deprecation, and the verdict
on the write as remember gives it: a return to a replacement already retired is retired on arrival by
the echo guard and comes back blocked: true, with current_id the deprecation that stands.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | Yes | ||
| old | Yes | ||
| reason | No |