Repository navigation
Description
Refreshed plan (2026-10-17, unblocking review)
This section supersedes any text below that conflicts with it.
Decisions
- Decision D1 (owner, 2026-10-17): "chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 holds the roadmap Service's deployment only; Service code is built, tested offline and merged at 0 replicas (replicas: 0, its test, and the no-scale/no-restart/no-secret-push rules stay)." Every criterion below runs offline. Only the post-merge Loki checks need a running Service.
- Decision D2 (owner, 2026-10-17): "in-cluster jobs act as an organization-owned GitHub App installation (organization takes the owner's current login after the personal account is renamed); appeal the suspension in parallel." The Loki checks wait until the Service runs again, as the App or as a reinstated account.
- Decision D4 (owner, 2026-10-17): "feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535 is re-scoped to step 1 now (install the Argo Workflows controller and measure, with an executor ServiceAccount and Role, API-server egress, no devops-cli Secret mount, deploy-stack registration, an AppProject destination, and a --version template that makes no GitHub request); steps 2-6 are filed after its go/no-go."
RepoWorkerstays until a later step deletes it, so theserver/service.pyhalf is still worth doing. It stays limited to the one handler. - Decision D18 (owner, 2026-10-17): "intake's refine hook is deleted (fix(roadmap): intake's refine hook is deleted, and the cross-job rule alone makes refine due in the round intake places a p0 item #1540); fix(roadmap): intake keeps the fields a person set on a card added during its planning #1404 is re-scoped to its card-fields criterion." The fix(roadmap): a GraphQL budget refusal pauses every Service worker until the reset, and each Service round ends with its spend line #1400 comment's intake part goes to fix(roadmap): intake's refine hook is deleted, and the cross-job rule alone makes refine due in the round intake places a p0 item #1540 along with the hook. This item keeps only the refine visibility re-raise.
- Small decision: test(cli): swallowed failures may not grow: blind excepts, except-pass, except-continue and unread check=False are held at their ceilings #1347's ratchet ceilings stay where they are (
roadmap/run.py6,server/service.py5,roadmap/refine.py2,commands/roadmap.py0). Today ruff accepts the runner catch atrun.py:904only because it callslogger.exceptionat:905. Without that call it becomes a BLE001 site (checked with ruff 0.16.8), which would putrun.pyat 7. So one catch handles both the clone and the runner failures and replaces_prepare_clone's catch (run.py:849), which keepsrun.pyat 6. Reason: the ratchet fails the gate at 7, and a# noqawould hide the site from it. Narrowing_prepare_clone's catch toGitOperationError,subprocess.TimeoutExpiredandOSErroris not enough: each git step runs with acwd, andrun_subprocess's cwd check can raiseSecurityError(src/devops_cli/core/process.py:218,:221). That error would end the round and drop the job errors already gathered, against the body's "keeps every job's error". - Small decision:
_execute_batchkeeps its logging call inside its own handler, using a branch or a computedexc_info. Reason: ruff accepts both forms there, but a call to a logging helper would make the catch atservice.py:256a new BLE001 site. - Small decision:
RoadmapRunErrordropsreset_atand itsdetails["reset_at"], and_refused_resetreturns the earliestrefusal_resetamong the group's members. Reason: the fix(roadmap): a GraphQL budget refusal pauses every Service worker until the reset, and each Service round ends with its spend line #1400 comment asks for this so the reset is kept only once, andRoundPause.afterstill logs each held time once. - Small decision: a missing
.github/roadmap.tomllogs one record per lane per poll. Reason: since fix(roadmap): the service runs close and reprioritize in their own lane, so a slow model-bound intake or refine round never holds up a release #1532 every poll enqueues on both lanes (service.py:360-368) and each lane'sservice_jobopens the roadmap (run.py:1024), and the body already rules out Service state.
Scope
The scope is unchanged apart from these points:
- The clone example follows fix(roadmap): the service runs close and reprioritize in their own lane, so a slow model-bound intake or refine round never holds up a release #1532's lanes. In the Service, a failed status-lane
clonestopsmetrics, and a failedmodel-clonestopsrefine. Only the CLI'sDEFAULT_DUE_TABLE(run.py:704) runs metrics and refine against one clone. Therun_due_jobscase still runs one table, so it builds that table withbuild_stub_table(..., needs_clone=True, include_refine=True). - From the fix(roadmap): the job clone tracks the current release's branch while origin has it and the default branch otherwise, so close, refine and metrics run between a ship and the next release's start #1366 comment: a
subprocess.TimeoutExpiredor a missinggitbinary (FileNotFoundError) from the clone becomes a group member, just as aGitOperationErrordoes. Its quoted line passes throughmask_secrets, asensure_checkout's own error already does (run.py:367-371). - From the fix(roadmap): a GraphQL budget refusal pauses every Service worker until the reset, and each Service round ends with its spend line #1400 comment: the reset moves onto the members (see the decision above).
run_research_step's visibility read (roadmap/refine.py:361-365) re-raisesGitHubRateLimitErrorand still logs and drops any other error. - Moved: the intake refine-hook re-raise (
roadmap/intake.py:1410-1413) goes to fix(roadmap): intake's refine hook is deleted, and the cross-job rule alone makes refine due in the round intake places a p0 item #1540 under D18. The reserve-refusal subclass stays a proposed extension of refactor(github): the github session owns transport, ledger, error classes and link pagination #983, as the body says.
Delivery
- One PR, size S, with
Fixes #1365. It touchesroadmap/run.py,exceptions/roadmap.py,commands/roadmap.py,roadmap/refine.pyandserver/service.py, plus their tests.
Acceptance criteria (the body's other criteria stand, at the references below)
- Replaces the blind-except criterion:
uv run pytest tests/test_swallowed_failures_ratchet.pypasses, and no ceiling for the touched files intests/fixtures/swallowed_failures_ceilings.jsonis raised. If a count falls, the same PR locks it in withuv run python tests/test_swallowed_failures_ratchet.py --lower. No# noqa: BLE001,S110orS112is added. - A case in
tests/test_roadmap_run.pysetsPATHto an empty directory undertmp_path, so the clone fails, and keepsremote_urlat a missing path undertmp_path, as the body's no-network criterion asks. The clone rows fail with theFileNotFoundErroras a group member, and the message quotes its first line. -
RoadmapRunErrorhas noreset_at. For a run in which a job's write was refused,service_pause_untilreturns that refusal's reset plus the skew bound. When no member is a refusal, it returns None.test_a_jobs_refused_write_fails_the_round_with_the_reset_and_the_next_job_still_runs(tests/test_roadmap_run.py:1760) reads the reset throughservice_pause_untiland the member, not throughreset_at. -
run_research_stepre-raises aGitHubRateLimitErrorfromrepository_is_private(). For any other error it still logs a warning and returns([], set()). Both are checked intests/test_roadmap_refine.py. - The
RepoWorkercase builds the worker with a lane and reads the counters onrepo,laneandresult. Each ERROR record carriesrepo,laneandresult="error". - Pending a person, once the Service runs again (as D2's App or a reinstated account): (a) and (b) as written. For (c), each poll logs one ERROR record per lane (two in all), and
devops_cli_service_jobs_total{repo="<it>",result="error"}rises by two per poll, one per lane.
Current references (checked at 3dd7fa6)
service_job:src/devops_cli/roadmap/run.py:1017-1032. Itsopen_roadmapcall (not_open_roadmap) is at:1024, before thetryat:1026.SERVICE_JOBS::1035-1042.parse_roadmap_configandread_roadmap_config:src/devops_cli/roadmap/config.py:69-90, raisingConfigurationErrorat:74and:81. The 404 raise:src/devops_cli/roadmap/github_store.py:1766._awaiting_intake:src/devops_cli/commands/gh.py:1016-1023. The triage tests:tests/test_gh_cmd.py:219,:241,:259.unreadable_github_roadmap:tests/conftest.py:585(ghexits 1 with HTTP 503).ensure_checkout:run.py:324-372. Its docstring at:349-351says a timeout or a missing git propagates._prepare_clone:run.py:829-850, with its catch at:849._execute_due_rows:run.py:853-916. The clone failure is at:883-889, the runner catch andlogger.exceptionat:904-905, and the raise at:910-915.- Lanes:
RELEASE_LANE_ROWSatrun.py:657-679(feat(release): release-please makes every release from main #1952 renamed itSTATUS_LANE_ROWS, which holds onlymetrics),MODEL_LANE_ROWSat:683-701,DEFAULT_DUE_TABLEat:704,build_stub_tableat:708-729. - The reset:
_refused_resetatrun.py:1000-1003andservice_pause_untilat:1006-1014.refusal_resetis atsrc/devops_cli/roadmap/board_read.py:364, andRoadmapRunErroratsrc/devops_cli/exceptions/roadmap.py:19-42. The docstring of_refuse_jobs_write(tests/test_server_service.py:916-918) says theRoadmapRunErrorcarries the reset, so it changes with the reset's move. RepoWorker:src/devops_cli/server/service.py:130, withstartat:157,enqueueat:166,stopat:187andwait_activeat:199. Batches coalesce in_wait_for_next_batch(:216-233)._execute_batchis at:235-280: its handler is at:256-268, the span message at:258-260andexc_info=Trueat:266. The poll loop is at:350-368.- CLI:
src/devops_cli/commands/roadmap.py:576-583. The message is rebuilt at:581and printed withoutsafeat:582.print_error(..., safe=...)is atsrc/devops_cli/output/console.py:428-437. - Tests:
test_failure_isolation_and_cli_exitis attests/test_roadmap_run.py:580, with its patch at:632.test_checkouts_git_managementis at:706. - The ratchet:
tests/test_swallowed_failures_ratchet.py. Its ceilings are attests/fixtures/swallowed_failures_ceilings.json:132-133and:149. The BLE family is left out atpyproject.toml:109(feat(cli): blind exception handling policy #423). The 256-character cap isAGENTS.md:36.
Dependencies and order
- chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562: closed. D1 narrows it to deployment, and
docs/agent/tasks/task-1562-suspend-roadmap-service.md:19already leaves CLI-run job fixes open for work.status/blockedcomes off when the block-scope docs item lands; that item rewordsAGENTS.md:151andk8s/README.md:363and is not yet filed. - test(cli): swallowed failures may not grow: blind excepts, except-pass, except-continue and unread check=False are held at their ceilings #1347 (closed, v0.2.33) and fix(roadmap): the service runs close and reprioritize in their own lane, so a slow model-bound intake or refine round never holds up a release #1532 (closed, v0.2.33) have landed; this plan builds on both.
- fix(roadmap): the job clone and the change filter fail closed when the session login lookup fails, instead of falling back to a made-up devops-cli identity #1409 (open, v0.2.38) changes
_get_session_login(run.py:235-242, one ofrun.py's six sites) and the clone rows. feat(cli): blind exception handling policy #423 (open, v0.2.38, P2) owns the BLE001 policy. Whichever of these lands after this item rebases and re-runs the ratchet. - fix(roadmap): intake's refine hook is deleted, and the cross-job rule alone makes refine due in the round intake places a p0 item #1540 (open, blocked, no milestone) takes the intake refine-hook part. fix(roadmap): intake keeps the fields a person set on a card added during its planning #1404 (open, no milestone) keeps only its card-fields criterion (D18). Neither one blocks this item.
- feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535 (open, blocked, v0.2.38, P0) deletes
RepoWorkeronly in a step filed after step 1's go/no-go (D4), so it does not block this item. - refactor(github): the github session owns transport, ledger, error classes and link pagination #983 (open, v0.2.37, P1) stays the home of the reserve-refusal subclass. refactor(cli): exceptions carry their codes as class data, and one exit seam replaces 19 hand-rolled exits #1006 (open, P3), test(cli): tests double only process edges and mirror the source tree #1307 (open, P2) and feat(k8s): Add warnings and errors above logs, narrow both by pod #1357 (open) remain constraints only. None of them blocks this item.
Problem
The roadmap Service (devops serve --service, namespace devops, image service:v0.2.28, the same code as 910b823) has three logging defects when a job fails:
- it logs a configuration error with a full traceback on every poll;
- it splits every job failure across two records;
- it drops clone failures entirely.
#1358 proposed this item in its Key questions. The evidence below comes from Loki and Prometheus, read on 2026-10-08 up to 01:18 UTC.
1. A configuration error carries a full traceback on every poll
- What happened. Six repositories were added to
service.reposbefore their.github/roadmap.tomllanded.- From 2026-10-07 23:51 to 2026-10-08 00:16 UTC, each logged one ERROR record per 300 s poll: 35 records in all (six each, and five for one).
- Each record carries a traceback of about 1.5 KB whose last line repeats the message.
- It stopped when the files landed at about 00:17 UTC. It will happen again for every repository added before its file.
- The call chain.
service_jobopens the repository with_open_roadmap(src/devops_cli/roadmap/run.py:870).read_roadmap_config(src/devops_cli/roadmap/config.py:80-82) reads the file throughGitHubRoadmapStore.repository_file, which raisesGitHubFileNotFoundErroron a 404 (src/devops_cli/roadmap/github_store.py:1525-1530).RepoWorker._execute_batchlogs any exception withexc_info=True(src/devops_cli/server/service.py:172-185).
- The traceback adds nothing.
- Every time it shows the same six frames:
_execute_batch,service_job,_open_roadmap,open_roadmap,read_roadmap_config,repository_file. - The fix is a file a person commits.
devops_cli_service_jobs_total{result="error"}already counts every failure. It reads 7 for each of the six repositories: six failures to open the repository, plus the 00:17 intake failure. Loki holds only five of the six for one repository; its first, due at about 23:51, is missing.
- Every time it shows the same six frames:
- The exception class doesn't say "configuration".
- Invalid TOML and bad keys in the same file already raise
ConfigurationError(config.py:61-77), and fix(roadmap): the metrics job walks release tags in each repository's own clone, and a missing or type-less labels.yml stops intake as a configuration error before any model call #1358 makes a missing.github/labels.ymlone too. - A missing
roadmap.tomlis still aGitHubFileNotFoundError.
- Invalid TOML and bad keys in the same file already raise
- The fix can't go in
read_roadmap_config.devops gh issues triagerelies onGitHubFileNotFoundErrorfromopen_roadmapto mean "this repository has no board" (src/devops_cli/commands/gh.py:1000-1007).- Two tests pin that:
test_gh_issues_triage(tests/test_gh_cmd.py:213) andtest_gh_issues_triage_does_not_hide_a_failed_board_read(:253, "Only a missing.github/roadmap.tomlmeans no board"). - For the Service, the same missing file is a configuration error, because
service.reposlists the repository.
2. Every failed job is logged twice: one record has the cause, the other has the repository
- How it happens.
_execute_due_rowslogs a runner's exception withlogger.exception("Roadmap job %s failed", row.name)and passes noextra(run.py:782-784).- It then raises
RoadmapRunError("Roadmap jobs failed: <names>")with no cause (run.py:786-790). _execute_batchlogs that again, with a traceback that ends atrun.py:787.
- What Loki shows for the 48 h to 01:18 UTC.
- 78 per-job records from
devops_cli.roadmap.run, none of them with arepofield. - 68 summary records from
devops_cli.server.service. After the repository name, their message says only "Roadmap jobs failed: ":close23,refine25,intake8,intake, refine6,reprioritize4,intake, reprioritize2. - With eight managed repositories, the record with the cause doesn't say which repository it is about, and the record with the repository doesn't say what went wrong.
- 78 per-job records from
- The trace has the same gap. The span's
error.messageisstr(exc)[:256](service.py:176-178), so a trace shows "Roadmap jobs failed: intake" and nothing more. - The CLI has it too.
devops roadmap run --confirmprints only the job names, rebuilt fromfailed_jobs(src/devops_cli/commands/roadmap.py:554-556).- The cause reaches the terminal only because Python's last-resort handler prints the
logger.exceptionrecord. - The CLI installs no logging handler: under
src, onlyserver/json_logs.pycallsaddHandler.
- The cause reaches the terminal only because Python's last-resort handler prints the
3. A clone failure is not logged at all
- What the code does.
_prepare_clonecatches whateverensure_checkoutraises (run.py:711-731)._execute_due_rowsthen adds the job tofailed_jobsand moves on (run.py:762-767). It never logs the exception and never chains it.
- What gets lost.
ensure_checkoutraises aGitOperationErrorthat names the git step and quotes its stderr (run.py:198-236), and nothing reads it.- When
metricsandrefinefail on their clone, the only records are the summary "Roadmap jobs failed: metrics, refine" and a traceback that ends atrun.py:787.
- When
- When it happens. fix(roadmap): the metrics job walks release tags in each repository's own clone, and a missing or type-less labels.yml stops intake as a configuration error before any model call #1358 described a window between a release merge and the next branch cut, in which
git checkout -B release/<v> origin/release/<v>could not succeed. Release branches are gone now, so that window is gone too. fix(roadmap): the metrics job walks release tags in each repository's own clone, and a missing or type-less labels.yml stops intake as a configuration error before any model call #1358 also makesmetricsneed the clone. fix(roadmap): the job clone tracks the current release's branch while origin has it and the default branch otherwise, so close, refine and metrics run between a ship and the next release's start #1366 removes that expected case, so the clone errors left to log are real git failures, like the one below. - Not seen in the last 48 h. Every summary that names
closeorrefinehas a matching per-job record, so no clone failed in that window. Over 2026-10-04 to 2026-10-08 one did: refine's round records exceed its tracebacks by exactly one, at 2026-10-05 06:26:28Z, and the clone step is the only path that fails a job without logging (run.py:766-767). Its cause is not recorded. A criterion below tests the gap.
Acceptance criteria
-
A managed repository without
.github/roadmap.tomlis a configuration error.service_jobcatches theGitHubFileNotFoundErrorfrom its_open_roadmapcall and raises aConfigurationErrorfrom it, withkey="service.repos"anddetails={"path": ".github/roadmap.toml"}.- The message names the repository and the file. It says to commit the file or to remove the repository from
service.repos. open_roadmapandread_roadmap_configdo not change.
Checked in
tests/test_roadmap_run.py:- with the
roadmap_storefixture and no file seeded,service_jobraises thatConfigurationError; - with the
unreadable_github_roadmapfixture (tests/conftest.py:429-450, whereghanswers HTTP 503), it raises the store'sGitHubOperationErrorunchanged: not aGitHubFileNotFoundErrorand not aConfigurationError; - the
devops gh issues triagetests intests/test_gh_cmd.py:213-270pass unchanged.
- The message names the repository and the file. It says to commit the file or to remove the repository from
-
A failed run keeps every job's error, including clone errors.
_execute_due_rowsno longer logs anything. TheRoadmapRunErrorit raises:- names every failed job with the first line of its error, for example
Roadmap jobs failed: intake: <error>; metrics, refine: git clone failed: <stderr>. A clone error that stopped several jobs appears once, listing the jobs it stopped; - caps each quoted error line at 256 characters (AGENTS.md:40) and never cuts a job name.
DEFAULT_DUE_TABLEhas three rows, so the message stays bounded, and the full text stays in the members' tracebacks; - is raised from a stdlib
ExceptionGroupof those exceptions, each carrying a PEP 678 note that names its job or jobs; - says whether its group holds only
ConfigurationErrors (checked withExceptionGroup.split), for example as a property; - keeps
failed_jobsas it is.
Checked by new cases in
tests/test_roadmap_run.py:- one builds its table with
build_stub_table(..., needs_clone=True), astest_checkouts_git_management(:562) does.intakeraises aConfigurationError, andremote_urlpoints at a missing path undertmp_path, so the clone fails before any session login is read; - it expects the message to name
intakewith its error text, andmetrics, refinewithgit clone failed;__cause__to be anExceptionGroupwith two members; the run not to be configuration-only; and no ERROR record fromdevops_cli.roadmap.runincaplog; - another, with no clone, has only
intakefail with aConfigurationErrorand expects the run to be configuration-only.
- names every failed job with the first line of its error, for example
-
The Service logs a configuration-only failure without a traceback, and every other failure as today. A run is configuration-only when it raises a
ConfigurationError, or aRoadmapRunErrorwhose group holds onlyConfigurationErrors.- A configuration-only failure logs one ERROR record without
exc_info, on every run. The record names the repository and the error, and carriesrepoandresult="error". - Any other failure logs one ERROR record with
exc_info, as today. For aRoadmapRunError, the traceback shows each member's traceback and note. - On every failed run,
devops_cli_service_jobs_total{result="error"}still increments and the span still getsERRORstatus. Itserror.message, still capped at 256, now starts with the first failed job and its error. - The Service keeps no state between runs.
Checked by a new case in
tests/test_server_service.py:- it drives a
RepoWorkerthrough its public methods:start(), thenenqueue("poll", "", "")followed bywait_active(1.0)once per run, thenstop(). It does not go throughcreate_service_app, whose poll loop keeps enqueuing (service.py:258-277) while the worker merges pending triggers into one batch (:133-152), so runs would coalesce; - the job raises, in turn: a
ConfigurationError; the same again; aRoadmapRunErrorfrom a group of twoConfigurationErrors; aRoadmapRunErrorfrom a group of aConfigurationErrorand aRuntimeError; aRuntimeError. Then it succeeds; - the records from
devops_cli.server.serviceat WARNING or above are exactly three ERROR records withoutexc_info, then two with it; - the error counter rises by 5 and the success counter by 1, read as deltas or on a repository label no other test uses, because
GLOBAL_METRICSis process-wide and no fixture resets it; JsonLogFormatterrenders the first record with noexceptionkey, and the fourth with both members' notes in itsexceptiontext.
- A configuration-only failure logs one ERROR record without
-
devops roadmap run --confirmprints theRoadmapRunErrormessage, which now names each job and its error, withprint_error(..., safe=True)so markup in quoted git or GitHub text prints literally, and exits 1.- It no longer rebuilds the message from
failed_jobs(commands/roadmap.py:554-556). - It adds no logging and no traceback. CLI traceback policy stays with refactor(cli): exceptions carry their codes as class data, and one exit seam replaces 19 hand-rolled exits #1006.
Checked by the CLI half of
test_failure_isolation_and_cli_exit(tests/test_roadmap_run.py:489-509): itsRoadmapRunErrormessage gains a Rich markup fragment, and the test asserts that the message prints literally. That half already patchesdevops_cli.roadmap.run.run_due_jobs(:493). This is a pre-existing exemption that test(cli): tests double only process edges and mirror the source tree #1307's children remove; this item adds no patch. - It no longer rebuilds the message from
-
server/service.pyandroadmap/run.pygain no new blindexcept,except: passorexcept: continue. Their counts underuv run ruff check --select BLE001,S110,S112don't grow (the BLE family is not enabled inpyproject.toml:94; feat(cli): blind exception handling policy #423 owns it), and test(cli): swallowed failures may not grow: blind excepts, except-pass, except-continue and unread check=False are held at their ceilings #1347's ceilings hold if it has landed. -
No new test reaches the network or runs helm, and each new test's call phase stays under 1 s, as shown by
uv run pytest tests/test_server_service.py tests/test_roadmap_run.py tests/test_gh_cmd.py --durations=0. New tests patch no devops-cli name (test(cli): tests double only process edges and mirror the source tree #1307). They useRepoWorker's public methods, the shared store fixtures and a missing local path as the remote instead. -
uv run devops cipasses within its 5-minute budget. -
Pending a person, after merge, once the Service runs a release image that contains this fix:
-
(a)
sum(count_over_time({namespace="devops"} | json | logger="devops_cli.roadmap.run" | level="ERROR" [24h]))returns nothing for the 24 h after the rollout. -
(b)
sum(count_over_time({namespace="devops"} | json | logger="devops_cli.server.service" | message=~".*Roadmap jobs failed: [a-z]+(, [a-z]+)*" [24h]))returns nothing, so no failure record ends in bare job names. -
(c) The next time a repository is added to
service.reposbefore its.github/roadmap.tomllands, as six were on 2026-10-07:- each poll logs one ERROR record for that repository with no
exceptionfield, naming.github/roadmap.tomlandservice.repos; devops_cli_service_jobs_total{repo="<it>",result="error"}rises by one per poll.
Skip (c) if no such repository is added within a week of the rollout.
- each poll logs one ERROR record for that repository with no
-
Key questions
-
Why convert a missing
roadmap.tomlinservice_jobrather than inread_roadmap_config? Proposed: convert it inservice_jobonly.devops gh issues triagetreats a missing file as "no board" (commands/gh.py:1000-1007).- The roadmap commands already print the 404 message, and it names the file.
- Only the Service knows that the repository was listed on purpose.
- This keeps fix(roadmap): the metrics job walks release tags in each repository's own clone, and a missing or type-less labels.yml stops intake as a configuration error before any model call #1358's "Proposed: no" for
config.py:82, and adds the conversion only at the Service boundary.
-
Why not log a configuration error once per change instead of on every poll? Proposed: on every poll, without a traceback, and with no state.
- For once per change: on 2026-10-07, six repositories logged 35 records in 25 minutes. At a 300 s poll, a repository left misconfigured logs 288 records a day.
- Against: the bulk of each record was the 1.5 KB traceback of six identical frames. Without it, a record is one line.
- One record per poll keeps a standing error visible in any time-windowed query, including feat(k8s): Add warnings and errors above logs, narrow both by pod #1357's warnings-and-errors panel. Once per change would drop it from the panel after the window while the repository still fails, and only the counter would show it.
- Once per change would also need a worker attribute, an extra "cleared" record and restart rules (a new pod would log the error again anyway).
- If repeats crowd feat(k8s): Add warnings and errors above logs, narrow both by pod #1357's panel, its query can count them by repository and message, with no Service state.
-
Should the traceback be dropped only for
ConfigurationError, or for everyDevOpsCLIError? Proposed: only forConfigurationError.- refactor(cli): exceptions carry their codes as class data, and one exit seam replaces 19 hand-rolled exits #1006 makes the CLI print every
DevOpsCLIErrorwithout a traceback, asexit_on_error(src/devops_cli/core/cli.py:198) does today. That suits a person at a terminal, who sees the command that failed. - The Service's records are read later. The other
DevOpsCLIErrors it logged in the 48 h:- outside any job: 81 GraphQL reserve refusals and 5 "rate limit state ... unknown or broken" failures (both
GitHubRateLimitError), and one HTTP 502 board read; - inside jobs:
GitHubOperationError14,GitHubRateLimitError7,ModelGatewayUnreachableError5, andStructuredOutputValidationError29 (allrefine).
- outside any job: 81 GraphQL reserve refusals and 5 "rate limit state ... unknown or broken" failures (both
- None of these is a file a person fixes. For the unknown-quota case, the traceback is the only pointer to the call that failed.
- refactor(cli): exceptions carry their codes as class data, and one exit seam replaces 19 hand-rolled exits #1006 makes the CLI print every
-
What about the 81 GraphQL reserve refusals logged with a traceback in 48 h (
GitHubRateLimitErrorfromsrc/devops_cli/roadmap/board_read.py:247,:264)? Proposed: not in this item.- They share a class with the unknown-quota failure, so the Service cannot tell the two apart. Dropping their traceback now would drop it for the unknown-quota failure too.
- refactor(github): the github session owns transport, ledger, error classes and link pagination #983 already rewrites the GitHub error classes. Proposed: as a stated extension of refactor(github): the github session owns transport, ledger, error classes and link pagination #983, give the reserve refusal its own subclass, which the Service can then log without a traceback.
- fix(roadmap): board writes go to the card by node id and read only that card, so intake keeps the card it added and a write costs a few GraphQL points instead of about 320 #1361 puts the reset time in that refusal's details and pauses every worker until then. If this item lands first, that pause reads each job's refusal from the
ExceptionGroupcause. If it lands second, this item moves the reset thatRoadmapRunErrorcarries onto the group, so the error is not kept twice.
-
What if one job hits a configuration error and another an unexpected error? Proposed: treat the run as an unexpected failure and log the full group traceback. The configuration error's traceback then repeats too, which is acceptable while something unexpected is failing alongside it.
-
Does
devops roadmap runlose anything? Today a job's traceback reaches the terminal only through Python's last-resort handler, because the CLI installs no logging handler. After this item, the CLI prints each job's first error line and no traceback. Proposed: accept that.- It is what refactor(cli): exceptions carry their codes as class data, and one exit seam replaces 19 hand-rolled exits #1006's seam does for every
DevOpsCLIError. - A way to ask the CLI for tracebacks, if one is wanted, belongs to refactor(cli): exceptions carry their codes as class data, and one exit seam replaces 19 hand-rolled exits #1006.
- It is what refactor(cli): exceptions carry their codes as class data, and one exit seam replaces 19 hand-rolled exits #1006's seam does for every
-
Does every
ConfigurationErrorthe Service can reach really mean configuration? Of the 20 raise sites, the reachable ones name something a person fixes:roadmap.toml(config.py:66,:73) andlabels.yml(intake.py:518);- the AI model settings (
src/devops_cli/ai/pydantic_ai_bridge.py:145,:154).
-
Order with fix(roadmap): the metrics job walks release tags in each repository's own clone, and a missing or type-less labels.yml stops intake as a configuration error before any model call #1358 and the items filed the same day?
- Either order works with fix(roadmap): the metrics job walks release tags in each repository's own clone, and a missing or type-less labels.yml stops intake as a configuration error before any model call #1358. Both change
run.py: fix(roadmap): the metrics job walks release tags in each repository's own clone, and a missing or type-less labels.yml stops intake as a configuration error before any model call #1358 themetricsrow andbuild_stub_table, this item_execute_due_rowsandservice_job. Once both land, fix(roadmap): the metrics job walks release tags in each repository's own clone, and a missing or type-less labels.yml stops intake as a configuration error before any model call #1358's labels.yml failure is logged without a traceback. A CLI test overroadmap_storewith nolabels.ymlcan then replace the patched CLI half named above, which is work for test(cli): tests double only process edges and mirror the source tree #1307's children. - Before fix(roadmap): board writes go to the card by node id and read only that card, so intake keeps the card it added and a write costs a few GraphQL points instead of about 320 #1361 if possible (see the reserve-refusal question).
- fix(roadmap): a shipped release starts the next one without a person: the poll reports the ship, and close and reprioritize run before a capped intake batch #1360 changes the due table in
run.py, and fix(roadmap): the job clone tracks the current release's branch while origin has it and the default branch otherwise, so close, refine and metrics run between a ship and the next release's start #1366 changesensure_checkout; whichever lands second rebases.
- Either order works with fix(roadmap): the metrics job walks release tags in each repository's own clone, and a missing or type-less labels.yml stops intake as a configuration error before any model call #1358. Both change
Strategic alignment
- Priority: P2.
- No data is lost, but the Service's failures are hard to diagnose. The record with the cause doesn't name the repository. A clone failure isn't logged anywhere, and it hits exactly the jobs that refresh metrics and refine items.
- feat(k8s): Add warnings and errors above logs, narrow both by pod #1357 puts warnings and errors in a dashboard panel. There, a 1.5 KB configuration traceback every 300 s per repository would bury new failures.
- It is not P1: runner failures can be matched to a repository by timestamp today, and the configuration noise stops once the file lands.
- Value: M. Effort: S. The change touches
server/service.py,roadmap/run.py,exceptions/roadmap.py,commands/roadmap.py,tests/test_server_service.pyandtests/test_roadmap_run.py. - Library-first: no new dependency, no helper module and no state.
- The stdlib's
ExceptionGroupandExceptionGroup.split(PEP 654) carry and classify the job errors. BaseException.add_note(PEP 678) names the job.loggingandtracebackalready render groups and notes inexc_info.
- The stdlib's
- Related: fix(roadmap): the metrics job walks release tags in each repository's own clone, and a missing or type-less labels.yml stops intake as a configuration error before any model call #1358 (proposed this item; its labels.yml
ConfigurationErrorgoes through this path), refactor(cli): exceptions carry their codes as class data, and one exit seam replaces 19 hand-rolled exits #1006 (CLI exit seam and CLI traceback policy;roadmap run's hand-rolled exit), refactor(github): the github session owns transport, ledger, error classes and link pagination #983 (GitHub error classes and the reserve refusal), feat(k8s): Add warnings and errors above logs, narrow both by pod #1357 (log panels), test(cli): swallowed failures may not grow: blind excepts, except-pass, except-continue and unread check=False are held at their ceilings #1347 and feat(cli): blind exception handling policy #423 (blind excepts), test(cli): tests double only process edges and mirror the source tree #1307 (no patched devops-cli names), feat(cli): service mode fordevops servewith github webhooks, a polling tick and per-repo job queues #752 and feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981 (the Service androadmap run), fix(roadmap): board writes go to the card by node id and read only that card, so intake keeps the card it added and a write costs a few GraphQL points instead of about 320 #1361 (its worker pause reads the job errors this item carries), fix(roadmap): the job clone tracks the current release's branch while origin has it and the default branch otherwise, so close, refine and metrics run between a ship and the next release's start #1366 (removes the expected clone failure after a ship; this item logs the ones that remain), fix(roadmap): a shipped release starts the next one without a person: the poll reports the ship, and close and reprioritize run before a capped intake batch #1360 (same file), fix(roadmap): refine sends the model the proposal schema and never caches a reply that fails it, and one failed item skips only that item #1363 (the 29 refineStructuredOutputValidationErrors).
Update 2026-10-08: refinement
Lines moved (roadmap/run.py:852-862, :829-835; server/service.py:230-261). #1400 landed, so the group's rate-limit members carry the reset. #1280 made a failed cut push a typed error (commands/release.py:1113-1130), closing the typer.exceptions.Exit question. #1404 narrows the refine-hook catch this item's comment targets (roadmap/intake.py:1389-1390), and #1409 makes a failed login lookup fail the clone rows.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty-bot commentedon Oct 8, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The defects degrade operational observability and make debugging harder but do not break job execution or data integrity, and the service continues to function.Operators debugging the service across eight repositories need accurate, single-record, context-rich logs; the current split-and-noisy output slows incident response but does not block the service.The fix requires distinguishing a missing roadmap.toml as a ConfigurationError in the service path without breaking the existing GitHubFileNotFoundError contract used by devops gh issues triage, consolidating two log sites into one with botdan-petty commentedon Oct 8, 2026
Note from #1366 (2026-10-08): after #1366,
ensure_checkoutraisesGitOperationErrorfor any failed git command, with the command and git's reason. Asubprocess.TimeoutExpiredor a missinggitbinary still reaches_prepare_cloneunconverted, so this item's clone-error log should render those two as well.dan-petty commentedon Oct 8, 2026
Amendment from #1400 (in review for v0.2.29):
RoadmapRunError.reset_at, because this item's ExceptionGroup cause has not landed. When it lands, move the reset onto itsGitHubRateLimitErrormembers, and haveservice_pause_untilread the earliestrefusal_resetamong them.roadmap/intake.py, around lines 1202-1205) and refine's visibility read (roadmap/refine.py, around lines 327-331) log and drop every exception. A GraphQL budget refusal there does not pause the Service until the round's next board call raises it again. Re-raiseGitHubRateLimitErrorthere, so the job's own error carries the refusal.dan-petty commentedon Oct 11, 2026
Blocked by #1562: the roadmap Service's machine account is suspended, and the Service is held at 0 replicas. This item develops the Service or can only be checked on it, so it waits until the account is reinstated or the jobs act as a GitHub App.
Generated by Claude Code