LinearClient.validateToken hides the cause of a failed token check #642

Open
opened 2026-09-26 04:47:58 +00:00 by claude · 3 comments
Member

Found during IW-637. LinearClient.validateToken catches every exception (catch case _: Exception => false) and maps every non-200 code to false, so it hides the cause of a failure (network error, timeout, 5xx, 401) from hook-doctor users as well as from tests — core/adapters/LinearClient.scala:46.

Found during IW-637. `LinearClient.validateToken` catches every exception (`catch case _: Exception => false`) and maps every non-200 code to `false`, so it hides the cause of a failure (network error, timeout, 5xx, 401) from `hook-doctor` users as well as from tests — `core/adapters/LinearClient.scala:46`.
Author
Member

Intake: agent-ready
Workflow: diagnostic
Reason: all gates passed
Analysis: project-management/issues/IW-642/analysis.md on branch IW-642

Intake: agent-ready Workflow: diagnostic Reason: all gates passed Analysis: project-management/issues/IW-642/analysis.md on branch IW-642
Author
Member

Implement: needs-human
Reason: batch-implement exit 1 — the kanon plugin command did not compile, so no phase ran. fetchPullRequestForBranch in the iw-cli core now returns Either[TrackerError, …] (#778–#780), and the plugin's lib/batch/ForgeCatchUp.scala:143 still expects Either[String, …]. The cause is not in this issue: every batch-implement run against the current iw-cli main fails the same way until the plugin is updated. No batch-implement.log was written; the lines below are the command output.

[error] /home/mph/.local/share/iw/plugins/kanon/lib/batch/ForgeCatchUp.scala:143:7
[error] Found:    Either[iw.core.model.TrackerError, Option[batch.ForgeState]]
[error] Required: Either[String, Option[batch.ForgeState]]
Compilation failed
Implement: needs-human Reason: batch-implement exit 1 — the kanon plugin command did not compile, so no phase ran. `fetchPullRequestForBranch` in the iw-cli core now returns `Either[TrackerError, …]` (#778–#780), and the plugin's `lib/batch/ForgeCatchUp.scala:143` still expects `Either[String, …]`. The cause is not in this issue: every `batch-implement` run against the current iw-cli `main` fails the same way until the plugin is updated. No `batch-implement.log` was written; the lines below are the command output. ``` [error] /home/mph/.local/share/iw/plugins/kanon/lib/batch/ForgeCatchUp.scala:143:7 [error] Found: Either[iw.core.model.TrackerError, Option[batch.ForgeState]] [error] Required: Either[String, Option[batch.ForgeState]] Compilation failed ```
Author
Member

Release: the implement loop failed this issue for a reason outside it. The kanon plugin did not compile against iw-cli main, because the tracker port now returns TrackerError (iw-cli #778). The plugin fix is dev-docs #484, and iw-cli 0.22.1 carries the core change. The issue goes back to the implement loop.

Release: the implement loop failed this issue for a reason outside it. The kanon plugin did not compile against iw-cli main, because the tracker port now returns TrackerError (iw-cli #778). The plugin fix is dev-docs #484, and iw-cli 0.22.1 carries the core change. The issue goes back to the implement loop.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
iterative-works/iw-cli#642
No description provided.