Add scrapyard-robot example: a tile-brain as a Quilt sheet - #14
Merged
Merged
Conversation
Re-expresses the Scrapcraft robot brain in Quilt's own cell model, and makes runnable the two positions offered back to the schema in COORDINATION_WITH_SCRAPCRAFT.md: - explain.why — a "ledger of cause": a program cell that reads the senses, the threshold, and the controller's output and returns a plain-English reason for the last decision. - predict.next — a "visible JEPA": a one-step forward model, so a child can watch plan vs. path. The sheet is a full reactive stack: sensors -> a pure decision graph (formulas) -> a deterministic controller (program) -> actuators (io), with a crash-risk listener. Edit cfg.wall_threshold and the decisions, the reasons, and the predictions all recompute. Adds sheet.yaml, demo.ts, and a README; registers the example in the end-to-end examples test (seeded distance/line inputs); links it from the examples index. Idioms (listener condition, io out, program runtime.get) mirror the existing tested examples. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JV2C8fnD86DNwXoyHPd7X9
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.
Re-expresses the Scrapcraft robot brain in Quilt's own cell model, and makes runnable the two positions offered back to the schema in COORDINATION_WITH_SCRAPCRAFT.md:
The sheet is a full reactive stack: sensors -> a pure decision graph (formulas) -> a deterministic controller (program) -> actuators (io), with a crash-risk listener. Edit cfg.wall_threshold and the decisions, the reasons, and the predictions all recompute.
Adds sheet.yaml, demo.ts, and a README; registers the example in the end-to-end examples test (seeded distance/line inputs); links it from the examples index. Idioms (listener condition, io out, program runtime.get) mirror the existing tested examples.
Claude-Session: https://claude.ai/code/session_01JV2C8fnD86DNwXoyHPd7X9
What
A short description of what this PR does.
Why
The motivation. What problem does this solve? Link any related issues.
How
The technical approach. Any design decisions worth calling out.
Testing
How did you verify this works? Which examples did you run? Which tests pass?
Checklist
npm test)quilt run examples/*)