Skip to content

feat(id): scaffold terminal capability profile and transcript harness - #3929

Merged
dezren39 merged 5 commits into
mainfrom
queue/5877-786-terminal-capability-profile
Nov 3, 2026
Merged

dezren39 merged 5 commits into
mainfrom
queue/5877-786-terminal-capability-profile

Conversation

@dezren39

@dezren39 dezren39 commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Summary

SSH / iroh adapter (later phase)
  -> injectable TerminalIo
  -> bounded probe transcript
  -> local TerminalProfile -> Tier 1 / 2 / 3
                         -> replay unmatched bytes unchanged

Adds the Phase 1 scaffolding in pkgs/id/src/world_terminal.rs: independent graphics/synchronized-output/Kitty-keyboard profile bits, tier selection, an injectable I/O seam, bounded transcript parsing, replay preservation, and frame/byte counters. It is not wired into either runtime adapter, so this PR sends no terminal queries and changes no shell-contract or journal behavior. The transcript fixtures use protocol replies checked against the XTerm and Kitty references.

Part of #786; this is Phase 1 only.

Evidence

  • Before: no local capability profile, tier classifier, or transcript harness in pkgs/id.
  • After: standalone transcript harness tests cover Tier 1/2/3, no reply, malformed/partial/late replies, interleaved input replay, conflicting evidence, and counters: 7 passed (rustc --edition 2024 --test pkgs/id/src/world_terminal.rs).
  • Package test: cargo test -p id --lib --no-default-features --features ssh world_terminal::tests:: is blocked by two pre-existing compile errors in untouched files: cross-crate private render_ansi_diff use in world_ssh.rs and the russh auth_publickey signature mismatch. The same errors reproduce on clean main at 26bed62b.
  • Status: draft until the base compile blockers are fixed and the package test/CI can run.

Merge Danger

Door: two-way — the new module is crate-private scaffolding and is not called by runtime presenters.

Blast Radius: low

@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 42 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0a0aea92-bba2-4e9a-ae0e-963a8516d4ee
Commits

Reviewing files that changed from the base of the PR and between d4d7834 and 094c541.

Files selected for processing: 2
  • pkgs/id/src/lib.rs
  • pkgs/id/src/world_terminal.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@dezren39

dezren39 commented Nov 2, 2026

Copy link
Copy Markdown
Member Author

Status update (task 5877, lane C): branch synced to current main — merge commit ae2a15e (base aa4fbe8), no conflicts; diff vs main is still only pkgs/id/src/lib.rs (+2) and pkgs/id/src/world_terminal.rs (+552).

Verification at ae2a15e:

  • Standalone transcript harness: rustc --edition 2024 --test pkgs/id/src/world_terminal.rs — 7 passed, 0 failed.
  • Package test (cargo test --lib --no-default-features --features ssh world_terminal) still cannot compile — the same two pre-existing errors in untouched src/world_ssh.rs: E0624 render_ansi_diff is pub(crate) in crates/id-core (world_ssh.rs:921) and E0053 auth_publickey signature vs russh 0.65's VerifiedPublicKey<'_> (world_ssh.rs:308).
  • Proven pre-existing: the identical two errors reproduce on a clean origin/main checkout (bd0465e) with the same command. Both are tracked as id(world_ssh): crate does not compile with the ssh feature — render_ansi_diff visibility + russh auth_publickey signature #3962.

Staying draft and parked until #3962 lands; then the package test can run and this PR can be marked ready. Worktree preserved at ~/git/fleet/5877-786-phase1.

@dezren39 dezren39 added work/assigned Queue worker lifecycle state queue/parked Queue task is parked (waiting on CI, time, or an event) status/parked Deliberately paused with a recorded resume condition labels Nov 2, 2026
@dezren39

dezren39 commented Nov 2, 2026

Copy link
Copy Markdown
Member Author

Binding note — task 5877 (lane F correction)

PR #3929 is task 5877's own work product (head branch queue/5877-786-terminal-capability-profile, from the task's first attempt); the park note on issue #786 wrongly said no covering PR existed — that search output was corrupted. Fresh state (2026-11-02 15:40Z): OPEN, mergeable CLEAN, Codex review completed for head 60a83dd8 with no findings, guard and world-snapshot-determinism checks PASS, and the prior holder recorded cargo test -p id world_terminal: 6 passed.

Task 5877 is parked until ~15:53Z on the laptop load gate. Its next claim should: re-verify this PR fresh, merge it (merge commit), then complete task 5877 and enqueue the Phase 2 packet under issue #786 per the packet acceptance — not re-implement Phase 1.

@dezren39

dezren39 commented Nov 2, 2026

Copy link
Copy Markdown
Member Author

Check-state correction (lane F): the binding note above cited guard + world-snapshot-determinism as PASS — that was an earlier run. The latest run (41431924500) shows native arm64: world snapshot determinism FAILED (2s) and basic: guard PR check list still pending, mergeable UNKNOWN at last read. The 2s duration suggests a possible runner/infra failure rather than a substantive determinism break, but it is NOT dispositioned: the next claim of task 5877 must read that run's log first, disposition the failure (re-run if infra, fix if real), and only merge PR #3929 once checks are green on the current head — do not merge on the strength of the earlier note.

@dezren39
dezren39 marked this pull request as ready for review November 3, 2026 14:19
@dezren39
dezren39 requested a review from a team as a code owner November 3, 2026 14:19
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-03T14:19:59.314044Z
We couldn’t complete this review. Comment @codex review to try again.
094c541 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@dezren39
dezren39 merged commit 38eba55 into main Nov 3, 2026
4 of 5 checks passed
@dezren39
dezren39 deleted the queue/5877-786-terminal-capability-profile branch November 3, 2026 14:20
@dezren39 dezren39 removed status/parked Deliberately paused with a recorded resume condition queue/parked Queue task is parked (waiting on CI, time, or an event) work/assigned Queue worker lifecycle state labels Nov 3, 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