/janus:janusfrom Janus
Checks a contract hook against a host protocol's economic contract by declaring permitted observations, state changes, and asset movements at each threshold. Use when reviewing hooks for conformance beyond ABI compatibility.
Ships in Janus. 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.
Janus owns the hook-conformance frontier, not Hexaemeron's delivery or Solidity frontier. Its version, held target, next job, and maturity state live in EVOLUTION.md. Do not recommend or run another frontier pass after that ledger becomes mature.
Janus checks a contract hook at the host threshold it crosses: the observations and changes the host permits before and after the action, plus the state it must never touch.
Current frontier. Janus ships the Wildcat v2.5 host adapter and its seven gates against modeled hooks, and no second host adapter yet shows the manifest format holds for another callback model.
Pandects supplies economic laws when the host transition needs them. Hermes measures gas changes, and the Pashov suite audits the contracts. Janus alone owns the declared hook-effect boundary. Conformance to one manifest is not a whole-protocol security verdict.
Synkrisis is specified to compare validated agent-run observations, not to aggregate Janus conformance results into a safety claim. Its shipped findings cannot authorise a hook change.
Janus is named for the Roman god of gates and passages, shown looking in both directions. A hook sits on exactly that boundary and inspects or alters an action as it enters and leaves its host. An interface says which function runs. It does not say whether the hook may move value, write host state, consume all remaining gas, change an authorisation result, or leave a user unable to exit. That policy is otherwise spread across implementation code, comments, and the assumptions of whoever wrote the first hook, so a new module can satisfy the ABI and still break the host's economic contract.
A host adapter exposes a host's actions, the state that matters, and its economic roles. A hook manifest declares, in JSON checked against a schema:
unbound form with its reason.The host source names code, not a deployment. It makes no chain or block claim,
and it does not show that the host adapter models that code faithfully. The
validator refuses a binding with a missing, extra or abbreviated field (J016).
A stateful Foundry harness drives ordinary and hostile sequences through the adapter, records the real storage writes, call targets, value movements, and gas across each threshold, and compares the observed delta against the manifest. A deterministic unit mode runs the same checks over fixed sequences.
The comparison reads the manifest rather than a copy of it. A reader selects the threshold by action name, never by position, and resolves each permitted call, storage scope and value movement into concrete addresses through the host adapter's own name table, which is what the gates then enforce.
Three things about that resolution decide what a permit means, so they are stated rather than left to be discovered.
The account symbol of a call target or an external storage slot is the text
before the first .; the suffix is documentation and is never resolved. A
value movement's asset and recipient carry no suffix in the format, so
their whole string is the name and a dot inside it is part of that name. A dot
is an ordinary character in an account name, so where the adapter also answers
for a longer reading of the same string the manifest is ambiguous and the
reader refuses instead of choosing one.
Resolution is account-granular. A slot expression contributes only its account
and a function suffix contributes only its account, so a permit written at slot
or function granularity is enforced at whole-account granularity. Call kind is
the one dimension carried through, because a call and a delegatecall differ
in whose storage changes.
A staticcall entry admits nothing into the state-changing allowed set. Its
symbol must still resolve, so a misnamed read target aborts rather than
vanishing, but naming a read cannot widen what the hook may change.
Resolution fails closed throughout. An action the manifest does not carry, a duplicated action name, a symbol the adapter cannot resolve, a blank account symbol, and a resolution to the zero address each abort with a named error. The reader never returns a default or a shrunken set, because a permitted set that silently lost an entry would reject everything and read as a passing gate.
The harness is a Foundry project under harness/ with no external Solidity
dependency; it declares the minimal cheatcode interface it needs in
harness/src/Vm.sol. The validator and reporter sit in one stdlib Python
file, scripts/janus.py.
cd harness && forge build && forge test -vv
python3 ../scripts/janus.py validate manifests/*.json
python3 ../scripts/janus.py report --findings ../examples/findings.sample.json \
--md report.md --sarif report.sarif
Running the suite against a host adapter compiles and executes that host's modeled code in a local EVM. Treat a target repository as the user's, and obey its own instructions before writing anything into it.
If a build, a test, a validation, or a report did not run, say so plainly and do not describe its result.
janus.py validate establishes that each named hook manifest satisfies the shipped schema and enumerates the threshold, effects, rollback, gas and liveness fields the format requires.janus.py report renders the supplied finding records into Markdown and SARIF without adding, removing or strengthening a conformance result.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub wildcat-finance/skills --plugin janusOther plugins' skills for the same job