A new column can break a reporting script without breaking the CSV file. GitHub is adding user_id beside username in affected usage reports from December 1, 2026. If your importer reads “the next column” rather than a named field, review it before the first new-format export arrives.

The November 23 announcement covers detailed, AI and premium request usage reports, including affected REST exports, for Enterprise Cloud and standalone Team organizations. Summarized reports are unchanged. Columns following username shift right by one position. This is an announced transition, not evidence that every report already contains the field today.
Find imports that depend on column position
Search your reporting code and spreadsheet import steps for numeric column indexes. Then trace each one to its source report. A positional parser might still return a plausible string after the insertion, making the fault harder to notice than a clear parse error. Review any downstream mapping to teams, cost centers or dashboards as part of the same change.
Keep a private copy of a known export and write down the fields your importer actually needs. For example, a report that only needs username and net amount should validate those headers explicitly rather than assume a fixed number of columns. Preserve report type and export date alongside the file so a teammate can tell which schema they are inspecting.
Read fields by name and reject malformed rows
Python’s CSV documentation describes DictReader, which maps fields to header names. This small example reads a local file, checks the two required headers and distinguishes an absent optional ID column from an empty ID value. It prints only the number of accepted rows, keeping account details out of routine output.
import csv
with open("usage.csv", newline="", encoding="utf-8-sig") as source:
reader = csv.DictReader(source)
headers = reader.fieldnames or []
required = {"username", "net_amount"}
if not required.issubset(headers):
raise ValueError("Missing required usage headers")
if len(headers) != len(set(headers)):
raise ValueError("Duplicate CSV headers")
has_user_id = "user_id" in headers
count = 0
for row in reader:
if None in row or any(value is None for value in row.values()):
raise ValueError("Row does not match CSV headers")
user_id = row["user_id"] if has_user_id else None
# None: old schema; empty string: no account-linked ID.
count += 1
print(f"Accepted {count} rows")
This is a schema check, not a complete billing importer. Add your own decimal parsing, date validation and destination mapping before using a file for accounting. Avoid silently treating a missing required header as a zero amount. Keep the original export available for reconciliation.
Separate identity changes from amount changes
GitHub says user_id identifies the account generating usage, including bots, and is blank when usage has no associated account. It also helps identify renamed or deleted accounts. Deleted accounts will have separate rows; because rounding happens per row, adding displayed amounts may produce small last-decimal differences even though the calculation method is unchanged.
Our recommendation is to check row mapping and totals separately. First verify that named fields still feed the intended destinations. Then compare an appropriate reporting period using your documented accounting tolerance. Do not merge every blank username into a single person. Retain an explicit unknown-identity case for records that cannot be attributed.
The billing reports reference describes available report fields and notes that the REST /usage endpoint supplies summarized information rather than the detailed report. Confirm the exact export path you use instead of assuming the announcement makes all report types available through every endpoint.
Test the handoff with old and new headers
Before replacing a scheduled importer, use synthetic files with the original headers, the inserted ID column, reordered columns, a missing required field and an extra value in a row. Check that legitimate schema variations preserve named-field meaning while malformed inputs stop visibly. Keep these fixtures free of real account information.
After the first December export, inspect its actual header and a small sample before releasing the downstream report. Assign a maintainer to resolve schema errors rather than letting a scheduled job publish partial results. For another imminent admin change, see our Copilot code review billing checklist.
Prepared with AI assistance from primary sources checked November 30, 2026. The Python example was checked locally with synthetic CSV inputs; TechPulse did not test a live December GitHub export. See our editorial policy.
✍️ Leave a Comment