Repository navigation
Description
Problem
When a write of devops roadmap intake fails, the output names only the class of the error. A person cannot see the cause without a new run.
Evidence from 2026-11-05: two runs for one candidate ended as follows, and a third run with the same title and body filed it as #3648. The core rate limit was not low (3875 of 5000 left). Neither run filed an issue.
✗ Intake finished with candidates it could not write: the writes failed for 1 candidate(s), and intake skipped them after writing the others; the next run tries them again: "feat(roadmap): explain and inbox show the state of a stopped item" (GitHubOperationError)
_failed_placement in src/devops_cli/roadmap/intake.py passes the error text to logger.warning, and the console does not show that line. PlacementFailure keeps only type(exc).__name__. Each run also spends a model call again before it tries the write.
Expected
The failure line names the masked reason of the error: the status code and the message of GitHub.
Acceptance criteria
- A test: a failed write of a candidate prints the masked reason with the class of the error.
- A test: a token in the error text does not appear in the output.
- A test: the other candidates are still written.
Existing tool considered
mask_secrets and the text of GitHubOperationError cover the need. The change adds no tool.
Related
Related: #1443.
Proposed design
Problem statement
Intake hides the cause of a failed write. The console names only the error class. A person cannot see the status or message of GitHub. The change shows the masked reason in the failure line.
Acceptance criteria
Requirement: Failure reason
The intake failure output SHALL name the class of the error and the masked reason of the failed write.
Scenario: A candidate write fails with a GitHub error
- WHEN A test makes one candidate write raise
GitHubOperationErrorwith a status code and a message - THEN The intake failure text contains the error class, the status code and the masked GitHub message
Requirement: Secret masking
The intake failure output MUST NOT contain a token from the error text.
Scenario: The error text holds a token
- WHEN A test makes the failed write error text contain a GitHub token
- THEN The intake failure text does not contain the token
Requirement: Other candidates written
Intake SHALL write the other candidates after one candidate's write fails.
Scenario: One candidate fails
- WHEN A test makes the first candidate's write raise
GitHubOperationError - THEN The second candidate's write is made and the run reports the first candidate as failed
Existing Tool Considered
No alternatives check has run. The existing mask_secrets function and the text of GitHubOperationError cover the need. The change adds no tool or library.
Key questions
- Where does the failure output get the masked reason?:
PlacementFailure.errorholds the error class and the masked reason. The logger warning andraise_for_failed_placementsread that field. (best practice) [sources: src/devops_cli/roadmap/intake.py:1303, src/devops_cli/roadmap/intake.py:1326]- Chosen: Extend
PlacementFailure.error. The finalRoadmapIntakeErrorand the logger warning then show the same masked value. - Rejected: Change only the logger warning. The console does not show the logger warning.
- Rejected: Change only the final error. The logger warning would still receive the unmasked exception.
- Chosen: Extend
- Which function masks the error text?:
mask_secretsmasksstr(exc). Intake keeps the error class and adds the masked text. (best practice) [sources: src/devops_cli/security/sanitizer.py, docs/ROUTINE_TASKS.md:97]- Chosen:
mask_secrets. It masks GitHub tokens and the issue names it. - Rejected: Raw exception text. A token in the text would reach the console.
- Chosen:
- What detail does
GitHubOperationErrorgive?: Its text gives the status code and the GitHub message. Its class name gives the error kind. [sources: src/devops_cli/exceptions/git.py, docs/adr/0006-github-session-requests-go-through-gidgethub.md] - Does a failed write stop the other candidates?: No. Intake skips the failed candidate and writes the others. A rate limit or an unauthenticated error still stops the round. [sources: src/devops_cli/roadmap/intake.py:1319, src/devops_cli/roadmap/intake.py:1326]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 5, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.Operators cannot diagnose failed writes without a new run, but the system still functions.It removes a debugging gap for operators who see an intake failure.The candidate states that mask_secrets and GitHubOperationError text already cover the need; the change is to pass the text through and add tests.Both fix failure messages that show only the error class, but #2562 targets refine and the candidate targets intake.devops-cli-service commentedon Nov 6, 2026
Status set to Ready at ffaea53 (see proposed design in issue body).
devops-cli-service commentedon Nov 7, 2026
Released in v0.77.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.77.0
devops-cli-service commentedon Nov 7, 2026
Live since 2026-11-07 05:06 UTC