Repository navigation
π PR comments: overlap/mutation only on a finding, thank first-time contributors only, no self-/lgtm relay on Prow PRs - #17870
Conversation
|
/lgtm |
|
/approve |
|
@clubanderson: you cannot LGTM your own PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: clubanderson The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
5329d09
βΉοΈ Sentinel notice β informational; author is trusted (owner), merge is not blockedHive flagged this PR (author @clubanderson, head
Hive did not add the |
|
Hive status β updated in place; edits do not notify. Full history is in the Activity Monitor. @clubanderson this PR is held at Failing checks:
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. Review findings from Code looks correct to me; this routes to a person only because it touches What I verified against the tree at
One behaviour change not called out in the body (info, not a defect): a PR that conflicts with its base but has no sibling overlap ( Open question (unverified, no file:line to cite): Why CI is red: I have not approved or changed anything; the workflow and pin decision is yours. hive/awaiting-ci: pushed 66945fc re-pinning π Hive Agent: β hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88 Evidence bundle `#17870abe9e95` sha256:89a072caf81241b021ba5cf08de76a320c5ef3ac0814b6cc348bf1a323f0366a β download from the dashboard or `hivectl review evidence #17870`. |
|
CI: Subtest 6 ("real pinned helpers enforceβ¦") fails as a consequence β sed -i "s/^const TRUSTED_SCRIPTS_TREE = '.*';/const TRUSTED_SCRIPTS_TREE = '$(git rev-parse HEAD:src/scripts)';/" .github/scripts/integration-governance.cjs(Any further change under π Hive Agent: β hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88 |
There was a problem hiding this comment.
Decision needed: @clubanderson should confirm the new gate job in .github/workflows/feedback.yml (runs src/scripts/feedback-gate.sh from the PR's checkout on pull_request: closed with read-only permissions) is the intended trust posture before this lands.
This PR edits a workflow (.github/workflows/feedback.yml), so I am routing it to a maintainer rather than judging it alone. The code itself reads correctly to me; facts first, then the one question.
What the workflow change does (verified from the diff against v5)
- Trigger is unchanged:
pull_request: types: [closed](feedback.yml:3-5), notpull_request_target. The newgatejob narrows tocontents: read/pull-requests: readand checks out withpersist-credentials: false; the top-levelpull-requests: writestill flows only to the reusablefeedbackjob, which now runs only whenneeds.gate.outputs.post == 'true'. - Because the trigger is
pull_request, the checkout is the PR's own tree, sosrc/scripts/test-feedback-gate.shandsrc/scripts/feedback-gate.share PR-controlled code β executed with a read-onlygithub.tokenand no secrets. That is the standard posture for this trigger; I am naming it because it is the kind of fact a human should consciously accept rather than inherit. - Author pushed the workflow commit (
5329d0931) with their own credentials; the App token cannot. @clubanderson is an approver inOWNERS, so no role is being claimed that the author does not already hold.
Go relay change (src/pkg/github/pr_decision_operator.go)
selfAuthored is already computed at pr_decision_operator.go:352 (isHiveAccount(pr.GetUser()) || kind == authorkind.Hive) and threaded into reportOperatorPullRequestApproval (:472), so the new event.ProwManaged && selfAuthored branch has the inputs it needs. prApprovalCommandsWithoutLGTM filters only /lgtm; the /approve comment still carries the head-bound marker that prowRejectedHiveCommands keys on. Looks correct to me.
One low-severity note on feedback-gate.sh
When the merged-PR search lookup fails, the script exit 1s (new file, the merged-PR lookup ... failed; not posting branch). That does skip the thank-you as intended, but it does so by failing the gate job β a red check on an already-merged PR, which is the kind of noise this PR is reducing. decide false "lookup-failed" would skip cleanly. Suggestion, not a blocker.
I have not approved or changed anything; the decision above belongs to a maintainer.
β hive: agent=reviewer-2 backend=copilot model=claude-fable-5.1 copilot=1.0.88
Open PR overlap checkβ
Resolved: no conflicting open PRs or same-file overlaps remain against |
|
@clubanderson this PR is back in your court (
Once the new head lands, CI and the review swarm re-run automatically and the PR returns to the normal path. Current head: |
66945fc to
5329d09
Compare
|
Removed the hive-pushed commit Still yours to apply (one-liner, see the earlier sed -i "s/^const TRUSTED_SCRIPTS_TREE = '.*';/const TRUSTED_SCRIPTS_TREE = '$(git rev-parse HEAD:src/scripts)';/" .github/scripts/integration-governance.cjs
git commit -s -am "π workflows: re-pin TRUSTED_SCRIPTS_TREE to this branch's src/scripts tree" && git pushso π Hive Agent: β hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88 |
β¦ first-time contributors only, no self-/lgtm relay on Prow PRs Fixes #17863. - .github/scripts/pr-overlap.sh: create the <!-- hive-pr-overlap --> comment only when a sibling PR conflicts or shares a file; a later clean run edits the existing comment to a one-line Resolved note; never post for a PR that never had a finding. The step summary keeps the full report. - src/scripts/mutation-report.sh post: same for <!-- hive-mutation --> on a pass verdict; the report is appended to the step summary first. - src/scripts/feedback-gate.sh (+ test): decides whether the merge thank-you is posted β skips bot/App authors, scanner/* and hive/* branches, hive-origin bodies and returning contributors; FEEDBACK_* env knobs. Wired by the feedback.yml change in the next commit. - pkg/github: a dashboard approval on a Prow-managed, hive-authored PR relays /approve only (LGTMSkipped); Prow rejects a self-/lgtm every time and no hive lane reads the relayed /lgtm. - docs: notifications.md (new section + Prow config location), glossary, running-at-level-6; changelog fragment. Signed-off-by: Andrew Anderson <andy@clubanderson.com>
β¦ck-gate.sh Refs #17863. Workflow-only commit: adds a gate job (self-test + decision) before the hivecommons/infra reusable-feedback call, which runs only when the gate outputs post=true. Signed-off-by: Andrew Anderson <andy@clubanderson.com>
5329d09 to
abe9e95
Compare
|
merged by Hive trusted-author auto-merge: author @clubanderson holds role owner and GitHub permission admin on repo; CI green at abe9e95. |
* π agents: Copilot CLI ET_EXEC binary fails with ENOEXEC on kernel 6.12 β exec via ld.so + startup preflight (#17737)
Fixes #17729. Refs #17642.
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π release: v5.221.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.221.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* fix: warn once per agent about user identity in agent gitconfig (#17742)
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π fix: name ENOEXEC instead of dumping binary stderr in model discovery error (#17756)
* π fix: name ENOEXEC instead of dumping binary stderr in model discovery error
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π fix: import unicode/utf8 and keep ANSI-coloured stderr out of the ENOEXEC check
cli_models.go used utf8.ValidString without importing unicode/utf8, so the
dashboard package failed to build. isBinaryStderr also treated ESC (0x1b) as
a binary control byte, so coloured stderr would have been mislabelled as an
ENOEXEC dump; ESC is now allowed alongside the whitespace controls, with a
regression test.
Hive-Fix-Attempt: 1/6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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: Copilot <223556219+Copilot@users.noreply.github.com>
* β¨ crux: Substrate as the 4th sandbox runtime (opt-in, preflight-gated) (#17741)
* β¨ crux: Substrate as the 4th sandbox runtime (opt-in, preflight-gated)
Add Agent Substrate (CNCF Sandbox) as sandbox.runtime: substrate behind
the existing sandbox.Launcher seam, mirroring the OpenShell runtime
(ADR-0026 phase 2).
- crux/sandbox/substrate*.go: SubstrateLauncher (ActorTemplate + Actor
per kick, atenet-egress policy derived from the proxy host set +
allow_hosts, workspace push/run/pull through an in-actor bridge over
the atenet-router mTLS CONNECT tunnel, snapshot_on_idle suspends
instead of deleting), real gRPC client constructed lazily, Control
API preflight registered into crux/config.
- crux/sandbox/substrateapi: trimmed, wire-compatible proto subset of
ate.control.v1 generated in-repo (no go.ate.dev/substrate import:
it requires Go 1.27 and is very large). Zero new Go modules.
- crux/sandbox/substratebridge: the HTTP bridge served inside the actor.
- crux/config/agent_config_substrate.go: sandbox.substrate.* leaves with
per-agent merge; pkg/config gate warnings (digest-pinned image).
- Settings parity allowlist entries for the new leaves (#17699).
Fixes #17697
Part of #17695
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* changelog: fragment for #17741
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: clubanderson <407614+clubanderson@users.noreply.github.com>
* π± changelog: make the substrate fragment an entry bullet
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π± changelog: drop the auto-generated duplicate fragment
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π± substrateapi: drop a never-true nil comparison flagged by staticcheck
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Signed-off-by: clubanderson <407614+clubanderson@users.noreply.github.com>
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* π docs: ADR-0026 phase 2 β Agent Substrate runtime operator and deploy notes (#17745)
* π docs: ADR-0026 phase 2 β Agent Substrate runtime operator and deploy notes
Amend ADR-0026 with the Substrate implementation notes (contract mapping,
deviations from the reference model, cluster prerequisites and which hive
clusters qualify, when to choose it over OpenShell); add the operator
section to sandbox-isolation.md, the integrations table row, deploy/README
pointer and a new deploy/substrate.md with install and verification steps.
Part of #17695
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* changelog: fragment for #17745
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: clubanderson <407614+clubanderson@users.noreply.github.com>
* π± changelog: make the substrate docs fragment an entry bullet
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π± changelog: drop the auto-generated duplicate fragment
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π docs: fix the ADR-0002 link in the Substrate section
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Signed-off-by: clubanderson <407614+clubanderson@users.noreply.github.com>
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* π release: v5.221.1
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.221.1 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* fix: stop read-only lanes retrying hive:unauthorized label removal (#17743)
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: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: reconcile and expire effect-ledger ops stuck in Unknown (#17746)
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π fix: guard nil config in stageEngineOptions before reading WorkflowsDir (#17765)
stageEngineOptions dereferenced cfg.Data.WorkflowsDir as an argument before any nil check. Because stageEngine is a package-level sync.Once, the panic only fired when a nil-config caller was first in the process, making it order-dependent. Build the workflow store only when cfg != nil.
Closes #17736
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π Skip archived repositories during GFI curation (#17739)
* Fix GFI curation for archived repositories
Hive-Run: hivecommons/hive#17734
Hive-Plan: archived-repository GFI recovery
Hive-Spec: good-first-issue#archived-repositories
Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>
* fix: correct changelog fragment category
Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>
---------
Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>
Co-authored-by: Karibhou <Karibhou@users.noreply.github.com>
Co-authored-by: hivecommons-hive[bot] <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π release: v5.222.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.222.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* π marketplace: resume CNCF catalogue seeding across hub restarts and let spokes trigger refresh (#17773)
* π marketplace: resume CNCF catalogue seeding across hub restarts and let spokes trigger refresh
Root cause of the one-entry catalogue on hive.hivecommons.dev: GitHub
tarballs lead with a pax_global_header entry, which Go's tar reader
surfaces as a header. ExtractTarGz counted it as a second top-level name,
returned dest instead of the wrapped "<owner>-<repo>-<sha>/" directory,
and ingest.ReadTree then saw every path with the wrapper prefix β no
GitHub Actions workflow matched. Only tektoncd/pipeline got through, via
the content-based Tekton sniff. Skip pax headers when extracting.
Seeding is now resumable: at startup the hub ingests every corpus repo
that is due (no record, record older than 24h or in an older format,
error older than 1h) instead of only when the catalogue is empty, so a
restart mid-seed continues and a flapping hub does not re-crawl fresh
repos. Records carry a format version; bumping it (format 2 for the
tarball fix) re-ingests everything on the next boot. The last run summary
is persisted so status.lastRefresh survives restarts; status gains
pendingRepos/lastRefreshErrors and ?verbose=1 (spoke or admin) lists the
failing repos with their errors.
POST /api/marketplace/refresh accepts the same credentials as publish
(hub admin session or spoke heartbeat bearer + X-Hive-ID); spokes are
rate-limited (one full run/hour, 10 ?repo= runs/min β 429 + Retry-After),
admins are not. The spoke proxy passes 429/409 through with the hub's
message. The crawl sleeps on 403/429 Retry-After (secondary limits) and
logs progress every 25 repos.
Refs hivecommons/hive#17620
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π marketplace: update refresh tooltip in static-src and regenerate index.html
Refs hivecommons/hive#17620
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π fix: bound consecutive stale-snapshot drops in the status builder (#17744)
* fix: bound consecutive stale-snapshot drops in the status builder
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π docs: update staleDropStarvationThreshold comment for bounded publish
The constant's doc comment still described the pre-PR contract (drop
logged at Warn). It now marks the point where the build is published
anyway to bound staleness.
Hive-Fix-Attempt: 1/6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: ci-maintainer <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π docs: resync api-reference citations after server.go route shift
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
---------
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Signed-off-by: ci-maintainer <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* π fix: log Prow ok-to-test rejection at WARN only when first noted (#17754)
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* β¨ crux: Substrate preflight prover (operator, CRDs, gVisor RuntimeClass, feature gates) (#17766)
* β¨ crux: Substrate preflight prover (operator, CRDs, gVisor RuntimeClass, feature gates)
Extends the sandbox.runtime: substrate preflight with the cluster facts
behind a failing kick: operator CRDs and workloads, ready WorkerPools and
their sandbox classes, gVisor (SandboxConfig or runsc RuntimeClass) and
KVM availability, node kernels, the certificates.k8s.io APIs behind the
PodCertificateRequest and ClusterTrustBundle feature gates, and an mTLS
CONNECT probe of atenet-router. Skipped outside a cluster; one warning
when RBAC is missing, with a manifest that grants it.
Fixes #17698
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* fix(crux/sandbox): egress policy atespace + in-place workspace clear found by #17697 kick
The first real kick through Substrate v1.0.0 (kind, gVisor) surfaced two
defects in the launcher path: CreateActorEgressPolicy was rejected with
'egress_policy.metadata.atespace: Required value', and the bridge's PUT
/workspace failed with EBUSY because os.RemoveAll targeted the durableDir
mount point itself. Set the atespace on the singleton policy and clear the
workspace directory's contents in place.
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* test(crux/sandbox): run the kube/router preflight halves only in a Pod wired for Substrate
CI runs in Pods, so /var/run/secrets/kubernetes.io/serviceaccount/token
exists there and the kube/router halves of the prover ran during the
Control-API-only tests (crux/sandbox and crux/agent). The prover now
requires both the Kubernetes token and hive's projected Substrate token
(opts.token_file, /var/run/secrets/ate/token by default) before probing the
cluster; the Kubernetes token path is a package variable the sandbox test
package pins to a nonexistent file, with a helper that flips both markers on
for the tests covering the in-cluster branches.
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π fix: openshell sandbox names and driver_config fit gateway 0.1.8 limits (#17780)
Prototype on LKE (#17643) hit four gateway rejections before a kick ran:
sandbox names over MAX_ROUTABLE_NAME_LEN (19), the reserved 'workspace'
volume name, default-denied pod labels/annotations, and the missing Agent
Sandbox prerequisite. Names are now hk-<slug>-<base36 unix> (fnv tag when
the slug does not fit), the claim mounts as hive-workspace, and the deploy
doc records the operator settings the measurements depended on
(allowed_pod_labels, workspaceStorageClass, sandboxUid, auth modes) plus
the landlock-in-LSM preflight lesson and the measured numbers.
Refs #17643, #17642
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π release: v5.222.1
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.222.1 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* π marketplace: stream repository tarballs and keep only pipeline files (#17793)
The marketplace fetcher extracted each default-branch tarball to disk via
complexity.ExtractTarGz under a 256 MiB whole-tree cap, so large monorepos
(kubernetes/kubernetes, kserve/kserve, meshery/meshery, shipwright-io/build,
spidernet-io/spiderpool) failed with "archive exceeds size cap" and never
reached the catalogue. ingest.ReadTarball now streams the archive and keeps
only the paths ReadTree would select (shared selectTreeFile), 1 MiB per
file and 32 MiB in total, discarding everything else without buffering;
the complexity cap is untouched for its own callers.
GET /api/marketplace/status now includes failing:[{repo,error,checkedAt}]
without ?verbose=1 (repo names and fetch errors carry no secrets), so an
operator with a plain PAT can see why repos fail. Four corpus entries that
GitHub now redirects are updated to their current names.
Refs hivecommons/hive#17620
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π fix: redact proxy userinfo in upstreamproxy URL errors (#17731)
* π fix: redact proxy userinfo in upstreamproxy URL errors
parseProxyURL formatted the raw proxy URL into its rejection errors, and
configureUpstreamProxy logs that error, so a malformed URL carrying the
proxy's Basic credential put the password in the hive JSON log on every
boot. logscrub's basic-auth category covers Authorization headers only,
not URL userinfo, so nothing downstream masked it. Use url.Redacted() on
the parsed form, strip the userinfo segment when url.Parse itself fails,
and drop the *url.Error wrapper whose message repeats the full URL.
Fixes #17730
Signed-off-by: sec-check <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* chore: re-key merge request after transient lint-pending refusal
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
---------
Signed-off-by: sec-check <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: sec-check <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* β¨ benchmarks: per-PR estimated cost in /api/benchmarks/export (#17791)
Records now carry cost.basis (tokens_x_pricing | unknown), cost.usd_est,
token share, launches and price_table_date, attributed from the spoke's
launch-cost collector: the swarm's PR ref for reviewer records, the
governor's issue ref of an issue the PR closed for author records (both
ref spellings). Vendored benchmarks schema refreshed; converter and
dashboard lookup tests; docs cost section.
Fixes #17790
Refs #17694
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π release: v5.223.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.223.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* β¨ marketplace: seed curated models and ship the CNCF TechDocs assessment workflow (#17798)
Curated marketplace tier gets a source of truth in the binary:
pkg/hub/marketplace/curated/*.yaml is embedded, strictly decoded, checked
for the curated invariants (provenance curated, a version, nothing left
inferred), compiled through bundle.Export and published at tier curated
on hub startup and at the start of every refresh run when that
name@version is absent. Bad files are logged and skipped, never fatal;
edits without a version bump are refused as conflicts, so a new version
is a new file. Seeded keys are reported in lastRefresh.curated.
The first curated model is cncf-techdocs-assessment@curated-2026.11.1:
Nate W.'s AI-assisted TechDocs assessment process (spec at
nate-double-u/cncf-techdocs@882be6f, intake template @ad91530), scoped to
cncf/techdocs. Issues travel requested β accepted β draft-open (β
escalated) β closed/declined; deliverable PRs travel drafting β in-review
β stakeholder-review β awaiting-merge β merged with checks-failing and
discarded branches. Every gate (/accept, /decline, /verify, /ready,
/confirm, /approve, /discard, /abort) is released by a human role; the
drafter and verifier agents stop at gates. Checks are the repo's
format/link/spell-check workflows plus the manual provenance block. The
rules evaluator is exercised over hand-written Facts for each step.
cncf/techdocs is not a landscape project, so the corpus package gains an
operator-added extra.json merged into Repos(); the ingested-unreviewed
version now sits next to the curated one.
Docs: marketplace section of docs/design/workflow-models.md (curated
seeding, where a model goes, how versions work) and
docs/workflows/techdocs-assessment.md for the TechDocs team.
Refs hivecommons/hive#17620
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π fix: classify repeated agent-lifecycle log lines instead of filing unclassified selfreports (#17757)
* π fix: classify repeated agent-lifecycle log lines instead of filing unclassified selfreports
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* test: expect agent_lifecycle_repeated class for non-held kick failures
TestPostRestartKickHoldLogsWithoutFleetReport asserted the generic
unclassified class; 'failed to send kick' is now classified as
agent_lifecycle_repeated. Held kicks still produce no observation.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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: Copilot <223556219+Copilot@users.noreply.github.com>
* π fix(marketplace): refuse and downgrade model-provenance curated claims from non-admin bundles (#17764)
* π fix(marketplace): refuse and downgrade model-provenance curated claims from non-admin bundles
The hub checked only the envelope Tier when deciding whether a publisher may
assert curated/built-in; the model's own spec.meta.provenance is hash-covered
and stored verbatim. Spoke import preferred the model's provenance over the
envelope tier, so a registered spoke could publish a bundle every importer
badged as curated. The hub now refuses such bundles from non-admins (it
cannot rewrite the hash-covered model) and importers honour a vouched model
provenance only when the envelope asserts the same tier.
Fixes #17763
Signed-off-by: sec-check <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* fix(marketplace): express importedProvenance as an if so the mutation gate sees its coverage
Go's cover tool does not instrument the case expressions of a tagless
switch, only the case bodies, so gremlins reported the three conditionals
on the switch as NOT COVERED even though TestImportedProvenance exercises
every branch. Fold the switch into a single if with identical semantics;
if conditions sit inside the preceding coverage block and are attributed
correctly.
No behaviour change: empty provenance still takes the envelope tier, and a
curated/built-in claim the envelope does not assert still falls back to it.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: sec-check <280983584+hivecommons-hive[bot]@users.noreply.github.com>
---------
Signed-off-by: sec-check <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: sec-check <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* π fix: hub digest reads a stale stage-tracker body instead of blocking on a rebuild (#17785)
* π fix: let the hub activity digest read a stale stage-tracker body instead of blocking on a rebuild
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
* π§ͺ test: wait for the hub digest rebuild with testutil.Eventually instead of a sleep loop
TestSleepRatchet failed on CI (196 time.Sleep calls in tests, baseline 195):
the new stale-read test polled stageTrackerBuild with a hand-rolled
time.Sleep loop. Use testutil.Eventually, which is the helper the ratchet
points to.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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: Copilot <223556219+Copilot@users.noreply.github.com>
* π fix: log issue-claims GitHub side-effect retries below WARN (#17786)
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π fix: detect orphaned queued workflow runs in automerge held-run resolution (#17787)
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>
* β¨ dashboard: surface agent_sandbox.substrate and per-agent sandbox.substrate settings (#17788)
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π claude auth: share refreshed logins across per-agent .claude homes without sharing memory (#17767)
* π claude auth: share refreshed logins across per-agent .claude homes without sharing memory
Since the per-agent CLI homes landed, each per-UID agent has a real
~/.claude directory with only .credentials.json symlinked to the shared
login at /data/home/.claude/.credentials.json. Claude Code refreshes its
token by writing a temp file in ~/.claude and renaming it over
.credentials.json, then chmod 0600. The rename replaces the symlink with
a private, agent-owned file. bridgeHomeEntry refuses to clobber a regular
file, so nothing ever re-links it; the refreshed access token and the
rotated refresh grant stay in that agent's private file, the shared
credential ages out, and the rest of the fleet logs out every ~8h
(Discord report by Danathar, 2026-11-11).
Andy's direction: keep per-agent memory isolated, make an exception for
the login only. So no opt-in whole-directory sharing. Instead the hive
repairs the bridge in-process:
- repairClaudeCredentialBridge: when the agent's credential path is a
regular file, read it (directly, or as its owner through the existing
su-exec seam when the server cannot open an agent's 0600 file β the
per-UID case), move it aside as .credentials.json.stale-<ts>, promote
it into the shared login only if it is complete, usable and expires
later than the shared token (a failed refresh's empty-token file never
wins; ties keep shared), preserving the previous shared file, then
restore the symlink. Legacy whole-directory ~/.claude symlinks and
unreadable private files are left untouched, with a once-per-version
log.
- Triggered at agent launch (setupPerAgentCLIHome), every 5s from the
credential watchdog (HIVE_CLAUDE_CREDENTIAL_BRIDGE_INTERVAL) so a
refresh is fleet-visible before siblings try the rotated grant, and
right after a dashboard sign-in (ReloadClaudeToken).
- Audited as claude_credential_rebridged (no token material).
- claude.ReadTokens/ParseTokens/TokensUsable split out of LoadTokens so
"cannot open" is distinguishable from "no token".
Tests reproduce the CLI's tmp+rename+chmod and show the shared file did
not update before the fix and does after; cover newer-shared, failed
refresh, su-exec owner read, unreadable fail-safe, legacy layout, stale
name collisions, watchdog cycle and sign-in trigger.
Refs hivecommons/hive#17039, hivecommons/hive#17253,
hivecommons/hive#17678, hivecommons/hive#17752, hivecommons/hive#17753
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π± keep manager_tokens.go at its file-size ratchet baseline
Move the sign-in re-bridge body into claude_credential_bridge.go and
defer it from ReloadClaudeToken (LIFO: after the Unlock).
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π harden shared-home permission guard and credential promotion against non-regular files
Shared logins and CLI configs written by the hive (.claude/.credentials.json,
.copilot/config.json, the durable Copilot token) now go through a new
crux/sharedfile package: a randomly named temporary beside the target, mode
and owner set and verified on the open descriptor, rename, directory fsync,
and the write is refused unless the target is absent or a regular file in a
regular directory the server owns. Credential promotion writes a canonical
re-encoding of the parsed token block and checks the moved-aside source is the
same regular file before and after.
Parity with the v6 fail-safe behaviour: an unreadable private credential is
left in place except on a dashboard sign-in with a usable shared login, the
refusal is logged once per file version, WriteCredentials refuses a credential
without an access token, and ReadTokens treats malformed JSON as nothing
usable.
entrypoint.sh: the shared dot-dirs get the sticky bit (not under
HIVE_SHARED_AGENT_HOME=1); the single-file repairs act only on a regular file
in a regular directory and WARN once otherwise; the remaining root chmod/chown
sites under agent-writable directories gained the same checks. The Go
permissions watcher keeps setgid/sticky when widening a directory's group
bits. Shell tests drive the shipped guard functions with non-regular entries.
Refs hivecommons/hive#17039, hivecommons/hive#17253, hivecommons/hive#17678, hivecommons/hive#17748
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π± wait for the watchdog re-bridge with testutil.Eventually instead of a polling sleep
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π release: v5.224.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.224.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* β¨ hub: per-cluster host_aliases for hosted hives (#17805)
* β¨ hub: per-cluster host_aliases for hosted hives
Adds ClusterConfig.host_aliases ([{ip, hostnames[]}]) to /data/saas/clusters.json,
validated at load (IP parses, hostnames non-empty, lowercased; invalid blocks are
dropped with a warning, never the cluster). Rendered as Pod hostAliases in the
hosted-hive Deployment template next to the upstream_proxy env injection, and a
throttled, rate-limited reconcile sweep (3 patches / 15 min) converges existing
hives while preserving unrelated hand-applied aliases.
Needed for GHE hosts reachable only through a TLS reverse proxy on a fixed IP
(no CONNECT proxy), where upstream_proxy cannot apply.
Fixes #17801
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π api-reference: resync hub-server.go citations after host_aliases field
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π fix: count PR author's own sign-off after a hive rebase; no decision gate on DCO asks (#17795)
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>
* β¨ dashboard: render Substrate preflight warnings on the agent card (#17796)
* β¨ feat: render Substrate preflight warnings on the agent card
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π test: seed proc.Config so sandbox-warnings status test matches the builder's input
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>
* π fix: dedupe repeated undelivered review kick warning (#17755)
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π fix: cache app_keys_held key fingerprints so heartbeat collect stays in budget (#17806)
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π release: v5.225.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.225.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* π fix(marketplace): restrict spoke-triggered ?repo= refresh to tracked repositories (#17800)
* π fix(marketplace): restrict spoke-triggered ?repo= refresh to tracked repositories
A registered spoke could pass any owner/name to POST /api/marketplace/refresh
and the hub would fetch it with its own GitHub identity and publish the
ingested model under the hub's name. Non-admin callers must now name a corpus
or HIVE_HUB_MARKETPLACE_EXTRA_REPOS entry; admins are unchanged.
Signed-off-by: sec-check <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π± chore: refresh head to re-report required checks
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
---------
Signed-off-by: sec-check <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: sec-check <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π release: v5.226.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.226.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* π substratebridge: refuse tar entries that write through symlinks on Unpack (#17813)
* π substrate: unpack pulled workspaces through os.Root so tar symlinks cannot escape
Fixes #17769
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* chore: re-trigger required checks after base moved
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>
* β¨ dashboard: show substrate kicks and stream bridge output in the terminal pane (#17809)
* β¨ dashboard: show substrate kicks and stream bridge output in the terminal pane
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π substratebridge: create the workspace dir before the streaming run test
newBridgeServer intentionally leaves the workspace path uncreated so the
PUT/GET workspace tests can exercise the missing-directory paths, but
TestHandlerStreamsRunOutput ran a command in it and failed with
chdir: no such file or directory before any frame was streamed.
Hive-Fix-Attempt: 1/6
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π substrate kicks: stream only transitions after the viewer connected; cover new sandbox paths
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: Copilot <223556219+Copilot@users.noreply.github.com>
* π Mark hive's in-cluster k8s API dials so the egress redirect never MITMs them (#17818)
* π Mark hive's in-cluster k8s API dials so the egress redirect never MITMs them
On nodes without the xt_owner netfilter module (IBM Cloud IKS/ROKS) the
HIVE_PROXY chain has only the packet-mark self-exemption, so every :443
dial the hive makes for itself must carry SO_MARK. The proxy's upstream
dials did; the spoke's own Kubernetes API clients (self-upgrade, startup
probe, node metrics, ingress probes, kubejob) did not, so they were
REDIRECTed into the MITM proxy, hit the private-range forward guard and
got EOF β every wec2 hive failed self-upgrade with
'reading startup probe before upgrade β¦ EOF'.
Move the SO_MARK dialer into a new crux/egressmark package (crux/proxy
imports crux/agent which imports kubejob, so kubejob cannot import
proxy) and use it for all five in-cluster API transports.
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π± Allow crux/egressmark in the dashboard import ratchet
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π± Add crux/egressmark tests for the coverage gate
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π hub: stop flagging off-cadence and scheduled agents as idle-with-work (#17825)
classifyInactiveAgent ignored AgentSummary.ExpectedActive, so an agent with
no cadence in the governor's current mode (e.g. redteam while quiet) was
alerted as idle whenever the hive had queued work. Spokes also reported
KickIntervalSec=0 for times/cron cadences, dropping the hub to the 45m rule
between slots. Skip the idle rule when the spoke says the agent is not
expected active, and report the gap from the last fired slot to the next
as the kick interval for scheduled cadences.
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π fix: use unique temp files when persisting hive and reach state (#17740)
* fix: use unique temp files when persisting hive and reach state
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π± chore: re-run PR verifier after cancelled concurrent run
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π± chore: refresh head to clear a Copilot PR Automation run stuck in queued
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>
* π hub heartbeat: back off and classify a permanent 403 rejection (#17823)
* π hub heartbeat: back off and classify a permanent 403 rejection instead of retrying every tick
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π± fleetreport: add threshold case for hub_heartbeat_rejected_unprovisioned
TestEveryRuntimeClassTriggerAndNonTriggerThresholds requires every class in
Classes to have a trigger/non-trigger case; the new class was missing one.
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>
* π release: v5.227.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.227.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* β¨ knowledge: Plaud voice notes as a knowledge source (#17821)
* β¨ knowledge: Plaud voice notes as a knowledge source
Add a plaud knowledge connector that reads Plaud Note recordings (Plaud
summary + transcript) through the free official Plaud MCP server over
stdio, with a minimal JSON-RPC MCP client, Connect/Disconnect sign-in on
the Knowledge Integrations card, docs and tests.
Fixes #17820
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π± knowledge/plaud: port dashboard edits to static-src, document auth routes in openapi.json, drop unused field
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Co-authored-by: hivecommons-hive[bot] <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π hive: do not gate the dashboard bind on the advisory-issue ensure (#17829)
* π hive: do not gate the dashboard bind on the advisory-issue ensure
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
* π hive: add missing time import in boot_github_deps_test
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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: Copilot <223556219+Copilot@users.noreply.github.com>
* π release: v5.227.1
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.227.1 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* π substrate: garbage-collect older suspended kick actors when snapshot_on_idle is on (#17830)
* π substrate: garbage-collect older suspended kick actors when snapshot_on_idle is on
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π substrate: scope superseded-actor GC to the atespace it was created in and log via slog
Review follow-up for #17830:
- lastSuspended records {Name, Atespace}; the delete uses the stored
atespace and is skipped (with a warning) when the agent's atespace
changed between kicks, instead of targeting a name never created there.
- Replace stdlib log.Printf with an injected *slog.Logger on
SubstrateOptions (slog.Default() fallback), wired from the agent
manager, with agent/actor/atespace/error attrs.
- Document the one-snapshot-per-agent retention rule in
sandbox-isolation.md, ADR 0026 and the dashboard snapshot_on_idle help.
Hive-Fix-Attempt: 1/6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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: Copilot <223556219+Copilot@users.noreply.github.com>
* π hub: converge startupProbe and init image onto existing hosted deployments (#17831)
* π hub: converge startupProbe and init image onto existing hosted deployments
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
* docs: resync hub-server api-reference citations after server.go field insertion
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>
* π release: v5.228.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.228.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* π hub: negatively cache rejected bearer tokens; stop re-probing exhausted user quota (#17837)
validateGitHubToken re-hit GET /user with the caller's own token on every
request once the token was rejected or rate-limited, charging the owner's
exhausted core bucket and prolonging the 401 outage. Remember 401/403/429
for 60 s (or until X-RateLimit-Reset, capped at 15 min), record the probe in
REST accounting under the pass-through caller agent:hub-bearer-validate, and
route hub release-notes contents reads through the shared ETag/accounting
transport. Document the fleet-wide operator steps for getting personal
tokens out of cluster secrets (ARC runner scale set -> GitHub App auth).
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π crux serve: count auth-rejected requests in crux.serve.auth.rejections (#17839)
instrument sits inside authenticate, so requests refused with a 401 never reached crux.serve.requests or crux.serve.request.duration. Wrapping authenticate with instrument would label them with the unmatched route, so a separate counter, crux.serve.auth.rejections, is incremented in each 401 branch of authenticate. Its only attribute is a fixed-enum reason (missing_or_invalid_token, project_forbidden, no_token_configured); never a token, path or remote address.
Closes hivecommons/crux#146
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π release: v5.228.1
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.228.1 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* fix(hub): bound bearer token validation cache (#17846)
Sweep expired entries at capacity and skip new entries when all slots remain occupied. Apply the same limit to accepted and rejected tokens.
Hive-Run: hivecommons/hive#17844
Hive-Plan: issue-17844-cap-and-expired-sweep
Hive-Spec: issue-17844#recommendation
Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>
Co-authored-by: Karibhou <Karibhou@users.noreply.github.com>
* π release: v5.228.2
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.228.2 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* π knowledge: start the Plaud MCP server with an allowlisted env, not the hive process env (#17845)
stdioMCPDialer passed os.Environ() to a third-party MCP server fetched at
run time (npx -y @plaud-ai/mcp@latest), so every hub-injected credential
the hive process carries β DASHBOARD_AUTH_TOKEN (server-verified owner on
the dashboard API), HIVE_TERMINAL_KEY, HIVE_HEARTBEAT_KEY, HIVE_HUB_SECRET,
HIVE_UPSTREAM_PROXY_URL (proxy Basic credential), GitHub/Linear/provider
keys β reached code the hive does not control. crux/agent strips the same
set from agent panes (#17657); the MCP dialer bypassed that.
The child now gets an allowlist: PATH, HOME, locale, TMPDIR, TERM, the
proxy and CA-bundle variables Node needs to reach the registry through the
egress proxy, NODE_*/npm_config_*/NPM_CONFIG_* and PLAUD_*. Any name that
contains TOKEN, SECRET, PASSWORD or CREDENTIAL is dropped even when it
matches a prefix.
Fixes #17843
Signed-off-by: sec-check <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: sec-check <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π release: v5.228.3
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.228.3 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* π release: v5.228.4
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.228.4 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* π± images: bump omp 18.18.0 -> 18.19.0 (#17850)
Automated pin bump (#8419). Digests recomputed from the downloaded
release artifacts by src/scripts/cli-pin-bump.sh:
VERSION=18.19.0
SHA256_AMD64=b44fda2ae5c9cce2bbe124d1672cba532a136d9e1eef68599b16efcd3bc5c626
SHA256_ARM64=61826bf89c2c0512417fee05fa2f486e60ee11b23ea95a17257a6c49edb6b8d5
Signed-off-by: hive-release[bot] <hive-release@hive.kubestellar.io>
Signed-off-by: clubanderson <407614+clubanderson@users.noreply.github.com>
Co-authored-by: hive-release[bot] <hive-release@hive.kubestellar.io>
* π army: stop attributing adopted PRs to a remote agent's rework queue and show why a fix is not dispatched (#17853)
The contribute fleet card listed every stage-store record by author in 072
or 074 as the relay's pending rework, so merged/closed PRs still carrying
stage/074-adopted-by-hive (the store prunes them only after 14 days) and
PRs the hive had taken over piled up as '33 PRs awaiting rework'. Only open,
not-adopted, not-dispatched PRs count now: the forge cache decides open vs
merged/closed when it knows the PR, otherwise a record the stage lane has
not re-observed for an hour is treated as gone. A queued fix whose PR is
gone leaves the fix queue instead of being handed to the relay.
The idle-with-queue stall: a fix dispatched to a socket that dropped stays
booked in flight with nobody holding it, so capacity 1 is busy forever and
the relay gets neither the fix nor new work (task_unavailable
fix_pr_in_flight, which the card hid behind 'idle Β· N awaiting rework').
The relay's next ready now releases such orphans (no attempt counted) and a
task_complete for the dispatch on a reconnected socket settles it. The card
prints the dispatcher's actual reason (pending_rework_blocked) instead of
'not yet dispatched', and links at most three PRs inline with the rest
behind a show-N-more disclosure.
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π fix: detect missing GitHub App repository coverage (#17733)
* fix: detect missing GitHub App repository coverage
Hive-Run: hivecommons/hive#17696
Hive-Plan: repository access and advisory recovery
Hive-Spec: issue-17696#expected
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>
* fix: add App repository coverage changelog
Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>
* fix: bound boot coverage and probe large installations
Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>
* docs: clarify GitHub App coverage polling
Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>
---------
Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>
Co-authored-by: Karibhou <Karibhou@users.noreply.github.com>
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
Co-authored-by: hivecommons-hive[bot] <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π release: v5.228.5
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.228.5 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* β¨ knowledge: Wispr Flow dictation history as a knowledge source (#17855)
* β¨ knowledge: Wispr Flow dictation history as a knowledge source
Adds knowledge.connectors[].type: wisprflow. Reads the desktop app's local
flow.sqlite read-only through the sqlite3 CLI (text columns only, never the
audio/screenshot BLOBs) or a folder of exported .json/.ndjson/.csv/.md
files, and emits one fact per finalised dictation (or per day) with the
dictation time, source app and URL. Incremental by timestamp with a 2h
overlap; min_words and apps filters; tags.
Dashboard: Knowledge -> Integrations card (path, status, last sync, count),
Add-source entry pointing out that new dictations need no connector at all
(dictate into + New Fact). Docs section next to Plaud's; changelog fragment.
Fixes #17854
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π knowledge: wisprflow tests run without the sqlite3 CLI
Sync tests now use a fake sqlite3 runner fed from testdata/wisprflow/history.json
so the SQLite path is exercised (and counted for coverage) on runners without
the CLI; the real-CLI test skips when sqlite3 is absent. TestWisprValidate
passes an explicit path so it no longer depends on a macOS default location.
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π fix(agent): replace unopenable pluk session log so the supervisor can create it (#17889)
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π release: v5.228.6
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.228.6 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* β¨ workflows: owner toggle for model-based stage derivation from the dashboard (#17886)
* β¨ workflows: owner toggle for model-based stage derivation from the dashboard
workflow.enabled gates rules-based stage derivation and bound-model label
provisioning, but could only be set by editing hive.yaml, which hosted
hives cannot do. Add PUT /api/workflows/enabled {enabled} (owner-gated,
persists hive.yaml, audited workflow_enabled / workflow_disabled) and a
"Derive stages from bound models" switch in Settings β Workflows β Library
that confirms before turning on. The stage engine and the tracker already
read cfg.Workflow.Enabled live and the reloader mutates the same *Config
in place, so no reload hook is needed. Turning on also provisions every
bound repository's model labels at once through the sweep's memoised
ensureStageLabels path (new automerge.Engine.EnsureStageLabels, wired as
Dependencies.WorkflowProvisionLabels); failures come back as warnings and
the next sweep retries. The Repos binding row says "columns only β turn
on derivation in Workflows" when a binding exists while the flag is off.
Refs hivecommons/hive#17620
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* chore: move changelog fragment to root changelog.d/
Refs hivecommons/hive#17620
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π release: v5.229.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.229.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* fix: classify plain HTTP proxy forwarding failures (#17864)
Hive-Run: hivecommons/hive#17859
Hive-Plan: classify repeated proxy forward failures
Hive-Spec: fleet-report#runtime-classes
Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>
Co-authored-by: Karibhou <Karibhou@users.noreply.github.com>
Co-authored-by: hivecommons-hive[bot] <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* β¨ Inbox: voice recorders as first-class input sources (Plaud β spek RFC / dibs / knowledge) (#17885)
* β¨ Inbox: voice recorders as first-class input sources
Add a source-agnostic Inbox (sidebar β Intelligence) that lists recordings
synced by voice knowledge connectors (plaud now, wisprflow next), keyed by
(source, item_id), and routes each one inside the hive to a spektacular RFC
with child issues (spektacular voice --publish, or a spoke-agent fallback),
a dibs draft idea, or Knowledge only β single, bulk, or by auto-routing
rules applied after every sync.
- pkg/inbox: Item/RouteState model, JSON store, fact-backed source,
rules, spek_rfc + dibs destinations, service with sweep.
- config: inbox.{sources,rules,spek,dibs} + validation.
- dashboard: GET /api/inbox, POST /api/inbox/{route,dismiss},
GET|POST /api/inbox/settings, Inbox section + modals, sidebar badge.
- Plaud: POST /api/knowledge/connectors/{name}/auth/complete paste
fallback for hosted hives (Plaud OAuth only redirects to localhost:8199);
the Integrations card now shows connection state + Open Inbox only.
- docs: inbox-voice-sources.md, knowledge-connectors.md, api-reference,
dashboard-sections, openapi.json.
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* β¨ Inbox: default spek_rfc agent fallback to first enabled agent
When the hive image has no spektacular binary and inbox.spek.agent is
unset, hand the RFC job to the alphabetically first enabled, unpaused
agent so candidate hives can file RFCs without extra config.
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π± Inbox: allowlist pkg/inbox dashboard import; sidebar order test includes inbox-section
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π± Inbox: cover service/store/source edge cases and inbox config validation
Raises pkg/inbox to 92% and pkg/config back over the 90% coverage floor.
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π release: v5.230.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.230.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* π PR comments: overlap/mutation only on a finding, thank first-time contributors only, no self-/lgtm relay on Prow PRs (#17870)
* π PR comments: post overlap/mutation reports only on a finding, thank first-time contributors only, no self-/lgtm relay on Prow PRs
Fixes #17863.
- .github/scripts/pr-overlap.sh: create the <!-- hive-pr-overlap --> comment
only when a sibling PR conflicts or shares a file; a later clean run edits
the existing comment to a one-line Resolved note; never post for a PR that
never had a finding. The step summary keeps the full report.
- src/scripts/mutation-report.sh post: same for <!-- hive-mutation --> on a
pass verdict; the report is appended to the step summary first.
- src/scripts/feedback-gate.sh (+ test): decides whether the merge thank-you
is posted β skips bot/App authors, scanner/* and hive/* branches, hive-origin
bodies and returning contributors; FEEDBACK_* env knobs. Wired by the
feedback.yml change in the next commit.
- pkg/github: a dashboard approval on a Prow-managed, hive-authored PR relays
/approve only (LGTMSkipped); Prow rejects a self-/lgtm every time and no
hive lane reads the relayed /lgtm.
- docs: notifications.md (new section + Prow config location), glossary,
running-at-level-6; changelog fragment.
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π workflows: gate the Feedback Wanted thank-you on src/scripts/feedback-gate.sh
Refs #17863. Workflow-only commit: adds a gate job (self-test + decision)
before the hivecommons/infra reusable-feedback call, which runs only when
the gate outputs post=true.
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π± governance: re-pin TRUSTED_SCRIPTS_TREE for the feedback-gate and mutation-report scripts
Refs #17863. src/scripts gained feedback-gate.sh / test-feedback-gate.sh and
mutation-report.sh changed, so the pinned tree moves to 1f1eb9048.
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π fix: atomic runtime config save + fresh legacy fallback (#17862) (#17867)
* π fix: atomic runtime config save + fresh legacy fallback (#17862)
Config.Save wrote /etc/hive/hive.yaml and /data/hive.yaml.runtime in place
with O_TRUNC. A liveness SIGKILL between truncate and write left a 0-byte
runtime file; the entrypoint's -s check then fell back to /data/hive.yaml.bak,
frozen at the Aug 2026 rename on every hive, and vllmd-03 booted level 3
instead of 6.
- writeFileAtomic: temp file in the target's dir, fsync, rename onto the
EvalSymlinks-resolved target so the #17468 link survives; falls back to
the old in-place write when rename is refused (single-file bind mounts).
- Both Save writes use it; runtime stays 0600, source keeps its mode.
- entrypoint: hive_refresh_legacy_fallback copies a YAML-valid runtime
config over hive.yaml.bak on clean boots (tmp+mv), only when the new name
is the boot source; hive_runtime_config_read WARNs loudly on fallback and
flags a fallback older than the damaged runtime file.
- Tests: writer unit tests incl. symlink + no-partial-read race; shell
suite covers WARN, refresh, parse guard, legacy-boot no-op.
Fixes #17862
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* test(config): cover atomic writer failure paths for coverage floor
Adds tests for missing target dir, ENOTDIR resolve error, dangling
symlink, rename+fallback double failure (no temp leak), in-place
fallback, syncDir tolerance and sourceConfigMode, lifting pkg/config
back over its 90% coverage floor.
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
* π release: v5.231.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.231.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* π fix: wait for marketplace refresh completion in auth test (#17868)
Wait for a new refresh result rather than interpreting an idle refresher as proof that the newly accepted asynchronous run has finished.
Hive-Run: hivecommons/hive#17865
Hive-Plan: marketplace-refresh-flake
Hive-Spec: marketplace-refresh-flake#async-completion
Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>
Signed-off-by: Karibhou <157208370+Karibhou@users.noreply.github.com>
Co-authored-by: Karibhou <Karibhou@users.noreply.github.com>
* π release: v5.231.1
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.231.1 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* π docs: Inbox voice sources page + quickstart link (#17899)
* π docs: add Inbox voice sources page and quickstart links
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
* π docs: use .row utility for Inbox quickstart link group
TestStyleRatchet counts inline style= attributes in static/index.html;
the new link group pushed it over the 1403 baseline. The existing .row
utility (flex, gap var(--sp-4)) renders the same.
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π docs: link #17882 from the changelog fragment
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>
* β¨ dashboard: Settings β Inbox section (default repo, dibs URL, rules) (#17901)
* β¨ dashboard: Settings β Inbox section for default repo, dibs URL and rules
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
#17885 landed inbox.* config, validation, parity allowlist and /api/inbox/settings but no Settings tab section. Add Settings β Inbox reusing the Inbox drawer form and endpoint. Part of #17883.
* π dashboard: scope the Inbox settings form to its active root
The Inbox settings form renders twice β in the Inbox page modal and inline under Settings β Inbox β and both can be mounted at once: the settings tab stays in the DOM and the closed modal keeps its last body. inboxReadRules collected .inbox-rule rows from every #inbox-settings-rules, the repo/dibs inputs were read via getElementById (first in document) and the inline sniff kept the modal open on save, so saving from the modal after visiting Settings β Inbox posted the inline form's values and left the dialog up.
Wrap the form in .inbox-settings-form[data-inbox-form=inline|modal], replace the duplicated ids with data-inbox-field attributes, and resolve one active root per operation (the modal while open, otherwise the inline section). Read, render, save and the close-modal decision all go through that root.
Hive-Fix-Attempt: 1/6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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: Copilot <223556219+Copilot@users.noreply.github.com>
* π release: v5.232.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.232.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* β¨ inbox: Plaud source onto the Source interface (#17900)
* β¨ inbox: read Plaud recordings directly through the Source interface
The Inbox only saw recordings through the facts the Plaud connector writes. Add a PlaudSource that lists/fetches straight from the connector (item id stays attr_plaud_file_id), preferred while Plaud is signed in with the fact-backed source as fallback.
Refs #17877, part of #17875.
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
* π inbox: cache the direct Plaud listing off the poll path and keep fact fields
PreferDirect.List spawned the Plaud MCP process on every Items/Find/Sweep call, so each dashboard poll paid for a process spawn plus list_files pagination and a slow spawn past the handler timeout silently flipped the UI back to facts. The direct listing is now cached for a TTL and refreshed by a single background goroutine with its own timeout; List serves the cache (or just facts while nothing is cached) and never blocks on Plaud. A failed refresh clears the cache and is not retried before the TTL.
Direct items also dropped FactSlug/FactPath/Layer/Excerpt, hiding the Fact button and excerpt for recordings that do have facts. The fact listing is now merged by id onto the direct items, and facts Plaud no longer lists stay visible.
Refs #17877.
Hive-Fix-Attempt: 1/6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π inbox: wait on the Plaud refresh with testutil.Eventually, not a sleep loop
The sleep ratchet (TestSleepRatchet) rejects any new fixed β¦
β¦ontributors only, no self-/lgtm relay on Prow PRs (#17870) * π PR comments: post overlap/mutation reports only on a finding, thank first-time contributors only, no self-/lgtm relay on Prow PRs Fixes #17863. - .github/scripts/pr-overlap.sh: create the <!-- hive-pr-overlap --> comment only when a sibling PR conflicts or shares a file; a later clean run edits the existing comment to a one-line Resolved note; never post for a PR that never had a finding. The step summary keeps the full report. - src/scripts/mutation-report.sh post: same for <!-- hive-mutation --> on a pass verdict; the report is appended to the step summary first. - src/scripts/feedback-gate.sh (+ test): decides whether the merge thank-you is posted β skips bot/App authors, scanner/* and hive/* branches, hive-origin bodies and returning contributors; FEEDBACK_* env knobs. Wired by the feedback.yml change in the next commit. - pkg/github: a dashboard approval on a Prow-managed, hive-authored PR relays /approve only (LGTMSkipped); Prow rejects a self-/lgtm every time and no hive lane reads the relayed /lgtm. - docs: notifications.md (new section + Prow config location), glossary, running-at-level-6; changelog fragment. Signed-off-by: Andrew Anderson <andy@clubanderson.com> * π workflows: gate the Feedback Wanted thank-you on src/scripts/feedback-gate.sh Refs #17863. Workflow-only commit: adds a gate job (self-test + decision) before the hivecommons/infra reusable-feedback call, which runs only when the gate outputs post=true. Signed-off-by: Andrew Anderson <andy@clubanderson.com> * π± governance: re-pin TRUSTED_SCRIPTS_TREE for the feedback-gate and mutation-report scripts Refs #17863. src/scripts gained feedback-gate.sh / test-feedback-gate.sh and mutation-report.sh changed, so the pinned tree moves to 1f1eb90. Signed-off-by: Andrew Anderson <andy@clubanderson.com> --------- Signed-off-by: Andrew Anderson <andy@clubanderson.com>
β¦r maintainer reporters (#18617) * π± ci: no mutation comment for an error verdict; no reopen hint for bot or maintainer reporters mutation-report.sh post no longer creates a <!-- hive-mutation --> comment for an 'error' verdict (no report, nothing to act on): the report stays in the job summary and the failing verdict step, and an earlier finding comment is edited so it is not stale. issue-closed-reopen-hint.yml skips issues whose reporter is a bot or OWNER/MEMBER/COLLABORATOR. pr-overlap.sh already posts only when a sibling PR overlaps (#17870); unchanged. Fixes #18607 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π± changelog fragment for #18607 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π± re-pin TRUSTED_SCRIPTS_TREE for the mutation-report.sh change Signed-off-by: Andy Anderson <andy@clubanderson.com> --------- Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π meetings: log every failed meetings call and keep a failed approval's reason (#18600) * π meetings: log every failed meetings call and keep a failed approval's reason A Quorum refusal of a Discord join (blocked: no permission to connect) was answered as 502 with no log line, and the hosted ingress replaced the body with its generic page, so the owner saw 'hive unavailable' and the spoke log said nothing. Every meetings call failure is now logged with method, path, status and error (Warn for 5xx, Info for caller mistakes), and ApproveRequest records the failure reason on the still-open request. Refs #18598 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π meetings: a blocked Discord join names the bot's permissions, and a failed approval shows on the request The panel read every blocked meeting as 'The meeting refused a guest bot', which is a Meet/Teams lobby refusal; on Discord blocked means the bot's role lacks View Channel, Connect or Speak on the voice channel. The join request row now also renders the reason a failed approval saved. Refs #18598 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π api-reference: re-point meetings route citations after the import shift Refs #18598 Signed-off-by: Andy Anderson <andy@clubanderson.com> --------- Signed-off-by: Andy Anderson <andy@clubanderson.com> * β¨ Remote items: follow up on issues and PRs the hive opened as its App bot (#18610) * β¨ remote items: follow up on items the hive opened as its App bot With project.remote_write_identity a write-tier reference repo can write as the App bot, but the own-item poller listed creator=<owner> under the owner token only, so feedback on bot-opened issues and PRs never reached the agent. - remoteitems: RunTargets takes (repo, login) pairs; each repo is listed and its feedback filtered under its own login. Run keeps its signature as a one-login wrapper. - github.RemoteItemsFetcher: optional TokenFor picks the read token per repo and is authoritative when set (no fallback to the owner token). - cmd/hive: every write-tier repo is watched under its CredentialLogin and read with the token the proxy injects on its writes (scoped bot token, owner token or write_token_file). Refs #18516 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π remote items: fix the per-repo login test's use of Store.Items Store.Items returns a slice; build the tracked set from Item.Key. Signed-off-by: Andy Anderson <andy@clubanderson.com> * π two-lane doc: the own-item follow-up covers bot-opened items too Signed-off-by: Andy Anderson <andy@clubanderson.com> --------- Signed-off-by: Andy Anderson <andy@clubanderson.com> * π fix(ioscan): do not fleet-report an injection-withheld kick as a classifier outage (#18618) A fail-closed kick block was always logged as "ioscan fail-closed blocked kick", which the fleet report classes as ioscan_classifier_unavailable. But the kick is also withheld when untrusted issue/PR text trips the injection policy (a Critical finding or a classifier block verdict) while the classifier is answering: the defense working as designed, not an outage. The #18459 report carried no classifier_error, i.e. exactly that case. warnBlockedKick now keeps the fleet-reported wording (with classifier_error and fix) only when the classifier is failing, and otherwise logs "ioscan fail-closed withheld kick on an injection finding", listed in fleetreport.IsBenignMessage. The held-PR coordination path goes through the same helper, so it now also names the classifier error on an outage. Closes #18459 Hive-Run: #18459 Hive-Plan: selfreport-ioscan_classifier_unavailable Hive-Spec: fleet-report#ioscan_classifier_unavailable Signed-off-by: Karibhou <157208370+Karibhou@users.noreply.github.com> * π± ci: fetch only the histories the squash-attribution check reads (#18609) `fetch-depth: 0` makes actions/checkout fetch every branch and tag. That took 17-35s normally and on #18482 (run 43960382195) hung for the whole 5-minute job budget, failing the required "Sign-off survives the squash" context before the check ran. Check out the head shallowly, then fetch the head, base and default-branch histories in full (unshallow), with a 60s per-attempt stall timeout and three attempts. Picks up the fix a contributor reverted out of #18482 as unrelated to that PR, plus the stall retry and post-fetch assertions. Signed-off-by: Andy Anderson <andy@clubanderson.com> * β¨ Hand workflow-model states to their agent profiles (claim first, dispatch once) (#18571) * β¨ Hand workflow-model states to their agent profiles The eval cycle now reads the bound model: an item whose state the model hands to a profile (TechDocs Accepted -> techdocs-drafter, Drafting on /verify -> techdocs-verifier) is withheld from every generic lane, claimed for the agent that fills the profile on the issue-claims ledger, and kicked once. The hand-off key (item, profile, state, triggering comment) is written to workflow-dispatch.json on delivery, so neither a later cycle nor a restart repeats it; a failed or deferred kick is retried. Part of the drafter hand-off for cncf/techdocs#395. Signed-off-by: Andy Anderson <andy@clubanderson.com> * π List a bound repository's drafts at most every five minutes Signed-off-by: Andy Anderson <andy@clubanderson.com> --------- Signed-off-by: Andy Anderson <andy@clubanderson.com> * π Betty closes the loop on deep dives; research agents survive config reloads (#18592) * π Betty closes the loop on deep dives; research agents survive reconciles research-1..N are added to the runtime only (not hive.yaml), and ReconcileAgents (config reload, reviewer autoscale) removes every agent not in the enabled config set, so the pool was emptied shortly after boot and each meeting research request failed with "no research agent available" while nothing was said in the meeting. - cmd/hive: the reconcile set carries the research pool's agents. - research.Pool: a dispatch that finds no agent re-registers them once; ErrNoAgents carries a sayable Reason; Status() for the settings page. - live: a persona deep dive that cannot start, errors, or runs past 5 minutes is answered with "I couldn't look that up: <reason>." in the channel it was asked in; one progress note after 30 s; a spoken question's follow-up is spoken. - Settings, Meeting attendee: Research section with agents, availability and a "No research agent available" warning. Part of #18590 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π tests: set agents through AgentRuntimeConfig Part of #18590 Signed-off-by: Andy Anderson <andy@clubanderson.com> --------- Signed-off-by: Andy Anderson <andy@clubanderson.com> * β¨ Review follow-ups, trust-only 090 and issue pr-link notes become status-card sections (quiet mode) (#18616) * β¨ Review follow-ups, trust-only 090 and issue pr-link notes become status-card sections (quiet mode) In github.notifications.mode: quiet the review Follow-ups checklist is the collapsible review-followups section of the PR's hive:status card (ticks kept via the new prstatus.WriteFunc), a 090 ready-for-human-merge entry whose only objection is the author's trust tier is the stage-ready line, and the issue-side PR-link stage note is the issue card's issue-pr-link section. Every 085 and a held or manual-merge 090 still post a comment. Fixes #18606 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π status-card follow-ups use their own marker; tests expect neutralised mentions The card section carried the legacy Follow-ups comment marker, so the next pass read the card as the legacy comment and EditIssueMarkerComment rewrote the whole card. Stamp the section with <!-- hive:review-followups-card --> and skip status comments in the legacy check. The 090 card line goes through prstatus.Write, which neutralises '@sha' to a code span; the test now expects that. Signed-off-by: Andy Anderson <andy@clubanderson.com> --------- Signed-off-by: Andy Anderson <andy@clubanderson.com> * π± ci: no mutation comment on error verdicts; no reopen hint for bot or maintainer reporters (#18617) * π± ci: no mutation comment for an error verdict; no reopen hint for bot or maintainer reporters mutation-report.sh post no longer creates a <!-- hive-mutation --> comment for an 'error' verdict (no report, nothing to act on): the report stays in the job summary and the failing verdict step, and an earlier finding comment is edited so it is not stale. issue-closed-reopen-hint.yml skips issues whose reporter is a bot or OWNER/MEMBER/COLLABORATOR. pr-overlap.sh already posts only when a sibling PR overlaps (#17870); unchanged. Fixes #18607 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π± changelog fragment for #18607 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π± re-pin TRUSTED_SCRIPTS_TREE for the mutation-report.sh change Signed-off-by: Andy Anderson <andy@clubanderson.com> --------- Signed-off-by: Andy Anderson <andy@clubanderson.com> * π Meetings: keep nothing from before the consent notice is delivered (#18621) Until the consent notice is delivered (consent_posted_at), every transcript segment, draft and chat line is discarded in the manager: not stored and not emitted to listeners (Betty, Spektacular, research, facts, Inbox hand-off). Only a pre_consent_dropped count is kept. A leave phrase is still honoured and the line itself is not kept. Lines that arrive after the notice but belong before it are dropped too: seq at or below Quorum's transcript cursor when the notice landed (consent_seq), chat stamped earlier, and for two minutes segments that began before the last speech heard while pending (consent_speech_end). A reconnect or restart while pending asks Quorum for no replay, and dropped lines advance the replay cursor. Refs #18590 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π fix: stop open-PR guard label retry storms and classify the failure (#18624) The has-open-pr label write shared the caller's 15s deadline with the open-PR listing ahead of it, so a slow listing of a large repo left it a spent context. The write failed with context deadline exceeded, the issue never got the label, and every later claim pass retried it and warned again, which filed an unclassified_error_repeated self-report. - give the label write its own 10s budget, detached from the caller - remember a failed write per issue: 15m after a transient failure, 6h after a refusal (403/404/410/422), and log refusals at INFO - add the open_pr_guard_label_failed fleet-report class for the remaining repeated WARNs Fixes #18589 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π± ci: blobless history fetch for the squash-attribution check (#18634) #18609's unshallow step fetched full blob history and measured 38-42s on the self-hosted pool, slower than the all-refs checkout it replaced. The checker reads only commits and trees, so fetch with --filter=blob:none (measured 84s -> 14s and 277 MB -> 24 MB locally for the same refs). Signed-off-by: Andy Anderson <andy@clubanderson.com> * π Deflake TestSessionCreateWithSeedWaitsForRunning (#18632) The test returned once the instruction was typed, while the queue worker and seed delivery were still writing (touch, audit, inbox routing). TempDir cleanup then raced those writes (directory not empty). Wait for the audit and for the queue worker to exit before the test ends. Fixes #18545 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π release: v5.293.0 Automated release commit. Compiles changelog.d/ fragments and moves the CHANGELOG.md Unreleased section into a dated v5.293.0 entry. See src/docs/releases.md. Signed-off-by: hive-release-bot <actions@github.com> * β¨ Owner-only Send to <profile> on model-owned stage-tracker rows (#18576) * β¨ Owner-only Send to <profile> on model-owned stage-tracker rows A row of a model-bound repository whose state the model hands to an agent profile offers the owner Send to <profile> in its menu, backed by the owner-only POST /api/workflows/dispatch: the item is read fresh, the agent resolved (a profile disabled for automatic dispatch still resolves), the issue claimed first and the agent kicked; the hand-off is recorded once the kick lands so the automatic pass does not repeat it. Audited workflow_dispatch; openapi and api-reference updated. Part of the drafter hand-off for cncf/techdocs#395. Signed-off-by: Andy Anderson <andy@clubanderson.com> * π Register the kicked agent in the dispatch endpoint test runtime Signed-off-by: Andy Anderson <andy@clubanderson.com> --------- Signed-off-by: Andy Anderson <andy@clubanderson.com> * π docs: Betty on Zoom without a Zoom app, options and recommendation (#18602) Record the #18596 comparison as a design page: phone dial-in, a desktop companion that streams the user's own call audio, and Zoom's RTMP live stream, each against the free-account, bot-rule, consent and cost constraints. Recommends the desktop companion (macOS first) and records its proposed streaming contract, per-user companion token, distribution plan and prototype PR set. Indexed in docs/design/README.md and linked from meetings.md, which now notes that Zoom refuses web-client bots. Hive-Run: #18596 Hive-Plan: 18596 recommendation and prototype PR set Hive-Spec: #18596#recommendation Signed-off-by: Karibhou <157208370+Karibhou@users.noreply.github.com> Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com> * π hub: converge cluster host_aliases on every hosted spoke, push-reported clusters included (#18639) The host_aliases reconcile sweep (#17805) patches Deployments over kubectl, but vllm-d and a-ks-wec2 are push-reported (pull_only) clusters the hub cannot reach, so the sweep skipped every hive there silently. Only spokes rendered from the template after #17805 carried the aliases. The hub now sends the SaaS record cluster's host_aliases on every heartbeat response and the spoke converges its own Deployment with a JSON patch (exact for the managed hostnames, unrelated aliases kept, throttled to one check per 15 minutes). The hub sweep reports push-reported clusters and WARNs on unreadable or unreachable Deployments instead of logging at Debug. Fixes #18637 Signed-off-by: Andy Anderson <andy@clubanderson.com> * β¨ meetings: desktop companion meetings (/api/companion/*) (#18611) * β¨ meetings: desktop companion meetings (/api/companion/*) A companion meeting is fed by the desktop companion: a person's own meeting client audio (call) and microphone (mic), captured on their computer after a versioned consent confirmation, relayed as 16 kHz PCM to Quorum's companion platform (quorum 0.3.0). Betty's replies go to the companion window through Quorum's outbox. Owner or read-write; a companion meeting is usable only by its starter (or an owner). Refs #18596 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π docs: rewrite api-reference citations shifted by the companion routes Signed-off-by: Andy Anderson <andy@clubanderson.com> * π meetings: companion handlers use the logging meetingsError (#18600) Signed-off-by: Andy Anderson <andy@clubanderson.com> --------- Signed-off-by: Andy Anderson <andy@clubanderson.com> Co-authored-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> * π± deps: quorum v0.3.0 (desktop companion platform) (#18622) quorum.mjs sha256 from the v0.3.0 release's quorum.mjs.sha256; davey stays 0.1.12 (quorum's package-lock.json). Refs #18596 Signed-off-by: Andy Anderson <andy@clubanderson.com> * β¨ Betty: parallel answers with attribution, sources and timings, voice queue, delete finished meetings, quiet Spektacular restarts (#18635) * π Meetings: don't restart-loop the Spektacular stream child when live mode isn't available The pinned spektacular (0.31.0) has no `meeting` command (hivecommons/spektacular#126 is unreleased), so every live meeting child printed cobra's unknown-command envelope and exited 1. The stream restarted it five times per meeting, each restart a WARN, which the slog feed self-reported as unclassified_error_repeated (#18630), and the session warned once per transcript line it could not forward. - spektacular.Stream gains an optional Probe (`meeting --help`), run once per installed binary; an unknown command marks the stream Unsupported: no child is started or restarted, one INFO line per binary. A child whose own exit output says unknown command is not restarted either. - Restart lines are WARN at most once per BackoffMax window (INFO otherwise) and map to a new log-fed class spek_stream_unavailable. - The live session treats an unsupported Spek as off from the start (panel status unchanged), stops forwarding once Spek is gone, and warns about a failed forward only on the transition to paused. Fixes #18630 Signed-off-by: Andy Anderson <andy@clubanderson.com> * β¨ Meetings: delete finished meetings and stale join requests Owner-only DELETE /api/meetings/{id} for meetings in a final state and pending join requests (declined, then removed); 409 while hive is still in the meeting. Removes the record, transcript and live state, erases the meeting in Vexa with Quorum meeting.delete (best effort, surfaced as upstream_error) and drops the Calendar entry that existed only for it. POST /api/meetings/clear-finished deletes all finished meetings older than now; DELETE /api/meetings/schedule/{eid} deletes a past Calendar entry with its meetings. Knowledge facts and drafts are not touched. Audited as meeting_delete / meeting_schedule_delete. UI: π Delete on finished and join-request rows, Clear finished, and π Delete on past Calendar entries, all behind the in-page confirm. Signed-off-by: Andy Anderson <andy@clubanderson.com> * π Meetings delete: use s.meetingsError after the v5 merge (#18600) Signed-off-by: Andy Anderson <andy@clubanderson.com> * π Meetings delete: clear consent tries and load the delete helpers in the role-race test Carries the fixes from #18615's v5 merge: Delete also forgets the consent attempt count, and the meetings/calendar role-race harness extracts meetingsFinished, meetingsCanDelete, meetingsDeleteButtonHtml, calendarCanDelete and their constants. Signed-off-by: Andy Anderson <andy@clubanderson.com> * β¨ Betty runs several model calls per meeting at once A meeting may now have up to meetings.llm.per_meeting_in_flight (default 3, never above max_in_flight) model calls in flight, so a second request no longer waits for the first answer. A per-meeting Gate bounds the calls and reserves each in-flight call's expected cost against the token budget, so concurrent calls cannot all pass the check on the same ledger total. On a warm CLI backend the meeting keeps a pool of warm CLIs (one turn per process, since stream results carry no request id) that grows only when calls overlap. Part of #18590. Signed-off-by: Andy Anderson <andy@clubanderson.com> * π± Show meetings.llm.per_meeting_in_flight in the meetings settings The Settings parity guard needs every hive.yaml leaf referenced by the Settings UI; the meetings settings' effective values now include it. Part of #18590. Signed-off-by: Andy Anderson <andy@clubanderson.com> * β¨ Betty names who and what each answer is for when requests overlap With more than one request in flight, other lines said since the request, or an answer later than 8 s, each answer opens with the asker's display name (first name when spoken, never an @mention) and a short topic phrase: the model's new "topic" label, else the request's own words. Two or more requests in hand post one queue note per minute (chat, rate limited, not charged), and spoken acks name their asker when others are waiting. Part of #18590. Signed-off-by: Andy Anderson <andy@clubanderson.com> * β¨ Betty speaks ready answers shortest first and moves a long voice queue to chat Quorum's say queues clips and plays them in order, so hive keeps an estimate of the queued speech. Spoken answers ready in the same loop turn are said back to back, shortest first; one that would wait behind more than 20 s goes to chat with one spoken "I've put the rest in chat"; an ack behind more than 8 s of speech is skipped. Answers to addressed requests may take meetings.chat_answer_burst (3) extra chat posts a minute past the chat rate. Part of #18590. Signed-off-by: Andy Anderson <andy@clubanderson.com> * π± Show meetings.chat_answer_burst in the meetings settings Part of #18590. Signed-off-by: Andy Anderson <andy@clubanderson.com> * β¨ Betty times every answer stage and answers live-state questions without waiting for search Each answer carries heard, retrieval, model and answer-ready timings with its source and budget (4 s for the hive's live state, 8 s otherwise); the live session adds delivery and say times and keeps the last 20 with a latency summary in the live state served by the meeting detail API. Gather stops waiting once the hive status retriever answers. Part of #18590. Signed-off-by: Andy Anderson <andy@clubanderson.com> * β¨ Betty cites the sources of chat answers and says when she is not sure Chat answers end with up to two sources the model reported using (web link, work item id, knowledge fact, code map or hive live status); the prompt asks for issue and PR numbers and forbids guessing; a low-confidence addressed answer not from the live state is hedged. Part of #18590. Signed-off-by: Andy Anderson <andy@clubanderson.com> * π Refresh meetings API doc citations for the combined Betty changes Signed-off-by: Andy Anderson <andy@clubanderson.com> * π Betty attribution tests expect the source a chat answer now cites With #18631's citations combined, an attributed chat answer ends with its source, so the attribution tests compare against that full text. Signed-off-by: Andy Anderson <andy@clubanderson.com> --------- Signed-off-by: Andy Anderson <andy@clubanderson.com> * β¨ Sessions: per-session git worktrees with a locked shared git config (#18638) * β¨ Sessions: per-session git worktrees with a locked shared git config Each Sessions pane opens in its own git worktree of the hive's one shared clone, on branch hive-session/<id>, so each session has its own Spektacular workflow state, checked-out branch and uncommitted work (#18588). The shared clone's git config and hooks are locked: root rewrites .git/config from scratch (no git as root) as root:<gid> 0644 with extensions.worktreeConfig, empties hooks/, info/ and modules/ into root 0755 dirs, places root-owned config.worktree and commondir placeholders, keeps objects/refs/logs group-writable, and makes .git, worktrees/ and the clone 3770. It runs before any worktree of a clone is handed out and once per clone at boot. A session's worktree entry is created with no group write; panes get no safe.directory, so git refuses a swapped .git. The hive's own git always passes -c core.hooksPath=/dev/null -c core.fsmonitor=false. Existence checks run in the add/remove scripts as the session uid (the hive runs as dev, outside the sessions group): a resume is a no-op, a missing clone is reported, a worktree whose .git is not the session's own is refused. Removal auto-saves uncommitted work on the session branch first. The worktree sweep does not run while the sessions store failed to load or an unreadable copy is set aside. Builds on the design in #18613 by Karibhou. Fixes #18588 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π± Sessions: split worktree code into its own file, re-pin API citations Moves the worktree scripts and functions out of usersession_workspace.go (over the 800-line crux limit) into usersession_worktree.go, updates the add-count test (the add script runs on every start, as the session uid), and re-pins the sessions API citations with check-docs-citations.py --fix. Signed-off-by: Andy Anderson <andy@clubanderson.com> Co-authored-by: Danathar <6772335+Danathar@users.noreply.github.com> * π fix: wait for seed queue before test cleanup (#18641) * π fix: wait for seed queue before test cleanup Wait for the seed queue worker to finish its session store writes before temporary directory cleanup. Hive-Run: #18454 Hive-Plan: dashboard-seed-cleanup Hive-Spec: issue-18454#dashboard-test-cleanup Signed-off-by: Karibhou <157208370+Karibhou@users.noreply.github.com> * fix: wait for all seed test queue workers Signed-off-by: Karibhou <157208370+Karibhou@users.noreply.github.com> * test: share pending seed cleanup Signed-off-by: Karibhou <157208370+Karibhou@users.noreply.github.com> * β¨ meetings: per-user desktop companion tokens and hub passthrough (#18643) Each owner or read-write user mints a companion token on /companion/token (shown once, SHA-256 stored, one per user). authenticate admits it only on /api/companion/info and /api/companion/meetings/*, as the minting user at their live role (refused below read-write). The hub waves those routes through to the spoke, which does the check; the token page stays gated. Refs #18596 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π release: v5.294.0 Automated release commit. Compiles changelog.d/ fragments and moves the CHANGELOG.md Unreleased section into a dated v5.294.0 entry. See src/docs/releases.md. Signed-off-by: hive-release-bot <actions@github.com> * π± images: bump omp 18.20.0 -> 18.22.0 (#18647) Automated pin bump (#8419). Digests recomputed from the downloaded release artifacts by src/scripts/cli-pin-bump.sh: VERSION=18.22.0 SHA256_AMD64=f706b27ba845834d8f8360705a2e9ba1534f3593fa24411d41358272de33642b SHA256_ARM64=7238dd213d5c61bc9bf51735d552bc71901fdd44329f862b0a971146b1cdac3e Signed-off-by: hive-release[bot] <hive-release@hive.kubestellar.io> Signed-off-by: clubanderson <407614+clubanderson@users.noreply.github.com> * π± images: bump claude 2.1.325 -> 2.1.326 (#18648) Automated pin bump (#8419). Digests recomputed from the downloaded release artifacts by src/scripts/cli-pin-bump.sh: VERSION=2.1.326 Signed-off-by: hive-release[bot] <hive-release@hive.kubestellar.io> Signed-off-by: clubanderson <407614+clubanderson@users.noreply.github.com> * π± ci: size overlayfs-exec-guard timeout for the cold whisper-cache path (#18604) The guard was cancelled at its 10-minute timeout whenever the whisper-linux-amd64 gha cache missed. The repo's Actions cache runs at 12-23 GB against a 10 GB cap, so LRU eviction regularly drops the whisper-builder blobs; the hosted 4-vCPU runner then compiles FFmpeg and whisper.cpp from source (~8.5 min serial chain) and the job needs ~13 min. Warm runs measure 6.5-8 min and are unaffected. Raise the timeout to 20 min (cold path plus ~50% headroom) and skip the buildx post-step teardown on the ephemeral runner (16-36s per run). Regenerated the integration workflows from v2-ci.yml. Signed-off-by: Andy Anderson <andy@clubanderson.com> * π Isolate restart kick test tmux sessions (#18650) Avoid collisions with delayed tmux operations from shuffled tests and drain the readiness helper before session teardown. Hive-Run: #18626 Hive-Plan: restart-kick-flake Hive-Spec: restart-kick#readiness Signed-off-by: Karibhou <Karibhou@users.noreply.github.com> * π release: v5.295.0 Automated release commit. Compiles changelog.d/ fragments and moves the CHANGELOG.md Unreleased section into a dated v5.295.0 entry. See src/docs/releases.md. Signed-off-by: hive-release-bot <actions@github.com> * β¨ feat: range attribution core for post-merge runs (#18653) * β¨ feat: range attribution core for post-merge runs Pure, GitHub/Tekton-agnostic AttributeRuns in workflowmodel: attributes post-merge runs per pipeline/environment to merged PRs by range prev..R, first success wins, failure holds until a later success covers it, and undeterminable revisions or ranges stay unknown with a recorded reason. Part of #18356. Closes #18644. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> * changelog: fragment for #18653 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: hivecommons-hive[bot] <280983584+hivecommons-hive[bot]@users.noreply.github.com> * π release: v5.296.0 Automated release commit. Compiles changelog.d/ fragments and moves the CHANGELOG.md Unreleased section into a dated v5.296.0 entry. See src/docs/releases.md. Signed-off-by: hive-release-bot <actions@github.com> * β¨ feat: Tekton PipelineRun post-merge observer (#18655) * [scanner] fix: Tekton PipelineRun post-merge observer (#18646) Add an explicit tektonRuns config on Tekton pipelines (kube context or in-cluster, namespace, label selector, optional revision annotation/param names) and an observer that lists PipelineRuns, reads each run's revision (pipelinesascode.tekton.dev/sha annotation, then the revision param) and conclusion, and feeds them through workflowmodel.AttributeRuns. A run whose revision is not a full commit SHA keeps an empty revision with the reason recorded, so attribution leaves the column unknown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> * [scanner] test: cover tekton observer error paths for the coverage floor Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> * docs: say the Tekton observer is not wired into the stage engine yet Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> * β¨ feat: GitHub Actions post-merge run observer for pipeline.status (#18656) * [scanner] fix: GitHub Actions post-merge run observer feeding pipeline.status Observe default-branch push runs (Main CI, exact merge SHA when the range cannot decide), release and deploy workflow runs of the workflows an ingested model binds, attribute them to merged PRs through workflowmodel.AttributeRuns and carry the result in PRFacts.PostMerge so pipeline.status reports green/red/running instead of always unknown. Never guess: pull-request and merge-queue runs never count, a deploy run without its environment credits none of the bound environments, and an undeterminable revision or range stays unknown with the reason recorded. Closes #18645 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> * docs: say the Actions observer is not wired into the sweep yet Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> * [scanner] fix: wire post-merge observers into pipeline.status facts (#18662) The workflow simulate's merged-PR fill now calls the GitHub Actions post-merge observer (ObservePostMergeRuns) with the PR's merge commit and default branch, so pipeline.status reflects observed runs instead of always being unknown. Refs #18356. 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> * π release: v5.297.0 Automated release commit. Compiles changelog.d/ fragments and moves the CHANGELOG.md Unreleased section into a dated v5.297.0 entry. See src/docs/releases.md. Signed-off-by: hive-release-bot <actions@github.com> * π release: v5.298.0 Automated release commit. Compiles changelog.d/ fragments and moves the CHANGELOG.md Unreleased section into a dated v5.298.0 entry. See src/docs/releases.md. Signed-off-by: hive-release-bot <actions@github.com> * [scanner] fix: stop retrying closing-issue link on GitHub manual reference limit (#18668) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> * π release: v5.298.1 Automated release commit. Compiles changelog.d/ fragments and moves the CHANGELOG.md Unreleased section into a dated v5.298.1 entry. See src/docs/releases.md. Signed-off-by: hive-release-bot <actions@github.com> * π± ci: move whisper-builder cache to GHCR registry, stop wasted gha exports (#18674) The repo's Actions cache is over the 10 GB cap, so LRU eviction kept dropping the whisper-builder blobs and builds recompiled whisper.cpp and FFmpeg (slow for arm64 under QEMU). - whisper-builder warm step: cache-from/cache-to a dedicated GHCR registry cache (hive-buildcache:whisper-<arch>), exported only by push builds. Same-repo PR builds log in and read it only; fork PRs never run the job. - hub and mx builds: drop the gha cache. Both stages of each Dockerfile are in no-cache-filters, so the mode=max export could never be hit. - contributor build: export the gha cache only on push builds, so PR refs stop adding entries that only that PR can see. - overlayfs-exec-guard (v2-ci and its generated copies): read whisper layers from the registry cache instead of the gha scope that is no longer written. Signed-off-by: Andy Anderson <andy@clubanderson.com> * π Keep Copilot config.json linked to the shared login after the CLI's own save (#18673) The Copilot CLI's atomic save replaces the per-agent config.json symlink seconds after launch, so a later dashboard login never reached running agents. The pane poller now relinks within one poll interval, merging CLI-written non-credential fields into the shared file first (shared login wins), serialized against the hive's token writers. The #18445 guard for a private copy holding the only login is kept. Fixes #18671 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π ci: materialize warmed tmux/whisper stages so the main image build reuses them (#18687) Measured on v5 after #18674: the whisper-builder warm step hit the GHCR registry cache (all layers CACHED in about a second), but the main build step then recompiled FFmpeg and whisper.cpp. Earlier runs show the same for tmux and for the old gha whisper scope: a warm-step cache hit with no output leaves nothing in the builder's local cache, and the main build was only served when the warm step had missed and compiled locally. Export each warmed stage to /dev/null so its layers are pulled and recorded in the local builder cache before the main build runs. Signed-off-by: Andy Anderson <andy@clubanderson.com> * π Document kick refusals and link the docs from the dashboard (#18695) Fixes #18692 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π release: v5.298.2 Automated release commit. Compiles changelog.d/ fragments and moves the CHANGELOG.md Unreleased section into a dated v5.298.2 entry. See src/docs/releases.md. Signed-off-by: hive-release-bot <actions@github.com> * DCO Remediation Commit for Andy Anderson <andy@clubanderson.com> I, Andy Anderson <andy@clubanderson.com>, hereby add my Signed-off-by to this commit: f444b4f I, Andy Anderson <andy@clubanderson.com>, hereby add my Signed-off-by to this commit: 3d8d438 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π Workflow dispatch: start on a standard hive and show a profile no agent fills (#18691) * π Workflow dispatch: fall back to the hive's issue worker or reviewer, and show a profile nothing fills A bound workflow model hands some states to an agent profile, but the resolver only accepted a pinned agent, an agent named after the profile, or a writer, docs or feature agent. A standard roster has none of those, so the drafter never started and nothing in the dashboard said why. - config.ResolveWorkflowDispatch ends with a last resort: the issue worker (scanner role, classify.DefaultLane) for a profile that opens a pull request, the reviewer for one that reviews, in both cases only an agent that serves the bound repository. No other role is picked. - GET /api/workflows lists each bound profile's agent or the reason there is none; the Settings -> Repos workflow row warns and offers a picker that saves workflow.dispatch.profiles.<profile>.agent through PUT /api/workflows/dispatch/profiles. - The stage tracker carries the reason onto the item's row, and the manual send answers with it and where to fix it. Fixes #18690 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π Document the profile pin route in the OpenAPI spec; keep the gap badge rule out of the sentinel CSS block Fixes #18690 Signed-off-by: Andy Anderson <andy@clubanderson.com> * Third-Party DCO Remediation Commit for hivecommons-hive[bot] <280983584+hivecommons-hive[bot]@users.noreply.github.com> On behalf of hivecommons-hive[bot] <280983584+hivecommons-hive[bot]@users.noreply.github.com>, I, Andy Anderson <andy@clubanderson.com>, hereby add my Signed-off-by to this commit: 0b8ad82 On behalf of hivecommons-hive[bot] <280983584+hivecommons-hive[bot]@users.noreply.github.com>, I, Andy Anderson <andy@clubanderson.com>, hereby add my Signed-off-by to this commit: 02d2850 Their squash commits carry a Signed-off-by for a different identity than the author. Signed-off-by: Andy Anderson <andy@clubanderson.com> * Third-Party DCO Remediation Commit for Andy Anderson <andy@clubanderson.com> On behalf of Andy Anderson <andy@clubanderson.com>, I, Andy Anderson <andy@clubanderson.com>, hereby add my Signed-off-by to this commit: f444b4f On behalf of Andy Anderson <andy@clubanderson.com>, I, Andy Anderson <andy@clubanderson.com>, hereby add my Signed-off-by to this commit: 3d8d438 Their Signed-off-by lines name the release bot rather than the author address. Signed-off-by: Andy Anderson <andy@clubanderson.com> * DCO Remediation Commit for Andy Anderson <andy@clubanderson.com> I, Andy Anderson <andy@clubanderson.com>, hereby add my Signed-off-by to this commit: f444b4f Signed-off-by: Andy Anderson <andy@clubanderson.com> * DCO Remediation Commit for Andy Anderson <andy@clubanderson.com> I, Andy Anderson <andy@clubanderson.com>, hereby add my Signed-off-by to this commit: 3d8d438 Signed-off-by: Andy Anderson <andy@clubanderson.com> * π± ci: let the DCO app honour an author's own remediation commit (#18703) * π± ci: let the DCO app honour an author's own remediation commit Adds .github/dco.yml with allowRemediationCommits.individual: true so an author can vouch for their own earlier commits whose author email had no matching Signed-off-by, which is what blocks v5 -> v6 top-ups that carry image-bump commits (#18697). Third-party remediation stays off. Signed-off-by: Andy Anderson <andy@clubanderson.com> * changelog: fragment for #18703 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: clubanderson <407614+clubanderson@users.noreply.github.com> * π± changelog: make the dco.yml fragment a single entry bullet The fragment is the entry itself and must start with '- '; the compiler owns the headings. Drop the duplicate fragment the changelog bot added for #18703. Signed-off-by: Andy Anderson <andy@clubanderson.com> --------- Signed-off-by: Andy Anderson <andy@clubanderson.com> Signed-off-by: clubanderson <407614+clubanderson@users.noreply.github.com> Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Signed-off-by: Andy Anderson <andy@clubanderson.com> Signed-off-by: Karibhou <157208370+Karibhou@users.noreply.github.com> Signed-off-by: hive-release-bot <actions@github.com> Signed-off-by: hive-release[bot] <hive-release@hive.kubestellar.io> Signed-off-by: clubanderson <407614+clubanderson@users.noreply.github.com> Signed-off-by: Karibhou <Karibhou@users.noreply.github.com> Signed-off-by: hivecommons-hive[bot] <280983584+hivecommons-hive[bot]@users.noreply.github.com> Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> Co-authored-by: Karibhou <157208370+Karibhou@users.noreply.github.com> Co-authored-by: hive-release-bot <actions@github.com> Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com> Co-authored-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> Co-authored-by: Danathar <6772335+Danathar@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* π meetings: log every failed meetings call and keep a failed approval's reason (#18600)
* π meetings: log every failed meetings call and keep a failed approval's reason
A Quorum refusal of a Discord join (blocked: no permission to connect)
was answered as 502 with no log line, and the hosted ingress replaced the
body with its generic page, so the owner saw 'hive unavailable' and the
spoke log said nothing. Every meetings call failure is now logged with
method, path, status and error (Warn for 5xx, Info for caller mistakes),
and ApproveRequest records the failure reason on the still-open request.
Refs #18598
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π meetings: a blocked Discord join names the bot's permissions, and a failed approval shows on the request
The panel read every blocked meeting as 'The meeting refused a guest bot',
which is a Meet/Teams lobby refusal; on Discord blocked means the bot's
role lacks View Channel, Connect or Speak on the voice channel. The join
request row now also renders the reason a failed approval saved.
Refs #18598
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π api-reference: re-point meetings route citations after the import shift
Refs #18598
Signed-off-by: Andy Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ Remote items: follow up on issues and PRs the hive opened as its App bot (#18610)
* β¨ remote items: follow up on items the hive opened as its App bot
With project.remote_write_identity a write-tier reference repo can write as
the App bot, but the own-item poller listed creator=<owner> under the
owner token only, so feedback on bot-opened issues and PRs never reached
the agent.
- remoteitems: RunTargets takes (repo, login) pairs; each repo is listed and
its feedback filtered under its own login. Run keeps its signature as a
one-login wrapper.
- github.RemoteItemsFetcher: optional TokenFor picks the read token per
repo and is authoritative when set (no fallback to the owner token).
- cmd/hive: every write-tier repo is watched under its CredentialLogin and
read with the token the proxy injects on its writes (scoped bot token,
owner token or write_token_file).
Refs #18516
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π remote items: fix the per-repo login test's use of Store.Items
Store.Items returns a slice; build the tracked set from Item.Key.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π two-lane doc: the own-item follow-up covers bot-opened items too
Signed-off-by: Andy Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π fix(ioscan): do not fleet-report an injection-withheld kick as a classifier outage (#18618)
A fail-closed kick block was always logged as "ioscan fail-closed blocked
kick", which the fleet report classes as ioscan_classifier_unavailable. But
the kick is also withheld when untrusted issue/PR text trips the injection
policy (a Critical finding or a classifier block verdict) while the
classifier is answering: the defense working as designed, not an outage.
The #18459 report carried no classifier_error, i.e. exactly that case.
warnBlockedKick now keeps the fleet-reported wording (with classifier_error
and fix) only when the classifier is failing, and otherwise logs "ioscan
fail-closed withheld kick on an injection finding", listed in
fleetreport.IsBenignMessage. The held-PR coordination path goes through the
same helper, so it now also names the classifier error on an outage.
Closes #18459
Hive-Run: hivecommons/hive#18459
Hive-Plan: selfreport-ioscan_classifier_unavailable
Hive-Spec: fleet-report#ioscan_classifier_unavailable
Signed-off-by: Karibhou <157208370+Karibhou@users.noreply.github.com>
* π± ci: fetch only the histories the squash-attribution check reads (#18609)
`fetch-depth: 0` makes actions/checkout fetch every branch and tag. That
took 17-35s normally and on #18482 (run 43960382195) hung for the whole
5-minute job budget, failing the required "Sign-off survives the squash"
context before the check ran.
Check out the head shallowly, then fetch the head, base and default-branch
histories in full (unshallow), with a 60s per-attempt stall timeout and
three attempts. Picks up the fix a contributor reverted out of #18482 as
unrelated to that PR, plus the stall retry and post-fetch assertions.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ Hand workflow-model states to their agent profiles (claim first, dispatch once) (#18571)
* β¨ Hand workflow-model states to their agent profiles
The eval cycle now reads the bound model: an item whose state the model
hands to a profile (TechDocs Accepted -> techdocs-drafter, Drafting on
/verify -> techdocs-verifier) is withheld from every generic lane, claimed
for the agent that fills the profile on the issue-claims ledger, and kicked
once. The hand-off key (item, profile, state, triggering comment) is
written to workflow-dispatch.json on delivery, so neither a later cycle
nor a restart repeats it; a failed or deferred kick is retried.
Part of the drafter hand-off for cncf/techdocs#395.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π List a bound repository's drafts at most every five minutes
Signed-off-by: Andy Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Betty closes the loop on deep dives; research agents survive config reloads (#18592)
* π Betty closes the loop on deep dives; research agents survive reconciles
research-1..N are added to the runtime only (not hive.yaml), and
ReconcileAgents (config reload, reviewer autoscale) removes every agent
not in the enabled config set, so the pool was emptied shortly after boot
and each meeting research request failed with "no research agent
available" while nothing was said in the meeting.
- cmd/hive: the reconcile set carries the research pool's agents.
- research.Pool: a dispatch that finds no agent re-registers them once;
ErrNoAgents carries a sayable Reason; Status() for the settings page.
- live: a persona deep dive that cannot start, errors, or runs past
5 minutes is answered with "I couldn't look that up: <reason>." in
the channel it was asked in; one progress note after 30 s; a spoken
question's follow-up is spoken.
- Settings, Meeting attendee: Research section with agents, availability
and a "No research agent available" warning.
Part of hivecommons/hive#18590
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π tests: set agents through AgentRuntimeConfig
Part of hivecommons/hive#18590
Signed-off-by: Andy Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ Review follow-ups, trust-only 090 and issue pr-link notes become status-card sections (quiet mode) (#18616)
* β¨ Review follow-ups, trust-only 090 and issue pr-link notes become status-card sections (quiet mode)
In github.notifications.mode: quiet the review Follow-ups checklist is the
collapsible review-followups section of the PR's hive:status card (ticks
kept via the new prstatus.WriteFunc), a 090 ready-for-human-merge entry
whose only objection is the author's trust tier is the stage-ready line,
and the issue-side PR-link stage note is the issue card's issue-pr-link
section. Every 085 and a held or manual-merge 090 still post a comment.
Fixes #18606
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π status-card follow-ups use their own marker; tests expect neutralised mentions
The card section carried the legacy Follow-ups comment marker, so the next
pass read the card as the legacy comment and EditIssueMarkerComment
rewrote the whole card. Stamp the section with
<!-- hive:review-followups-card --> and skip status comments in the legacy
check. The 090 card line goes through prstatus.Write, which neutralises
'@sha' to a code span; the test now expects that.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π± ci: no mutation comment on error verdicts; no reopen hint for bot or maintainer reporters (#18617)
* π± ci: no mutation comment for an error verdict; no reopen hint for bot or maintainer reporters
mutation-report.sh post no longer creates a <!-- hive-mutation --> comment
for an 'error' verdict (no report, nothing to act on): the report stays in
the job summary and the failing verdict step, and an earlier finding comment
is edited so it is not stale. issue-closed-reopen-hint.yml skips issues
whose reporter is a bot or OWNER/MEMBER/COLLABORATOR. pr-overlap.sh already
posts only when a sibling PR overlaps (#17870); unchanged.
Fixes #18607
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π± changelog fragment for #18607
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π± re-pin TRUSTED_SCRIPTS_TREE for the mutation-report.sh change
Signed-off-by: Andy Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Meetings: keep nothing from before the consent notice is delivered (#18621)
Until the consent notice is delivered (consent_posted_at), every
transcript segment, draft and chat line is discarded in the manager:
not stored and not emitted to listeners (Betty, Spektacular, research,
facts, Inbox hand-off). Only a pre_consent_dropped count is kept. A
leave phrase is still honoured and the line itself is not kept.
Lines that arrive after the notice but belong before it are dropped
too: seq at or below Quorum's transcript cursor when the notice landed
(consent_seq), chat stamped earlier, and for two minutes segments that
began before the last speech heard while pending (consent_speech_end).
A reconnect or restart while pending asks Quorum for no replay, and
dropped lines advance the replay cursor.
Refs #18590
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π fix: stop open-PR guard label retry storms and classify the failure (#18624)
The has-open-pr label write shared the caller's 15s deadline with the
open-PR listing ahead of it, so a slow listing of a large repo left it a
spent context. The write failed with context deadline exceeded, the issue
never got the label, and every later claim pass retried it and warned
again, which filed an unclassified_error_repeated self-report.
- give the label write its own 10s budget, detached from the caller
- remember a failed write per issue: 15m after a transient failure, 6h
after a refusal (403/404/410/422), and log refusals at INFO
- add the open_pr_guard_label_failed fleet-report class for the
remaining repeated WARNs
Fixes #18589
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π± ci: blobless history fetch for the squash-attribution check (#18634)
#18609's unshallow step fetched full blob history and measured 38-42s on
the self-hosted pool, slower than the all-refs checkout it replaced. The
checker reads only commits and trees, so fetch with --filter=blob:none
(measured 84s -> 14s and 277 MB -> 24 MB locally for the same refs).
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Deflake TestSessionCreateWithSeedWaitsForRunning (#18632)
The test returned once the instruction was typed, while the queue worker
and seed delivery were still writing (touch, audit, inbox routing). TempDir
cleanup then raced those writes (directory not empty). Wait for the audit
and for the queue worker to exit before the test ends.
Fixes #18545
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π release: v5.293.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.293.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* β¨ Owner-only Send to <profile> on model-owned stage-tracker rows (#18576)
* β¨ Owner-only Send to <profile> on model-owned stage-tracker rows
A row of a model-bound repository whose state the model hands to an agent
profile offers the owner Send to <profile> in its menu, backed by the
owner-only POST /api/workflows/dispatch: the item is read fresh, the
agent resolved (a profile disabled for automatic dispatch still
resolves), the issue claimed first and the agent kicked; the hand-off is
recorded once the kick lands so the automatic pass does not repeat it.
Audited workflow_dispatch; openapi and api-reference updated.
Part of the drafter hand-off for cncf/techdocs#395.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Register the kicked agent in the dispatch endpoint test runtime
Signed-off-by: Andy Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π docs: Betty on Zoom without a Zoom app, options and recommendation (#18602)
Record the #18596 comparison as a design page: phone dial-in, a desktop
companion that streams the user's own call audio, and Zoom's RTMP live
stream, each against the free-account, bot-rule, consent and cost
constraints. Recommends the desktop companion (macOS first) and records
its proposed streaming contract, per-user companion token, distribution
plan and prototype PR set. Indexed in docs/design/README.md and linked
from meetings.md, which now notes that Zoom refuses web-client bots.
Hive-Run: hivecommons/hive#18596
Hive-Plan: 18596 recommendation and prototype PR set
Hive-Spec: hivecommons/hive#18596#recommendation
Signed-off-by: Karibhou <157208370+Karibhou@users.noreply.github.com>
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
* π hub: converge cluster host_aliases on every hosted spoke, push-reported clusters included (#18639)
The host_aliases reconcile sweep (#17805) patches Deployments over kubectl,
but vllm-d and a-ks-wec2 are push-reported (pull_only) clusters the hub
cannot reach, so the sweep skipped every hive there silently. Only spokes
rendered from the template after #17805 carried the aliases.
The hub now sends the SaaS record cluster's host_aliases on every heartbeat
response and the spoke converges its own Deployment with a JSON patch
(exact for the managed hostnames, unrelated aliases kept, throttled to one
check per 15 minutes). The hub sweep reports push-reported clusters and
WARNs on unreadable or unreachable Deployments instead of logging at Debug.
Fixes #18637
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ meetings: desktop companion meetings (/api/companion/*) (#18611)
* β¨ meetings: desktop companion meetings (/api/companion/*)
A companion meeting is fed by the desktop companion: a person's own meeting
client audio (call) and microphone (mic), captured on their computer after a
versioned consent confirmation, relayed as 16 kHz PCM to Quorum's companion
platform (quorum 0.3.0). Betty's replies go to the companion window through
Quorum's outbox. Owner or read-write; a companion meeting is usable only by
its starter (or an owner).
Refs #18596
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π docs: rewrite api-reference citations shifted by the companion routes
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π meetings: companion handlers use the logging meetingsError (#18600)
Signed-off-by: Andy Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andy Anderson <andy@clubanderson.com>
Co-authored-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π± deps: quorum v0.3.0 (desktop companion platform) (#18622)
quorum.mjs sha256 from the v0.3.0 release's quorum.mjs.sha256; davey stays
0.1.12 (quorum's package-lock.json).
Refs #18596
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ Betty: parallel answers with attribution, sources and timings, voice queue, delete finished meetings, quiet Spektacular restarts (#18635)
* π Meetings: don't restart-loop the Spektacular stream child when live mode isn't available
The pinned spektacular (0.31.0) has no `meeting` command
(hivecommons/spektacular#126 is unreleased), so every live meeting child
printed cobra's unknown-command envelope and exited 1. The stream
restarted it five times per meeting, each restart a WARN, which the
slog feed self-reported as unclassified_error_repeated (#18630), and the
session warned once per transcript line it could not forward.
- spektacular.Stream gains an optional Probe (`meeting --help`), run
once per installed binary; an unknown command marks the stream
Unsupported: no child is started or restarted, one INFO line per
binary. A child whose own exit output says unknown command is not
restarted either.
- Restart lines are WARN at most once per BackoffMax window (INFO
otherwise) and map to a new log-fed class spek_stream_unavailable.
- The live session treats an unsupported Spek as off from the start
(panel status unchanged), stops forwarding once Spek is gone, and warns
about a failed forward only on the transition to paused.
Fixes #18630
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ Meetings: delete finished meetings and stale join requests
Owner-only DELETE /api/meetings/{id} for meetings in a final state and
pending join requests (declined, then removed); 409 while hive is still
in the meeting. Removes the record, transcript and live state, erases
the meeting in Vexa with Quorum meeting.delete (best effort, surfaced as
upstream_error) and drops the Calendar entry that existed only for it.
POST /api/meetings/clear-finished deletes all finished meetings older
than now; DELETE /api/meetings/schedule/{eid} deletes a past Calendar
entry with its meetings. Knowledge facts and drafts are not touched.
Audited as meeting_delete / meeting_schedule_delete.
UI: π Delete on finished and join-request rows, Clear finished, and
π Delete on past Calendar entries, all behind the in-page confirm.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Meetings delete: use s.meetingsError after the v5 merge (#18600)
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Meetings delete: clear consent tries and load the delete helpers in the role-race test
Carries the fixes from #18615's v5 merge: Delete also forgets the
consent attempt count, and the meetings/calendar role-race harness
extracts meetingsFinished, meetingsCanDelete, meetingsDeleteButtonHtml,
calendarCanDelete and their constants.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ Betty runs several model calls per meeting at once
A meeting may now have up to meetings.llm.per_meeting_in_flight (default
3, never above max_in_flight) model calls in flight, so a second request
no longer waits for the first answer. A per-meeting Gate bounds the calls
and reserves each in-flight call's expected cost against the token
budget, so concurrent calls cannot all pass the check on the same ledger
total. On a warm CLI backend the meeting keeps a pool of warm CLIs (one
turn per process, since stream results carry no request id) that grows
only when calls overlap.
Part of #18590.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π± Show meetings.llm.per_meeting_in_flight in the meetings settings
The Settings parity guard needs every hive.yaml leaf referenced by the
Settings UI; the meetings settings' effective values now include it.
Part of #18590.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ Betty names who and what each answer is for when requests overlap
With more than one request in flight, other lines said since the
request, or an answer later than 8 s, each answer opens with the asker's
display name (first name when spoken, never an @mention) and a short
topic phrase: the model's new "topic" label, else the request's own
words. Two or more requests in hand post one queue note per minute
(chat, rate limited, not charged), and spoken acks name their asker
when others are waiting.
Part of #18590.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ Betty speaks ready answers shortest first and moves a long voice queue to chat
Quorum's say queues clips and plays them in order, so hive keeps an
estimate of the queued speech. Spoken answers ready in the same loop turn
are said back to back, shortest first; one that would wait behind more
than 20 s goes to chat with one spoken "I've put the rest in chat"; an
ack behind more than 8 s of speech is skipped. Answers to addressed
requests may take meetings.chat_answer_burst (3) extra chat posts a
minute past the chat rate.
Part of #18590.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π± Show meetings.chat_answer_burst in the meetings settings
Part of #18590.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ Betty times every answer stage and answers live-state questions without waiting for search
Each answer carries heard, retrieval, model and answer-ready timings with
its source and budget (4 s for the hive's live state, 8 s otherwise); the
live session adds delivery and say times and keeps the last 20 with a
latency summary in the live state served by the meeting detail API.
Gather stops waiting once the hive status retriever answers.
Part of #18590.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ Betty cites the sources of chat answers and says when she is not sure
Chat answers end with up to two sources the model reported using (web
link, work item id, knowledge fact, code map or hive live status); the
prompt asks for issue and PR numbers and forbids guessing; a
low-confidence addressed answer not from the live state is hedged.
Part of #18590.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Refresh meetings API doc citations for the combined Betty changes
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Betty attribution tests expect the source a chat answer now cites
With #18631's citations combined, an attributed chat answer ends with its
source, so the attribution tests compare against that full text.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ Sessions: per-session git worktrees with a locked shared git config (#18638)
* β¨ Sessions: per-session git worktrees with a locked shared git config
Each Sessions pane opens in its own git worktree of the hive's one shared
clone, on branch hive-session/<id>, so each session has its own Spektacular
workflow state, checked-out branch and uncommitted work (#18588).
The shared clone's git config and hooks are locked: root rewrites
.git/config from scratch (no git as root) as root:<gid> 0644 with
extensions.worktreeConfig, empties hooks/, info/ and modules/ into root
0755 dirs, places root-owned config.worktree and commondir placeholders,
keeps objects/refs/logs group-writable, and makes .git, worktrees/ and the
clone 3770. It runs before any worktree of a clone is handed out and once
per clone at boot. A session's worktree entry is created with no group
write; panes get no safe.directory, so git refuses a swapped .git. The
hive's own git always passes -c core.hooksPath=/dev/null
-c core.fsmonitor=false.
Existence checks run in the add/remove scripts as the session uid (the hive
runs as dev, outside the sessions group): a resume is a no-op, a missing
clone is reported, a worktree whose .git is not the session's own is
refused. Removal auto-saves uncommitted work on the session branch first.
The worktree sweep does not run while the sessions store failed to load or
an unreadable copy is set aside.
Builds on the design in #18613 by Karibhou.
Fixes #18588
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π± Sessions: split worktree code into its own file, re-pin API citations
Moves the worktree scripts and functions out of usersession_workspace.go
(over the 800-line crux limit) into usersession_worktree.go, updates the
add-count test (the add script runs on every start, as the session uid),
and re-pins the sessions API citations with check-docs-citations.py --fix.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
Co-authored-by: Danathar <6772335+Danathar@users.noreply.github.com>
* π fix: wait for seed queue before test cleanup (#18641)
* π fix: wait for seed queue before test cleanup
Wait for the seed queue worker to finish its session store writes before temporary directory cleanup.
Hive-Run: hivecommons/hive#18454
Hive-Plan: dashboard-seed-cleanup
Hive-Spec: issue-18454#dashboard-test-cleanup
Signed-off-by: Karibhou <157208370+Karibhou@users.noreply.github.com>
* fix: wait for all seed test queue workers
Signed-off-by: Karibhou <157208370+Karibhou@users.noreply.github.com>
* test: share pending seed cleanup
Signed-off-by: Karibhou <157208370+Karibhou@users.noreply.github.com>
* β¨ meetings: per-user desktop companion tokens and hub passthrough (#18643)
Each owner or read-write user mints a companion token on /companion/token
(shown once, SHA-256 stored, one per user). authenticate admits it only on
/api/companion/info and /api/companion/meetings/*, as the minting user at
their live role (refused below read-write). The hub waves those routes
through to the spoke, which does the check; the token page stays gated.
Refs #18596
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π release: v5.294.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.294.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* π± images: bump omp 18.20.0 -> 18.22.0 (#18647)
Automated pin bump (#8419). Digests recomputed from the downloaded
release artifacts by src/scripts/cli-pin-bump.sh:
VERSION=18.22.0
SHA256_AMD64=f706b27ba845834d8f8360705a2e9ba1534f3593fa24411d41358272de33642b
SHA256_ARM64=7238dd213d5c61bc9bf51735d552bc71901fdd44329f862b0a971146b1cdac3e
Signed-off-by: hive-release[bot] <hive-release@hive.kubestellar.io>
Signed-off-by: clubanderson <407614+clubanderson@users.noreply.github.com>
* π± images: bump claude 2.1.325 -> 2.1.326 (#18648)
Automated pin bump (#8419). Digests recomputed from the downloaded
release artifacts by src/scripts/cli-pin-bump.sh:
VERSION=2.1.326
Signed-off-by: hive-release[bot] <hive-release@hive.kubestellar.io>
Signed-off-by: clubanderson <407614+clubanderson@users.noreply.github.com>
* π± ci: size overlayfs-exec-guard timeout for the cold whisper-cache path (#18604)
The guard was cancelled at its 10-minute timeout whenever the
whisper-linux-amd64 gha cache missed. The repo's Actions cache runs at
12-23 GB against a 10 GB cap, so LRU eviction regularly drops the
whisper-builder blobs; the hosted 4-vCPU runner then compiles FFmpeg and
whisper.cpp from source (~8.5 min serial chain) and the job needs ~13 min.
Warm runs measure 6.5-8 min and are unaffected.
Raise the timeout to 20 min (cold path plus ~50% headroom) and skip the
buildx post-step teardown on the ephemeral runner (16-36s per run).
Regenerated the integration workflows from v2-ci.yml.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Isolate restart kick test tmux sessions (#18650)
Avoid collisions with delayed tmux operations from shuffled tests and drain the readiness helper before session teardown.
Hive-Run: hivecommons/hive#18626
Hive-Plan: restart-kick-flake
Hive-Spec: restart-kick#readiness
Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>
* π release: v5.295.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.295.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* β¨ feat: range attribution core for post-merge runs (#18653)
* β¨ feat: range attribution core for post-merge runs
Pure, GitHub/Tekton-agnostic AttributeRuns in workflowmodel: attributes
post-merge runs per pipeline/environment to merged PRs by range prev..R,
first success wins, failure holds until a later success covers it, and
undeterminable revisions or ranges stay unknown with a recorded reason.
Part of #18356. Closes #18644.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* changelog: fragment for #18653
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: hivecommons-hive[bot] <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π release: v5.296.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.296.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* β¨ feat: Tekton PipelineRun post-merge observer (#18655)
* [scanner] fix: Tekton PipelineRun post-merge observer (#18646)
Add an explicit tektonRuns config on Tekton pipelines (kube context or
in-cluster, namespace, label selector, optional revision annotation/param
names) and an observer that lists PipelineRuns, reads each run's revision
(pipelinesascode.tekton.dev/sha annotation, then the revision param) and
conclusion, and feeds them through workflowmodel.AttributeRuns. A run
whose revision is not a full commit SHA keeps an empty revision with the
reason recorded, so attribution leaves the column unknown.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* [scanner] test: cover tekton observer error paths for the coverage floor
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* docs: say the Tekton observer is not wired into the stage engine yet
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* β¨ feat: GitHub Actions post-merge run observer for pipeline.status (#18656)
* [scanner] fix: GitHub Actions post-merge run observer feeding pipeline.status
Observe default-branch push runs (Main CI, exact merge SHA when the
range cannot decide), release and deploy workflow runs of the workflows
an ingested model binds, attribute them to merged PRs through
workflowmodel.AttributeRuns and carry the result in
PRFacts.PostMerge so pipeline.status reports green/red/running instead
of always unknown. Never guess: pull-request and merge-queue runs never
count, a deploy run without its environment credits none of the bound
environments, and an undeterminable revision or range stays unknown
with the reason recorded.
Closes #18645
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* docs: say the Actions observer is not wired into the sweep yet
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* [scanner] fix: wire post-merge observers into pipeline.status facts (#18662)
The workflow simulate's merged-PR fill now calls the GitHub Actions
post-merge observer (ObservePostMergeRuns) with the PR's merge commit and
default branch, so pipeline.status reflects observed runs instead of
always being unknown. Refs #18356.
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>
* π release: v5.297.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.297.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* π release: v5.298.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.298.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* [scanner] fix: stop retrying closing-issue link on GitHub manual reference limit (#18668)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
* π release: v5.298.1
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.298.1 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* π± ci: move whisper-builder cache to GHCR registry, stop wasted gha exports (#18674)
The repo's Actions cache is over the 10 GB cap, so LRU eviction kept
dropping the whisper-builder blobs and builds recompiled whisper.cpp and
FFmpeg (slow for arm64 under QEMU).
- whisper-builder warm step: cache-from/cache-to a dedicated GHCR registry
cache (hive-buildcache:whisper-<arch>), exported only by push builds.
Same-repo PR builds log in and read it only; fork PRs never run the job.
- hub and mx builds: drop the gha cache. Both stages of each Dockerfile are
in no-cache-filters, so the mode=max export could never be hit.
- contributor build: export the gha cache only on push builds, so PR refs
stop adding entries that only that PR can see.
- overlayfs-exec-guard (v2-ci and its generated copies): read whisper layers
from the registry cache instead of the gha scope that is no longer written.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Keep Copilot config.json linked to the shared login after the CLI's own save (#18673)
The Copilot CLI's atomic save replaces the per-agent config.json symlink
seconds after launch, so a later dashboard login never reached running
agents. The pane poller now relinks within one poll interval, merging
CLI-written non-credential fields into the shared file first (shared login
wins), serialized against the hive's token writers. The #18445 guard for a
private copy holding the only login is kept.
Fixes #18671
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π ci: materialize warmed tmux/whisper stages so the main image build reuses them (#18687)
Measured on v5 after #18674: the whisper-builder warm step hit the GHCR
registry cache (all layers CACHED in about a second), but the main build
step then recompiled FFmpeg and whisper.cpp. Earlier runs show the same
for tmux and for the old gha whisper scope: a warm-step cache hit with no
output leaves nothing in the builder's local cache, and the main build was
only served when the warm step had missed and compiled locally.
Export each warmed stage to /dev/null so its layers are pulled and recorded
in the local builder cache before the main build runs.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Document kick refusals and link the docs from the dashboard (#18695)
Fixes #18692
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π release: v5.298.2
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.298.2 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* π Workflow dispatch: start on a standard hive and show a profile no agent fills (#18691)
* π Workflow dispatch: fall back to the hive's issue worker or reviewer, and show a profile nothing fills
A bound workflow model hands some states to an agent profile, but the
resolver only accepted a pinned agent, an agent named after the profile,
or a writer, docs or feature agent. A standard roster has none of those,
so the drafter never started and nothing in the dashboard said why.
- config.ResolveWorkflowDispatch ends with a last resort: the issue
worker (scanner role, classify.DefaultLane) for a profile that opens a
pull request, the reviewer for one that reviews, in both cases only an
agent that serves the bound repository. No other role is picked.
- GET /api/workflows lists each bound profile's agent or the reason
there is none; the Settings -> Repos workflow row warns and offers a
picker that saves workflow.dispatch.profiles.<profile>.agent through
PUT /api/workflows/dispatch/profiles.
- The stage tracker carries the reason onto the item's row, and the
manual send answers with it and where to fix it.
Fixes #18690
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Document the profile pin route in the OpenAPI spec; keep the gap badge rule out of the sentinel CSS block
Fixes #18690
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π± ci: let the DCO app honour an author's own remediation commit (#18703)
* π± ci: let the DCO app honour an author's own remediation commit
Adds .github/dco.yml with allowRemediationCommits.individual: true so an
author can vouch for their own earlier commits whose author email had no
matching Signed-off-by, which is what blocks v5 -> v6 top-ups that carry
image-bump commits (#18697). Third-party remediation stays off.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* changelog: fragment for #18703
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: clubanderson <407614+clubanderson@users.noreply.github.com>
* π± changelog: make the dco.yml fragment a single entry bullet
The fragment is the entry itself and must start with '- '; the compiler owns
the headings. Drop the duplicate fragment the changelog bot added for #18703.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andy Anderson <andy@clubanderson.com>
Signed-off-by: clubanderson <407614+clubanderson@users.noreply.github.com>
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* β¨ Inbox: show the email-in address, delete any item, tidy the auto-routing dialog (#18704)
* β¨ Inbox: show the email-in address, delete any item, tidy the auto-routing dialog
Show the hive's email-in address (hive@<dashboard host>) at the top of the
Inbox, Calendar and Meetings sections as one shared row: label, mailto
link, Copy button and a one-line hint. Each section's state endpoint carries
it as email_in for owner and read-write callers; a hive mail cannot reach
gets a 'not set up yet' line with the docs link instead.
Make every Inbox item deletable, per item and in bulk (POST
/api/inbox/delete, owner or read-write, audited as inbox_delete). The
in-page dialog says what is removed; the Knowledge copy is kept unless the
box is ticked; a tombstone keeps synced items from coming back.
Lay the Inbox auto-routing dialog out as two sections (Routing,
Transcription), with provider rows, config keys in a footnote, consent
grouped with enable, one control recipe and height, provider-specific
fields only for the provider in use, and a footer that stays in view.
Fixes #18693
Fixes #18694
Fixes #18701
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Update the dashboard inbox item test for the shared delete control
Refs #18694
Signed-off-by: Andy Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π release: v5.299.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.299.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* β¨ Sessions: answer the CLI's startup screens so the initial request starts unattended (#18706)
* β¨ sessions: answer the CLI's startup screens so the initial request starts unattended
When a session starts (create, resume, Start again) the hive now takes the
vendor CLI to its input prompt itself and only then lets the Send queue
deliver, so an Inbox seed for spek runs with nobody at the keyboard.
- Seed a Claude Code session HOME (onboarding done, the session's own
working directory trusted) when it has no .claude.json; never rewrite one.
- Reuse the agents' detector (panesignal.BlockingPrompts) restricted to
startup screens: first-run notice, folder trust, theme picker, onboarding,
the Codex update menu.
- Never answer a tool or command permission prompt, never a login or OAuth
screen, nothing once a person has typed, and stop at the input prompt or
after a bounded window.
- Show the state in the pane header, audit it as session_autostart, and hold
the Send queue while the CLI is known not to be at its prompt.
- dashboard.sessions.autostart / HIVE_SESSIONS_AUTOSTART turn it off.
Fixes #18696
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π sessions: classify startup and login screens before the busy-footer test
The busy-footer test also matches the 'Esc to cancel' hint under a trust or
login menu, so the workspace trust screen read as a working CLI.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π sessions: classify session_autostart as a sensitive audit action; keep the unscripted runtime fake off shared test state
Signed-off-by: Andy Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ Meeting attendee: play a persona preset's introduction when its card is clicked (#18711)
Clicking a preset card in Settings, Meeting attendee selects it and plays
that persona's introduction in its own voice and language. Each card also
has a speaker button to play or stop the clip.
- GET /api/meetings/persona/preview?preset=<id> (owner or read-write)
speaks the preset's real intro, without the pronoun note, through the
meetings TTS service. Clips are cached in memory per TTS service,
preset, voice and text; concurrent requests share one TTS call. Bounded
by a per-user rate limit, a text length cap and the TTS timeout. Every
failure is a JSON error.
- The UI shows "Voice preview is unavailable: <reason>" and never falls
back to the browser's speech synthesis.
- cmd/hive now gives the dashboard the meetings TTS service, and the
token is also sent as X-API-Key, which the shared Kokoro service checks.
Fixes #18710
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Betty: live Discord/Teams test fixes + inbox auto-transcribe (#18679)
* π Betty: live Discord/Teams test fixes and inbox auto-transcribe
Discord joins talk by default when voice-capable; speak logs why it did
not speak; tolerant wake words for misheard names, never inventing a
participant; research pool warmed for live meetings with a cold-start
settle and prompt-not-ready retry; board pressure and headline metrics in
the live hive status; batched answers attributed; unambiguous voice
toggle; consent spoken by a voice-capable bot when chat cannot carry it;
inbox recordings auto-transcribed on arrival and resumed on boot.
Fixes #18677
Fixes #18678
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π research: fix translate returns; resync api-reference citations
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Betty: Meet test fixes, speech text, no pronouns, richer live status
Repeated spoken requests dropped; no research ack on an intro being said;
dig-in after a spoken ack goes to chat; text-for-speech pass on every say;
the persona never states pronouns; live hive status lists stage
breakdown, working agents and work queue.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π§ͺ config: persona override test expects no pronouns in the intro
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Betty: research agent first-run notice, ack watchdog, 45s research deadline
Runtime-added claude agents get hasCompletedOnboarding and work-dir trust
seeded; the first-run security notice is recognised and dismissed, and a
kick blocked on it fails fast; end-to-end research pool test over a real
agent manager. Spoken requests are acked only when the answer is not
ready after 0.7 s; deep dives give up after 45 s.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π§Ή crux: keep agent/manager.go under its size ratchet
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¬οΈ meetings: ship quorum v0.4.0
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Betty: real hive counts, no research for hive questions, two-question lines, misheard leave
Live status reads the derived open-items set with its repo scope and never
states an unbacked zero; hive questions (board pressure, counts, agents,
issue/PR lookup by number) never go to research; STT mishearings of the
hive vocabulary are normalised; a segment with two questions gets two
answers; 'Betty Lee.' leaves with a confirmation. The crux research e2e
test no longer imports pkg/research (crux outbound ratchet).
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¬οΈ meetings: quorum v0.4.1; deep-dive test asks a non-hive question
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π§ͺ betty: two-question test skips the queue note
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π betty: read 'pull request 18,689' as item 18689
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ dashboard: make the merge queue panel readable and consistent with the rest of the dashboard (#18709)
* β¨ dashboard: make the merge queue panel readable and consistent
Rebuild the Activity monitor's forge-owned merge queues panel from the
tracker's own parts (preparation rail head line, Merged/Merge queue popover
lists, ham-badge modifiers, the shared config-info help mark, design tokens)
and drop the one-off nq-* look. Overview first: one head line with how many
PRs are queued on how many branches and when the newest check happened; one
status line per branch that has something to say (front PR, its GitHub state,
how long it has waited, live test group verdict, checked Nm ago); calm
branches folded into a count; entries, test groups and receipts behind a
click. Every caveat is stated once, in the help mark.
A normal rotation delay reads as an age, not a STALE banner; warning styling
is kept for a failed refresh, missing App authentication, evidence older than
the fresh window plus two full rotations, and failed candidate checks.
Go: a candidate whose synthetic ref is gone or moved is sent with
expired: true and never read for checks, so finished groups are history, not
live validation candidates. nativeObservationRequired treats a 404 from
classic protection (GitHub's answer for a ruleset-only branch) as no classic
requirements, so the ruleset read supplies a known policy; 403 and other
errors still leave the policy unknown.
Fixes #18702
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ dashboard: pin the readable merge queue panel in the node test
Update .github/scripts/native-queue-tracker.test.cjs to the new markup while
keeping every honesty rule it guarded: GitHub's state in words with the enqueue
age, a failed refresh standing out without an empty-queue claim, the caveat
stated once, an overdue check as a problem but a rotation delay as an age,
unproven members and unreadable policy never shown as passing, finished groups
as a count, and receipts behind the click. Calm branches keep their history
behind the same toggle.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π dashboard: never say "nothing queued" for a branch whose refresh failed
The head line counted a branch as read whenever it had been visited, so a
single branch with a failed refresh produced "nothing queued on 1 branch". Only
observed and not-enabled scopes count as read now; the node test's regexes
check the status line rather than the help text and use the 12-character SHA.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π± dashboard: count the help mark once in the native queue render test
The caveat text sits in both the aria-label and the tooltip span of the single
help mark, so the sentence occurs twice; assert one help mark and two copies.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π± dashboard: assert the old per-queue caveat sentence is gone, not its topic
The help mark legitimately says the repo filter applies here; the render test
now checks for the removed per-queue sentence's own opening words.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π± dashboard: a fresh problem-free queue renders no badge; assert that
The component-reuse check expected a ham-badge on the fresh fixture, but a
calm queue correctly shows none; badge cases are asserted on the stale and
failed fixtures.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
Co-authored-by: Danathar <6772335+Danathar@users.noreply.github.com>
* π release: v5.300.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.300.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* π scanner: not-agent-work verdict parks the issue and is not repeated (#18686)
* π scanner: not-agent-work verdict parks the issue and is not repeated
The scanner's not-agent-work triage verdict (not a defect, needs a human, or
needs an environment agents lack) was only a comment: the issue stayed
stage/010-actionable and was re-triaged every pass. The comment relay now
takes a structured verdict (--not-agent-work, or the hive:not-agent-work
marker), posts it once, and parks the issue on needs-human. An identical
verdict with no human comment since is dropped as already_existed, and a
person's later comment re-queues the issue via the un-park sweep.
Fixes #18675
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π scanner: register the not-agent-work note write site and reuse the label wrapper
TestNotificationWriteSitesInventory wants every comment producer tagged with
a class, and TestDirectWriteRatchet refuses a raw RemoveLabelForIssue in a
file outside its baseline. Tag relayNotAgentWorkNote as attention (and list
it in docs/notifications.md), and lift needs-human through removeIssueLabel.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π scanner: add the not-agent-work park through the relay's existing label write
The direct-write ratchet refuses a wrapper write in a file outside its
baseline. The comment relay already adds one park label after a note
(blocked for --blocked-on-pr); the not-agent-work verdict now reuses that
write for needs-human and only submits the Parked fact itself.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Mail-in: accept office documents, let large deliveries reach the hive, and show why a mail was refused (#18708)
* π Mail-in: accept office documents, let large deliveries through, and make refusals visible
A mail to hive@<host> with only a .pptx attached was refused with a 550
that named no cause, and the receiver logged one line without the
recipient, the sender's domain, the size or the reason.
- hive-mx accepts .pdf, .docx, .pptx and .xlsx as document attachments,
checked by content (an Office container must hold its content types and
main part, and no macro project).
- The spoke's session gate lets the hub's signed pieces through
(/api/inbox/email/chunk): any mail with more than one relay piece of
attachments was answered 401 and retried until it expired.
- Refusals say why in the SMTP reply, per attachment extension.
- One INFO line per SMTP session: outcome, code, reason category,
recipient host, sender domain, size, attachment counts. No content.
- hive-mx reports refused messages to the hive (report delivery through
the hub); the hive keeps the last 50 accepted and refused mails and
shows them in the Inbox (GET /api/inbox/email/recent).
Fixes #18699
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π OpenAPI: document the recent-mail and refusal-report routes
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Recent mail: reload on open and on tab focus instead of a timer
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ Recent mail: say why a received mail awaits approval, with the authentication behind it
hive-mx logs the SPF and DKIM results, the alignment and the HELO name
next to the DMARC result, and the hive's recent-mail log keeps them with
the approval reason (sender not authenticated, or authenticated but not
on the allowlist), so a DMARC failure can be traced to the server the
mail was sent through.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π¨ Dashboard: render export/auth URLs as a read-only line, not a textarea (#18733)
The Claude authorization URL dialog (hiveExportViewer) showed the OAuth
URL in a small resizable textarea that matched none of the dialog's
tokens and cut the URL off. Links are now one full-width, read-only,
selectable line in the dialog's own font and colours (word-break:
break-all, click selects all); multi-line exports use a read-only pre.
Open in new tab is primary, Copy secondary, Close a ghost button, each
action carries an aria-label, and the implementation note is replaced by
a short user-facing line (the bearer-token variant keeps its meaning).
The hub's access CSV viewer gets the same treatment.
Fixes #18729
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π release: v5.301.0
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.301.0 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* π Customers: design doc for the people store, customer graph, goals and satisfaction (#18743)
Design record for RFC #18742: the Customers section, the customer versus
suggested line, identity resolution, retention by reference, forget with
tombstones, the role rules, the read-only GraphQL endpoint, the bounded agent
context block, and goals and satisfaction inferred with evidence and
confirmed by a person.
Refs #18742
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Sessions: keep one refreshable Claude login (a session can no longer lock the fleet out), and fix the false "hive restarted" start failure (#18728)
* π Sessions: judge an orphaned preparing record under the lock, not from the list snapshot
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Sessions: keep ONE refreshable Claude login; a session can no longer rotate it away from the fleet
A session got a full copy of the shared Claude login. The CLI in the session
refreshed the copy, which rotated the grant and left the shared file every
agent reads stale; the fleet was locked out until a person signed in again.
- a session's Claude login copy carries no refresh token (and only the token
block), so a session is never a refresh holder
- the hive keeps session copies current with the shared login
- a complete, usable, strictly newer login found in a session HOME is adopted
into the shared login under the credential-bridge lock, with an audit entry:
at boot, on the bridge poll, after a sign-in, at session start and before a
session's sandbox is removed (removal fails rather than lose it)
- other vendors: a resume no longer overwrites a login the session's CLI
rewrote after the shared file was written
Fixes #18724
Fixes #18725
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π± Sessions: keep the reconcile test seam out of server.go and manager.go within its size baseline
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Sessions API reference: refresh file:line citations
Signed-off-by: Andy Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ Customers: people store, identity resolution, tags, goals and satisfaction, edge index (#18751)
* β¨ Customers: people store, identity resolution, tags, goals and satisfaction, edge index
First build step of RFC #18742. Adds pkg/customers (nothing reads it yet):
- people.json (0600, atomic) with one profile per person: identities, tags,
goals, a satisfaction level, notes, merge history;
- suggestions as a key, counters and at most five evidence references;
- identity resolution on exact keys only; names never link; manual decisions
are pinned; merge, unmerge and split are exact;
- forget with salted-hash tombstones that block rediscovery;
- goals and satisfaction with auto/manual provenance: inference only writes
suggestions and never overwrites a confirmed or manual value;
- a rebuildable bbolt edge index that stores references and prunes edges
whose artefact is gone;
- customers.enabled (default on, env HIVE_CUSTOMERS_ENABLED).
Refs #18742
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Customers design: dismissed suggestions become tombstones; hive_user identities are not hand-editable
Refs #18742
Signed-off-by: Andy Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ Mail-in: a refused or held mail says how to try again and where to report a problem (#18750)
A sender whose mail was refused got an SMTP error with the reason and
nothing about what to do next, and the Inbox's Recent mail list had no
way to act on a refused or held mail.
- hive-mx ends each refusal that is about the message or the address
with three lines: how to try again, a link to the reason's entry in
the docs, and where to report a problem. The sender's own provider
returns them in its bounce. The lines are the same for every sender.
- GET /api/inbox/email/recent adds how_to_fix, help_url and report_url
to each refused or held event, and the items of a held mail that
still await approval.
- The Recent mail list shows them under each such mail, with Approve
and Decline for the owner on a mail that awaits approval.
- Docs: "Mailing your hive: what the replies mean", one entry per
reason.
Hive still sends no mail: there is no outbound path and no sending
domain. The reply email is designed in #18746.
Refs #18744
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ feat: acme-dns RFC 2136 manifests for hub wildcard cert (#18665)
* feat: add delegated RFC 2136 acme-dns manifests for hub wildcard cert
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
* fix: enable Knot response rate limiting on acme-dns
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* docs: acme-dns runbook order, TSIG key copies, restart and bind checks
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* docs: note TSIG secret lives in two namespaces
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* fix: let acme-dns knotd bind port 53 as non-root, note image sync
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* docs: keep TSIG command only in the acme-dns README
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* docs: clarify acme-dns changelog scope
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* docs: acme-dns README reflects the port 53 sysctl
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* fix: load acme-dns zone file whole, no journal to diff against
Signed-off-by: Andy Anderson <andy@clubanderson.com>
---------
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Signed-off-by: Andy Anderson <andy@clubanderson.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: Andy Anderson <andy@clubanderson.com>
* π release: v5.301.1
Automated release commit. Compiles changelog.d/ fragments and moves
the CHANGELOG.md Unreleased section into a dated v5.301.1 entry.
See src/docs/releases.md.
Signed-off-by: hive-release-bot <actions@github.com>
* β¨ Inbox: Quick note, larger hit targets and an honest list of input methods (#18752)
* β¨ Inbox: Quick note, larger hit targets and a list of input methods
Add a Quick note box to the Inbox Add panel: typed or dictated text is
sent as a markdown file through the existing upload route, so the size
cap, retention, extraction, attribution and auto-routing are unchanged.
A multi-line paste onto the Inbox lands in the box for review.
Raise the Inbox's small hit targets (item checkbox, small buttons, pills,
+N / less and text links) to --tap-target through a transparent
pseudo-element, without changing their visible size.
List input methods under the source chips from one static catalogue
(pkg/inbox/input_methods.go, served as input_methods by GET /api/inbox):
tools that work today because they enter text, and neural interfaces
that publish no API or export yet. The chips are not connectors; they
only show an explanation that states hive is not affiliated with the
projects named.
Fixes #18747
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π Inbox hit targets: scope the button rule by the Inbox regions
The stylesheet spelled the data-dashboard-section attribute, which the
dashboard-notices ordering test searches for in the page.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ Customers: REST API, wiring, "me" for every role, forget (#18756)
PR 2 of RFC #18742.
- pkg/customers: a viewer-aware Service. Without the full view a viewer
reaches only their own profile by any method; an id they may not see
answers exactly as a missing one. An identity a read-only user adds is an
unconfirmed claim: not a key, resolves nobody, attracts no edges.
- pkg/dashboard: seven /api/customers routes behind an injected service
(no import of pkg/customers). The read role's one write is
POST /api/customers/me/edit, exempted by exact method and path.
- cmd/hive: the adapter and boot wiring, behind customers.enabled.
- openapi.json, api-reference page, changelog fragment, design doc.
Refs #18742
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* fix: Governor PRs-by-model honesty (no 0% for unmeasured runs, coverage, CIs) and codex model detection in the contributor relay (#18739)
Refs #18713, #18714
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: Danathar <6772335+Danathar@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* π Cross-repo decomposition children and cross-repo PR issue links (#18688)
Scanner decomposition filed every child in the tracker's repo with a bare
"Part of #N" / hive:parent N link, and a PR in another managed repo that
said "Refs owner/repo#N" never covered its issue: the claim was keyed
owner/repo#N while enumeration keys issues by the configured spelling.
- hive-open-issue --parent owner/repo#N; the relay files the child in the
managed repo where its work lives (falls back to the parent's repo when
that repo is unmanaged; refuses an unmanaged parent repo), links it as a
cross-repo sub-issue, rewrites the parent ref and marker to full form and
records the parent repo in the split-parent ledger.
- Tracker progress and decomposed-parent close count children in any repo.
- Claims are keyed by the configured repo spelling, so a cross-repo PR
covers its issue and the issue mirrors the PR stage; the stage-pr-link
comment is posted for a PR in another repo; an agent claim is renewed
while a hive PR covers the issue and released once it closes.
Fixes #18676
Fixes #18680
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* β¨ Inbox UX cleanup: icon Play/Share buttons, one-row toolbar, clean titles and previews (#18705)
* π¨ Inbox: icon Play/Share buttons, compact toolbar, clean titles and previews
Fixes #18700
- Play recording and Share are icon buttons with aria-label and title;
Transcript / Text is a compact chevron toggle; a hive recording's Delete
is a trash icon set apart at the end of the row (the slot #18694 uses).
- Only configured sources are chips; the rest sit behind a +N more
disclosure next to Connect sources.
- One toolbar row: Record and Add left; Show processed (toggle button),
Select all, Hive menu and Auto-routing right.
- Trailing (mtg-β¦) ids leave the title for the meta line; the full title
is the tooltip. The Knowledge state sits in the meta line, not as a pill.
- Upload previews render Markdown as plain text, clamped to 3 lines with
Show more.
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π¨ Inbox tests: stub inboxSourcesHtml in the role-race harness, compare title parts by value
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π¨ Inbox: Delete slot takes inboxDeleteButtonHtml when #18694 registers it
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π¨ Inbox: inline the Play and Share icon buttons so the row guard sees their actions
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π¨ Inbox tests: the every-kind Delete row test expects the trash icon button
Signed-off-by: Andy Anderson <andy@clubanderson.com>
---------
Signed-off-by: Andy Anderson <andy@clubanderson.com>
* π claude: hive refreshes the shared OAuth grant itself ahead of expiry (#18736)
* π claude: hive refreshes the shared OAuth granβ¦
Fixes #17863.
After the hive-App reducers (#17071/#17072/#17073), the 2026-11-11 spam check-in found ~70% of the comments on a merged PR come from four fixed per-PR emitters (sample: #17716, 12 comments / 1 human). This PR quiets the three we own and the one relay path that provokes Prow.
What changes
hive-pr-overlap(.github/scripts/pr-overlap.sh)hive-mutation(src/scripts/mutation-report.sh post)passlived/uncovered/misrouted/error; a laterpassedits the existing comment to β Resolved; never created for a clean PR. Report appended to the step summary first.feedback.ymlβ infrareusable-feedback.yml)gatejob runssrc/scripts/feedback-gate.sh: posts only for a person's first merged PR. Skips[bot]/App authors,scanner/*andhive/*heads, bodies carrying<!-- hive:(hive-agent PRs on any branch, e.g.fix-*), and anyone with another merged PR (search API; a failed lookup skips rather than guesses). Knobs:FEEDBACK_SKIP_BOTS,FEEDBACK_SKIP_BRANCHES,FEEDBACK_SKIP_HIVE_ORIGIN,FEEDBACK_SKIP_LOGINS,FEEDBACK_FIRST_TIME_ONLYin the workflowenv:./lgtmrelay (pkg/github/pr_decision_operator.go)/lgtm+/approveas the App β Prow: "you cannot LGTM your own PR" every time/approveonly (PullRequestApprovalEvent.LGTMSkipped). Nothing in hive reads the relayed/lgtm(ParsePRApprovalCommandCommentconsumers want/approve; sentinel accepts either). People's PRs and non-Prow repos still get both.Estimated: β2.5 to β3 of the 5.7 comments on a typical merged PR (β β45β50%), no lost signal.
Prow config (outside this repo β needs Andy)
The
[APPROVALNOTIFIER]comment and the 8/40 "you cannot LGTM your own PR" rebukes come fromkubestellar-prow, configured inkubestellar/infraprow/plugins.yaml/prow/config.yaml(not in hive; hive has onlyOWNERS). The rebukes in the sample were @clubanderson's own/lgtmtyped on his own PRs, not a hive relay. Prow'sapproveplugin keeps exactly one APPROVALNOTIFIER per PR (it edits it), so the only levers are:approve: - repos: - kubestellar # Org-wide - hivecommons # Org-wide ignore_review_state: true - require_self_approval: true + require_self_approval: false # an OWNERS approver's own PR is approved without typing /approveThat removes the need for the author's
/approvecomment (and the second APPROVALNOTIFIER edit) on maintainers' PRs. The self-/lgtmrebuke cannot be configured away β Prow'slgtmplugin always rejects the author; the fix is to stop typing/lgtmon your own PRs (tide needs anlgtmlabel from someone else anyway; the hive's native queue /--adminmerges don't need it). If hive-authored PRs should not get APPROVALNOTIFIER at all, the stronger option is a per-repohivecommons/hive:plugins entry withoutapprove/lgtm, since hive's own merge queue gates those PRs β that trades Prow approval for hive-only gating and I would not do it without a decision.Tests
bash .github/scripts/test-pr-overlap.sh(runs in the workflow): + finding posts, existing comment edited not duplicated, clean run posts nothing, clean run after a finding edits to Resolved.bash src/scripts/test-mutation-report.sh: newpost phaseblock with aghstub (pass+no comment β nothing; lived β POST; lived+existing β PATCH; pass+existing β PATCH to Resolved; summary keeps the report). The pre-existing run-phase cases need GNUtimeout(Linux).bash src/scripts/test-feedback-gate.sh(runs in the workflow's gate job): all default rules + every knob + event-file read.go test ./pkg/github -run 'TestRecordOperatorPullRequestApproval|TestProwManagedLabels';TestCommentMarkerRatchetbaseline stays at 45 (no new unmarked emitter; the relay comments carry<!-- hive:pr-approval β¦ -->).go build ./...,go vet ./pkg/github,shellcheck -S warningon the four scripts,actionlintonfeedback.yml.Commits
0fbdfab58β scripts, Go, tests, docs, changelog (App-pushable).5329d0931β workflow-only:.github/workflows/feedback.ymlgate job (pushed with Andy's credentials; the hive App token cannot write.github/workflows/*).