myc

Self-custodial remote signer for Radroots apps
git clone https://radroots.dev/git/myc.git
Log | Files | Refs | README | LICENSE

commit 086ad6d47bebd68335cb2e39381658644b930aae
parent 7fb16206b66e2aab72609ff21cb4d3294baafebf
Author: triesap <tyson@radroots.org>
Date:   Wed, 25 Mar 2026 19:13:21 +0000

app: restore full validation green

- remove the panic edge from discovery refresh error hint reporting
- normalize the env config assertions to the repo formatter output
- restore a fully green root validation lane for metadata check test and fmt
- keep this slice limited to hygiene before delivery policy work begins

Diffstat:
Msrc/config.rs | 10+++++-----
Msrc/main.rs | 10++++++----
2 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/src/config.rs b/src/config.rs @@ -810,7 +810,10 @@ MYC_TRANSPORT_RELAYS=wss://relay.example.com,wss://relay2.example.com assert_eq!(config.service.instance_name, "myc-dev"); assert_eq!(config.logging.filter, "debug,myc=trace"); - assert_eq!(config.logging.output_dir, Some(PathBuf::from("/tmp/myc-logs"))); + assert_eq!( + config.logging.output_dir, + Some(PathBuf::from("/tmp/myc-logs")) + ); assert!(!config.logging.stdout); assert_eq!(config.paths.state_dir, PathBuf::from("/tmp/myc")); assert_eq!( @@ -960,10 +963,7 @@ MYC_UNKNOWN=nope assert_eq!(config.service.instance_name, "myc"); assert!(config.discovery.enabled); - assert_eq!( - config.discovery.domain.as_deref(), - Some("myc.radroots.org") - ); + assert_eq!(config.discovery.domain.as_deref(), Some("myc.radroots.org")); assert_eq!(config.discovery.handler_identifier, "myc"); assert_eq!( config.logging.output_dir, diff --git a/src/main.rs b/src/main.rs @@ -15,10 +15,12 @@ async fn main() { "attempt_id": attempt_id, "inspect_args": ["audit", "discovery-repair-attempt", "--attempt-id", attempt_id], }); - eprintln!( - "myc: discovery repair attempt json: {}", - serde_json::to_string(&hint).expect("discovery repair attempt hint json") - ); + match serde_json::to_string(&hint) { + Ok(value) => eprintln!("myc: discovery repair attempt json: {value}"), + Err(json_error) => eprintln!( + "myc: failed to serialize discovery repair attempt hint json: {json_error}" + ), + } } std::process::exit(1); }