From 59210cf07d5242678efa0b139e29c08ee6ab3a7a Mon Sep 17 00:00:00 2001 From: claude Date: Thu, 6 Aug 2026 01:42:12 +0400 Subject: [PATCH] config: applyDefaults reads as one list (V-410) Every normalise fills in one block and none of them reads another, so the blank lines between them were suggesting an order that does not exist. Grouped by what the block is instead: the surface, the schedule, the notify policy, the background loops, the reaches, the world. No arm was added, removed or moved past one it depends on. --- internal/config/config.go | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index 1179e54..819aec8 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -376,30 +376,22 @@ func (c *Config) applyDefaults() { } } + // Per-block defaults. Each normalise lives beside the struct it fills in, + // and none of them reads another block, so this is a list and not an order. + c.normaliseVoice() + c.normaliseRoutines() c.normaliseDigest() c.normalisePatternProposals() - c.normaliseMemoryEval() c.normaliseEmail() - - c.normaliseFeeds() - c.normaliseMCP() - c.normaliseSmartHome() - c.normaliseNetScan() - + c.normaliseFeeds() c.normaliseCrawl() - - c.normaliseKiwix() c.normaliseSearch() - + c.normaliseKiwix() c.normaliseWorkstation() - - c.normaliseVoice() - - c.normaliseRoutines() } func (c *Config) validate() error {