Add Clayterm current-state specification#5
Merged
Conversation
commit: |
4158ad1 to
e31bd93
Compare
cowboyd
reviewed
Apr 10, 2026
Contributor
cowboyd
left a comment
There was a problem hiding this comment.
This is good. Left the feedback, I think we need to use "directive" instead of "descriptor" because they are command-like open() / close()
Adds the v0.1 draft specification covering the architectural model, core invariants, public rendering API, descriptor model, and boundary responsibilities. Non-normative sections document settling surfaces (transfer encoding, input parsing, pointer events) separately from the stable rendering core.
e31bd93 to
30b0eef
Compare
This was referenced Apr 17, 2026
- Replace "descriptor" terminology with "directive" throughout - Rename open() `name` parameter to `id` in spec - Fix buffer diffing description: cells are copied, not swapped - Add note that pointer hit detection requires render loop participation - Reframe border-layout interaction as Clay's intended behavior - Update WASM loading to reflect inlined base64 binary - Move output buffer lifetime guarantee to normative section - Clarify pack() is internal, validate() is public API
c4bdca1 to
04d4517
Compare
Separate the combined spec into two documents aligned with INV-8 (architectural independence of rendering and input parsing): - renderer-spec.md: rendering contract, directive model, rendering modes (cursor update + line mode), pointer hit-testing - input-spec.md: input parser API, scan model, InputEvent types Also adds normative specification of cursor update mode (default) and line mode with row offset to the renderer spec.
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
specs/clayterm-spec.md) documenting Clayterm's rendering contract, architectural model, core invariants, and public API surfaceTest plan