Skip to content

checklocks: enforce terminal state locks - #14291

Closed
tamird wants to merge 1 commit into
google:masterfrom
tamird:checklocks-devpts-line-state
Closed

checklocks: enforce terminal state locks#14291
tamird wants to merge 1 commit into
google:masterfrom
tamird:checklocks-devpts-line-state

Conversation

@tamird

@tamird tamird commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Enforce the existing locks for terminal configuration, size, replica count, and packet-mode status. Declare the termios and queue requirements through reads, writes, character processing, and buffered input transfer.

Keep the interface transformation preconditions explicit in prose: the checker verifies concrete implementations but does not propagate their contracts through interface dispatch. Retain queue and cursor ownership comments where callback and receiver aliasing prevent field annotations.

Assisted-by: Codex

@tamird

tamird commented Aug 22, 2026

Copy link
Copy Markdown
Contributor Author

r? @EtiennePerot Could you review terminal state, queue transformations and notification ownership?

Focused local Bazel checks passed. Upstream checks are pending.

Assisted-by: Codex

Enforce the existing locks for terminal configuration, size, replica
count, packet-mode status, queue buffers, and cursor position. Declare
the termios and queue requirements through reads, writes, character
processing, and buffered input transfer.

Keep interface transformation requirements explicit: checklocks verifies
concrete implementations but does not propagate their contracts through
interface dispatch. Annotate both paths to the output queue mutex and
limit callback exceptions to accesses made by synchronous userspace
copies while the queue mutex is held.

Assisted-by: Codex
@tamird
tamird force-pushed the checklocks-devpts-line-state branch from 864938c to 47917b4 Compare August 22, 2026 16:19
@tamird

tamird commented Aug 23, 2026

Copy link
Copy Markdown
Contributor Author

Closing in favor of consolidated #14343. The expanded replacement commits are prepared locally; the replacement branch has not been pushed yet.

Assisted-by: Codex

@tamird tamird closed this Aug 23, 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