← Back to Pull requests

test: name the Godot probe inbox type #536

Merged
wallstop merged 1 files (18 lines) on Nov 22, 2026 20:17 UTC
View on GitHub
wallstop wallstop commented on Nov 22, 2026 20:07 UTC
Author

Description

Post-merge red-main follow-up for #535 (22b88948). The Godot Emscripten Browser job failed at Lint Godot fixture with:

error: very complex type used. Consider factoring parts into `type` definitions
  --> tests/godot-emscripten/src/lib.rs:213:28
note: `-D clippy::type-complexity` implied by `-D warnings`

The new probe plumbing returned two Rc<RefCell<VecDeque<(u8, Vec<u8>)>>> inboxes directly from create_socket_pair. This is a test-only type alias change; behavior is unchanged.

  • Added type Inbox = Rc<RefCell<VecDeque<(u8, Vec<u8>)>>>;.

  • Used it in MemorySocket, SessionPair, and create_socket_pair.
  • Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)

  • ✨ New feature (non-breaking change that adds functionality)

  • 💥 Breaking change (fix or feature that would cause existing functionality to change)

  • 📚 Documentation (changes to documentation only)

  • ♻️ Refactor (code change that neither fixes a bug nor adds a feature)

  • 🧪 Test (adding or updating tests)

  • 🔧 CI/Build (changes to CI configuration or build process)
  • Checklist

    Required

  • I have read the [CONTRIBUTING guide](../docs/contributing.md)

  • I have followed the zero-panic policy (test-only type alias)

  • I have added tests that prove the fix is effective (the existing Godot probe compiles under the failing lint)

  • I have run cargo fmt --all -- --check and clippy with no warnings

  • I have run the full workspace test suite (unchanged; one test-only type alias)
  • If Applicable

  • I have updated the documentation accordingly (not applicable)

  • I have added an entry to CHANGELOG.md (test-only; not required)

  • I have updated relevant examples in the examples/ directory (not applicable)

  • My changes generate no new compiler warnings
  • Testing

    | Check | Result |
    | --- | --- |
    | cargo +nightly-2026-08-26 clippy --manifest-path tests/godot-emscripten/Cargo.toml --locked --all-targets --all-features -- -D warnings | clean |
    | Godot host cargo check | pass |
    | Godot wasm32-unknown-emscripten cargo check | pass |
    | cargo fmt --all -- --check | pass |

    This is exactly the failing CI command/toolchain, now green locally.

    Risks and rollback

  • Test-only type alias; no runtime or wire behavior change.

  • Roll back by reverting this PR; the old complex return type returns and the Godot lint fails again.
  • Related Issues

  • Post-merge red-main follow-up to #535 / #522.
  • Diff: 18 lines (+7 / -11) across 1 files Reviewer: github-actions[bot] Review duration: 9m
    All Vouch review confidence checks passed
    Residual risk 0.09 = Change Risk (0.31) × (1 − Review Confidence (0.72)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.31 · 18 lines diff across 1 files
    0.31
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.64 · 2 substantive comment(s)
    0.64
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    71%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.176
    Rapid Merge rapid_merge
    0.100
    Real PR Conversation Timeline
    5 items
    github-actions[bot] github-actions[bot] commented on Nov 22, 2026 20:08 UTC
    Bot

    <!-- changelog-reminder-bot -->

    📝 Changelog Reminder

    This PR does not appear to update CHANGELOG.md.

    If this PR includes user-facing changes, please consider adding an entry to the changelog under the appropriate section:

  • Added - New features

  • Changed - Changes in existing functionality

  • Deprecated - Soon-to-be removed features

  • Removed - Removed features

  • Fixed - Bug fixes

  • Security - Vulnerability fixes
  • You can skip this reminder by adding one of these labels: skip-changelog, dependencies, chore, ci, internal

    <details>
    <summary>When is a changelog entry needed?</summary>

    A changelog entry is typically needed for:

  • New public API methods or types

  • Bug fixes that affect users

  • Performance improvements

  • Breaking changes

  • New features or configuration options
  • A changelog entry is typically NOT needed for:

  • Internal refactoring with no API changes

  • CI/tooling improvements

  • Documentation fixes (unless significant)

  • Test additions/fixes
  • </details>

    ---
    This is an automated reminder. The PR will not be blocked by this check.

    github-actions[bot] github-actions[bot] commented on Nov 22, 2026 20:08 UTC
    Reviewer

    DISCLOSURE: LLM-GENERATED TEXT

    OpenAI review: 0 findings.

    The alias substitution preserves the existing types and behavior. No defects found.

    <sub>2512 in, 147 out tokens. Comments only; this review never blocks a merge.</sub>

    <!-- openai-review-run: {"v":2,"workflow_sha":"d8aab4dc3655924360ff17ebb04bbc3a844a493f","coverage":"full-eligible-diff","duration_seconds":4.955,"cache_write_tokens":2509,"cache_write_tokens_details":{"ttl_12h_tokens":0,"ttl_30m_tokens":2509},"model":"gpt-6-luna","effort":"default","input_tokens":2512,"output_tokens":147,"reasoning_tokens":117,"findings":0,"inline":0,"diff_chars":1774,"dropped_files":0,"cached_tokens":0,"unchanged_files":0,"usage_complete":true} -->

    <!-- openai-review:5d775c5de71603194cf2829bddf071cbf7109b06 -->

    coderabbitai[bot] coderabbitai[bot] commented on Nov 22, 2026 20:08 UTC
    Bot

    <!-- coderabbit-ai-generated:v1 -->

    <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
    <!-- review_stack_entry_start -->

    <a href="https://app.coderabbit.ai/change-stack/Ambiguous-Interactive/fortress-rollback/pull/536?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg" alt="Explain Change →" height="32"></picture></a>

    <!-- review_stack_entry_end -->
    <!-- recent_review_status_start -->

    No actionable comments were generated in the recent review.

    <!-- recent_review_status_end -->
    <!-- walkthrough_start -->

    <details>
    <summary><strong>Walkthrough</strong></summary>
    <dl>
    <dd>
    <br>

    The Godot test fixture adds a private Inbox alias and uses it for inbox fields and return types. Runtime behavior remains unchanged.

    Changes: Godot fixture type declarations

    |Layer / File(s)|Summary|
    |:---|:---|
    |Apply the Inbox alias <br> tests/godot-emscripten/src/lib.rs|MemorySocket and SessionPair fields, plus the inbox return types of create_socket_pair, use the shared Inbox alias. Function behavior is unchanged.|

    Estimated code review effort: 1 (Trivial) | ~3 minutes

    Possibly related PRs

  • Ambiguous-Interactive/fortress-rollback#535: Adds Godot/Emscripten replay and hot-join probes in the fixture that this PR updates.
  • </dd>
    </dl>
    </details>

    <!-- walkthrough_end -->
    <details>
    <summary><strong>Merge Risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-unassessed-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minimal</strong> · up to <code>5d775</code></summary>
    <dl>
    <dd>
    <br>

    <!-- final_review_risk_start -->
    <!-- final_review_risk_label
    Merge Risk: ⚪ Minimal · up to 5d775
    -->
    <!-- final_review_risk_coverage:{"sourceCommitId":"5d775c5de71603194cf2829bddf071cbf7109b06","coveredCommitId":"5d775c5de71603194cf2829bddf071cbf7109b06","kind":"reviewed"} -->

    This test-only type alias has no behavior change. It fixes the CI lint failure in the Godot fixture and is low risk to merge.
    <!-- final_review_risk_end -->

    </dd>
    </dl>
    </details>
    <!-- pre_merge_checks_walkthrough_start -->

    <details>
    <summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 4</strong></summary>
    <dl>
    <dd>
    <br>

    | Check name | Status | Explanation |
    | :------------------------ | :--------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | Title check | !Passed | The title names the change: a test-only type alias for the Godot probe inbox type. The raw summary confirms the alias 'Inbox' is introduced and used for MemorySocket, SessionPair, and create_socket_pa… |
    | Description check | !Passed | The description explains the post-merge CI lint failure (clippy type-complexity under Godot Emscripten fixture lint), states the added Inbox type alias, and lists the files and uses it affects. This m… |
    | Linked Issues check | !Passed | Check skipped because no linked issues were found for this pull request. |
    | Out of Scope Changes check | !Passed | Check skipped because no linked issues were found for this pull request. |

    <details>
    <summary><strong>Full details: Title check</strong></summary>
    <dl>
    <dd>
    <br>

    Explanation

    The title names the change: a test-only type alias for the Godot probe inbox type. The raw summary confirms the alias 'Inbox' is introduced and used for MemorySocket, SessionPair, and create_socket_pair. The title is specific and matches the main change, though it does not mention the lint fix that motivated it.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: Description check</strong></summary>
    <dl>
    <dd>
    <br>

    Explanation

    The description explains the post-merge CI lint failure (clippy type-complexity under Godot Emscripten fixture lint), states the added Inbox type alias, and lists the files and uses it affects. This matches the raw summary and objectives, so it is related to the changeset.

    </dd>
    </dl>
    </details>

    </dd>
    </dl>
    </details>

    <!-- pre_merge_checks_walkthrough_end -->
    <!-- autopilot:start -->

  • <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autofix</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

  • <!-- autopilot:end -->
    <!-- recent_review_start -->

    <h6>
    <!-- review_details_start -->

    <details>
    <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/review-details-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/review-details.svg" width="12" height="12" align="absmiddle" alt=""></picture> Recent review details</strong></summary>
    <dl>
    <dd>
    <br>

    <details>
    <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/clock-alert-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/clock-alert.svg" width="16" height="16" align="absmiddle" alt=""></picture> Context from checks skipped due to timeout: 8</strong></summary>
    <dl>
    <dd>
    <br>

    GitHub Check: CodeRabbit
    GitHub Check: Script Tests & Wiki Dry-Run
    GitHub Check: Fast Gate (Linux)
    GitHub Check: Network Tests (ubuntu-latest)
    GitHub Check: Unsafe Code Audit
    GitHub Check: Network Tests (windows-latest)
    GitHub Check: Network Tests (macos-latest)
    GitHub Check: Network Tests (Docker)

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/layers-plus-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/layers-plus.svg" width="16" height="16" align="absmiddle" alt=""></picture> Additional context used</strong></summary>
    <dl>
    <dd>
    <br>

    <details>
    <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/book-open-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/book-open.svg" width="16" height="16" align="absmiddle" alt=""></picture> Code guidelines: 4</strong></summary>
    <dl>
    <dd>
    <br>

    .agents/skills/fortress-development/SKILL.md — Agent Skill
    .agents/skills/workspace/SKILL.md — Agent Skill
    .agents/skills/testing/SKILL.md — Agent Skill
    .agents/skills/performance/SKILL.md — Agent Skill
    

    </dd>
    </dl>
    </details><details>
    <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/route-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/route.svg" width="16" height="16" align="absmiddle" alt=""></picture> Path-based instructions: 5</strong></summary>
    <dl>
    <dd>
    <br>

    <details>
    <summary><strong>Applicability reference: AGENTS.md: # OpenAI Agents Instructions for Fortress Rollback Read and follow [.agents/skills/fortress-development/SKILL.md](.agents/skills/fortress-development/SKILL.md) — the canonical source of truth for al...</strong></summary>
    <dl>
    <dd>
    <br>

    CodeRabbit inference engine (.agents/skills/fortress-development/SKILL.md)

    Files:

  • tests/godot-emscripten/src/lib.rs
  • </dd>
    </dl>
    </details>
    <details>
    <summary><strong>Source excerpt: Keep lib.rs as a coordinator (~100 lines) with mod declarations and pub use re-exports.</strong></summary>
    <dl>
    <dd>
    <br>

    CodeRabbit inference engine (.agents/skills/workspace/SKILL.md)

    Files:

  • tests/godot-emscripten/src/lib.rs
  • </dd>
    </dl>
    </details>
    <details>
    <summary><strong>Source excerpt: | Location | Purpose | Notes | |----------|---------|-------| | tests/common/mod.rs | Shared helpers | Never put helpers directly in tests/ |</strong></summary>
    <dl>
    <dd>
    <br>

    CodeRabbit inference engine (.agents/skills/testing/SKILL.md)

    Files:

  • tests/godot-emscripten/src/lib.rs
  • </dd>
    </dl>
    </details>
    <details>
    <summary><strong>Source excerpt: Each file in tests/ compiles as a separate crate.</strong></summary>
    <dl>
    <dd>
    <br>

    CodeRabbit inference engine (.agents/skills/workspace/SKILL.md)

    Files:

  • tests/godot-emscripten/src/lib.rs
  • </dd>
    </dl>
    </details>
    <details>
    <summary><strong>Source excerpt: | Technique | Impact | Notes | |-----------|--------|-------| | Faster linker (mold/lld) | 2-10x linking | Always use if available | Source excerpt: | Technique | Impact | Notes | |-----------|--------|-------| | Remove unus...</strong></summary>
    <dl>
    <dd>
    <br>

    CodeRabbit inference engine (.agents/skills/performance/SKILL.md)

    Files:

  • tests/godot-emscripten/src/lib.rs
  • </dd>
    </dl>
    </details>

    </dd>
    </dl>
    </details>

    </dd>
    </dl>
    </details>

    </dd>
    </dl>
    </details>

    <!-- review_details_end -->
    </h6>

    <!-- recent_review_end -->

    coderabbitai[bot] coderabbitai[bot] approved these changes on Nov 22, 2026 20:10 UTC
    Approved Reviewer

    Approved these changes.

    Assignees
    wallstop wallstop
    Labels
    risk: low confidence: 71.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 30.6% (LOW) · Higher = larger blast radius
    30.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 71.8% · Lower = rushed or shallow review
    71.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 8.6% · Safe to merge
    8.6%