Skip to content

ARCH-09c: move PTY IPC wrappers into ipc/pty leaf - #269

Merged
mergify[bot] merged 1 commit into
mainfrom
claude/arch-09c-ipc-pty
Oct 5, 2026
Merged

mergify[bot] merged 1 commit into
mainfrom
claude/arch-09c-ipc-pty

Conversation

@Cuarroc

@Cuarroc Cuarroc commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

Dieses Paket verschiebt nur die sieben PTY-Funktionen der Frontend-Schnittstelle in eine eigene Datei, ohne ihr Verhalten zu ändern. Alle bisherigen Importe aus ipc funktionieren unverändert weiter. Der PR bleibt ein Entwurf mit do-not-merge, bis der Koordinator die Prüfung der Stufe B eingereiht und das Label entfernt hat.

Report

What changed. Moved spawnPty, writePty, resizePty, killPty, getScrollback, onPtyOutput and onPtyExit verbatim from src/lib/ipc.ts into the new leaf src/lib/ipc/pty.ts. ipc.ts stays the public barrel and re-exports all seven names. Dropped the now-unused PtyExitPayload/SpawnPtyResult type imports from the barrel. No leaf-to-barrel import. Non-PTY APIs stay in the barrel.

Status check against current main (2026-10-05). origin/main d01bc55. The PTY wrappers in src/lib/ipc.ts are unchanged on main since the merge base 7ea73b2; the change is not obsolete. git merge-tree --write-tree HEAD origin/main exits 0 (no conflict), so main was not merged into the branch. Dependabot #57 (@tauri-apps/api) is MERGED. No code change in this round.

  • Candidate: ee4a12dad0739c84253cc9cb105a4c344ae710e9
  • Diff: 2 files, +58 / −47 (105 lines)
  • Trailer: No-Test (mechanical move)

Evidence.

  • bash scripts/ci/gates.sh lane prepush at ee4a12d → exit 0 (typecheck, lint, fe-test, hq-test, clippy, rust-suite all green; 208 s)

Architecture drift. None flagged.

NICHT ABGEDECKT.

  • #[cfg(windows)] tests (run_in_pty, npm_shim, ConPTY, DPAPI) and Windows arms of clippy; the Windows lane runs in the merge queue.
  • Browser smoke, frontend build and workflow gates (only in lane linux).
  • No runtime/desktop-app check; the seven wrappers have no direct tests (before or after the move).

Review. Earlier rounds (bound to ee4a12d): Astra round 1 PASS, GLM 5.2 round 2 PASS with one LOW finding (no direct wrapper tests; accepted, no code change). Current status: Review: ausstehend (Stufe B, coordinator).

Review disposition

  • Reviewer: Stufe B, model actually running: Claude Sonnet 5.5 (same family as the author, NOT the Codex reviewer the brief named; the family-independence requirement of rule 5 is therefore not met by this entry and the coordinator should weigh it accordingly). Candidate ee4a12dad0739c84253cc9cb105a4c344ae710e9.
  • Phase 1 (find): diff checked line by line; the seven wrappers are byte-identical moves (multiset of +/- lines differs only by imports/re-export). Leaf imports only @tauri-apps/api and ../../types (same shape as ipc/projects.ts, ipc/workers.ts), no leaf-to-barrel import, barrel re-exports all seven names. Architecture drift: none (existing leaf pattern reused; no new IPC names, events or state handling). Note: scripts/ci/architecture-drift.mjs is not yet on this branch (base predates it), so the gate was not run.
  • Phase 2 (refute): no findings survived; none to fix.
  • Observed: npx tsc --noEmit exit 0, npx eslint src/lib/ipc.ts src/lib/ipc/pty.ts exit 0, npx vitest run src/lib exit 0 (22 files, 184 tests), git merge-tree --write-tree HEAD origin/main exit 0.
  • Earlier LOW finding (no direct wrapper tests): accepted by the author, unchanged.
  • No code change, no new commit.

Prompt-Log

  • Draft: check PR text vs main; verify wrappers unchanged on main; conflict test; prepush; update PR body. No code change.
  • Critique: merging main without a conflict is forbidden by the brief; a new test would break the 'mechanical move' scope; the old Tier-A/Dependabot blockers are outdated.
  • Final: as drafted; no merge, rerun prepush at unchanged HEAD, refresh body.

🤖 Generated with Claude Code

Review disposition (round 2, corrected 05.10.)

The earlier review-B job ran on claude-sonnet (same family as the author, server reroute); replaced by this review (AGENTS.md rule 5).

  • Reviewer: kimi-k3 (Ollama Cloud), candidate ee4a12d; driver: orchestrator (Claude, driver only).
  • F1 (low, no new test): rejected - verbatim move of seven wrappers plus a re-export barrel; the re-export surface is checked by typecheck in the gates, no behaviour changed.
  • F2 (low, re-export creates no local bindings in ipc.ts): checked - typecheck in gates (linux) passed on this head (run 37325930398), so no remaining internal reference is broken.
  • Verdict: approve with conditions; conditions met.

Mechanical move of spawnPty, writePty, resizePty, killPty, getScrollback,
onPtyOutput and onPtyExit; ipc.ts re-exports them unchanged.

No-Test: mechanical move, covered by existing ipc.test.ts and type check

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Cuarroc Cuarroc added the do-not-merge Keep this pull request out of the merge queue label Oct 4, 2026
@Cuarroc
Cuarroc marked this pull request as ready for review October 5, 2026 14:35
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Cuarroc Cuarroc added do-not-merge Keep this pull request out of the merge queue review-ok Pipeline: review disposition complete, no open high finding and removed do-not-merge Keep this pull request out of the merge queue labels Oct 5, 2026
@Cuarroc

Cuarroc commented Oct 5, 2026

Copy link
Copy Markdown
Owner Author

@Mergifyio queue

@mergify mergify Bot added the queued label Oct 5, 2026
@mergify mergify Bot mentioned this pull request Oct 5, 2026
12 tasks done
@mergify
mergify Bot merged commit 5796236 into main Oct 5, 2026
15 checks passed
@mergify
mergify Bot deleted the claude/arch-09c-ipc-pty branch October 5, 2026 15:47
@mergify

mergify Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 14 minutes 7 seconds in the queue, including 13 minutes 47 seconds running CI.

Required conditions to merge

@mergify mergify Bot removed the queued label Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-ok Pipeline: review disposition complete, no open high finding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant