docs: add godoc for isAutonomousRole explaining autonomous roles
Explains that autonomous roles (polecat, witness, refinery, deacon) get automatic mail injection on startup since they operate without human prompting. Non-autonomous roles (mayor, crew) skip this. Closes: gt-pawy3
This commit is contained in:
@@ -84,6 +84,13 @@ func RunStartupFallback(t *tmux.Tmux, sessionID, role string, rc *config.Runtime
|
||||
return nil
|
||||
}
|
||||
|
||||
// isAutonomousRole returns true if the given role should automatically
|
||||
// inject mail check on startup. Autonomous roles (polecat, witness,
|
||||
// refinery, deacon) operate without human prompting and need mail injection
|
||||
// to receive work assignments.
|
||||
//
|
||||
// Non-autonomous roles (mayor, crew) are human-guided and should not
|
||||
// have automatic mail injection to avoid confusion.
|
||||
func isAutonomousRole(role string) bool {
|
||||
switch role {
|
||||
case "polecat", "witness", "refinery", "deacon":
|
||||
|
||||
Reference in New Issue
Block a user