[*]Assuming both parties are close enough to trade beam fire, they're fighting in Striker-style air combat. They're running on 30-second turns, firing twice per turn; they may evade under Striker rules, gaining the agility defensive bonus.
[*]Spinal mounts are not available for in-atmosphere ship-to-ship combat: particle accelerators are out in the first place, and there's no way atmospheric buffeting is going to permit anything remotely like enough accuracy to manage a spinal meson shot against an evading target less than 40 Km off. Meson bays are available.
We have, today, the M1 tank, with a stabilized gun, computers, and sensors (lasers among other things), that can hurl a big, heavy, slow projectiles while moving, over terrain, and hit its target several kilometers away, over 90% of the time -- at night.
I know what the rules say, but there is no "evading" a light speed weapon at 40km. At 40km, a target flying at 1200MPH (Mach 2ish) moves 7cm before the weapon hits. The computer simply needs to figure out "where will the target be in 13/100,000ths of a second" to aim the gun mount. Not much time cognitively, lots of time for a computer.
An F-15 takes up roughly 0.0278 deg of "sky" at 40km. Which is to say, not a whole lot. An Azhanti High Lightning takes up 0.00005 deg of sky (a lot, lot less) at 300,000km (1 light second), which is well within range of many ship-to-ship weapons (not just spinals). Spinal weapon clearly have some ability to "tune" their attack when the weapon is "in arc" (which admittedly is limited), it's not just pointing the ship until the big + painted on the bridge window lines up with the target and the Captain slaps the big red FIRE button on his command chair. Also, Meson guns fall under the "close only counts for horseshoes, hand grenades, and atom bombs...and meson guns". So, it may well be limited, but there is definitely danger space in front of a spinal mount, even at close quarters.
So, through high tech gizmology and Imperial Science, ship weapons have truly staggering resolution. Once the gun mount locks on and tracks you, even for a second, you're toast. It's fair to argue that agility may affect the ability to gain lock, but frankly it's more a sensor task than anything else. Or it's a mount task (slow mounts more affected than fast mounts, but mostly in terms of how fast the gun can track). Again, at 1200MPH, at 40km, it's moving about .75 deg/sec. That's not very fast. Get closer and it gets more interesting, but far away? Turkey shoot.