Skip to content

provider, exec: the lane a failure names is a wire fact provider reads - #1105

Merged
santoshkumarradha merged 2 commits into
santos/devfrom
fix/taxonomy-failed-lane
Sep 17, 2026
Merged

santoshkumarradha merged 2 commits into
santos/devfrom
fix/taxonomy-failed-lane

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

Turns santos/dev green. TestOnlyTheTaxonomyTurnsAStatusIntoAMove failed on santos/dev:

a provider status is read as a decision outside internal/taxonomy at internal/exec/linear.go:1721

197d8933 added failedLane to internal/exec, which compares APIError.Status >= 500 to decide which upstream lane a retry should avoid. The law allows only internal/taxonomy and internal/provider to read a status; its allowlist is empty and only shrinks.

Fix

"Which lane did this failure name" is a fact about the wire, so it moves to internal/provider as FailedLane(err), beside WithRetryAvoid / RetryAvoidFrom, which it feeds. exec calls it and its private copy is deleted. The behaviour is byte-identical: a 5xx relayed from a named upstream names that provider (trimmed), a cut stream names its provider, anything else names nobody. The allowlist and the law test are untouched.

  • The existing internal/exec retry tests pass unchanged: TestARetryAfterANamedUpstreamFailureAvoidsEveryLaneThatFailed, TestARetryAfterACutStreamAvoidsTheLaneTheStreamNamed, TestAnUpstream4xxNamesNoLaneToAvoid.
  • New TestFailedLaneNamesWhoTheFailureImplicated table test in internal/provider.

Evidence

make check on this head over ssh on Spark; see the PR comment for the result and SHA.

🤖 Generated with Claude Code

santoshkumarradha and others added 2 commits September 17, 2026 10:57
Only internal/taxonomy and internal/provider may compare a provider
error's status against a threshold; exec's private failedLane read a
relayed 5xx by status. The fact moves to provider.FailedLane, beside
the retry avoidance it feeds, and exec asks for it instead. Behaviour
unchanged; the reasoning moved with the rule.

Co-Authored-By: codeaf <[email protected]>
@santoshkumarradha
santoshkumarradha merged commit e47d92b into santos/dev Sep 17, 2026
1 check passed
@santoshkumarradha
santoshkumarradha deleted the fix/taxonomy-failed-lane branch September 17, 2026 15:41
AbirAbbas added a commit that referenced this pull request Sep 18, 2026
… custom connections (#1194)

Lands the integration branch santos/dev (#1108, head 6db5125, 152 commits over dev) on dev as one squash, plus two fixes that kept its touched-packages job red: the pool start-up test empties the CI word it is not about (649bb4b), and a zombie leader no longer keeps a job's process group alive on Linux, which had delayed every finished background job by the two-second termination grace since #1155 (053e6a9). #1108 carries the full account; the 94 change entries under docs/changes/unreleased/ are the per-change record.

The commits folded in, oldest first:

5c413ef Keep archived evidence readable while tasks finish
3705a0c Document recovery evidence retrieval change
7834cc7 tui3, manual: a question's own answer box answers to the whole caret vocabulary
99d66e9 task: Add open/all source toggle to crew config
c1e4cb5 docs: the change entry for the crew model family toggle
e63b439 crew: round-1 review fixes