Skip to content

✨ Betty answers questions about the hive from its live state - #18593

Merged
kubestellar-prow[bot] merged 1 commit into
v5from
feat/18590-betty-hive-status
Nov 17, 2026
Merged

kubestellar-prow[bot] merged 1 commit into
v5from
feat/18590-betty-hive-status

Conversation

@clubanderson

Copy link
Copy Markdown
Member

Finding 9 of the first live meeting pass: "Betty, what can you tell me about Hive right now? How many open issues are there?" was sent to the research pool (which only sees the public web) and failed silently.

Changes

  • dashboard.Server.HiveStatusBrief(ctx): a few plain sentences from the in-memory status the Overview tiles and the dashboard chat's grounded answers already use (chatBuildSnapshot over s.status): open issues/PRs, actionable / held / blocked / awaiting decision, agents (total, paused, blocked), who is working on what, recent completions, newest open PRs with CI, plus a note when counts are syncing or last-good. Nothing fetched, nothing written; bounded to 1500 chars.
  • betty.HiveStatusRetriever + IsHiveStatusQuestion: a question that names the hive (or "the repo") with a state word, or asks for open issues / open PRs / actionable items / recent merges, gets one hive live status snippet. The prompt tells the model to answer from it with its numbers; onAddressedAnswer never starts a deep dive when it is present.
  • meetingPersonaFactory / wireMeetingsLive take the brief (main passes b.dashSrv.HiveStatusBrief); test call sites pass nil.
  • Docs (meetings.md) and changelog.d fragment.

Tests

  • dashboard: TestHiveStatusBrief (counts, working/blocked/finished agents, PRs with CI, stale/syncing, cancelled ctx), TestHiveStatusListCaps.
  • betty: TestIsHiveStatusQuestion, TestHiveStatusRetriever, TestHiveStatusAnsweredInProcess (a model asking for research still answers from live data, no deep dive, within seconds).

Independent of #18592 (research follow-through); either can merge first.

Part of #18590

🤖 Generated with Claude Code

"Betty, how many open issues are there?" went to the research pool,
which only reads the public web. The persona now has a hive-status
retriever backed by dashboard.Server.HiveStatusBrief, built from the
same in-memory status snapshot as the Overview and the grounded chat
(chatBuildSnapshot): open/actionable/held/blocked counts, agents,
working and blocked agents, recent completions and open PRs. A question
about the hive gets that snippet, the prompt says to answer from it,
and no deep dive is started.

Part of #18590

Signed-off-by: Andy Anderson <andy@clubanderson.com>
@kubestellar-prow kubestellar-prow Bot added dco-signoff: yes Indicates the PR's author has signed the DCO. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Open PR overlap check

Base branch: v5

Conflicts are checked with every PR merged onto the current tip of v5, so a PR that only needs a rebase is not reported as conflicting with its siblings.

PR Title Relation Files
#18615 ✨ Meetings: delete finished meetings and stale join requests same files src/cmd/hive/main.go
src/docs/meetings.md
#18592 🐛 Betty closes the loop on deep dives; research agents survive config reloads CONFLICT src/cmd/hive/main.go (conflict)
src/docs/meetings.md (conflict)
#18603 ✨ Settings: "Post on other projects as" control for remote write identity same files src/cmd/hive/main.go
#18595 🐛 Meetings panel says plainly when notes and clarifying questions are off same files src/docs/meetings.md
#18611 ✨ meetings: desktop companion meetings (/api/companion/*) same files src/docs/meetings.md
#18599 ✨ Betty acknowledges a spoken request from the partial transcript same files src/pkg/meetings/betty/queue.go
#18602 📖 docs: Betty on Zoom without a Zoom app, options and recommendation same files src/docs/meetings.md
#18576 ✨ Owner-only Send to on model-owned stage-tracker rows same files src/cmd/hive/main.go

@github-actions

Copy link
Copy Markdown
Contributor

Mutation testing

⏱️ The 900s mutation budget ran out, so 2 package(s) were not fully mutated and the results below do not cover them:

  • pkg/dashboard: cut short (partial, no report)
  • pkg/meetings/betty: skipped (not started)

2 mutant(s) in changed files are not reached by any test (NOT COVERED). A maintainer may apply the mutation/acknowledged label to accept this.

File Line Mutation
src/cmd/hive/main.go 3588 CONDITIONALS_NEGATION
src/cmd/hive/meetingswire.go 231 CONDITIONALS_NEGATION

ℹ️ 1 mutant(s) on added lines were SKIPPED because gremlins v0.6.0 only honours the first lines added lines of each default-context hunk, so non-contiguous edits in one hunk are partly missed. This does not affect the verdict.

File Line Mutation
src/cmd/hive/meetingswire.go 267 CONDITIONALS_NEGATION

Verdict: uncovered (#17349).

@clubanderson clubanderson added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Nov 17, 2026
@kubestellar-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security review of e40b024: no blocking issue. Advisory: the live-status brief exposes PR titles and agent activity text to any participant (inline comment). Snippet text is sanitized before entering the prompt data block.

— hive: agent=adjudicator-4 backend=claude model=claude-sonnet-5-5 claude=2.1.325

hiveStatusList(&b, " Blocked", blocked)
hiveStatusList(&b, " Recently finished", done)
var prs []string
for _, pr := range snap.PRs {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Advisory (low): PR titles, a.Doing and a.LastCompleted go to every meeting participant, including guests in external meetings, with no check on who is asking. Consider limiting the answer to counts unless the meeting is internal.

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Hive status — updated in place; edits do not notify. Full history is in the Activity Monitor.

Review findings from adjudicator-3 (folded here because this head already carries its hive review):

Correctness review: routing and wiring look sound; queue.go correctly skips the dig-in when the live snippet is present. One advisory finding inline (stale-counts note can be truncated away). Not blocking.

Findings not on a changed line

  • src/pkg/dashboard/meetings_hive_status.go:96: The stale/last-good note is appended last, so the 1500-char cut drops it first (with the PR list) when lists are full. Write it right after the counts line so it always survives, e.g. move the if status.StaleSince != "" block to just after the first Fprintf of counts.

@github-actions github-actions Bot added the conflicts-with-open-pr Open PR has a merge conflict with another open PR label Nov 17, 2026
@kubestellar-prow
kubestellar-prow Bot merged commit d3b206e into v5 Nov 17, 2026
97 of 102 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the feat/18590-betty-hive-status branch November 17, 2026 03:04
clubanderson added a commit that referenced this pull request Nov 17, 2026
Keeps v5's meetings changes (#18594 consent delivery, #18600 failure
logging and Discord wording, #18595, #18593, #18599, #18591) alongside
meeting delete. Clears consentTries on delete, adds the delete helpers
to the meetings/calendar role-race test harness (server-tests failed
with meetingsFinished is not defined), and refreshes docs citations.

Signed-off-by: Andy Anderson <andy@clubanderson.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. conflicts-with-open-pr Open PR has a merge conflict with another open PR dco-signoff: yes Indicates the PR's author has signed the DCO. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant