← Back to Pull requests

OCPEDGE-3276: edge-scrum weekly report readability, HTML report, no epic check for bugs, one not-started check-in reply #357

Open
unknown opened this pull request with 650 lines diff across 8 files
View on GitHub
unknown unknown commented on Dec 02, 2026 09:44 UTC
Author

Why

Team feedback on the first weekly report and check-in from chai-bot (OCPEDGE-3276, "Follow-up PRs"):

  • The weekly report is hard to read, and people want to filter it by their own name to fix their items.

  • Jira keys are not links.

  • "No epic" is flagged for bugs.

  • The sprint-end check-in posts one reply per not-started issue (17 replies for Sprint 298).

  • A DM test in which the coordinator made a round's query_jira calls in parallel filed pages under the wrong requests: the script matched pages to requests by the order of their result_id numbers, which holds only when calls are made one at a time.
  • What

  • Weekly report in Slack (bin/chai_report.py, weekly_post), as the team asked on 2026-12-02:

  • - the top message, without names: status, biggest risk, "N people have items";
    - one thread reply: a CC line mentioning everyone with items (split into more replies only if it would pass Slack's limit);
    - the HTML report, attached after the CC line, carries each section's detail.
    - The per-section Slack texts stay in build_report (title, figures in a quote, team actions, the first 6 owners with their issues, every key a Jira link) and are bounded to Slack's 40,000-character message limit, but they are not posted.
  • HTML report (bin/weekly_report_html.py, new):

  • - Built from the same data as the Slack report.
    - Cards for the week's stage: sprint week 1, mid-sprint or final week; refinement or release in development; epic fields.
    - The team actions.
    - One table of every finding for everyone: person, linked issue, summary, type, section, problem, what to do.
    - A person filter, a section filter and a search box; sortable columns.
    - One self-contained file, light and dark.
    - step() returns it as "html". The skill stores it as its own result, and chai-bot attaches it with send_html_to_thread (ship-help-bot PR).
  • "No epic" is checked only for Stories and Tasks. It is never checked for a bug in any project (Vulnerability and Weakness issues count as bugs), or for a spike: spikes may be standalone on purpose (team decision). "Unpointed" still applies to every type.

  • Laws: law 02 says bugs never have a parent epic, as standalone deliverables, and spikes may or may not have one (a spike refining a feature is standalone and blocks it; edge-context's spike checklist still says a spike rolls up to an epic, noted in the law). Stories and Tasks keep the epic rule, per edge-context's story and spike checklists. Laws 10 (bug triage) and 06 (fields) are aligned with it.

  • Check-in layout:

  • - The looks-done replies come first. Each is its own message with Close it / Keep open: a message holds at most 5 buttons, and a click replaces them all.
    - Every other section is one message: a bold title with its count and what to do, then each owner's issues below their name. Summaries are cut at 70 characters, and every key is a Jira link.
    - The not-started issues are one message without buttons, since no click already means carry over.
    - Each reply is bounded to Slack's message limit.
  • Pages filed by request ID (bin/weekly_report_files.py, skill section 3): the round code passes PAGES, the result_id each query_jira call returned, keyed by its request ID, so call order and timing no longer matter. Every request that found issues needs one result_id, all different and newer than every earlier round's (and than a failed attempt of the round); otherwise the round is asked for again, at most twice, then the report is not posted. Nothing is guessed. The skill also says to make one call per step.

  • Round guidance (skill section 2): each round's printed line says what to do next (the round's calls in order, then compact, then sandbox_exec, and how many query_jira result_ids PAGES needs; or, for a round with no requests, only sandbox_exec with the loads), and a redo says why. A live DM run had needed two redos: PAGES left empty in round 1, and the calls of a round that also had 56 loads skipped.

  • A sprint page without its fields is never used: a live DM run posted 90 SP for 109 because the USHIFT sprint page came back without its story points (the call made without its extra_fields). The sprint fetch also asks for project (set on every issue, short: never stored, no loads, no new calls), and every issue of a sprint = <id> page must carry it; a velocity page must carry its Sprint field, naming its sprint when shown whole. Otherwise the round is asked for again with the reason, at most twice, then the report is not posted. The adapter ignores project as data.

  • An answer that names another request is never used: results are matched to calls by order. In a live check-in run the bot made one get_jira_issue call after the rest of its round, which shifted nine answers. The key check caught them and the retry fixed them. resolve_identity, github_pr_checks and field reads had no such check, so a call made out of order could mention the wrong person, make an issue look done on another pull request's state, or swap two issues' field values. Each answer must now name its request (the identifier, the repo and number, the issue key, read from the response's own Requested fields area). One that does not is asked for once more and otherwise never used: the mention stays a plain name, and the issue is listed as not checked. No calls are added when calls are made in order.

  • A cached pre-mapping skill still works: chai-bot caches a skill for up to 30 minutes while the scripts are fetched fresh, so a non-empty PAGES list (the old form) is filed as before.

  • weekly-report skill, README, edge-scrum 1.8.0 → 1.9.0.
  • How it was checked

  • The chain sweep runs every chain scenario (92) through the script. It requires the same Slack post, and now also requires every finding to be in the HTML report and a CC line whenever anyone has items.

  • The stored reports in the chain tests are regenerated. The remaining test changes are wording, plus a noise budget rewritten for the new layout.

  • New tests:

  • - HTML rows, cards for each stage, actions, escaping;
    - no "no epic" for bugs and CVE trackers;
    - the single not-started reply;
    - issue lines and their cap;
    - pages filed by request ID when the calls finished out of order, and a missing, repeated or earlier-round result_id asks for the round again;
    - a check-in reply cut at Slack's limit ends with the number of issues left out (owner lines not counted) and a board link;
    - the printed next step and redo reason, and at most two redos per round;
    - a sprint or velocity page without its fields asked for again (end to end: dropped once gives the same report, dropped every time is not posted with the reason);
    - the old PAGES list form posting the same report;
    - calls made out of order (end to end, weekly and check-in): once gives the same output; every time never mentions the wrong person or makes an issue look done.
  • Review fixes: at most 8 keys on one line and 12 on a carrying-over line, so a reply stays under Slack's 40,000 characters; sort headers are buttons, so they work from the keyboard; the embedded data escapes < and >.

  • Full edge-scrum suite: 934 passed. Live DM tests on this branch (Luna): the weekly report with its CC line and HTML, and the check-in with pages filed by request ID. Markdown lint clean for the files this PR changes.
  • Merge with the ship-help-bot PR that attaches the HTML report and posts the not-started reply without buttons.

    Assisted-by: Claude

    🤖 Generated with Claude Code

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    New Features
    Weekly sprint reports include a self-contained HTML attachment with sortable findings, filters, search, and Jira links.
    Improvements
    Slack reports organize sprint and release details into clearer sections, with linked issues and grouped owner, action, and CC replies. Overflow details point to the attachment.
    Sprint-end check-ins group not-started issues into one reply without action buttons; omitted carryover items link to the board.
    Reports retry incomplete or mismatched Jira results up to twice and are not posted if still invalid.
    Sprint capacity checks no longer flag Bugs, Spikes, Vulnerabilities, or Weaknesses for missing Epics; Stories and Tasks still require one.
    Documentation
    * Updated weekly report, check-in, and issue hierarchy guidance.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: Neilhamza Review duration: 1399m
    All Vouch review confidence checks passed
    Residual risk 0.28 = Change Risk (0.52) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #357"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 27.7% · Safe to merge
    27.7%