Skip to content

🌱 chore: top up v6 from v5 (2026-11-16) - #18508

Merged
clubanderson merged 87 commits into
v6from
topup/v5-to-v6-20261116
Nov 16, 2026
Merged

clubanderson merged 87 commits into
v6from
topup/v5-to-v6-20261116

Conversation

@clubanderson

Copy link
Copy Markdown
Member

This PR merges origin/v5 (17ecea2, #18489) into v6 (04f0f77, v6.37.0) as two signed merge commits: the first through #18476, and a second for eight more v5 commits that landed while the first was being resolved. After it lands, origin/v5 is an ancestor of v6 again (checked with git merge-base --is-ancestor). The automated v6-topup.yml run has failed on every v5 push today because of conflicts outside the resolver's known patterns, so I carried it by hand.

What it carries

Everything on v5 since the last top-up, including: Inbox recording, auto-transcription, tab audio, uploads (#18408, #18411, #18418, #18422, #18425, #18426, #18432, #18475, #18476), Whisper and Gemini transcription, Inception (spek) seeding (#18405), meetings (Betty phases A to F, Calendar, hive-mx mail-in, email invites #18395/#18423/#18429/#18431/#18471/#18487), gateway pricing and model picker (#18449, #18463, #18474), the scanner note upsert (#18457), the sealed Copilot login gauge fix (#18461), the LF legal footer (#18485), and the retirement of /api/campaigns, campaign Jam, recheck, and the inception API, watcher and brainstorm mode (#18400, #18407, #18419).

Conflicts and how they were resolved

Area Resolution
Retired inception/campaign files (37 modify/delete) v5 deleted them; v6 had changed them. I kept v5's deletion. v6-only code that used them was also removed or stubbed: identity tests for campaigns/Jam/inception (5 files); chat_commands.go (/spek active campaigns now lists runs; inception relay state says the engine is retired); api_chat.go (drops the inception clarify routing); server.go buildFrontendInception now always reports inactive, so the status shape stays the same for pkg/chat; knowledge.InceptionState.ProposedFacts was dropped because its type is gone.
src/pkg/config/config.go Kept v6's split layout. I ported v5's three changes by hand: the runs.spektacular.recheck detection went to github_api_budget.go (UnmarshalYAML), WarnDeprecatedSpektacularRecheck() went to defaults.go, and the gauge comment was already present in dashboard_config.go.
runs_config.go (+test), validate.go, golden JSON Kept v6's hub executor and interview settings and v5's deprecated, ignored recheck block. Dropped the recheck types, defaults and ValidateRecheckDiscovery.
cmd/hive/main.go, boot_knowledge_deps.go (+test) Kept v6's nous layout and gate-watch wiring. Added v5's retired-campaigns export and inception-wiki reconnect. Dropped the inception engine, brainstorm restart and the watcher.
stage_leases.go, planengine/adapter.go Kept v6's side. v6 already had no recheck hooks there.
webhook_relay.go + new webhook_relay_mail_test.go Applied v5's relay delivery header and replay key. Renamed the reasons to v6's github.WebhookReasonRelay*.
issue_model_reply.go, issue_request_watcher.go, notification_write_sites.go Kept v6's removed labels and comment-body flow. Added v5's applyModelReplyLabel/modelReplyEffectSentence and the relayScannerNote branch, plus its two write sites.
api_providers_headroom.go, rotation/copilot_display*.go, subscription-gauge.js Took v5's side. Each is v6's content plus v5's gateway spend or sealed-login fix.
docker.yml / test-publish-image-tags.sh v5's new hive-mx image job is moved to the v6 lane (v6 false edge, INCLUDE_LATEST: "false", RELEASE_BRANCH: "v6", CHANNELS: "edge"). The test counts go from 3 to 4.
Dockerfile Union: v6's hive-admin-mcp plus v5's hive-whisper/hive-pdftext builds and the binary rewrite list.
go.sum, NOTICE Union of both sides. One duplicated x/time/rate NOTICE block removed. x/sync bumped to v0.25.0.
dashboard/openapi.json Structural 3-way merge with no conflicts: all 25 v5-added paths are in, all 13 retired /api/campaigns* paths are out, and every v6-only path is kept. The file was re-serialized with 2-space indent, which expands a few hand-compacted spots.
Docs The api-reference pages were merged with line citations normalized out, then fixed with check-api-reference-citations.sh --fix. The retired campaign rows were dropped from api-reference.md. inception.md and agent-logging.md take v5's text. In spektacular.md, the Campaigns paragraph and the Jam section were replaced by v5's retirement notes. ADR 0020 is v6's 0100 (renumbered), so v5's "retired" status went there. check-docs-citations.py reports clean.
Dashboard static Kept the other conflicts (CSS, config-state.js, config-tabs.js) on v6's side and added v5's "Meeting attendee" tab and spend styles. Dropped campaigns.js; nothing else referenced its functions. static/index.html was rebuilt with make dashboard-gen.
Import ratchets Removed crux/agentparse from the allowlist; its only user was the retired watcher. Added mailallow/mailin. maxDashboardInternalImports is now 73.
CHANGELOG.md, pin Kept both lines' release sections, v6 first (the resolver's union). TRUSTED_SCRIPTS_TREE is re-pinned to the merged src/scripts tree, 46005db3.

Left out / follow-ups

  • changelog.d/fixed-adopted-pr-rebase.md is not in the tree, so it does not land on v6.
  • pkg/chat/inception.go (v6's !inception chat commands) still compiles, but it now hits a retired API. It should be removed or reworked in a follow-up.

Nothing was built or tested locally. gofmt -l is clean on every changed Go file. CI is the gate.

πŸ€– Generated with Claude Code

clubanderson and others added 30 commits November 16, 2026 03:16
…l the release on strays (#18360)

* πŸ› changelog: recover 14 fragments stranded in src/changelog.d and fail the release on strays

Fourteen fragments from PRs merged 2026-10-20..27 were written under
src/changelog.d/, which compile-changelog.sh never reads, so their entries
never reached CHANGELOG.md. Move them to the repo-root changelog.d/ (one
needed the required '- ' bullet prefix) so the next release carries them,
following the #11928 / #12675 precedent.

Add a release-time backstop: compile-changelog.sh now fails loudly while any
fragment other than README.md sits in src/changelog.d/ next to the changelog,
so a stray that slips past the PR guard turns the next release job red
instead of vanishing. Tests cover the README-only, stray-only and mixed cases
plus a repo invariant that src/changelog.d/ holds only its README.

Spell out the ../changelog.d/ path for agents working inside src/ in
AGENTS.md, both READMEs and the scoped knowledge entry.

Fixes #18264

Signed-off-by: Andy Anderson <andy@clubanderson.com>

* πŸ› changelog: re-pin TRUSTED_SCRIPTS_TREE for the src/scripts change

Signed-off-by: Andy Anderson <andy@clubanderson.com>

---------

Signed-off-by: Andy Anderson <andy@clubanderson.com>
Co-authored-by: hivecommons-hive[bot] <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Bumps [ws](https://github.com/websockets/ws) from 8.22.1 to 8.23.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](websockets/ws@8.22.1...8.23.0)

---
updated-dependencies:
- dependency-name: ws
  dependency-version: 8.23.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [ws](https://github.com/websockets/ws) from 8.22.1 to 8.23.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](websockets/ws@8.22.1...8.23.0)

---
updated-dependencies:
- dependency-name: ws
  dependency-version: 8.23.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.276.3 entry.
See src/docs/releases.md.

Signed-off-by: hive-release-bot <actions@github.com>
* πŸ› Inbox: show why Transcribe is unavailable instead of hiding it

Pending items with audio now carry transcribe_unavailable (disabled, no_key, no_consent, budget); the UI renders a disabled Transcribe control with the reason and a settings link for owner/read-write, reason text only for read users. Pending text for every source now says hive can transcribe with Deepgram.

Signed-off-by: Andy Anderson <andy@clubanderson.com>

* πŸ› Inbox: inject transcribe-reason helper in inbox-item tests, keep Plaud pending phrasing

Signed-off-by: Andy Anderson <andy@clubanderson.com>

* ✨ Inbox: transcription progress with time remaining

Queued and running transcriptions show a progress bar with phase, percent,
time left and elapsed time; queued items show their place in line. Runs
execute one at a time in FIFO order with live in-memory progress exposed on
items and on the new lightweight GET /api/inbox/transcriptions. The ETA is
measured when a provider reports processed audio, else estimated from the
hive's measured speed (EMA of the real-time factor per provider/model,
stored with the usage ledger) or a conservative typical speed.

inbox.transcription.provider accepts auto (new default), whisper, gemini or
deepgram; auto resolves by availability (whisper, gemini, deepgram). The
settings panel gains a provider selector with per-provider readiness, and
pending, consent and setup text is provider-neutral.

Signed-off-by: Andy Anderson <andy@clubanderson.com>

---------

Signed-off-by: Andy Anderson <andy@clubanderson.com>
…2.15.3 in /src (#18368)

* 🌱 build(deps): Bump github.com/nats-io/nats-server/v2 in /src

Bumps [github.com/nats-io/nats-server/v2](https://github.com/nats-io/nats-server) from 2.15.2 to 2.15.3.
- [Release notes](https://github.com/nats-io/nats-server/releases)
- [Changelog](https://github.com/nats-io/nats-server/blob/main/RELEASES.md)
- [Commits](nats-io/nats-server@v2.15.2...v2.15.3)

---
updated-dependencies:
- dependency-name: github.com/nats-io/nats-server/v2
  dependency-version: 2.15.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* changelog: fragment for #18368

Generated by changelog-fragment-guard from the PR title (#5675).
Edit the wording freely, or replace this file with the no-changelog
label if the change is not user-visible.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: regenerate NOTICE for dependency bump

Regenerated by .github/workflows/notice-autofix.yml from the module
graph in this branch's src/go.mod and src/go.sum. See #5256.

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…usage rows (#18266, #18269) (#18273)

* πŸ› fix(gauge): name the model on the model-specific weekly dial (#18266)

Claude's usage reply names the model a weekly_scoped limit counts
(scope.model.display_name; /usage shows "Current week (Fable)"). The
built-in reader dropped it, so the dial said "Weekly (model-specific)".
Keep it in LimitWindow.Scope["model"], which the gauge already reads,
and capitalize the lower-cased names the ccleft source sends.

The contributor quota guard copies only id, kind, percent and reset,
so its decisions are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BQYnPGFJx81c8JXR3o1sg1
Signed-off-by: Danathar <Danathar@users.noreply.github.com>
(cherry picked from commit 3c23fb4)
Signed-off-by: clubanderson <407614+clubanderson@users.noreply.github.com>

* ✨ feat(gauge): one usage row per provider the agents spend, Copilot included (#18269)

* πŸ› fix(gauge): name the model on the model-specific weekly dial

Claude's usage reply names the model a weekly_scoped limit counts
(scope.model.display_name; /usage shows "Current week (Fable)"). The
built-in reader dropped it, so the dial said "Weekly (model-specific)".
Keep it in LimitWindow.Scope["model"], which the gauge already reads,
and capitalize the lower-cased names the ccleft source sends.

The contributor quota guard copies only id, kind, percent and reset,
so its decisions are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BQYnPGFJx81c8JXR3o1sg1
Signed-off-by: Danathar <Danathar@users.noreply.github.com>

* ✨ feat(gauge): one usage row per provider the agents spend, Copilot included

The Overview usage gauge showed only the Claude plan. A hive whose agents
run on the copilot backend (even with Claude models) saw nothing useful,
and a hive mixing backends saw only part of its quota.

- /api/providers/headroom adds used_by: per provider, the enabled agents
  whose backend spends its plan (rotation.UsageProviderForBackend;
  rotation.providers backends win over the built-in pairs).
- The default publish-only reading also measures Copilot's monthly
  premium-request quota through ccleft's Copilot reader, signed in only
  with the agents' Copilot login (COPILOT_GITHUB_TOKEN, the dashboard
  login's durable token, or the shared Copilot CLI config). With none it
  makes no call. "github" is not a contributor-guard provider, so the
  reading is never published to a pool and no relay holds on it.
- The gauge draws a row per provider in used_by, with the agents, dials,
  age and no-reading reason; the chip's needle follows the lowest limit
  across rows. Without used_by it keeps the Claude-only behaviour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BQYnPGFJx81c8JXR3o1sg1
Signed-off-by: Danathar <Danathar@users.noreply.github.com>
(cherry picked from commit 170947c)
Signed-off-by: clubanderson <407614+clubanderson@users.noreply.github.com>

* πŸ“– docs(api-reference): usage gauge chip covers every provider, not only Claude

Addresses the docs-currency review on this backport: the PUT
/api/config/dashboard row still described subscription_gauge_header as
the Claude-only chip.

Signed-off-by: clubanderson <407614+clubanderson@users.noreply.github.com>
…oss-origin audio) (#18366)

* πŸ› Inbox: play recordings through a same-origin stream (CSP blocked cross-origin audio)

The Inbox player put the source's presigned cloud-storage link (Plaud: S3)
on <audio src>. The dashboard CSP has no media-src, so default-src 'self'
applied and Chrome refused the load (MEDIA_ERR_SRC_NOT_SUPPORTED, "Media
load rejected by URL safety check", securitypolicyviolation media-src).

Add GET /api/inbox/{source}/{id}/audio/stream (owner or read-write): the
hive mints the link, fetches it server-side and streams the bytes with a
media Content-Type, passing a single Range through (206 + Content-Range,
200 when storage ignores it), capped at 2 GiB, Cache-Control: no-store.
The link is kept in memory for one playback's seeks, re-minted once when
storage refuses it, never logged or persisted; audited as
inbox_audio_stream per minted link. CSP is unchanged.

Add a Share button that shares an Inbox deep link
(#section-inbox-section?item=<source/id>) via Web Share or the clipboard,
never the media URL, and scroll to the item when such a link is opened.

Signed-off-by: Andy Anderson <andy@clubanderson.com>

* 🌱 inbox: cover the audio stream in the package's own tests (coverage floor)

Signed-off-by: Andy Anderson <andy@clubanderson.com>
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.277.0 entry.
See src/docs/releases.md.

Signed-off-by: hive-release-bot <actions@github.com>
…he hive) (#18376)

* ✨ Inbox: built-in Whisper transcription (no account, audio stays on the hive)

Bundle whisper.cpp v1.9.5 (MIT, all ggml CPU variants) and a minimal LGPL
FFmpeg 8.1.3 decoder in the hive image, built per arch from pinned,
checksummed tarballs. Recordings are decoded and transcribed in the new
hive-whisper sandbox as the hive-transcribe uid via su-exec: empty
environment, audio on stdin, model on an inherited descriptor, private 0700
work dir removed on exit, prlimit and nice, a wall-clock timeout scaled to
the recording, and an empty network namespace where the kernel allows it.

The pinned base.en model downloads on first use into /data/models/whisper
with a size cap and SHA-256 check, or is pre-seeded on air-gapped hives.
whisper reports measured progress from -pp and segment timestamps; auto
now prefers whisper. whisper_model and whisper_threads (default half the
CPUs) are configurable.

Signed-off-by: Andy Anderson <andy@clubanderson.com>

* πŸ› whisper: fix stage timeout classification, test name clash and coverage

Signed-off-by: Andy Anderson <andy@clubanderson.com>

* 🌱 ci: warm and reuse the whisper-builder layer cache

The overlayfs exec guard builds the image cold on a hosted runner within 10
minutes; compiling whisper.cpp and FFmpeg pushed it over. whisper-builder's
inputs are pinned and checksummed, so cache it like tmux-builder.

Signed-off-by: Andy Anderson <andy@clubanderson.com>

---------

Signed-off-by: Andy Anderson <andy@clubanderson.com>
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.278.0 entry.
See src/docs/releases.md.

Signed-off-by: hive-release-bot <actions@github.com>
…18369)

* 🌱 build(deps): Bump golang.org/x/sys from 0.49.0 to 0.50.0 in /src

Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.49.0 to 0.50.0.
- [Commits](golang/sys@v0.49.0...v0.50.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.50.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: regenerate NOTICE for dependency bump

Regenerated by .github/workflows/notice-autofix.yml from the module
graph in this branch's src/go.mod and src/go.sum. See #5256.

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…#18380)

* ✨ Inbox: Gemini transcription using the hive's own Gemini credentials

Add a gemini provider that calls generateContent with the hive's existing
GEMINI_API_KEY / GOOGLE_API_KEY / GOOGLE_GENAI_API_KEY (no new key): audio
inline up to 14 MB, else through the Files API (deleted after the run). The
prompt asks for verbatim JSON segments with [mm:ss] starts and speaker
labels and forbids invented speech in silence; the reply is validated with a
plain-text fallback. 429/5xx retry with Retry-After honoured, 401/403 name
the variables, error bodies are redacted. auto now resolves whisper, then
gemini, then deepgram; gemini_model is configurable.

Signed-off-by: Andy Anderson <andy@clubanderson.com>

* 🌱 gemini: cover reply and Files API failure branches

Signed-off-by: Andy Anderson <andy@clubanderson.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.279.0 entry.
See src/docs/releases.md.

Signed-off-by: hive-release-bot <actions@github.com>
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.280.0 entry.
See src/docs/releases.md.

Signed-off-by: hive-release-bot <actions@github.com>
* ✨ feature: reconcile workflow model state labels

Hive-Run: #18354
Hive-Plan: workflow-models RFC phase 4
Hive-Spec: workflow-models#label-regeneration-on-bind
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
Signed-off-by: Karibhou <157208370+Karibhou@users.noreply.github.com>

* fix: preserve unmatched workflow rule abstention

Signed-off-by: Karibhou <157208370+Karibhou@users.noreply.github.com>

* docs: clarify unnumbered workflow state transitions

Signed-off-by: Karibhou <157208370+Karibhou@users.noreply.github.com>

* test: match initial workflow state explicitly

Signed-off-by: Karibhou <157208370+Karibhou@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.281.0 entry.
See src/docs/releases.md.

Signed-off-by: hive-release-bot <actions@github.com>
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.282.0 entry.
See src/docs/releases.md.

Signed-off-by: hive-release-bot <actions@github.com>
* [scanner] feat: emit .hive/workflows/checks.yml from bound model

Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* [scanner] fix: refresh api-reference citation for workflows/enabled after base merge

Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>

* 🌱 test(checksfile): cover client error paths and unversioned model key

Lifts workflowmodel/checksfile above its 90% per-package coverage floor.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: adjudicator <280983584+hivecommons-hive[bot]@users.noreply.github.com>
…18370)

* 🌱 build(deps): Bump golang.org/x/image from 0.47.0 to 0.48.0 in /src

Bumps [golang.org/x/image](https://github.com/golang/image) from 0.47.0 to 0.48.0.
- [Commits](golang/image@v0.47.0...v0.48.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-version: 0.48.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: regenerate NOTICE for dependency bump

Regenerated by .github/workflows/notice-autofix.yml from the module
graph in this branch's src/go.mod and src/go.sum. See #5256.

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…nowledge (#18390)

* πŸ› Inbox: fact is a status, not a button; machine transcripts become knowledge

Remove the πŸ“š Fact button from the Inbox action row. What the item's
Knowledge fact holds is now a non-interactive status pill (Pending text,
In knowledge (machine text), In knowledge), and opening the fact is a
plain link in the metadata line.

A finished machine transcription is now written into the item's fact,
fenced as untrusted data and marked attr_<x>_content: machine with
attr_transcript_provider, keeping source attrs, metadata and highlights.
Connector syncs that still find no upstream text leave a machine fact
alone; Plaud and meeting refetch keep re-reading machine facts so the
source's own text replaces it when it arrives.

Signed-off-by: Andy Anderson <andy@clubanderson.com>

* πŸ› Inbox: inline the fact pill so extracted-function tests see it; test the pill

Signed-off-by: Andy Anderson <andy@clubanderson.com>

---------

Signed-off-by: Andy Anderson <andy@clubanderson.com>
clubanderson and others added 11 commits November 16, 2026 20:12
Audio/video (mp3, m4a, aac, wav, ogg, opus, webm, mp4, mov) is checked by
container signature, streamed to the upload store under the recording
size cap and the uploads quota, played from disk through the generic
same-origin stream (AudioOpener) and auto-transcribed when transcription
is on. Originals follow the recordings retention; the transcript, item
and fact stay. Video keeps only its audio. Upload requests get a 20-min
read window.

Signed-off-by: Andy Anderson <andy@clubanderson.com>
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.287.0 entry.
See src/docs/releases.md.

Signed-off-by: hive-release-bot <actions@github.com>
…ll decode (#18480)

The probe backfill added by #18010 typed httpGet.port as json.Number, so a
Deployment whose probes used the named port "dashboard" failed to decode and
every self-upgrade aborted. Decode the port as int-or-string, keep a named
port in the installed startupProbe, and when the probes cannot be decoded,
log a warning and apply the upgrade patch without the backfill.

Adds a troubleshooting entry with the one-time manual probe-port patch for
hives already stuck on the buggy build.

Fixes #18479

Signed-off-by: Andy Anderson <andy@clubanderson.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
…etty C2 part 5) (#18471)

* ✨ inbox: mail-in files as email items with an owner approval queue (Betty C2, part 5)

POST /api/inbox/email takes the Markdown, audio and image attachments
hive-mx received for hive@<host>, relayed and signed by the hub, and
spools them as items of a new built-in email source under
connector-state/email/items (0700/0600, 256 MiB, ids stable per message
and file so a retried delivery dedupes). A DMARC-aligned sender on the
calendar email allowlist gets normal items; anyone else's carry
AwaitingApproval: Route (except Knowledge only), auto-routing rules and
transcription skip them until the owner approves
(POST /api/inbox/email/{id}/approve); decline deletes, and unapproved
items expire after 14 days.

Markdown is the item text wrapped as untrusted; audio goes through the
same transcription path as voice items via a new AudioOpener (read from
the spool, no link); images are stored attachments served by
GET /api/inbox/email/{id}/file with the sniffed type, nosniff and a
sandbox CSP. The Inbox shows the sender, an awaiting-approval pill with
Approve/Decline, Open file and image thumbnails (static/index.html
regenerated). openapi.json, api-reference and inbox-voice-sources.md.

Part of #18391, #18395.

Signed-off-by: Andy Anderson <andy@clubanderson.com>

* πŸ› inbox: the email source implements v5's AudioOpener (LocalAudio)

Signed-off-by: Andy Anderson <andy@clubanderson.com>

* 🌱 inbox: the email auto-route test rule needs a tag to match

Signed-off-by: Andy Anderson <andy@clubanderson.com>

---------

Signed-off-by: Andy Anderson <andy@clubanderson.com>
…n (Betty C2, part 6) (#18487)

The Email section of Settings, Meeting attendee (#18417) is live once the
calendar email allowlist is wired: SetMailAllowlist installs a
MeetingsAttendeeEmail that reports each user's calendar emails with
proof status (verified/pending), the mail-in files awaiting approval and
the meetings.email switches. Each user adds, proves (code and
instruction shown) and removes their own addresses under My calendar
emails (GET/POST/DELETE /api/meetings/calendar-emails). The owner's
switches save through PUT /api/meetings/persona with an optional email
block (owner only, 403 otherwise). static/index.html regenerated;
meetings.md and api-reference.

Part of #18391, #18395.

Signed-off-by: Andy Anderson <andy@clubanderson.com>
* Add LF Projects legal footer to every hub page

Add the LF Projects copyright and policies notice to every embedded hub
page and to the server-rendered contribute landing and error pages via a
shared constant. The hosted dashboard footer now credits Hive Commons
instead of KubeStellar.

Signed-off-by: Andy Anderson <andy@clubanderson.com>

* Use the font-size token for the hub legal footer

Keeps the hub static pages under the dashboard style ratchet baseline.

Signed-off-by: Andy Anderson <andy@clubanderson.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Merge origin/v5 (8389f7f, #18476) into v6 (04f0f77). Carries the
Inbox recording, upload and transcription work, meetings (Betty, Calendar,
hive-mx mail-in), gateway model pricing and picker, scanner note upsert,
and the retirement of /api/campaigns, campaign Jam, recheck and the
inception API, watcher and brainstorm mode (#18400, #18407, #18419).

The retirement is carried onto v6 as well: v6-only callers of the removed
inception and campaign code (chat commands, status inception payload,
dashboard chat clarify routing, identity tests) are removed or stubbed, and
runs.spektacular.recheck becomes the accepted-and-ignored deprecated block,
ported into v6's split config files (github_api_budget.go, defaults.go,
runs_config.go) while keeping v6's hub executor and interview settings.

Signed-off-by: Andy Anderson <andy@clubanderson.com>
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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 16, 2026
@kubestellar-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign kellyaa for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

Copy link
Copy Markdown
Contributor
0440768

ℹ️ Sentinel notice β€” informational; author is trusted (owner), merge is not blocked

Hive flagged this PR (author @clubanderson, head 044076820860) because it matches behaviors that can override security controls, escalate privileges or damage the codebase. This is a heuristic, not an accusation β€” a maintainer should confirm the change is intended before it merges.

  • sensitive_path β€” changes 30 sensitive path(s) (Touches a sensitive path (OWNERS, workflows, policies, hive config, security docs, …))
    • .github/workflows/docker.yml
    • .github/workflows/integration-candidate.yml
    • .github/workflows/integration-technical-v2-ci.yml
    • .github/workflows/static-model-freshness.yml
    • .github/workflows/v2-ci.yml
    • dashboard/package-lock.json
    • src/Dockerfile
    • src/Dockerfile.mx
    • src/crux/go.mod
    • src/deploy/nginx.conf
    • src/deploy/test_arm64_lane_probes_pr_code.sh
    • src/go.mod
    • src/pkg/policies/defaults/brainstorm-advisory.md
    • src/pkg/policies/defaults/scanner-advisory.md
    • src/pkg/policies/defaults/scanner-automerge.md
    • src/pkg/policies/defaults/scanner-full.md
    • src/pkg/policies/defaults/scanner-holdgated.md
    • src/pkg/policies/defaults/scanner-issues.md
    • src/pkg/policies/defaults/scanner.md
    • src/pkg/policies/source_sync_test.go
    • src/policies/README.md
    • src/policies/brainstorm-advisory.md
    • src/policies/scanner-advisory.md
    • src/policies/scanner-automerge.md
    • src/policies/scanner-full.md
    • src/policies/scanner-holdgated.md
    • src/policies/scanner-issues.md
    • src/policies/scanner.md
    • src/proxy/package-lock.json
    • src/proxy/package.json
  • ci_gate_weakening β€” CI configuration is deleted, softened or has gate checks removed (Disables or softens CI gates (continue-on-error, || true, removed checks))
    • .github/workflows/docker.yml
    • .github/workflows/static-model-freshness.yml
  • test_removal β€” deletes 51 test file(s) (Deletes test files or guts test coverage)
    • src/pkg/config/spektacular_discovery_test.go
    • src/pkg/config/spektacular_recheck_discovery_test.go
    • src/pkg/dashboard/api_campaigns_identity_test.go
    • src/pkg/dashboard/api_campaigns_jam_agents_test.go
    • src/pkg/dashboard/api_campaigns_jam_collections_test.go
    • src/pkg/dashboard/api_campaigns_jam_identity_test.go
    • src/pkg/dashboard/api_campaigns_jam_live_test.go
    • src/pkg/dashboard/api_campaigns_jam_projects_test.go
    • src/pkg/dashboard/api_campaigns_jam_test.go
    • src/pkg/dashboard/api_campaigns_test.go
    • src/pkg/dashboard/campaign_discovery_test.go
    • src/pkg/dashboard/campaign_recheck_test.go
    • src/pkg/dashboard/dashboard_inception_handlers_test.go
    • src/pkg/dashboard/inception_auth_boundary_test.go
    • src/pkg/dashboard/inception_beads_kick_test.go
    • src/pkg/dashboard/inception_buffer_interceptors_test.go
    • src/pkg/dashboard/inception_chat_clarify_test.go
    • src/pkg/dashboard/inception_facts_grace_test.go
    • src/pkg/dashboard/inception_handlers_coverage_test.go
    • src/pkg/dashboard/inception_parser_pin_test.go
    • src/pkg/dashboard/inception_proposals_test.go
    • src/pkg/dashboard/inception_question_placeholder_test.go
    • src/pkg/dashboard/inception_run_admission_test.go
    • src/pkg/dashboard/inception_watcher_coverage_test.go
    • src/pkg/dashboard/inception_watcher_loops_test.go
    • src/pkg/dashboard/inception_watcher_pluk_idle_test.go
    • src/pkg/dashboard/inception_watcher_poll_fallback_test.go
    • src/pkg/dashboard/inception_watcher_test.go
    • src/pkg/dashboard/kick_brainstorm_test.go
    • src/pkg/dashboard/pluk_raw_output_key_test.go
    • src/pkg/dashboard/recheck_discovery_branches_test.go
    • src/pkg/dashboard/recheck_discovery_test.go
    • src/pkg/knowledge/inception_archive_test.go
    • src/pkg/knowledge/inception_campaign_archive_test.go
    • src/pkg/knowledge/inception_campaign_identity_test.go
    • src/pkg/knowledge/inception_campaigns_test.go
    • src/pkg/knowledge/inception_coverage_boost_test.go
    • src/pkg/knowledge/inception_edge2_test.go
    • src/pkg/knowledge/inception_edge_test.go
    • src/pkg/knowledge/inception_endpoint_test.go
    • src/pkg/knowledge/inception_fuzz_test.go
    • src/pkg/knowledge/inception_helpers_test.go
    • src/pkg/knowledge/inception_record_test.go
    • src/pkg/knowledge/inception_scaffold_test.go
    • src/pkg/knowledge/inception_state_test.go
    • src/pkg/knowledge/inception_syntax_test.go
    • src/pkg/knowledge/inception_test_helpers_test.go
    • src/pkg/knowledge/inception_vault_connect_test.go
    • src/test/inception_e2e_test.go
    • src/test/inception_helpers_test.go
    • src/test/inception_regression_test.go
  • security_policy_edit β€” edits security policy, scanner config, rulesets or hooks (Edits SECURITY.md, dependabot/CodeQL config, rulesets or git hooks)
    • security-insights.yml
  • remote_code_execution β€” adds a remote-fetch-and-execute, decoded payload, reverse shell or embedded credential (Adds curl|sh, eval of encoded payloads, reverse shells or embedded private keys)
    • src/pkg/dashboard/api_sessions_seed_test.go

Hive did not add the sentinel-alert label because this author is trusted. The finding remains recorded for audit and the dashboard Security tab; set sentinel.trusted_authors_block: true to require the blocking label for trusted authors too.

@hivecommons-hive

hivecommons-hive Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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

clubanderson this PR is held at stage/071-needs-author and the hive will not merge it yet.

Failing checks:

  • native-queue-policy

Next: the hive does not push to your branch. Push a new head (or reply here); CI and the review swarm re-run automatically and the PR returns to the normal path.

…book anchor)

The checks.yml emitter from v5 (#18365) calls CommitFilesOnBranch with a
map, which v6's github.Client takes as []ArtifactFile; route it through
CommitTextFilesOnBranch as the bead synth publisher does. Restore the time
import boot_knowledge_deps_test.go still needs, and repoint the readiness
runbook's link to the retired inception doc's new heading.

Signed-off-by: Andy Anderson <andy@clubanderson.com>
…the rewrite window

The run-detail panel (toggleCampaignRunDetail, renderRunDetailPanel and
its source badge) lived only in campaigns.js and was reached only from
Campaigns rows, which v5 retired (#18400, #18407). Drop the two static
guards that pinned it. The Dockerfile metacopy rewrite list is re-wrapped
so hivectl stays inside the window test_hivectl_extraction_contract.sh
reads.

Signed-off-by: Andy Anderson <andy@clubanderson.com>
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Mutation testing

Head 27747c4d8.

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

  • pkg/cruxhost: skipped (not started)
  • pkg/dashboard: skipped (not started)
  • pkg/github: skipped (not started)
  • pkg/hub: skipped (not started)
  • pkg/inbox: skipped (not started)
  • pkg/knowledge: skipped (not started)
  • pkg/mailallow: skipped (not started)
  • pkg/mailin: skipped (not started)
  • pkg/meetings: skipped (not started)
  • pkg/rotation: skipped (not started)
  • pkg/scheduler: skipped (not started)
  • pkg/stageengine: skipped (not started)
  • pkg/stagelabels: skipped (not started)
  • pkg/tokens: skipped (not started)
  • pkg/transcribe: skipped (not started)
  • pkg/workflowmodel: skipped (not started)

❌ gremlins did not produce a report for 2 package(s), so no verdict can be derived from this run (see the job log):

  • crux: gremlins exited 1
  • pkg/config: gremlins exited 137

25 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/boot_inbox.go 22 ARITHMETIC_BASE
src/cmd/hive/boot_inbox.go 26 ARITHMETIC_BASE
src/cmd/hive/boot_inbox.go 86 CONDITIONALS_NEGATION
src/cmd/hive/boot_inbox.go 147 CONDITIONALS_NEGATION
src/cmd/hive/boot_inbox.go 150 CONDITIONALS_NEGATION
src/cmd/hive/boot_inbox.go 151 ARITHMETIC_BASE
src/cmd/hive/boot_inbox.go 151 CONDITIONALS_NEGATION
src/cmd/hive/boot_inbox.go 151 CONDITIONALS_NEGATION
src/cmd/hive/boot_inbox.go 276 CONDITIONALS_NEGATION
src/cmd/hive/boot_inbox.go 280 CONDITIONALS_NEGATION
src/cmd/hive/boot_knowledge_deps.go 99 CONDITIONALS_NEGATION
src/cmd/hive/boot_knowledge_deps.go 103 CONDITIONALS_NEGATION
src/cmd/hive/boot_knowledge_deps.go 107 CONDITIONALS_NEGATION
src/cmd/hive/main.go 3805 CONDITIONALS_NEGATION
src/cmd/hive/meetings_actions.go 51 CONDITIONALS_NEGATION
src/cmd/hive/meetings_actions.go 239 CONDITIONALS_NEGATION
src/cmd/hive/meetings_actions.go 261 CONDITIONALS_NEGATION
src/cmd/hive/meetings_actions.go 280 CONDITIONALS_NEGATION
src/cmd/hive/meetings_email.go 112 CONDITIONALS_NEGATION
src/cmd/hive/meetings_schedule.go 59 CONDITIONALS_NEGATION
src/cmd/hive/meetings_schedule.go 155 CONDITIONALS_NEGATION
src/cmd/hive/meetingswire.go 209 CONDITIONALS_NEGATION
src/cmd/hive/meetingswire.go 209 CONDITIONALS_NEGATION
src/cmd/hive/meetingswire.go 225 CONDITIONALS_NEGATION
src/cmd/hive/provider_gateways.go 291 CONDITIONALS_NEGATION

ℹ️ 2 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/boot_inbox.go 156 CONDITIONALS_NEGATION
src/cmd/hive/main.go 3815 CONDITIONALS_NEGATION

Verdict: error (#17349).

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Open PR overlap check

Base branch: v6

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

PR Title Relation Files
#18510 ✨ dependency-bot: opt-in hive adoption of red dependency-bot PRs that need a code change CONFLICT src/docs/notifications.md
src/pkg/config/testdata/agent_runtime_golden.json
src/pkg/dashboard/static-src/js/config-features.js
src/pkg/dashboard/static-src/js/config-state.js (conflict)
src/pkg/dashboard/static/index.html (conflict)
src/pkg/github/notification_write_sites.go

@hivecommons-hive

Copy link
Copy Markdown
Contributor

scanner: CI is red but baseline triage says PR-local and stale-branch (action MERGE_BASE): the branch is behind v5 and the red checks (build-go, golangci-lint, test shards) should be re-evaluated after merging the base in. Not pushing to this human-authored branch; please merge/rebase v5 and re-run. Deferred this kick.


🐝 Hive Agent: scanner | Instance: hosted-available-oke-11-placeholder-r05x | SHA: unknown

β€” hive: agent=scanner backend=claude model=claude-sonnet-5-5 claude=2.1.325

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants