← Back to news
Coding Agents: Repair GitHub Usage Reports Without Delegating Data Judgment

Photo: Jnanaranjan sahu / Wikimedia Commons — CC BY 4.0 — https://commons.wikimedia.org/wiki/File:Indic_Wikimedia_Hackathon_Hyderabad_2026_Hacking_%26_Presentations_01.jpg

30/11/2026

Coding Agents: Repair GitHub Usage Reports Without Delegating Data Judgment

Tomorrow’s reporting change is a test of your AI governance

A coding agent can repair a CSV importer in minutes. It can also make a broken management dashboard look plausible again without restoring what the numbers actually mean. On November 23, GitHub announced a concrete change worth checking before December 1, 2026: usage reports containing a username column will gain a neighboring user_id column. Every subsequent column moves one position to the right. For teams using AI assistants to maintain their internal tooling, this is a useful, immediate exercise in responsible delegation.

The issue is not whether an agent knows how to parse CSV. The issue is who decides what constitutes a correct migration, which identities may be joined to other records, and what business decisions those reports may support. Let the assistant inventory the dependencies, propose the patch and generate regression tests. Keep a human responsible for the data contract, access boundaries and final acceptance. A successful import is not proof of a trustworthy report.

What GitHub is changing, and what it is not

The announcement covers the detailed usage report, AI usage report and premium request usage report, including exports created through the REST API. The summarized usage report does not change. GitHub says the change applies to all GitHub Enterprise Cloud account types and standalone organizations on GitHub Team. This is a targeted reporting migration, not a claim that every GitHub export or every account plan is changing.

The new field contains the ID of the account that generated the usage, including bot accounts. It is empty when usage is not associated with an account. It helps distinguish deleted accounts, follow usage after a username changes and match rows with audit log events. Those are useful capabilities for understanding spending and investigating anomalous activity, provided the resulting joins remain within an approved purpose.

There is another subtle change. Usage from different deleted accounts will appear on separate rows instead of being combined under an empty username. GitHub says amounts are calculated in the same way, but separately rounded rows can produce small differences in the last decimal places when totals are added. A reconciliation test that demands identical row counts and perfect decimal equality can therefore reject a legitimate migration. An assistant must not invent a universal tolerance to make the test pass; finance and engineering should agree on the rule.

Why positional parsing is dangerous around agents

Consider an illustrative internal script that reads the eighth field as a charge amount. Inserting a new identity column earlier in the record may make that position refer to a different field. Sometimes the script crashes. Sometimes the new value remains syntactically valid and the dashboard quietly becomes wrong. The second failure is more dangerous because a green automation run can conceal an incorrect interpretation.

GitHub’s explicit recommendation is to read columns by header name rather than position. That is the right starting point, but not the whole acceptance criterion. A robust importer must also check required headers, define how unexpected fields are handled, preserve monetary precision and surface malformed records. Asking an agent merely to “make the new CSV work” leaves all those decisions implicit. Asking for a documented contract gives both the model and the reviewer something concrete to challenge.

This matters because AI makes small maintenance changes cheap enough to spread quickly. The same assistant may update a parser, rewrite its tests, regenerate a dashboard and summarize the result for a manager. If every layer shares one mistaken assumption, agreement between them is not independent verification. Preserve a trusted fixture and a human-approved expected output outside the patch’s own reasoning.

Start with a dependency inventory, not a global replacement

Give the agent a bounded, read-only discovery task first. Ask it to identify scheduled exports, CSV readers, spreadsheet imports, warehouse transformations, cost allocation jobs and dashboards consuming the affected reports. Require file paths, owners and evidence of the field mapping. A list of likely matches is not confirmation that every consumer is affected; the output should distinguish verified dependencies from items needing investigation.

Include the unglamorous edges. A spreadsheet formula may be more fragile than the production importer. A manually downloaded report may feed a monthly budget review. A bot may process premium requests under a service identity. The inventory should expose these dependencies without downloading unnecessary personal data or copying production reports into an assistant’s conversation.

The human owner then sets the change boundary. For example, authorize updates to the importer and its fixtures, but not changes to budget thresholds, access controls or employee-level reporting. Keep a rollback path to the previous parser and retain the original export in approved storage. The assistant can accelerate the investigation; it should not silently enlarge the purpose of the system it is repairing.

Define a contract the assistant cannot quietly reinterpret

Write down the required fields and their meanings before requesting implementation. Resolve the source of truth for account identity, the treatment of an empty ID, and the handling of renamed or deleted accounts. Treat an absent field differently from an explicitly empty field when that distinction affects interpretation. Do not replace missing identifiers with a guessed username or manufacture a stable key from a person’s name.

A practical acceptance note can be short:

  • Read values by exact header names and reject ambiguous duplicate headers.
  • Accept documented additional columns without shifting existing mappings.
  • Keep account IDs separate from display names and distinguish bot activity.
  • Validate numeric fields using the pipeline’s approved decimal representation.
  • Quarantine invalid rows and report the reason without exposing raw personal data.
  • Require review before changing allocation logic or joining new identity sources.

These are recommended engineering controls, not additional promises from GitHub. Their details depend on the organization’s reporting contract. The important governance principle is explicit ownership: an engineer or data owner approves the meaning of the transformation, while the assistant implements that meaning and identifies uncertainties rather than deciding them alone.

Build fixtures that can contradict the patch

Use small synthetic fixtures rather than live employee reports. Include the old header layout, the announced new layout, reordered columns, extra fields, an empty ID, a renamed account, multiple deleted accounts and a bot. Add malformed amounts and duplicate headers. Each case should have an expected result approved independently of the assistant’s generated implementation. These are test inputs, not evidence of actual usage.

Test failure behavior as carefully as success. An importer should not silently turn an unknown amount into zero, drop a problematic row or merge unrelated empty identities simply to keep a dashboard green. Decide whether a particular defect should stop the job, quarantine the row or require manual review. Make that outcome observable to the person responsible for the report.

For reconciliation, compare the relevant accounting period, scope, units and aggregation method. Explain expected differences from separately rounded rows instead of hiding them in an arbitrary threshold. Run old and new fixtures in continuous integration, then inspect a limited authorized sample after the new format becomes available. Until that real export is checked, describe the migration as prepared and tested against the announced schema, not proven in production.

A stable identifier is not permission to profile developers

The ability to correlate an account across username changes is useful for accountability. It also makes broader correlation easier. A maintenance task should not automatically become a project to rank developers by prompt volume, model spending or the number of AI reviews requested. Those figures describe tool activity in a specific context. They do not directly establish engineering quality, individual productivity or the value of someone’s work.

Separate operational questions from personnel judgments. “Which automation caused this unexpected cost?” can justify investigating a service account and its jobs. “Which engineer is least productive?” is not answered by an AI usage export. Before joining usage with audit logs, define the purpose, permitted audience, retention period and escalation route. Consult the appropriate internal privacy or employee-representation process where applicable.

Use aggregate views for routine adoption and cost monitoring whenever they answer the question. Restrict detailed identity access to people with an operational need. The agent helping with the migration should receive only the minimum sample and permissions needed to validate the parser. A new field increases what is technically possible; humans still decide what is legitimate and proportionate.

Keep reporting authority separate from production authority

A reporting repair should not require an assistant to hold organization-wide administrative credentials. Prefer local fixtures and scoped read access for discovery. If an authorized production validation is needed, a human can run the approved command or grant a narrowly limited, temporary capability. Never paste a billing export or token into a prompt merely because it would be convenient for debugging.

Review the proposed diff for unrelated changes. A generated patch that adjusts budget limits, disables validation or broadens log collection has crossed the stated boundary even if its parser is correct. Ask for an explanation of every semantic change, not just every changed file. Keep the final deployment approval distinct from the assistant’s claim that tests passed.

Also preserve provenance. Record which GitHub announcement informed the migration, which fixtures were used, which tests actually ran and who approved the result. That small evidence trail helps the next engineer distinguish a deliberate decision from an accidental workaround. It is more useful than a polished AI summary with no connection to reproducible checks.

A practical checklist before December 1

For teams affected by the announcement, the immediate goal is modest: prevent tomorrow’s schema change from becoming an invisible reporting error. Start with the highest-impact consumers, especially any job that allocates spending, triggers a budget alert or feeds a management decision. Do not expand the project into a full analytics redesign while fixing a deadline-driven compatibility issue.

  1. Confirm which of the affected report types your organization actually consumes.
  2. Find positional readers and document the current field mapping.
  3. Approve the new data contract, including identity and rounding behavior.
  4. Ask the agent to propose a narrow patch and synthetic regression fixtures.
  5. Have a human review the expected results, failure paths and access implications.
  6. Deploy through the normal review process and inspect the first authorized new-format export.

If the migration is not ready, make uncertainty visible. Suspend an affected automated decision or label the dashboard incomplete rather than silently publishing suspect numbers. A controlled interruption is often cheaper than confident misinformation that spreads through budgets and team discussions. Document the limitation and assign a person to resolve it.

Delegate the repair, not the meaning of the numbers

This change is small enough to look routine and consequential enough to expose weak AI delegation. Header-based parsing, realistic tests and scoped access are practical engineering work an assistant can accelerate. Determining identity semantics, acceptable reconciliation differences and the legitimate use of employee-related data remains an organizational responsibility.

The useful human-in-the-loop model is therefore precise: the agent discovers and implements; independent evidence challenges its output; an accountable person approves the interpretation and release. Before trusting an AI-maintained dashboard, ask not only whether its job finished, but whether someone can explain what its numbers now mean. Humans should remain in command of both the software and the decisions it enables.

Sources