ποΈ Define interactive terminal grid architecture (#717) - #734
Open
taras wants to merge 1 commit into
Open
Conversation
PR #734: ποΈ Define interactive terminal grid architecture (#717)3 files, +777 / -34 Scopeπ΄ PR has 811 lines changed. Split into focused PRs. π‘ 811 lines changed. PRs under 400 receive more thorough review. Structuralβ No structural bloat detected. Slopβ Slop indicators look low. Static Analysisβ Oxlint found no issues. CorrectnessNo extraneous code patterns detected. |
This was referenced Sep 2, 2026
taras
force-pushed
the
architect/717-terminal-grid-contract
branch
from
September 7, 2026 11:41
736b909 to
ce5f52b
Compare
4 tasks
taras
force-pushed
the
architect/717-terminal-grid-contract
branch
from
September 10, 2026 13:43
ce5f52b to
f079644
Compare
taras
force-pushed
the
architect/717-terminal-grid-contract
branch
from
September 10, 2026 16:28
f079644 to
3d0341f
Compare
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.
Architecture base for Quest #717. This PR changes contracts only; implementation begins in #733.
Why
Executable documents need one provider-neutral contract for presenting several interactive panes concurrently. The contract must cover authored structure, native Agent sessions, foreground ownership, replay, and teardown before independent implementation layers can compose safely.
What changes
Before, PR #727 proved that persistent tmux pane workers were feasible, but the repository did not define which layer owned the document syntax, pane lifecycle, provider authority, durable state, or teardown outcome.
After, the architecture and specifications define one interactive-grid lifecycle:
The contract requires static row-major layout, isolated concurrent pane execution, spawn-event readiness, atomic attachment, independent post-attach settlement, durable replay, pane-scoped native launch, and complete provider teardown.
Final naming
This layer's exact diff uses the provisional names
<Terminal.Grid>and<Terminal>. The accepted amendment in #781, merged into the final #717 branch through PR #797, renames the shipped surface to<Grid>and<Pane>and the packages to@executablemd/gridand@executablemd/grid-tmux. No compatibility aliases ship.The lifecycle and ownership contract established here is unchanged by that rename.
Review guide
Start with
architecture.mdand then read the grid sections ofspecs/executable-mdx-spec.mdandspecs/native-agent-session-launch-spec.md.Verify that:
Evidence and scope
git diff --checkis the focused check for this documentation-only layer. Stories #729β#732 provide the executable evidence, and #781 applies the final public vocabulary and package boundary.No parser, runtime, launcher, provider, or tmux production code is added here.
Stack order: #734 β #733 β #738 β #741 β #747 β #771.