refactor(auth): extract auth errors and telemetry (S1) - #80673
refactor(auth): extract auth errors and telemetry (S1)#80673andrexibiza wants to merge 1 commit into
Conversation
Signed-off-by: andrexibiza <84248988+andrexibiza@users.noreply.github.com>
Nice extraction — moving the error types/formatting/telemetry into 1. 2. Scope the facade to what is actually imported externally. I grepped the tree: |
What changed
Extract the S1 auth errors and OAuth telemetry cluster from
hermes_cli/auth.pyintohermes_cli/auth_errors.py.auth.pylines 871–993.hermes_cli.authkeeps the legacy names, object identity, monkeypatch paths, lazy imports, and deletion semantics.This is one independently reviewable slice of the auth.py god-file . The remaining auth.py slices are tracked separately under the same file issue and are not included here.
Verification
Base:
origin/main0957277f2f468bac22bbfcfa7c43029858c9597e.56c41562bb8437131ec42c122e303ed1a09ffe4f.hermes_cli/auth.py,hermes_cli/auth_errors.pyonly.git diff --check: clean.py_compile: both changed Python modules pass.Why this matters to users
The extraction reduces the auth god-file without changing the public or monkeypatch-visible
hermes_cli.authcontract. Existing callers and tests continue to resolve the same names and function/class identities while the code becomes independently maintainable.Links
This PR: refactor(auth): extract auth errors and telemetry (S1) #80673
tracker: [COMPLETE] Large-file decomposition: 20/20 done #78647
Auth god-file issue: Shard hermes_cli/auth.py (god-file decomposition) #78637
Merger receipt:
C:/tmp/tg-Feature Package/godfile/auth/extraction/w3/s1-ship-merger-20260806.mdPart of #78647
Part of #78637
Scope note
This refactor slice is intentionally limited to the S1 cluster. It does not claim the auth god-file is ; the remaining slices stay tracked by #78637 and the tracker ledger.
Credit
The shipped commit is authored and DCO-signed by
andrexibiza <84248988+andrexibiza@users.noreply.github.com>.Interlock
The per-file and its scoreboard live on #78637. This PR is bound to both the Feature Package tracker and the per-file tracker with separate
Part oflines above.Part of #78647
Part of #78637