|
| 1 | +#!/bin/bash |
| 2 | +# Prepare GitHub release draft |
| 3 | +# Usage: ./scripts/prepare-release.sh v0.1.0-genesis |
| 4 | + |
| 5 | +set -e |
| 6 | + |
| 7 | +if [ -z "$1" ]; then |
| 8 | + echo "Usage: $0 <version-tag>" |
| 9 | + echo "Example: $0 v0.1.0-genesis" |
| 10 | + exit 1 |
| 11 | +fi |
| 12 | + |
| 13 | +VERSION="$1" |
| 14 | + |
| 15 | +echo "📦 Preparing GitHub Release: $VERSION" |
| 16 | +echo "" |
| 17 | + |
| 18 | +# Verify gh is available and authenticated |
| 19 | +if ! command -v gh &> /dev/null; then |
| 20 | + echo "Error: GitHub CLI (gh) not installed" |
| 21 | + echo "Install from: https://cli.github.com/" |
| 22 | + exit 1 |
| 23 | +fi |
| 24 | + |
| 25 | +if ! gh auth status > /dev/null 2>&1; then |
| 26 | + echo "Error: GitHub CLI not authenticated" |
| 27 | + echo "Run: gh auth login" |
| 28 | + exit 1 |
| 29 | +fi |
| 30 | + |
| 31 | +# Check if tag exists |
| 32 | +if ! git rev-parse "$VERSION" > /dev/null 2>&1; then |
| 33 | + echo "Error: Tag $VERSION does not exist" |
| 34 | + echo "Create tag first:" |
| 35 | + echo " git tag -a $VERSION -F docs/GENESIS_TAG_ANNOTATION.md" |
| 36 | + exit 1 |
| 37 | +fi |
| 38 | + |
| 39 | +# Prepare release notes |
| 40 | +RELEASE_NOTES_FILE=$(mktemp) |
| 41 | + |
| 42 | +cat > "$RELEASE_NOTES_FILE" <<'EOF' |
| 43 | +Experimental decentralized runtime for survivable autonomous agents. |
| 44 | +
|
| 45 | +## Phase 1 Complete |
| 46 | +
|
| 47 | +Igor v0.1.0-genesis implements: |
| 48 | +- **WASM sandbox execution** (wazero) |
| 49 | +- **Agent checkpointing and resume** (atomic persistence) |
| 50 | +- **Peer-to-peer migration** (libp2p streams) |
| 51 | +- **Runtime budget metering** (cost = duration × price) |
| 52 | +- **Decentralized node network** (no coordination) |
| 53 | +
|
| 54 | +All 6 success criteria met: |
| 55 | +- ✓ Agent runs on Node A |
| 56 | +- ✓ Agent checkpoints state |
| 57 | +- ✓ Agent migrates to Node B |
| 58 | +- ✓ Agent resumes from checkpoint |
| 59 | +- ✓ Agent pays runtime rent |
| 60 | +- ✓ No centralized coordination |
| 61 | +
|
| 62 | +## Status: Experimental |
| 63 | +
|
| 64 | +**Not production-ready.** |
| 65 | +
|
| 66 | +Known limitations: |
| 67 | +- Trusted runtime accounting (no cryptographic receipts) |
| 68 | +- Single-hop migration (no routing) |
| 69 | +- Local filesystem storage (no distribution) |
| 70 | +- Limited security model |
| 71 | +
|
| 72 | +See [SECURITY.md](./SECURITY.md) for complete threat model. |
| 73 | +
|
| 74 | +## Quick Start |
| 75 | +
|
| 76 | +```bash |
| 77 | +make build |
| 78 | +./bin/igord --run-agent agents/example/agent.wasm --budget 10.0 |
| 79 | +``` |
| 80 | +
|
| 81 | +## Documentation |
| 82 | +
|
| 83 | +- [README.md](./README.md) - Overview and quick start |
| 84 | +- [docs/ARCHITECTURE.md](./docs/ARCHITECTURE.md) - Technical details |
| 85 | +- [docs/VISION.md](./docs/VISION.md) - Why Igor exists |
| 86 | +- [PROJECT_CONTEXT.md](./PROJECT_CONTEXT.md) - Design specification |
| 87 | +
|
| 88 | +## Contributing |
| 89 | +
|
| 90 | +See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines. |
| 91 | +
|
| 92 | +--- |
| 93 | +
|
| 94 | +**Igor is experimental infrastructure for autonomous software survival research.** |
| 95 | +EOF |
| 96 | + |
| 97 | +# Create draft release |
| 98 | +echo "→ Creating draft release..." |
| 99 | +gh release create "$VERSION" \ |
| 100 | + --draft \ |
| 101 | + --title "Igor $VERSION - Phase 1 (Survival) Complete" \ |
| 102 | + --notes-file "$RELEASE_NOTES_FILE" \ |
| 103 | + --prerelease |
| 104 | + |
| 105 | +rm "$RELEASE_NOTES_FILE" |
| 106 | + |
| 107 | +echo "" |
| 108 | +echo "✅ Draft release created: $VERSION" |
| 109 | +echo "" |
| 110 | +echo "Review and publish:" |
| 111 | +echo " gh release view $VERSION --web" |
| 112 | +echo "" |
| 113 | +echo "Or edit draft:" |
| 114 | +echo " gh release edit $VERSION" |
0 commit comments