import gradio as gr from datetime import datetime ENTITIES = [ {"id": "CrownCore", "status": "UNSTABLE", "type": "SEED", "repo": "Nexusmon/CrownCore-Nexusmon", "corruption": 4.2}, {"id": "Sovereign-7B", "status": "CONTAINED", "type": "STABLE", "repo": "LordMo2/nexusmon-sovereign-qwen7b", "corruption": 0.0}, {"id": "Sovereign-LoRA", "status": "EVOLVING", "type": "ADAPTED", "repo": "Nexusmon/nexusmon-sovereign-lora", "corruption": 0.8}, {"id": "Sovereign-GGUF", "status": "PORTABLE", "type": "COMPRESSED", "repo": "LordMo2/nexusmon-sovereign-gguf", "corruption": 0.0}, ] FRAGMENTS = [ {"id": "DigiCore", "repo": "LordMo2/nexusmon-training-data", "shards": "7000+", "corruption": 0.3, "status": "RECOVERED"}, {"id": "Oracle", "repo": "LordMo2/nexusmon-oracle-sft", "shards": "200", "corruption": 1.2, "status": "DECODED"}, {"id": "Dream Seeds", "repo": "LordMo2/nexusmon-dream-seeds", "shards": "85", "corruption": 14.7, "status": "UNSTABLE"}, {"id": "Identity Mirror", "repo": "LordMo2/nexusmon-identity-benchmark", "shards": "N/A", "corruption": 0.0, "status": "SCANNING"}, {"id": "Smoke Tests", "repo": "LordMo2/nexusmon-tiny-smoke-results", "shards": "N/A", "corruption": 100.0,"status": "RESIDUE"}, {"id": "The Archive", "repo": "Nexusmon/nexusmon-master-dataset", "shards": "9754+", "corruption": 0.1, "status": "MERGING"}, ] STATUS_COLOR = {"UNSTABLE":"#ff4444","CONTAINED":"#44ff88","EVOLVING":"#ffaa00","PORTABLE":"#44aaff", "RECOVERED":"#44ff88","DECODED":"#44aaff","SCANNING":"#ffaa00","RESIDUE":"#888","MERGING":"#cc44ff"} def entity_html(): rows = "".join(f'{e["id"]}{e["status"]}{e["type"]}{e["corruption"]}%' for e in ENTITIES) return f'

ANOMALY ENTITY REGISTRY — {len(ENTITIES)} ENTITIES

{rows}
IDSTATUSTYPECORRUPTION
' def fragment_html(): rows = "".join(f'{f["id"]}{f["status"]}{f["shards"]}10 else "#fa0" if f["corruption"]>1 else "#4f8"}">{f["corruption"]}%' for f in FRAGMENTS) return f'

MEMORY FRAGMENT REGISTRY — {len(FRAGMENTS)} FRAGMENTS

{rows}
FRAGMENTSTATUSSHARDSCORRUPTION
' def run_cmd(cmd): cmd = (cmd or "").strip().upper() ts = datetime.now().strftime("%H:%M:%S") if cmd in ("STATUS","STATUS ALL","SCAN"): lines = [f"[{ts}] NEXUSMON SYSTEM STATUS", "-"*40] for e in ENTITIES: lines.append(f" ENTITY [{e['id']}] -> {e['status']} | corruption={e['corruption']}%") for f in FRAGMENTS: lines.append(f" FRAGMENT [{f['id']}] -> {f['status']} | shards={f['shards']}") return "\n".join(lines) if cmd.startswith("SCAN "): t = cmd[5:] for e in ENTITIES: if t in e["id"].upper(): return f"[{ts}] {e['id']}\n STATUS: {e['status']}\n TYPE: {e['type']}\n CORRUPTION: {e['corruption']}%\n REPO: {e['repo']}" for f in FRAGMENTS: if t in f["id"].upper(): return f"[{ts}] {f['id']}\n STATUS: {f['status']}\n SHARDS: {f['shards']}\n CORRUPTION: {f['corruption']}%" return f"[{ts}] NOT FOUND: {t}" if cmd == "HELP": return "[COMMANDS]\n STATUS SCAN ENTITIES FRAGMENTS HELP" if cmd == "ENTITIES": return "\n".join(f" [{e['id']}] {e['status']} / {e['type']}" for e in ENTITIES) if cmd == "FRAGMENTS": return "\n".join(f" [{f['id']}] {f['status']} / {f['shards']} shards" for f in FRAGMENTS) return f"[{ts}] UNKNOWN: {cmd} — type HELP" css = "body,.gradio-container{background:#050505!important;color:#e0e0e0;font-family:monospace}" with gr.Blocks(css=css, title="DigiCore Chamber") as demo: gr.HTML('

DIGICORE CHAMBER

NEXUSMON ANOMALY INTELLIGENCE NETWORK

') with gr.Tabs(): with gr.Tab("ENTITIES"): eh = gr.HTML(entity_html()) gr.Button("REFRESH").click(entity_html, outputs=eh) with gr.Tab("FRAGMENTS"): fh = gr.HTML(fragment_html()) gr.Button("REFRESH").click(fragment_html, outputs=fh) with gr.Tab("COMMAND TERMINAL"): ci = gr.Textbox(placeholder="ENTER COMMAND (try STATUS or HELP)...", label="", lines=1) co = gr.Textbox(label="OUTPUT", lines=14, interactive=False) with gr.Row(): gr.Button("EXECUTE").click(run_cmd, inputs=ci, outputs=co) gr.Button("STATUS").click(lambda: run_cmd("STATUS"), outputs=co) with gr.Tab("EVOLUTION TREE"): gr.HTML('
NEXUSMON ENTITY EVOLUTION TREE\n==============================\n\n  [SEED]  CrownCore  (Nexusmon/CrownCore-Nexusmon)\n     |\n     v\n  [STABLE]  Sovereign-7B  (LordMo2/nexusmon-sovereign-qwen7b)\n     |\n     +--[ADAPTED]---> Sovereign-LoRA  (Nexusmon/nexusmon-sovereign-lora)\n     |\n     +--[PORTABLE]--> Sovereign-GGUF  (LordMo2/nexusmon-sovereign-gguf)\n\nMEMORY LINEAGE\n==============\n  DigiCore -> Oracle SFT -> Dream Seeds\n     |\n  Identity Benchmark + Smoke Tests\n     |\n  The Archive  (Nexusmon/nexusmon-master-dataset)  [MASTER CORPUS]\n
') demo.launch()