Skip to content

feat(kiro): log a redacted getUsageLimits shape on overage pull - #679

Merged
caigee-cmd merged 1 commit into
mainfrom
fix/kiro-overage-debug-log
Dec 6, 2026
Merged

caigee-cmd merged 1 commit into
mainfrom
fix/kiro-overage-debug-log

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

  • Kiro overage "pull" now logs one [kiro-overage] line with the response's top-level keys, per-breakdown keys, and scalar values under keys containing overage or charge.
  • Email, user id, profile ARN, subscription title, and usage figures are not logged.
  • Purpose: fix(kiro): read overage figures sent only as *WithPrecision #673 did not fix the billed amount staying at $0 on a real account, so the actual field names from the Q host are needed.

Changes

  • internal/providers/kiro/overage_debug.go: redacted shape formatter.
  • internal/providers/kiro/account.go: fetchUsageRaw returns the body; fetchUsageFrom wraps it.
  • internal/providers/kiro/overage.go: FetchOverage logs the line.
  • Tests for redaction and bad JSON; bilingual changelog fragment.

Test plan

  • gofmt, go vet
  • go test for internal/providers/kiro and internal/runtime
  • Click "pull" on a Kiro account and read the [kiro-overage] line in the server log

The billed overage amount still reads $0 after the *WithPrecision fix.
Log the response keys and overage-related scalars so the real field names
can be confirmed without leaking email, user id, or profile ARN.
@caigee-cmd
caigee-cmd merged commit 32e5da8 into main Dec 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant