Skip to content

Implement config management with hot-reload and schema validation (fixes #122) - #147

Merged
elizabetheonoja-art merged 1 commit into
Utility-Protocol:mainfrom
obatimehinomowunmi7090:feat/122-config-management
Aug 29, 2026
Merged

Implement config management with hot-reload and schema validation (fixes #122)#147
elizabetheonoja-art merged 1 commit into
Utility-Protocol:mainfrom
obatimehinomowunmi7090:feat/122-config-management

Conversation

@obatimehinomowunmi7090

Copy link
Copy Markdown
Contributor

Adds an on-chain schema-validated config system with staged rollout and
community veto: register_config_schema, propose_config_change ->
veto_config_change -> apply_config_change (48h default staging window, 5% active-user veto threshold, mirrors the existing admin-transfer veto pattern), emergency_set_config_value (admin-only, still schema-validated), rollback_config_field (one-step), and get_config_version() as the change signal off-chain services can watch for hot-reload.

Delivers the on-chain half of the feature; off-chain file-watch hot-reload for usage-dashboard/meter-simulator is a follow-up. See CHANGES.md for full details.

Note: the utility_contracts crate currently fails to compile on main (205 pre-existing errors, unrelated to this change, verified against a clean checkout) -, only 8 additional warnings (deprecated env.events().publish(), same pattern already used throughout the existing codebase).

 Utility-Protocol#122)

Adds an on-chain schema-validated config system with staged rollout and
community veto: register_config_schema, propose_config_change ->
veto_config_change -> apply_config_change (48h default staging window,
5% active-user veto threshold, mirrors the existing admin-transfer veto
pattern), emergency_set_config_value (admin-only, still schema-validated),
rollback_config_field (one-step), and get_config_version() as the change
signal off-chain services can watch for hot-reload.

Delivers the on-chain half of the feature; off-chain file-watch hot-reload
for usage-dashboard/meter-simulator is a follow-up. See CHANGES.md for
full details.

Note: the utility_contracts crate currently fails to compile on main
(205 pre-existing errors, unrelated to this change, verified against a
clean checkout) - confirmed this PR adds 0 new errors, only 8 additional
warnings (deprecated env.events().publish(), same pattern already used
throughout the existing codebase).
@elizabetheonoja-art
elizabetheonoja-art merged commit a56d5a8 into Utility-Protocol:main Aug 29, 2026
7 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants