Skip to content

Chapter 22J — ARTIFICIAL INTELLIGENCE TOOLS

San Francisco Administrative Code · 2025 edition · updated 2026-07-25 · San Francisco

Sec. 22J.1. Background and Findings.

Sec. 22J.2. Definitions.

Sec. 22J.3. Roles and Responsibilities.

Sec. 22J.4. Enforcement.

Sec. 22J.5. Promotion of the General Welfare.

SEC. 22J.1. BACKGROUND AND FINDINGS.

(a) Many technologists, historians, scientists, elected officials, and other societal leaders believe that the advent of Artificial Intelligence that has advanced significantly with the release of generative systems is revolutionizing, and will continue to revolutionize, our world.

(b) Local governments have been using AI products since the early 1990s. However, beginning in the 2010s, significant advancements in AI technology, including machine and deep learning, led to a surge in acquisition of various products by local governments. With the advent of Generative AI products like Chat GPT and others that produce original content, the potential benefits and risks to San Francisco residents and workers have increased.

(c) Policymakers are trying to avoid repeating past mistakes with technological developments, like the failure to regulate social media before it led to many societal harms, and find ways to protect human beings from the worst predictable problems of this newest wave of technological advancement.

(d) While the City government, as with all levels of government, continues to develop the best tools for the City to both harness the benefits and protect against the harms of emerging AI technology, it is important that policymakers and the public understand the AI technologies the City is using and will use in the future.

(e) The City has a decentralized Information Technology (IT) system. Most City departments have their own IT units and as of 2024 the City’s Department of Technology (“DT”) did not generally know which AI products and systems were in use by departments.

(f) This Chapter 22J remedies this problem by requiring the City’s Chief Information Officer (“CIO”) to create a public inventory of AI technologies used within City government. The inventory will include basic facts about technologies including their purpose, accuracy, biases, and limits.

(g) As of 2024, the City used AI technologies in a variety of ways. Here are just a few illustrative examples:

(1) The Department of Technology used AI to review activity on IT infrastructure for network security, intrusion detection, and to identify other potential cybersecurity threats.

(2) The SF311 mobile application used AI to make upfront service type recommendations based on the user’s description or picture of the issue. A model had been trained on years of service request (SR) data.

(3) The Department of Public Health (DPH) Radiology Department used an AI-based medical imaging tool to support the confirmatory diagnosis of cerebrovascular events (strokes). The AI system reviewed imaging studies (CT scans) and provided supporting information to the physicians who

make the diagnoses.

(h) The use of AI technologies by local governments can offer many benefits including but not limited to increased efficiency and effectiveness of public services, quick and accurate analysis of large volumes of data, automation of routine administrative tasks, facilitation of communication between residents and their local government through chatbots and virtual assistants, and prediction of potential hazards.

AI technologies by local governments can offer many benefits including but not limited to increased efficiency and effectiveness of public services, quick and accurate analysis of large volumes of data, automation of routine administrative tasks, facilitation of communication between residents and their local government through chatbots and virtual assistants, and prediction of potential hazards.

(i) However, with the increased use of AI technologies, local governments also potentially subject their workers, residents, and visitors to new risks, including:

(1) Privacy Concerns: AI systems often collect, store, and analyze vast amounts of data, which can include personal information of individuals. This raises concerns about privacy breaches, unauthorized data sharing, and surveillance, potentially leading to a loss of anonymity in public spaces.

(2) Bias and Discrimination: AI algorithms can perpetuate or amplify existing biases if they are trained on data that reflects societal inequities. This can result in discriminatory outcomes in areas such as law enforcement, housing, and public services, disproportionately affecting marginalized communities.

(3) Lack of Transparency: Many AI systems operate as “black boxes,” meaning the processes and decision-making criteria are not transparent to the public. This can erode trust and make it challenging for individuals to understand how decisions that affect their lives are made.

(4) Job Displacement: The automation of certain government functions through AI can lead to job losses in the public sector or in industries reliant on those functions, impacting the employment landscape and economic stability of communities.

(5) Security Risks: AI systems can be vulnerable to cyberattacks and exploitation. If malicious actors gain access to these systems, they can manipulate data, disrupt services, or compromise sensitive information, potentially leading to significant harm to individuals.

(6) Dependence on Technology: Increasing reliance on AI for critical services may create vulnerabilities. Technical failures or misconfigurations can result in service interruptions or errors that affect public safety and welfare.

(7) Legal and Ethical Concerns: The application of AI in sensitive areas (e.g., policing, social services) raises legal and ethical concerns about the appropriateness of AI decisions in life-altering contexts, such as risk assessment for individuals involved in the justice system or the allocation of social support.

(8) Erosion of Constitutional Rights and Civil Liberties: Heightened surveillance and data collection through AI can infringe on constitutional rights and civil liberties, prompting concerns about the potential overreach of government authority and reduced freedoms for individuals.

(9) Public Mistrust: The combination of the above risks can lead to a general sense of mistrust in government, where residents may feel that the government is not acting in their best interests or that their rights are being compromised.

(j) In order to promote the ethical, responsible, and transparent use of AI tools, it is important that policy makers and the public are aware of the AI technologies that the City uses, including information critical to understanding those technologies.

(Added by Ord. 288-24, File No. 241022, App. 12/19/2024, Eff. 1/19/2025)

SEC. 22J.2. DEFINITIONS.

For the purposes of this Chapter 22J, the following definitions shall apply:

“AI” means Artificial Intelligence.

“AI Technology” means logical and physical technology that uses Artificial Intelligence.

“Algorithms” means a set of rules that a machine follows to generate an outcome or a decision.

“Artificial Intelligence” means an engineered or machine-based system that varies in its level of autonomy and that can, for explicit or implicit objectives, infer from the input it receives how to generate outputs that can influence physical or virtual environments.

“Chatbot” means a computer program that simulates conversations.

“CIO” means the City’s Chief Information Officer, or designee.

“City” means the City and County of San Francisco.

“COIT” means the Committee on Information Technology or one of its committees.

“Data” means information prepared, managed, used, or retained by a department or employee of the City or a data user relating to the activities or operations of the City.

“Department” means any unit or component of City government, including but not limited to boards and commissions, departments, offices, agencies, or officials.

“Department Head” means the head of a Department, or designee.

“DT” means the Department of Technology.

“Inventory” means the information collected and published in accordance with Section 22J.3.

“Training Data” means the dataset that is used by a machine learning model to learn the rules.

(Added by Ord. 288-24, File No. 241022, App. 12/19/2024, Eff. 1/19/2025)

SEC. 22J.3. ROLES AND RESPONSIBILITIES.

(a) Chief Information Officer.

(1) Within six months of the effective date of this Chapter 22J, the CIO shall collect the data requested under subsections (b)(1)-(22) from Departments using AI technology, and begin publishing the Inventory responses on the DataSF platform.

(2) Within one year of the effective date of this Chapter 22J, the Inventory shall be complete, including any and all AI technology used by the City. In addition, within one year of the effective date, the CIO shall update the Inventory with any AI technology that the City is in the process of purchasing, borrowing, or receiving as a gift, with or without the exchange of compensation or other consideration before acquiring the technology and/or putting the technology into use. If the technology is never obtained or no longer used, it shall be removed from the Inventory.

(b) Department Head. The Department Head shall disclose and submit to the CIO for inclusion on the Inventory the AI technologies the Department has procured, borrowed, or received as a gift, with or without the exchange of money or compensation, and for each technology shall disclose the following information:

(1) Name of the technology and vendor;

(2) A brief description of the technology’s purpose and function;

(3) The intended use of the technology;

(4) The context or domain in which the technology is intended to be used;

(5) The data used to train the technology;

(6) An explanation of how the technology works;

(7) The data generated by the technology;

(8) A description of what the technology is optimizing for, and its accuracy, preferably with numerical performance metrics;

(9) Conditions necessary for the technology to perform optimally;

(10) Conditions under which the technology’s performance would decrease in accuracy;

(11) Whether testing has been performed to identify any bias in the technology such as bias based on race, gender, etc., and the results of those tests;

(12) A description of how and where people report bias, inaccuracies, or poor performance of the technology;

(13) A description of the conditions or circumstances under which the technology has been tested;

(14) A description of adverse incident monitoring and communication procedures;

(15) A description of the level of human oversight associated with the technology;

(16) A description of whether the data collected will or can be used for training of proprietary vendor or third-party systems;

(17) The individuals and communities that will interact with the technology;

(18) How the information or decisions generated by the technology could impact the public’s rights, opportunities, or access to critical resources or services;

(19) How people with diverse abilities will interact with the user interface of the technology and whether the system integrates and interacts with commonly used assistive technologies;

(20) Whether the technology is expected to replace any jobs currently being performed by human beings or could impact the employment and/or working conditions of City workers;

(21) Why it is important for the City to use the technology; and

(22) Potential risks of the technology and steps that would be taken to mitigate these risks.

(c) COIT, at the recommendation of the CIO, may modify the information requested under subsection (b).

(d) Exceptions. The requirements set forth subsections (a) and (b) shall not apply to the following uses. COIT, at the recommendation of the CIO, may reevaluate and modify these exceptions:

(1) Internal Administration: AI technology solely used to improve internal administrative processes that does not affect rights, staffing decisions, or make substantive changes affecting Department decisions, rights, or services. Examples include systems for internal data management, coding support, data analysis and visualization, graphic design and image creation, automation of manual processes, speech-to-text and transcription, email sorting, data entry, file management, document organization, grammar and spellcheck and other text editing or text formatting.

(2) Internal Cybersecurity: AI technology solely used for internal cybersecurity purposes and that does not involve surveillance of the public, decision-making, or similar actions otherwise impacting the public’s rights or safety, including intrusion detection, threat monitoring, and other cyber defense systems.

(e) Each Department shall:

(1) Complete and return the Inventory to the CIO;

(2) For subsections (b)(1)-(16), it is anticipated but not required that the department will obtain the information requested directly from the AI Technology Vendor;

(3) For subsections (b)(17)-(22), it is anticipated but not required that the Department will assess the intended use of the technology to answer the questions for the inventory;

(4) Notify DT of any updates to published Inventory information; and

(5) Participate in and facilitate a timely and accurate response to all information in Section (b)(1)-(22).

(f) The Controller shall conduct an annual review of all Department inventory responses and by letter addressed to the Board of Supervisors confirm each Department’s compliance or noncompliance with this Section 22J.3.

(g) In addition to the Inventory, the CIO shall submit to the Board of Supervisors and shall make available on the DataSF platform an AI Technology Report for all AI technologies used by the City within 12 months of the effective date of this Chapter 22J, and every two years thereafter. For each report the CIO submits to the Board of Supervisors, the CIO shall include a resolution to accept the report.

(h) The requirements of this Chapter 22J are in addition to any requirements in Chapter 19B, “Acquisition of Surveillance Technology.”

(Added by Ord. 288-24, File No. 241022, App. 12/19/2024, Eff. 1/19/2025)

SEC. 22J.4. ENFORCEMENT.

(a) If a person alleges that a Department has violated this Chapter 22J by failing to include an AI technology in its inventory response, the person shall give written notice of the alleged violation(s) to the CIO, and the CIO shall send a copy of the alleged violation to the Department. The Department shall have an opportunity to correct such alleged violation(s) within 30 days of the CIO’s receipt of the notice.

(b) The CIO shall quarterly report to the Board of Supervisors the notices of alleged violation that the CIO deemed valid and were not cured within 30 days of the notice.

(c) If the report described in subsection (b) identifies any Departments out of compliance with this Chapter 22J, then the Board of Supervisors shall calendar within 60 days of receiving the quarterly report a hearing on each such Department’s noncompliance in the Government Audit and Oversight Committee, or successor committee, of the Board of Supervisors, at which hearing the Department Head shall report on the Department’s plan for coming into compliance with this Chapter 22J.

(d) This Section 22J.4 shall not preclude the use of any other City process or program, such as the Controller’s Whistleblower Program, for raising an issue concerning compliance with this Chapter 22J.

(Added by Ord. 288-24, File No. 241022, App. 12/19/2024, Eff. 1/19/2025)

SEC. 22J.5. PROMOTION OF THE GENERAL WELFARE.

In enacting and implementing this Chapter 22J, the City is assuming an undertaking only to promote the general welfare. It is not assuming, nor is it imposing on its officers and employees, an obligation for breach of which it is liable in money damages to any person who claims that such breach proximately caused injury.

(Added by Ord. 288-24, File No. 241022, App. 12/19/2024, Eff. 1/19/2025)

Get a plain-English answer with a citation back to this text.

Ask AI about this code
Contents — San Francisco Administrative Code
San Francisco Administrative Code
  1. Chapter 1 — GENERAL PROVISIONS
  2. Chapter 2 — BOARD OF SUPERVISORS
  3. Chapter 2A — EXECUTIVE BRANCH
  4. Chapter 2B
  5. Chapter 3 — BUDGET PROCEDURES
  6. Chapter 4 — CITY BUILDINGS E UIPMENT AND VEHICLES , Q,
  7. Chapter 5 — COMMITTEES
  8. Chapter 6 — PUBLIC WORKS CONTRACTING POLICIES AND PROCEDURES
  9. Chapter 7 — DISASTER COUNCIL
  10. Chapter 8 — DOCUMENTS RECORDS AND PUBLICATIONS ,
  11. Chapter 9A — FARMERS' MARKET
  12. Chapter 9B — FLEA MARKET
  13. Chapter 10 — FINANCE TAXATION AND OTHER FISCAL MATTERS ,,
  14. Chapter 10A — [REQUEST FOR SHERIFF’S SERVICES]
  15. Chapter 10B — SPECIAL LAW ENFORCEMENT AND PUBLIC WORKS SERVICES
  16. Chapter 10C — REIMBURSEMENT FOR TOWING AND STORAGE OF VEHICLES
  17. Chapter 10D — [RESERVED] CHAPTER 10E: PLANNING MONITORING
  18. Chapter 10F
  19. Chapter 10G
  20. Chapter 10H — RECOVERY OF COSTS OF EMERGENCY RESPONSE
  21. Chapter 11 — FRANCHISES
  22. Chapter 12 — HOUSING AUTHORITY
  23. Chapter 12A
  24. Chapter 12B — [REDESIGNATED]
  25. Chapter 12C — [REDESIGNATED]
  26. Chapter 12D — MINORITY/WOMEN/LOCAL BUSINESS UTILIZATION
  27. Chapter 12E — BAN ON CITY USE OF GAS-POWERED LANDSCAPING EQUIP…
  28. Chapter 12F — IMPLEMENTING THE MACBRIDE PRINCIPLES – NORTHERN …
  29. Chapter 12G — PROHIBITION ON USE OF PUBLIC FUNDS FOR POLITICAL…
  30. Chapter 12H — IMMIGRATION STATUS
  31. Chapter 12I — CIVIL IMMIGRATION DETAINERS
  32. Chapter 12J — CITY BUSINESS WITH BURMA PROHIBITED
  33. Chapter 12K — [REDESIGNATED]
  34. Chapter 12L
  35. Chapter 12M
  36. Chapter 12N — LESBIAN, GAY, BISEXUAL, TRANSGENDER, QUEER, AND …
  37. Chapter 12O — [REDESIGNATED]
  38. Chapter 12P — [REDESIGNATED]
  39. Chapter 12Q — [REDESIGNATED]
  40. Chapter 12R — [REDESIGNATED]
  41. Chapter 12S — WORKING FAMILIES CREDIT PROGRAM
  42. Chapter 12T — [REDESIGNATED]
  43. Chapter 12U
  44. Chapter 12V — [REDESIGNATED]
  45. Chapter 12W — [REDESIGNATED] 1
  46. Chapter 12X — [REPEALED]
  47. Chapter 12Y
  48. Chapter 12Z — [REDESIGNATED]
  49. Chapter 13 — JAILS AND PRISONERS
  50. Chapter 14 — [REDESIGNATED]
  51. Chapter 14A — DISADVANTAGED BUSINESS ENTERPRISE PROGRAM
  52. Chapter 14B — LOCAL BUSINESS ENTERPRISE UTILIZATION AND NON-DI…
  53. Chapter 14C — [EXPIRED]
  54. Chapter 15 — MENTAL HEALTH SERVICE
  55. Chapter 16 — OFFICERS AND EMPLOYEES GENERALLY
  56. Chapter 17 — PUBLIC OFF-STREET PARKING FACILITIES
  57. Chapter 18 — PAYROLL PROCEDURE
  58. Chapter 19 — PUBLIC SAFETY CAMERA ORDINANCE
  59. Chapter 19A — PUBLIC HEALTH
  60. Chapter 19B — ACQUISITION OF SURVEILLANCE TECHNOLOGY
  61. Chapter 20 — SOCIAL SERVICES
  62. Chapter 21 — ACQUISITION OF COMMODITIES AND SERVICES
  63. Chapter 21A — HEALTH-RELATED COMMODITIES AND SERVICES
  64. Chapter 21B — CORE INITIATIVES ADDRESSING HOMELESSNESS, DRUG O…
  65. Chapter 21C — [REDESIGNATED]
  66. Chapter 21D — FOOD PURCHASES AT HOSPITALS OPERATED BY THE DEPA…
  67. Chapter 21E — GOODS OR SERVICES CONTRACTS FOR INCARCERATED PER…
  68. Chapter 21F — SAN FRANCISCO PUBLIC UTILITIES COMMISSION SOCIAL…
  69. Chapter 21G
  70. Chapter 21H — PROCUREMENT OF FIREARMS AND AMMUNITION
  71. Chapter 22 — RADIO COMMUNICATION FACILITIES
  72. Chapter 22A — INFORMATION AND COMMUNICATION TECHNOLOGY
  73. Chapter 22B — TELECOMMUNICATIONS FACILITIES
  74. Chapter 22C — PUBLIC INTERNET ACCESS
  75. Chapter 22D — OPEN DATA POLICY
  76. Chapter 22E — CITY-OWNED FIBER-OPTIC FACILITIES
  77. Chapter 22G — OFFICE OF EMERGING TECHNOLOGY
  78. Chapter 22H — DESIGNATION UNDER HEALTH INSURANCE PORTABILITY A…
  79. Chapter 22I — OFFICE OF CYBER SECURITY AND DUTIES OF THE CHIEF…
  80. Chapter 22J — ARTIFICIAL INTELLIGENCE TOOLS
  81. Chapter 23 — REAL PROPERTY TRANSACTIONS
  82. Chapter 23A — SURPLUS PUBLIC LANDS ORDINANCE
  83. Chapter 24 — REDEVELOPMENT AGENCY
  84. Chapter 24A — ADMINISTRATIVE STRUCTURE LOCAL RENT SUPPLEMENT P…
  85. Chapter 24B — RELOCATION APPEALS BOARD
  86. Chapter 25 — STREET LIGHTING
  87. Chapter 26 — [RESERVED]
  88. Chapter 27 — HEALTHY NAIL SALON RECOGNITION PROGRAM
  89. Chapter 28 — ADMINISTRATIVE DEBARMENT PROCEDURE
  90. Chapter 29 — FINDINGS OF FISCAL RESPONSIBILITY AND FEASIBILITY
  91. Chapter 29A — APPROVAL OF POWER PLANT PLANNING CODE SEC. 303 C…
  92. Chapter 29B — CHILD CARE FEASIBILITY STUDY FOR CITY AND CITY-F…
  93. Chapter 30 — CENTRALIZATION OF WORKFORCE DEVELOPMENT
  94. Chapter 31 — CALIFORNIA ENVIRONMENTAL QUALITY ACT PROCEDURES A…
  95. Chapter 32 — RESIDENTIAL REHABILITATION LOAN PROGRAM
  96. Chapter 33 — COMMISSION ON THE STATUS OF WOMEN
  97. Chapter 33A — LOCAL IMPLEMENTATION OF THE UNITED NATIONS CONVE…
  98. Chapter 34 — NOTIFICATION TO ASSESSOR CONCERNING ZONING RECLAS…
  99. Chapter 35 — RESIDENTIAL HOTEL AND PDR COMPATIBILITY AND PROTE…
  100. Chapter 36 — COMMUNITY IMPROVEMENTS AREA PLANS AND PROGRAMS
  101. Chapter 37 — RESIDENTIAL RENT STABILIZATION AND ARBITRATION OR…
  102. Chapter 37A — RENT STABILIZATION AND ARBITRATION FEE
  103. Chapter 37B — MIDTOWN PARK APARTMENTS
  104. Chapter 37C — [EXPIRED]
  105. Chapter 38 — COMMERCIAL LANDLORDS; ACCESS IMPROVEMENT OBLIGATI…
  106. Chapter 39 — [RIGHT TO RETURN TO REVITALIZED PUBLIC HOUSING]
  107. Chapter 40 — HOUSING CODE ENFORCEMENT LOAN PROGRAM
  108. Chapter 41 — RESIDENTIAL HOTEL UNIT CONVERSION AND DEMOLITION
  109. Chapter 41A — RESIDENTIAL UNIT CONVERSION AND DEMOLITION
  110. Chapter 41B — COMMUNITY OPPORTUNITY TO PURCHASE ACT
  111. Chapter 41C — TIME-SHARE CONVERSION ORDINANCE
  112. Chapter 41D — RESIDENTIAL HOTEL VISITOR POLICIES
  113. Chapter 41E — RESIDENTIAL HOTEL MAIL RECEPTACLE ORDINANCE
  114. Chapter 41F
  115. Chapter 41G — RESIDENTIAL HOTEL COVID-19 PROTECTIONS
  116. Chapter 41H — [EXPIRED]
  117. Chapter 42 — INDUSTRIAL DEVELOPMENT AUTHORITY
  118. Chapter 43 — MUNICIPAL FINANCE LAW
  119. Title 1 — GENERAL PROVISIONS AND DEFINITIONS SEC. 43.1.1. TITLE.
  120. Title 2 — FINANCING RESIDENCES SEC. 43.1.7. LOANS FOR RESIDENC…
  121. Title 3 — BONDS
  122. Title 4 — SUPPLEMENTAL PROVISIONS
  123. Title 1 — GENERAL PROVISIONS AND DEFINITIONS SEC. 43.2.1. TITLE.
  124. Title 2 — FINANCING FACILITIES
  125. Title 3 — BONDS SEC. 43.2.17. ISSUANCE OF BONDS.
  126. Title 4 — SUPPLEMENTAL PROVISIONS SEC. 43.2.27. LIBERAL CONSTR…
  127. Title 1 — GENERAL PROVISIONS SEC. 43.10.1. TITLE.
  128. Title 2 — PROVISIONS RELATING TO FORMATION OF DISTRICTS SEC. 4…
  129. Title 3 — PROVISIONS RELATING TO BONDS SEC. 43.10.18. ALTERNAT…
  130. Title 4 — SUPPLEMENTAL PROVISIONS SEC. 43.10.22. LIBERAL CONST…
  131. Title 5 — CHANGE PROCEEDINGS SEC. 43.10.26. ALTERNATE PROCEDUR…
  132. Title 1 — GENERAL PROVISIONS AND DEFINITIONS SEC. 43.15.1. TIT…
  133. Title 2 — RESIDENCES SEC. 43.15.6. LOANS TO QUALIFIED 501(c)(3…
  134. Title 3 — BONDS SEC. 43.15.15. ISSUANCE OF BONDS; LOANS TO QUA…
  135. Title 4 — SUPPLEMENTAL PROVISIONS SEC. 43.15.25. LIBERAL CONST…

GoCodebook provides public access, search, citation, multilingual explanation, and practical interpretation of legally adopted building regulations. It is not a substitute for the official ICC or California code publications.