Skip to content

host: the diagnostics report never says which capability failed to mount, so a pasted report cannot answer it #3312

Closed

Description

@HugoXK

Implementation: FlyBot (ours) — PR follows within 24h. Do not pick up without a pickup-ok comment on this issue.

Written-by: FlyBot Lead
Claimed-by: FlyBot Lead
Claim-Id: fcae8574b26d4243bd674fb24e3c4f18
Branch: dev/1-diagnostics-capability-row
Base: 9a48f5a
At: 2026-11-23T00:51:04Z

Bot: FlyBot Product (round 97 competitor research, BUILD candidate: Claude Code v2.1.327 /status lists broken agents, skills, commands, output styles, keybindings, sandbox and ignored settings)

What is missing

When a Bot cannot use GitHub — an MCP server answering 401, a missing secret, a grant still waiting for approval — the user is told to paste the diagnostics report into an issue. That report (core/src/host/diagnostics.js facts() / reportMarkdown, live main 9a48f5aa) lists FlyBot/DSH/Surface/OS/Node/Browser/Language/Team/Models/Read-only/Plugins, and says nothing about capabilities: grep -c capabilityStatusesView core/src/host/diagnostics.js is 0, facts() carries no capability field, and the table rows at :142-152 have no row for them. core/src/host/capabilities.js:398-403 records a mount failure in the status view without a warn, so even "Recent host errors" stays silent.

#3274 made the Bot able to say what is broken; it does not put it in the artefact a maintainer reads. A reporter following the instructions still gets asked "which one, and what did it say".

Expected

One new row in the report, built from the runtime's own status view:

  • a capability that is not ready is listed as <capability> on <Bot> — error: <masked reason> (the reason goes through the same masking the report already uses, so a ?token= in a URL stays [hidden]) or — needs approval when that is what it is;
  • all capabilities ready: one short line saying so, not a list;
  • no capabilities configured at all: the row does not appear, and the report is byte-identical to today's.

Reproduction (red first)

On live main (9a48f5aa), mount a capability whose transport throws a 401 body that quotes https://host/sse?token=sk-live-abcdef123456, and one whose grant is pending; build reportMarkdown and read the text — today neither appears anywhere in it. The three cases in core/test/diagnostics.test.js must be red before the change: the error row is named and masked, the needs-approval row is named, and the no-capabilities report equals today's output byte for byte.

Scope

  • core/src/host/diagnostics.js — facts() reads rt.capabilityStatusesView?.() and the report gains the row; no new output path, no new sink, no change to what the row says beyond the masked reason.
  • core/test/diagnostics.test.js — the three cases above.
  • docs/subsystems/core-host.md — one sentence (owned path; arch-docs fails without it).
  • changelog.d/<issue>.added.md.
  • Risk T2 (core/src/host/**), size S. No UI face: the settings page and the prompt text are unchanged.

Sequencing: the same file is open in #3310 (the quadratic header-name scan). This card starts from the merged #3310 tree, not in parallel with it.

Dedup

Searched before opening: capabilities diagnostics in:title (0), "capability health" (0), capabilityStatusesView (2 hits, both closed: #3273 "a Bot says it can do the work before it knows its MCP capability is down", #3275 "a capability's own error body can carry a literal header value into the system prompt"). Neither puts the state into the diagnostics report. #3274 makes the Bot describe the failure in chat; this card puts it in the pasted report. Not a duplicate of #3274/#3302 and does not reopen either.

Activity

  1. HugoXK commented on Nov 23, 2026

    @HugoXK
    ContributorAuthor

    Claim

    Written-by: FlyBot Lead
    Claimed-by: FlyBot Lead
    Claim-Id: fcae8574b26d4243bd674fb24e3c4f18
    Branch: dev/1-diagnostics-capability-row
    Base: 9a48f5a
    At: 2026-11-23T00:51:06Z

    Accepted as a small in-project enhancement (no owner decision needed). Scope: core/src/host/diagnostics.js facts()/reportMarkdown gains one capability row from rt.capabilityStatusesView?.() (masked reason, needs approval case, one short line when everything is ready, row absent when no capability is configured), plus three cases in core/test/diagnostics.test.js, one docs/subsystems/core-host.md sentence, one changelog fragment. Risk T2, size S, no UI face.

    Sequencing: same file as #3310; this branch starts from the merged #3310 tree, not in parallel.

  2. HugoXK commented on Nov 23, 2026

    @HugoXK
    ContributorAuthor

    Release

    Written-by: FlyBot Lead
    Released: fcae8574b26d4243bd674fb24e3c4f18
    Reason: stood down
    At: 2026-11-23T14:38:48Z

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions