Skip to content

fix(forge): make the live-Linear oracle deterministic + gate it on the forge surface (RIG-2909) - #721

Open
rigel-mintaka wants to merge 1 commit into
mainfrom
compass-forge/rig-2909-forge-oracle-flake
Open

fix(forge): make the live-Linear oracle deterministic + gate it on the forge surface (RIG-2909)#721
rigel-mintaka wants to merge 1 commit into
mainfrom
compass-forge/rig-2909-forge-oracle-flake

Conversation

@rigel-mintaka

Copy link
Copy Markdown
Contributor

The forge-oracle gate intermittently failed on TestLiveLinearListIssues:
its live-Linear setup CreateIssue timed out awaiting response headers (a
transient api.linear.app latency blip), failing the whole required gate on
unrelated PRs. Two deterministic fixes, no retries=N (rule://no-retries):

  1. Every live GitHub create is already wrapped in the bounded, ctx-aware
    one-shot createWithBackoff; none of the five Linear creates were. Extend
    createWithBackoff to also re-issue once on a transient network timeout
    (net.Error.Timeout / context.DeadlineExceeded through the client-timeout
    chain) alongside the existing GitHub secondary-rate-limit case, and wrap
    the five Linear creates in it. A persistent outage still fails loud after
    one re-issue; it never runs on the skip path.

  2. Make the live oracle path-affected. It is the expensive third-party
    verification layered on the untagged golden-replay battery (leg 1), which
    already asserts the client contract on every PR with zero network. Narrow
    the forge trigger (ci-matrix FORGE_PATH_RE + the ci.yml in-step gate) to
    the forge contract surface go/internal/forge/** and drop the bare-ci.yml
    over-trigger that ran the whole live oracle on docs/CI-only PRs (e.g.
    docs(compass-gtk4): T6 prose sweep + GTK4-default ledger encode (RIG-2820) #703). Oracle-wiring changes stay covered by the push/schedule full sweep.

Refs RIG-2909
Co-authored-by: Matt Wilkinson matt@rigel.build

@linear-code

linear-code Bot commented Aug 28, 2026

Copy link
Copy Markdown

RIG-2909

@github-actions

github-actions Bot commented Aug 28, 2026

Copy link
Copy Markdown

Compass engineering docs preview: https://compass-forge-rig-2909-forge.compass-eng-docs.pages.dev

Deployed from compass-forge/rig-2909-forge-oracle-flake at f716868.

…e forge surface (RIG-2909)

The forge-oracle gate intermittently failed on TestLiveLinearListIssues:
its live-Linear setup CreateIssue timed out awaiting response headers (a
transient api.linear.app latency blip), failing the whole required gate on
unrelated PRs. Two deterministic fixes, no retries=N (rule://no-retries):

1. Every live GitHub create is already wrapped in the bounded, ctx-aware
   one-shot createWithBackoff; none of the five Linear creates were. Extend
   createWithBackoff to also re-issue once on a transient network timeout
   (net.Error.Timeout / context.DeadlineExceeded through the client-timeout
   chain) alongside the existing GitHub secondary-rate-limit case, and wrap
   the five Linear creates in it. A persistent outage still fails loud after
   one re-issue; it never runs on the skip path.

2. Make the live oracle path-affected. It is the expensive third-party
   verification layered on the untagged golden-replay battery (leg 1), which
   already asserts the client contract on every PR with zero network. Narrow
   the forge trigger (ci-matrix FORGE_PATH_RE + the ci.yml in-step gate) to
   the forge contract surface go/internal/forge/** and drop the bare-ci.yml
   over-trigger that ran the whole live oracle on docs/CI-only PRs (e.g.
   #703). Oracle-wiring changes stay covered by the push/schedule full sweep.

Refs RIG-2909
Co-authored-by: Matt Wilkinson <matt@rigel.build>
@rigel-mintaka
rigel-mintaka force-pushed the compass-forge/rig-2909-forge-oracle-flake branch from efec521 to f716868 Compare August 28, 2026 17:08
@rigel-mintaka
rigel-mintaka marked this pull request as ready for review August 28, 2026 17:16
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