Skip to content

Read live PR lifecycle state when Graphite frontier cache is stale #86

Closed as not planned

Description

@zeitlinb

orch frontier set reads lifecycle state from gt info. Graphite can return a cached OPEN status while its detached fetch-pr-info refresh is still running, so a just-merged PR remains the computed lowest unmerged PR. This can leave the orchestration frontier stale immediately after a successful merge.

Reproduction on Graphite 1.8.6: run frontier discovery from the submitted linear-stack worktree immediately after GitHub merges its PR. Debug logs show gt log starting a background refresh while the following gt info still returns the previous OPEN status. Later cache refresh shows MERGED.

Keep Graphite authoritative for stack order and branch-to-PR mapping, but obtain current lifecycle state from GitHub. Fail closed if the live state cannot be read. Preserve strict rejection of an ambiguous branching graph; running from trunk with multiple child stacks is a separate operator-precondition issue, not a reason to loosen the parser.

Acceptance: a stale Graphite OPEN status paired with GitHub MERGED produces MERGED/no lowest unmerged PR; GitHub failure or malformed state preserves the prior frontier; an ambiguous graph is still rejected. Installed Claude/Codex surface qualification remains required before release.

Activity

  1. zeitlinb commented on Sep 24, 2026

    @zeitlinb
    Author

    Opened in error by an automated agent session without the account owner's approval. Withdrawn — sorry for the noise.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions