probe-feature-flag-state
정보
이 스킬은 네 가지 증거 프로토콜을 사용하여 CLI 바이너리 내 명명된 기능 플래그의 런타임 상태를 탐색합니다. 플래그를 LIVE, DARK, INDETERMINATE 또는 UNKNOWN으로 분류하며, 게이트 대 이벤트 구분과 같은 시나리오를 처리합니다. 기능의 롤아웃 여부 확인, 다크 론칭된 기능 감사, 또는 새로운 바이너리 버전에 대한 프로브 갱신에 활용할 수 있습니다.
빠른 설치
Claude Code
추천npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/probe-feature-flag-stateClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Probe Feature-Flag State
Determine if named flag in shipped CLI binary is LIVE, DARK, INDETERMINATE, or UNKNOWN via 4-prong evidence protocol pairing every state claim w/ specific observation.
Use When
- Capability rumored/documented/inferred → verify gate fires for running session
- Audit dark-launched features (ships in bundle, gated off) → plan integrations responsibly
- Prior probe needs refresh against new binary (flag may have flipped, removed, merged into conjunction)
- Phase 1 (
monitor-binary-version-baselines) follow-up → classify candidates before Phase 4 wire capture - User-visible behavior changed → flag flip or code change drove it?
In
- Required: Flag name as in binary (string-literal form)
- Required: CLI binary or bundle file readable + invocable
- Required: Authenticated session against harness's normal backend (own account; never another user's)
- Optional: Binary version ID — strongly recommended for diff-able evidence table
- Optional: Suspected co-gates list (other flags in conjunction)
- Optional: Prior probe artifact at different version, for delta analysis
Do
Step 1: Confirm Flag Name in Binary (Prong A — Binary Strings)
Extract candidate from bundle → confirm exists as string literal. Without this, all prongs probing thin air.
# Locate the bundle (common shapes: .js, .mjs, .bun, packaged binary)
BUNDLE=/path/to/cli/bundle.js
FLAG=acme_widget_v3 # synthetic placeholder — replace with the candidate
# Confirm the literal exists
grep -c "$FLAG" "$BUNDLE"
# Capture every line where it appears, with surrounding context for Step 2
grep -n -C 3 "$FLAG" "$BUNDLE" > /tmp/flag-context.txt
wc -l /tmp/flag-context.txt
Inspect /tmp/flag-context.txt, tag each occurrence:
- gate-call — first arg to gate-shaped fn (
gate("$FLAG", default),isEnabled("$FLAG"),flag("$FLAG", ...)). - telemetry-call — first arg to emit/log/track fn.
- env-var-check —
process.env.Xlookup. - string-table — static map/registry, role unclear.
→ ≥1 occurrence in bundle, each tagged w/ call-site role.
If err: grep -c returns 0 → flag not in build. Wrong input (typo, wrong namespace) or removed. Re-check Phase 1 markers, correct input or classify REMOVED + stop.
Step 2: Disambiguate Gate from Event from Env Var
Same string can be gate, telemetry event, env var, or all three. Classification by call-site, not string. Mistaking telemetry for gate → nonsense reasoning.
Per tagged occurrence:
- gate-call → eligible for LIVE/DARK/INDETERMINATE classification. Capture default value passed (
gate("$FLAG", false)defaults off;gate("$FLAG", true)defaults on). Record literal default + gate fn name. - telemetry-call → NOT a gate. Label fired when other gate already passed. Only telemetry-call → string is event-only, classification =
UNKNOWN. - env-var-check → usually kill switch (default-on disabled by env var) or opt-in (default-off enabled by env var). Note polarity —
if (process.env.X) { return null; }= kill switch;if (process.env.X) { enable(); }= opt-in. - string-table → cross-ref, look at downstream consumption.
→ Per occurrence, definite call-site role + (for gate-calls) recorded default value.
If err: gate-call's surrounding context too minified to read default → expand context (-C 10), inspect full callee. Default still unreadable → record default=?, downgrade LIVE/DARK to INDETERMINATE.
Step 3: Observe Live Invocation Behavior (Prong B — Runtime Probe)
Run harness in authenticated session, observe gated capability surfaces. Highest-signal prong: bundle says what can happen, runtime shows what does happen.
Pick probe action revealing gate-pass — typically user-visible behavior gate guards (tool in tool list, command flag valid, UI element rendering, output field appearing).
# Example shape — adapt to the harness
$CLI --list-capabilities | grep -i widget # does the gated capability appear?
$CLI --help 2>&1 | grep -i "$FLAG" # is a flag-related option exposed?
$CLI run-some-command --debug 2>&1 | tee probe-runtime.log
Record one of three:
- gate-pass observed — capability surfaced. Candidate:
LIVE. - gate-pass not observed — capability didn't surface. Candidate depends on default from Step 2 (default-false →
DARK; default-true → re-check, suspicious). - gate-pass conditional on input/context not reproducible here — record condition; candidate:
INDETERMINATE.
→ Recorded probe action, observed outcome, candidate classification.
If err: probe action errors (auth fail, network unreachable, wrong subcommand) → runtime prong unusable. Fix session or pick different probe action. Don't infer DARK from runtime that never ran.
Step 4: Inspect On-Disk State (Prong C — Config, Cache, Session)
Many harnesses persist gate evals or override values to disk. Inspecting shows what harness believed at last eval.
Common locations (shapes, not specific paths):
# User-level config
ls ~/.config/<harness>/ 2>/dev/null
ls ~/.<harness>/ 2>/dev/null
# Per-project state
ls .<harness>/ 2>/dev/null
# Cache directories
ls ~/.cache/<harness>/ 2>/dev/null
# Search any of these for the flag name
grep -r "$FLAG" ~/.config/<harness>/ ~/.cache/<harness>/ .<harness>/ 2>/dev/null
Record each hit's path, value w/ flag, last-modified time. Recently-modified cache entry overriding binary default = strongest possible evidence either way.
→ Confirmed override value w/ timestamp, OR confirmed absence (no on-disk state mentions flag).
If err: flag mentioned but can't tell if recorded value = cached server response, user override, or stale → flag entry for Step 5 (platform cache) reconciliation, don't guess.
Step 5: Inspect Platform Flag-Service Cache (Prong D)
If harness uses external flag service (LaunchDarkly, Statsig, GrowthBook, vendor-internal), locally-cached service response = authoritative current rollout state.
# Look for service-shaped cache files
find ~/.cache ~/.config -name "*flag*" -o -name "*feature*" -o -name "*config*" 2>/dev/null | head
# If a cache file is present, parse it for the flag name
jq ".[] | select(.key == \"$FLAG\")" ~/.cache/<harness>/flags.json 2>/dev/null
Record cached value, timestamp, TTL (if present). Platform cache false overrides binary default true; cache true overrides binary default false.
→ Definite cached value w/ timestamp, OR confirmed absence of flag-service cache.
If err: no flag-service or can't locate cache → prong contributes nothing. Note "Prong D: not applicable" in evidence table. Don't guess.
Step 6: Handle Conjunction Gates
Some capabilities guarded by multiple flags all true: gate("A") && gate("B") && gate("C"). Any one DARK → capability DARK, but per-flag classification still belongs to each.
# After finding the gate-call site for the primary flag in Step 2, scan the
# enclosing predicate for other gate(...) calls
grep -n -C 5 "$FLAG" "$BUNDLE" | grep -oE 'gate\("[^"]+"' | sort -u
Per co-gate string surfaced:
- Repeat Steps 1-5 for that flag (treat each as own probe)
- Record per-flag classification
- Compute capability-level classification: LIVE iff all conjuncts LIVE; DARK if any DARK; INDETERMINATE if no DARK + at least one INDETERMINATE.
→ Every conjunct ID'd + individually classified, plus derived capability-level classification.
If err: predicate too minified to enumerate (call site inlined or wrapped) → record "≥1 additional gate, structure unreadable", downgrade capability-level to INDETERMINATE even if primary looks LIVE.
Step 7: Check for Skill-Substitution
Flag may legitimately be DARK while user-facing capability reachable through different fully-supported route — different command, user-invocable skill, alternate API. Honest finding "flag DARK, capability LIVE via substitution" common + important; missing produces panicked dark-launch reports about capabilities users actually have.
For any DARK or INDETERMINATE candidate:
- Documented user-invokable command, slash command, skill delivering same outcome?
- Alternate API surface (different endpoint, tool name) returning equivalent data?
- Harness publishes user-facing extension point (plugins, custom tools, hooks) → users assemble equivalent themselves?
If yes to any → append substitution: note to evidence row recording alternate route + observability (how user reaches it, documented).
→ For every DARK/INDETERMINATE, explicit substitution check — route or "no substitution route identified."
If err: suspect substitution but can't confirm route → mark "substitution suspected; not confirmed" rather than asserting either way.
Step 8: Assemble Evidence Table + Final Classification
Combine 4 prongs → single table. Every state claim paired w/ supporting observation. Re-running at new version → diff-able artifact.
| Field | Value |
|---|---|
| Flag | acme_widget_v3 (synthetic placeholder) |
| Binary version | <version-id> |
| Probe date | YYYY-MM-DD |
| Prong A — strings | present (3 occurrences: 1 gate-call default=false, 2 telemetry) |
| Prong B — runtime | gate-pass not observed in capability list |
| Prong C — on-disk | no override found in ~/.config/<harness>/ |
| Prong D — platform cache | service cache absent / not applicable |
| Conjunction | none — single-gate predicate |
| Substitution | user-invokable widget slash command delivers equivalent UX |
| Final state | DARK (capability LIVE via substitution) |
Apply classification rules:
- LIVE — ≥1 prong observed gate-pass this session AND no prong contradicts.
- DARK — flag string present, gate-call default
false, no prong observed gate-pass, no override flips on. - INDETERMINATE — gate-pass conditional on input/context not reproducible, OR default unreadable, OR conjunct INDETERMINATE.
- UNKNOWN — string present but not used as gate (telemetry-only, string-table-only, env-var-only label).
Save table as probe artifact (e.g., probes/<flag>-<version>.md) → future probes diff against it.
→ Complete evidence table covering all 4 prongs, conjunction status, substitution status, single final classification.
If err: no prong yields usable signal (binary unreadable, runtime uninvocable, on-disk + platform cache both absent) → don't invent classification. Record INDETERMINATE w/ reason "no prong yielded signal" + stop.
Check
- Every state claim paired w/ specific observation (no bare assertions)
- Gate-call default value recorded (or explicitly noted as unreadable)
- Telemetry-event occurrences not counted as gate evidence
- Conjunction gates have per-flag + capability-level classifications
- Every DARK/INDETERMINATE row has explicit substitution check
- Artifact records binary version → diff-able
- No real product names, version-pinned IDs, dark-only flag names in publication artifacts (see
redact-for-public-disclosure)
Traps
- Conflate telemetry events w/ gates. String in
emit("$FLAG", ...)= label, not gate. Telemetry-only = no rollout state, classify UNKNOWN not DARK. - Skip Prong B (live invocation). Static evidence (binary says
default=false) ≠ runtime evidence (capability didn't appear). Flag w/ default-false in binary may be flipped true by server-side override; only runtime probe shows what session got. - Miss the conjunction. Classify primary LIVE because single occurrence shows
default=truewhile ignoring&& gate("B") && gate("C")→ falsely confident LIVE for capability gated by B or C. - Call DARK w/o substitution check. Many DARK genuinely unreachable; many have fully-supported user-invokable route. Substitution check turns "alarming dark-launch" into "honest finding."
- Probe stale binary. Artifact w/ no version stamp = useless. Always record version, diff future probes.
- Activate gate to confirm. Flipping flag to test = not part of this skill. Some dark gates off for safety (incomplete capability, regulatory hold, unfinished migration). Document; never bypass.
- Capture other users' state. Prong C + D inspect own state + cache. Reading another's cache = exfiltration, out of scope.
- Treat INDETERMINATE as failure. Not — honest classification when evidence partial. Forcing INDETERMINATE → LIVE/DARK to look decisive = fastest way to be wrong.
→
monitor-binary-version-baselines— Phase 1 of parent guide; marker tracking supplies candidate flag inventoryconduct-empirical-wire-capture— Phase 4; deeper runtime evidence (network capture, lifecycle hooks) when Prong B insufficientsecurity-audit-codebase— dark-launched code = attack-surface archaeology; this skill = discovery half of auditredact-for-public-disclosure— Phase 5; redaction discipline deciding which artifacts can leave private workspace
GitHub 저장소
연관 스킬
content-collections
메타이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.
polymarket
메타이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.
creating-opencode-plugins
메타이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.
sglang
메타SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.
