Upload README.md
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172# OCC Stack: Complete Status## SummaryThe 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.## What Ships (Complete)### Architecture| Component | File | Lines | Status ||-----------|------|-------|--------|| Impact Oracle | `oracle/oracle.py` | ~200 | β Complete || Credit Ledger | `ledger/ledger.py` | ~150 | β Complete || Resource Broker | `broker/broker.py` | ~100 | β Complete || GRPO/Reward Hook | `rl/reward.py`, `rl/grpo_hook.py` | ~150 | β Complete || Offline Comparator | `rl/grpo_train_demo.py` | ~100 | β Complete || Eval Runner | `eval_runner.py` | ~200 | β Complete |### Benchmarks| Benchmark | File | Results | Status ||-----------|------|---------|--------|| Code Allocation | `benchmarks/benchmark_code.py` | **52.3% savings** at iso-accuracy | β Simulated || Retrieval QA | `benchmarks/benchmark_retrieval_qa.py` | OCC 0.710 vs RAG+verifier 0.790 | β Simulated + NLI || Debate v2 | `benchmarks/benchmark_debate_v2.py` | **43.2% savings** at iso-accuracy | β **Computed (100 topics)** || Anti-Gaming | `eval_runner.py` | 100% hidden-test detection | β Simulated || Ablations | `eval_runner.py` | 10 mechanism tests | β Simulated |### Reports| Document | File | Status ||----------|------|--------|| Technical Report | `reports/report.md` | β Complete with RS-OS comparison || Literature Review | `reports/literature_review.md` | β Complete || Blog Post | `reports/blog_post.md` | β Complete || Design Document | `design.md` | β Complete || Final Status | `reports/final_status.md` | β This file |### Job Results| Job ID | Model | Status | Result ||--------|-------|--------|--------|| `69fa273ab745af80fb373135` | Debate v2 simulation | **COMPLETED** | 43.2% savings || `69fa1e03b745af80fb3730a1` | Qwen-Coder-0.5B v2 | BLOCKED | Chat template fix uploaded, model too weak || `69fa1fc5f2f4addb7839bdfc` | Qwen-Coder-0.5B v2 (inline) | BLOCKED | 0% pass rate || `69fa269db745af80fb373124` | Qwen-Coder-0.5B v3 | BLOCKED | Robust extraction, still 0% || `69fa27e8b745af80fb373142` | StarCoder2-3B | BLOCKED | Model download timeout || `69fa2971f2f4addb7839be33` | Codegen-350M | FAILED | 100% IndentationError |## Key Findings### What Works1. **Tiered escalation (52.3% savings):** Try cheap, escalate on failure. Simple, effective.2. **Credit-based debate (43.2% savings):** Better than equal turns and safer than confidence-weighted voting with adversarial agents.3. **Non-transferable decaying credits:** Prevents credit laundering and hoarding.4. **Anti-gaming detection:** 100% for hidden-test gaming, credit exhaustion for spam.### What Doesn't1. **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.2. **Retrieval QA:** OCC underperforms. Broker is too conservative; NLI is too noisy on synthetic evidence.3. **Confidence-weighted voting with adversaries:** Dangerous β amplifies overconfident wrong answers. OCC's credit filter is safer.### Honest Assessment- **Publishable:** Yes, as a workshop/systems paper. The credit ledger + capability broker + anti-gaming design is novel per the RS-OS taxonomy.- **Ready for real deployment:** Not yet. Needs real-LLM validation with a 7B+ model on A100.- **Correct direction:** Yes. The tiered escalation and credit-based allocation patterns are sound.## Next Steps for Publication1. Run on A100 with Qwen-Coder-7B or DeepSeek-Coder-7B (enough capacity for HumanEval)2. Execute small-scale GRPO training (0.5B on T4 with patience)3. Implement NLI-tuned retrieval QA with domain-specific evidence4. Add formal orchestration trace support per RS-OS taxonomy## Repositoryhttps://huggingface.co/narcolepticchicken/occ-stack1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889# Oracle-Credit-Compute (OCC) StackA minimal, open-source research prototype for **agentic compute allocation** where agents earn and spend non-transferable, decaying credits based on verified marginal impact.## Quickstart```bashgit clone https://huggingface.co/narcolepticchicken/occ-stackcd occ-stackpip install -r requirements.txt# Simulated benchmarks (CPU)python benchmarks/benchmark_code.py # Code compute allocationpython benchmarks/benchmark_retrieval_qa.py # Retrieval QApython benchmarks/benchmark_debate_v2.py # Multi-agent debate# Ablations + anti-gaming (CPU, ~5 min)python eval_runner.py# Real LLM benchmark (GPU, requires T4+)python jobs/run_real_llm_standalone_v7.py# Unit testspython tests/test_oracle.pypython tests/test_ledger.py```## Architecture```βββββββββββββββ ββββοΏ½οΏ½ββββββββββββββ βββββββββββββββββ Agent βββββΆβ ResourceBroker βββββΆβ Compute ββ (requests β β (allow/deny/ β β (model call,ββ resource) ββββββ downgrade) ββββββ retrieval) ββββββββββββββββ βββββββββββββββββββ βββββββββββββββββ ββΌ βΌβββββββββββββββ ββββββββββββββββββββ CreditLedgerββββββ ImpactOracle ββ (earn/spend/β β (score action ββ decay) β β on verified ββββββββββββββββ β impact) ββββββββββββββββββββ```## Key Results (Simulated)- **52.3% compute reduction at iso-accuracy** on code benchmark (OCC tiered escalation vs fixed budget)- **76% accuracy with 40% adversarial agents** in debate (OCC credit-filtering vs 56% naive confidence voting)- **All anti-gaming attacks contained:** hidden-test gaming, collusion, over-abstention, spam## Status| Component | Status ||-----------|--------|| Impact Oracle | β Working || Credit Ledger | β Working || Resource Broker | β Working || GRPO/RL Hook | β Factory ready || Simulated benchmarks | β Complete || Ablations (10 conditions) | β Complete || Anti-gaming tests | β Complete || Real LLM benchmark | π V7 in progress || GRPO training | π Not yet run |## Repo Structure```occ/oracle/ # ImpactOracle β rule-based scoringledger/ # CreditLedger β non-transferable, decaying creditsbroker/ # ResourceBroker β capability-based access controlrl/ # RewardHook, OfflineComparator β TRL GRPO integrationbenchmarks/ # 3 benchmark scripts + real LLM variantstests/ # Unit testsreports/ # Reports, results, blog postjobs/ # Self-contained GPU job scripts```## Citation```bibtex@misc{occ2026,title={Oracle-Credit-Compute: A Minimal Stack for Agentic Compute Allocation},author={narcolepticchicken},year={2026},url={https://huggingface.co/narcolepticchicken/occ-stack}}```
README.md+89-72