Skip to content

fix(diagnostics): inspect bounded snapshot request failures - #463

Merged
Pigbibi merged 2 commits into
mainfrom
fix/snapshot-request-log-diagnostic-20261030
Oct 30, 2026
Merged

Pigbibi merged 2 commits into
mainfrom
fix/snapshot-request-log-diagnostic-20261030

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Problem

The cached-balance diagnostic reads deployment audit events but cannot distinguish snapshot request failures. Its aggregate failure result is insufficient to identify whether the scheduled request reached the existing account-facts sync route.

Change

Add a default-off request-log mode to the existing diagnostic. It retains the exact-main and time-window guards and the existing identity. It performs bounded Cloud Logging reads for the configured service and Scheduler job, and prints only fixed categories, HTTP status codes and counts. No raw logs, URLs, traces, account data or credentials are emitted. Schema modes are mutually exclusive.

Scheduler and request events are candidates from the same target and window; this does not prove they share an invocation. Application classification requires a single request trace and exactly one recognized matching log. Missing, inaccessible, truncated or ambiguous evidence remains explicit. No Scheduler invocation, broker request, sync write, configuration change or permission change is added.

Verification

  • Nine focused unittest cases pass, including malformed/unmatched input, multiple logs, missing trace, truncation, permission errors and the actual query construction path.
  • Python compilation, workflow YAML checks and patch application against the base passed.
  • Independently reviewed for bounded reads, classification ambiguity and output redaction.
  • Full repository CI and real Cloud Logging execution remain to be checked. Existing application text logs may lack trace fields, so the new mode may correctly report an unknown application reason.

This change supplies diagnostic evidence; it does not itself restore snapshot publication.

@Pigbibi
Pigbibi merged commit 7469a0c into main Oct 30, 2026
2 checks passed
@Pigbibi
Pigbibi deleted the fix/snapshot-request-log-diagnostic-20261030 branch October 30, 2026 05:57
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