cache-architecture
Installation
SKILL.md
Quota Cache Architecture & Context Scoping
This document details the disk caching architecture, file permissions, context-scoping mechanism, and data retention policies implemented in src/cache.ts.
Cache Storage & Security
- Path:
~/.cache/quota-axi/quotas.json, or$XDG_CACHE_HOME/quota-axi/quotas.jsonifXDG_CACHE_HOMEis set. - File Permissions: Cache files and parent directories must be created with strict
0600(read/write by owner only) and0700permissions. - Normalized Data Only: Cache records contain only normalized, non-secret quota snapshot structures.
- Strict Prohibition: Never persist raw HTTP responses, headers, authorization bearers, refresh tokens, API keys, or browser cookies.
Context-Scoped Providers (CONTEXT_SCOPED_PROVIDERS)
To prevent cross-account or cross-environment cache poisoning, providers whose identity is configuration-dependent or slot-shared are enrolled in CONTEXT_SCOPED_PROVIDERS in src/cache.ts: