Add problem automation contract and validator#63
Open
saarang123 wants to merge 1 commit intotensara:mainfrom
Open
Add problem automation contract and validator#63saarang123 wants to merge 1 commit intotensara:mainfrom
saarang123 wants to merge 1 commit intotensara:mainfrom
Conversation
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
Why
The goal is to make tensara/problems much more agent-friendly and support reliable automated problem growth.
This PR is the first layer:
It is intentionally contract-first and backward-compatible, not a broad migration.
Included
Validation Model
This PR defines a 3-tier validation model:
That means cheap local GPU checks are still useful, but long-term runtime truth should come from the same Modal-backed path used by the real product.
What validate_problem.py does
Structural mode checks:
Runtime mode is designed to validate problem behavior, not just schema:
Today:
Backward Compatibility
Validation
Ran:
python3 scripts/validate_problem.py --runtime none --format text
Result on current main corpus:
Also verified:
python3 scripts/validate_problem.py relu --runtime none --format json
So the validator is working both as a human-readable structural checker and as a machine-readable surface for agents.
Follow-up
This PR does not yet make Modal validation the default enforcement path in CI. The next step should be wiring the real Modal/sample/checker runtime into the automation flow so product-runtime validation becomes part of the actual merge
pipeline.
If you want, I can also give you a shorter reviewer-oriented version.