Skip to content

fleet gh: read-only identity fallback for GraphQL 'Could not resolve to a node' on board reads #12154

Closed

Description

@dezren39

Follow-up from PR #12126 (Codex P2 on collect-fleet-feed.ts). is_read_call() in pkgs/fleet/crates/fleet/src/gh.rs (~line 296) classifies any gh api call containing -f/-F as a write, so GraphQL board reads never reach the owner-specific App identity fallback. classify_failure() also does not recognise the hidden-node error (Could not resolve to a node) as a permission refusal. Related: #9062, #9060.

Activity

  1. developing-today commented on Nov 21, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Codex review on PR #12409 answered — the one open thread is fixed and resolved.

    Finding (P1): node-resolution errors must not authorize write retries — a batched mutation could replay and duplicate an already-created comment.

    Fix (commit 178dcde, branch xaltha/fleet-gh-hidden-node): new FailureClass::NodeResolution in pkgs/fleet/crates/fleet/src/gh.rs — classify_failure returns it for "Could not resolve to a node" instead of Permission, and may_retry repeats it only for read-only calls. Deliberately no "whole write was refused" path: the error text alone cannot prove no earlier field executed. New fake-gh end-to-end test write_not_repeated_on_node_resolution_failure proves a batched addComment + node-reference mutation is attempted exactly once, while the same failure on a read still fails over.

    Verification: cargo test -p fleet --bin fleet gh:: on the laptop — 18 passed. Thread replied to and resolved. PR is mergeable at the new head; CI on the new head had not reported the main suite yet at check time, so that is the remaining item before merge. Nothing merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions