H.B. No. 917 amends Article 2A.105(b) of the Code of Criminal Procedure to allow district or county attorneys to serve as counsel in certain proceedings where they would otherwise be prohibited from acting adversely to the state. Specifically, the bill introduces a provision that permits these attorneys to serve as attorneys ad litem appointed under Chapter 262 of the Family Code, thereby expanding their ability to participate in legal matters involving family law while maintaining their obligations to the state.

The bill stipulates that the changes will only apply to offenses committed on or after its effective date of September 1, 2025. For offenses committed prior to this date, the existing law will remain in effect, ensuring that any legal proceedings related to those offenses are governed by the rules that were in place at the time of the offense. This transitional provision clarifies the application of the new law and protects the integrity of past legal proceedings.