env_var_migration.ka

env_var_migration.ka is an agent for coding agents from hyperledger-iroha/iroha. It costs 0 tokens per session (2,419 once invoked), scanned A, a copy of env_var_migration.am, Apache-2.0.

A tracker for moving production environment-variable switches into the project's configuration system, while recording cases that should remain limited to development or tests.

In plain words
What is it for?
It is for planning and recording environment-variable migrations, documenting completed moves, and tracking checks that guard the configuration surface.
Why use it?
It helps prevent configuration changes from being hidden in environment-variable shims and makes intentional additions visible to the team.

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.ka
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.ka

README.md
[![agentmods](https://agentmods.dev/badge/agents/hyperledger-iroha/iroha/env_var_migration.ka.svg)](https://agentmods.dev/agents/hyperledger-iroha/iroha/env_var_migration.ka)
Your own site
<a href="https://agentmods.dev/agents/hyperledger-iroha/iroha/env_var_migration.ka"><img src="https://agentmods.dev/badge/agents/hyperledger-iroha/iroha/env_var_migration.ka.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 2,419 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 88% copy Near-identical to another mod 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.02419
Opus 5 $0.00000 $0.01210
Sonnet 5 $0.00000 $0.00484
Haiku 4.5 $0.00000 $0.00242

Measured 3d ago against content hash 0a1f1241c9b1, 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.ka 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 3d 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.

Origin

This is a copy

88% identical to env_var_migration.am — 152 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

docs/source/agents/env_var_migration.ka.md · 99 lines

How it starts

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

Env → Config Migration Tracker

ეს ტრეკერი აჯამებს წარმოების წინაშე მყოფი გარემოს ცვლადი გადამრთველებს docs/source/agents/env_var_inventory.{json,md}-ით და განზრახ მიგრაცია გზა iroha_config-ში (ან მკაფიო დეველ/მხოლოდ ტესტის სკოპინგი).

შენიშვნა: ci/check_env_config_surface.sh ახლა მარცხდება, როდესაც ახალი წარმოება env შიმები გამოჩნდება AGENTS_BASE_REF-თან შედარებით, თუ ENV_CONFIG_GUARD_ALLOW=1 არ არის კომპლექტი; დააფიქსირეთ მიზანმიმართული დამატებები აქ, სანამ გამოიყენებდეთ უგულებელყოფას.

დასრულებული მიგრაცია- IVM ABI უარის თქმა — ამოღებულია IVM_ALLOW_NON_V1_ABI; შემდგენელი ახლა უარყოფს

არა-v1 ABI-ები უპირობოდ ერთეულის ტესტით, რომელიც იცავს შეცდომის გზას.

  • IVM გამართვის ბანერი env shim — გაუქმდა IVM_SUPPRESS_BANNER env უარის თქმა; ბანერის ჩახშობა ხელმისაწვდომი რჩება პროგრამული სეტერის საშუალებით.
  • IVM ქეში/ზომა — ხრახნიანი ქეში/პროვერი/GPU-ის ზომის განსაზღვრა iroha_config (pipeline.{cache_size,ivm_cache_max_decoded_ops,ivm_cache_max_bytes,ivm_prover_threads}, accel.max_gpus) და ამოიღეს Runtime env shims. მასპინძლები ახლა დარეკავენ ivm::ivm_cache::configure_limits და ivm::zk::set_prover_threads, ტესტების გამოყენება CacheLimitsGuard env-ის ნაცვლად უგულებელყოფს.
  • ** რიგის ფესვის დაკავშირება ** — დამატებულია connect.queue.root (ნაგულისხმევი: ~/.iroha/connect) კლიენტის კონფიგურაციაში და გადაიტანეთ იგი CLI-ში და JS დიაგნოსტიკა. JS დამხმარეები წყვეტენ კონფიგურაციას (ან აშკარა rootDir) და მხოლოდ პატივი სცეს IROHA_CONNECT_QUEUE_ROOT დეველ/ტესტში allowEnvOverride-ის მეშვეობით; შაბლონები აფიქსირებენ ღილაკს, რათა ოპერატორებს აღარ დასჭირდეთ env გადაფარვები.
  • Izanami ქსელის ჩართვა — დამატებულია აშკარა allow_net CLI/კონფიგურაციის დროშა Izanami ქაოსის ინსტრუმენტი; ახლა გაშვებას მოითხოვს allow_net=true/--allow-net და
  • IVM ბანერის სიგნალი — ჩაანაცვლა IROHA_BEEP env shim კონფიგურაციით ivm.banner.{show,beep} გადართავს (ნაგულისხმევი: true/true). გაშვების ბანერი / სიგნალი გაყვანილობა ახლა კითხულობს კონფიგურაციას მხოლოდ წარმოებაში; dev/test builds still honor env უგულებელყოფა ხელით გადართვისთვის.
  • DA spool override (მხოლოდ ტესტები)IROHA_DA_SPOOL_DIR გადაფარვა არის ახლა შემოღობილი cfg(test) დამხმარეების უკან; წარმოების კოდი ყოველთვის იღებს კოჭას გზა კონფიგურაციისგან.
  • კრიპტო ინტრინსიკა — შეიცვალა IROHA_DISABLE_SM_INTRINSICS / IROHA_ENABLE_SM_INTRINSICS კონფიგურაციით crypto.sm_intrinsics პოლიტიკა (auto/force-enable/force-disable) და ამოიღო IROHA_SM_OPENSSL_PREVIEW მცველი. მასპინძლები იყენებენ პოლიტიკას მისამართზე გაშვება, სკამები/ტესტები შეიძლება აირჩიონ CRYPTO_SM_INTRINSICS-ით და OpenSSL-ით გადახედვა ახლა პატივს სცემს მხოლოდ კონფიგურაციის დროშას. Izanami უკვე მოითხოვს --allow-net/გაგრძელებულ კონფიგურაციას და ტესტები ახლა ეყრდნობა ეს ღილაკი, ვიდრე ambient env გადართავს.
  • FastPQ GPU tuning — დამატებულია fastpq.metal.{max_in_flight,threadgroup_width,metal_trace,metal_debug_enum,metal_debug_fused} კონფიგურაციის სახელურები (ნაგულისხმევი: None/None/false/false/false) და გადაიტანეთ ისინი CLI ანალიზში FASTPQ_METAL_* / FASTPQ_DEBUG_* shims ახლა იქცევა როგორც დეველ/ტესტი სარეზერვო და იგნორირებულია კონფიგურაციის ჩატვირთვის შემდეგ (მაშინაც კი, როდესაც კონფიგურაცია ტოვებს მათ დაყენებულს); დოკუმენტები/ინვენტარი იყო განახლებულია მიგრაციის დროშისთვის.【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) ახლა გამართულია გამართვის/ტესტის კონსტრუქციების უკან გაზიარებული ვერსიით დამხმარე, ასე რომ, წარმოების ორობითი ფაილები უგულებელყოფენ მათ, ხოლო კლავიშების შენარჩუნებას ადგილობრივი დიაგნოსტიკისთვის. ენვ ინვენტარი განახლდა, რათა ასახავდეს მხოლოდ დეველოპმენტის/ტესტის სფეროს.- FASTPQ მოწყობილობების განახლებებიFASTPQ_UPDATE_FIXTURES ახლა მხოლოდ FASTPQ ინტეგრაციაში ჩანს ტესტები; წარმოების წყაროები აღარ კითხულობენ env გადართვას და ინვენტარი ასახავს მხოლოდ ტესტს ფარგლები.
  • ინვენტარის განახლება + ფარგლების ამოცნობა — env ინვენტარის ხელსაწყოები ახლა აწერს build.rs ფაილებს, როგორც შექმენით ფარგლები და თვალყური ადევნეთ #[cfg(test)]/ინტეგრაციის აღკაზმულობის მოდულებს, რათა გადართეთ მხოლოდ ტესტისთვის (მაგ. IROHA_TEST_*, IROHA_RUN_IGNORED) და CUDA build დროშები გამოჩნდება წარმოების რაოდენობის მიღმა. ინვენტარი რეგენერირებულია 2025 წლის 7 დეკემბერს (518 refs / 144 vars), რათა შეინარჩუნოს env-config მცველის განსხვავება მწვანე.
  • P2P ტოპოლოგია env shim გამოშვების მცველიIROHA_P2P_TOPOLOGY_UPDATE_MS ახლა იწვევს დეტერმინისტულ გაშვების შეცდომა გამოშვების ნაგებობებში (მხოლოდ გაფრთხილება გამართვის/ტესტის დროს), ამიტომ წარმოების კვანძები მხოლოდ ეყრდნობიან network.peer_gossip_period_ms. env ინვენტარი რეგენერირებული იყო მცველისა და ასახვის მიზნით განახლებული კლასიფიკატორი ახლა ახორციელებს cfg!-დაცვით გადართვას, როგორც გამართვა/ტესტი.

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

Subscribe to this mod's changes

env_var_migration.ka 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 2,419 tokens. A static security scan graded it A with 0 findings. It is 88% identical to env_var_migration.am, differing in 152 lines, and is treated as a copy.