소스 정보
- 저장소
- ben-manes/caffeine
- 최근 소스 활동
- 2026년 7월 30일 02:55
- 감지된 SKILL.md 언어
- 영어
- 스타
- 17,831
- 포크
- 1,709
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/ben-manes/caffeine --skill audit-jcache-conformance명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Regenerate the window climber's adversarial trap traces and run the behavioral gate against the real cache in the simulator
Adversarial workload search for eviction-policy regret. Crafts, shrinks, and classifies workloads on which the adaptive window climber fails to close the gap to its achievable optimum, and routes each failure class to the mechanism responsible (controller, policy structure, or recovery layer)
Price each algorithmic step of the window climber by removing it, to find steps that no longer earn their keep and branches that no longer fire
SOC 직업 분류 기준
SKILL.md 표시 중
| name | audit-jcache-conformance |
| description | JSR-107 (JCache) spec-conformance audit |
| context | fork |
| disable-model-invocation | true |
| allowed-tools | Read, Grep, Glob, Bash, Agent, Write |
This audit verifies the jcache/ adapter against the full JSR-107 1.1.1
specification — every normative domain, not just the corners the last bug
touched. It walks the spec surface and allocates depth by where the TCK is blind.
Why the TCK is the floor, not the verification. The TCK frequently asserts
only the observable end-state (containsKey/get), not the event stream
(CREATED/UPDATED/EXPIRED/REMOVED) or the statistics (CachePuts,
hits/misses, removals, evictions). Two implementations with different events and
different counts both pass. Every real bug found in this adapter recently lived in
exactly that TCK-blind gap (zero-creation-expiry phantom CREATED;
zero-update-expiry put-family suppressing UPDATED). So the audit goes DEEP
(full spec→RI→ecosystem→internal-parity differential) on the event/statistic/
expiry/write-through surface, and runs a COVERAGE pass (spec-text correctness +
confirm a test pins it) over the rest of the spec — escalating any COVERAGE clause
that turns out to hide a TCK-invisible event or statistic to the DEEP differential.
This is a focused, resource-heavy specialization of /audit-sibling-divergence
Group G2. Read .claude/docs/jsr107-conformance.md first — it is the resource
map (live-fetch recipes, RI/ecosystem class locations for every domain below), the
differential methodology, the parity-test pattern, and the catalogue of
already-resolved divergences (do not re-flag those).
jcache/src/main touching CacheProxy, LoadingCacheProxy,
EntryProcessorEntry/postProcess, EventDispatcher, expiry, statistics,
the write-through (CacheWriter) path, or store-by-value copying./audit-sibling-divergence run raises a Group G2 finding — use this to
resolve the direction (the static audit cannot, and has guessed wrong before)./audit-subsystem-safety,
/audit-memory-retention, /audit-lifecycle, and /audit-contract-drift's
obligation sweep.Heavyweight (fetches the spec, clones/fetches the ecosystem, may spawn sub-auditors). Not for routine pre-commit review.
Read .claude/docs/jsr107-conformance.md. Fetch the live spec:
DOC=1ijduF_tmHvBaUS7VBBU2ZN8_eEBiFaXXg9OI0_ZxCrA
curl -fsSL "https://docs.google.com/document/d/$DOC/export?format=txt" -o /tmp/jsr107_spec.txt
Confirm it fetched the real spec (grep for getExpiryForUpdate), not an auth page.
The export reflows; reference the spec by section name (the 1.1.1 section
headings are listed per-domain in the matrix below). Locate the TCK sources
(find ~/.gradle/caches -name 'cache-tests-1.1.1-test-sources.jar' and
jcache/build/tck/).
Walk the whole 1.1.1 spec. Map each normative domain to its spec section, its adapter code, and the depth it warrants. Do not stop at the write-path/expiry family — that is one DEEP domain among several, and the recent bugs there created a recency bias this matrix exists to correct.
Depth = DEEP — the TCK does not pin the event stream / statistic / expiry timing, so it can mask a real divergence. Run the full differential (Step 2) and add a parity-matrix test. Depth = COVERAGE — the spec text is unambiguous and the TCK's end-state assertion is sufficient. Confirm (a) the adapter matches the spec text and (b) a test pins it; cite the test. Escalate to DEEP the moment a hidden event/stat appears.
| # | Domain | 1.1.1 section | Depth | Verify |
|---|---|---|---|---|
| A | Write ops × expiry | Expiry Policies; Statistics Effects | DEEP | put/putAll/putIfAbsent/getAndPut/replace(K,V)/replace(K,V,V)/getAndReplace — creation-vs-update ZERO/ETERNAL/null expiry; CREATED/UPDATED emission; CachePuts count. Internal parity across all siblings. |
| B | Read & access | Expiry Policies; Integration; Statistics Effects | DEEP | get/getAll/containsKey/iterator — getExpiryForAccess ZERO/null/finite; CacheHits/CacheMisses (containsKey must not count); read-through load as get-miss-not-put |
| C | Remove ops | Cache Entry Listeners; Integration; Statistics Effects | DEEP | remove(K)/remove(K,V)/getAndRemove/removeAll(keys)/removeAll()/clear() — REMOVED event + oldValue; removeAll() counts removals, clear() does not; removal-stat gating on an already-expired entry; CacheWriter.delete |
| D | Entry processors | Entry Processors; Statistics Effects | DEEP | invoke/invokeAll — EntryProcessorEntry.Action machine (NONE→READ/CREATED/UPDATED/LOADED/DELETED) vs RI ; per-op events + stats; read-through counting as a put (catalogued — confirm, don't re-flag) |
(Annotations — CDI/Spring @CacheResult etc. — is a separate spec section the
adapter does not implement; out of scope.)
For each DEEP domain corner, in order, until the reference behavior is unambiguous:
/tmp/jsr107_spec.txt. Note
deliberately-different wording between sibling operations (create-vs-update is
the canonical trap)..claude/rules/jcache-adapter.md.)RICache write/remove paths, RICacheStatisticsMXBean,
RICacheEventDispatcher, RICache.writeCacheEntry/deleteCacheEntry, etc.).For each COVERAGE domain: confirm the adapter's behavior matches the spec text,
and that a TCK or unit test pins it — cite the test by name. If the only test
asserts end-state and the clause hides an event/stat (e.g. does clear() fire
REMOVED? does a store-by-value copy happen on the event payload?), escalate that
corner to DEEP and run the ladder above. A COVERAGE domain with a correct-but-
untested clause is a coverage finding, not a pass.
Spawn one sub-auditor per domain-group — write/read/remove (A–C), entry
processors (D), events (E), statistics (F), integration loader+writer
(G–H), store-by-value/types/config/lifecycle/management (I–N) — each with the
doc + the fetched spec as context, each required to return a concrete witness
(operation sequence → divergent event/stat/end-state, or the test that pins the
clause). Sub-agents cannot read session memory — paste the doc's divergence
catalogue inline so they do not re-derive known false-positives. Direct each
sub-auditor to write its report to a group-suffixed path
(.local/audits/<model>/audit-jcache-conformance-<group>.md), never the canonical path:
parallel groups writing audit-jcache-conformance.md overwrite each other (the
2026-07 run lost two group reports this way and had to recover them from agent
transcripts).
For each confirmed real divergence:
writeOp_*/readOp_*/removeOp_* over every sibling op) asserting they
all produce the same event count, statistic delta, and end-state. The TCK is not
the regression guard — the parity test is.:jcache:test and :jcache:tckTest (per .claude/rules/jcache-adapter.md;
the TCK encodes interpretations unit tests miss)..claude/docs/jsr107-conformance.md's catalogue and ecosystem matrix so
the next run does not re-litigate it.For a COVERAGE-tier clause that is correct but untested, record it as a coverage gap (which test to add), not a bug.
The orchestrator (not the sub-auditors) writes
.local/audits/<model>/audit-jcache-conformance.md — the consolidated adjudication
across the group-suffixed reports — using the standard
.claude/docs/finding-taxonomy.md schema (severity / category / confidence /
classification).
Lead with the spec-surface coverage matrix: every domain A–N → depth → verdict (conformant / divergence / coverage-gap) → the witness or the pinning-test citation. A clean run must show every domain was reached, so "clean" means the full 1.1.1 surface was walked — not just the recent-bug corners.
Then, for each finding: the spec citation (by section name), the RI behavior, the ecosystem tally, the Caffeine internal-parity result, the witness (operation → divergent observable), and the resolution direction with its justification. A finding with no spec/RI/ecosystem backing for its direction is not ready — record it as escalated, not as a fix.
MutableEntryOperationgetValue()| E | Events | Cache Entry Listeners | DEEP | CREATED/UPDATED/REMOVED/EXPIRED payload (isOldValueAvailable/getOldValue); synchronous vs asynchronous dispatch; CacheEntryEventFilter; per-key ordering (EventDispatcher CompletableFuture chains); runtime register/deregister |
| F | Statistics | Statistics Effects of Cache Operations | DEEP | The full CacheStatisticsMXBean matrix: CacheHits/Misses/Gets/Puts/Removals/Evictions × every op. Failed putIfAbsent/replace accounting; CacheEvictions (the Caffeine-native-eviction→JCache-stat bridge — no sibling resolves this identically); clear() resets; averages (RI leaves them 0) |
| G | Integration — writer | Integration | DEEP | Write-through: CacheWriter.write/delete ordering vs store and vs event/stat; a writer exception must suppress the event and the CachePuts increment; writeAll/deleteAll partial-failure collection mutation; CacheWriterException wrapping |
| H | Integration — loader | Integration | DEEP | Read-through get/getAll/invoke; loadAll replaceExistingValues + completion listener; CacheLoaderException wrapping (relaxed in 1.1.1 — check the revision history, not the 1.0 PDF; but TCK still asserts wrapping for loadAll) |
| I | Store-by-value | Store-By-Value and Store-By-Reference | COVERAGE | Copy points (put/get/iterator/event payloads); caller-mutation isolation; RISerializingInternalConverter vs RIReferenceInternalConverter. Escalate if a copy is skipped on an event/stat path |
| J | Types | Configuration | COVERAGE | getKeyType/getValueType enforcement; ClassCastException on wrong-typed put/get; getCache(name, K, V) type check |
| K | Configuration | Configuration | COVERAGE | MutableConfiguration snapshot-on-create; Factory<CacheLoader/CacheWriter/ExpiryPolicy>; read-through/write-through/store-by-value/stats/mgmt flags |
| L | Lifecycle | Caching Providers | COVERAGE | close/isClosed → IllegalStateException on every op; CacheManager create(dup→CacheException)/get/destroy; getCacheNames immutable iterator; provider URI/classloader/properties |
| M | Management | Caching Providers (MXBeans) | COVERAGE | CacheMXBean attributes; JMX ObjectName sanitize (catalogued); enable/disable statistics & management at runtime |
| N | Null / adversarial inputs | method javadocs | COVERAGE | NullPointerException contract on null key/value/map/filter/processor args across the full API |