Skip to content

Detector: Integer info-loss in event data casts #804

Description

@Gbangbolaoluwagbemiga

Epic: Detectors (wave 3)

Summary

Add a static-analysis detector for integer info-loss in event data casts.

Background & Problem

Casting a wider value down when publishing event data silently truncates what indexers see.

Acceptance Criteria

  • Flags narrowing casts in event payloads.
  • Suggests emitting full-width.

Technical Notes

Follow the rule pattern in tooling/sanctifier-core/src/rules/ with an insta golden snapshot.


Filed as part of the mainnet-readiness & world-class roadmap. Scope is intentionally small enough for one focused PR; comment to claim.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardarea: core-enginesanctifier-core static analysis enginedetectorNew or improved static-analysis detectordifficulty: beginnerGood first issue, ~1-4 hrsdifficulty: easyGood first issue, ~1-4 hrsobservabilityLogs, metrics, tracing, monitoringtype: featureNew capability or enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions