{
  "meta": {
    "id": "factory-ethos",
    "version": "1.0.0",
    "generatedAt": "2025-11-14T16:34:59.382Z"
  },
  "sections": {
    "Ethos & Principles": "- Safer‑by‑design: consent, transparency, provenance, reversible changes.\n- Evidence‑first: falsifiability, uncertainty estimates, divergences logged.\n- Collective Augmented Intelligence: human‑in‑the‑loop, quorum gating, explicit guardrails.\n- Minimalism: small surface area, modular layers, elegant defaults.\n",
    "Architecture Plan (High‑Level)": "- Input layers: ingest → normalize → feature extract → hypergraph build.\n- Reasoning layers: agents (Kobalt, Phoebii, Ūmöwt) with role gates; Mixture‑of‑Experts routing.\n- Safety layers: risk assess, redaction, RBAC, provenance logging.\n- Output layers: summaries, plans, patches, human checkpoints, deployments.\n",
    "ASCII Schematic": "",
    "Mindmap (Key Domains)": "- Machine Intelligence\n  - Agents & Personas (Kobalt, Phoebii, Ūmöwt)\n  - Hypergraph substrate\n  - Risk & Guardrails\n- Collective Entities\n  - Ensembles, quorum, consensus thresholds\n  - Provenance graph\n- Digital Entities\n  - Artifacts, pages, policies, datasets\n  - Identity and RBAC\n",
    "Treemap (Capabilities → Modules)": "",
    "Directives & Guardrails": "- No deception; no targeted manipulation; opt‑in interactions only.\n- Redact PII by default; minimize collection; TTL sensitive caches.\n- Human‑approval for high‑impact changes; reversible steps; diffs.\n- Transparent lineage: content hashes, timestamps, actor, action, tags.\n",
    "Analytic Psychology Mapping (Archetypes)": "- Kobalt (Structure): Logos, clarity, principled constraints.\n- Phoebii (Muse): Eros, imagery, creative exploration.\n- Ūmöwt (Environment): Persona/Shadow integrator; translation across contexts.\n",
    "Tree Logic & Workflow": "1. Intake → integrity checks → content hash → risk tier.\n2. Parse → entities/claims → hypergraph build → topics.\n3. Evaluate → uncertainty, contradictions → provenance append.\n4. Propose → options with pros/cons → guardrails.\n5. Act → minimal reversible change → monitor → rollback if thresholds.\n",
    "Layers & Allocation": "- L0 Transport: streams/queues; content‑addressed storage.\n- L1 Routing: topic/semantic routes; QoS.\n- L2 Schema: types, versions.\n- L3 Semantics: embeddings, ontologies, reasoning hooks.\n- L4 Policy/Safety: RBAC/ABAC, audits, incident response.\n",
    "Fine‑Tuning Notes": "- Focus tasks: summarization, evidence attribution, critique, planning.\n- Evaluate with abstention rate, uncertainty calibration, harmful‑output tests.\n- Train on diffs + rationales; pair wrong‑answers with corrections.\n",
    "Anagram/Cypher (Playful)": "Structural colors → “Spectral art closure”; oloid G; Z‑K‑T rhythm.\n“explore → constrain → release” → three‑beat governance.\n",
    "Config (Canonical)": "Below is a canonical config used by tools to seed policy and routing.\n",
    "Architecture Code Skeleton (TypeScript)": "---\n\n# Encoding & Deployment\n",
    "Encoding Process": "- Parse this document → extract sections + canonical JSON config.\n- Write to `config/agentic/ethos.config.json`.\n- Expose via `/api/ethos` for apps and agents.\n",
    "Agentic Chat Setup": "- Use `/api/ethos` to seed routing/safety defaults on app start.\n- Agents read `quorum.threshold`, `deny_social_engineering`, and `workflow`.\n- UI loads mindmap/treemap text for explainability on the “About” pane.\n\n"
  },
  "config": {
    "id": "ethos-config",
    "version": "1.0.0",
    "safety": {
      "human_in_the_loop": true,
      "redact_pii": true,
      "deny_social_engineering": true,
      "quorum": {
        "enabled": true,
        "threshold": 0.67
      },
      "risk_tiers": [
        "low",
        "medium",
        "high"
      ]
    },
    "topology": {
      "layers": [
        "L0",
        "L1",
        "L2",
        "L3",
        "L4"
      ],
      "routing": {
        "qos": [
          "realtime",
          "batch"
        ],
        "prioritization": "evidence_first"
      },
      "clustering": {
        "algorithm": "leiden",
        "overlap": true
      }
    },
    "agents": {
      "kobalt": {
        "role": "structure",
        "modes": [
          "verify",
          "plan",
          "enforce"
        ]
      },
      "phoebii": {
        "role": "muse",
        "modes": [
          "imagine",
          "compose",
          "reframe"
        ]
      },
      "umowt": {
        "role": "environment",
        "modes": [
          "sync",
          "deploy",
          "mirror"
        ]
      }
    },
    "storage": {
      "adapter": "mongo",
      "collections": [
        "Provenance",
        "RiskAssess",
        "Telemetry",
        "Models",
        "ABTests"
      ]
    },
    "workflow": [
      "intake",
      "parse",
      "hypergraph",
      "evaluate",
      "propose",
      "act",
      "monitor"
    ],
    "llm": {
      "provider": "publicai",
      "models": [
        "mixtral-8x7b-instruct"
      ],
      "temp": 0.4,
      "max_tokens": 2048
    }
  }
}