Skip to content

Claude Code: positive bb-bridge capability probe after session start and compact #3628

Closed as not planned

Description

@uje-m

The workflow

A Claude Code root that loses BB-injected mcp__bb-bridge__* tools cannot detect the loss. ToolSearch returning No matching deferred tools found is byte-identical to "this tool was never registered." From inside the session, "the bridge is down" and "this capability does not exist" are indistinguishable.

On thr_ud7k5xhiud that meant ~28 hours of routing around the surface with a hand-maintained text file and queued plan corrections that could not be written, while a scheduler kept re-dispatching already-shipped work because nothing could mark slices done.

This filing is a visibility proposal only. It is not implementation-approved. It is blocked on the causal fork in the companion bug (omitted-at-attach vs Claude deferred-index loss). Do not start a fix from this issue.

What happens today

After host-daemon reconnect + /compact, ToolSearch for ultragoal / mcp__bb-bridge__ultragoal_* / mcp__bb-bridge__omega_operator_ack_v1 returned:

No matching deferred tools found.

No error, no session-visible compact warning, no positive "bridge attached, N tools" signal. Recovery was an owner-authorized bb.service restart that reconstructed the Claude process. Receipts: /home/uje/jobs-op/tmp/ug/bb-restart/pre-restart.txt and post-restart.txt (MainPID 3221292 → 1798277 at 2026-09-14 11:42:55 WIB). Jsonl: /home/uje/.claude/projects/-home-uje-codes-omegacode-wt-integration/abd8455f-d01b-4e58-8ad8-968bd3fa50c5.jsonl.

Configure-skip is unproven and retracted for that incident; see the companion bug.

What you would expect

A positive capability/bridge-health signal, not a better error string on ToolSearch.

Operator ranking from the affected root:

  1. Highest value: a probe a root can call at session start and after any compact_boundary that answers "the bb-bridge MCP is attached and here is the tool set," so absence is a detectable state.
  2. Cheaper visible signal: emit one line into the session at compact time when construction had dynamicTools and the deferred catalog is now empty.

Either must be proven against the companion bug's compact/reconnect fixture: if tools were omitted at attach, the probe must report empty/unattached; if Claude dropped the deferred index, the probe must still see BB's construction set (or honestly say the catalog is empty). Observability proof is required before picking a shape.

Context and alternatives

  • Companion bug (this issue is blocked by it): Claude Code bb-bridge deferred tools vanish after compact/reconnect until process rebuild.
  • Related but different: #2384 (configure false→true on release/resume). A probe would also have made that miss visible; it is not this proposal's repro.
  • Workaround today: reconstruct the provider process (bb.service restart or idle reap). A busy root is not idle-reaped.
  • UltraGoal healStalls / nudge_count is plugin-side and out of scope here.
  • No code change is authorized from this filing.

Blocked by

AGENT GENERATED

Activity

  1. uje-m commented on Sep 14, 2026

    @uje-m
    Author

    Ownership: BB-side visibility proposal for the same Omega incident. Not implementation-approved. Blocked on #3626 (native blocked-by could not be applied; permission addBlockedBy denied).

    No code change is authorized from this filing.

  2. added
    providers
    provider-claude-code
    on Sep 14, 2026
  3. bb-slop-cop commented on Sep 14, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied Type: Feature, Priority: Medium, Effort: High, and labels: providers, provider-claude-code. No existing classification values were present; all writes were verified.

    This adds a session-visible bridge-health capability. Medium priority reflects meaningful diagnostic value with a recovery workaround; High effort reflects the new interface and lifecycle design. No reproduction report or PR: the verified Type is Feature, so this rule skips bug reproduction and fixes.

    AGENT GENERATED

  4. SawyerHood commented on Sep 14, 2026

    @SawyerHood
    Collaborator

    Consolidated into #2608 at the owner’s request. The canonical tracker now preserves this report’s additional evidence and acceptance requirements. Closing as duplicate/covered scope, not as fixed.

    AGENT GENERATED

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

    provider-claude-codeproviders

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions