WIP: 🏗️ refactor(co2): add foundation uncertainty types #1

Draft
mat wants to merge 1 commit from feat/s0-foundation into main
Owner

Context

S0 prepares the CO2 estimation code for auditable uncertainty bands, factor provenance, and explicit energy perimeters without changing current calculations or output contracts.

Impact

Adds internal foundation types (Band, CoefCell, Provenance, and EnergyPerimeter) and a byte-stable JSON golden test. Existing central values, JSON keys, and rendered output remain unchanged.

Verification

  • go test ./...
  • go vet ./...
  • git diff --check

This PR is intentionally draft and is the first slice of the CO2 methodology improvements.

## Context S0 prepares the CO2 estimation code for auditable uncertainty bands, factor provenance, and explicit energy perimeters without changing current calculations or output contracts. ## Impact Adds internal foundation types (`Band`, `CoefCell`, `Provenance`, and `EnergyPerimeter`) and a byte-stable JSON golden test. Existing central values, JSON keys, and rendered output remain unchanged. ## Verification - `go test ./...` - `go vet ./...` - `git diff --check` This PR is intentionally draft and is the first slice of the CO2 methodology improvements.
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/s0-foundation:feat/s0-foundation
git switch feat/s0-foundation

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff feat/s0-foundation
git switch feat/s0-foundation
git rebase main
git switch main
git merge --ff-only feat/s0-foundation
git switch feat/s0-foundation
git rebase main
git switch main
git merge --no-ff feat/s0-foundation
git switch main
git merge --squash feat/s0-foundation
git switch main
git merge --ff-only feat/s0-foundation
git switch main
git merge feat/s0-foundation
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mat/cco2usage!1
No description provided.