Skip to content

projection: TypeScript hrTime accepts empty/hex/negative strings and spanAttributes projects non-finite floats #114

Done

Description

@drk-ram

Summary

  1. hrTime(value) in packages/typescript/src/projection.ts calls BigInt(value) without validating canonical non-negative decimal format (/^(0|[1-9][0-9]{0,19})$/), so hrTime(""), hrTime(" "), hrTime("0x10"), and hrTime("-1") silently return [0, 0], [0, 16], or negative tuples instead of throwing.
  2. span_attributes in src/agentrust_telemetry/projection.py and spanAttributes in packages/typescript/src/projection.ts do not exclude non-finite float/number values (NaN, Infinity).

Activity

  1. github-actions commented on Oct 25, 2026

    @github-actions

    🟡 Contributor Check: MEDIUM

    Check Result
    Profile MEDIUM
    Credential LOW
    Overall MEDIUM

    Automated check by AgenTrust Contributor Check.

  2. added
    needs-review:MEDIUM
    on Oct 25, 2026
  3. added a commit that references this issue on Nov 25, 2026
    bbd64a0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-review:MEDIUM

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions