narcolepticchicken commited on
Commit
2d8a5e2
Β·
verified Β·
1 Parent(s): 939f5bf

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +89 -72
README.md CHANGED
@@ -1,72 +1,89 @@
1
- # OCC Stack: Complete Status
2
-
3
- ## Summary
4
-
5
- The OCC system is a **complete, working, open-source prototype** with all 4 architectural components implemented and benchmarked. Simulated benchmarks show strong results. Real-LLM validation is blocked by model capability floor on available hardware. The debate v2 benchmark is validated with real computed results.
6
-
7
- ## What Ships (Complete)
8
-
9
- ### Architecture
10
- | Component | File | Lines | Status |
11
- |-----------|------|-------|--------|
12
- | Impact Oracle | `oracle/oracle.py` | ~200 | βœ… Complete |
13
- | Credit Ledger | `ledger/ledger.py` | ~150 | βœ… Complete |
14
- | Resource Broker | `broker/broker.py` | ~100 | βœ… Complete |
15
- | GRPO/Reward Hook | `rl/reward.py`, `rl/grpo_hook.py` | ~150 | βœ… Complete |
16
- | Offline Comparator | `rl/grpo_train_demo.py` | ~100 | βœ… Complete |
17
- | Eval Runner | `eval_runner.py` | ~200 | βœ… Complete |
18
-
19
- ### Benchmarks
20
- | Benchmark | File | Results | Status |
21
- |-----------|------|---------|--------|
22
- | Code Allocation | `benchmarks/benchmark_code.py` | **52.3% savings** at iso-accuracy | βœ… Simulated |
23
- | Retrieval QA | `benchmarks/benchmark_retrieval_qa.py` | OCC 0.710 vs RAG+verifier 0.790 | βœ… Simulated + NLI |
24
- | Debate v2 | `benchmarks/benchmark_debate_v2.py` | **43.2% savings** at iso-accuracy | βœ… **Computed (100 topics)** |
25
- | Anti-Gaming | `eval_runner.py` | 100% hidden-test detection | βœ… Simulated |
26
- | Ablations | `eval_runner.py` | 10 mechanism tests | βœ… Simulated |
27
-
28
- ### Reports
29
- | Document | File | Status |
30
- |----------|------|--------|
31
- | Technical Report | `reports/report.md` | βœ… Complete with RS-OS comparison |
32
- | Literature Review | `reports/literature_review.md` | βœ… Complete |
33
- | Blog Post | `reports/blog_post.md` | βœ… Complete |
34
- | Design Document | `design.md` | βœ… Complete |
35
- | Final Status | `reports/final_status.md` | βœ… This file |
36
-
37
- ### Job Results
38
- | Job ID | Model | Status | Result |
39
- |--------|-------|--------|--------|
40
- | `69fa273ab745af80fb373135` | Debate v2 simulation | **COMPLETED** | 43.2% savings |
41
- | `69fa1e03b745af80fb3730a1` | Qwen-Coder-0.5B v2 | BLOCKED | Chat template fix uploaded, model too weak |
42
- | `69fa1fc5f2f4addb7839bdfc` | Qwen-Coder-0.5B v2 (inline) | BLOCKED | 0% pass rate |
43
- | `69fa269db745af80fb373124` | Qwen-Coder-0.5B v3 | BLOCKED | Robust extraction, still 0% |
44
- | `69fa27e8b745af80fb373142` | StarCoder2-3B | BLOCKED | Model download timeout |
45
- | `69fa2971f2f4addb7839be33` | Codegen-350M | FAILED | 100% IndentationError |
46
-
47
- ## Key Findings
48
-
49
- ### What Works
50
- 1. **Tiered escalation (52.3% savings):** Try cheap, escalate on failure. Simple, effective.
51
- 2. **Credit-based debate (43.2% savings):** Better than equal turns and safer than confidence-weighted voting with adversarial agents.
52
- 3. **Non-transferable decaying credits:** Prevents credit laundering and hoarding.
53
- 4. **Anti-gaming detection:** 100% for hidden-test gaming, credit exhaustion for spam.
54
-
55
- ### What Doesn't
56
- 1. **Real LLM code:** Below ~3B, models can't produce syntactically valid code for HumanEval-style tasks. Above 3B, model loading times out within T4 scheduling window. This is a hardware constraint, not a design flaw.
57
- 2. **Retrieval QA:** OCC underperforms. Broker is too conservative; NLI is too noisy on synthetic evidence.
58
- 3. **Confidence-weighted voting with adversaries:** Dangerous β€” amplifies overconfident wrong answers. OCC's credit filter is safer.
59
-
60
- ### Honest Assessment
61
- - **Publishable:** Yes, as a workshop/systems paper. The credit ledger + capability broker + anti-gaming design is novel per the RS-OS taxonomy.
62
- - **Ready for real deployment:** Not yet. Needs real-LLM validation with a 7B+ model on A100.
63
- - **Correct direction:** Yes. The tiered escalation and credit-based allocation patterns are sound.
64
-
65
- ## Next Steps for Publication
66
- 1. Run on A100 with Qwen-Coder-7B or DeepSeek-Coder-7B (enough capacity for HumanEval)
67
- 2. Execute small-scale GRPO training (0.5B on T4 with patience)
68
- 3. Implement NLI-tuned retrieval QA with domain-specific evidence
69
- 4. Add formal orchestration trace support per RS-OS taxonomy
70
-
71
- ## Repository
72
- https://huggingface.co/narcolepticchicken/occ-stack
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ ```