Repository navigation
Accept what the design did: fix a wrong example from the simulation - #19
Merged
Merged
Conversation
When an example fails and the design is right, "The example: use what the design did" rewrites the failing check from the simulated values: moves it a few cycles (adding a wait or shortening the one before), lengthens a wait-until, shortens a hold, or expects the value the design gave, in the same number base. It re-simulates until the example passes and lists the changes before applying them. No AI and no cost. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
A new Which is wrong? answer in the Design view's What actually happened: The example: use what the design did. When the design is right and the example's timing or value was a guess, one click rewrites the failing check from the simulation:
wait_until→ given enough cycles;expect_forthat stops holding → covers only the cycles it held;0x/0b/decimal).The changed example is simulated again (repeating for further failing checks); the changes are listed first and Change the example applies them only if the example then passes. No AI, no cost.
Files
apps/web/src/lib/fixexample.ts(new):oneFix/findFix.apps/web/src/lib/replay.ts:Replay.read(port, cycle).apps/web/src/components/Design.tsx: button, preview, apply.docs/user-guide/design-view.md; CHANGELOG.Checked
cargo fmt --check, clippy-D warnings,cargo test --workspace, web typecheck and build.🤖 Generated with Claude Code