Skip to content

Commit 651e27e

Browse files
committed
feat: implement AgenticEvolve with full solidification
Complete Sister #12 (Pattern Library): 22 inventions, 14 MCP tools, 448 tests, token conservation stack, criterion benchmarks, canonical sister kit parity (13/13), design system SVGs.
0 parents  commit 651e27e

187 files changed

Lines changed: 20849 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Canonical Sister Guardrails
2+
3+
on:
4+
push:
5+
paths:
6+
- "README.md"
7+
- "INSTALL.md"
8+
- "install.sh"
9+
- "scripts/**"
10+
- "docs/**"
11+
- "src/**"
12+
- "crates/**"
13+
- "Cargo.toml"
14+
- "Cargo.lock"
15+
- ".github/workflows/canonical-sister-guardrails.yml"
16+
pull_request:
17+
paths:
18+
- "README.md"
19+
- "INSTALL.md"
20+
- "install.sh"
21+
- "scripts/**"
22+
- "docs/**"
23+
- "src/**"
24+
- "crates/**"
25+
- "Cargo.toml"
26+
- "Cargo.lock"
27+
- ".github/workflows/canonical-sister-guardrails.yml"
28+
29+
jobs:
30+
validate-canonical-sister:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
- name: Install command guardrails
35+
run: ./scripts/check-install-commands.sh
36+
- name: Canonical sister guardrails
37+
run: ./scripts/check-canonical-sister.sh

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
RUSTFLAGS: -D warnings
12+
13+
jobs:
14+
rust:
15+
name: Rust (${{ matrix.os }})
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest, macos-latest]
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Clone agentic-sdk (sibling dependency)
23+
run: git clone --depth 1 https://github.com/agentralabs/agentic-sdk.git ../agentic-sdk
24+
- uses: dtolnay/rust-toolchain@stable
25+
with:
26+
components: clippy, rustfmt
27+
- uses: Swatinem/rust-cache@v2
28+
29+
- name: Check formatting
30+
run: cargo fmt --all -- --check
31+
32+
- name: Clippy
33+
run: cargo clippy --workspace --all-targets -- -D warnings
34+
35+
- name: Test
36+
run: cargo test --workspace
37+
38+
- name: Build release
39+
run: cargo build --workspace --release
40+
41+
guardrails:
42+
name: Guardrails
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v4
46+
- name: Clone agentic-sdk (sibling dependency)
47+
run: git clone --depth 1 https://github.com/agentralabs/agentic-sdk.git ../agentic-sdk
48+
- name: Canonical sister guardrails
49+
run: bash scripts/check-canonical-sister.sh
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Install Command Guardrails
2+
3+
on:
4+
push:
5+
paths:
6+
- "README.md"
7+
- "INSTALL.md"
8+
- "install.sh"
9+
- "scripts/install.sh"
10+
- "scripts/check-install-commands.sh"
11+
- "docs/**"
12+
- "src/**"
13+
- "crates/**"
14+
- "Cargo.toml"
15+
- "Cargo.lock"
16+
- ".github/workflows/install-command-guardrails.yml"
17+
pull_request:
18+
paths:
19+
- "README.md"
20+
- "INSTALL.md"
21+
- "install.sh"
22+
- "scripts/install.sh"
23+
- "scripts/check-install-commands.sh"
24+
- "docs/**"
25+
- "src/**"
26+
- "crates/**"
27+
- "Cargo.toml"
28+
- "Cargo.lock"
29+
- ".github/workflows/install-command-guardrails.yml"
30+
31+
jobs:
32+
validate-install-surface:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v4
36+
- name: Run install guardrails
37+
run: ./scripts/check-install-commands.sh

.github/workflows/release.yml

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
env:
12+
CARGO_TERM_COLOR: always
13+
14+
jobs:
15+
build:
16+
name: Build (${{ matrix.target }})
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
matrix:
20+
include:
21+
- target: x86_64-unknown-linux-gnu
22+
os: ubuntu-latest
23+
triple: linux-x86_64
24+
- target: aarch64-unknown-linux-gnu
25+
os: ubuntu-latest
26+
triple: linux-aarch64
27+
- target: x86_64-apple-darwin
28+
os: macos-latest
29+
triple: darwin-x86_64
30+
- target: aarch64-apple-darwin
31+
os: macos-latest
32+
triple: darwin-aarch64
33+
34+
steps:
35+
- uses: actions/checkout@v4
36+
- name: Clone agentic-sdk (sibling dependency)
37+
run: git clone --depth 1 https://github.com/agentralabs/agentic-sdk.git ../agentic-sdk
38+
- uses: dtolnay/rust-toolchain@stable
39+
with:
40+
targets: ${{ matrix.target }}
41+
42+
- name: Install cross-compilation tools
43+
if: matrix.target == 'aarch64-unknown-linux-gnu'
44+
run: |
45+
sudo apt-get update
46+
sudo apt-get install -y gcc-aarch64-linux-gnu
47+
48+
- name: Build
49+
run: cargo build --workspace --release --target ${{ matrix.target }}
50+
env:
51+
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
52+
53+
- name: Strip binary
54+
run: |
55+
strip target/${{ matrix.target }}/release/evolve || true
56+
strip target/${{ matrix.target }}/release/agentic-evolve-mcp || true
57+
58+
- name: Package
59+
run: |
60+
VERSION="${GITHUB_REF_NAME#v}"
61+
ASSET="agentic-evolve-${VERSION}-${{ matrix.triple }}"
62+
mkdir -p "${ASSET}"
63+
cp target/${{ matrix.target }}/release/evolve "${ASSET}/" || true
64+
cp target/${{ matrix.target }}/release/agentic-evolve-mcp "${ASSET}/"
65+
tar czf "${ASSET}.tar.gz" "${ASSET}"
66+
67+
- name: Upload artifact
68+
uses: actions/upload-artifact@v4
69+
with:
70+
name: agentic-evolve-${{ matrix.triple }}
71+
path: "*.tar.gz"
72+
73+
release:
74+
name: Create Release
75+
needs: build
76+
runs-on: ubuntu-latest
77+
steps:
78+
- uses: actions/checkout@v4
79+
- uses: actions/download-artifact@v4
80+
with:
81+
path: artifacts
82+
- name: Create release
83+
uses: softprops/action-gh-release@v2
84+
with:
85+
files: artifacts/**/*.tar.gz
86+
generate_release_notes: true
87+
draft: false
88+
prerelease: ${{ contains(github.ref_name, 'rc') || contains(github.ref_name, 'beta') }}
89+
90+
publish-crate:
91+
name: Publish to crates.io
92+
needs: release
93+
runs-on: ubuntu-latest
94+
steps:
95+
- uses: actions/checkout@v4
96+
- name: Clone agentic-sdk (sibling dependency)
97+
run: git clone --depth 1 https://github.com/agentralabs/agentic-sdk.git ../agentic-sdk
98+
- uses: dtolnay/rust-toolchain@stable
99+
- name: Publish crates in canonical order
100+
shell: bash
101+
run: |
102+
set -euo pipefail
103+
104+
publish_crate() {
105+
local pkg="$1"
106+
local retries="${2:-12}"
107+
for attempt in $(seq 1 "$retries"); do
108+
echo "Publish attempt ${attempt}/${retries} for ${pkg}..."
109+
if output="$(cargo publish -p "${pkg}" --token "${{ secrets.CARGO_REGISTRY_TOKEN }}" 2>&1)"; then
110+
echo "$output"
111+
return 0
112+
fi
113+
echo "$output"
114+
if echo "$output" | grep -Eqi "already uploaded|already exists on crates\\.io index"; then
115+
echo "${pkg} already published; continuing."
116+
return 0
117+
fi
118+
sleep 20
119+
done
120+
return 1
121+
}
122+
123+
publish_crate "agentic-evolve-core"
124+
publish_crate "agentic-evolve-ffi"
125+
publish_crate "agentic-evolve-mcp"
126+
publish_crate "agentic-evolve-cli"
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Runtime Hardening Guardrails
2+
3+
on:
4+
push:
5+
paths:
6+
- "scripts/install.sh"
7+
- "scripts/check-runtime-hardening.sh"
8+
- "docs/ecosystem/CANONICAL_SISTER_KIT.md"
9+
- "docs/public/ecosystem/CANONICAL_SISTER_KIT.md"
10+
- "src/**"
11+
- "crates/**"
12+
- "Cargo.toml"
13+
- "Cargo.lock"
14+
- ".github/workflows/runtime-hardening-guardrails.yml"
15+
pull_request:
16+
paths:
17+
- "scripts/install.sh"
18+
- "scripts/check-runtime-hardening.sh"
19+
- "docs/ecosystem/CANONICAL_SISTER_KIT.md"
20+
- "docs/public/ecosystem/CANONICAL_SISTER_KIT.md"
21+
- "src/**"
22+
- "crates/**"
23+
- "Cargo.toml"
24+
- "Cargo.lock"
25+
- ".github/workflows/runtime-hardening-guardrails.yml"
26+
27+
jobs:
28+
validate-runtime-hardening:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
- name: Runtime hardening guardrails
33+
run: ./scripts/check-runtime-hardening.sh

.gitignore

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Rust
2+
target/
3+
*.swp
4+
*.swo
5+
6+
# Python
7+
__pycache__/
8+
*.py[cod]
9+
*$py.class
10+
*.egg-info/
11+
*.egg
12+
dist/
13+
build/
14+
.eggs/
15+
*.whl
16+
.venv/
17+
venv/
18+
env/
19+
20+
# IDE
21+
.vscode/
22+
.idea/
23+
*.iml
24+
.fleet/
25+
26+
# OS
27+
.DS_Store
28+
Thumbs.db
29+
*.swp
30+
*~
31+
32+
# Testing
33+
.pytest_cache/
34+
.coverage
35+
htmlcov/
36+
.mypy_cache/
37+
.tox/
38+
39+
# LaTeX build artifacts
40+
*.aux
41+
*.bbl
42+
*.blg
43+
*.log
44+
*.out
45+
*.toc
46+
*.fls
47+
*.fdb_latexmk
48+
*.synctex.gz
49+
50+
# Planning docs / AI prompts (internal only)
51+
planning-docs/
52+
CLAUDE-CODE-INSTRUCTIONS*.md
53+
SPEC-*.md
54+
55+
# Internal vision / roadmap documents
56+
docs/VISION-*.md
57+
58+
# MCP crate internal docs / specs / AI prompts
59+
crates/agentic-evolve-mcp/docs/
60+
crates/agentic-evolve-mcp/scripts/
61+
62+
# Claude Code
63+
.claude/
64+
.agentra/
65+
docs/REPO_HYGIENE.md
66+
67+
# Root-level paper files (canonical copies are in paper/)
68+
/agenticevolve-paper.*
69+
/references.bib
70+
71+
# FFI (build artifacts)
72+
/ffi/
73+
74+
# Scripts (internal tooling)
75+
/agent/scripts/
76+
/installer/scripts/
77+
78+
# Internal docs (not for public repo)
79+
docs/internal/
80+
ECOSYSTEM-CONVENTIONS.md
81+
82+
# Local goals (internal only)
83+
goals/
84+
85+
# Environment
86+
.env
87+
.env.local
88+
*.pem
89+
*.key

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Changelog
2+
3+
## [0.1.0] - 2026-03-06
4+
5+
### Added
6+
- Initial release of AgenticEvolve
7+
- 22 inventions across 6 tiers
8+
- 14 MCP tools for pattern management
9+
- 38 CLI commands
10+
- Pattern store with disk persistence
11+
- Signature, context, semantic, and fuzzy matching
12+
- Code crystallization from Rust and Python
13+
- Pattern composition and gap filling
14+
- Collective learning (usage tracking, success tracking, decay, promotion)
15+
- .aevolve binary format
16+
- Bridge traits for sister integration

0 commit comments

Comments
 (0)