
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
In triangle $\triangle ABC$, the sides opposite to angles $A$, $B$, and $C$ are $a$, $b$, and $c$ respectively. If $\sin ^{2}A+\cos ^{2}B+\cos ^{2}C=2+\sin B\sin C$.<br/>$(1)$ Find the measure of angle $A$;<br/>$(2)$ If $a=3$, the angle bisector of $\angle BAC$ intersects $BC$ at point $D$, find the maximum length of segment $AD$.

Present the answer in LaTex format: \boxed{Your answer}
user