env_var_migration

env_var_migration is an agent for coding agents from hyperledger-iroha/iroha. It costs 0 tokens per session (1,532 once invoked), scanned A, original, Apache-2.0.

This tracker summarizes production-facing environment-variable toggles surfaced by docs/source/agents/envvarinventory.{json,md} and the intended migration path into irohaconfig (or explicit dev/test-only scoping).

Agent

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.

agentmods
npx agentmods add agents/hyperledger-iroha/iroha/env_var_migration
Clone the repo
git clone --depth 1 https://github.com/hyperledger-iroha/iroha

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 env_var_migration

README.md
[![agentmods](https://agentmods.dev/badge/agents/hyperledger-iroha/iroha/env_var_migration.svg)](https://agentmods.dev/agents/hyperledger-iroha/iroha/env_var_migration)
Your own site
<a href="https://agentmods.dev/agents/hyperledger-iroha/iroha/env_var_migration"><img src="https://agentmods.dev/badge/agents/hyperledger-iroha/iroha/env_var_migration.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,532 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01532
Opus 5 $0.00000 $0.00766
Sonnet 5 $0.00000 $0.00306
Haiku 4.5 $0.00000 $0.00153

Measured 2d ago against content hash c9ce6010594e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

env_var_migration 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 2d 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.

docs/source/agents/env_var_migration.md · 91 lines

How it starts

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

Env → Config Migration Tracker

This tracker summarizes production-facing environment-variable toggles surfaced by docs/source/agents/env_var_inventory.{json,md} and the intended migration path into iroha_config (or explicit dev/test-only scoping).

Note: ci/check_env_config_surface.sh now fails when new production env shims appear relative to AGENTS_BASE_REF unless ENV_CONFIG_GUARD_ALLOW=1 is set; document intentional additions here before using the override.

Completed migrations

  • IVM ABI opt-out — Removed IVM_ALLOW_NON_V1_ABI; the compiler now rejects non-v1 ABIs unconditionally with a unit test guarding the error path.
  • IVM debug banner env shim — Dropped the IVM_SUPPRESS_BANNER env opt-out; banner suppression remains available via the programmatic setter.
  • IVM cache/sizing — Threaded cache/prover/GPU sizing through iroha_config (pipeline.{cache_size,ivm_cache_max_decoded_ops,ivm_cache_max_bytes,ivm_prover_threads}, accel.max_gpus) and removed runtime env shims. Hosts now call ivm::ivm_cache::configure_limits and ivm::zk::set_prover_threads, tests use CacheLimitsGuard instead of env overrides.
  • Connect queue root — Added connect.queue.root (default: ~/.iroha/connect) to the client config and threaded it through the CLI and JS diagnostics. JS helpers resolve the config (or an explicit rootDir) and only honour IROHA_CONNECT_QUEUE_ROOT in dev/test via allowEnvOverride; templates document the knob so operators no longer need env overrides.
  • Izanami network opt-in — Added an explicit allow_net CLI/config flag for the Izanami chaos tool; runs now require allow_net=true/--allow-net and
  • IVM banner beep — Replaced the IROHA_BEEP env shim with config-driven ivm.banner.{show,beep} toggles (default: true/true). Startup banner/beep wiring now reads configuration only in production; dev/test builds still honour the env override for manual toggles.
  • DA spool override (tests only) — The IROHA_DA_SPOOL_DIR override is now fenced behind cfg(test) helpers; production code always sources the spool path from configuration.
  • Crypto intrinsics — Replaced IROHA_DISABLE_SM_INTRINSICS / IROHA_ENABLE_SM_INTRINSICS with the config-driven crypto.sm_intrinsics policy (auto/force-enable/force-disable) and removed the IROHA_SM_OPENSSL_PREVIEW guard. Hosts apply the policy at startup, benches/tests may opt in via CRYPTO_SM_INTRINSICS, and the OpenSSL preview now respects only the config flag. Izanami already requires --allow-net/persisted config, and tests now rely on that knob rather than ambient env toggles.
  • FastPQ GPU tuning — Added fastpq.metal.{max_in_flight,threadgroup_width,metal_trace,metal_debug_enum,metal_debug_fused} config knobs (defaults: None/None/false/false/false) and thread them through CLI parsing FASTPQ_METAL_* / FASTPQ_DEBUG_* shims now behave as dev/test fallbacks and are ignored once configuration loads (even when the config leaves them unset); docs/inventory were refreshed to flag the migration.【crates/irohad/src/main.rs:2609】【crates/iroha_core/src/fastpq/lane.rs:109】【crates/fastpq_prover/src/overrides.rs:11】 (IVM_DECODE_TRACE, IVM_DEBUG_WSV, IVM_DEBUG_COMPACT, IVM_DEBUG_INVALID, IVM_DEBUG_REGALLOC, IVM_DEBUG_METAL_ENUM, IVM_DEBUG_METAL_SELFTEST, IVM_FORCE_METAL_ENUM, IVM_FORCE_METAL_SELFTEST_FAIL, IVM_FORCE_CUDA_SELFTEST_FAIL, IVM_DISABLE_METAL, IVM_DISABLE_CUDA) are now gated behind debug/test builds via a shared helper so production binaries ignore them while preserving the knobs for local diagnostics. Env inventory was regenerated to reflect the dev/test-only scope.
  • FASTPQ fixture updatesFASTPQ_UPDATE_FIXTURES now appears only in FASTPQ integration tests; production sources no longer read the env toggle and the inventory reflects the test-only scope.
  • Inventory refresh + scope detection — The env inventory tooling now tags build.rs files as build scope and tracks #[cfg(test)]/integration harness modules so test-only toggles (e.g., IROHA_TEST_*, IROHA_RUN_IGNORED) and CUDA build flags show up outside the production count. Inventory regenerated Dec 07, 2025 (518 refs / 144 vars) to keep the env-config guard diff green.
  • P2P topology env shim release guardIROHA_P2P_TOPOLOGY_UPDATE_MS now triggers a deterministic startup error in release builds (warn-only in debug/test) so production nodes rely solely on network.peer_gossip_period_ms. The env inventory was regenerated to reflect the guard and the updated classifier now scopes cfg!-guarded toggles as debug/test.

Read the full file on GitHub · 91 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. 2d ago First seen · 91 lines · 0 tokens per session scan A c9ce6010594e

Subscribe to this mod's changes

env_var_migration is an agent published in the GitHub repository hyperledger-iroha/iroha (488 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,532 tokens. 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-09-01.