Skip to content

fix(roadmap): an answer on a shared frame answers each linked item #6602

Done

Description

@dan-petty

Problem

When two items ask one owner question, refine posts one owner-question frame. The older open item holds the frame. The other item gets a link comment: "The owner question of this item is on #N ... Answer it there." (link_comment in src/devops_cli/roadmap/owner_question.py).

For an owner question, owner_answer_of reads the answer from the item that holds the frame. For the covers question of the alternatives check, covers_question (src/devops_cli/roadmap/refine/refine.py:705-725) reads only the comments of the item itself. So a person answer on the item that holds the frame does not answer the covers question of the linked item. _asked_questions then does not ask that question.

Example: on 2026-11-21, refine of #4899 linked its covers question to the frame on #4605. An answer on #4605 alone does not end the wait of #4899, so the owner must answer on both items.

Expected

The covers question of a linked item reads the person replies after the frame on the item that holds the frame, as owner_answer_of does.

Acceptance criteria

  • Test first: two items share one covers frame, and a person replies on the item that holds the frame. Refine of the linked item finds the covers question answered. The test fails on the base.
  • A test: a reply on the linked item itself still answers its covers question.
  • A test: a reply of a bot or of the job account on the frame item answers no covers question.

Dependencies

None.

Alternatives check of 2026-11-21: none.
Tool: none found.
Reason: The searches returned no tool that resolves a question asked on one item from answers on the linked frame item; this is an internal change to refine's covers-question reader, not a gap a library fills.

Lacks:

  • Follows the link comment to the frame item
  • Reads person replies after the frame as owner_answer_of does
  • Ignores bot and job-account replies on the frame
  • Test where two items share one covers frame

Proposed design

Problem statement

A shared owner-question frame lives on the older item. The linked item gets only a link comment. covers_question reads the linked item's comments alone. A person answer on the frame item does not answer the linked item's covers question. The fix makes the linked item read person replies after the shared frame. It keeps local replies and ignores bot and job-account replies.

Acceptance criteria

Requirement: Shared frame answer

Refine SHALL read a person reply after the shared covers frame on the frame item as the answer of a linked item.

Scenario: Person answers on the frame item

  • WHEN Two items share one covers frame, and a person replies on the frame item after the frame.
  • THEN covers_question for the linked item follows the link comment to the frame item and returns a CoversQuestion whose answers tuple holds that reply; the new test in tests/roadmap/test_roadmap_alternatives.py fails on the base commit.

Requirement: Local reply

Refine MUST keep a person reply on the linked item itself as an answer to its covers question.

Scenario: Person answers on the linked item

  • WHEN A linked item has a covers question, and a person replies on the linked item after the check.
  • THEN covers_question for the linked item returns a CoversQuestion whose answers tuple holds the reply on the linked item.

Requirement: Bot reply ignored

Refine MUST ignore a reply of a bot or of the job account on the frame item.

Scenario: Bot answers on the frame item

  • WHEN A bot or the job account replies on the frame item after the shared covers frame.
  • THEN covers_question for the linked item returns a CoversQuestion whose answers tuple holds no reply from that bot or job account.

Existing Tool Considered

The alternatives check of 2026-11-21 records verdict none and no tool in the Alternatives block of the issue body. The change builds its own code: about 6,000 output tokens to write the reader and its tests, about 500 tokens per quarter to keep and fix, and one working day elapsed.

Key questions

  • How should refine find the item that holds a shared covers frame?: Parse the frame item number from the link comment that OwnerQuestion.link_comment writes. Read the comments of that item. Do not add a new job-record field. (best practice) [sources: src/devops_cli/roadmap/owner_question.py:87, src/devops_cli/roadmap/refine/refine.py:708, src/devops_cli/roadmap/refine/refine.py:1882]
    • Chosen: Parse the link comment. The link comment already names #N, and owner_answer_of uses the same shared-frame form.
    • Rejected: Store the frame item in the job record. It adds state that can go stale, and the link comment is the existing record.
    • Rejected: Search every open item for the frame hash. It costs many API calls and can pick a wrong item.
  • Which helper should filter and order replies from the frame item?: Reuse answer_of in src/devops_cli/roadmap/owner_question.py with the frame hash and the job actor. It returns only the newest trusted person reply after the frame. (best practice) [sources: src/devops_cli/roadmap/owner_question.py, src/devops_cli/roadmap/refine/refine.py:1882]
    • Chosen: Reuse answer_of. It already ignores bot and job-account replies and reads only comments after the frame.
    • Rejected: Add a second filter in refine. It duplicates trust logic and can diverge.
    • Rejected: Use the newest comment with no trust filter. A bot or job reply would answer the question.
  • How should covers_question receive comments from the frame item?: Add an optional frame_comments argument to covers_question. The caller fetches comments of the item that the link comment names. The function stays pure and testable offline. (best practice) [sources: src/devops_cli/roadmap/refine/refine.py:708, src/devops_cli/roadmap/refine/refine.py:3602, tests/roadmap/test_roadmap_alternatives.py:1259]
    • Chosen: Pass frame comments as an argument. It keeps covers_question pure and lets a test give the frame comments directly.
    • Rejected: Fetch comments inside covers_question. It adds I/O to a function that tests call with comments.
    • Rejected: Read only the linked item comments. This is the defect that the issue fixes.
  • Which check rejects a reply of a bot or of the job account?: is_person_comment(comment, actor) rejects a bot, a stranger and the job account. answer_of calls it for each comment after the frame. [sources: src/devops_cli/roadmap/owner_question.py]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/bug
    source/agent
    scope/roadmap
    status/new
    on Nov 21, 2026
  2. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor
  3. added
    value/medium
    effort/low
    priority/p2-medium
    on Nov 21, 2026
  4. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (3)

    Searches run:

    • GitHub issue question answer synchronization bot duplicate issue comments, results: 5
    • tool to share one question and answer across linked GitHub issues, results: 5
    • open source tool propagate comment answer between duplicate linked issues, results: 5

    Sources:

  5. added
    status/ready
    and removed
    status/new
    on Nov 22, 2026
  6. devops-cli-service commented on Nov 22, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See the section Proposed design of the body.

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

    @devops-cli-service
    Contributor

    Live since 2026-11-25 17:09 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