main-thread-only-cache-editing-c7721e — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited main-thread-only-cache-editing-c7721e (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Domain: context-management Trigger: Use when cached microcompact runs and you must prevent subagents or forks from writing cache edits that the main thread shares. Source Pattern: Distilled from reviewed context, compaction, and memory-governance patterns.
Only perform cache-editing microcompactions when the executing query source is the main thread (repl_main_thread or unspecified). This avoids contaminating shared cachedMCState with tool results that belong to background runs like session-memory compact, prompt suggestion, or other forks. The guard also ensures the cached MC path is never triggered in non-ANT builds that disable the feature altogether.
isMainThreadSource(querySource) so only canonical queries can edit the global cache.feature('CACHED_MICROCOMPACT') to keep the functionality out of builds that do not support it.querySource.startsWith('repl_main_thread') rather than strict equality so styled prompt contexts still match.cachedMCState unexpectedly.When a main-thread REPL session hits the cached microcompact trigger, the guard passes, allowing registerToolResult and createCacheEditsBlock to run. Forked agents such as session memory or prompt suggestion skip this block entirely, leaving the global cache untouched.
cachedMCState; they should always defer to the main thread’s editing path.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.