Problem
docs/ARCHITECTURE.md documents dual dispatch: main loop and handle_user_query() each enforce master-only lists (ask, markets, dna, send, 0x). Drift risk when new commands are added.
Goal
Single function, e.g. is_master_command(token) or assert_master_or_deny(user, cmd), used by both paths; unit tests for the matrix.
Acceptance criteria
Problem
docs/ARCHITECTURE.mddocuments dual dispatch: main loop andhandle_user_query()each enforce master-only lists (ask,markets,dna,send,0x). Drift risk when new commands are added.Goal
Single function, e.g.
is_master_command(token)orassert_master_or_deny(user, cmd), used by both paths; unit tests for the matrix.Acceptance criteria