Repository navigation
factory: routing says what it did, and outside work can be given a repository - #2483
Merged
Merged
Conversation
…pository The audit of factory triggers (2026-11-06) found eight engine bugs: - Start on a job with no repository is a conflict in the factory's words, never uncertain. - factory.job_set_repo gives a job that never ran its repository and routes it again. - A job with no repository reads "Waiting for a repository". - A rule naming a missing pipeline writes one activity row and never fails the pass (no poll backoff); routes_test says refused; routes_set refuses it when the file can be read; GitHub poll failures are logged. - Pick up issues off governs the label rule only; routing always runs. - A queued job that never ran takes a picked pipeline. - A Backlog rule writes its activity row; a start hold carries no autonomy_why. - An edit keeps a routed job's route and steps unless a different rule matches, which is said in activity.
Pick up issues off with an empty routing table runs no intake pass at all, as before routing; and a start hold a label made keeps its reason, so only a routing rule's hold stops reading as Auto stopping.
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.
Fixes the eight engine bugs that the live audit of factory triggers found (Audit C, 2026-11-06). Each fix has a regression test.
conflictthat says "say which repository the work is on", instead of anuncertain5xx the desk dropped.factory.ErrNoRepois checked instartRefusedand classified as 409.TestStartOnAJobWithNoRepositoryIsARefusalInItsWords,TestAppFactoryAJobWithNoRepositoryIsGivenOnefactory.job_set_repo {factory, job, repo, expect?}: hello word,POST /v1/jobs/{id}/repo, PROTOCOL.md and the manual. Only for a job that never ran; operator or the job's person only. It stamps that repository's steps, recordsRepoSetBy(a person's repository wins over a rule's), and routes the job again at once via a newserve.Config.Route.TestSetRepoGivesAJobThatNeverRanItsRepository,TestAppFactoryAJobWithNoRepositoryIsGivenOne,TestAPersonsRepositoryWinsOverARulesstate_presentation"Waiting for a repository" with "Say which repository the work is on, or add a routing rule that sends it to one."TestABacklogJobWithNoRepositorySaysItWaitsForOneroutedactivity row:routing rule <name>: <repo> has no pipeline <p>.routes_testanswersrefusedwith that reason,routes_setrefuses the rule when the file can be read, and GitHub poll failures are logged.TestARefusedRuleWritesOneRowAndNeverFailsThePass,TestRoutesTestReportsARefusedRule,TestRoutesSetRefusesAPipelineTheRepositoryLacks,TestPreviewSaysARuleWhosePipelineIsMissingIsRefusedintake.Options.LabelStarts).TestPickUpIssuesOffStillRunsTheRoutingRules,TestLabelsOffStillRoutesjob_start {pipeline}: its steps are replaced and its run is laid out again. Only a job that ran (run.Ran) is refused. The app's door goes through the same service verb.TestAQueuedJobThatNeverRanTakesAPickedPipelinerouting rule <name> · Backlog. A start hold carries noautonomy_why, which was the source of the desk's "Auto stopped:" prefix.TestABacklogRuleWritesItsActivityRow,TestAStartHoldGivesNoReasonAutoStoppedrouting rule <new> · in place of routing rule <old> · steps ….TestAnEditedTicketKeepsItsRouteWhenNoRuleMatches,TestADifferentRuleMovesARoutedJobAndSaysSoroute.Decidestays pure, andinbox.Addis still the only door for outside work. The manual's routing, pick-up, outside-work and who-can-change sections are updated, and two new sections cover setting a repository and swapping a pipeline at Start.Not covered here: on a team server, a signed-in teammate cannot see a job with no repository, because the repo-visibility filter hides
"". Only the operator can place one there. On the desk's own factory this does not apply.🤖 Generated with Claude Code