Fuzzing: generate Prodigy's AST and print it with the existing printers
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Start with tests/fuzzing/programs.py and compare its expression and statement generators with prodigy.pgcl.ast and the existing printers, including ppy_printer. Keep prodigy/simulator.py independent as the simulation oracle. Add a separate text-to-AST-to-text round-trip check, then run the fuzz and simulation tests; they should remain green without getting slower and still find the same bug classes.
Written by the indexing model from the issue text.
Description
Priority: low. Part of the code quality pass #221.
tests/fuzzing/programs.py (from #245, about 400 lines) has its own small AST for expressions and statements and its own text output for .ppy and .pgcl (render_expr, render_stmt). This duplicates prodigy.pgcl.ast and the existing printers (ppy_printer etc.).
The simulator (prodigy/simulator.py) is not part of this: it deliberately evaluates programs independently of the generating-function code, so it can serve as an oracle.
Done when
- The Hypothesis strategies generate
prodigy.pgcl.astprograms, and the existing printers produce their.ppyand.pgcltext. - The round trip text → AST → text is tested separately, so parser and printer bugs are still found.
- The fuzzing finds the same bug classes as before.
Featureskeeps switching off known open bug classes. - Behaviour-preserving: the fuzz and simulation tests stay green and do not get slower.
🤖 Generated with Claude Code
- Dominant language
- Python
- Stars
- 6
- Forks
- 2
- Avg merge
- 1h 52m
- Merged PRs (30d)
- 187
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from LKlinke/Prodigy
-
area: engines bug priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
area: gui bug priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
area: gui bug priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
area: engines bug priority: medium
Maintainers usually reply within 1 day
-
area: maintenance priority: low
Maintainers usually reply within 1 day
Similar issues
-
docs(contributing): the two things that silently block a PRPossibly taken A pull request linked to this issue is open or already merged. Openavailable documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Nixitov/Riptide-Native#944 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
JTHCode/secretguard#24 ·
Maintainers usually reply within 1 day
-
area: middleware documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainers usually reply within 1 day