code: func (p *PolicyAuthorizer) AgentWrite(node string) bool {
  	// Check for an exact rule or catch-all
  	if rule, ok := getPolicy(node, p.agentRules); ok {
  		if allow, recurse := enforce(rule.(string), PolicyWrite); !recurse {
  			return allow
  		}
  	}
  
  	// No matching rule, use the parent.
  	return p.parent.AgentWrite(node)
  }
docs: // AgentWrite checks for permission to make changes via agent endpoints for a
  // given node.