Skip to content

chore(scripts): list the agent CLIs whose latest release Ovis would read from the screen - #4901

Merged
devswha merged 4 commits into
mainfrom
feat/harness-drift-check
Nov 27, 2026
Merged

devswha merged 4 commits into
mainfrom
feat/harness-drift-check

Conversation

@devswha

@devswha devswha commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Change

Ovis reads an agent as data only on the versions it was measured on: each approval adapter's supports (Claude Code, pi, OmO, omp, Copilot) and supportsCodexServer (Codex 0.169 to 0.171). When a newer release comes out, Ovis quietly goes back to reading that agent's terminal and says nothing about it. Nothing told us when that happened.

  • scripts/harness-drift.ts (new): reads each agent's latest version from the npm registry (/<package>/latest, nothing else). It prints a Markdown table of the agents whose latest release is outside its window, and of those whose version could not be read. It exits 1 when the table has a row. The windows are not copied into the script: it calls the adapters' own supports and supportsCodexServer. Its only list is RELEASES, each agent's npm package (the package each vendor's own installer puts in place). Loading the script throws when a hooked agent has no entry there.
  • server/approvals/adapters.ts (new): the list of hooked adapters, now in one place, which server/index.ts passes to ApprovalHub as before (same order) and the script reads.
  • docs/development.md: a short "Agent CLI versions" section on what the script checks and what to do with a row.

Nothing runs it in CI. Putting it on a schedule is a workflow change, so it is left for later.

Run today:

| Agent CLI | npm package | Latest | Now |
| --- | --- | --- | --- |
| codex | `@openai/codex` | 0.172.0 | runs without its own server: outside the measured versions |

Note: Claude Code's window has no upper bound (supports is "2.1.286 or later"), so a Claude Code 3.x would never show up here.

Reviews

The omo gate review (CLEAR, two LOWs) and one Codex adversarial review ran on cc883988f7. This push (3889b4a7cc) addresses them:

  • (MEDIUM, Codex) A pre-release latest (0.172.0-rc.1) passed the raw string to supports. It is now cut to its dotted number with parseVersion, as the server reads an agent's --version, and a version with no number counts as unread.
  • (MEDIUM, Codex) Outside its window, pi does not just fall back to screen reading: it runs commands without the approval dialog the hook adds. The docs and the script's header now say so.
  • (LOW) The table names the link a drifted agent runs without (Ovis's hook, or Codex's own server) instead of a list of what each one gives. The header no longer names omp 19 as drift. The test's expected roster comes from APPROVAL_ADAPTERS. The docs say where Codex's window lives and that an unread release is rerun.

Not changed (LOW): the tests do not run the CLI with stubbed npm answers.

Validation

  • scripts/harness-drift.test.ts (pure, no network): a fake window lists the CLI whose latest release is outside it and the one whose version could not be read, and leaves out the one inside it. Against the real windows, a 0.0.1 release for every agent lists all six, so each window is actually consulted.
  • bun scripts/harness-drift.ts: the table above, exit 1.
  • bun test scripts/harness-drift.test.ts server/approvals: 170 pass, 0 fail. bun run typecheck: ok.
  • bun run check fast: ok (typecheck, build, unit tests: 29428 pass, 0 fail).
  • Browser scripts that import server/index.ts: omo-question-wheel-regression, workspace-rows-regression, herdr-restart-regression: 3/3 pass on bun run check run.

…ead from the screen

scripts/harness-drift.ts compares each agent's latest npm release with the versions Ovis reads it as data on: each approval adapter's supports (now listed once in server/approvals/adapters.ts, which the server's ApprovalHub also takes) and supportsCodexServer. It prints a Markdown table of the agents outside their window or whose release could not be read, and exits 1 when there is one. It reads the npm registry only; nothing runs it in CI yet.
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Documentation
    • Added guidance on supported agent CLI versions, fallback behavior for versions outside supported ranges, and how to check for version drift.
  • Chores
    • Added a check that reports agent CLI releases that are unsupported or unreadable. It exits with a failure status when issues are found.

The server now passes a shared approval adapter array to ApprovalHub. A new script checks configured agent CLI releases against supported version windows and reports unsupported or unreadable releases.

Changes: Agent version support

Layer / File(s) Summary
Centralize approval adapter registration
server/approvals/adapters.ts, server/index.ts
APPROVAL_ADAPTERS exports the five approval adapters. ApprovalHub now receives this array instead of an inline list.
Check agent CLI version support
scripts/harness-drift.ts, scripts/harness-drift.test.ts, docs/development.md
The script checks npm’s latest versions against adapter and Codex server support windows. It reports unsupported or unreadable releases and exits with status 1 when it finds any. Tests cover supported, unsupported, and unreadable releases. The documentation describes the check and how to update support windows.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Suggested reviewers: yuuuxie, cheol-95

Merge Risk: Minimal · previous review cc883

This adds a manual script that checks whether the latest agent CLI releases fall inside Ovis's supported version windows, and the server now takes its adapters from one shared list. Production behavior should not change, so the risk of merging is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "chore(scripts): list the agent CLIs whose latest release Ovis would read from the screen" matches the main change: a new harness-drift script that lists agent CLIs whose latest npm release …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description follows the repository template. It has a Change section that explains the problem (silent fallback to terminal reading for agent CLI releases outside their measured version windows), …
Full details: Title check

Explanation

The title "chore(scripts): list the agent CLIs whose latest release Ovis would read from the screen" matches the main change: a new harness-drift script that lists agent CLIs whose latest npm release falls outside the adapter support windows, so Ovis would fall back to reading the terminal. It uses a conventional-commit prefix and is specific. The title is slightly long at 88 characters, but it is clear and accurate.

Full details: Description check

Explanation

The description follows the repository template. It has a Change section that explains the problem (silent fallback to terminal reading for agent CLI releases outside their measured version windows), lists the new script, adapter centralization, and docs changes, and states that nothing runs the script in CI. It has a Validation section that lists the commands run (bun test for the drift and approvals tests, bun run typecheck, bun run check fast, and three browser regressions) with results, and it notes that the non-stubbed CLI run was not done. The template's CONTRIBUTING.md and changelog reminder is not addressed. The PR does not mention a changelog.d entry, and the description does not link an issue, so a maintainer could ask for those. Neither gap makes the description largely incomplete.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 1d88a2d and cc88398.

Files selected for processing: 5

  • docs/development.md
  • scripts/harness-drift.test.ts
  • scripts/harness-drift.ts
  • server/approvals/adapters.ts
  • server/index.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 3 remain after this review.

… name the link a drifted agent runs without

Review round: a pre-release npm version is cut to its dotted number (parseVersion) as the server does, a malformed one is reported as unread, the table names the hook or Codex's own server instead of listing what each one gives, the docs say pi runs commands without the hook's approval dialog, and the test's expected roster comes from APPROVAL_ADAPTERS rather than HARNESSES.
@devswha
devswha merged commit 0511655 into main Nov 27, 2026
21 checks passed
@devswha

devswha commented Nov 27, 2026

Copy link
Copy Markdown
Owner Author

Merged through pr-merge at head f39af749f. Seen before the merge was asked for: required checks green, no unresolved thread, no conflict, no hold, main not red, no release in progress. CodeRabbit finished, with no review that names this head.

main had moved since the checks of 3889b4a7c: pr-merge --update merged it in (d1c1355e6), and every required check was green at this head.

It waited in the merge queue behind #4896, whose change overlaps it, before it was updated.

main moved but untouched: merged without update. Its new commits up to f496b06da change no file of this pull request, none imported by one, nothing that decides which checks run, and no core path.

omo gate review (CLEAR) and one Codex adversarial review (gpt-6.2-sol-fast, xhigh) ran on cc88398; the one fix round 3889b4a addresses both Codex MEDIUMs (see PR body). Merged on the lane lead's go for plan step A5. CodeRabbit did not review this head.

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.

1 participant