The crew marks a duct section cleaned , but the photo index contains only its before photo. The same job records a rooftop fan as inaccessible . Both records need follow-up. One needs an after photo and the other needs an access plan.
Bind each photo to its system and component
Use the pair (systemId, componentId) as the scope key. Two kitchens can both have a HOOD-01 . Each photo ID resolves to one system, component, and capture phase. A reference to P-06 , the after photo for KITCHEN-B/HOOD-01 , fails when attached to KITCHEN-A/HOOD-01 . An unknown photo ID or a duplicate index entry also fails before the audit issues a queue.
System / component Reported status Attached photos Follow-up
KITCHEN-A/HOOD-01 cleaned P-01 before, P-02 after
KITCHEN-A/DUCT-02 cleaned P-03 before MISSING_AFTER_PHOTO
KITCHEN-A/ROOF-FAN-01 inaccessible P-04 before INACCESSIBLE
KITCHEN-B/HOOD-01 cleaned P-05 before, P-06 after
Freeze the follow-up queue for each audit
The fixture asks for both phases when a component is…