Centralized TOML configuration for the hero compute engine across development, testing, and production environments.
Find a file
Mahmoud Emad 38752ef36c
All checks were successful
Validate Config / verify-toml-validation (pull_request) Successful in 2s
Merge branch 'main' into development
2026-04-07 11:22:59 +00:00
.forgejo/workflows feat: added canary config 2026-04-01 17:39:47 +02:00
.taplo.toml feat: added canary config 2026-04-01 17:39:47 +02:00
canary.toml chore: update hero_compute to v0.1.4 2026-04-07 11:46:35 +02:00
config.schema.json feat: add [releases] section for binary installer 2026-04-06 13:08:46 +02:00
development.toml chore: bump hero_compute to v0.1.6 2026-04-07 11:15:25 +00:00
production.toml chore: update hero_compute to v0.1.4 2026-04-07 11:46:35 +02:00
README.md feat: added canary config 2026-04-01 17:39:47 +02:00
testing.toml chore: update hero_compute to v0.1.4 2026-04-07 11:46:35 +02:00

hero_compute_config

Central configuration for the hero compute engine across environments.

Structure

hero_compute_config/
├── development.toml          # Dev environment config
├── testing.toml              # Testing/QA config
├── canary.toml               # Canary config (production versions, restricted nodes)
├── production.toml           # Production config
├── config.schema.json        # JSON Schema for TOML validation
├── .taplo.toml               # Taplo config (links schema to TOML files)
└── .forgejo/workflows/
    └── validate.yaml         # CI to lint and validate TOML files

Config Format

All config files share the same schema:

version = "1"
environment = "development"  # development | testing | canary | production

[network]
explorer_addresses = ["tcp://explorer.hero.tf:9002"]
registry_url = "https://forge.ourworld.tf/lhumina_code/hero_compute_registry/raw/branch/main/images.toml"
mycelium_peers = [
    "tcp://188.40.132.242:9651",
]

[tuning]
heartbeat_interval_secs = 300
offline_threshold_secs = 600
monitor_interval_secs = 60

CI Validation

On every pull request to development or main, the CI workflow:

  1. Lints TOML formatting via taplo
  2. Validates TOML files against config.schema.json

Local Validation

Install taplo and run:

taplo fmt --check development.toml testing.toml canary.toml production.toml
taplo check development.toml testing.toml canary.toml production.toml