WIP: 🏗️ feat(co2): model full-stack energy perimeter #6

Draft
mat wants to merge 2 commits from feat/s5-energy-perimeter into feat/s4-cache-accounting
Owner

Context

S4 coefficients represent accelerator-only energy, while the estimator previously applied only a fixed PUE and had no explicit protection against future full-site double counting.

Impact

Adds explicit GPU/IT/full-site perimeter conversion. The default uses host/idle ratio 0.57 and PUE 1.12, applying the full-stack factor once; full-site coefficients skip conversion. --v1-method restores the previous GPU × PUE 1.1 behavior for comparison. Methodology metadata and documentation are additive.

Verification

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

This PR is intentionally draft and is stacked on S4.

## Context S4 coefficients represent accelerator-only energy, while the estimator previously applied only a fixed PUE and had no explicit protection against future full-site double counting. ## Impact Adds explicit GPU/IT/full-site perimeter conversion. The default uses host/idle ratio 0.57 and PUE 1.12, applying the full-stack factor once; full-site coefficients skip conversion. `--v1-method` restores the previous GPU × PUE 1.1 behavior for comparison. Methodology metadata and documentation are additive. ## Verification - `go test ./...` - `go vet ./...` - `git diff --check` This PR is intentionally draft and is stacked on S4.
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/s5-energy-perimeter:feat/s5-energy-perimeter"
git switch "feat/s5-energy-perimeter"

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 "feat/s4-cache-accounting"
git merge --no-ff "feat/s5-energy-perimeter"
git switch "feat/s5-energy-perimeter"
git rebase "feat/s4-cache-accounting"
git switch "feat/s4-cache-accounting"
git merge --ff-only "feat/s5-energy-perimeter"
git switch "feat/s5-energy-perimeter"
git rebase "feat/s4-cache-accounting"
git switch "feat/s4-cache-accounting"
git merge --no-ff "feat/s5-energy-perimeter"
git switch "feat/s4-cache-accounting"
git merge --squash "feat/s5-energy-perimeter"
git switch "feat/s4-cache-accounting"
git merge --ff-only "feat/s5-energy-perimeter"
git switch "feat/s4-cache-accounting"
git merge "feat/s5-energy-perimeter"
git push origin "feat/s4-cache-accounting"
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!6
No description provided.