Skip to content

Align query authority contract and spawn-time ownership#5167

Closed
nwparker wants to merge 14 commits into
nwparker/term-speed-2-view-attribute-bridgefrom
nwparker/term-speed-2-query-authority-alignment
Closed

Align query authority contract and spawn-time ownership#5167
nwparker wants to merge 14 commits into
nwparker/term-speed-2-view-attribute-bridgefrom
nwparker/term-speed-2-query-authority-alignment

Conversation

@nwparker

@nwparker nwparker commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Phase 5 slice 3 — completes the query authority phase (design: docs/reference/terminal-query-authority.md).

  • contract alignment: model/view contract invariant 6 replaced with singular structural authority (the model answers exactly the chunks the delivery gate dropped; the daemon session emulator stays write-only forever — session.test.ts assertions untouched, comments updated)
  • app-start attribute push: view attributes publish right after settings fetch, before any pane mounts — hidden-at-launch TUIs get color replies from byte one
  • mark-at-spawn: panes spawning hidden declare it through the spawn path so main owns queries before the first byte (daemon sessions marked pre-spawn via the up-front session id); codex spawns keep delivery for their startup window; spawn failure unmarks. End-to-end test: a hidden-at-spawn PTY answers DA1 on its first chunk
  • kitty re-seed parity: kittyKeyboardFlags now applied when re-seeding runtime emulators from daemon snapshots (as an unflagged write — replay-guard semantics intact), so hidden ? u probes report real flags after relaunch
  • daemon shell-ready reply queueing verified (queues, never drops; bounded by ready marker or 15s) and documented at the responder write site

Validation

  • typecheck clean; oxlint clean; 13 new tests, 2,936 green across renderer/ipc/runtime/daemon sweeps
  • e2e: hidden TUI visual restore 4/4, parking 3/3, attention + golden 2/2

Cut-off

Independently mergeable; Phase 5 complete. Phase 6 (deleting the hidden-skip grammar and the codex startup window) now has every prerequisite in place.

Made with Orca 🐋

nwparker and others added 2 commits June 10, 2026 23:32
@stage-review

stage-review Bot commented Jun 16, 2026

Copy link
Copy Markdown

Ready to review this PR? Stage has broken it down into 6 individual chapters for you:

Title
1 Codify singular structural query authority
2 Push view attributes at app start
3 Implement kitty keyboard flag re-seed parity
4 Wire initiallyHidden flag through IPC
5 Declare hidden-at-spawn in the renderer
6 Handle hidden-at-spawn in main process
Open in Stage

Chapters generated by Stage for commit 7cbd354 on Jun 17, 2026 10:14am UTC.

nwparker added 12 commits June 16, 2026 16:32
@nwparker

Copy link
Copy Markdown
Contributor Author

Closing as superseded by merged PR #7214 (merge e84a8dd), which explicitly revived the complete term-speed-2 chain into current main and added newer scheduler, flow-control, snapshot, and reliability work.

@nwparker nwparker closed this Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant