consensus-tx-identity-invariants

consensus-tx-identity-invariants is a skill for Claude Code, Codex from PlamenTSV/plamen. It costs 26 tokens per session (723 once invoked), scanned A, original, MIT.

A security review for transaction and message identity in consensus systems, where every participating node must agree on the same results. It checks how transactions are uniquely identified and protected against replay.

In plain words
What is it for?
Use it when reviewing Go or Rust consensus code involving transaction IDs, hashes, nonces, sequences, signatures, message IDs, or signed envelopes.
Why use it?
It exposes cases where the same signed action could be reused, confused with another action, or treated differently across chains, forks, or system layers.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when reviewing Go or Rust consensus code involving transaction IDs, hashes, nonces, sequences, signatures, message IDs, or signed envelopes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/plamentsv/plamen/consensus-tx-identity-invariants
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PlamenTSV/plamen --skill consensus-tx-identity-invariants
Clone the repo
git clone --depth 1 https://github.com/PlamenTSV/plamen

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for consensus-tx-identity-invariants

README.md
[![agentmods](https://agentmods.dev/badge/skills/plamentsv/plamen/consensus-tx-identity-invariants/github.svg)](https://agentmods.dev/skills/plamentsv/plamen/consensus-tx-identity-invariants)
Your own site
<a href="https://agentmods.dev/skills/plamentsv/plamen/consensus-tx-identity-invariants"><img src="https://agentmods.dev/badge/skills/plamentsv/plamen/consensus-tx-identity-invariants/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for consensus-tx-identity-invariants

Your own site · 80×15
<a href="https://agentmods.dev/skills/plamentsv/plamen/consensus-tx-identity-invariants"><img src="https://agentmods.dev/badge/skills/plamentsv/plamen/consensus-tx-identity-invariants.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 723 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00723
Opus 5 $0.00013 $0.00362
Sonnet 5 $0.00005 $0.00145
Haiku 4.5 $0.00003 $0.00072

Measured 10d ago against content hash 58d28fd96a57, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

consensus-tx-identity-invariants scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/skills/injectable/l1/consensus-tx-identity-invariants/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Injectable Skill: Consensus Tx Identity Invariants

L1 trigger: CONSENSUS flag AND (txid, tx_hash, nonce, sequence, signature, message_id detected across modules) Inject Into: depth-consensus-invariant, depth-state-trace Language: Go and Rust Finding prefix: [TXI-N]

1. Identity Definition

Determine what uniquely identifies a transaction in each layer:

  • explicit nonce / sequence
  • hash of body
  • hash of signed payload
  • envelope ID distinct from execution payload ID

Tag: [TX-ID:DEFINITION]

2. Replay Protection

For every submission path, ask what value changes to prevent replay and whether it is monotonic, chain-bound, and sender-bound. Flag replay surfaces on the same chain, across forks, or across layers.

Write the answer as a table:

Tx Type Replay-unique field Sender-bound? Chain-bound? Expiry / bound

Tag: [TX-ID:REPLAY]

Mandatory enumeration:

  1. List every signed transaction/message type, not only system transactions: user transactions, system transactions, commitments, block-level commitments, gossip messages, admin/config messages, and any wrapper/envelope format.
  2. For each type, identify the replay guard: nonce, sequence, anchor, recent-block hash, expiry, chain ID, domain separator, or explicit consumed marker.
  3. If no per-sender or per-message replay guard exists, emit a finding. Do not accept "outer EVM signature has chain_id" as sufficient unless the inner payload identity and all consensus effects are also covered by that exact signature domain.
  4. Check same-chain replay, cross-fork replay, cross-layer replay, and re-inclusion after reorg separately.

3. ID / Signature Binding

Verify that the provided ID equals the hash of the signed content and that the signature covers the exact bytes later used for execution or persistence.

Questions:

  1. Is the ID recomputed by the verifier, or trusted from peer input?
  2. Does the signature sign the same bytes the ID is derived from?
  3. If the ID and signature are derived from different byte domains, can the content change while one of them stays stable?

Read the full file on GitHub · 86 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 86 lines · 26 tokens per session scan A 58d28fd96a57

Subscribe to this mod's changes

consensus-tx-identity-invariants is a skill published in the GitHub repository PlamenTSV/plamen (295 stars, last pushed 2d ago), licensed MIT. It adds 26 tokens to every session and 723 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.