Repository navigation
fix(registry): stop purpose retries for rejected AI inputs - #773
Open
harlan-github-agent[bot] wants to merge 1 commit into
Open
harlan-github-agent[bot] wants to merge 1 commit into
harlan-github-agent[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
🟢 Ready · Checked: Candidate blocking SQL, rejection persistence and clearing, the job's input_rejected fail path, the admission hold, migration 0166 schema, and the new sqlite-backed unit tests covering transient 7005, push-unblock, and admission-hold cases. Not checked: The unchanged admission caller and scheduler enqueue paths, and the production env.AI.run error text the rejection regex must match. 1 note below 40/100 not shown.
|
Contributor
Author
There was a problem hiding this comment.
🟢 Ready · read the review
Harlan Agent Kit automated review, not Harlan's · AI policy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Linked issue
Closes #770
❓ Type of change
📚 Description
A deterministic AiGateway 7003 reproduces for the same evidence on every attempt.
listRepositoryPurposeCandidatesblocked a failed purpose job for only one day, soboshi-xixixi/traeskillre-enqueued daily and dead-lettered its 5 attempts each day for 7 consecutive days:The classification path now treats that gateway rejection shape as permanent, following the missing source precedent from #593. A terminal attempt records a rejection in a new
repository_purpose_input_errorstable (migration 0166), and the candidate query blocks on that row beyond the one dayfailed_jobswait. The block lifts when the repository pushes, the prompt changes, or the model changes, so new evidence gets one more classification. A successful classification clears the row. Transient gateway errors, such as the 7005 billing error, never write a row and keep the normal retry clock.The purpose job ends an
input_rejectedoutcome on its first attempt withctx.fail, andcheckRepositoryPurposeAdmissionholds the submission with the recorded reason.Open points: