Skip to content

host: the Model check row names only the Bots this host can test - #3353

Open
HugoXK wants to merge 2 commits into
ThinkFlowLab:mainfrom
HugoXK:dev/3-remote-model-check
Open

HugoXK wants to merge 2 commits into
ThinkFlowLab:mainfrom
HugoXK:dev/3-remote-model-check

Conversation

@HugoXK

@HugoXK HugoXK commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #3352

Bot: FlyBot Dev-3
Owner: Dev-3
Written-by: Dev-3
Reviewer: Birfy

What the row did

The diagnostics report builds modelChecks from every Bot in the live roster — core/src/host/diagnostics.js:535 const bots = Object.values(rt.state.bots) (no remote filter) and :559 modelChecks: bots.map(...). A friend's Bot carries remote, and rt.testModel refuses it before sending anything: core/src/host/models.js:348 throws A friend's Bot runs on its owner's model. with code bot/invalid.

So a team with a friend's Bot printed a row for it in the copied report:

| Model check | One — flybot-remote/x: not tested (Settings → Models → Test connection) |

— a pointer at a Test connection button that can never answer for that Bot.

What changes

:559 now maps only the Bots this host can test:

modelChecks: bots.filter((bot) => !bot.remote).map((bot) => {
  • a roster holding only friends' Bots writes no | Model check | row at all, and facts.modelChecks is [];
  • a row beside a local Bot names only the local verdicts;
  • the rendering at :146-156 and the three states of a local Bot (not tested / passed / the code) are byte-for-byte #3350's contract and are untouched;
  • bots keeps its other uses (models, counts); nothing is tested while the report is built.

Red first

core/test/diagnostics.test.js, on the test-only WIP tree 2bf9b317262d746f5f3a41670ca1edd33925af0b (= branch tip 476da4eb54759bf6515e2dfa9b5a1ea4af6997b0 before the fix, base bab1fe963b65913f5cd1021d30e6598a7f571627), same command twice:

TMPDIR=/tmp DSH_HARNESS=… node --import ./test/harness-resolve.mjs --test --test-timeout=120000 test/diagnostics.test.js

Both runs # tests 97 | # pass 95 | # fail 2:

  1. not ok 72 - the report names no model check for a friend's Bot (#3352) — a friend's Bot is not a check this host can run, actual [{ botId: 'far', name: 'RemotePal' }] vs [], assertion at diagnostics.test.js:1600 (test at :1592).
  2. not ok 73 - the report keeps a local Bot's model check beside a friend's Bot (#3352) — the row is the local Bot's verdict, actual One — ollama/kimi-k3: AUTH (11-23 12:31Z); RemotePal: not tested (Settings → Models → Test connection) vs One — ollama/kimi-k3: AUTH (11-23 12:31Z), assertion at diagnostics.test.js:1624 (test at :1605).

Each assertion has exactly one expected value — no "either/or".

Ran / Not run

  • ran test/diagnostics.test.js → 97/97, 0 fail (twice).
  • ran npm --prefix core test → 3463/3464. The one failure is bench.sh shows a failed pnpm install and leaves no half-built profile (core/test/bench-preflight.test.js:88) — a file and a core/dev/bench.sh this PR does not touch; it fails the same way on untouched base bab1fe963b65913f5cd1021d30e6598a7f571627 in this box (the fixture's /bin/sh has no pnpm under its stripped PATH).
  • ran npm --prefix core run lint → Found 92 warnings and 0 errors. (its arch step wants origin/main, which this worktree has not; run separately below).
  • ran node scripts/ds-bot-patches.mjs check → ok 10 patches apply cleanly in order / ok core/ equals ds-bot/ + patches/ds-bot/; canonical → ok patches/ds-bot/ is what generate writes (generate is a no-op).
  • ran TMPDIR=/tmp node scripts/lint-plugins.mjs → Found 16 warnings and 0 errors., lint-plugins: packed @flybot/workflow imported, rc 0.
  • ran node core/scripts/build-client.mjs --check → rc 0.
  • ran node .github/scripts/changelog.mjs check → changelog: 4 fragment(s) in changelog.d/ are well formed.
  • ran ARCH_DOCS_BASE=bab1fe963b65913f5cd1021d30e6598a7f571627 node core/scripts/check-arch-docs.mjs → arch-docs: OK (6 changed file(s)).
  • not run the plugin suites and npm run verify as one command: this change is core-only and verify would repeat every stage above in one shell this worktree cannot provision (no plugins/*/node_modules); each core stage is listed separately above.

No UI face

The diagnostics report is copied text, not a screen — no layout, page copy, or interactive surface changes, so there is no before/after screenshot to take.

Verification at tip b0e63a138a108c6ff9d820e411cd97c90c721375

  • tip b0e63a138a108c6ff9d820e411cd97c90c721375, tree 816c1671898067d9701b37fe19727191e96d4dd2, base bab1fe963b65913f5cd1021d30e6598a7f571627
  • 6 files, +98/−7: core/src/host/diagnostics.js +5/−2, core/test/diagnostics.test.js +42/−0, docs/subsystems/core-host.md +1/−1, patches/ds-bot/0001-core-fixes.patch +6/−3, patches/ds-bot/0007-version-and-tooling.patch +43/−1, changelog.d/3352.fixed.md +1/−0

Checkpoint

{
  "pr": 3353,
  "claim": "Dev-3",
  "issue": 3352,
  "summary": "The diagnostics report mapped every Bot in the roster into its Model check row, a friend's Bot included, while the connection test refuses one outright (`bot/invalid`: a friend's Bot runs on its owner's model) — so the row named a Bot and pointed at a button that cannot answer for it. The mapping now skips `bot.remote` entries: a host whose roster holds only friends' Bots writes no Model check row, and a row beside a local Bot keeps only the local verdicts. The rendering and the three states of a local Bot (`not tested` / `passed` / the code) are unchanged (#3350), and nothing is tested at build time.",
  "files": [
    "core/src/host/diagnostics.js",
    "core/test/diagnostics.test.js",
    "docs/subsystems/core-host.md",
    "patches/ds-bot/0001-core-fixes.patch",
    "patches/ds-bot/0007-version-and-tooling.patch",
    "changelog.d/3352.fixed.md"
  ],
  "checks": {
    "ran": "npm --prefix core test",
    "result": "3463/3464 — the only failure is bench-preflight.test.js:88, which fails the same way on the untouched base in this box",
    "at": "b0e63a138a108c6ff9d820e411cd97c90c721375"
  },
  "next": "none — ready for review"
}

@HugoXK

HugoXK commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

@Birfy — verdict request for this tip, once: b0e63a138a108c6ff9d820e411cd97c90c721375.

Tier T2 (Fixes #3352, host diagnostics). enqueue-guard is the only red at this tip and its text is do not enqueue #3353: no Verifier report names the tip b0e63a138a10 — it waits for exactly this report, nothing else. 18 checks = 14 success + 1 failure (that guard) + 2 skipped (live · ubuntu · Node 24 · real model, window check) + 1 cancelled (agent-audience).

What to read: core/src/host/diagnostics.js now builds facts().modelChecks with bots.filter((bot) => !bot.remote); the row's rendering (modelCheckLine) and a local Bot's three states are untouched, so #3350's contract stands. Two new tests in core/test/diagnostics.test.js assert one outcome each — a roster of only a friend's Bot writes no | Model check | row at all, and a mixed roster keeps the local Bot's AUTH while never naming the friend's Bot. Docs line in docs/subsystems/core-host.md, fragment changelog.d/3352.fixed.md, both patch topics regenerated (0001, 0007).

Body frozen at sha256[:16] 9bdd96cbfd230d87, 6045 bytes, updated_at 2026-11-24T04:08:04Z. Please name this 40-char sha in the verdict.

@github-actions github-actions Bot added the risk:T2 Risk tier T2 (host/plugin code or an unnamed path), set by the controller from the diff label Nov 24, 2026
@HugoXK

HugoXK commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

@Birfy: review request for #3353 at tip b0e63a1 (base bab1fe9)

@HugoXK

HugoXK commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

FlyBot 2.0 audit (2026-11-25), read-only. This PR has no 2.0 landing point, so it was not repackaged; it stays open as the v1.0 record. Nothing was closed, retargeted or merged — the owner decides.

It changes core/src/host/diagnostics.js + tests: 0 of 6 paths exist at 2.0 main. The capability is not moved, it is gone — Model check, modelChecks and testModel are 0 hits in the 2.0 tree, and the pinned host diagnostics stops at the Models row. Re-adding a model connection test would be a new feature, not this fix.

Evidence: FLYBOT_2.0_PR_AUDIT_RESULT.md (owner report, 2026-11-25).

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

Labels

risk:T2 Risk tier T2 (host/plugin code or an unnamed path), set by the controller from the diff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

host: the Model check row names a friend's Bot, which this host refuses to test

1 participant