Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,72 +1,89 @@
|
|
| 1 |
-
# OCC Stack
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Oracle-Credit-Compute (OCC) Stack
|
| 2 |
+
|
| 3 |
+
A minimal, open-source research prototype for **agentic compute allocation** where agents earn and spend non-transferable, decaying credits based on verified marginal impact.
|
| 4 |
+
|
| 5 |
+
## Quickstart
|
| 6 |
+
|
| 7 |
+
```bash
|
| 8 |
+
git clone https://huggingface.co/narcolepticchicken/occ-stack
|
| 9 |
+
cd occ-stack
|
| 10 |
+
pip install -r requirements.txt
|
| 11 |
+
|
| 12 |
+
# Simulated benchmarks (CPU)
|
| 13 |
+
python benchmarks/benchmark_code.py # Code compute allocation
|
| 14 |
+
python benchmarks/benchmark_retrieval_qa.py # Retrieval QA
|
| 15 |
+
python benchmarks/benchmark_debate_v2.py # Multi-agent debate
|
| 16 |
+
|
| 17 |
+
# Ablations + anti-gaming (CPU, ~5 min)
|
| 18 |
+
python eval_runner.py
|
| 19 |
+
|
| 20 |
+
# Real LLM benchmark (GPU, requires T4+)
|
| 21 |
+
python jobs/run_real_llm_standalone_v7.py
|
| 22 |
+
|
| 23 |
+
# Unit tests
|
| 24 |
+
python tests/test_oracle.py
|
| 25 |
+
python tests/test_ledger.py
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
## Architecture
|
| 29 |
+
|
| 30 |
+
```
|
| 31 |
+
βββββββββββββββ ββββοΏ½οΏ½ββββββββββββββ ββββββββββββββββ
|
| 32 |
+
β Agent βββββΆβ ResourceBroker βββββΆβ Compute β
|
| 33 |
+
β (requests β β (allow/deny/ β β (model call,β
|
| 34 |
+
β resource) ββββββ downgrade) ββββββ retrieval) β
|
| 35 |
+
βββββββββββββββ βββββββββββββββββββ ββββββββββββββββ
|
| 36 |
+
β β
|
| 37 |
+
βΌ βΌ
|
| 38 |
+
βββββββββββββββ βββββββββββββββββββ
|
| 39 |
+
β CreditLedgerββββββ ImpactOracle β
|
| 40 |
+
β (earn/spend/β β (score action β
|
| 41 |
+
β decay) β β on verified β
|
| 42 |
+
βββββββββββββββ β impact) β
|
| 43 |
+
βββββββββββββββββββ
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
## Key Results (Simulated)
|
| 47 |
+
|
| 48 |
+
- **52.3% compute reduction at iso-accuracy** on code benchmark (OCC tiered escalation vs fixed budget)
|
| 49 |
+
- **76% accuracy with 40% adversarial agents** in debate (OCC credit-filtering vs 56% naive confidence voting)
|
| 50 |
+
- **All anti-gaming attacks contained:** hidden-test gaming, collusion, over-abstention, spam
|
| 51 |
+
|
| 52 |
+
## Status
|
| 53 |
+
|
| 54 |
+
| Component | Status |
|
| 55 |
+
|-----------|--------|
|
| 56 |
+
| Impact Oracle | β
Working |
|
| 57 |
+
| Credit Ledger | β
Working |
|
| 58 |
+
| Resource Broker | β
Working |
|
| 59 |
+
| GRPO/RL Hook | β
Factory ready |
|
| 60 |
+
| Simulated benchmarks | β
Complete |
|
| 61 |
+
| Ablations (10 conditions) | β
Complete |
|
| 62 |
+
| Anti-gaming tests | β
Complete |
|
| 63 |
+
| Real LLM benchmark | π V7 in progress |
|
| 64 |
+
| GRPO training | π Not yet run |
|
| 65 |
+
|
| 66 |
+
## Repo Structure
|
| 67 |
+
|
| 68 |
+
```
|
| 69 |
+
occ/
|
| 70 |
+
oracle/ # ImpactOracle β rule-based scoring
|
| 71 |
+
ledger/ # CreditLedger β non-transferable, decaying credits
|
| 72 |
+
broker/ # ResourceBroker β capability-based access control
|
| 73 |
+
rl/ # RewardHook, OfflineComparator β TRL GRPO integration
|
| 74 |
+
benchmarks/ # 3 benchmark scripts + real LLM variants
|
| 75 |
+
tests/ # Unit tests
|
| 76 |
+
reports/ # Reports, results, blog post
|
| 77 |
+
jobs/ # Self-contained GPU job scripts
|
| 78 |
+
```
|
| 79 |
+
|
| 80 |
+
## Citation
|
| 81 |
+
|
| 82 |
+
```bibtex
|
| 83 |
+
@misc{occ2026,
|
| 84 |
+
title={Oracle-Credit-Compute: A Minimal Stack for Agentic Compute Allocation},
|
| 85 |
+
author={narcolepticchicken},
|
| 86 |
+
year={2026},
|
| 87 |
+
url={https://huggingface.co/narcolepticchicken/occ-stack}
|
| 88 |
+
}
|
| 89 |
+
```
|