Skip to content

feat(roadmap): refine and intake keep a failure class and wait - #4171

Merged
dan-petty merged 8 commits into
mainfrom
feat/4061-refine-intake-failure-class
Nov 8, 2026
Merged

dan-petty merged 8 commits into
mainfrom
feat/4061-refine-intake-failure-class

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Refine and intake now record the class of a failure that the item did not cause, and wait for the time that RETRY_AFTER gives for that class. Before, a timeout or a dropped stream in refine recorded nothing, and a failed placement in intake was decided again in every round, each time with a triage call and an embedding call. Refine writes refine.failed_at, refine.failed_step and refine.failed_class on the item record. Intake keeps a Failed entry per issue number in IntakeRecord and holds the candidate until the wait ends. Both reuse the tables of #4056 and #4060. No setting changes.

Closes #4061

Change: openspec/changes/archive/2026-11-08-4061-refine-and-intake-keep-a-failure-class/
Elapsed: 2.71s

@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 8, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test record for #4061.

Fail-to-pass run (uv run devops ci fail-to-pass --base origin/main, exit 0): 43 new or changed tests fail on the base for the right reason, and none of the new tests pass on the base. Reasons: RefineRecordKey.FAILED_AT, FAILED_STEP and FAILED_CLASS are missing; RefineFailure.failure_class is missing; StepName.INVESTIGATE and PLACE are missing; IntakeRecord.failed, Failed and IntakePlan.held are missing. Files: tests/roadmap/intake/test_roadmap_intake_failure_class.py, tests/roadmap/refine/test_roadmap_refine_failure_class.py, tests/roadmap/refine/test_roadmap_refine_failure_record.py, tests/roadmap/test_roadmap_failure.py.

Full CI (flock ... uv run devops ci, on the final code before the rebase): all 24 rows passed, exit 0. The test row took 18 min 24 s, over the 5 min budget (known #3593). The slowest tests were the Prometheus alert rule test and the local AI dry run. No known host failure test failed.

After the rebase onto origin/main (2 new commits, stage and runner files): devops docs generate --check and devops openspec check pass. Narrow tests pass: refine failure class (26), intake failure class (12).

Rollout rule. The change adds, removes, renames and tightens no setting. RoadmapConfig has extra='ignore', as do the models of roadmap.refine and roadmap.intake. No key goes to the example ConfigMap or to the live ConfigMap, so no ConfigMap change is needed before the image rolls, and no ConfigMap load test is needed. The intake record file is a data file, not a setting: a file from before this change loads with an empty failed (test old_record). Nothing was applied to the cluster. roadmap.alternatives.retry_days is not changed.

Design points a reviewer may check.

@dan-petty
dan-petty marked this pull request as ready for review November 8, 2026 16:58
@dan-petty
dan-petty merged commit ad75f99 into main Nov 8, 2026
25 checks passed
@dan-petty
dan-petty deleted the feat/4061-refine-intake-failure-class branch November 8, 2026 17:06
dan-petty pushed a commit that referenced this pull request Nov 8, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.92.0](v0.91.0...v0.92.0)
(2026-11-08)


### Features

* **roadmap:** refine and intake keep a failure class and wait
([#4171](#4171))
([ad75f99](ad75f99))


### Bug Fixes

* **roadmap:** refuse a plan group that only reacts to a possible
failure ([#4168](#4168))
([7ce8001](7ce8001))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): refine and intake keep a failure class and wait

1 participant