Commit Graph
62 Commits
Author SHA1 Message Date
Wayner Barrios 68bfa42ccf Keep the sandbox documentation check in sync with the README 2026-10-19 10:13:24 -04:00
Wayner Barrios fccd8763a8 Update the skills for OpenCode 2 and keep OpenCode 1 support 2026-10-19 01:48:34 -04:00
Wayner Barrios d3f8e1786f Update counts to 55 skills and register original humanizer with sandbox 2026-10-05 23:26:01 -04:00
Yefta Sutanto 4dfff60ff5 refactor(opencode): simplify the dual-host plugin and stop sharing agent state
- Drop the @opencode/plugin dependency: Plugin.define is an identity
  function, and both hosts load a plain { id, setup, server } object.
  This removes ~3,700 lockfile lines from every OpenCode 1 and 2 install.
- Remove the OpencodePowerPack named export. OpenCode 1.18.7+ uses the
  default export's server() and never scans named exports when it exists.
- Derive the OpenCode 2 rulesets from the OpenCode 1 permission maps so
  the read-only policy has a single source, and parse SKILL.md once.
- Build fresh agent definitions per hook call. OpenCode 2 appends global
  rules to agent permissions in place, and the shared module array leaked
  those rules between code-explorer and code-architect.
- Un-export eval runner helpers that nothing imports.
2026-09-24 10:39:25 +10:00
Yefta Sutanto 422d54c592 feat(opencode): adapt the plugin to OpenCode 1 and 2 from one entrypoint
OpenCode 1 calls the default export's server() hook while OpenCode 2
calls setup(), so a single module can support both:

- Keep the original config hook (config.skills.paths and config.agent)
  and expose it through server() plus the legacy OpencodePowerPack named
  export for releases that only discover named exports.
- Keep the V2 skill and agent transforms for OpenCode 2 unchanged.
- Build both the V1 permission maps and the V2 ordered rulesets from the
  same SKILL.md frontmatter.
- Extend the smoke test to verify both hosts: the OpenCode 1 path asserts
  skill-derived commands and agent permissions from the REST API, and the
  OpenCode 2 path keeps the verifier plugin.
- Run the smoke matrix on 1.18.7 and 2.0.14, and advertise >=1.18.7.
2026-09-23 20:00:00 +10: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 7f7f0912dc Prepare OpenCode Power Pack for the HOL plugin registry
Add a least-privilege HOL Guard workflow, scanner policy, security reporting guidance, dependency monitoring, and immutable GitHub Action references. Align the Codex marketplace with its local plugin source and keep scanner verification reproducible for the awesome-ai-plugins submission.
2026-08-17 14:51:12 -05:00
Wayner Barrios 65a868eb14 Present the native sandbox as a version 0.5.0 release highlight
Add a complete README quick start for Codex, OpenCode, Claude Code, and Pi, explain capability profiles and platform requirements, preserve the shell-contained security boundary, and protect the documentation with regression coverage.
2026-08-17 14:49:20 -05:00
Wayner Barrios 689c148ddf Publish verified release artifacts without rerunning lifecycle scripts
Rely on the required release CI before uploading to GitHub Packages so the immutable version 0.5.0 tag can be mirrored without inheriting registry configuration inside package tests.
2026-08-17 14:11:17 -05:00
Wayner Barrios c26096550c Keep packaged installation tests independent from the publishing registry
Use the public npm registry for temporary consumer installations so release workflows can publish to GitHub Packages without redirecting test dependencies away from npmjs.
2026-08-17 14:00:15 -05:00
Wayner Barrios 11d55d11aa Verify credential write isolation according to each native sandbox backend
Accept Bubblewrap's disposable shadow write and Seatbelt's direct rejection while requiring both platforms to preserve the protected host key.
2026-08-17 01:23:43 -05:00
Wayner Barrios 4a1cdf22a4 Keep sandbox runtime resources private while preserving portable Git inspection
Create upstream proxy sockets, generated certificates, and temporary files inside each command's disposable root, and disable mutable host system Git configuration without broadening filesystem access.
2026-08-17 01:05:31 -05:00
Wayner Barrios 932bd0314d Make native sandbox checks work across macOS temporary paths and Linux filtered network proxies
Add a narrow Seatbelt metadata grant for the /var symlink and force the loopback integration fixture through the runtime proxy.
2026-08-17 00:48:28 -05:00
Wayner Barrios f6677eec96 Report native sandbox violations and verify disposable temporary mounts
Enable correlated macOS Seatbelt diagnostics for failed commands so runtime denials identify the exact blocked operation while preserving exit codes and cleanup. Update the Linux shared temporary-path integration assertion to verify its isolated tmpfs behavior and confirm that no host file is created.
2026-08-17 00:33:11 -05:00
Wayner Barrios f45f7cfc3d Complete portable script execution under native macOS containment
Add the missing Seatbelt interpreter permission through an exact-version, fail-closed compatibility shim so shell and env shebang commands work without weakening filesystem visibility. Align the Linux credential-directory test with its disposable tmpfs behavior and document when the temporary upstream compatibility layer can be removed.
2026-08-17 00:20:19 -05:00
Wayner Barrios 432ce60bb2 Resolve native sandbox executable paths safely across Linux and macOS
Allow bounded parent directories for symlinked interpreters required by Bubblewrap, expose the macOS shell selector, and reject executable paths that overlap credential directories even through filesystem aliases. Add unit and real containment regressions for these platform-specific cases.
2026-08-16 23:54:05 -05:00
Wayner Barrios 3194dadffd Keep sandbox readiness and runtime resources consistent across Linux and macOS
Resolve and expose the pinned seccomp helper before Linux execution, make doctor validate the same platform resources, filter invalid host environment keys from backend declarations, and canonicalize cross-platform path assertions so real containment checks behave consistently on GitHub runners.
2026-08-16 19:03:06 -05:00
Wayner Barrios ab74f6a2ce Add a fail-closed native sandbox runner for portable skill execution
Pin Anthropic's sandbox runtime and translate trusted skill profiles into lightweight, on-demand filesystem, network, credential, and process-tree restrictions. Add readiness diagnostics, secure command and Git workspace discovery, signal-safe cleanup, Linux and macOS integration coverage, packaged-runtime checks, and practical compatibility guidance for Codex, Claude Code, OpenCode, and Pi.
2026-08-16 13:43:54 -05:00
Wayner Barrios 3be32f0563 Introduce a shared advisory sandbox policy contract for Codex, OpenCode, Claude Code, and Pi
Define versioned capability profiles for every bundled skill, add policy resolution and diagnostic commands, preserve sandbox metadata during selective installation, and cover the contract and packaged artifacts with tests.
2026-08-16 12:08:18 -05:00
Wayner Barrios f198a1823f ci(packages): publish releases to GitHub Packages 2026-08-13 16:46:25 -05:00
Wayner Barrios 23f89b44d8 fix(branding): sync logo with v0.4.0 2026-08-13 16:38:32 -05:00
Wayner Barrios 66eac6e8db feat: add Claude Code packaging and skill quality gates (#26)
- add native Claude Code plugin and marketplace manifests
- document Claude Code installation, invocation, updates, and removal
- reduce routing metadata and enforce a catalog budget
- validate Agent Skills and Claude manifests in CI
- remove wooyun-legacy from the package and provenance
- update package metadata and tests for the 54-skill catalog
2026-08-13 17:06:24 -04:00
Wayner Barrios 086e9bae2f Add selective npm skill installer and distinguish code review workflows
Adds selective skill installation, curated profiles, dependency expansion,
safe replacement, provenance preservation, distinct comprehensive and focused
code-review identities, complete documentation, and npm release preparation
for version 0.4.0.
2026-08-13 16:25:44 -04:00
Wayner Barrios ab04919087 Add 10 more piolium security skills (MIT)
GitHub Actions prompt-injection audit, threat modeling, differential
review, variant analysis, SARIF parsing, Semgrep/CodeQL scanning and
rule authoring, and WooYun-derived web vuln methodology. Generalized
semgrep's piolium-specific subagent references. Skill count 45 -> 55.
2026-08-02 15:54:18 -04:00
Wayner Barrios f2695df75b Add 25 Hugging Face skills (Apache-2.0)
Ports huggingface/skills: hf CLI, cloud/SageMaker, training (TRL,
vision, sentence-transformers), Spaces/Gradio, papers, and
Transformers.js. Condensed 4 oversized skills, full UPSTREAMS.json
provenance, skill count 20 -> 45.
2026-08-02 14:25:44 -04:00
Wayner Barrios fbad717a23 Add 3 firstpick + 5 piolium skills (MIT)
Code quality, design patterns, paper summarization, plus 5 security
review skills (supply-chain risk, sharp edges, insecure defaults,
false-positive check, vuln reporting). Full UPSTREAMS.json provenance,
skill count 11 -> 19.
2026-08-02 14:01:03 -04:00
Wayner Barrios dd64d4a7e0 Add ai-slop skill, ported from omp-designer (MIT)
Adds a design rubric for detecting generic AI output, with full
UPSTREAMS.json provenance. Updates skill count from 11 to 12 across
package metadata, README, and tests.
2026-08-02 13:34:10 -04:00
Wayner Barrios 7f0ab9210d Add Pi package support and installation 2026-07-31 19:49:44 -04:00
Wayner Barrios 56620910be Highlight Codex support and installation 2026-07-31 19:38:01 -04:00
Wayner Barrios 9a41e8621a Add Codex plugin distribution 2026-07-31 19:22:41 -04: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 d2e9b4ee88 Document behavioral evaluation workflow 2026-07-31 16:50:05 -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
Wayner Barrios e3a1a098e7 Clarify Claude rule loading 2026-07-28 17:06:23 -04:00
Wayner Barrios b63665efd8 Enforce prompt safety recovery 2026-07-28 16:11:46 -04:00
Wayner Barrios af67900ca3 Harden prompt trust boundaries 2026-07-28 15:57:23 -04:00
Wayner Barrios f2e826d874 Fix portable rule resource loading 2026-07-28 15:48:10 -04:00
Wayner Barrios 15a497f766 Correct project rules resolution 2026-07-28 15:38:42 -04:00
Wayner Barrios 95c6ffbedd Clarify MCP negotiation tests 2026-07-28 15:30:21 -04:00
Wayner Barrios 35257451b1 Modernize MCP server guidance 2026-07-28 15:18:57 -04:00
Wayner Barrios 7ccfa329af Separate frontend planning scopes 2026-07-28 14:09:20 -04:00
Wayner Barrios ad211a879c Complete review scope guarantees 2026-07-28 11:41:42 -04:00
Wayner Barrios ec49e95cbe Freeze security review scope 2026-07-28 11:30:37 -04:00
Wayner Barrios 8d4eacbba6 Harden security review contracts 2026-07-27 15:33:27 -04:00
Wayner Barrios ac297607ff Clarify code review recovery order 2026-07-27 15:27:14 -04:00