Skip to content

🌱 chore: top up v6 from v5 (2026-11-15) - #18275

Merged
clubanderson merged 72 commits into
v6from
topup/v5-to-v6-20261115
Nov 15, 2026
Merged

clubanderson merged 72 commits into
v6from
topup/v5-to-v6-20261115

Conversation

@clubanderson

@clubanderson clubanderson commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Merges origin/v5 into v6. The first merge commit took v5 at 5656f1f (#18267) onto v6 at 170947c (#18269), 66 commits. A second signed merge commit brings v5 up to cd76cf1 (#18268), adding #18271 and #18268, so after this lands origin/v5 is an ancestor of v6. Carried by hand because .github/workflows/v6-topup.yml has failed on every run since 2026-11-15 04:09Z: the conflicts are outside its two known-structural patterns (discord/ deletion, src/pkg/config/config.go split).

Notable v5 PRs included

Conflicted files and how each was resolved

Policy (same as #18193): v5 is the development line, v6-only features are kept, and where both sides added to the same list or table the union is kept.

File v6 side v5 side Resolution
.github/scripts/integration-governance.cjs TRUSTED_SCRIPTS_TREE = v6's src/scripts tree = v5's src/scripts tree Set to the merged tree, 70a83fac5c80258d8af0ddcdf6137d2e4de446cb (= git rev-parse HEAD:src/scripts)
CHANGELOG.md v6.28.0 to v6.30.2 sections v5.257.0 to v5.265.2 sections Both kept, v6 block first then v5 (the existing layout); changelog.d/ fragments kept
src/Dockerfile metacopy-rewrite loop adds hive-admin-mcp adds govulncheck/gosec (new go-sec-tools stage, #18192) Loop rewrites all of them; the go-sec-tools stage, its COPYs and the gosec -version check come in unchanged; golang digest is the same as the builder stage
src/pkg/config/config.go split into topical files (#9386) #18222 keystore: seal github.token on persist, open on load Kept v6's config.go; ported the change into the split files: openPersistedSecrets() call after YAML parse in load.go, sealing + githubTokenAAD + openPersistedSecrets in save.go (redactedForPersist), with the crux/keystore and context imports
src/cmd/hive/boot.go startID/startRecord fields userSessions *cruxruntime.UserSessions field Both kept
src/pkg/dashboard/audit.go config_admin_mcp_writes, config_code_scanning, config_decisions_delegate, ioscan_classifier_daily_quota_exhausted session_started Union, in v6's order
src/pkg/dashboard/import_count_test.go cap 70 cap 62 + pkg/keystore (#18214) Cap 71 (merged tree imports 71: v6's 70 + keystore), v5's comment
src/pkg/github/automerge/automerge_merge_credit_test.go credit off: 1 issue GET (linked-issue gate), 0 commit lists credit off: rebuild sign-off body, 0 issue GETs, 1 commit list (#18204) Expect 1 issue GET (the gate) and 1 commit list
src/pkg/dashboard/static-src/js/knowledge.js review drafts fetched with stats kbSyncProgressTick() after stats Both
src/pkg/dashboard/nav_count_delta.test.js viewerIsOwner stub kbSyncProgressTick stub Both
src/pkg/dashboard/static-src/js/config-tabs.js Experiment Lab ACMM notice helpers renderGovDashboardSessions Both functions
src/pkg/dashboard/static-src/js/config-state.js (v6 #18269 merge) Sessions search entries (from v5) v6 gauge-row search text Sessions entries kept + v6's newer gauge entry
src/docs/settings.md (v6 #18269 merge) Sessions paragraph "usage gauge" wording Sessions kept with v6's wording
dashboard/openapi.json v6 moved the connector-auth path block #18254 edited descriptions in the old location Kept v6's placement, applied v5's three description edits there (the other #18254 edits merged cleanly)
src/docs/design/README.md advisor lane, admin MCP entries email-inbox and meeting-recordings entries Union
src/docs/api-reference.md inline v6 route tables index-only page (auth count 22 -> 26) Kept v6's inline tables; added v5's 4 /api/github-owner-identity rows to the inline auth table and mirrored v5's knowledge connector text edits into the inline rows
src/docs/api-reference/{auth,configuration,dashboard-misc,health-status-events,knowledge,snapshots-and-style}.md v6 rows/line numbers; in configuration.md v6 moved a 29-row block v5 rows Union of rows (github-owner-identity rows, connectors progress text, reference-repos credential_login text ported onto v6's copy; the duplicate moved block was dropped), then src/scripts/check-api-reference-citations.sh --fix re-synced 43 drifted citations (0 unresolved; rerun on the final tree: 0 drifted)
src/pkg/dashboard/static/index.html generated generated Regenerated as the byte-exact concatenation of static-src/manifest.txt (same method reproduces v6's committed file byte for byte)

Semantic checks

  • None of the 258 files v5 changed since the merge-base (2dae878) is missing on v6, so no v5 edit fell into a moved or deleted path. No new discord/ files came in.
  • Sessions and Inbox code is byte-identical to v5: src/crux/agent/usersession*.go, src/pkg/dashboard/api_sessions*.go, static-src/js/sessions.js, src/deploy/ttyd-tmux.sh, bin/ttyd-tmux.sh, src/pkg/inbox/. The entrypoint HUP trap merged cleanly.
  • No conflict markers in the tree. gofmt -l is clean on the hand-edited Go files. node --check passes on the hand-merged JS.

Second merge: v5 at cd76cf1 (#18271 Discord meetings, #18268 Inception (spek) default-on and wizard removal)

File v6 side v5 side Resolution
static-src/js/inception.js in-place wizard changes (transcript proposed-fact confirmation panel, state key incl. proposed facts, Spektacular hint) wizard UI removed (#18268) v5's removal taken, so the file is identical to v5. The v6-only wizard additions go with the wizard. The /api/inception/* backends, including v6's /api/inception/facts, are unchanged
static-src/html/nous-inception-knowledge-contributors.html inception-section markup removed Removed. v6's search-section kept
static-src/js/{layout,refresh,sections}.js, webstatic/static_index_test.go, dashboard_section_reorder_9062_test.go v6 lists with runs-section/search-section inception-section dropped v6 lists minus inception-section, which aliases to sessions-section. The v6 card-map inception-section entry is removed. The restored-section count is 25 -> 24 (v5's 22 plus runs and search)
src/hive.yaml.example kick_failure_threshold line sessions default on Both
src/docs/inception.md v6 backend notes (transcript proposed=true facts, approve run admission, revise in place) API-driven workflow wording, steps renumbered v5's structure and wording, with v6's backend notes kept and renumbered ("chat lists them"; there is no dashboard wizard now)
dashboard/openapi.json moved connector-auth block #18271 description edits in the old location Kept v6's placement and applied the three #18271 edits there. Every v5 path is present
static/index.html generated generated Regenerated from the manifest

v6-only tests that asserted the wizard sidebar entry now assert the v5 replacement: inception_spektacular_label_test.go checks the sessions-section "Inception (spek)" sidebar link, and webstatic/experiment_lab_sidebar_12076_test.go checks sessions-section -> "Inception (spek)". Nothing else in src/pkg/dashboard, src/test or dashboard/ references the 34 removed wizard functions. The one exception is dashboard/build-snapshot.mjs, which guards it with typeof the same way v5 does. The dashboard.sessions.enabled move to *bool lands in dashboard_sessions.go, which is byte-identical to v5. No v6 split-config file reads that field.

Follow-up fixes on this branch

  • src/docs/api-reference.md: the mirrored knowledge-connector rows link knowledge-connectors.md, not ../ (the page sits in src/docs).
  • automerge_closing_link_test.go (v6-only): off-default-base PRs now see one commit listing, from 🐛 fix: carry Signed-off-by through squash merges #18204's squash sign-off rebuild. The closing-keyword scan still reads none.
  • src/docs/design/email-inbox.md: the citation points at src/pkg/config/dashboard_config.go:43, v6's split location of AuthorizedUsers.

Notes for reviewers

  • The DCO Probot check may show action_required on a forward merge; the merge commit is signed off.
  • Nothing was built or tested locally. CI is the gate.

🤖 Generated with Claude Code

clubanderson and others added 30 commits November 14, 2026 12:59
…em on Go targets (#18194)

* 🔒 sec-check: ship govulncheck and gosec in the agent image and run them on Go targets

The sec-check policy told the agent to scan with trivy, semgrep or grype
"as available", but the agent image installs none of them and no Go
scanner either, so the scan step always degraded to the Dependabot API
plus a manual read of the tree.

Build govulncheck v1.1.4 and gosec v2.29.0 in a dedicated cross-compiled
stage (GOVULNCHECK_VERSION, GOSEC_VERSION build args, matching the pins in
.github/workflows/go-security-analysis.yml) and copy only the static
binaries into the runtime stage, through the same metacopy rewrite as the
other cross-stage binaries. Rewrite the scan step in both sec-check
policies (and their src/policies mirrors): run govulncheck ./... and
gosec -quiet -concurrency 4 -exclude-generated -fmt json ./... on Go
targets, treat reachable govulncheck vulnerabilities and gosec HIGH/HIGH
issues as findings, keep lower gosec results advisory, never install or
download scanners, and mark trivy/semgrep/grype as not shipped. The gate
check and three-of-a-class rules are unchanged.

Fixes #18192

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

* 🔒 sec-check: install govulncheck and gosec one go install each

go install refuses two pkg@version arguments from different modules in one
invocation ("all arguments must refer to packages in the same module at
the same version"), which failed every image build on the PR.

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

---------

Signed-off-by: Andy Anderson <andy@clubanderson.com>
…ip (#18191)

* 🔒 sessions: per-session uid isolation, bound terminal attach, ownership

Run each session's tmux server and CLI as its own reserved-range uid with a
private sandbox, copy minimal read-only vendor logins instead of symlinks,
gate ttyd attach with a per-session token and a session-bound handoff code,
make sessions private by default with an explicit shared flag, reject
flag-shaped resume ids, upload as the session uid and remove session files on
close/prune.

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

* 🔒 sessions: fix test seams for per-uid runtime and wire the attach-token suite

Tests stub the sandbox owner unconditionally, the fake su-exec resolves tmux
through the child PATH, the proxy test reuses the mux NewServer already
registered, the unused test helper is dropped, and the new ttyd attach-token
shell test is named in the deploy workflows.

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>
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.257.0 entry.
See src/docs/releases.md.

Signed-off-by: hive-release-bot <actions@github.com>
…, not the App (#18202)

* ✨ reference repos: write as the hive owner's connected GitHub account, not the App (#18197)

The write-tier credential for project.reference_repos was an installation
of the hive's GitHub App on the target org. The operator does not want the
App on any remote repo (#18196), so the credential is now the hive owner's
own GitHub user token, consented once on the spoke dashboard through a
device flow with the spoke's OAuth client asking for public_repo, kept
separate from the scope-free login flow.

- pkg/github/owner_identity.go: OwnerIdentityStore (0600 file under
  /data/secrets, HIVE_GITHUB_OWNER_TOKEN_FILE override), Status/Credential/
  Token views, Verify with a 10-minute TTL that marks a revoked token.
- pkg/github/reference_repo_token.go: App mint removed with no fallback;
  token source is write_token_file (hand-written) else the owner token;
  derived resolution needs no network.
- pkg/config: CredentialLogin on ReferenceRepo; Unresolved state removed.
- cmd/hive: deps become {owner, ownerToken, refreshOwner, whoAmI}; every
  write entry reports credential_state/credential_login; connect and
  disconnect re-resolve the proxy policies.
- pkg/dashboard: owner-only GET/DELETE /api/github-owner-identity and
  POST .../start, .../poll; the request-issue read-only notice now names
  connecting the account as the cure.

Fixes #18197

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

* 📖 api-reference: document /api/github-owner-identity and resync citations (#18197)

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

* 📖 openapi: document /api/github-owner-identity routes (#18197)

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

---------

Signed-off-by: Andy Anderson <andy@clubanderson.com>
The hive owner's account cannot push to a repository it does not own, so a
PR against a write-tier reference repo goes through the owner's fork:

- crux/proxy/reference_repos.go: allow POST /repos/{o}/{r}/forks on a
  prs-tier entry; referenceRepoFor reads {login}/{name} as the owner's fork
  of that entry (Fork set on the returned copy only, never when the slug is
  an authorized or reference repo) and allows git pushes to it with the
  default-branch guard applied to the fork; every other write on the fork is
  refused with a reason naming the PR flow; forking needs ISSUES_AND_PRS.
- pkg/scheduler/kickmessage.go: the REFERENCE REPOS block names the login
  the writes appear under and the exact fork / push / gh pr create commands.

Fixes #18198

Signed-off-by: Andy Anderson <andy@clubanderson.com>
…es/PRs to the agent (#18199) (#18207)

A write-tier reference repo has no webhooks and is not enumerated, so
feedback on the items the hive opened there never reached the agent.

- pkg/remoteitems: file-backed tracker + poller. Lists open items in each
  write-tier reference repo with creator=<owner login>, keeps the ones whose
  body carries a hive marker, fetches new comments/review comments/reviews
  on tracked items, drops the owner's own and bots', and delivers to the
  agent the marker names as a resume kick or, without a live session, as a
  handoff section on its next kick. Prunes closed items. No backlog scan, no
  queue, no stage engine on the remote.
- pkg/github: HiveMarkerAgent (trailer or 🐝 footer, with the agent name)
  and RemoteItemsFetcher reading under the owner token.
- cmd/hive: the pass runs after every reference-repo pass; marker names map
  to configured agents by name or display name.
- pkg/scheduler: 🌐 REMOTE ITEM FOLLOW-UP kick section after the PR handoff.

Fixes #18199

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.257.1 entry.
See src/docs/releases.md.

Signed-off-by: hive-release-bot <actions@github.com>
…nd the two-lane docs (#18208)

* ✨ dashboard: remote-repo identity panel, per-entry credential login, two-lane docs (#18200)

- Settings → Reference repos: identity panel (connected login, Connect via
  device flow, Disconnect, reconnect prompt), credential chip on every write
  entry naming the login; repos card chip reads the owner account, not an
  App installation; /api/status carries credential_login.
- Docs: 'Writing to repos you do not manage (the two lanes)' section,
  credential paragraph and derived-flow step rewritten for the owner
  identity, write-surface and env-vars updates, API reference fields.

Fixes #18200

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

* 📖 api-reference: resync citations after the status payload field (#18200)

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>
…gin only) (#18210)

The Sessions section renders /terminal?arg=hive-sess-<id> in a same-origin
iframe, but both proxies sent frame-ancestors 'none' and X-Frame-Options DENY
on that document. The browser fetched ttyd's page and then refused to display
it: blank pane, no /token, no websocket, nothing logged on the server. Agent
terminals never hit this because they open in their own tab.

User-session terminal documents now get frame-ancestors 'self' and
X-Frame-Options SAMEORIGIN, in the Go securityHeaders middleware and the node
proxy alike. Every other route, agent terminals included, keeps the deny
policy. Authorisation of the session terminal is unchanged.

Signed-off-by: Andy Anderson <andy@clubanderson.com>
Co-authored-by: hivecommons-hive[bot] <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* [scanner] fix: carry Signed-off-by through squash merges

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>

* 🐛 fix: re-pin TRUSTED_SCRIPTS_TREE after src/scripts change

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

* 🐛 fix: serve PR commits in base-preparation test server

The squash sign-off path now lists PR commits before merging; the test
server 404'd on /pulls/N/commits, failing the successor-bypass case.

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

* [scanner] fix: update sweep test fixtures for squash sign-off

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

---------

Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-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>
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.258.0 entry.
See src/docs/releases.md.

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

@plaud-ai/mcp 0.3.14 wraps every tool reply in a prose preamble and an
<untrusted-user-data-...> envelope whose closing tag follows the JSON.
json.Unmarshal rejects the trailing tag, so every sync on a connected hive
failed with "list_files returned non-JSON output: {" and no notes ever
arrived (seen live on a hosted hive).

decodePlaudFiles, plaudAccountName, renderPlaudNote, renderPlaudTranscript and
plaudPresignedURL now read the first JSON value in the reply and ignore what
follows; notes and transcripts still pass plain text through untouched. The
Plaud card's server sign-in help now states the exact command to copy a laptop
token to the clipboard without displaying it.

Signed-off-by: Andy Anderson <andy@clubanderson.com>
* ✨ sessions: open in a persistent per-hive spek workspace

A session is a person driving a CLI the way they would on a laptop: inside a
checkout of the project that has been `spektacular init <agent>`-ed, so the
CLI finds .spektacular/ and the spek skills. Until now a session's cwd was
its own empty work dir.

- One persistent clone per repository under
  <HIVE_SESSIONS_SANDBOX_DIR>/workspace/<org>/<repo> (HIVE_SESSIONS_WORKSPACE_DIR
  overrides), repo = dashboard.sessions.workspace_repo
  (HIVE_SESSIONS_WORKSPACE_REPO), default project.org/primary_repo.
- Cloned once by the hive with a one-shot `git -c credential.helper` file
  (removed afterwards) so no token reaches the clone's config or remote; the
  remote stays the plain https URL and sessions never hold a hive credential.
- Root hands the tree to a sessions-only group (HIVE_SESSIONS_GID, default
  20000) as root:<gid> 2770 / g+rw; every session now runs as uid:<that gid>
  (su-exec gives a numeric uid exactly one group), which is what lets sessions
  share the checkout. The gid is refused when it is the hive's own group, the
  reader group or inside the session uid range; sandboxes stay hive-launch
  group-only.
- `spektacular init <vendor>` runs once per vendor per workspace as the
  session uid for the vendors spek supports; missing binary or failed init is
  logged, never fatal. Clone and init are serialised; git fetch is never
  automatic.
- Session cwd = workspace (safe.directory via GIT_CONFIG_* env), HOME,
  uploads and TMPDIR unchanged. Record and API carry workspace_repo and
  workspace; a resume reopens the same workspace. Dashboard shows it in the
  new-session dialog, tab tooltip and pane header.

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

* 🌱 sessions: fix test fake name clash and env command call site

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

* 🌱 sessions: record spek init marker errors; test second-session init identity

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>
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.259.0 entry.
See src/docs/releases.md.

Signed-off-by: hive-release-bot <actions@github.com>
Design-only proposal: every hive gets a unique inbound email address built
from a per-hive inbox uid; mail sent there lands as an Inbox item and is
triaged like Plaud recordings. Recommends a hub-owned inbound domain fed by
a provider webhook and relayed to the spoke over the existing signed
webhook-relay channel, with a heartbeat pull for push-reported spokes, and
records the fail-closed guard set, data model, routing defaults, config and
API names, a phased plan and open questions. No feature code.

Signed-off-by: Andy Anderson <andy@clubanderson.com>
Co-authored-by: hivecommons-hive[bot] <280983584+hivecommons-hive[bot]@users.noreply.github.com>
…b landing (#18218)

Replace the NVIDIA and CNCF stand-ins on the Isolation rows of
integrations.md with the OpenShell and Agent Substrate project logos, add
a "Secrets and keys" section for the built-in keystore and the opt-in
OpenBao Transit provider (both in progress under #18214), and add an
"Isolation and secrets" hv-infra-logo-row to the hub landing page with
OpenShell, Agent Substrate, OpenBao, Podman and Kubernetes. Sources and
licenses are recorded in src/docs/assets/logos/SOURCES.md; the now unused
nvidia.svg is removed. A hub test checks every landing-page integration
logo is embedded and pins the new row.

Hive-Run: #18217
Hive-Plan: #18214 child C
Hive-Spec: keystore#C-logos

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Danathar <Danathar@users.noreply.github.com>

Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
…#18222)

* ✨ keystore: encrypt spoke secrets at rest behind a provider interface (#18215)

Adds crux/keystore (stdlib only; pkg/keystore re-exports it): a Provider
interface, a versioned hive-enc:v1 envelope that serves as a file body and
a YAML scalar, an AES-256-GCM EnvKeyProvider keyed by HKDF from
HIVE_SECRETS_KEY / HIVE_SECRETS_KEY_FILE with the hub-provisioned
HIVE_HEARTBEAT_KEY as the default material, previous-generation keys for
rotation, and secret-file helpers that seal on write and re-seal legacy or
stale files on read.

Every /data/secrets writer and reader (LiteLLM, Bob, per-gateway and backup
keys, the owner identity, the NPS relay identity), the Copilot durable token
and the github.token value in the persisted runtime config now go through it.
No key material: one WARN and today's plaintext behaviour. A selected
provider that cannot be built refuses boot.

Part of #18214.

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

* 🐛 keystore: keep missing-dir writes an error, route dashboard writes through pkg/keystore only, re-anchor citations

WriteFile no longer creates the parent directory (callers own their dir
mode; TestWriteDurableToken_Error pins the old contract), the dashboard
reads and writes the Copilot durable token through pkg/keystore instead of
crux/agent/copilottoken (import ratchet), pkg/keystore is allowlisted with
justification, and the copilot_auth.go citations are re-anchored.

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>
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.260.0 entry.
See src/docs/releases.md.

Signed-off-by: hive-release-bot <actions@github.com>
…pin Plaud MCP to 0.3.14 (#18221)

* ✨ Knowledge connectors: live sync progress on the Integrations card; pin Plaud MCP to 0.3.14

While a connector synced the dashboard showed nothing until the sync ended
(a first Plaud sync of 200 recordings is two or three MCP calls each). Every
connector Status now carries a live `progress` block (phase idle/listing/
fetching/writing/done/failed, items_done/items_total, current item title,
started_at/finished_at, last_error, bytes/facts written) that the Syncer
updates per emitted page through a reporter carried in the Sync context, and
the Plaud connector updates after list_files (total) and per recording
(current title, skipped count). No new goroutines or MCP calls; updates run
under the syncer lock. The `syncing` pill derives from running OR an active
phase, and the Settings status rows gain `running` + `progress`.

Dashboard: the Integrations card draws a <progress> bar (determinate when the
total is known), "fetching 12 of 200 · <title>", elapsed time and the failure
inline; it polls /api/config/knowledge/connectors/status every 2.5 s only
while a sync runs (dashboardSetInterval, patching the live row parts so a
half-typed form survives) and the Knowledge header shows a compact
"syncing: <name> 12/200" indicator. Styled with existing tokens only.

The Plaud default MCP command is pinned to `npx -y @plaud-ai/mcp@0.3.14`
(plaudMCPVersion, bump steps in its comment, mirrored in cli-pins.md);
user-set scope.command values are untouched.

Tests: syncer progress transitions, JSON shape, reporter helpers, Plaud
progress reporting, status-row JSON/pill, and a node UI test for the
progress rendering states. Docs and API reference updated.

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

* 🌱 Knowledge sync progress: teach the node harnesses the new row helpers

knowledge_connector_not_loaded.test.js extracts kbConnectorRow and
kbLoadIntegrationsModal by source with a fixed dependency list, and
nav_count_delta.test.js stubs every dependency of fetchKnowledgeStats.
Lift the live-progress helpers (kbConnectorStatusOf, kbConnectorMetaHtml,
kcProgress*) and their constants from the shipped source into the first,
stub kbSyncProgressArm/kbSyncProgressTick in both, and move the loader's
post-load poll arming behind kbSyncProgressArm so it is one seam.

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

* 🐛 Sessions: theme the embedded terminal and add the Settings toggle

The Sessions pane framed ttyd's stock black document inside a themed card.
The proxied user-session document now carries a theme script that resolves
the dashboard's --terminal-bg / --terminal-fg / --accent tokens from the
parent document at runtime, paints ttyd's body and xterm.js from them, and
re-applies on light/dark or preset changes; the pane iframe takes the same
token while loading. Agent terminals (top-level tabs) are untouched.

Settings -> Dashboard gains a real switch for dashboard.sessions.enabled
plus the max_sessions / max_per_user / idle_ttl_hours limits, saved as one
nested block through PUT /api/config/dashboard, and reports when
HIVE_SESSIONS_ENABLED overrides the switch. The three limits leave the
settings-parity allowlist.

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

* 🐛 Sessions: let the theme-script literal guard skip its own rgb() comment

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.261.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.262.0 entry.
See src/docs/releases.md.

Signed-off-by: hive-release-bot <actions@github.com>
keystore.Active() lazily builds its provider once per process from the
ambient env, and HIVE_HEARTBEAT_KEY alone enables sealing. npsRelayServer
t.Setenv's that key, so the first test to touch a secret file fixed
sealing on or off for the whole dashboard test binary. Tests that read
secret files raw (TestNPSRelayRegistrationRefused,
TestWriteLiteLLMKeyFile_CreatesDirAndFile,
TestStoreBackupKeyTightensPreexistingLooseMode) then failed depending on
-shuffle order. Pin plaintext in TestMain, next to the other host seams.

Fixes #18227

Hive-Run: #18227
Hive-Plan: fix-v5-test-failure
Hive-Spec: tests#ci-failure
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Danathar <Danathar@users.noreply.github.com>
Signed-off-by: Andy Anderson <andy@clubanderson.com>
Add a discord knowledge connector (bot token named in auth.env) that turns
recordings posted to a channel (audio uploads or recording-bot links such as
Craig's) and the server's scheduled events with their channel chat into
meeting facts and Inbox items, beside Plaud, Zoom and Teams. Chat and event
descriptions are wrapped in an untrusted-data envelope before they reach the
fact, the Inbox and spek; items without a transcript keep the shared pending
state and audio uploads play through the Inbox audio endpoint.

The Integrations card shares the Connect / Check / Sync controls and offers
the bot invite link when the bot cannot read the server or a channel.

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 15, 2026
@hivecommons-hive

Copy link
Copy Markdown
Contributor
b80cb84

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

Hive flagged this PR (author @clubanderson, head b80cb8447489) 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 14 sensitive path(s) (Touches a sensitive path (OWNERS, workflows, policies, hive config, security docs, …))
    • .github/workflows/dco-post-merge.yml
    • .github/workflows/integration-candidate.yml
    • .github/workflows/integration-technical-v2-ci.yml
    • .github/workflows/v2-ci.yml
    • src/Dockerfile
    • src/deploy/entrypoint.sh
    • src/deploy/test_ttyd_attach_hangup.sh
    • src/deploy/test_ttyd_session_attach_token.sh
    • src/deploy/test_ttyd_session_readonly_attach.sh
    • src/deploy/ttyd-tmux.sh
    • src/pkg/policies/defaults/sec-check-full.md
    • src/pkg/policies/defaults/sec-check-holdgated.md
    • src/policies/sec-check-full.md
    • src/policies/sec-check-holdgated.md
  • 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/deploy/entrypoint.sh
    • src/pkg/config/keystore_persist_test.go
    • src/pkg/dashboard/api_sessions_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.

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

hivecommons-hive Bot commented Nov 15, 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.

@hivecommons-hive

Copy link
Copy Markdown
Contributor

The native-queue-policy failure here is shared across sibling PRs, tracked in #18280; deferring this PR until the incident closes.


🐝 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

…ing; repoint email-inbox citation to the v6 config split

Signed-off-by: Andy Anderson <andy@clubanderson.com>
* ✨ Inception (spek): turn on interactive sessions by default

dashboard.sessions.enabled now defaults to on (unset means on; an explicit
false is kept by making the field a *bool). HIVE_SESSIONS_ENABLED still
overrides it, so operators can turn it off with false. The Sessions section
is labelled Inception (spek) in the sidebar, heading, help, FAQ, Settings
and docs; internal ids, routes and the config key are unchanged.

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

* 🔥 Inception (spek): remove the old Inception wizard UI

The dashboard's step-by-step Inception wizard section (panel, Q&A,
scaffold preview, brainstorm activity feed, sidebar item and help entry)
is removed; Inception (spek) sessions replace it. The sessions flag now
only decides whether that section shows. inception-section aliases to
sessions-section so old links and saved layouts land there. Campaigns
and Jam stay as the Campaigns tab; the /api/inception/* and
/api/campaigns backends are untouched.

Signed-off-by: Andy Anderson <andy@clubanderson.com>
Signed-off-by: Andy Anderson <andy@clubanderson.com>
hivecommons-hive Bot pushed a commit that referenced this pull request Nov 15, 2026
…ct (#18281)

native-queue-policy went red on #17512, #18273, #18275 and #18278 and the
scanner filed it as one shared-CI incident (#18280). The gate was right
every time: #17512 is a draft carrying do-not-merge/work-in-progress,
#18273 and #18275 have probot DCO action_required, and #18278 has
changelog-fragment-guard failure. The defect was the surface. A red
provider was thrown as a bare `Error('DCO: action_required')` and printed
as "Unhandled error" with a stack trace, which reads like a broken workflow.

evidenceForHead and assertProwDCO now throw a ProviderVerdict naming the
provider, its conclusion, the head, and that this is a per-PR verdict and
not a shared CI incident. The evidence-wait step reports it with a job
summary and core.setFailed instead of rethrowing. The conclusion stays
failure: this is a required check.

Hive-Run: #18280
Hive-Plan: shared-ci incident triage
Hive-Spec: native-queue-policy#provider-verdict
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Danathar <Danathar@users.noreply.github.com>
@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 15, 2026
@hivecommons-hive

Copy link
Copy Markdown
Contributor

The hive's GitHub App lacks actions: write, so it cannot rerun shared ci for head d6b2f15c16d5. A repository maintainer with Actions write can re-run failed jobs at https://github.com/hivecommons/hive/actions/runs/43732294751 . Alternatively, the App owner can request Actions read and write for this recovery installation and its owner must accept the update. This is a CI recovery permission block, not a source-code failure or merge approval. Hive retries after its bounded permission cooldown; no alternate credential is selected. Hive will resume automatically once the step is done; this label and note clear themselves.

@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

Copy link
Copy Markdown
Contributor

Needs a decision, not a merge:

Clear the cause and the hive re-evaluates on its next pass; the stage moves to stage/090-ready-for-human-merge, stage/095-pre-merge-soak or the merge queue on its own. Approval does not bypass CI, hold labels or other merge gates.

@github-actions

Copy link
Copy Markdown
Contributor

Mutation testing

Head d6b2f15c1.

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

  • pkg/extwork/managedagents: skipped (not started)
  • pkg/fleetreport: skipped (not started)
  • pkg/github: skipped (not started)
  • pkg/inbox: skipped (not started)
  • pkg/keystore: skipped (not started)
  • pkg/knowledge/connector: skipped (not started)
  • pkg/remoteitems: skipped (not started)
  • pkg/scheduler: 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/dashboard: gremlins exited 137

17 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 679 ARITHMETIC_BASE
src/cmd/hive/main.go 679 ARITHMETIC_BASE
src/cmd/hive/main.go 697 CONDITIONALS_NEGATION
src/cmd/hive/reference_repos.go 173 CONDITIONALS_NEGATION
src/cmd/hive/reference_repos.go 184 CONDITIONALS_NEGATION
src/cmd/hive/remote_items.go 30 CONDITIONALS_NEGATION
src/cmd/hive/remote_items.go 91 CONDITIONALS_NEGATION
src/cmd/hive/remote_items.go 91 CONDITIONALS_NEGATION
src/cmd/hive/remote_items.go 95 CONDITIONALS_NEGATION
src/cmd/hive/remote_items.go 99 ARITHMETIC_BASE
src/cmd/hive/remote_items.go 99 ARITHMETIC_BASE
src/cmd/hive/remote_items.go 99 ARITHMETIC_BASE
src/cmd/hive/remote_items.go 99 ARITHMETIC_BASE
src/cmd/hive/remote_items.go 99 ARITHMETIC_BASE
src/cmd/hive/remote_items.go 99 ARITHMETIC_BASE
src/cmd/hive/remote_items.go 99 CONDITIONALS_BOUNDARY
src/cmd/hive/remote_items.go 99 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/boot_inbox.go 90 CONDITIONALS_NEGATION

Verdict: error (#17349).

@clubanderson
clubanderson merged commit 646d3de into v6 Nov 15, 2026
103 of 115 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the topup/v5-to-v6-20261115 branch November 15, 2026 16:12
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. dco-signoff: yes Indicates the PR's author has signed the DCO. hive:unauthorized lgtm Indicates that a PR is ready to be merged. 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.

4 participants