Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
3e738c0
fix(build): make declared package binaries executable
Nov 12, 2026
69f1498
docs(architecture): separate session authorization from project disco…
Nov 12, 2026
8d1db4b
feat(registry): allow approved listing of up to 200 sessions
Nov 12, 2026
eb6cd11
refactor(plugin): support native approval and cancellation in shared …
Nov 12, 2026
168cbd4
fix(plugin): cancel broker bootstrap with its plugin generation
Nov 12, 2026
161b4cc
build(plugin): pin published OpenCode V2 dependencies
Nov 12, 2026
9857506
feat(plugin): add paired-host lookup and native result adapters
Nov 12, 2026
713306a
feat(plugin): persist and coalesce queued V2 wake episodes
Nov 12, 2026
33a61d6
feat(plugin): define paired-host capabilities and body-free V2 RPC
Nov 12, 2026
220a2a4
test(security): audit paired V2 host access and fixed wake intent
Nov 12, 2026
3b97e72
feat(plugin): add an explicitly gated paired V2 server adapter
Nov 12, 2026
fdbfd1a
feat(plugin): add body-free V2 terminal notifications and approval focus
Nov 12, 2026
be55eda
feat(plugin): add an audited fixed wake through the public V2 queue
Nov 12, 2026
4ec808d
feat(plugin): add experimental session-bound tools for public OpenCod…
Nov 12, 2026
25c89b7
feat(plugin): expose distinct legacy paired and experimental V2 entries
Nov 12, 2026
1827c82
test(integration): add explicit isolated stock-host fixture configura…
Nov 12, 2026
a3730a1
test(integration): exercise native V2 approvals and correlated replies
Nov 12, 2026
bae0212
test(integration): exercise autonomous V2 wakes across project moves
Nov 12, 2026
54e726e
test(v2): document native acceptance probes and unresolved wake recovery
Nov 12, 2026
6fcc07e
fix(deps): upgrade MCP and Zod to patched releases
Nov 13, 2026
03364bf
fix(broker): bound authenticated uploads and fence credential rotation
Nov 13, 2026
f63457a
chore(tooling): exclude private verification artifacts from formatting
Nov 13, 2026
eb834f5
docs(security): record dependency fixes and remaining upstream adviso…
Nov 13, 2026
f357bcd
build(release): define separate V1 and V2 release profiles
Nov 13, 2026
2bf306b
feat(packaging): build line-specific self-contained npm archives
Nov 13, 2026
3e746b5
test(packaging): validate real installed archives and public declarat…
Nov 13, 2026
01480e1
feat(release): validate tagged source and fail closed on publication …
Nov 13, 2026
a8e35bf
feat(release): publish verified archives with OIDC and monotonic chan…
Nov 13, 2026
c4cd098
ci(release): build archive evidence and isolate protected publication
Nov 13, 2026
c938f1f
docs(release): document phased rollout and acknowledge Roster
Nov 13, 2026
41d465b
test(integration): synchronize SSE recovery on observable readiness
Nov 13, 2026
6bbe94d
test(build): isolate executable checks from browser type libraries
Nov 13, 2026
c58cc33
test(security): guard reviewed SDK advisory exposure
Nov 15, 2026
e6ee18f
feat(security): enforce exact expiring dependency risk exceptions
Nov 15, 2026
9585799
feat(release): verify accepted audit risks in CI and publication
Nov 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 152 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
name: CI

on:
push:
branches: [main, julien@release-v1, julien@opencode-v2, maintenance/opencode-v1, maintenance/opencode-v2]
pull_request:
branches: [main, julien@opencode-v2, maintenance/opencode-v1, maintenance/opencode-v2]
workflow_dispatch: # Evidence-only dry run; never publishes or creates refs/releases.

permissions:
contents: read

jobs:
profile:
runs-on: ubuntu-24.04
outputs:
lines: ${{ steps.config.outputs.lines }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.3.9
no-cache: true
- id: config
run: printf 'lines=%s\n' "$(bun scripts/release/policy.ts matrix)" >> "$GITHUB_OUTPUT"

quality:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: '24'
package-manager-cache: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.3.9
no-cache: true
- run: mkdir -p /tmp/opencode
- run: bun install --frozen-lockfile --ignore-scripts
- run: bun run build
- name: Prepare owned tmpfs fixtures (not a disk-durability gate)
id: fixtures
run: |
test "$(stat -f -c %T /dev/shm)" = tmpfs
fixture_root="$(mktemp -d /dev/shm/agentbus-tests.XXXXXX)"
printf 'root=%s\n' "$fixture_root" >> "$GITHUB_OUTPUT"
echo 'Unit/integration fixtures use tmpfs; disk durability is not established by these tests.'
- run: bun run test:unit
env:
TMPDIR: ${{ steps.fixtures.outputs.root }}
- run: bun run test:integration
env:
TMPDIR: ${{ steps.fixtures.outputs.root }}
- run: bun run typecheck
- run: bun run lint
- run: bun run format-check
- run: bun run audit:static
- run: bun run package-smoke

dependency-audit:
name: Workspace dependency audit (blocking)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.3.9
no-cache: true
- run: bun install --frozen-lockfile --ignore-scripts
- run: bun scripts/security/workspace-audit.ts --out release-artifacts/workspace-audit
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: always()
with:
name: workspace-audit-evidence
path: release-artifacts/workspace-audit/
if-no-files-found: warn
retention-days: 14

archives:
name: Tested archive (${{ matrix.line }})
needs: profile
strategy:
fail-fast: false
matrix:
line: ${{ fromJSON(needs.profile.outputs.lines) }}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: '24'
package-manager-cache: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.3.9
no-cache: true
- run: mkdir -p /tmp/opencode
- name: Pin npm on this ephemeral runner only
run: |
npm install --prefix "$RUNNER_TEMP/release-tools" --ignore-scripts --no-audit --no-fund --package-lock=false npm@12.2.0
printf '%s\n' "$RUNNER_TEMP/release-tools/node_modules/.bin" >> "$GITHUB_PATH"
- run: bun install --frozen-lockfile --ignore-scripts
- run: bun run build
- name: Pack the configured line
env:
RELEASE_LINE: ${{ matrix.line }}
run: bun scripts/release/package.ts --line "$RELEASE_LINE" --out release-artifacts
- name: Smoke actual installed tarball and record production audit
env:
RELEASE_LINE: ${{ matrix.line }}
run: bun scripts/release/smoke.ts --manifest "release-artifacts/$RELEASE_LINE/manifest.json"
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: always()
with:
name: tested-${{ matrix.line }}
path: release-artifacts/${{ matrix.line }}/
if-no-files-found: error
retention-days: 14

production-audit:
name: Installed production dependency audit (${{ matrix.line }}, blocking)
needs: [profile, archives]
strategy:
fail-fast: false
matrix:
line: ${{ fromJSON(needs.profile.outputs.lines) }}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.3.9
no-cache: true
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
digest-mismatch: error
name: tested-${{ matrix.line }}
path: release-artifacts/${{ matrix.line }}
- env:
RELEASE_LINE: ${{ matrix.line }}
run: bun scripts/release/policy.ts audit "release-artifacts/$RELEASE_LINE/manifest.json"
201 changes: 201 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
name: Release tested archive

on:
release:
types: [published]

permissions:
contents: read

# Manual prerequisites: protected main and maintenance/opencode-v1|v2 branches;
# protected annotated opencode-v1/v* and opencode-v2/v* tags; reviewed npm-v1/npm-v2
# environments with exact allowed release tags; npm namespace ownership and trusted
# publishers bound to THIS release.yml + corresponding environment. No token fallback.
# This workflow never creates releases, tags or maintenance branches. Repository
# visibility stays unchanged; our public-provenance policy blocks private sources.
concurrency:
group: release-${{ github.event.release.tag_name }}
cancel-in-progress: false

jobs:
source:
if: github.repository == 'atacama-dev/opencode-agentbus'
runs-on: ubuntu-24.04
outputs:
line: ${{ steps.source.outputs.line }}
sourceCommit: ${{ steps.source.outputs.sourceCommit }}
environment: ${{ steps.source.outputs.environment }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: refs/tags/${{ github.event.release.tag_name }}
fetch-depth: 0
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.3.9
no-cache: true
- id: source
run: bun scripts/release/policy.ts source

build:
needs: source
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ needs.source.outputs.sourceCommit }}
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: '24'
package-manager-cache: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.3.9
no-cache: true
- run: mkdir -p /tmp/opencode
- name: Pin npm without lifecycle scripts (unprivileged build only)
run: |
npm install --prefix "$RUNNER_TEMP/release-tools" --ignore-scripts --no-audit --no-fund --package-lock=false npm@12.2.0
printf '%s\n' "$RUNNER_TEMP/release-tools/node_modules/.bin" >> "$GITHUB_PATH"
- run: bun scripts/release/policy.ts source
- run: bun install --frozen-lockfile --ignore-scripts
- run: bun run build
- name: Prepare owned tmpfs fixtures (not a disk-durability gate)
id: fixtures
run: |
test "$(stat -f -c %T /dev/shm)" = tmpfs
fixture_root="$(mktemp -d /dev/shm/agentbus-tests.XXXXXX)"
printf 'root=%s\n' "$fixture_root" >> "$GITHUB_OUTPUT"
echo 'Unit/integration fixtures use tmpfs; disk durability is not established by these tests.'
- run: bun run test:unit
env:
TMPDIR: ${{ steps.fixtures.outputs.root }}
- run: bun run test:integration
env:
TMPDIR: ${{ steps.fixtures.outputs.root }}
- run: bun run typecheck
- run: bun run lint
- run: bun run format-check
- run: bun run audit:static
- run: bun run package-smoke
- env:
RELEASE_LINE: ${{ needs.source.outputs.line }}
run: bun scripts/release/package.ts --line "$RELEASE_LINE" --out release-artifacts
- env:
RELEASE_LINE: ${{ needs.source.outputs.line }}
run: bun scripts/release/smoke.ts --manifest "release-artifacts/$RELEASE_LINE/manifest.json"
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: always()
with:
name: release-tested-${{ github.run_id }}
path: release-artifacts/${{ needs.source.outputs.line }}/
if-no-files-found: error
retention-days: 30

production-audit:
name: Installed production audit (blocks ALL release writes)
needs: [source, build]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ needs.source.outputs.sourceCommit }}
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.3.9
no-cache: true
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
digest-mismatch: error
name: release-tested-${{ github.run_id }}
path: release-artifacts/${{ needs.source.outputs.line }}
- env:
RELEASE_LINE: ${{ needs.source.outputs.line }}
run: bun scripts/release/policy.ts audit "release-artifacts/$RELEASE_LINE/manifest.json"

dependency-audit:
name: Workspace audit (blocking)
needs: source
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ needs.source.outputs.sourceCommit }}
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.3.9
no-cache: true
- run: bun install --frozen-lockfile --ignore-scripts
- run: bun scripts/security/workspace-audit.ts --out release-artifacts/workspace-audit
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: always()
with:
name: release-workspace-audit-${{ github.run_id }}
path: release-artifacts/workspace-audit/
if-no-files-found: warn
retention-days: 30

authorization:
name: Readiness and public-provenance policy (blocking)
needs: source
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ needs.source.outputs.sourceCommit }}
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.3.9
no-cache: true
- run: bun scripts/release/policy.ts authorize

publication:
needs: [source, build, production-audit, dependency-audit, authorization]
if: github.repository == 'atacama-dev/opencode-agentbus' && github.event_name == 'release' && github.event.action == 'published'
runs-on: ubuntu-24.04
environment: ${{ needs.source.outputs.environment }}
# Serialize this repository/line across versions. Pending jobs are not FIFO and
# may be superseded: retry cancelled jobs after checking current registry state.
# External npm administrators must coordinate; registry reads are not a CAS.
concurrency:
group: npm-publication-${{ github.repository }}-${{ needs.source.outputs.line }}
cancel-in-progress: false
permissions:
contents: write
id-token: write
steps:
# No source build, dependency install or package lifecycle in this job.
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ needs.source.outputs.sourceCommit }}
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: '24'
package-manager-cache: false
- name: Capture official Node distribution path before downloading build data
id: runtime
run: printf 'node=%s\n' "$(command -v node)" >> "$GITHUB_OUTPUT"
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.3.9
no-cache: true
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
digest-mismatch: error
name: release-tested-${{ github.run_id }}
path: release-artifacts/${{ needs.source.outputs.line }}
- name: Verify policy and publish exact tested bytes (OIDC only)
env:
GH_TOKEN: ${{ github.token }}
RELEASE_LINE: ${{ needs.source.outputs.line }}
RELEASE_SOURCE_COMMIT: ${{ needs.source.outputs.sourceCommit }}
RELEASE_NODE_BINARY: ${{ steps.runtime.outputs.node }}
run: bun scripts/release/publication.ts --manifest "release-artifacts/$RELEASE_LINE/manifest.json"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules/
dist/
coverage/
/release-artifacts/
.local/
.agentbus-installed-smoke-*/
*.log
Expand Down
Loading