Skip to content

Release run Done rows do not link the published GitHub Release #2228

Closed

Description

@JacobStephens2

Finding

Spec #2054's Implementation Decisions say a successful Release run "ends succeeded in Done (linking the published Release…)". The Release run on the Spec branch doesn't do that: its Done row links only the bump pull request.

Evidence

  • src/release.rs: Ended carries only pr_url and version.
  • src/run_ending.rs: the Ending::Release account sets pr_url and urls: vec![&ended.pr_url], with no Release URL.
  • src/logs/command_record.rs: finish stores pull_request and has no field for a published GitHub Release. Inbox rows (src/logs/reading/inbox.rs, record_pull_request) and the Console link from that field only.
  • The Spec review of PR Spec: thirdshift release Command and Pass for scheduled and on-demand releases #2162 proposed this test in tests/release/native.rs. It fails, because the record never mentions /releases/tag/v0.2.0:
#[test]
fn a_published_release_run_links_its_github_release() {
    let release = Release::new();
    release.ci_reports(GREEN);
    let output = command(&release, "0.2.0").output().unwrap();
    assert!(output.status.success(), "{}", stderr(&output));
    let record = record(&release);
    assert!(record.to_string().contains("/releases/tag/v0.2.0"), "{record}");
}

Raised by

The Spec-axis code review of #2162 (Spec #2054).

Why this needs a decision

Linking the Release from the Done row means adding a field to the public Command record. That record is served through the Console API (/api/v1/runs, Inbox JSON) under ADR 0026, so the Console's Inbox row rendering has to change too. Someone has to decide the field's name and shape, whether the API exposes it, and how the row shows two links: the merged bump PR and the published Release. That is an API contract decision, which the Day shift should make rather than the review pass on the Spec branch. Until then the bump PR link stays, and the GitHub Release is one click away from that PR's tag.

Decision

Add the published Release to the record as one new optional field. It only adds data, so existing API clients keep working:

  • Command record: add release_url (string, optional, omitted when absent) next to pull_request. Set it only when a Release run published its GitHub Release, to the Release's html_url (https://github.com/<owner>/<repo>/releases/tag/v<version>). Older records without the field still read.
  • Console API (ADR 0026): serve release_url wherever pull_request is served for a run: /api/v1/runs, the Inbox JSON and the OpenAPI schema (optional, nullable). Keep the parity checks green.
  • Inbox row and Console: the merged bump PR stays the row's main link. Add a second link, labelled Release v<version>, when release_url is present. Rows without it render as today.
  • Run notification: a Release run's notification lists the Release URL after the PR URL.
  • Needs you: a run that published the Release but failed to merge the bump PR also records release_url, so its row links both.

Tests: the a_published_release_run_links_its_github_release test above, plus API/OpenAPI parity, and a Console Inbox test showing both links on a Release run row and only the PR link on other rows.

Activity

  1. added
    needs-triage
    in-progress
    and removed
    needs-triage
    on Nov 14, 2026
  2. JacobStephens2 commented on Nov 14, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Investigation summary

    Confirmed against the Spec branch origin/issue-2054 (open PR #2162 for Spec #2054). The gap does not yet exist on main: the Base branch (c1c37d4) has no Release run code; src/release.rs is absent, though the GLOSSARY.md Release run entry has landed.

    Confirmed facts

    • src/release.rs on issue-2054: pub struct Ended { pub pr_url: String, pub version: String }. It holds no Release URL.
    • src/run_ending.rs on issue-2054: the Ending::Release(Ok(ended)) account sets pr_url: Some(&ended.pr_url) and urls: vec![&ended.pr_url]. Account.urls flows only into Shown.urls, which print writes to the terminal through logs::print. It never reaches the Command record.
    • src/logs/command_record.rs (main, unchanged on the Spec branch): the only link field is pull_request: Option<String> (line 140), set from account.pr_url in finish (line 496). Inbox rows (src/logs/reading/inbox.rs, record_pull_request) and the Console link from that field only.
    • Spec Spec: thirdshift release Command and Pass for scheduled and on-demand releases #2054 Implementation Decisions: a successful Release run "ends succeeded in Done (linking the published Release; ...)". The Spec's testing list does not check for that link, so PR Spec: thirdshift release Command and Pass for scheduled and on-demand releases #2162 can pass its own tests without it.
    • The test proposed in this issue for tests/release/native.rs (a_published_release_run_links_its_github_release) fails because no field could carry /releases/tag/v<version> into the record.

    Decision needed from the Day shift

    The Command record is served through the Console API (/api/v1/runs, Inbox JSON) under ADR 0026 (docs/adr/0026-each-console-serves-an-api-that-can-do-what-the-cli-can.md), so adding a field changes a public contract. Please decide:

    1. The field's name and shape: a Release-specific field (for example release: Option<String>, the Release's html_url) or a general list of links on the record.
    2. Whether /api/v1/runs and the Inbox JSON expose it. Older records lack it, so it must be optional and defaulted on read.
    3. How a Done row shows two links, the merged bump PR and the published Release, in both the CLI Inbox and the Console.

    Proposed follow-up once decided (agent-ready)

    • Carry the published Release URL in release::Ended, using the URL the publish step already knows or https://github.com/<owner>/<repo>/releases/tag/v<version>.
    • Add the decided field to Account in src/run_ending.rs and to the Command record in src/logs/command_record.rs::finish, with serde default for older records.
    • Render it in src/logs/reading/inbox.rs and in the Console Inbox row, expose it in the API as decided, and update the API docs and docs/guide.md (then regenerate the site manual) where Inbox rows are described.
    • Add a_published_release_run_links_its_github_release to tests/release/native.rs, plus Inbox/API tests for the new field.

    This can land on the Spec branch before PR #2162 merges, or as a follow-up Ticket after it. Until then the Done row links the merged bump PR, and the Release is one click away from its tag.

  3. added
    enhancement
    ready-for-human
    ready-for-agent
    in-progress
    agent-failed
    and removed
    in-progress
    ready-for-human
    ready-for-agent
    on Nov 14, 2026
  4. JacobStephens2 commented on Nov 15, 2026

    @JacobStephens2
    OwnerAuthor

    This comment was generated by AI.

    thirdshift's Run on this issue failed, so it waits for the Day shift.

    Put ready-for-agent back to retry.

  5. added
    ready-for-agent
    in-progress
    and removed
    agent-failed
    ready-for-agent
    on Nov 15, 2026
  6. removed
    in-progress
    on Nov 15, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions