Skip to content

ensure all information received or acquirable in the email notices can be acquired alternatively in the web console #2146

Closed

Description

@JacobStephens2

assuming all emails get turned off for all cronjobs for all run types for example. I'm getting a lot of emails right now, and want to try just monitoring my thirdshift fleet by the console

Activity

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

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Investigation summary

    The reporter wants to turn off Run notification emails for every Command kind and watch the fleet from the Console instead. That only works if everything a Run notification says can also be read there.

    Confirmed facts:

    • A Run notification is always saved locally, whether or not email is on. RunNotification::finish (src/notification.rs:246-316) writes <Command log stem>.notification.txt (line 296) before the optional Resend send, and NotificationAsk::Skip only leaves out the Resend client (src/notification.rs:152-163).
    • Nothing reads that file. The only mention of it under src/ is the write. docs/guide.md:3149 says: "These files are not included in thirdshift logs or the Console's log inventory." src/logs/reading/reader_tests.rs:83 asserts that the exact log reader refuses a .notification.txt path.
    • Command details (src/console/peek.rs, built from crate::logs::stop::inspect in src/logs/stop.rs:133, served at /peek and /api/v1/peek in src/console.rs:924-925, with Fleet remote reads at src/console.rs:1528) already shows the outcome, cause, issue and pull requests. Several notification sections are written only into the notification body (body() and finish() in src/notification.rs:388-606, 246-316): the Triage recommendation text (account.triage.notification and the publication lines), the Security audit line, reproduction status and finding sections, a Spec run's line per Ticket, the usage-limit notice (usage_limit), the Command quota waits line, the Session models section, Took, Base fix advice and the configured Harness/Model/Effort line. With email off, the Day shift cannot see these anywhere in the Console.
    • No open issue covers this gap. add slack or email HITL support for a run #1748, send email notice if a thirdshift cron job doesn't work #615 and When Third Shift finishes a PR, CC the user who created it the GitHub user that is if they are not already the one who's being emailed the notification #898 are about other email features.

    Inference: the cheapest way to make the Console complete is to show the saved notification text as is, rather than rebuilding each section from the Command record.

    Agent Brief

    Goal: every Command that saved a Run notification shows that notification's subject and body in its Command details, in the Console, in /api/v1/peek JSON, through Fleet remote details and in the CLI's details view, so emails can be turned off without losing information.

    Do:

    1. Look up Run notification, Command details, Console, Fleet and Command log in GLOSSARY.md and docs/code-navigation.md (rows: Run notification, Fleet Command details, Stop/inspect, Console API token / CLI parity).
    2. In the shared details path (src/logs/stop.rs inspect / src/logs/status/inspect.rs details), read the owning Command log's sibling <stem>.notification.txt when it exists. Bound the read and keep the same Other-account confinement as accepted_log_directory. Expose it as a field, such as notification: { subject, body }, or null when the file is absent: still live, a skipped Pass, a dispatched child, or a failed write.
    3. Render it on the Console Command details page (src/console/peek.rs, peek.html) as escaped preformatted text below the existing facts, with links treated as the page treats other links. Remote Fleet details must render it from the JSON value with no filesystem read (Peek::remote).
    4. Keep ADR 0015 and the Security scope: when security_details is set and the viewer lacks Scope::Security, withhold the notification as other Security details are withheld (src/console.rs:1538).
    5. Give the CLI the same text (thirdshift status <command> details text and JSON). Update the parity inventory in src/console/parity.rs if needed.
    6. Docs: change docs/guide.md:3149 (and the Run notifications / Console sections) to say where the saved notification appears, then regenerate the site manual (npm run docs --prefix site). Search site/index.html, site/how-it-works/ and site/architecture/ for Run notification wording that says email is the only place to read it, and fix any you find.

    Acceptance:

    • A finished Ticket run, Spec run, Triage run, Security run, Architect run and Pickup run each show their notification text in Command details, JSON and CLI output, with email off.
    • A Command with no saved notification shows nothing and does not error.
    • A viewer without the Security scope does not see a Security run's notification.
    • Fleet remote details show it.
    • The Logs inventory and thirdshift logs stay unchanged.

    Tests: extend tests/console/* (peek/remote details/address scopes), tests/run_notification.rs and src/console/peek.rs inline tests. Final validation: scripts/affected-tests main.

    Out of scope: Console sign-in code emails (part of signing in), and a new channel for being notified.

    ready-for-agent was recommended; ready-for-human is applied until the Day shift permits readiness.

  3. added
    ready-for-human
    ready-for-agent
    in-progress
    and removed
    in-progress
    ready-for-human
    ready-for-agent
    on Nov 12, 2026
  4. removed
    in-progress
    on Nov 18, 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