* ci(workflows): use host-uk/build@dev for releases
- Replace manual Go bootstrap with host-uk/build@dev action
- Add matrix builds for linux/amd64, linux/arm64, darwin/universal, windows/amd64
- Update README URLs from Snider/Core to host-uk/core
- Simplify artifact handling with merge-multiple
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* docs(mkdocs): update repo references to host-uk/core
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* chore(coderabbit): disable auto-review, manual trigger only
Trigger with @coderabbitai review to control costs.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* feat(ci): implement semver release channels
- Rename dev-release.yml → alpha-release.yml
- Alpha builds: v0.0.4-alpha.{run_number} (prerelease)
- Add pr-build.yml for draft releases
- PR builds: v0.0.4-pr.{num}.bid.{id} (draft, not published)
- Add attestation permissions for SLSA compliance
- No more deleting/recreating dev tag
Versioning strategy:
- Draft: +pr.{NUM}.bid.{ID} (testable, not published)
- Alpha: -alpha.{N} (canary channel)
- Beta: -beta (quality scored)
- RC: -rc.{N} (release candidate)
- Stable: no suffix
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix(ci): use build@v3 and dot notation for versions
- Switch from host-uk/build@dev to host-uk/build@v3
- Use dots instead of + for build metadata (GitHub tag compatible)
- v0.0.4.pr.{num}.bid.{id} format for PR drafts
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* ci(workflows): update all actions to latest versions
- actions/setup-go: v5 → v6 (Go 1.25+ support)
- actions/upload-artifact: v4 → v6 (immutable artifacts)
- actions/download-artifact: v4 → v7 (attestations support)
- actions/github-script: v7 → v8 (Node 20)
- actions/checkout: standardized on v6
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* ci: temporarily use self-hosted runners
Testing build on local runners while GitHub hosted runners are backed up.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* ci: fix webkit dep for Ubuntu 20.04 runners
Fall back to libwebkit2gtk-4.0-dev on older Ubuntu.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* test: skip unwritable dir test when running as root
Docker self-hosted runners run as root, which can write anywhere.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* ci: revert to ubuntu-latest runners
Self-hosted runners need environment parity work (ARM64, root user, SDK tools).
Keep self-hosted for future local-llm integration tasks.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
134 lines
4.8 KiB
YAML
134 lines
4.8 KiB
YAML
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issues
|
|
name: "Agent Verification: Issue Labeled"
|
|
|
|
on:
|
|
issues:
|
|
types: [labeled]
|
|
|
|
jobs:
|
|
# When work is claimed, track the implementer
|
|
track-implementer:
|
|
if: github.event.label.name == 'agent:wip'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Record implementer
|
|
run: |
|
|
echo "Implementer: ${{ github.actor }}"
|
|
# Could store in issue body or external system
|
|
|
|
# When work is submitted for review, add to verification queue
|
|
request-verification:
|
|
if: github.event.label.name == 'agent:review'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Add to Workstation for verification
|
|
uses: actions/add-to-project@v1.0.2
|
|
with:
|
|
project-url: https://github.com/orgs/host-uk/projects/2
|
|
github-token: ${{ secrets.PROJECT_TOKEN }}
|
|
|
|
- name: Comment verification needed
|
|
uses: actions/github-script@v8
|
|
with:
|
|
script: |
|
|
const implementer = context.payload.sender.login;
|
|
await github.rest.issues.createComment({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number,
|
|
body: `## 🔍 Verification Required\n\nWork submitted by @${implementer}.\n\n**Rule:** A different agent must verify this work.\n\nTo verify:\n1. Review the implementation\n2. Run tests if applicable\n3. Add \`verified\` or \`verify-failed\` label\n\n_Self-verification is not allowed._`
|
|
});
|
|
|
|
# Block self-verification
|
|
check-verification:
|
|
if: github.event.label.name == 'verified' || github.event.label.name == 'verify-failed'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Get issue details
|
|
id: issue
|
|
uses: actions/github-script@v8
|
|
with:
|
|
script: |
|
|
const issue = await github.rest.issues.get({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number
|
|
});
|
|
|
|
// Check timeline for who added agent:wip
|
|
const timeline = await github.rest.issues.listEventsForTimeline({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number,
|
|
per_page: 100
|
|
});
|
|
|
|
const wipEvent = timeline.data.find(e =>
|
|
e.event === 'labeled' && e.label?.name === 'agent:wip'
|
|
);
|
|
|
|
const implementer = wipEvent?.actor?.login || 'unknown';
|
|
const verifier = context.payload.sender.login;
|
|
|
|
console.log(`Implementer: ${implementer}`);
|
|
console.log(`Verifier: ${verifier}`);
|
|
|
|
if (implementer === verifier) {
|
|
core.setFailed(`Self-verification not allowed. ${verifier} cannot verify their own work.`);
|
|
}
|
|
|
|
return { implementer, verifier };
|
|
|
|
- name: Record verification
|
|
if: success()
|
|
uses: actions/github-script@v8
|
|
with:
|
|
script: |
|
|
const label = context.payload.label.name;
|
|
const verifier = context.payload.sender.login;
|
|
const status = label === 'verified' ? '✅ Verified' : '❌ Failed';
|
|
|
|
await github.rest.issues.createComment({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number,
|
|
body: `## ${status}\n\nVerified by @${verifier}`
|
|
});
|
|
|
|
// Remove agent:review label
|
|
try {
|
|
await github.rest.issues.removeLabel({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number,
|
|
name: 'agent:review'
|
|
});
|
|
} catch (e) {
|
|
console.log('agent:review label not present');
|
|
}
|
|
|
|
# If verification failed, reset for rework
|
|
handle-failure:
|
|
if: github.event.label.name == 'verify-failed'
|
|
runs-on: ubuntu-latest
|
|
needs: check-verification
|
|
steps:
|
|
- name: Reset for rework
|
|
uses: actions/github-script@v8
|
|
with:
|
|
script: |
|
|
// Remove verify-failed after processing
|
|
await github.rest.issues.removeLabel({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number,
|
|
name: 'verify-failed'
|
|
});
|
|
|
|
// Add back to ready queue
|
|
await github.rest.issues.addLabels({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number,
|
|
labels: ['agent:ready']
|
|
});
|