with open('/sessions/hopeful-clever-allen/mnt/kokoro/backend/routes/api.php', 'r') as f:
 lines = f.readlines()

result = list(lines)
offset = 0
for i in range(len(lines)):
 stripped = lines[i].strip()
 if stripped == '/*' and i+3 < len(lines):
 n1 = lines[i+1].strip()
 n2 = lines[i+2].strip()
 if '|--------------------------------------------------------------' in n1 and n2 == '*/':
 result.insert(i + 2 + offset, ' | Admin — rider verification now, the rest in Phase 10\n')
 offset += 1

with open('/sessions/hopeful-clever-allen/mnt/kokoro/backend/routes/api.php', 'w') as f:
 f.writelines(result)
print('Fixed comment blocks')
