Skip to content

Warn when dynamic agent instructions are truncated - #5568

Closed
bb-slop-cop[bot] wants to merge 1 commit into
mainfrom
slopcop/issue-5565
Closed

bb-slop-cop[bot] wants to merge 1 commit into
mainfrom
slopcop/issue-5565

Conversation

@bb-slop-cop

@bb-slop-cop bb-slop-cop Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · new-issue-autopilot

Withdrawn by the autopilot safety gate. CI requires a plugin SDK version bump for this published-content change. The existing release contract requires two additional version files, making even a documentation-free complete repair at least six files, above this rule's five-file maximum. The tested candidate is preserved here as evidence, not proposed for merge. No release checks are bypassed.

Human comments

What was wrong

The shared agent-configuration normalizer shortened oversized dynamic instructions without emitting a diagnostic. Both the real plugin service and the supported testing host treated that result as successful, leaving plugin authors unaware of the loss. Reproduction and root-cause report.

What changed

  • Keep the documented 4096-character truncation behavior and existing tool/skill selections.
  • Emit a length-only warning through the plugin-scoped logger when nonblank instructions are shortened; mirror it in the testing host.
  • Extend the existing conditional-configuration regression and cover the exact limit and blank-input negative controls.
  • Document the warning in the SDK declaration. No public protocol, permissions, dependency, generated-file, or stored-data changes.
  • Changed-line count: 46 total additions plus deletions across 5 files (git diff --numstat origin/main).

How you verified

  • The focused warning assertion fails against unchanged trusted main in two clean checkouts at 411eac54ac16d0a3cb57d1de8396d37564884a73: expected two warnings, received none. The existing output-length assertion passes.
  • The focused regression passes after the repair.
  • pnpm exec turbo run test --filter=@get-bb/plugin-sdk: 373 tests pass.
  • pnpm exec turbo run test --filter=@bb/server -- test/services/plugins/plugin-agent-tools.test.ts test/services/plugins/plugin-sdk.test.ts: 34 tests pass.
  • pnpm exec turbo run typecheck --filter=@get-bb/plugin-sdk --filter=@bb/server: passes.
  • Trusted-base full Turbo build passes; changed-file formatting and git diff --check pass. Neither affected package defines a lint task.

Fixes #5565

AGENT GENERATED

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plugin agents.configure() instructions over 4096 characters are cut off without any runtime signal

1 participant