/bugfinding:correctness-oraclesfrom bugfinding
Guides executable correctness-oracle design from actual guarantees and observations. Use when a bugfinding harness checks only crashes, overlooks state effects, relies on an uncertain reference, or conflates skipped comparisons with successful checks, including JavaScript/TypeScript, Node and React harnesses that rely on process exit, unhandled rejections, uncaughtException, test-runner status, error boundaries, onRecoverableError, StrictMode, console errors or Playwright pageerror.
Ships in bugfinding. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Choose an observation that can refute the promised behavior. Specify what a successful check leaves untested: a count comparison, structural check and dependency witness observe different properties (NoREC implementation, SQLite integrity checks, Elle §4.3).
Read the target's enabled configuration, public producer and governing contract. Identify legal starting states, operation preconditions, permitted errors and the promised boundary: one operation, statement, transaction, recovery or observed history. In SQLite, ABORT undoes one statement, while a deferred foreign key is "not checked until the transaction tries to COMMIT" (SQLite ABORT, deferred foreign keys). Query effective settings when possible; SQLite's foreign-key setting, for example, "is a no-op within a transaction" (SQLite foreign_keys).
Write a concrete candidate observation before scaling search:
This is a compact design convention, not a required schema. Its purpose is to expose information lost by the proposed check; Elle's observation model shows why hidden dependencies cannot be recovered merely by generating more histories: blind register writes "destroy history" (Elle §§3–4.3). Read contract examples for worked boundaries.
In JavaScript, a process exit code, test-runner status or clean console is such an observation: its meaning depends on the effective mode, installed listeners, runner configuration and build. With an uncaughtException handler installed, Node's process "will exit with 0" unless the handler sets process.exitCode (Node process, uncaughtException). Read JavaScript observation channels for Node, test-runner, React and Playwright channels.
Trace how the expected value or invariant is obtained. Identify shared code and assumptions that could let target and checker agree on the same wrong answer. Prefer a justified abstract model, independently specified invariant or valid relation over a copied production algorithm. A second implementation is one option: SQLite's SQL Logic Test runs statements against several engines and checks "that they all get the same answers". A same-engine relation is another: SQLite reruns suites with optimizations disabled, and SQLancer's NoREC compares an optimized query with an unoptimized one (SQLite testing §2, §9, NoREC implementation).
Measure the information actually compared. Equal row counts do not establish row identity; a healthy integrity_check does not establish referential integrity, because it "does not find FOREIGN KEY errors". Preserve valid partial checks and add a complementary observation only when the target guarantee requires it (NoREC implementation, SQLite integrity checks). Read partial observations when choosing a reference, normalization or witness.
Derive the permitted post-state separately from the returned status. SQLite's ABORT and FAIL both return a constraint error, but ABORT backs out the failing statement while FAIL "does not back out prior changes of the SQL statement that failed". An error-only assertion can miss a wrong effect; a blanket rollback assertion can reject legal behavior (SQLite conflict policies).
Select an observer for the actual promise, with valid preconditions. For SQLite referential checks, use the applicable foreign-key observation, effective enforcement setting and legal NULL semantics; do not substitute a generic integrity result (SQLite foreign keys, foreign_key_check). These are worked contracts, not defaults for arbitrary APIs.
Distinguish evaluated properties from rejected inputs, expected errors, skipped checks and insufficient observations whenever that difference affects the conclusion. NoREC skips a comparison when either count is its -1 sentinel (for example, after an expected query error) rather than counting it as equality, and reports an unexpected error as a failure. Elle's completeness depends on recorded information, and "observations are rarely complete" (NoREC implementation, Elle §4.3).
Use harness-sensitivity to establish that the observation reaches and rejects a representative independently justified violation. Keep the raw witness for evidence-based-triage: Elle's own documentation recommends "checking reported anomalies by hand" rather than treating the label as final authority (Elle README). General search allocation belongs in bugfinding-campaign.
Route the chosen specialist reasoning to semantic-differential-testing, metamorphic-testing, linearizability-checking, transactional-history-testing, numerical-oracles, resource-complexity-testing or liveness-testing; this skill owns the contract-to-observation decision. Read common mistakes for misleading shortcuts.
Return the producer, cited guarantee, effective preconditions, executable observation and outcome interpretation, with a worked allowed/forbidden distinction. State what remains unobservable and what evidence must survive replay. A witnessed contradiction supports only the guarantee and assumptions actually checked (Elle §§4.3 and 9).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ctoth/computational-bugfinding-skills-plugin --plugin bugfinding26 skills in this plugin
/bounded-model-checkingGuides source-linked CBMC, JBMC and Kani checks with explicit input domains, unwind bounds and executable counterexamples. Use when finite hard paths or invariants merit solver search beyond fuzzing, or when interpreting bounded verification, vacuous success or counterexample playback./bugfinding-campaignGuides compute-budgeted bugfinding campaigns by finding gaps in existing generators, execution models and correctness oracles. Use when choosing what to test next, extending an established fuzzing setup, or deciding whether more compute will produce useful evidence./configuration-differential-testingOther plugins' skills for the same job