feat(gateway): extend opt-in runtime footer metadata - #18188
lancecheney wants to merge 3 commits into
Conversation
6d5af22 to
2c935b7
Compare
56d5086 to
a67dd9d
Compare
dcbd451 to
573519d
Compare
fd00ad0 to
7509336
Compare
7509336 to
7fbef38
Compare
|
Prepared refreshed replacement PR #98180 on current upstream The original #18188 branch is owned by Validation on the refreshed branch: 82 focused tests passed, ruff passed, py_compile passed, and #18188 is intentionally left open. Maintainers can use #98180 as the current-main review target, or refresh the original branch and close the replacement. |
ab55894 to
a7da305
Compare
|
Refreshed against upstream main and force-pushed.
|
|
Follow-up refresh: upstream
|
a7da305 to
321539a
Compare
|
@sfire123 Thanks for preparing the refreshed branch. I’ve now rebased #18188 onto the current upstream I also maintain a downstream integration that pulls upstream Since Hermes |
321539a to
a2584f2
Compare
|
Refreshed onto current upstream
|
fcc8b1d to
0582fc6
Compare
|
The latest force-push ( Blocking path:
Please restore the compatible hardening shape that was previously incorporated from
There is also a documentation regression from the earlier review: I verified current head with the canonical targeted suite: 78 passed, 0 failed ( |
|
Thanks for the detailed report. Addressed in The fix now:
Validation:
The PR head is now |
|
Re-reviewed the updated branch at The hardening invariants remain intact:
Local verification on this exact head:
|
c4baa58 to
3e5500a
Compare
|
Prepared a conflict-resolution refresh in lancecheney#2 (head It merges upstream Verified locally: 143 passed, 0 failed across the footer/account-usage and egress-decline suites; Ruff, Windows-footgun scan, and the feature diff whitespace check passed. Account/quota rendering, opt-in defaults, non-blocking refresh, and no raw API key in result metadata are preserved. The follow-up PR is mergeable. I cannot push directly to this branch; please merge that PR normally (not squash) or fast-forward to its head so the upstream-main ancestry is retained and this PR's conflict clears. GitHub-hosted checks have not reported any runs on the follow-up yet. |
3e5500a to
6c2ed05
Compare
|
Thanks for preparing the conflict-resolution refresh in lancecheney#2 — much appreciated, and your read of the conflict was spot-on. I've resolved it with the same approach (retaining both
The follow-up PR #2 can stay closed; nothing from it is lost since the resolution is equivalent. Thanks again for the two thorough reviews — the invariants you flagged (opt-in account/quota, non-blocking refresh, no raw API key in result metadata) are all preserved. |
6c2ed05 to
d16ba48
Compare
d16ba48 to
310f555
Compare
What does this PR do?
Extends the existing opt-in gateway runtime footer with provider, account, full-context, quota, underline, and reasoning-effort fields while keeping the feature disabled by default.
The refreshed branch also incorporates @sfire123's quota hardening from lancecheney#1 with authorship preserved:
agent_resultCold quota lookups no longer delay the user's final reply; the first reply may omit quota while the background refresh populates the cache.
Related Issue
No public issue filed. This extends the existing runtime-footer feature and fixes quota correctness/latency across credential pools and multiplexed profiles.
Type of Change
Changes Made
agent/account_usage.pygateway/run.pygateway/runtime_footer.pytests/gateway/test_runtime_footer.pytests/gateway/test_runtime_footer_usage_cache.pytests/test_account_usage.pywebsite/docs/user-guide/configuration.mdHow to Test
Canonical focused suite:
Result on current
origin/main(4f675cf2f):Additional validation:
ruff checkpassed on all changed Python filespython -m py_compilepassed on runtime filesscripts/check-windows-footguns.pypassed on all changed Python filesgit diff --checkcleanConfiguration
Default behavior remains unchanged: runtime footers are off unless explicitly enabled.
Checklist
Code
Documentation & Housekeeping
Screenshots / Logs
Latest refreshed head:
4b8cc177d.