Export Telegram message diagnostics#425
Open
hypotyposis wants to merge 1 commit into
Open
Conversation
|
@zooey-sys is attempting to deploy a commit to the fuzzland Team on Vercel. A member of the Team first needs to authorize it. |
f53c197 to
d6efb3d
Compare
d6efb3d to
5348314
Compare
zooey-sys
approved these changes
Jun 19, 2026
zooey-sys
left a comment
Collaborator
There was a problem hiding this comment.
LGTM. Verified the diagnostics export against the requested observability:
- Join: subscriber
message-diagnostics.ndjson(and rotated.1) joined withworkflow_history.jsonbychat_id:message_id;scalar_to_stringnormalizes number/string keys so the two sources correlate. - Coverage: report exposes subscriber (received/stage/times), filter (filtered + stage + summary), and trust_ai (entered + result + usage), plus message/received timestamps — matching the requested observation points (subscriber received? filtered? entered Trust AI + result).
- Robustness: missing
workflow_history.jsonresolves to empty default (history.rs), so the key "no task created / no triage" case still exports; multi-account traversal; limit clamp [1, 2000];unique_report_pathavoids same-ms overwrites. - Privacy:
sanitize_message_recordrecursively redacts any nestedtextkey (-> text_redacted) in embedded trigger_info; the top-level text_prefix fallback is snippet-capped viamessage_snippet; aprivacy_noteis included. Full message text is not exported; short snippets remain only to correlate which message a row describes. The unit test covers.1rotation and asserts the full private trigger text is absent from the export.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification
Note: cargo fmt --package puffer-cli -- --check still reports pre-existing formatting drift in unrelated puffer files such as daemon_browser/wechat modules; the touched files above are rustfmt-clean.