Commit Graph

2398 Commits

Author SHA1 Message Date
Peter Steinberger
57e4994caf ci: speed up release validation 2026-04-29 19:55:37 +01:00
Peter Steinberger
c728d604b2 fix: harden parallels smoke harness 2026-04-29 19:44:50 +01:00
Vincent Koc
0126692bf5 fix(docs): allow Thai navigation locale 2026-04-29 10:39:43 -07:00
Vincent Koc
297f4c6e60 feat(i18n): align docs and ui locales 2026-04-29 10:25:47 -07:00
Peter Steinberger
b53ec93ed9 refactor(plugins): split bundled runtime deps staging script 2026-04-29 17:43:46 +01:00
Jesse Merhi
6de9d71bfb feat(security): add GHSA detector-review pipeline and OpenGrep CI workflows (#69483)
* feat(security): add GHSA detector-review pipeline and OpenGrep CI workflows [AI-assisted]

Stand up an end-to-end pipeline that turns every published openclaw GitHub
Security Advisory into a reusable OpenGrep rule, and wire the compiled rules
into manual-dispatch GitHub Actions workflows that publish SARIF to GitHub
Code Scanning.

The pipeline is harness-agnostic: any coding-agent CLI (Rovo Dev, Claude
Code, Codex, OpenCode, or anything you can shell out to) can drive it via
the runner script's --harness flag. Built-in adapters cover the four common
harnesses; --harness-cmd '<template>' supports anything else with shell-style
{prompt}/{model}/{output_file} substitution.

Pipeline pieces:

- scripts/run-ghsa-detector-review-batch.mjs runs your chosen coding harness
  in parallel against every advisory using the agent-agnostic detector-review
  spec at security/detector-review/detector-review-spec.md. Each case
  produces an opengrep general-rule.yml (precise) and broad-rule.yml
  (review-aid), plus a coverage-validated report against the vulnerable
  commit's changed files.
- scripts/compile-opengrep-rules.mjs walks a run directory, rewrites each
  rule's id to ghsa-detector.<ghsa>.<orig-id>, injects ghsa/advisory-url/
  detector-bucket/source-rule-id metadata, and uses opengrep itself to drop
  rules with InvalidRuleSchemaError so the published super-configs load
  cleanly.

Compiled outputs:

- security/opengrep/precise.yml     (336 rules)
- security/opengrep/broad.yml       (459 rules)
- security/opengrep/compile-manifest.json    (per-rule provenance map)

CI workflows (manual workflow_dispatch only):

- .github/workflows/opengrep-precise.yml
- .github/workflows/opengrep-broad.yml

Both install a pinned opengrep, run opengrep scan against src/, upload SARIF
to Code Scanning under categories opengrep-precise / opengrep-broad, and use
continue-on-error: true so findings never block the workflow.

Detector-review spec and assets:

- security/detector-review/detector-review-spec.md   the agent-agnostic spec
  the runner injects into each per-case prompt
- security/detector-review/references/{detector-rubric,report-template}.md
- security/detector-review/scripts/init_case.py
- security/prompt-suffix-coverage-first.md   mandatory prompt addendum that
  enforces coverage-first validation (rule must catch the OG vuln, not just
  pass synthetic fixtures)

Docs:

- security/README.md          end-to-end flow, supported harnesses, regen recipe
- security/opengrep/README.md compiled-config details + recompile recipe

* security: tighten GHSA OpenGrep detector workflow

* chore: refine precise opengrep workflow

* chore: remove stale opengrep metadata

* fix: harden GHSA OpenGrep workflow

* ci: split OpenGrep diff and full scans

* chore: remove performance-only opengrep rule

* ci: use OpenGrep installer path

* chore: enforce opengrep rule metadata provenance

* chore: generalize opengrep rule compilation

* docs: align opengrep rulepack guidance

* chore: support generic opengrep rule sources

* fix: validate opengrep rulepack-only changes

---------

Co-authored-by: Jesse Merhi <security-engineering@atlassian.com>
2026-04-30 02:42:20 +10:00
Peter Steinberger
0519107bd3 refactor(plugins): share bundled runtime deps install script helpers 2026-04-29 17:35:01 +01:00
Peter Steinberger
8cf724a381 fix(plugins): simplify bundled runtime deps staging
* fix(plugins): simplify bundled runtime deps staging

* refactor(plugins): declare bundled root runtime deps

* fix(plugins): isolate pnpm runtime dependency installs

* test(gateway): wait for deferred agent routing calls in server suite

* test(ci): follow extracted update-channel assertions

* fix(plugins): bypass pnpm age gate for bundled runtime deps

* test: drop stale rebase leftovers

* test: preserve mirrored root dependency drift guard

* test: stage mirrored deps in facade fixtures

* fix(plugin-sdk): expose provider setup metadata

* test(plugin-sdk): satisfy spread lint in facade deps fixture

* refactor(plugins): share bundled runtime deps install flow

* fix(plugins): finish runtime deps rebase cleanup

* fix(plugins): remove stale mirror import

* refactor(plugins): centralize bundled runtime root preparation

* fix(plugins): skip Windows pnpm cmd shims

* refactor(plugins): let package managers own runtime deps staging

* fix(plugins): validate staged runtime deps

* fix(plugins): preserve lazy runtime deps fallback
2026-04-29 17:04:56 +01:00
Peter Steinberger
86f473d8b9 ci: isolate moonshot live shard 2026-04-29 17:03:48 +01:00
Peter Steinberger
995aa4f428 fix(ci): restore package validation coverage 2026-04-29 16:05:20 +01:00
Peter Steinberger
ca093d8402 ci: speed up package tarball validation 2026-04-29 15:56:08 +01:00
Peter Steinberger
4bd6dd77ef ci: bound release package tarball checks 2026-04-29 15:12:09 +01:00
Peter Steinberger
7a69069bfc ci: retry release live smokes faster 2026-04-29 13:31:29 +01:00
Val Alexander
efb1a7cb02 fix(control-ui): make chat divider accessible
Make the chat sidebar divider accessible and input-method agnostic.\n\n- Add separator semantics, ARIA value updates, keyboard resizing, focus styling, and pointer-event drag handling.\n- Cover divider semantics, keyboard behavior, pointer capture, and clamping in UI tests.\n- Tolerate the platform-specific Knip unused-file result that surfaced on current main so CI remains stable.
2026-04-29 07:07:16 -05:00
Peter Steinberger
64bd2a2cbe refactor: simplify parallels smoke helpers 2026-04-29 13:04:43 +01:00
Peter Steinberger
39f810911c refactor: convert parallels smoke scripts to typescript 2026-04-29 12:53:58 +01:00
Peter Steinberger
fc49f94ccf test(gateway): drop stale sessions helper allowlist 2026-04-29 12:48:25 +01:00
Peter Steinberger
7214b40a7b test: allowlist split session test helper 2026-04-29 12:44:27 +01:00
Peter Steinberger
1446069707 ci: speed up release live smoke retries 2026-04-29 12:33:52 +01:00
Peter Steinberger
1d494af03a refactor: simplify gateway and e2e test helpers 2026-04-29 12:14:19 +01:00
Peter Steinberger
af31fc938a ci: fix ClawHub plugin peer fixture 2026-04-29 11:58:32 +01:00
Peter Steinberger
4f73baf7d7 refactor(test): split e2e fixture helpers 2026-04-29 11:49:45 +01:00
Peter Steinberger
1dac6ac4c6 ci: retry transient live provider flakes 2026-04-29 11:44:42 +01:00
Peter Steinberger
6b4873d0c1 ci: split plugin contract shards 2026-04-29 11:44:32 +01:00
Peter Steinberger
427d5d4f69 ci: guard unused dead-code files 2026-04-29 11:35:34 +01:00
Peter Steinberger
6cea276976 ci: shard release docker plugin validation 2026-04-29 11:33:24 +01:00
Peter Steinberger
07ca99d2a8 ci: split auto-reply session shard 2026-04-29 11:18:26 +01:00
Peter Steinberger
48683a7f71 ci: split auto-reply reply routing shard 2026-04-29 11:03:55 +01:00
Peter Steinberger
b52197427c refactor: consolidate e2e fixture helpers 2026-04-29 10:49:37 +01:00
Vincent Koc
412434a450 test(plugins): extend external install contract coverage 2026-04-29 02:48:58 -07:00
Peter Steinberger
d7cc8d0b03 ci: split agentic gateway test shards 2026-04-29 10:47:35 +01:00
Vincent Koc
1d61862adb fix(gateway): yield after agent accepted ack 2026-04-29 02:29:02 -07:00
Vincent Koc
24adf2c8e6 fix(plugins): reject malformed channel registrations 2026-04-29 02:29:00 -07:00
Peter Steinberger
a98a4e6ca5 refactor: extract e2e scenario fixtures 2026-04-29 10:25:35 +01:00
Peter Steinberger
f28bc31ecd ci: rename clawsweeper automation labels 2026-04-29 10:18:57 +01:00
Vincent Koc
bc205836ca test(plugins): harden kitchen sink external install 2026-04-29 02:14:44 -07:00
Peter Steinberger
04c650c2c4 test: allow slow packaged agent acceptance 2026-04-29 10:12:00 +01:00
Peter Steinberger
422d139ba0 refactor: simplify e2e fixture helpers 2026-04-29 10:08:34 +01:00
Peter Steinberger
6350dd5ace fix: include deleted files in changed lanes 2026-04-29 10:05:47 +01:00
Peter Steinberger
a4e92c0aa4 chore(gateway): track watch tmux cwd 2026-04-29 09:49:00 +01:00
Peter Steinberger
68ba1e7180 chore(gateway): run watch mode in tmux 2026-04-29 09:42:48 +01:00
Peter Steinberger
beb1d9b481 refactor: extract docker e2e helpers 2026-04-29 09:30:27 +01:00
Peter Steinberger
dc810437e7 test: harden docker mcp smoke requests 2026-04-29 09:27:05 +01:00
openclaw-clownfish[bot]
1a936f225e fix: Found one bug in the new compile-cache prune path: it removes a d (#74067)
* fix: Found one bug in the new compile-cache prune path: it removes a d

* fix(postinstall): keep compile cache pruning resilient

---------

Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-04-29 01:12:59 -07:00
Peter Steinberger
2c0449571c refactor: simplify docker e2e helpers 2026-04-29 09:09:47 +01:00
Peter Steinberger
1c4262ef87 refactor: extract remaining docker e2e scenarios 2026-04-29 08:56:48 +01:00
Vincent Koc
bd3ffd0802 fix(testbox): guard stale OpenClaw Testbox reuse 2026-04-29 00:51:17 -07:00
Peter Steinberger
8ac2dd4cd2 refactor: simplify docker e2e harness scripts 2026-04-29 08:45:42 +01:00
Peter Steinberger
2a02b3bcec test: harden plugin prerelease smoke checks 2026-04-29 08:41:30 +01:00
Peter Steinberger
f8faf40a9e fix: exclude test support from raw fetch guard 2026-04-29 08:36:00 +01:00