Skip to content

fix(roadmap): intake names the reason of a failed write #3651

Closed

Description

@dan-petty

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 GitHubOperationError with 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.error holds the error class and the masked reason. The logger warning and raise_for_failed_placements read that field. (best practice) [sources: src/devops_cli/roadmap/intake.py:1303, src/devops_cli/roadmap/intake.py:1326]
    • Chosen: Extend PlacementFailure.error. The final RoadmapIntakeError and 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.
  • Which function masks the error text?: mask_secrets masks str(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.
  • What detail does GitHubOperationError give?: 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

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 5, 2026
  2. dan-petty commented on Nov 5, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. Operators cannot diagnose failed writes without a new run, but the system still functions.
    • Value: Medium. It removes a debugging gap for operators who see an intake failure.
    • Effort: Low. The candidate states that mask_secrets and GitHubOperationError text already cover the need; the change is to pass the text through and add tests.
    • Related: fix(roadmap): refine's failure warnings name no repository and drop the reason, so a gateway timeout and a bad model reply look the same #2562, which asks for a different change. Both fix failure messages that show only the error class, but #2562 targets refine and the candidate targets intake.
  3. added
    priority/p2-medium
    on Nov 5, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 6, 2026
  5. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at ffaea53 (see proposed design in issue body).

  6. added
    owner/agent
    status/in-progress
    and removed
    status/ready
    on Nov 6, 2026
  7. removed
    status/in-progress
    owner/agent
    on Nov 7, 2026
  8. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    Contributor
  9. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-07 05:06 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/roadmapsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions