Skip to content

Commit 7190c69

Browse files
authored
docs: add v0.1.4 changelog and fix CI docs-only skip (#11)
- Add v0.1.4 changelog entry - Fix docs-only CI skip using Hyperlight's proven pattern: explicit code paths filter + github-script comparison (replaces broken negation pattern) Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent 0920071 commit 7190c69

File tree

2 files changed

+40
-19
lines changed

2 files changed

+40
-19
lines changed

.github/workflows/pr-validate.yml

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,45 @@ permissions:
1717
pull-requests: read
1818

1919
jobs:
20-
# Skip heavy CI when only docs change (README, CHANGELOG, docs/, etc.)
21-
# Note: skills/**/*.md and patterns/**/*.md are runtime content with
22-
# integrity tests — they must NOT be skipped.
23-
changes:
24-
name: Detect Changes
20+
# Detect docs-only PRs to skip heavy CI (same pattern as hyperlight)
21+
docs-pr:
2522
runs-on: ubuntu-latest
2623
outputs:
27-
code: ${{ steps.filter.outputs.code }}
24+
docs-only: ${{ steps.docs-only.outputs.result }}
2825
steps:
29-
- uses: actions/checkout@v6
30-
with:
31-
fetch-depth: 2
3226
- uses: dorny/paths-filter@v3
33-
id: filter
27+
id: changes
3428
with:
3529
filters: |
30+
docs:
31+
- '**/*.md'
3632
code:
37-
- '**'
38-
- '!**/*.md'
33+
- 'src/**'
34+
- 'plugins/**'
35+
- 'builtin-modules/**'
36+
- 'tests/**'
37+
- 'scripts/**'
3938
- 'skills/**'
4039
- 'patterns/**'
40+
- 'package.json'
41+
- 'package-lock.json'
42+
- 'tsconfig.json'
43+
- 'vitest.config.ts'
44+
- 'Justfile'
45+
- 'Dockerfile'
46+
- '.github/workflows/**'
47+
- uses: actions/github-script@v7
48+
id: docs-only
49+
with:
50+
script: |
51+
return '${{ steps.changes.outputs.code }}' !== 'true';
52+
result-encoding: string
4153

4254
# Lint, typecheck, and unit tests (needs KVM for sandbox tests)
4355
lint-and-test:
4456
name: Lint & Test
45-
needs: [changes]
46-
if: needs.changes.outputs.code == 'true'
57+
needs: [docs-pr]
58+
if: needs.docs-pr.outputs.docs-only != 'true'
4759
runs-on: [self-hosted, Linux, X64, "1ES.Pool=hld-kvm-amd"]
4860
steps:
4961
- uses: actions/checkout@v6
@@ -73,8 +85,8 @@ jobs:
7385
# See: https://github.com/hyperlight-dev/hyperagent/issues/1
7486
build-and-test:
7587
name: Build & Test (${{ matrix.hypervisor }}-${{ matrix.config }})
76-
needs: [changes]
77-
if: needs.changes.outputs.code == 'true'
88+
needs: [docs-pr]
89+
if: needs.docs-pr.outputs.docs-only != 'true'
7890
strategy:
7991
fail-fast: false
8092
matrix:
@@ -134,8 +146,8 @@ jobs:
134146
# Build Docker image (just setup clones deps so Dockerfile COPY works)
135147
build-docker:
136148
name: Build Docker Image
137-
needs: [changes]
138-
if: needs.changes.outputs.code == 'true'
149+
needs: [docs-pr]
150+
if: needs.docs-pr.outputs.docs-only != 'true'
139151
runs-on: ubuntu-latest
140152
steps:
141153
- uses: actions/checkout@v6
@@ -170,7 +182,7 @@ jobs:
170182
# Gate PR merges on all jobs passing
171183
ci-status:
172184
name: CI Status
173-
needs: [changes, lint-and-test, build-and-test, build-docker]
185+
needs: [docs-pr, lint-and-test, build-and-test, build-docker]
174186
if: always()
175187
runs-on: ubuntu-latest
176188
steps:

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [v0.1.4] - 2026-03-24
8+
9+
### Fixed
10+
11+
- **Plugin schema extraction** — Schema extraction failed on compiled `.js` files, causing `applyInlineConfig` to find no recognised keys and `allowedDomains` to never be set. Now prefers `.ts` source for schema parsing (read-only) with TOCTOU-safe fallback to `.js`
12+
- **Pre-approved plugin enable** — Fast-path (approved plugins skip audit) failed to call `loadSource()`, leaving `plugin.source` null. `verifySourceHash()` then returned false, silently disabling the plugin on sandbox rebuild
13+
- **CI docs-only skip** — PR validation now skips heavy CI jobs (lint, build, test) when only markdown files change. `skills/**` and `patterns/**` are treated as code (they have integrity tests)
14+
715
## [v0.1.3] - 2026-03-24
816

917
### Fixed
@@ -98,6 +106,7 @@ Initial public release.
98106
- Path jailing for filesystem plugins
99107
- SSRF protection for fetch plugin (DNS + post-connect IP validation)
100108

109+
[v0.1.4]: https://github.com/hyperlight-dev/hyperagent/releases/tag/v0.1.4
101110
[v0.1.3]: https://github.com/hyperlight-dev/hyperagent/releases/tag/v0.1.3
102111
[v0.1.2]: https://github.com/hyperlight-dev/hyperagent/releases/tag/v0.1.2
103112
[v0.1.1]: https://github.com/hyperlight-dev/hyperagent/releases/tag/v0.1.1

0 commit comments

Comments
 (0)