Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
784e701
feat(github): enforce pin-only exception in merge-request relay (#16607)
hivecommons-hive[bot] Nov 7, 2026
e13e891
fix(crux/proxy): canary scan refuses write bodies it could not read (…
hivecommons-hive[bot] Nov 7, 2026
ab5de9f
πŸ› fix(crux/proxy): apply destination policy to uninspected tunnels (#…
hivecommons-hive[bot] Nov 7, 2026
c549296
πŸ› fix(crux/toolapprove): read apply_patch target paths for the guardr…
hivecommons-hive[bot] Nov 7, 2026
22f9f1d
πŸ› fix(github-relay): report unpushed PR head once, naming the ref che…
clubanderson Nov 7, 2026
d426e9e
πŸ› fix(loginscan): name the backend and login command in the login-req…
clubanderson Nov 7, 2026
dfe70c1
πŸ› fix(automerge): recover a flaky red check on an operator-admitted c…
clubanderson Nov 7, 2026
dfe8e33
✨ crux: caller principal on serve routes for work services (#16996)
clubanderson Nov 7, 2026
e6bc532
docs: define what an ACMM pack is (#16983)
hivecommons-hive[bot] Nov 7, 2026
53c2e09
πŸ› fix(loginscan): auth-screen patterns no longer match their own sour…
hivecommons-hive[bot] Nov 7, 2026
a9d2553
πŸ› fix(ioscan): apply Input Defense saves without a restart and keep f…
hivecommons-hive[bot] Nov 7, 2026
4b6fc4d
πŸ“– docs: capitalize Hive in the ACMM pack definition (#17011)
hivecommons-hive[bot] Nov 7, 2026
51de61e
πŸ› fix(automerge): align contributor merge eligibility with relay poli…
hivecommons-hive[bot] Nov 7, 2026
cb06655
✨ crux: pinned checkout service (S1) (#17005)
clubanderson Nov 7, 2026
d967290
✨ crux: let an in-hive Spek publish its RFC and children through the …
clubanderson Nov 7, 2026
c988822
✨ triage: honour the Spek publish marker β€” children stay on the direc…
clubanderson Nov 7, 2026
a849d89
🌱 sync: top up v6 from v5 (manual conflict resolution, 2026-11-07)
clubanderson Nov 7, 2026
7284b56
πŸ› fix(release): unblock tagged releases stalled by a release:none fra…
clubanderson Nov 7, 2026
2c1baa5
Merge remote-tracking branch 'origin/v5' into sync/v5-to-v6-20261107
clubanderson Nov 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/scripts/integration-governance.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const MAX_COMMITS = 1000;
const MAX_AUTHOR_BATCH = 50;
// This literal is inside the enrolled .github closure. A caller-supplied
// preparedBy.sourceSHA must never choose a new executable verifier tree.
const TRUSTED_SCRIPTS_TREE = 'b3108c5a9ebe25702b15654d9f37a7236f081830';
const TRUSTED_SCRIPTS_TREE = '267924f87d77a3fa335accce1b0c74d1a5cfdab8';
const SOURCE = 'https://github.com/kubernetes-sigs/kubebuilder-release-tools/tree/012269a88fa4c034a0acf1ba84c26b195c0dbab4';
const sha = value => crypto.createHash('sha256').update(value).digest('hex');
const git = (args, cwd = process.cwd()) =>
Expand Down
28 changes: 28 additions & 0 deletions bin/hive-open-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,33 @@ commit_has_trailer() {
grep -Fqx "$trailer"
}

# warn_if_head_not_on_remote tells the agent, at request time, when the branch
# it is asking a PR for is not known to be on the remote (#16969). The watcher
# cannot open a PR for a branch GitHub does not have; it retries for 24h, so
# a push that never landed surfaces only as a fleet self-report hours later.
# Evidence is the checkout's own remote-tracking ref (written by a successful
# `git push`, no network) and, failing that, one `git ls-remote` of the exact
# ref. It never refuses: a hive-push-branch relay push may still be in flight,
# and the queued request lands on retry once the branch arrives.
warn_if_head_not_on_remote() {
head="$1"
[ -n "${HIVE_OPEN_PR_SKIP_REMOTE_CHECK:-}" ] && return 0
git rev-parse --is-inside-work-tree >/dev/null 2>&1 || return 0
remote="$(git config --get "branch.${head}.remote" 2>/dev/null || true)"
[ -n "$remote" ] || remote=origin
git remote get-url "$remote" >/dev/null 2>&1 || return 0
if git rev-parse --verify --quiet "refs/remotes/${remote}/${head}" >/dev/null 2>&1; then
return 0
fi
rc=0
GIT_TERMINAL_PROMPT=0 git ls-remote --exit-code --heads "$remote" "refs/heads/${head}" >/dev/null 2>&1 || rc=$?
# 2 is ls-remote's definitive "no such ref"; anything else (auth, network)
# is not evidence either way, so stay quiet rather than cry wolf.
[ "$rc" -eq 2 ] || return 0
echo "hive-open-pr: WARN: branch '${head}' is NOT on remote '${remote}' ($(git remote get-url "$remote" 2>/dev/null)) β€” the hive cannot open a PR for a branch GitHub does not have." >&2
echo "hive-open-pr: WARN: push it first (git push -u ${remote} ${head}, or hive-push-branch --repo ${REPO:-<owner/repo>}) and check the push's own output; the request below stays queued and succeeds on retry once the branch arrives." >&2
}

check_issue_author_coauthors() {
repo="$1"
body="$2"
Expand Down Expand Up @@ -218,6 +245,7 @@ if [ -z "$REPO" ] || [ -z "$HEAD" ] || [ -z "$TITLE" ]; then
fi

check_issue_author_coauthors "$REPO" "$BODY"
warn_if_head_not_on_remote "$HEAD"

# Identify the requesting agent. Prefer the UID map (the watcher re-derives the
# owner from the FILE's UID anyway, so this is informational + a nicer log line);
Expand Down
32 changes: 31 additions & 1 deletion bin/test_hive_open_pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ check "--body-file body reaches the request" \
reset_reqs

check_exit "--body-file - reads stdin" 0 \
bash -c 'printf "stdin body" | "$@"' _ env HIVE_AGENT=a3 HIVE_OPEN_PR_REQ_DIR="$REQ_DIR" \
bash -c 'printf "stdin body" | "$@"' _ env HIVE_AGENT=a3 HIVE_OPEN_PR_REQ_DIR="$REQ_DIR" HIVE_OPEN_PR_SKIP_REMOTE_CHECK=1 \
bash "$MODIFIED_SCRIPT" --repo o/r --title T --head h --body-file -
REQ="$(find_req a3)"
check "stdin body reaches the request" "stdin body" "$(json_field "$REQ" body)"
Expand Down Expand Up @@ -373,6 +373,36 @@ else
fi
reset_reqs

# --- Section 10: head-on-remote preflight (#16969) ---
echo ""
echo "--- head-on-remote preflight ---"

BARE="$TMPDIR_ROOT/remote.git"
git init --quiet --bare "$BARE"
PUSHED_REPO="$TMPDIR_ROOT/pushed"
git clone --quiet "$BARE" "$PUSHED_REPO" 2>/dev/null
( cd "$PUSHED_REPO" && git checkout --quiet -b pushed/branch 2>/dev/null && touch f && git add f &&
git -c user.name=t -c user.email=t@t -c commit.gpgsign=false commit --quiet -m seed &&
git push --quiet -u origin pushed/branch 2>/dev/null &&
git checkout --quiet -b local/only && touch g && git add g &&
git -c user.name=t -c user.email=t@t -c commit.gpgsign=false commit --quiet -m local )

STDERR_OUT="$( (cd "$PUSHED_REPO" && env HIVE_AGENT=a10 HIVE_OPEN_PR_REQ_DIR="$REQ_DIR" bash "$MODIFIED_SCRIPT" --repo o/r --head pushed/branch --title T --body B) 2>&1 >/dev/null )"
check "pushed branch produces no warning" "" "$STDERR_OUT"
reset_reqs

STDERR_OUT="$( (cd "$PUSHED_REPO" && env HIVE_AGENT=a10 HIVE_OPEN_PR_REQ_DIR="$REQ_DIR" bash "$MODIFIED_SCRIPT" --repo o/r --head local/only --title T --body B) 2>&1 >/dev/null )"
case "$STDERR_OUT" in
*"branch 'local/only' is NOT on remote 'origin'"*"hive-push-branch --repo o/r"*) check "unpushed branch warns and names branch, remote and the push step" ok ok;;
*) check "unpushed branch warns and names branch, remote and the push step" "warning naming local/only, origin and hive-push-branch" "$STDERR_OUT";;
esac
check_exit "unpushed branch still queues the request (watcher retries once it lands)" 0 test -n "$(find_req a10)"
reset_reqs

STDERR_OUT="$( (cd "$PUSHED_REPO" && env HIVE_AGENT=a10 HIVE_OPEN_PR_REQ_DIR="$REQ_DIR" HIVE_OPEN_PR_SKIP_REMOTE_CHECK=1 bash "$MODIFIED_SCRIPT" --repo o/r --head local/only --title T --body B) 2>&1 >/dev/null )"
check "HIVE_OPEN_PR_SKIP_REMOTE_CHECK silences the preflight" "" "$STDERR_OUT"
reset_reqs

# --- Summary ---
echo ""
echo "=== Results: $PASS passed, $FAIL failed ==="
Expand Down
9 changes: 8 additions & 1 deletion changelog.d/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,17 @@ deleting the fragments in the same release commit.
need no fragment only if non-user-visible (routine refactors, dependency churn,
or test-adjacent code like `testdata/` or non-`_test.go` test helpers) β€” put
a `no-changelog` label on such PRs.
- The `<!-- release: none|major|minor|patch -->` escape hatch
- The `<!-- release: major|minor|patch -->` bump escape hatch
(`src/docs/releases.md`) may ride in a fragment as its first line; it is
compiled into `Unreleased` verbatim and honoured by
`derive-release-version.sh` exactly as a hand-placed marker is.
**`<!-- release: none -->` is rejected in fragments** (by
`check-changelog-fragment.sh` at PR time and `compile-changelog.sh` at
release time): a fragment persists until the release that consumes it, and
`none` is what forbids that release, so a single such fragment freezes
every later merge until a human deletes it β€” [#12928](https://github.com/hivecommons/hive/pull/12928)
stalled releases for three weeks this way. A non-user-visible change wants
no fragment and the `no-changelog` label instead.

Example β€” a complete fragment, `changelog.d/fixed-1234-relay-timeout.md`:

Expand Down
1 change: 1 addition & 0 deletions changelog.d/added-crux-caller-principal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- crux: `serve` attaches a caller principal to every authenticated request (`serve.CallerFrom`): the control token is the operator (named by `--operator-name`/`CRUX_OPERATOR_NAME`), and lane project credentials are accepted as project principals on work-services routes only β€” agent RPCs still refuse them. Groundwork for the crux work services (hivecommons/crux#114 S0).
1 change: 1 addition & 0 deletions changelog.d/added-crux-checkout-service.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- crux: pinned checkout service (hivecommons/crux#114 S1): `POST/GET/DELETE /v1/checkouts` on `crux serve` (enabled by `--checkout-allow`/`CRUX_CHECKOUT_ALLOWLIST`) and `crux checkout add|rm|list` provision a git worktree pinned at a full 40-hex SHA from an allowlisted repository, owned by the caller principal, with a recorded TTL and a post-hoc size cap. Records live under `<workdir>/checkouts`; design notes in `docs/design/crux-work-services.md`.
1 change: 1 addition & 0 deletions changelog.d/added-crux-spek-publish-proxy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- crux: the proxy lets an in-hive Spek publish its RFC and children β€” GitHub `POST …/issues/{n}/sub_issues` and `POST …/issues/{n}/dependencies/blocked_by` and Linear `issueRelationCreate`/`projectCreate`/`projectUpdate` are allowed at ISSUES_ONLY; a new `crux/spekmarker` package parses the `<!-- spek:publish … -->` marker and `issueshape.SpekPublished` exposes it as the "already specified" clarity-gate signal (spektacular#114).
1 change: 1 addition & 0 deletions changelog.d/added-pin-only-human-merge-relay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- The `hive-merge` relay now honours the `auto_merge.human_merge_pin_only` exception, with the same checks as the automerge sweep plus an exact requested-head match; anything short of a proven pin-only change by a trusted author stays held (#16265).
2 changes: 1 addition & 1 deletion changelog.d/added-pin-only-human-merge-sweep.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Enforce the `auto_merge.human_merge_pin_only` exception in the automerge sweep lanes and `/hive approve` (#16266): a PR by a listed trusted author whose complete diff is pin replacements on guarded paths is no longer held for a person. Any other changed file, including an unguarded changelog or doc, keeps the hold (#16326). Repos without an enabled entry are unchanged, and the `hive-merge` relay does not apply the exception yet (#16265).
- Enforce the `auto_merge.human_merge_pin_only` exception in the automerge sweep lanes and `/hive approve` (#16266): a PR by a listed trusted author whose complete diff is pin replacements on guarded paths is no longer held for a person. Any other changed file, including an unguarded changelog or doc, keeps the hold (#16326). Repos without an enabled entry are unchanged; the `hive-merge` relay enforces the same exception as of #16265.
1 change: 1 addition & 0 deletions changelog.d/added-spek-publish-marker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Hive honours the Spek publish marker `<!-- spek:publish name=… artifact_id=… target=… [task=…] [rfc=…] -->` (spektacular#109/#114): a Spek-published child stays on the direct-fix path under `runs.triage` (never a new `spec` run), skips the clarity score, and its kick line carries the RFC link and spek identity with the `Fixes #<child>` instruction; the RFC itself (marker without `task=`) is treated like `epic` for `governor.claims.never_claim_labels` and `IsTrackerIssue`, so Hive never claims it even in a repo without that label. Parser in `pkg/spekmarker`; documented in `docs/spektacular.md` β†’ Publish hand-off.
2 changes: 0 additions & 2 deletions changelog.d/changed-12923-off-prompt-fixture.md

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/fixed-16717-contributor-merge-eligibility.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Contributor PRs with hive attribution now pass the merge relay's trust gate before being listed merge-eligible; trust refusals appear separately with their reason and maintainer unblock options ([#16717](https://github.com/hivecommons/hive/issues/16717)).
1 change: 1 addition & 0 deletions changelog.d/fixed-17006.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Agent panes that show hive's own login-pattern source or grep output (for example `file.go:NN: "Please run /login"`) are no longer misread as a login screen, so reviewers that read loginscan/watchdog code stop raising a false "needs login" banner; the watchdog also only checks the bottom of the pane for login prompts ([#17006](https://github.com/hivecommons/hive/issues/17006)).
1 change: 1 addition & 0 deletions changelog.d/fixed-admitted-head-stale-red-recovery.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- The merge sweep now re-runs cancelled or failed workflow jobs (or refreshes the branch) on an operator-approved contributor PR whose only blocker is a red check that is green on the base, instead of standing down from adoption and nudging the fork author to push a new head for a shared-CI flake they cannot re-run; cancelled runs now count as re-runnable in the adopted-PR recovery too.
1 change: 1 addition & 0 deletions changelog.d/fixed-crux-proxy-canary-body-read.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- The crux proxy's canary scan of GitHub write bodies now refuses a request whose body could not be fully read, matching the Linear gate and the oversized-body path. Before, a read error consumed the body and still let the request through, so it reached GitHub empty and unscanned.
1 change: 1 addition & 0 deletions changelog.d/fixed-ioscan-classifier-settings-restart.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Input Defense settings saved from the dashboard now actually unblock kicks at ACMM L5+ ([#16973](https://github.com/hivecommons/hive/issues/16973)). Saving ioscan fail mode "open" was stored as unset, which at L5+ falls back to the ACMM pack's fail-closed default, so the setting snapped back to "closed" and kicks carrying untrusted text stayed withheld. "open" is now stored as given, and every ioscan save in Settings β†’ Security β†’ Input Defense rebuilds the semantic classifier from the new backend and fail mode immediately, clearing the blocked-kick alert when it no longer applies. A runtime ACMM level change (for example L4 β†’ L5 in the dashboard) rebuilds the classifier the same way, so the level's classifier requirement and fail mode apply without a restart. The alert and the Classifier backend help text no longer tell operators to restart for changes the dashboard now applies live, and the alert names the `ioscan.fail_mode` key the Security tab actually exposes.
1 change: 1 addition & 0 deletions changelog.d/fixed-login-required-report-backend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- The `agent_login_required` selfreport now names the backend that lost its login: the login scanner's `login required detected` record carries `backend`, `login_hint` (the CLI's login command) and `credential_valid`, so the operator knows which provider to re-authenticate on which agent instead of being told only the agent name; `codex` gets a login hint (`codex login`) ([#16953](https://github.com/hivecommons/hive/issues/16953)).
1 change: 1 addition & 0 deletions changelog.d/fixed-pr-request-head-unpushed-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- The pr-request watcher now reports an unpushed head branch once per request instead of once per retry, states the exact ref and repository it checked and what the push relay recorded for that branch (queued, pushed, failed, or no record) rather than asserting a push-authentication failure, and logs when the request later succeeds on retry; `hive-open-pr` warns at request time when the head is not on the remote, naming the branch, remote and push step; fleet-report fingerprints no longer treat a possessive apostrophe as an opening quote, which truncated this report's scope to "the agentQ" ([#16969](https://github.com/hivecommons/hive/issues/16969)).
1 change: 1 addition & 0 deletions changelog.d/fixed-proxy-tunnel-destination-policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- The agent proxy now applies its plain-HTTP destination policy to uninspected CONNECT and transparent-TLS tunnels as well, so all three egress legs dial only globally routable addresses; `HIVE_PROXY_ALLOW_PRIVATE_FORWARD=true` lifts it for every leg at once
1 change: 1 addition & 0 deletions changelog.d/fixed-release-none-fragment-stall.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Tagged releases resume: a `release: none` HTML-comment marker that rode in a `changelog.d/` fragment (#12928, merged 2026-10-19) was compiled into `## Unreleased` on every merge and made the release workflow's decide job skip every commit since v5.186.4 as an "explicit human override" β€” the fragment could only be consumed by the very release it vetoed. The fragment is removed; `check-changelog-fragment.sh` and `compile-changelog.sh` now reject a `none` marker in a fragment (bump markers stay allowed); and a hand-placed `none` freeze in CHANGELOG.md is surfaced as a workflow warning annotation and fails the decide job once it has outlived `RELEASE_FREEZE_MAX_DAYS` (default 7) instead of silently skipping forever. Also fixed on the way out: with the resulting 1,369-fragment backlog the bump inference's `grep -q` died of SIGPIPE under `pipefail` and would have labelled the catch-up release a patch instead of the minor its `### Added` section calls for.
1 change: 1 addition & 0 deletions changelog.d/security-toolapprove-apply-patch-paths.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fixed the tool-approval guardrail-path check never seeing the target of a Copilot CLI `apply_patch` call ([#16979](https://github.com/hivecommons/hive/issues/16979)). The tool carries its paths in the patch text (`*** Update File:`, `*** Add File:`, `*** Delete File:`, `*** Move to:`) instead of a path argument, so `ToolRequest.GetFilePath` returned an empty string and a patch touching `.github/workflows/**`, `OWNERS`, `hive.yaml` or `policies/**` auto-approved at L5/L6. `GetFilePath` now falls back to the first path in the patch body, and the guardrail check now iterates the new `GetFilePaths` over every path the request names, so a patch that lists a harmless file first and a guardrail path later is still caught.
6 changes: 5 additions & 1 deletion src/cmd/hive/github_client_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,15 @@ func (b *boot) armRequestRelays(client *github.Client) bool {
// onACMMLevelChanged re-arms request relays when the level crosses the
// self-authored auto-merge boundary. The relay generation re-reads the current
// ACMM verdict when it starts, so this turns a runtime L5↔L6 change into the
// same safe hand-over used for GitHub App client rebuilds.
// same safe hand-over used for GitHub App client rebuilds. It also rebuilds
// the ioscan semantic classifier, whose enablement and fail mode follow the
// level (required and fail-closed at L5+), so an L4↔L5 change in the
// dashboard takes effect without a restart.
func (b *boot) onACMMLevelChanged(prev, next int) {
if b == nil || b.cfg == nil {
return
}
b.reinstallIoscanClassifier()
before, after := b.cfg.AutoMerge.SelfAuthoredAutoMergeAllowed(&prev), b.cfg.AutoMerge.SelfAuthoredAutoMergeAllowed(&next)
if before == after {
return
Expand Down
55 changes: 53 additions & 2 deletions src/cmd/hive/ioscan_classifier_boot.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,55 @@ func installIoscanClassifier(sched ioscanClassifierSink, alerts ioscanClassifier
}
}

// reinstallIoscanClassifier re-runs installIoscanClassifier against the live
// config after an Input Defense save, so a new backend or fail mode applies
// without a restart (#16973). A run that installs nothing (classifier off, or
// fail-open with no runnable classifier) drops the classifier an earlier run
// installed, so a stale unavailable classifier cannot keep withholding text.
func reinstallIoscanClassifier(sched ioscanClassifierSink, alerts ioscanClassifierAlerter, cfg *config.Config, logger *slog.Logger, now func() time.Time) {
rec := &ioscanClassifierSetRecorder{ioscanClassifierSink: sched}
installIoscanClassifier(rec, alerts, cfg, logger, now)
if !rec.set {
sched.SetClassifier(nil, ioscan.Thresholds{})
}
}

// ioscanAlerts is the dashboard the ioscan classifier raises its blocked-kick
// alert on, as a nil interface (not a typed nil) when there is no dashboard.
func (b *boot) ioscanAlerts() ioscanClassifierAlerter {
if b == nil || b.dashSrv == nil {
return nil
}
return b.dashSrv
}

// reinstallIoscanClassifier rebuilds the scheduler's semantic classifier
// from the live config: after an Input Defense save (#16973) and after a
// runtime ACMM level change, since the level decides whether the classifier
// is required and which fail mode applies. No-op before the scheduler exists.
func (b *boot) reinstallIoscanClassifier() {
if b == nil || b.sched == nil || b.cfg == nil {
return
}
logger := b.logger
if logger == nil {
logger = slog.Default()
}
reinstallIoscanClassifier(b.sched, b.ioscanAlerts(), b.cfg, logger, time.Now)
}

// ioscanClassifierSetRecorder notes whether installIoscanClassifier installed
// a classifier.
type ioscanClassifierSetRecorder struct {
ioscanClassifierSink
set bool
}

func (r *ioscanClassifierSetRecorder) SetClassifier(c ioscan.Classifier, t ioscan.Thresholds) {
r.set = true
r.ioscanClassifierSink.SetClassifier(c, t)
}

// ioscanClassifierFallbackBackend picks the subscription CLI the classifier
// runs through when no backend is configured and no model endpoint is
// resolved: the tool-less-capable backend most of the hive's agents run on,
Expand Down Expand Up @@ -206,8 +255,10 @@ func ioscanClassifierBlockedAlertMessage(acmmLevel int, cause error) string {
return fmt.Sprintf("ioscan semantic classifier is required at ACMM L%d but failed or is unavailable (%v). "+
"Kicks carrying untrusted text (issues, comments, PR bodies, reviews) can be withheld until this is fixed. "+
"Fix: configure a model endpoint (governor.trajectory or governor.litellm), set ioscan.classifier.backend to one of %s "+
"(Settings β†’ Security β†’ Input Defense), or accept scanning without the classifier with ioscan.classifier.fail_mode: open. "+
"Changes take effect after a restart.", acmmLevel, cause, strings.Join(ioscan.ToollessBackends(), ", "))
"(Settings β†’ Security β†’ Input Defense), or accept scanning without the classifier by setting ioscan.fail_mode to open "+
"(the Fail mode control in that tab; ioscan.classifier.fail_mode: open in hive.yaml overrides it for the classifier alone). "+
"Input Defense changes saved in Settings β†’ Security apply immediately; a model endpoint or hive.yaml edit takes effect after the hive restarts.",
acmmLevel, cause, strings.Join(ioscan.ToollessBackends(), ", "))
}

func raiseIoscanClassifierAlert(alerts ioscanClassifierAlerter, acmmLevel int, cause error) {
Expand Down
Loading
Loading