
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 opposite sides of angles $A$, $B$, and $C$ are $a$, $b$, $c$, and the vectors $\overrightarrow{m}=({\cos C, \cos({\frac{\pi}{2}-B})})$, $\overrightarrow{n}=({\cos({-4\pi+B}), -\sin C})$, and $\overrightarrow{m} \cdot \overrightarrow{n}=-\frac{\sqrt{2}}{2}$. <br/>$(1)$ Find the measure of angle $A$; <br/>$(2)$ If the altitude on side $AC$ is $2$, $a=3$, find the perimeter of $\triangle ABC$.

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