I tried to edit the post after I had posted it but I took too long and exceeded the 10 minute requirement so I apologise.
The “Roofed area” from what you described sounds like what’s known as the Talon (2 V Shaped sections on the bolt) and the spring is the curtain retainer which is used to centre the curtain keyhole to the case keyhole to assist key removal.
The detector works as follows:
The user throws the bolt with the key to lock it and leaves.
Let’s assume a well equipt thief chooses your lock, and either uses a pick or a false key.
One or more levers are lifted above the lever gate height and so lifting the detector lever with them, the detector lever is now retained by the detector spring in an upright position thereby blocking the bolt from passing through the gate, the thiefs further attempts at picking the lock are now rendered useless, the lock is now completely deadlocked, nothing other than the correct key or destruction will now open it.
The thief now has 2 options, leave and allow the lock to report it’s status to the owner or try to pick the lock to reset and leave or continue trying.
The thief leaves and later the owner returns, the owner tries his key but it doesn’t open the lock, this tells him that someone has been tampering with his lock.
The owner now turns the key in the lock in the locking direction (as though to lock it again) and the bolt stump moves into the far most gates on the levers.
This action allows the bolt to move forward (usually 2-3mm) which causes the ramp section at the rear of the bolt to raise the spring to release the detector from the upright position.
The lock is now reset and the owner can now unlock the lock as normal.
I would seriously advise you to seek an antique lock professional restorer to repair the lock, it might cost but you will get a quality result, a person taking on the task NEEDS to know what they are doing.
Just out of interest could you please post some more pics of the interior perhaps someone on here could point you in the right direction and even give you an estimate.
Thanks for sharing.
Kit