File size: 3,986 Bytes
920634d
ff962f3
920634d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d954b36
 
920634d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ff962f3
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
---
license: agpl-3.0
language:
- en
tags:
- elixir
- erlang
- beam
- compiler
- tournament
- mcp
- agent-built
- formal-verification
- sovereign
- snapkitty
- provenance
- scoring
- developer-tools
- python
task_categories:
- text-generation
- text-classification
size_categories:
- n<1K
pretty_name: FORGE CODE — Elixir Tournament
---
# FORGE CODE: ELIXIR TOURNAMENT

**Built by an agent. Verified by a tournament. Mistral competed via MCP.**

SnapKitty West / SNAPKITTYWEST — *Evidence or Silence — 2026*

---

## Origin — Proof of Concept

This repository is not hand-written code. It is the **artifact produced by Forge**, Ahmad's agent, which:

1. Hooked Mistral (and other agents) into the pipeline via MCP
2. Ran a tournament where agents competed to build the system
3. The tournament output **is this repo** — a working Elixir compiler harness

This proves the agent-farm-gauntlet loop closes:

```
Forge agent → MCP → Tournament (Mistral + agents) → Artifact (forge-code)
```

The commit attribution includes Mistral Vibe as co-author. This is the receipt.

---

## What It Is

A full Elixir tournament system for compiler evaluation, with:

- BEAM IR pipeline
- Pratt parser + field access + dict literals
- Provenance tracking (every artifact traced to its origin)
- Tournament scoring engine
- Formal semantics layer
- 23/23 tests passing

---

## Repository Structure

```
forge-code/
├── lib/forge/
│   ├── elixir_ast.ex       Elixir AST transformer
│   └── erlang_forms.ex     Erlang abstract forms bridge
├── docs/
│   ├── CLI.md              Command interface
│   ├── PROVENANCE.md       Artifact provenance tracking
│   ├── SCORING.md          Tournament scoring methodology
│   ├── SECURITY.md         Security model
│   ├── SUPPORTED_OTP.md    OTP version matrix
│   └── TOURNAMENT.md       Tournament architecture
├── test/
│   ├── beam_test.exs
│   ├── binary_parser_test.exs
│   ├── ir_test.exs
│   ├── provenance_test.exs
│   ├── semantics_test.exs
│   ├── tournament_test.exs
│   └── compiler_test.exs
└── mix.exs
```

---

## Test Status

| Suite | Status |
|---|---|
| compiler_test | passing |
| beam_test | passing |
| binary_parser_test | passing |
| ir_test | passing |
| provenance_test | passing |
| semantics_test | passing |
| tournament_test | passing |
| **Total** | **23/23** |

---

## Tournament Architecture

The tournament runs agents in competition. Each agent receives the same specification. Outputs are scored on:

- Correctness (formal semantics match)
- Provenance (full artifact trace)
- Coverage (test breadth)
- IR fidelity (BEAM form accuracy)

The winning output becomes the canonical implementation. Mistral Vibe co-authored this build.

---

## Related Repos

| Repo | Description |
|---|---|
| [SNAPKITTYWEST/sov](https://huggingface.co/datasets/SNAPKITTYWEST/sov) | Sovereign Package Switchboard — the runtime layer |
| [SNAPKITTYWEST/sovereign-training-corpus](https://huggingface.co/datasets/SNAPKITTYWEST/sovereign-training-corpus) | Training corpus |
| [SNAPKITTYWEST/burt-imma](https://huggingface.co/SNAPKITTYWEST/burt-imma) | MMEP model architecture |
| [GitHub](https://github.com/SNAPKITTYWEST/forge-code) | Source repository |

---

## License

Licensed under **AGPL-3.0**. Full text: [LICENSE](LICENSE).

Releases published before 2026-10-07 were licensed under MIT; copies obtained under those terms keep them.

### 💼 Commercial License

SnapKitty code is free and open under **AGPL-3.0** for open-source use. Building a commercial product or service? A **proprietary commercial license** from Snapkitty Collective LLC lets you ship this code without the AGPL's source-sharing and network-use obligations.

**[→ Get a commercial license](mailto:A.parr@belespritdaccord.uk?subject=Commercial%20license:%20forge-code)** · A.parr@belespritdaccord.uk