You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dials and doors left without a caller after the one-worker removal: EnsurePersistedAPIKey, BriefAfter, and doctor's watchdog row #476
Filed under the WIP freeze from #329's dead-road sweep (PR #469, which removes runChat and its closure and does NOT touch these); one owner should decide all three the same way. Each guess is labelled as a guess.
1. config.EnsurePersistedAPIKey has no caller anywhere
Its only call site was inside the v2 chat window branch that #469 removes — and that branch was already unreachable on dev, so this is pre-existing. Guess: a person whose OPENROUTER_API_KEY lives only in their shell may get a background timer that cannot authenticate, because internal/standing/watch.go persists no key. Decide: wire it at the v3 seam that starts a timer, or delete it and document that a timer needs a saved key.
2. config.BriefAfter is a dial wired to nothing
The settings row "arrival brief after" exists (internal/tui3/settings.go ~line 516) and the manual documents it (internal/manual/chat/commands.md ~line 1470), but its only consumer was reconciler.SessionOpening(…, settings.BriefAfter) in the dead branch. Pre-existing. Decide: wire the dial into v3's session opening, or remove the row and the manual claim together (manual law).
3. Two watch systems, and aforge doctor reads the old one
aforge doctor reads internal/watchdog's Status, but nothing installs a timer through watchdog.Manager any more (that seam was WithStandingWatch, gone with the v2 brain); v3's timer is internal/standing. Pre-existing. Guess: doctor's "keeping watch" row reports on a system v3 does not use, so it can say "watching" or "not watching" about the wrong thing. Decide: point doctor at internal/standing, and retire internal/watchdog if nothing else reads it.
Related, parked separately
#412: internal/tui and internal/command's Commander lost their last production entry point (tui.RunWithCommander, head.New have zero callers after #469); CLAUDE.md calls them a different product in the same binary — the owner's call.
Acceptance
For each of the three: either a caller at the v3 seam with a test that exercises it, or removal with the manual/settings claim removed in the same PR. staticcheck -checks U1000 -tests=false ./... names none of the three afterwards.
Drafted with CodeAF · reviewed and owned by the author
Closed in the 2026-09-10 triage sweep — all three dials are decided. Verified at dev@95a0d0a9b: (1) config.EnsurePersistedAPIKey is gone from the tree entirely — deleted, which was one of the two options offered; (2) BriefAfter is live — a settings row (internal/config/settings.go:2098, key brief_after) read by config.Load at config.go:424, resolved by BriefAfterAt; (3) the doctor's watchdog is live on the leaf path (cmd/aforge/chat.go:545,686,988 via exec.WatchdogAbove, cmd/aforge/run.go:428). Nothing here is caller-less any more.
Activity
santoshkumarradha commentedon Sep 10, 2026
Closed in the 2026-09-10 triage sweep — all three dials are decided. Verified at dev@95a0d0a9b: (1)
config.EnsurePersistedAPIKeyis gone from the tree entirely — deleted, which was one of the two options offered; (2)BriefAfteris live — a settings row (internal/config/settings.go:2098, keybrief_after) read byconfig.Loadatconfig.go:424, resolved byBriefAfterAt; (3) the doctor's watchdog is live on the leaf path (cmd/aforge/chat.go:545,686,988viaexec.WatchdogAbove,cmd/aforge/run.go:428). Nothing here is caller-less any more.