The leader of the state’s new child-welfare agency proclaimed that a new era of openness and accountability has arrived. But the Attorney General’s Office contends a provision preventing it from giving legal advice could only spur more secrecy.