You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The coding agent produced a Snake game that has runtime JavaScript errors and renders a blank canvas. Without verification, this becomes training data that teaches the model to produce broken code. Loss going down means NOTHING if the output doesn't work.
Current State
Code generated: looks correct syntactically
Runtime errors: Cannot read properties of undefined (reading 'set') line 345, Cannot read properties of undefined (reading 'length') line 147
Visual result: blank black canvas (no snake, no food, no overlay)
Training capture: captureTraining=true saved this as a POSITIVE example — it should be NEGATIVE
What's Needed
1. Browser Console Error Capture
After the coding agent opens a file in browser:
Capture console.error and uncaught exceptions via jtag
Inject a small error collector script before loading the page
Return errors as structured data in the tool result
2. Screenshot Verification
interface/screenshot of the rendered page
VisionDescriptionService describes what it sees
Compare description against the prompt requirements
"Blank canvas" ≠ "Snake game with score display"
3. Automated Grading
Runtime errors = automatic failure
Visual mismatch = failure (blank when should be game)
Passing = no errors + visual matches description
Failed examples become negative training data (or are discarded)
4. Simulator/Emulator Testing (future)
For iOS/Android apps:
iOS Simulator driven tests (xcrun simctl)
Android Emulator driven tests (adb)
Secure enclave testing for biometric features
Screenshot capture from simulator/emulator
Same visual verification pipeline
5. Fix-and-Retry Loop
When verification fails:
Feed errors back to the coding agent
"Your code has these errors: [errors]. The screenshot shows: [description]. Fix it."
Retry up to N times
Only successful, verified code becomes training data
The Rule
No blind training. Every code example must be:
Executed (not just compiled)
Visually verified (screenshot + description)
Error-free (no console errors, no crashes)
Functionally correct (output matches prompt)
Training on unverified code is training on garbage.
Beyond just loading + error capture, the teacher needs to INTERACT with the output:
Game testing:
Load → screenshot start screen
Press arrow key → screenshot gameplay
Wait for food collision → screenshot score change
Die → screenshot game over screen
Each checkpoint graded: does it look right?
App testing:
Load → screenshot initial state
Click buttons → screenshot state changes
Fill forms → submit → screenshot result
Navigate tabs → screenshot each view
The pattern: Playwright actions (click, type, press, wait) + screenshots at key moments = visual test trace. The teacher reviews the trace, not just the code.
This is TDD for visual output. The test IS the interaction. The grade IS the screenshot comparison.
Claude can screenshot but can't judge visual quality — corrupted vertices look like 'pixels' to an LLM. Need automated visual regression:
Capture known-good reference screenshots for each avatar tile
On each deploy/change, screenshot current state
Pixel diff (or perceptual hash diff) against reference
Threshold exceeded → flag as regression
Tools: Playwright + pixelmatch (npm), or Percy/Chromatic-style snapshot testing. This is standard visual regression testing applied to 3D avatar rendering.
This would have caught the vertex corruption automatically.
Activity
Add development/verify-web: Playwright headless browser verification (#…
Add development/verify-web: Playwright headless browser verification (#…
joelteply commentedon Mar 25, 2026
Interaction testing for Academy evaluation:
Beyond just loading + error capture, the teacher needs to INTERACT with the output:
Game testing:
App testing:
The pattern: Playwright actions (click, type, press, wait) + screenshots at key moments = visual test trace. The teacher reviews the trace, not just the code.
This is TDD for visual output. The test IS the interaction. The grade IS the screenshot comparison.
Playwright already supports all of this:
The coding agent should WRITE these interaction tests as part of its output. The verify command runs them. The teacher sees the screenshots.
joelteply commentedon Mar 26, 2026
Visual regression testing for avatar/3D quality:
Claude can screenshot but can't judge visual quality — corrupted vertices look like 'pixels' to an LLM. Need automated visual regression:
Tools: Playwright + pixelmatch (npm), or Percy/Chromatic-style snapshot testing. This is standard visual regression testing applied to 3D avatar rendering.
This would have caught the vertex corruption automatically.
Fix verify-web command: rename hyphenated files for auto-discovery
Update gap analysis: Ares, Grid experiment, onboarding crisis, issue map
Update gap analysis: Ares, Grid experiment, onboarding crisis, issue …
fix(benchmark): a kickoff addressed to a citizen must never be AUTHOR…
fix(cognition): a citizen's own lived turns become curriculum — produ…