Cache: Freeze cache tree
metrecept_freeze_cache_treeFreeze a cache tree to pin a known-good version while forks keep experimenting, or unfreeze it to resume writes. Frozen trees still serve cached responses and send misses upstream without storing them.
Instructions
Freeze a cache tree so it keeps serving its cached responses but accepts no new writes, or unfreeze it (frozen=false) back to active. Use it to pin a known-good cache, for example a release branch's tree, while experiments continue in forks. Not for hiding or retiring a tree: use metrecept_archive_cache_tree. Not for removing it: use metrecept_delete_cache_tree. While frozen, misses are served upstream but not stored, eviction returns 409 tree_frozen and the tree cannot be a fork parent or promote target. Idempotent, not billed, audit-logged. Errors: 409 cannot_freeze_main, 409 tree_archived (restore it first), 404 tree_missing. Requires a Metrecept API key (METRECEPT_API_KEY env on stdio, or Authorization: Bearer on remote HTTP); results are scoped to that key's tenant only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frozen | No | true (default) freezes the tree; false unfreezes it back to active. | |
| tree_id | Yes | Id of the cache tree to freeze or unfreeze; any tree except "main". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |