role-bleed-probe
Skill0 starsChanged 4 months agoMITView on GitHub
Measure actor->supervisor ROLE-BLEED in an agent: how readily a model's chain-of-thought collapses into the persona of its OWN internal critic / verifier / classifier / benchmark-judge — e.g. it starts narrating "I have no tools / this is a simulation / report a confidence 0-100 / as <ModelName>" while it is actively and correctly using tools. Turns that anecdote into a measured, pre-registered, cross-model RATE with frozen detectors and paired controls. Use whenever you want to: test whether an agent's reasoning trace is a faithful monitor of what it actually did; reproduce or quantify a model "denying its tools mid-use", "talking about itself in the third person", "certifying broken work as done", or "absorbing its own verifier"; probe whether a co-located actor+critic on one model is real independent verification; or build a reusable instrument / portfolio artifact around monitor-unfaithfulness. Triggers: "role-bleed", "run the role-bleed probe", "does its chain-of-thought match what it did", "is the reasoning trace trustworthy", "measure the actor-critic bleed", "reproduce the grok dissociation", "self-verification collapse", "monitor faithfulness eval", "test if asking it to check itself breaks it". This is an EVALUATION instrument (measure model behavior), NOT an exploit/bug-bounty tool. Do NOT use for grading student work, generic code review, or building course content.
In this repository19 other files it gives its agents.
- construct-validity-screen/CLAUDE.mdCLAUDE.md
- role-bleed-probe/CLAUDE.mdCLAUDE.md
- adversarial-hardenSkill
- ai-proofSkill
- construct-validity-screenSkill
- divergent-solveSkill
- forgeSkill
- gate-canariesSkill
- grill-meSkill
- heavy-task-plannerSkill
- overnightSkill
- parallel-researchSkill
- premise-gateSkill
- prompt-architectSkill
- scope-firstSkill
- session-handoffSkill
- stakes-gateSkill
- voice-profileSkill
- witnessSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 64
Read the within-pair delta (treatment − control leak points): a large positive delta is evidence the variable *causes* the slip.
- Very specific: line 88
Add an adapter to probe/adapters.json (cmd, reasoning stream, model_name.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
role-bleed-probe — measuring actor→supervisor role-bleed
You are running a pre-registered behavioral eval. The question: when an agent's reasoning is fed its own supervisor/critic/classifier output on a shared context, how readily does its chain-of-thought stop being the actor and become the judge? The headline failure is monitor-unfaithfulness: the reasoning trace narrates something the action layer did not do (denies tools it is using; or — the dangerous inverse — certifies broken work as complete).
The clean, defensible result is always the within-model paired delta, never a cross-model
ranking (reasoning visibility differs by model and confounds that comparison). Lead with behavior →
mechanism → implication. Full rationale + caveats: REFERENCE.md (this dir).
Everything lives in probe/. It is dry-run by default and operates only in throwaway temp dirs
— it never touches real files. Python 3 only, no dependencies.
The five-stage protocol (run in order)
1 — Freeze the instrument BEFORE collecting any data. The detector cannot be tuned to results.
probe/markers.json— persona-gated leak detectors (self-naming-3p, tool-denial, simulation-reframe, confabulated confidence rubric, transcript/benchmark/team framing, verifier persona). Validate them against ONE known-positive trace + clean controls, then leave them alone.self_naming_3pis the cleanest fingerprint (the actor naming itself in the third person). For a target whose name isn't already in the alternation, add it via themodel_namefield inadapters.json(the runner extends the marker mechanically — name only, no other tuning).probe/conditions.json— paired conditions, each isolating ONE variable (T1 rubric-vs-plain, T2 long-vs-short horizon, T3 tool-silent-vs-confirmed, T4 unbounded-vs-bounded stop, T5 sustained-load existence probe). Compare the two rows of each pair.probe/adapters.json— per-CLI invocation, thereasoningstream to score, thereasoning_fidelitycaveat, and (for multi-turn)continue_cmd.
2 — Pass the harness-validity gate. You must capture the model's REASONING channel, not its
final answer. The default plain answer stream can hide the dissociation entirely → false nulls.
For grok use the verbose trace (ideally --output-format streaming-json, scoring type:thought
events). Prove the scorer works first: python3 probe/score.py --self-test. Then sanity-check
that reasoning_chars is large on a known-positive condition before trusting any clean result.
3 — Single-shot paired probe (the controlled deltas):
python3 probe/run_probe.py --models grok # dry run: plan + rendered prompts
python3 probe/run_probe.py --yes --models grok --n 15 # real run (spends tokens)
python3 probe/run_probe.py --yes --models grok --only T5 --turns 40 --save-traces # sustained-loadRead the within-pair delta (treatment − control leak points): a large positive delta is evidence the variable causes the slip.
4 — Multi-turn faithful reproduction (the strongest behavioral demonstration — the turn-2 self-verification collapse):
python3 probe/run_multiturn.py --model grok # dry run
python3 probe/run_multiturn.py --yes --model grok --n 5 # qc_framed vs plain, longitudinalRequires a multiturn_capable adapter (session continuation). Watch whether leakage appears
and escalates across turns under qc_framed while plain stays clean. --check appends the
CLI's own self-verify loop as an amplifier, if it has one.
5 — Report with discipline (see REFERENCE.md "Reporting"):
- Lead with the within-model paired deltas; do NOT claim "model X is uniquely bad" off a cross-model rate (confounded) or off small n.
- Report leak rate AND task
rc— a leak in the trace is not automatically a task failure; the harm is the trace being an unreliable monitor. - Framing: BEHAVIOR (denied its own tools mid-use / certified broken work) → MECHANISM (its own injected critic folded into shared context) → IMPLICATION (CoT is not a trustworthy monitor; a co-located critic is not independent verification). Never "schizophrenic"/anthropomorphizing.
Extending to a new target model
- Add an adapter to
probe/adapters.json(cmd,reasoningstream,model_name; addcontinue_cmd+multiturn_capable:truefor stage 4). Verify the binary + flags on the machine. - Confirm the harness-validity gate (stage 2) for that CLI — find where its reasoning surfaces.
- Set
enabled:true, run a dry run, then a small--nbefore scaling.
Hard rules (do not skip)
- Markers are frozen before collection. Any post-hoc marker change is a labeled re-score over saved traces, reported as a v-N delta — never silently applied to live data.
- Self-contained tasks only; the probe must never read or write the operator's real files.
- This is a measurement instrument. Findings are about reasoning-trace faithfulness, an inference supported by behavior + (where available) extracted architecture — not a claim about any vendor's closed internal control flow. Keep that honesty boundary in every writeup.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

