Skip to content

[$50 BOUNTY] [Typescript] Fix data_audit.ts broken --format both and input validation #38

Description

@David-patrick-chuks

Bounty: $50 (LT)

Area: tools/data_generator.ts

Current state: --format both is broken — it overrides to "json" and never writes CSV. --json and --csv flags are parsed but unused. Count args accept negative values silently. Some helpers use global random instead of instance RNG.

What's needed:

Fix --format both to emit both JSON and CSV
Either implement or remove --json/--csv flags
Validate count arguments as non-negative integers
Use instance RNG consistently for deterministic output
Acceptance criteria:

--format both creates both .json and .csv files
Negative counts fail with clear argparse error
Same seed produces deterministic data in tests
Tests cover format handling, count validation, schema basics
Required validation:

Run:
Include generated diagnostic .logd artifact in the PR
Use .github/pull_request_template.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions