<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Cradicle Explorer</title>
    <link href="/css/bootstrap/bootstrap.min.css" rel="stylesheet">
    <style>
      .form-control-dark::placeholder {
          color: #aaa;
          opacity: 1;
      }
    </style>
    <link rel="stylesheet" href="/assets/fontawesome/css/all.min.css">
    <link rel="icon" type="image/png" href="/favicon.png">


                <link href="/css/dashboard.css" rel="stylesheet">
                </head>
                <body>
                <header class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
                  <a class="navbar-brand col-md-3 col-lg-2 me-0 px-3 fs-6" href="/">Cradicle Explorer</a>
                  <button class="navbar-toggler position-absolute d-md-none collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                  </button>
                  <form method="get" action="/cgi-bin/main" style="width:100%;"><input class="form-control form-control-dark w-100 rounded-0 border-0" type="text" name="q" placeholder="Search repos" aria-label="Search"></form>
                  <div class="navbar-nav flex-row">
                    <div class="nav-item text-nowrap">
                      <a class="nav-link px-3 active" href="/cgi-bin/repo?id=z2u96nZSFRrCdAsmv5WrQZLsNMp7z">junction_foundry</a>
                    </div>
                  </div>
                </header>
                <div class="container-fluid">
                  <div class="row">
                    <nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-dark sidebar collapse">
                      <div class="position-sticky pt-3 sidebar-sticky">
                        <ul class="nav flex-column">
                          <li class="nav-item">
                            <a class="nav-link active" href="/cgi-bin/repo?id=z2u96nZSFRrCdAsmv5WrQZLsNMp7z">
                              <i class="align-text-bottom fa-solid fa-info"></i>
                              Info
                            </a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" href="/cgi-bin/repo?id=z2u96nZSFRrCdAsmv5WrQZLsNMp7z&issue=list">
                              <i class="align-text-bottom fa-solid fa-layer-group"></i>
                              Issues
                            </a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" href="/cgi-bin/repo?id=z2u96nZSFRrCdAsmv5WrQZLsNMp7z&patch=list">
                              <i class="align-text-bottom fa-solid fa-vest-patches"></i>
                              Patches
                            </a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" href="/cgi-bin/repo?id=z2u96nZSFRrCdAsmv5WrQZLsNMp7z&wallet=list">
                              <i class="align-text-bottom fa-solid fa-wallet"></i>
                              Wallets
                            </a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" href="/cgi-bin/repo?id=z2u96nZSFRrCdAsmv5WrQZLsNMp7z&source=.">
                              <i class="align-text-bottom fa-solid fa-code"></i>
                              Source
                            </a>
                          </li>
                        <h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted text-uppercase">
                          <span></span>
                        </h6>
                        <ul class="nav flex-column mb-2">
                        
                        </ul>
                      </div>
                    </nav>
                <main class="col-md-9 ms-sm-auto col-lg-10">
                  <div class="container px-1 py-3">
        

    <div class="list-group">
    <div class="list-group-item">
    <div style="font-size:1.3rem;">junction_foundry</div>
    <div class="repo-item">Junction Foundry Decentralized Project</div>
    <div>rad:z2u96nZSFRrCdAsmv5WrQZLsNMp7z</div>
    </div>
    <div class="list-group-item">
    <div>Visibility</div>
    <div class="repo-item">public</div>
    </div>
    <div class="list-group-item">
    <div>Delegates</div><div class="repo-item">did:key:z6MkpfHHGUcYDvKeJ7efzJyZoQJ1MDQnVt9JpUviYK71tmwq</div>
    </div>
    <div class="list-group-item">
    <div>Default branch</div>
    <div><span class="repo-item">main &#8594 590c0063712eb638375fa2bceb5718076bb6d4a0</span> (Sun Jan 25 19:35:59 2026)</div>
    </div>
    <div class="list-group-item">
    <div>Threshold</div>
    <div class="repo-item">1</div>
    </div>
    </div>
    
        <div class="list-group mt-3">
        <div class="list-group-item">
        <div class="mb-2" style="font-weight:bold;"><i class="fa-solid fa-book"></i> README.md</div>
        <pre style="margin:0; font-size:0.85rem; overflow-x:auto; color:#fafafa;"># 🧬 Junction Foundry: Master Documentation

Junction Foundry is a high-performance AI orchestration platform architected for the **Biotech** and **Agriculture** industries. Leveraging the **Llama Stack Distribution** on AWS, it provides a unified interface for agentic reasoning, document intelligence, and secure memory banks.

## 🌟 Core Value Proposition

Junction Foundry solves the &quot;Sovereignty vs. Scalability&quot; paradox by providing a single codebase that can be deployed as a hardened, air-gapped fortress for Biotech R&amp;D or as a hyper-scale SaaS platform for global Agriculture operations.

### 🏛️ Deployment Tiers

| Tier | Target Industry | AWS Infrastructure | Security Posture |
| :--- | :--- | :--- | :--- |
| **Sovereign** | Biotech / Pharma | **AWS Outposts + Nitro** | **Air-Gapped:** 100% on-premise data residency |
| **Private** | Enterprise Agri | **VPC / EKS** | **Isolated:** Dedicated private cluster with no public ingress |
| **Agile** | Field-Ops / SaaS | **SaaS / FaaS (Amazon Bedrock)** | **Hyper-Scale:** Global reach with pay-per-token efficiency |

### 🏗️ Technical Foundation

- **API Standard:** [Llama Stack](https://github.com/meta-llama/llama-stack) — Acts as the &quot;Kubernetes for AI,&quot; abstracting the transition from local development to production clusters.
- **Document Intelligence:** [Docling](https://github.com/DS4SD/docling)
- **Inference Engines:** Support for **Ollama** (Local/Foundry), **vLLM** (Private/EKS), and **Amazon Bedrock** (Agile/SaaS).

---

## 🛠️ Development &amp; Lab Setup (Internal Foundry)

This section defines the **Internal Lab** environment. We use this local &quot;Foundry&quot; on Apple Silicon (M3 Max) to prototype and validate the Llama Stack before shipping to customer AWS environments.

### 🏗️ 1. Environment Initialization (M3 Max)

We use the `krunkit` driver for native Metal GPU passthrough and `calico` to simulate the network isolation required for Biotech audits.

```bash
# Optimized for M3 Max with 32GB+ RAM
minikube start \
  --driver=krunkit \
  --cpus=max \
  --memory=32768 \
  --disk-size=100g \
  --network-plugin=cni \
  --cni=calico 

# Install the Llama Stack Operator
kubectl apply -f https://raw.githubusercontent.com/llamastack/llama-stack-k8s-operator/main/release/operator.yaml

```

### 💾 2. Sovereign Model Ingestion (Resilient Pipeline)

We use MinIO as a local object storage solution within the Minikube cluster to host our model files.

#### Step 1: Install MinIO in Minikube

```bash
helm repo add minio https://charts.min.io/
helm repo update
helm pull minio/minio --untar
```

#### Step 2: Download Models Locally

Download models using the `hf` CLI tool:

* **Coder:** Qwen 2.5 32B (Q4_K_M)
* **Reasoner:** DeepSeek R1 32B (Q4_K_M)

#### Step 3: Mount &amp; Upload

1. **Mount:** `minikube mount ~/.hf-cache:/hf-cache`
2. **Upload:** Use the `mc` tool to move files into the `minio/models` bucket.

---

## 🛡️ Security Enhancements

### Persistent Volume Claims (PVCs)

Ensure data persistence by creating PVCs for MinIO:

```bash
kubectl apply -f - &lt;&lt;EOF
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: minio-pvc
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 50Gi
EOF
```

### Access Policies

Secure your MinIO deployment by setting up bucket policies:

```bash
# Example policy to restrict access to the models bucket
mc policy set private minio/models
```

This ensures that only authenticated users with proper permissions can access the models.

---

## 🔬 Biotech &amp; Sovereignty Specification

This &quot;Biotech Spec&quot; focuses on the hardened requirements for **GxP (Good Practice)** compliance and clinical research environments.

### 🧪 Infrastructure &amp; Local Simulation Matrix

| Tier Name | Target Market | AWS Infrastructure | **Local Simulation (Macbook)** | Llama Stack Provider |
| --- | --- | --- | --- | --- |
| **Sovereign** | Biotech R&amp;D | **AWS Outposts** | **Minikube + Calico** (Egress Blocked) | `remote::ollama` (Local) |
| **Private** | Ent. Agriculture | **VPC / EKS** | **Minikube** (Internal DNS only) | `remote::vllm` (Local) |
| **Agile** | Field / SaaS | **SaaS / FaaS** | **Docker Compose** (Internet Open) | `remote::together` (API) |

### 🛠️ Simulating the &quot;Sovereign Tier&quot;

In this mode, we use **Calico** to physically block the Llama Stack from reaching the internet. This ensures your **Docling** parsers and weights are 100% self-contained.

* **Setup:** `minikube start --network-plugin=cni --cni=calico`
* **Enforce Isolation:** Apply an egress lockdown policy to deny all traffic except internal requirements.
* **Success Criteria:** The agent analyzes sensitive research files while any `curl` to an external API fails.

---

## 🌾 Agile Tier: Agriculture &amp; Field-Ops Specification

The Agile Tier is designed for rapid scaling across distributed geographic locations. It focuses on **utility-scale AI** and **global availability**.

### ☁️ Infrastructure: AWS Cloud-Native

* **Orchestration:** **Amazon EKS** using Fargate for serverless scaling.
* **Inference:** **Amazon Bedrock**. We utilize Llama 3 and Claude models via managed APIs to avoid fixed hardware costs.
* **Scaling:** Automated horizontal scaling based on request volume (SQS/Lambda).

### 🛰️ Data Flow &amp; Connectivity

* **Standard:** Encrypted Transit (TLS 1.3) from field devices to AWS Regions.
* **Edge Processing:** Use of **Llama Stack &quot;Shields&quot;** to redact sensitive PII/Location data at the edge.

---

## 🚀 AWS Provisioning &amp; Readiness Checklist

Essential AWS configurations required to move from the local Foundry to production infrastructure.

### 🏁 Step 1: Service Quota Requests (Region-Specific)

Request these in the **Service Quotas Console** under &quot;Amazon EC2&quot;:

| Quota Name | Quota Code | Target Value | Reason |
| --- | --- | --- | --- |
| **Running On-Demand G and VT instances** | `L-38197617` | **32 vCPUs** | G5 instances for 32B models. |
| **Running On-Demand P instances** | `L-411A8248` | **32 vCPUs** | P4/P5 for high-perf training. |
| **Standard (A, C, D, H, I, M, R, T, Z)** | `L-1216C47A` | **64 vCPUs** | EKS Control Plane/Support nodes. |

### 🛠️ Step 2: Essential AWS Services

1. **Amazon ECR:** Create a private repository named `junction-foundry`.
2. **Amazon EKS:** Deploy a cluster with at least 2 nodes.
3. **Amazon Bedrock:** Manually &quot;Request Access&quot; to Meta (Llama 3) and Anthropic (Claude) models.
4. **AWS PrivateLink:** Enable interface endpoints for `bedrock-runtime` and `ecr.api`.

### 📝 Step 3: Verification

Run this CLI command to verify GPU quotas:

```bash
aws service-quotas get-service-quota \
  --service-code ec2 \
  --quota-code L-38197617 \
  --query &quot;Quota.Value&quot;

```
</pre>
        </div>
        </div>

</div>
</main>
</div>
</div>


</body>
</html>

