Skip to content

✨ ioscan: accept omp as a tool-less classifier CLI backend #15873

Closed

Description

@hanthor

Problem

Hives above a certain ACMM level require the ioscan prompt-injection classifier, and they fail closed without it. A hive with no HTTP classifier endpoint therefore needs a CLI backend. Today ioscan.classifier.backend accepts only claude and copilot (src/docs/ioscan.md).

A hive whose agents all run through omp has neither of those. Every kick that carries issue or PR text is withheld (kick message withheld). #15858 is a current hosted example of a hive stuck on ioscan_classifier_unavailable.

omp is already a first-class agent backend: runs.external.omp, and omp seed configs. Its credential broker (OMP_AUTH_BROKER_URL) already reaches agents (#15432 / #15649).

Proposal

Accept backend: omp for the classifier. The prompt goes on stdin, and the run uses the same tool-less guarantee as the existing CLI backends:

  • omp runs with --no-tools --no-lsp --no-extensions --no-skills --no-rules --no-session --no-title.
  • It uses a dedicated, empty settings profile, so no MCP server, hook or context file from the agents' profile loads.
  • The system prompt is replaced.
  • The environment is the existing reduced base env plus OMP_AUTH_BROKER_URL / OMP_AUTH_BROKER_TOKEN. It never includes GH_TOKEN or GITHUB_TOKEN.
  • The existing CLI per-pass budget, daily quota and fail mode apply unchanged.

Reference implementation: tuna-os/hive@62dbda5. It touches src/pkg/ioscan/cli_client.go (+26 lines) and cli_client_test.go, and cherry-picks cleanly onto current v6.

Evidence (tuna-os fleet, v6 + this patch, live since 2026-10-30 03:31Z)

Two spokes, School and Reef, run ioscan.classifier.backend: omp with model anthropic/claude-haiku-4-5, fail-closed.

  • Kicks resumed. Before the patch, all 8 kick-eligible agents on Reef were withheld for want of a classifier. Since then there have been 0 kick message withheld lines on either spoke.
  • Classification works with no errors. The audit log records 88 classifications in 16 h (School 80, Reef 8), all category=benign, action=allow, and 0 classifier errors.
  • Manual check. Before rollout, a real bug report scored 0.0 and a planted prompt injection scored 0.99.
  • Stability. 0 restarts on either spoke since deploy.

Acceptance

  • classifier.backend: omp boots and logs ioscan semantic classifier enabled backend=omp.
  • A test asserts the exact argv: every disable flag, the prompt on stdin and never in argv, and the reduced env (no GH_TOKEN / GITHUB_TOKEN).
  • A reply without exactly one JSON verdict follows classifier.fail_mode.
  • Settings accept omp. src/docs/ioscan.md lists it with its flags. changelog.d/added-* fragment.

Activity

  1. added
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    kind/featureCategorizes issue or PR as related to a new feature.
    on Oct 30, 2026
  2. hivecommons-hive commented on Oct 30, 2026

    @hivecommons-hive
    Contributor

    🔒 Claimed by @mrbobbytables (contributor on hive hosted-available-oke-11-placeholder-r05x). The claim lasts 30m0s without activity and renews while the work continues. Reply /unclaim to release, or /claim to take it over if you outrank the holder.

  3. hivecommons-hive commented on Oct 30, 2026

    @hivecommons-hive
    Contributor

    🔓 Claim by @mrbobbytables released (lease revoked).

  4. hivecommons-hive commented on Oct 30, 2026

    @hivecommons-hive
    Contributor

    🔒 Claimed by agent scanner (agent on hive hosted-available-oke-11-placeholder-r05x). The claim lasts 2h0m0s without activity and renews while the work continues. Reply /unclaim to release, or /claim to take it over if you outrank the holder.

  5. github-actions commented on Oct 31, 2026

    @github-actions
    Contributor

    @hanthor this issue was closed by @hivecommons-hive[bot] as completed.

    If this was closed by a merged PR, the fix only takes effect once it ships in a tagged release and your deployment updates to it — check your running version against the fix before concluding the fix failed.

    If you are still seeing the problem, comment /reopen and it will be reopened for you — you do not need write access. Please add what you are still observing (running version, logs, steps) so it is not closed the same way again.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions