[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73B7777Z64SN8MRSCQ7Z81J":3,"skill-same:01M73B7777Z64SN8MRSCQ7Z81J":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M73B7777Z64SN8MRSCQ7Z81J","probe-feature-flag-state",null,"Probe the runtime state of a named feature flag in a CLI binary. Covers the four-pronged evidence protocol (binary strings, live invocation, on-disk state, platform cache), the four-state classification (LIVE \u002F DARK \u002F INDETERMINATE \u002F UNKNOWN), gate-vs-event disambiguation, conjunction-gate handling, and skill-substitution scenarios where a flag appears DARK but the capability is delivered by other means. Use when verifying whether a documented or inferred capability has rolled out, when auditing dark-launched features, or when a prior probe's conclusions need refreshing against a new binary version.","roohe\u002Fagentic-super-skills","roohe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99054084?v=4","01M734WCDFP6RZVT5CNM00QR26","01M734WCE4BD0T4NZS5PCV9V5F",10,"MIT","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fprobe-feature-flag-state\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: probe-feature-flag-state\nlocale: caveman-lite\nsource_locale: en\nsource_commit: 82c77053\ntranslator: \"Julius Brussee homage — caveman\"\ntranslation_date: \"2026-04-19\"\ndescription: >\n  Probe the runtime state of a named feature flag in a CLI binary. Covers\n  the four-pronged evidence protocol (binary strings, live invocation,\n  on-disk state, platform cache), the four-state classification (LIVE \u002F\n  DARK \u002F INDETERMINATE \u002F UNKNOWN), gate-vs-event disambiguation,\n  conjunction-gate handling, and skill-substitution scenarios where a\n  flag appears DARK but the capability is delivered by other means. Use\n  when verifying whether a documented or inferred capability has rolled\n  out, when auditing dark-launched features, or when a prior probe's\n  conclusions need refreshing against a new binary version.\nlicense: MIT\nallowed-tools: Read Write Edit Bash Grep\nmetadata:\n  author: Philipp Thoss\n  version: \"1.0\"\n  domain: investigation\n  complexity: intermediate\n  language: multi\n  tags: reverse-engineering, feature-flags, dark-launch, classification, evidence\n---\n\n# Probe Feature-Flag State\n\nDetermine whether a named feature flag in a shipped CLI binary is LIVE, DARK, INDETERMINATE, or UNKNOWN, using a four-pronged evidence protocol that pairs every state claim with a specific observation.\n\n## When to Use\n\n- A capability is rumored, documented, or inferred and you need to verify whether the gate actually fires for the running session.\n- You are auditing dark-launched features — code that ships in the bundle but is gated off — to plan integrations responsibly.\n- A prior probe's conclusions need refreshing against a new binary version (the flag may have flipped, been removed, or been merged into a conjunction).\n- You are following up Phase 1 (`monitor-binary-version-baselines`) markers and need to classify each candidate flag's rollout state before moving to Phase 4 wire capture.\n- A user-visible behavior changed and you need to know whether a flag flip or a code change drove it.\n\n## Inputs\n\n- **Required**: the flag name as it appears in the binary (string-literal form).\n- **Required**: the CLI binary or bundle file you can read and invoke.\n- **Required**: an authenticated session against the harness's normal backend (your own account; never another user's).\n- **Optional**: the binary version identifier — strongly recommended so the evidence table is diff-able against future probes.\n- **Optional**: a list of suspected co-gates (other flag names that may participate in a conjunction with this one).\n- **Optional**: a prior probe artifact for the same flag at a different version, for delta analysis.\n\n## Procedure\n\n### Step 1: Confirm the Flag Name Is Present in the Binary (Prong A — Binary Strings)\n\nExtract the candidate flag name from the bundle to confirm it actually exists as a string literal. Without this, all later prongs are probing thin air.\n\n```bash\n# Locate the bundle (common shapes: .js, .mjs, .bun, packaged binary)\nBUNDLE=\u002Fpath\u002Fto\u002Fcli\u002Fbundle.js\nFLAG=acme_widget_v3   # synthetic placeholder — replace with the candidate\n\n# Confirm the literal exists\ngrep -c \"$FLAG\" \"$BUNDLE\"\n\n# Capture every line where it appears, with surrounding context for Step 2\ngrep -n -C 3 \"$FLAG\" \"$BUNDLE\" > \u002Ftmp\u002Fflag-context.txt\nwc -l \u002Ftmp\u002Fflag-context.txt\n```\n\nInspect `\u002Ftmp\u002Fflag-context.txt` and tag each occurrence as one of:\n\n- **gate-call** — appears as the first argument to a gate-shaped function (`gate(\"$FLAG\", default)`, `isEnabled(\"$FLAG\")`, `flag(\"$FLAG\", ...)`).\n- **telemetry-call** — appears as the first argument to an emit\u002Flog\u002Ftrack function.\n- **env-var-check** — appears in a `process.env.X` (or equivalent) lookup.\n- **string-table** — appears in a static map or registry whose role is unclear.\n\n**Got:** at least one occurrence of the flag string in the bundle, and each occurrence tagged with its call-site role.\n\n**If fail:** if `grep -c` returns 0, the flag is not in this build. Either the input name is wrong (typo, wrong namespace) or the flag was removed in this version. Re-check Phase 1 marker output, then either correct the input or classify as `REMOVED` and stop.\n\n### Step 2: Disambiguate Gate from Event from Env Var\n\nThe same string can appear as a gate, a telemetry event name, an env var, or all three. The classification depends on call-site, not on the string. Mistaking a telemetry name for a gate produces nonsense reasoning (\"this gate must be off\") about something that was never a gate.\n\nFor each tagged occurrence from Step 1:\n\n- A **gate-call** occurrence makes this string eligible for LIVE \u002F DARK \u002F INDETERMINATE classification. Capture the **default value** passed to the gate (`gate(\"$FLAG\", false)` defaults the flag to off; `gate(\"$FLAG\", true)` defaults it to on). Record both the literal default and the gate function name.\n- A **telemetry-call** occurrence does **not** make the string a gate. It is a label fired when some other gate has already passed. If the *only* occurrences are telemetry-call, the string is event-only and final classification is `UNKNOWN` (name present but not a gate).\n- An **env-var-check** occurrence usually indicates a kill switch (default-on capability disabled by an env var) or an explicit opt-in (default-off capability enabled by an env var). Note the polarity — `if (process.env.X) { return null; }` is a kill switch; `if (process.env.X) { enable(); }` is an opt-in.\n- A **string-table** occurrence must be cross-referenced — look at how the table is consumed downstream.\n\n**Got:** for every occurrence, a definite call-site role and (for gate-calls) the recorded default value.\n\n**If fail:** if a gate-call's surrounding context is too minified to read the default, expand the grep context (`-C 10`) and inspect the full callee. If the default still cannot be determined, record it as `default=?` and downgrade any LIVE\u002FDARK conclusion to INDETERMINATE.\n\n### Step 3: Observe Live Invocation Behavior (Prong B — Runtime Probe)\n\nRun the harness in an authenticated session you control and observe whether the gated capability surfaces. This is the single highest-signal prong: the bundle says what *can* happen, the runtime shows what *does* happen.\n\nPick a probe action that would reveal the gate-pass — typically the user-visible behavior the gate guards (a tool appearing in a tool list, a command flag becoming valid, a UI element rendering, an output field appearing in a response).\n\n```bash\n# Example shape — adapt to the harness\n$CLI --list-capabilities | grep -i widget         # does the gated capability appear?\n$CLI --help 2>&1 | grep -i \"$FLAG\"                # is a flag-related option exposed?\n$CLI run-some-command --debug 2>&1 | tee probe-runtime.log\n```\n\nRecord one of three outcomes:\n\n- **gate-pass observed** — the capability surfaced in the session. Classification candidate: `LIVE`.\n- **gate-pass not observed** — the capability did not surface. Classification candidate depends on the default from Step 2 (default-false → `DARK`; default-true → re-check, this is suspicious).\n- **gate-pass conditional on a specific input or context not reproducible here** — record the condition; classification candidate: `INDETERMINATE`.\n\n**Got:** a recorded probe action, the observed outcome, and the candidate classification it points to.\n\n**If fail:** if the probe action itself errors (auth failure, network unreachable, wrong subcommand), the runtime prong is unusable for this round. Fix the session or pick a different probe action; do not infer DARK from a runtime that never ran.\n\n### Step 4: Inspect On-Disk State (Prong C — Config, Cache, Session)\n\nMany harnesses persist gate evaluations or override values to disk so they need not be re-fetched. Inspecting this state shows what the harness believed about the flag at last evaluation.\n\nCommon locations (adapt to the harness — these are shapes, not specific paths):\n\n```bash\n# User-level config\nls ~\u002F.config\u002F\u003Charness>\u002F 2>\u002Fdev\u002Fnull\nls ~\u002F.\u003Charness>\u002F 2>\u002Fdev\u002Fnull\n\n# Per-project state\nls .\u003Charness>\u002F 2>\u002Fdev\u002Fnull\n\n# Cache directories\nls ~\u002F.cache\u002F\u003Charness>\u002F 2>\u002Fdev\u002Fnull\n\n# Search any of these for the flag name\ngrep -r \"$FLAG\" ~\u002F.config\u002F\u003Charness>\u002F ~\u002F.cache\u002F\u003Charness>\u002F .\u003Charness>\u002F 2>\u002Fdev\u002Fnull\n```\n\nRecord each hit's path, the value associated with the flag, and the file's last-modified time. A recently-modified cache entry overriding a binary default is the strongest possible evidence either way.\n\n**Got:** either a confirmed override value with timestamp, or a confirmed absence (no on-disk state mentions this flag).\n\n**If fail:** if you find the flag mentioned but cannot tell whether the recorded value is a cached server response, a user override, or a stale value, flag the entry for Step 5 (platform cache) reconciliation rather than guessing.\n\n### Step 5: Inspect Platform Flag-Service Cache (Prong D)\n\nIf the harness uses an external feature-flag service (LaunchDarkly, Statsig, GrowthBook, vendor-internal, etc.), the locally-cached service response is the authoritative current rollout state. Inspect it where available.\n\n```bash\n# Look for service-shaped cache files\nfind ~\u002F.cache ~\u002F.config -name \"*flag*\" -o -name \"*feature*\" -o -name \"*config*\" 2>\u002Fdev\u002Fnull | head\n\n# If a cache file is present, parse it for the flag name\njq \".[] | select(.key == \\\"$FLAG\\\")\" ~\u002F.cache\u002F\u003Charness>\u002Fflags.json 2>\u002Fdev\u002Fnull\n```\n\nRecord the cached value, the cache timestamp, and (if present) the cache TTL. A platform cache that says `false` overrides a binary default of `true`; a platform cache that says `true` overrides a binary default of `false`.\n\n**Got:** either a definite cached value with timestamp, or confirmed absence of a flag-service cache for this harness.\n\n**If fail:** if the harness has no flag-service or you cannot locate the cache, this prong contributes nothing — that is acceptable. Note \"Prong D: not applicable\" in the evidence table; do not guess.\n\n### Step 6: Handle Conjunction Gates\n\nSome capabilities are guarded by multiple flags that must all be true: `gate(\"A\") && gate(\"B\") && gate(\"C\")`. Any one being DARK is sufficient to make the capability DARK, but the per-flag classification still belongs to each flag individually.\n\n```bash\n# After finding the gate-call site for the primary flag in Step 2, scan the\n# enclosing predicate for other gate(...) calls\ngrep -n -C 5 \"$FLAG\" \"$BUNDLE\" | grep -oE 'gate\\(\"[^\"]+\"' | sort -u\n```\n\nFor each co-gate string surfaced:\n\n- Repeat Steps 1–5 for that flag (treat each as its own probe).\n- Record the per-flag classification.\n- Compute the **capability-level** classification: LIVE iff all conjuncts are LIVE; DARK if any conjunct is DARK; INDETERMINATE if no conjunct is DARK and at least one is INDETERMINATE.\n\n**Got:** every conjunct identified and individually classified, plus a derived capability-level classification.\n\n**If fail:** if the predicate is too minified to enumerate cleanly (call site is inlined or wrapped), record the conjunction as \"≥1 additional gate, structure unreadable\" and downgrade the capability-level classification to INDETERMINATE even if the primary flag looks LIVE.\n\n### Step 7: Check for Skill-Substitution\n\nA flag may legitimately be DARK while the user-facing capability it would unlock is reachable through a different, fully-supported route — a different command, a user-invocable skill, an alternate API. The honest finding \"flag DARK, capability LIVE via substitution\" is common and important; missing it produces panicked dark-launch reports about capabilities users actually have.\n\nFor any candidate classification of DARK or INDETERMINATE, ask:\n\n- Is there a documented user-invokable command, slash command, or skill that delivers the same end-user outcome?\n- Is there an alternate API surface (different endpoint, different tool name) that returns equivalent data?\n- Does the harness publish a user-facing extension point (plugins, custom tools, hooks) that allows users to assemble the equivalent themselves?\n\nIf yes to any, append a `substitution:` note to the evidence row recording the alternate route and its observability (how a user reaches it, whether it is documented).\n\n**Got:** for every DARK \u002F INDETERMINATE classification, an explicit substitution check — either the route, or the explicit note \"no substitution route identified.\"\n\n**If fail:** if you suspect a substitution exists but cannot confirm the route, mark \"substitution suspected; not confirmed\" rather than asserting either way.\n\n### Step 8: Assemble the Evidence Table and Final Classification\n\nCombine the four prongs into a single table. Every state claim must be paired with the observation that supports it; re-running the probe at a new version produces a diff-able artifact.\n\n| Field | Value |\n|---|---|\n| Flag | `acme_widget_v3` (synthetic placeholder) |\n| Binary version | `\u003Cversion-id>` |\n| Probe date | `YYYY-MM-DD` |\n| Prong A — strings | present (3 occurrences: 1 gate-call default=`false`, 2 telemetry) |\n| Prong B — runtime | gate-pass not observed in capability list |\n| Prong C — on-disk | no override found in `~\u002F.config\u002F\u003Charness>\u002F` |\n| Prong D — platform cache | service cache absent \u002F not applicable |\n| Conjunction | none — single-gate predicate |\n| Substitution | user-invokable `widget` slash command delivers equivalent UX |\n| **Final state** | **DARK (capability LIVE via substitution)** |\n\nApply the classification rules:\n\n- **LIVE** — at least one prong observed gate-pass this session AND no prong contradicts.\n- **DARK** — flag string present, gate-call default is `false`, no prong observed gate-pass, no override flips it on.\n- **INDETERMINATE** — gate-pass is conditional on an input or context not reproducible in this probe, OR the gate's default could not be determined, OR a conjunct is INDETERMINATE.\n- **UNKNOWN** — string present but not used as a gate (telemetry-only, string-table-only, env-var-only label).\n\nSave the table as a probe artifact (e.g., `probes\u002F\u003Cflag>-\u003Cversion>.md`) so future probes diff against it.\n\n**Got:** a complete evidence table covering all four prongs, conjunction status, substitution status, and a single final classification.\n\n**If fail:** if no prong yields a usable signal (binary cannot be read, runtime cannot be invoked, on-disk and platform cache both absent), do not invent a classification. Record `INDETERMINATE` with the reason \"no prong yielded signal\" and stop.\n\n## Validation\n\n- [ ] Every state claim in the evidence table is paired with a specific observation (no bare assertions).\n- [ ] The flag's gate-call default value is recorded (or explicitly noted as unreadable).\n- [ ] Telemetry-event occurrences are not counted as gate evidence.\n- [ ] Conjunction gates have per-flag classifications **and** a capability-level classification.\n- [ ] Every DARK \u002F INDETERMINATE row has an explicit substitution check.\n- [ ] The artifact records the binary version so future probes are diff-able.\n- [ ] No real product names, version-pinned identifiers, or dark-only flag names appear in any artifact intended for publication (see `redact-for-public-disclosure`).\n\n## Pitfalls\n\n- **Conflating telemetry events with gates.** A string that appears in `emit(\"$FLAG\", ...)` is a label, not a gate. A flag that is \"telemetry-only\" has no rollout state and should be classified UNKNOWN, not DARK.\n- **Skipping Prong B (live invocation).** Static evidence alone (the binary says `default=false`) is not the same as runtime evidence (the capability did not appear). A flag with default-false in the binary may be flipped to true by a server-side override; only the runtime probe shows what the session actually got.\n- **Missing the conjunction.** Classifying the primary flag as LIVE because its single occurrence shows `default=true` while ignoring the surrounding `&& gate(\"B\") && gate(\"C\")` produces a falsely confident LIVE for a capability that is actually gated by B or C.\n- **Calling DARK without a substitution check.** Many DARK flags are genuinely unreachable, but many others have a fully-supported user-invokable route. The substitution check is what turns \"alarming dark-launch\" into \"honest finding.\"\n- **Probing a stale binary version.** A probe artifact with no version stamp is useless — you cannot tell whether it reflects current state or last quarter's state. Always record the version, and diff future probes against the artifact.\n- **Activating the gate to confirm it.** Flipping a flag to test it is not part of this skill. Some dark gates are off for safety reasons (incomplete capability, regulatory hold, unfinished migration). Document; never bypass.\n- **Capturing other users' state.** Prong C and Prong D inspect *your own* on-disk state and *your own* cache. Reading another user's cache is exfiltration and is out of scope.\n- **Treating INDETERMINATE as a failure.** It is not — it is the honest classification when evidence is partial. Forcing INDETERMINATE results into LIVE or DARK to make the report look decisive is the fastest way to be wrong.\n\n## Related Skills\n\n- `monitor-binary-version-baselines` — Phase 1 of the parent guide; the marker tracking this skill builds on supplies the candidate flag inventory.\n- `conduct-empirical-wire-capture` — Phase 4; deeper runtime evidence (network capture, lifecycle hooks) when Prong B's surface-level probe is insufficient.\n- `security-audit-codebase` — dark-launched code is part of attack-surface archaeology; this skill is the discovery half of that audit.\n- `redact-for-public-disclosure` — Phase 5; the redaction discipline that decides which probe artifacts can leave the private workspace.\n","# Probe Feature-Flag State\n\nDetermine whether a named feature flag in a shipped CLI binary is LIVE, DARK, INDETERMINATE, or UNKNOWN, using a four-pronged evidence protocol that pairs every state claim with a specific observation.\n\n## When to Use\n\n- A capability is rumored, documented, or inferred and you need to verify whether the gate actually fires for the running session.\n- You are auditing dark-launched features — code that ships in the bundle but is gated off — to plan integrations responsibly.\n- A prior probe's conclusions need refreshing against a new binary version (the flag may have flipped, been removed, or been merged into a conjunction).\n- You are following up Phase 1 (`monitor-binary-version-baselines`) markers and need to classify each candidate flag's rollout state before moving to Phase 4 wire capture.\n- A user-visible behavior changed and you need to know whether a flag flip or a code change drove it.\n\n## Inputs\n\n- **Required**: the flag name as it appears in the binary (string-literal form).\n- **Required**: the CLI binary or bundle file you can read and invoke.\n- **Required**: an authenticated session against the harness's normal backend (your own account; never another user's).\n- **Optional**: the binary version identifier — strongly recommended so the evidence table is diff-able against future probes.\n- **Optional**: a list of suspected co-gates (other flag names that may participate in a conjunction with this one).\n- **Optional**: a prior probe artifact for the same flag at a different version, for delta analysis.\n\n## Procedure\n\n### Step 1: Confirm the Flag Name Is Present in the Binary (Prong A — Binary Strings)\n\nExtract the candidate flag name from the bundle to confirm it actually exists as a string literal. Without this, all later prongs are probing thin air.\n\n```bash\n# Locate the bundle (common shapes: .js, .mjs, .bun, packaged binary)\nBUNDLE=\u002Fpath\u002Fto\u002Fcli\u002Fbundle.js\nFLAG=acme_widget_v3   # synthetic placeholder — replace with the candidate\n\n# Confirm the literal exists\ngrep -c \"$FLAG\" \"$BUNDLE\"\n\n# Capture every line where it appears, with surrounding context for Step 2\ngrep -n -C 3 \"$FLAG\" \"$BUNDLE\" > \u002Ftmp\u002Fflag-context.txt\nwc -l \u002Ftmp\u002Fflag-context.txt\n```\n\nInspect `\u002Ftmp\u002Fflag-context.txt` and tag each occurrence as one of:\n\n- **gate-call** — appears as the first argument to a gate-shaped function (`gate(\"$FLAG\", default)`, `isEnabled(\"$FLAG\")`, `flag(\"$FLAG\", ...)`).\n- **telemetry-call** — appears as the first argument to an emit\u002Flog\u002Ftrack function.\n- **env-var-check** — appears in a `process.env.X` (or equivalent) lookup.\n- **string-table** — appears in a static map or registry whose role is unclear.\n\n**Got:** at least one occurrence of the flag string in the bundle, and each occurrence tagged with its call-site role.\n\n**If fail:** if `grep -c` returns 0, the flag is not in this build. Either the input name is wrong (typo, wrong namespace) or the flag was removed in this version. Re-check Phase 1 marker output, then either correct the input or classify as `REMOVED` and stop.\n\n### Step 2: Disambiguate Gate from Event from Env Var\n\nThe same string can appear as a gate, a telemetry event name, an env var, or all three. The classification depends on call-site, not on the string. Mistaking a telemetry name for a gate produces nonsense reasoning (\"this gate must be off\") about something that was never a gate.\n\nFor each tagged occurrence from Step 1:\n\n- A **gate-call** occurrence makes this string eligible for LIVE \u002F DARK \u002F INDETERMINATE classification. Capture the **default value** passed to the gate (`gate(\"$FLAG\", false)` defaults the flag to off; `gate(\"$FLAG\", true)` defaults it to on). Record both the literal default and the gate function name.\n- A **telemetry-call** occurrence does **not** make the string a gate. It is a label fired when some other gate has already passed. If the *only* occurrences are telemetry-call, the string is event-only and final classification is `UNKNOWN` (name present but not a gate).\n- An **env-var-check** occurrence usually indicates a kill switch (default-on capability disabled by an env var) or an explicit opt-in (default-off capability enabled by an env var). Note the polarity — `if (process.env.X) { return null; }` is a kill switch; `if (process.env.X) { enable(); }` is an opt-in.\n- A **string-table** occurrence must be cross-referenced — look at how the table is consumed downstream.\n\n**Got:** for every occurrence, a definite call-site role and (for gate-calls) the recorded default value.\n\n**If fail:** if a gate-call's surrounding context is too minified to read the default, expand the grep context (`-C 10`) and inspect the full callee. If the default still cannot be determined, record it as `default=?` and downgrade any LIVE\u002FDARK conclusion to INDETERMINATE.\n\n### Step 3: Observe Live Invocation Behavior (Prong B — Runtime Probe)\n\nRun the harness in an authenticated session you control and observe whether the gated capability surfaces. This is the single highest-signal prong: the bundle says what *can* happen, the runtime shows what *does* happen.\n\nPick a probe action that would reveal the gate-pass — typically the user-visible behavior the gate guards (a tool appearing in a tool list, a command flag becoming valid, a UI element rendering, an output field appearing in a response).\n\n```bash\n# Example shape — adapt to the harness\n$CLI --list-capabilities | grep -i widget         # does the gated capability appear?\n$CLI --help 2>&1 | grep -i \"$FLAG\"                # is a flag-related option exposed?\n$CLI run-some-command --debug 2>&1 | tee probe-runtime.log\n```\n\nRecord one of three outcomes:\n\n- **gate-pass observed** — the capability surfaced in the session. Classification candidate: `LIVE`.\n- **gate-pass not observed** — the capability did not surface. Classification candidate depends on the default from Step 2 (default-false → `DARK`; default-true → re-check, this is suspicious).\n- **gate-pass conditional on a specific input or context not reproducible here** — record the condition; classification candidate: `INDETERMINATE`.\n\n**Got:** a recorded probe action, the observed outcome, and the candidate classification it points to.\n\n**If fail:** if the probe action itself errors (auth failure, network unreachable, wrong subcommand), the runtime prong is unusable for this round. Fix the session or pick a different probe action; do not infer DARK from a runtime that never ran.\n\n### Step 4: Inspect On-Disk State (Prong C — Config, Cache, Session)\n\nMany harnesses persist gate evaluations or override values to disk so they need not be re-fetched. Inspecting this state shows what the harness believed about the flag at last evaluation.\n\nCommon locations (adapt to the harness — these are shapes, not specific paths):\n\n```bash\n# User-level config\nls ~\u002F.config\u002F\u003Charness>\u002F 2>\u002Fdev\u002Fnull\nls ~\u002F.\u003Charness>\u002F 2>\u002Fdev\u002Fnull\n\n# Per-project state\nls .\u003Charness>\u002F 2>\u002Fdev\u002Fnull\n\n# Cache directories\nls ~\u002F.cache\u002F\u003Charness>\u002F 2>\u002Fdev\u002Fnull\n\n# Search any of these for the flag name\ngrep -r \"$FLAG\" ~\u002F.config\u002F\u003Charness>\u002F ~\u002F.cache\u002F\u003Charness>\u002F .\u003Charness>\u002F 2>\u002Fdev\u002Fnull\n```\n\nRecord each hit's path, the value associated with the flag, and the file's last-modified time. A recently-modified cache entry overriding a binary default is the strongest possible evidence either way.\n\n**Got:** either a confirmed override value with timestamp, or a confirmed absence (no on-disk state mentions this flag).\n\n**If fail:** if you find the flag mentioned but cannot tell whether the recorded value is a cached server response, a user override, or a stale value, flag the entry for Step 5 (platform cache) reconciliation rather than guessing.\n\n### Step 5: Inspect Platform Flag-Service Cache (Prong D)\n\nIf the harness uses an external feature-flag service (LaunchDarkly, Statsig, GrowthBook, vendor-internal, etc.), the locally-cached service response is the authoritative current rollout state. Inspect it where available.\n\n```bash\n# Look for service-shaped cache files\nfind ~\u002F.cache ~\u002F.config -name \"*flag*\" -o -name \"*feature*\" -o -name \"*config*\" 2>\u002Fdev\u002Fnull | head\n\n# If a cache file is present, parse it for the flag name\njq \".[] | select(.key == \\\"$FLAG\\\")\" ~\u002F.cache\u002F\u003Charness>\u002Fflags.json 2>\u002Fdev\u002Fnull\n```\n\nRecord the cached value, the cache timestamp, and (if present) the cache TTL. A platform cache that says `false` overrides a binary default of `true`; a platform cache that says `true` overrides a binary default of `false`.\n\n**Got:** either a definite cached value with timestamp, or confirmed absence of a flag-service cache for this harness.\n\n**If fail:** if the harness has no flag-service or you cannot locate the cache, this prong contributes nothing — that is acceptable. Note \"Prong D: not applicable\" in the evidence table; do not guess.\n\n### Step 6: Handle Conjunction Gates\n\nSome capabilities are guarded by multiple flags that must all be true: `gate(\"A\") && gate(\"B\") && gate(\"C\")`. Any one being DARK is sufficient to make the capability DARK, but the per-flag classification still belongs to each flag individually.\n\n```bash\n# After finding the gate-call site for the primary flag in Step 2, scan the\n# enclosing predicate for other gate(...) calls\ngrep -n -C 5 \"$FLAG\" \"$BUNDLE\" | grep -oE 'gate\\(\"[^\"]+\"' | sort -u\n```\n\nFor each co-gate string surfaced:\n\n- Repeat Steps 1–5 for that flag (treat each as its own probe).\n- Record the per-flag classification.\n- Compute the **capability-level** classification: LIVE iff all conjuncts are LIVE; DARK if any conjunct is DARK; INDETERMINATE if no conjunct is DARK and at least one is INDETERMINATE.\n\n**Got:** every conjunct identified and individually classified, plus a derived capability-level classification.\n\n**If fail:** if the predicate is too minified to enumerate cleanly (call site is inlined or wrapped), record the conjunction as \"≥1 additional gate, structure unreadable\" and downgrade the capability-level classification to INDETERMINATE even if the primary flag looks LIVE.\n\n### Step 7: Check for Skill-Substitution\n\nA flag may legitimately be DARK while the user-facing capability it would unlock is reachable through a different, fully-supported route — a different command, a user-invocable skill, an alternate API. The honest finding \"flag DARK, capability LIVE via substitution\" is common and important; missing it produces panicked dark-launch reports about capabilities users actually have.\n\nFor any candidate classification of DARK or INDETERMINATE, ask:\n\n- Is there a documented user-invokable command, slash command, or skill that delivers the same end-user outcome?\n- Is there an alternate API surface (different endpoint, different tool name) that returns equivalent data?\n- Does the harness publish a user-facing extension point (plugins, custom tools, hooks) that allows users to assemble the equivalent themselves?\n\nIf yes to any, append a `substitution:` note to the evidence row recording the alternate route and its observability (how a user reaches it, whether it is documented).\n\n**Got:** for every DARK \u002F INDETERMINATE classification, an explicit substitution check — either the route, or the explicit note \"no substitution route identified.\"\n\n**If fail:** if you suspect a substitution exists but cannot confirm the route, mark \"substitution suspected; not confirmed\" rather than asserting either way.\n\n### Step 8: Assemble the Evidence Table and Final Classification\n\nCombine the four prongs into a single table. Every state claim must be paired with the observation that supports it; re-running the probe at a new version produces a diff-able artifact.\n\n| Field | Value |\n|---|---|\n| Flag | `acme_widget_v3` (synthetic placeholder) |\n| Binary version | `\u003Cversion-id>` |\n| Probe date | `YYYY-MM-DD` |\n| Prong A — strings | present (3 occurrences: 1 gate-call default=`false`, 2 telemetry) |\n| Prong B — runtime | gate-pass not observed in capability list |\n| Prong C — on-disk | no override found in `~\u002F.config\u002F\u003Charness>\u002F` |\n| Prong D — platform cache | service cache absent \u002F not applicable |\n| Conjunction | none — single-gate predicate |\n| Substitution | user-invokable `widget` slash command delivers equivalent UX |\n| **Final state** | **DARK (capability LIVE via substitution)** |\n\nApply the classification rules:\n\n- **LIVE** — at least one prong observed gate-pass this session AND no prong contradicts.\n- **DARK** — flag string present, gate-call default is `false`, no prong observed gate-pass, no override flips it on.\n- **INDETERMINATE** — gate-pass is conditional on an input or context not reproducible in this probe, OR the gate's default could not be determined, OR a conjunct is INDETERMINATE.\n- **UNKNOWN** — string present but not used as a gate (telemetry-only, string-table-only, env-var-only label).\n\nSave the table as a probe artifact (e.g., `probes\u002F\u003Cflag>-\u003Cversion>.md`) so future probes diff against it.\n\n**Got:** a complete evidence table covering all four prongs, conjunction status, substitution status, and a single final classification.\n\n**If fail:** if no prong yields a usable signal (binary cannot be read, runtime cannot be invoked, on-disk and platform cache both absent), do not invent a classification. Record `INDETERMINATE` with the reason \"no prong yielded signal\" and stop.\n\n## Validation\n\n- [ ] Every state claim in the evidence table is paired with a specific observation (no bare assertions).\n- [ ] The flag's gate-call default value is recorded (or explicitly noted as unreadable).\n- [ ] Telemetry-event occurrences are not counted as gate evidence.\n- [ ] Conjunction gates have per-flag classifications **and** a capability-level classification.\n- [ ] Every DARK \u002F INDETERMINATE row has an explicit substitution check.\n- [ ] The artifact records the binary version so future probes are diff-able.\n- [ ] No real product names, version-pinned identifiers, or dark-only flag names appear in any artifact intended for publication (see `redact-for-public-disclosure`).\n\n## Pitfalls\n\n- **Conflating telemetry events with gates.** A string that appears in `emit(\"$FLAG\", ...)` is a label, not a gate. A flag that is \"telemetry-only\" has no rollout state and should be classified UNKNOWN, not DARK.\n- **Skipping Prong B (live invocation).** Static evidence alone (the binary says `default=false`) is not the same as runtime evidence (the capability did not appear). A flag with default-false in the binary may be flipped to true by a server-side override; only the runtime probe shows what the session actually got.\n- **Missing the conjunction.** Classifying the primary flag as LIVE because its single occurrence shows `default=true` while ignoring the surrounding `&& gate(\"B\") && gate(\"C\")` produces a falsely confident LIVE for a capability that is actually gated by B or C.\n- **Calling DARK without a substitution check.** Many DARK flags are genuinely unreachable, but many others have a fully-supported user-invokable route. The substitution check is what turns \"alarming dark-launch\" into \"honest finding.\"\n- **Probing a stale binary version.** A probe artifact with no version stamp is useless — you cannot tell whether it reflects current state or last quarter's state. Always record the version, and diff future probes against the artifact.\n- **Activating the gate to confirm it.** Flipping a flag to test it is not part of this skill. Some dark gates are off for safety reasons (incomplete capability, regulatory hold, unfinished migration). Document; never bypass.\n- **Capturing other users' state.** Prong C and Prong D inspect *your own* on-disk state and *your own* cache. Reading another user's cache is exfiltration and is out of scope.\n- **Treating INDETERMINATE as a failure.** It is not — it is the honest classification when evidence is partial. Forcing INDETERMINATE results into LIVE or DARK to make the report look decisive is the fastest way to be wrong.\n\n## Related Skills\n\n- `monitor-binary-version-baselines` — Phase 1 of the parent guide; the marker tracking this skill builds on supplies the candidate flag inventory.\n- `conduct-empirical-wire-capture` — Phase 4; deeper runtime evidence (network capture, lifecycle hooks) when Prong B's surface-level probe is insufficient.\n- `security-audit-codebase` — dark-launched code is part of attack-surface archaeology; this skill is the discovery half of that audit.\n- `redact-for-public-disclosure` — Phase 5; the redaction discipline that decides which probe artifacts can leave the private workspace.\n",{"name":5,"locale":23,"license":14,"metadata":24,"translator":31,"description":32,"allowed-tools":33,"source_commit":34,"source_locale":35,"translation_date":36},"caveman-lite",{"tags":25,"author":26,"domain":27,"version":28,"language":29,"complexity":30},"reverse-engineering, feature-flags, dark-launch, classification, evidence","Philipp Thoss","investigation","1.0","multi","intermediate","Julius Brussee homage — caveman","Probe the runtime state of a named feature flag in a CLI binary. Covers the four-pronged evidence protocol (binary strings, live invocation, on-disk state, platform cache), the four-state classification (LIVE \u002F DARK \u002F INDETERMINATE \u002F UNKNOWN), gate-vs-event disambiguation, conjunction-gate handling, and skill-substitution scenarios where a flag appears DARK but the capability is delivered by other means. Use when verifying whether a documented or inferred capability has rolled out, when auditing dark-launched features, or when a prior probe's conclusions need refreshing against a new binary version.\n","Read Write Edit Bash Grep","82c77053","en","2026-04-19","master","f483e54f3ad5f202a77d45f2e57f8d970b71195f","skills_library\u002Fprobe-feature-flag-state",2,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills","https:\u002F\u002Fgithub.com\u002Froohe","yoou.link","2026-05-19 15:56:07",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add roohe\u002Fagentic-super-skills --skill probe-feature-flag-state",{"tool":51,"command":52},"bunx","bunx skills add roohe\u002Fagentic-super-skills --skill probe-feature-flag-state",{"tool":54,"command":55},"pnpm","pnpm dlx skills add roohe\u002Fagentic-super-skills --skill probe-feature-flag-state","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fprobe-feature-flag-state\u002FSKILL.md",true,[],[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M73D865CZME2FCMKA4PQM348","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M73D7Z64J4ABWZJD7P44XBBF","youtube-downloader","Download and process YouTube content for research. Use when: downloading competitor videos for analysis; extracting audio for podcasts; getting transcripts for content repurposing; archiving webinars; research content curation","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyoutube-downloader\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M73D7K8778TGZV3GJFR3703D","yc-pitch-deck","Create a compelling startup pitch deck that follows the structure proven to raise billions from top investors. Master the YC and Sequoia formats that get founders funded. Use when: **Fundraising** to create investor pitch decks; **YC application** to structure your narrative; **Demo Day prep** to craft your 2-minute pitch; **Angel investors** to communicate your opportunity; **Partnership pitches** to structure compelling asks","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyc-pitch-deck\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M73D70KJSE0E8Z28YMNNRT04","x-twitter-scraper","Use when the user needs X (Twitter) data or confirmation-gated X actions through Xquik: tweet search, user lookup, follower extraction, media download, monitoring, webhooks, MCP, SDKs, posting, likes, DMs, and profile updates. Requires a Xquik API key. Never ask for X login material.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fx-twitter-scraper\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M73D6ED01GV077R7K4NZNFZJ","write-vignette","Create R package vignettes using R Markdown or Quarto. Covers vignette setup, YAML configuration, code chunk options, building and testing, and CRAN requirements for vignettes. Use when adding a Getting Started tutorial, documenting complex workflows spanning multiple functions, creating domain-specific guides, or when CRAN submission requires user-facing documentation beyond function help pages.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-vignette\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M73D69YJR0BK3NFHE0CYG3EF","write-validation-documentation","Write IQ\u002FOQ\u002FPQ validation documentation for computerized systems in regulated environments. Covers protocols, reports, test scripts, deviation handling, and approval workflows. Use when validating R or other software for regulated use, preparing for a regulatory audit, documenting qualification of computing environments, or creating and updating validation protocols and reports for new or re-qualified systems.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-validation-documentation\u002FSKILL.md",[],[]]