Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
53 changes: 0 additions & 53 deletions .claude/hooks/post-tool-use.sh

This file was deleted.

25 changes: 0 additions & 25 deletions .claude/hooks/session-start.sh

This file was deleted.

44 changes: 0 additions & 44 deletions .claude/hooks/stop.sh

This file was deleted.

39 changes: 0 additions & 39 deletions .claude/settings.json

This file was deleted.

1 change: 0 additions & 1 deletion .claude/skills/architecture-review/SKILL.md

This file was deleted.

1 change: 0 additions & 1 deletion .claude/skills/bootstrap-feature/SKILL.md

This file was deleted.

1 change: 0 additions & 1 deletion .claude/skills/ship-pr/SKILL.md

This file was deleted.

5 changes: 5 additions & 0 deletions .github/workflows/harness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ on:
permissions:
contents: read

# Superseded PR runs should not consume runner capacity. Other events stay independent.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
govulncheck:
name: govulncheck (drift)
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:

gate-tests:
needs: detect-release-type
runs-on: macos-latest
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v7
Expand All @@ -67,7 +67,7 @@ jobs:
vm-e2e:
name: release vm-e2e (L4)
needs: gate-tests
runs-on: macos-latest
runs-on: macos-15
timeout-minutes: 60
steps:
- uses: actions/checkout@v7
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:

# Auto-generated changelog from Conventional Commits since the
# previous tag, grouped by type. Non-conventional commits are
# intentionally dropped — they should be rare (CLAUDE.md enforces
# intentionally dropped — they should be rare (AGENTS.md enforces
# the convention) and silence is better than a misleading row.
# Skipped entirely on the first release (no prior tag).
VERSION="${{ needs.detect-release-type.outputs.version }}"
Expand Down
151 changes: 80 additions & 71 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ on:
types: [contract-updated]
workflow_dispatch:

# Superseded PR runs should not consume runner capacity. Other events stay independent.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
lint:
name: lint
runs-on: macos-latest
runs-on: macos-15
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
Expand All @@ -29,7 +34,7 @@ jobs:

unit:
name: unit (L1)
runs-on: macos-latest
runs-on: macos-15
permissions:
id-token: write
contents: read
Expand Down Expand Up @@ -68,68 +73,6 @@ jobs:
coverage.html
retention-days: 7

contract:
name: contract schema (L2)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7

- name: Checkout contract
uses: actions/checkout@v7
with:
repository: openbootdotdev/openboot-contract
ref: ${{ github.event.client_payload.ref || 'main' }}
path: .contract

- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: "go.mod"

- name: Contract schema validation
run: |
pip3 install --break-system-packages jsonschema

python3 -c "
import json, jsonschema, sys

checks = [
('.contract/schemas/remote-config.json', '.contract/fixtures/config-v1.json'),
('.contract/schemas/snapshot.json', '.contract/fixtures/snapshot-v1.json'),
]

failed = 0
for schema_path, fixture_path in checks:
schema = json.load(open(schema_path))
data = json.load(open(fixture_path))
try:
jsonschema.validate(data, schema)
print(f' ✓ {fixture_path.split(\"/\")[-1]} matches {schema_path.split(\"/\")[-1]}')
except jsonschema.ValidationError as e:
print(f' ✗ {fixture_path.split(\"/\")[-1]}: {e.message}')
failed += 1

sys.exit(1 if failed else 0)
"

- name: Verify CLI consumes canonical fixtures losslessly
env:
OPENBOOT_CONTRACT_DIR: ${{ github.workspace }}/.contract
run: go test -v -tags=contract ./test/contract

curl-bash-smoke:
name: curl|bash smoke
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v7

- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: "go.mod"

- name: Build
run: make build

Expand All @@ -149,13 +92,6 @@ jobs:
if: always()
run: kill $(cat /tmp/mock-pid) 2>/dev/null || true

cli-compat:
name: old-cli compat
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v7

- name: Get previous release version
id: prev
env:
Expand Down Expand Up @@ -225,3 +161,76 @@ jobs:
- name: Stop compat mock server
if: always()
run: kill $(cat /tmp/compat-mock-pid) 2>/dev/null || true

contract:
name: contract schema (L2)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7

- name: Checkout contract
uses: actions/checkout@v7
with:
repository: openbootdotdev/openboot-contract
ref: ${{ github.event.client_payload.ref || 'main' }}
path: .contract

- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: "go.mod"

- name: Contract schema validation
run: |
pip3 install --break-system-packages jsonschema

python3 -c "
import json, jsonschema, sys

checks = [
('.contract/schemas/remote-config.json', '.contract/fixtures/config-v1.json'),
('.contract/schemas/snapshot.json', '.contract/fixtures/snapshot-v1.json'),
]

failed = 0
for schema_path, fixture_path in checks:
schema = json.load(open(schema_path))
data = json.load(open(fixture_path))
try:
jsonschema.validate(data, schema)
print(f' ✓ {fixture_path.split(\"/\")[-1]} matches {schema_path.split(\"/\")[-1]}')
except jsonschema.ValidationError as e:
print(f' ✗ {fixture_path.split(\"/\")[-1]}: {e.message}')
failed += 1

sys.exit(1 if failed else 0)
"

- name: Verify CLI consumes canonical fixtures losslessly
env:
OPENBOOT_CONTRACT_DIR: ${{ github.workspace }}/.contract
run: go test -v -tags=contract ./test/contract

# Preserve required check names without requesting two more macOS runners.
curl-bash-smoke:
name: curl|bash smoke
needs: unit
if: always()
runs-on: ubuntu-latest
steps:
- name: Require combined macOS checks to pass
env:
MACOS_RESULT: ${{ needs.unit.result }}
run: test "$MACOS_RESULT" = success

cli-compat:
name: old-cli compat
needs: unit
if: always()
runs-on: ubuntu-latest
steps:
- name: Require combined macOS checks to pass
env:
MACOS_RESULT: ${{ needs.unit.result }}
run: test "$MACOS_RESULT" = success
Loading
Loading