Commit Graph
9 Commits
Author SHA1 Message Date
Wayner Barrios fccd8763a8 Update the skills for OpenCode 2 and keep OpenCode 1 support 2026-10-19 01:48:34 -04:00
Yefta Sutanto 3b04f7381d feat(opencode): port the plugin and behavioral evals to the OpenCode 2 plugin API
The OpenCode 2 plugin API replaces the V1 config hook, so the shipped
plugin no longer loads on 2.x. Port every OpenCode surface in one change:

- Register all bundled skills and the three specialist subagents through
  ctx.skill.transform and ctx.agent.transform, with ordered V2 permission
  rulesets and frontmatter-stripped skill content.
- Move the shared definitions helper to .opencode/lib so the plugin
  loader does not discover it as a plugin entrypoint.
- Rewrite the behavioral eval runner around opencode serve, the V2
  session API, and skill attachments; keep the grading, redaction, and
  snapshot evidence model unchanged.
- Port the smoke test to @opencode/cli 2.0.14 and verify registration
  through a companion plugin, and update CI to install dependencies.
- Require OpenCode >= 2.0.0 and depend on @opencode/plugin ^2.0.14.
2026-09-23 18:20:17 +10:00
Wayner Barrios 81a7048aa6 Address whole-branch review findings
- write reports and snapshots atomically, cleaning temp files on failure
- isolate CLI run tests from repository artifacts via env overrides
- cover version-detection failures, unsupported modes, manifest bounds,
  redaction and grading edges, and malformed mutations with tests
- document path overrides and completed plan steps
2026-07-31 17:28:13 -04:00
Wayner Barrios d7bdd12729 Record reviewed behavioral baseline 2026-07-31 16:51:03 -04:00
Wayner Barrios b0a4780acc Add snapshot acceptance and replay to behavioral evaluations 2026-07-31 16:50:05 -04:00
Wayner Barrios cd5c150b08 Harden behavioral evaluation isolation 2026-07-31 16:50:05 -04:00
Wayner Barrios 4a74b6f013 Add opt-in behavioral evaluation runner 2026-07-31 16:50:05 -04:00
Wayner Barrios 6e6b7dd698 Define adversarial evaluation corpus 2026-07-31 16:50:05 -04:00
Wayner Barrios 8feef8cefa Add deterministic behavioral evaluator 2026-07-31 16:50:05 -04:00