"""Offline boolean configuration exercise. No keys or process environment are read."""
import json
def check(c):
    issues=[]
    if c["key_in_client_bundle"]:issues.append("Move credentials out of the browser bundle")
    if c["google_key_present"] and c["gemini_key_present"]:issues.append("Resolve the two-key ambiguity; GOOGLE_API_KEY takes precedence")
    if not c["google_key_present"] and not c["gemini_key_present"]:issues.append("No server key source was recorded")
    if not c["billing_reviewed"]:issues.append("Review project billing and ownership")
    return {"issues":issues,"credential_or_permission_verified":False,"requests_sent":0}
if __name__=="__main__":
    base={"key_in_client_bundle":False,"google_key_present":False,"gemini_key_present":True,"billing_reviewed":True}
    assert not check(base)["issues"]
    assert check(dict(base,key_in_client_bundle=True))["issues"]
    assert check(dict(base,google_key_present=True))["issues"]
    assert check(dict(base,billing_reviewed=False))["issues"]
    print(json.dumps({"passed":True,"cases":4,"requests_sent":0,"key_values_read":False},indent=2))
