Commit Graph
16 Commits
Author SHA1 Message Date
GamerDubz 104c1c189e test(clients): verify native OpenCode integration against OpenCode V2 (#10178)
* test(clients): verify native OpenCode integration against OpenCode V2

The OpenCode client lane targeted OpenCode V1 (opencode-ai@1.18.35) and
could not pass against OpenCode V2. The V2 skill tool names its argument
`id`, so the lane's `{ name: ... }` call was rejected with "id: Missing
key" and the personal skill never loaded.

Bring the lane to OpenCode V2:

- Call the skill tool with `id` under V2 and keep `name` for V1.
- Register REA in the native `mcp.servers` table and read additional skill
  sources from the `skills` array; grant tool access with a `permissions`
  ruleset. The V1 dialect remains selectable with
  `REA_VERIFY_OPENCODE_DIALECT=v1`.
- OpenCode V2 groups MCP tools behind its Code Mode tool by default, so the
  lane sets the documented `codemode: false` server option to observe the
  forwarded catalog as direct function tools. REA's refresh preserves that
  client-owned option, which the lane now covers.
- Start a private server under V2. The shared background service keeps the
  environment it started with and would read the caller's own configuration
  instead of the lane's isolated one.
- Isolate the home for both platforms. The lane set only USERPROFILE, so a
  POSIX run resolved the caller's real home for the shared skill directory.
- Take the expected catalog from the runtime under test, so
  `REA_VERIFY_RUNTIME_ROOT` can point at an installed package whose catalog
  differs from this checkout.
- Record the dialect, plugin-isolation mechanism and tool surface in the
  receipt. OpenCode V2 dropped OPENCODE_PURE, so the V1 isolation claim no
  longer described what ran.

The lane no longer refuses Windows, so the OpenCode integration can be
verified on a native Windows host.

* fix(clients): isolate OpenCode verifier config and coverage claims

Clear inherited OPENCODE_CONFIG and OPENCODE_CONFIG_CONTENT so the lab
cannot load the caller's configuration layers. Record V2 as verified
only on native Windows and leave POSIX V2 explicitly unverified.

* fix(clients): pin OpenCode verifier to a full REA catalog

Clear inherited REA_MCP_TOOL_FAMILIES and set REA_MCP_TOOL_CATALOG_PROFILE=full so setup and the MCP child always advertise the complete catalog the fixture asserts.

* fix(ci): pin Native MCP OpenCode checks to @opencode/cli@2.2.7

The verifier defaults to the OpenCode V2 dialect, but the Native MCP
registration workflow still installed opencode-ai@1.19.6 without selecting
v1. Point the matrix at the published V2 CLI that supports the V2 config
and --standalone.

* fix(clients): harden OpenCode V2 verifier modes and launch seeds

Keep Code Mode enabled for scoped-chat and assert the paginated catalog
search, clear inherited REA MCP capacity/schema settings that can reject
fixture calls, and accept Aube-managed shim launchers alongside the
raw Node/script/mcp shape.

* fix(clients): only require Code Mode catalog search for OpenCode V2

* fix(clients): clear OpenCode verifier ambient budget and Windows env aliases

Unset inherited REA_AGENT_RESULT_BUDGET_BYTES so the fixture keeps complete
Evidence, and delete cleared OpenCode/REA launch seeds case-insensitively
before spawn so mixed-case Windows aliases cannot survive.

* fix(clients): require Windows packaged OpenCode runtime and isolate V2 ancestors

Document that Windows call verification needs REA_VERIFY_RUNTIME_ROOT with a
matching packaged runtime, and refuse OpenCode V2 lab runs when an ancestor
project configuration file would join the private server.

* fix(clients): qualify POSIX OpenCode V2 coverage and dialect Windows hint

Limit checked-in POSIX V2 claims to scoped-chat catalog search and point
Windows preflight recovery at the selected OpenCode package major.

* fix(clients): match OpenCode runtime contracts and clear registration seeds

Reject a REA_VERIFY_RUNTIME_ROOT whose package version or tool catalog
differs from this checkout, and clear every selected registration setting
from SetupRegistrationEnvironment instead of a hand-maintained MCP list.

* fix(verification): bind OpenCode fixtures to selected runtime

* fix(verification): refuse discovered OpenCode plugin sources

* test(verification): reject plugins before starting OpenCode

* test(ci): exercise packaged OpenCode on Windows

* fix(verification): type the selected-runtime fixture reader

* chore(ci): use pinned npm for Windows client proof

* docs(verification): distinguish Windows runner isolation

* test(verification): keep compiled fixtures in the built test lane

* test(verification): type catalog fixtures without generated output

* fix(ci): classify automated OpenCode verification
2026-12-02 13:39:47 +08:00
morluto 8e18bdecef test(clients): check configured MCP catalogs in native harnesses (#15121)
* test(clients): check configured MCP catalogs in native harnesses

* test(opencode): resolve the native CLI in the isolated home

* ci(clients): identify native catalog discovery in the job log

* test(ci): isolate native clients and preserve registration failures
2026-11-29 18:03:55 +00:00
Vincent Koc 6cdab224f9 refactor(verify): share native client receipt context (#14568) 2026-11-26 01:24:37 +08:00
Vincent Koc b3f4da9404 refactor(verification): share client version probes (#14541) 2026-11-25 14:43:05 +00:00
Vincent Koc 8d881cef7b refactor(verifiers): share installed skill checks across three clients (#14521)
* refactor(verifiers): share installed skill validation across three clients

* refactor(verifiers): reuse setup checks for Grok and OMP

* refactor(verifiers): keep setup reuse with its existing change
2026-11-25 08:29:40 -05:00
Vincent Koc 74996b5ba6 refactor(verify): share client receipt publication (#14317) 2026-11-24 06:30:58 -05:00
Vincent Koc d7846f2834 refactor(verify): share client setup and idempotence checks (#14326)
* refactor(verify): share client setup and idempotence checks

* refactor(verify): select OpenCode configuration from fixed filenames
2026-11-24 06:29:17 -05:00
Vincent Koc 4f0d160254 refactor(tooling): share verifier fixture and lint helpers (#14318)
* refactor(tooling): share verifier fixture and lint helpers

* test(clients): retain tool messages in verifier model substitutes
2026-11-24 09:23:14 +00:00
morluto 3f88f69746 feat(verify): allocate kept verifier artifact directories through VerifierFixture (#11091)
The agent-client verifiers keep their lab directory as the run's artifact record (receipt, transcripts, profiles, Evidence) and name it as artifacts in the receipt, so it is not a fixture root that release should remove. VerifierFixture.keepArtifacts allocates such a directory canonically, never removes it, and names it on stderr at allocation so a run that fails before its receipt still reports where its artifacts are. The 11 client verifiers use it, and the verifier-fixture-root baseline shrinks by 11 sites.
2026-11-15 20:19:27 +08:00
morluto 7bcefead69 test: strengthen and prune audited test coverage (#8573)
* test: strengthen and prune audited test coverage

* test: require delivered DeepSeek skill instructions

* test: keep schema fixture types private

* test: verify Gemini receives skill instructions

* test: bind Qwen skill evidence to its tool result

* test: report NativeAOT verifier checks precisely

* fix: verify Ghidra cleanup paths reliably

* fix: verify Command Code skill activation

* test: tighten cleanup and fixture checks

* test: verify packet capture evidence is recorded

* fix: report HTTP3 capture provenance accurately

* test: preserve resource coverage through MCP

* test: prune repeated assertions and retain cancellation identity

* fix: validate client verifier fixture paths

* test: skip Copilot verifier cases on Windows

* test: keep verifier setup target relative
2026-11-02 02:13:32 +08:00
morluto 554816becc refactor(verification): centralize native client result discovery 2026-10-26 15:40:34 +08:00
morluto f4cc6c85ef refactor(verification): share native client fixture assertions 2026-10-26 15:34:11 +08:00
morluto 2250e67bc2 fix(verifiers): consolidate native client command lifetimes
Migrate the remaining native verifier commands to shared ownership with explicit stdin contracts, command-before-fixture cleanup, and failure receipts. Preserve observed catalog counts and unknowns, retained artifacts, native assertions, and selected launch inputs.

Remove the obsolete raw exec export and share output persistence across native verifiers. Exercise actual entrypoints with authored failed preflights and acknowledged descendants, plus filesystem failures and opaque error preservation.
2026-10-24 19:40:50 +08:00
c4aaf813e0 fix(javascript): retain selected application paths in Evidence
Record the admitted selected path separately from canonical artifact identity in successful and partial Evidence. Anchor relative inputs consistently across both CLI routes using the existing caller-path owner.

Adapt shared client verifier assertions and boundary coverage from PR #5261, and the dedicated-route anchoring correction proposed in PR #5265. Historical parsing remains independent of live paths, including legacy records without the parameter.

Validation: 118 focused tests in eight files, static and docs checks, discovery, and installed Gemini CLI 0.29.5 loopback verification of 207 schemas/241 examples passed. Synthetic static-analysis fixtures; no live Google API or native target execution.

Fixes #5258

Co-authored-by: kwakhyun <khyun2348@naver.com>
Co-authored-by: vishal-tambi <tambivishal3@gmail.com>
2026-10-20 00:37:45 +08:00
morluto 4d4631ac94 test: harden verification fixtures and runtime coverage
Use exact discovered test identities, production MCP sessions and byte-exact setup backups. Add CLI signal cleanup coverage and independent Ghidra, Go and firmware verification assertions; prune redundant test configuration and preserve platform limits.
2026-10-14 08:59:27 +08:00
Ysopwnable 539a0f95b5 test(clients): verify native OpenCode integration (#1546) 2026-10-10 19:51:30 +08:00