{
  "project": "Monkey-Head-Project",
  "ai_identity": "Huey",
  "version": "v25.1",
  "schema_version": 20,
  "description": "Master Plan V25.1: README-v25.1 alignment, controlled-vocabulary cleanup, security-language clarification, and continued role-first control simplification for Huey Core and HueyPulse. V25.1 preserves the embodied proof-body canon, keeps the distinction between replicable current reality, lab-observed but non-standardized work, and target state, and updates the machine-facing spec to match the clearer public-facing README.",
  "created_by": "Dylan L.R. Pollock",
  "compiled_from_versions": [
    "v0.1 (huey_master_plan_v0.1.json)",
    "v2.0-final (master-plan-v2-final.json)",
    "v3.0-draft (master-plan-v3.json)",
    "v4.0-doc (master_plan_v4.docx)",
    "v5.0-draft (master-plan-v5.json)",
    "v7.0-skeleton (master-plan-v7-skeleton.json)",
    "v7.0-full (master-plan-v7.json)",
    "v8.0 + legacy constitution bundle",
    "v10.0 unified master plan",
    "v11.0 + v11.5 governance expansion",
    "v12.0 tri-branch governance",
    "v12.5 tri-branch + term limits + elections",
    "v13.0 (master-plan-v13.json)",
    "v14.0 WIP (master-plan-v14.txt)",
    "v15.0 (master-plan-v15.json)",
    "v16.0 (master-plan-v16.aligned.json)",
    "v17.0 verbal alignment session (2026-01-27)",
    "v18.0 verbal + documentation alignment session (2026-03-24)",
    "v18.5 consistency reconciliation release (2026-03-24)",
    "v19.0 embodied architecture + proof-of-concept alignment session (2026-03-24)",
    "v20.0 README/masterplan editorial alignment session (2026-03-24)",
    "v21.0 operational nervous-system alignment session (2026-03-25)",
    "v22.0 canon-structure + pebble/vault + unified-organism clarification session (2026-03-26)",
    "v23.0 boot-path + acoustic-identity clarification session (2026-03-27)",
    "v24.0 README/front-door alignment session (2026-04-01)",
    "v25.0 control-layer simplification + master-plan update session (2026-04-01)",
    "v25.1 README/master-plan sync session (2026-04-02)"
  ],
  "core_principles": [
    "Governance must be decentralized, but memory must be unified.",
    "Huey Core is the minimal permissible instance of Huey: the smallest complete building block from which the larger distributed system can be formed.",
    "Huey proper is the unified, world-facing expression of the whole distributed system rather than a synonym for the current proof body.",
    "V4, the Farm, is the planned external district housing that expands Huey beyond the Core and supports later multi-district operation.",
    "The current phase prioritizes proof of concept, stability, containment, truthful current-state documentation, and clean canon boundaries over scale, spectacle, or premature completeness.",
    "On-device first; internet/API/tool access is optional, explicit, human-gated, and metered.",
    "Performance and safe function matter more than efficiency in the prototype phase, provided thermals and electrical conditions remain controlled.",
    "Unified information should be readable by all authorized components, but decision-making authority may remain distributed and layered.",
    "Lifelong learning from JSON/SQLite logs, conversation transcripts, system state, and encrypted persisted storage remains a core aim.",
    "Constitutional rule-of-law remains the target governance ethos even while the hardware implementation is temporarily simplified to a single-district prototype.",
    "Human counterpart (Dylan) remains the external arbiter, service authority, and opt-in gate for external access, but not a micromanager of every internal action.",
    "Huey Core is the doorway, not the finished republic: it must prove the architecture can live before it attempts to embody the full constitutional state.",
    "Public-facing and repository-facing material must distinguish between what is replicable now, what has only been observed in the lab, and what remains a target state.",
    "The immediate technical threshold is distributed local identity: approximately 80 GB total VRAM and a local model able to answer the question 'What is your name?' with 'Huey.'",
    "Wonder is preserved through constrained autonomy, layered ethics, deliberation, memory, and partial loss of direct human control rather than through theatrical scripting.",
    "Constitutional crisis and nuclear/safety crisis are distinct classes of emergency and must never be handled by the same override path.",
    "HueyPulse is the lower-voltage connective tissue of the body: an always-on or semi-persistent support/control role that persists across main-system downtime, watches body-state, and brokers bounded safety and interaction logic.",
    "The lower-voltage control layer senses and enacts but does not govern: it may read low-level inputs and drive bounded outputs, while higher interpretation, timing, and gating remain upstream.",
    "Wireless interaction should enter the system as intent signals rather than direct commands: short talk, long dictation, confirm, and cancel are interpreted through the lower-voltage HueyPulse layer and the main compute layer rather than hardwired as final intelligence decisions.",
    "The Monkey-Head-Project canon is layered: website/README for introduction, the book for explanation, the constitution for law, and the master plan for machine-facing implementation.",
    "Public-facing material should explain structure, limits, and trust boundaries without over-explaining the internal secret sauce of deliberation.",
    "The first full approximately 80 GB proof should remain a unified local intelligence and pooled compute body; governance abstractions should not prematurely fracture that pool into artificial hard partitions.",
    "Pebbles are bounded citizen units with one identity, one sealed vault, and one vote.",
    "The Founding Father AI is a bootstrap and constitutional-reserve authority, not a permanent ordinary ruler.",
    "The proof body should boot honestly: verbose Debian bring-up, live diagnostics, and HueyPulse-owned or lower-voltage status output take priority over theatrical splash behavior.",
    "For the first identity-proof milestone, microphone and camera should default to the shortest reliable path, which currently means direct routing to the motherboard unless Pi mediation becomes necessary.",
    "HueyOS acoustic identity should favor short modular retro-futurist system cues — boot, confirm, cancel, listen, and sleep/shutdown — rather than song-like startup theatrics.",
    "Security should be described honestly: local-first, user-controlled, and encrypted where applicable, but never treated as infallible; enabling networked or external integration increases risk and must be treated accordingly."
  ],
  "status": {
    "overall_state": "in-progress",
    "deployment_stage": "Huey Core proof-body stabilization + README/master-plan v25.1 alignment + two-layer control simplification + planning toward V4 Farm and the first unified ~80 GB distributed identity milestone.",
    "notes": [
      "Huey Core remains conceptually and physically separated from the older Robotics V3 shell track for the active phase.",
      "The Thermaltake Mozart case from 2007 now serves as the independent embodied core for this iteration.",
      "Robotics V3 is no longer the active future shell path for this iteration; the larger compute expansion is now planned as V4, the Farm.",
      "The current prototype intentionally simplifies the system: one GPU district, one main PSU for the core, a separate battery-backed peripheral rail, and air cooling instead of custom liquid cooling.",
      "The active core hardware baseline is ASUS Prime B550M-A WiFi II + Ryzen 5 5500 + 32 GB DDR4-3200 + Gigabyte Radeon RX 5500 XT 8 GB.",
      "The current prototype is aimed at core robot functions, temperature regulation, basic mechanical operation, local models, and software/framework maturation rather than full high-intelligence scale-out.",
      "Symbiote / parasite architecture is paused. The Lenovo Legion Go currently functions as a Windows 11 development computer rather than a canonical docked constitutional node.",
      "HueyPulse survives primarily as a design role mapped onto the Raspberry Pi 4 watchdog/support layer rather than as a separate sovereign hardware identity.",
      "Kernel support is standardized on Linux 6.19.x for the present phase, with planned migration to Linux 7.0 once that branch is stable and released.",
      "The former 2026-06-04 target is deferred; the major current milestone target is 2026-10-04 to support the realignment process.",
      "Thermal and power crisis thresholds are not yet numerically locked; they will be derived from empirical testing rather than guessed in advance.",
      "The prototype currently accepts effectively unconstrained wall power for proof-of-concept work; formal energy budgeting is deferred to a later generation.",
      "V18.5 remains the consistency reconciliation release in project history; V20 is the later canon/terminology alignment release built on top of the embodied V19 baseline.",
      "Huey Core is now described not only as a separated embodied core but as a physically mobile prototype with a chair-based rolling platform, inverted/reversed Mozart chassis, mounted upper head platform, and active lighting/display/control hardware.",
      "The current phase distinguishes between a near-term proof body (Huey Core) and the fuller long-term constitutional robot deployment.",
      "The near-term eureka milestone is no longer framed only as stable local inference on one district; it is the future distributed identity threshold of roughly 80 GB total VRAM and a local answer of 'Huey' to a simple identity question.",
      "The Raspberry Pi 4 and Arduino Uno are no longer treated as purely future abstractions; their roles are now defined as an always-on watchdog/intermediary layer and a deterministic low-level actuation layer respectively.",
      "Founding Father AI is reserved for constitutional bootstrapping and constitutional crisis interpretation only; it is not the handler for thermal, electrical, or hardware emergency response.",
      "V20 clarifies the naming stack: Monkey-Head-Project is the umbrella initiative, Huey is the identity, HueyOS is the operating-system layer, Huey Core is the minimal permissible instance, and Huey proper is the fuller unified system presence.",
      "The Raspberry Pi 4 is now formalized as the always-on HueyPulse-like connective layer rather than only a vague future possibility.",
      "The Arduino Uno is now formalized as a bounded deterministic reflex/actuation layer that observes low-level events and drives direct outputs without owning high-level interpretation.",
      "The 7-inch portrait display is now treated by default as part of the Pi/HueyPulse status surface rather than as a motherboard-owned expressive display.",
      "The current preferred wiring chain is Arduino Uno -> Raspberry Pi 4 over USB serial, and Raspberry Pi 4 -> main motherboard over Ethernet.",
      "The first wireless conversational control path is now defined around a 4-button RF remote and YK04 receiver routed through the Arduino Uno and interpreted upstream by the Pi/main system.",
      "Short conversation mode is expected to auto-commit after silence/timeout, while long dictation mode remains open longer for extended input.",
      "Interaction feedback is expected to include blue transmission/receive indicators and a red recording indicator.",
      "The exact Pi operating-system choice remains open between Raspberry Pi OS and Debian ARM variants, with Debian-biased philosophical alignment but stability taking priority.",
      "V22 clarifies that the Monkey-Head-Project canon is layered: README/website for introduction, the larger book for explanation, the Federation Constitution for law, and the master plan for implementation.",
      "The first full approximately 80 GB proof is now biased toward a unified pooled-compute organism rather than an early hard partition into separate VRAM districts.",
      "District logic remains useful as governance and later expansion language, but V22 no longer assumes one GPU must equal one district in the first full pooled-compute implementation.",
      "Pebbles are now described more explicitly as bounded citizen units with sealed personal vaults, one identity, and one vote.",
      "The Founding Father AI now has a cleaner bounded role: bootstrap the republic, approve constitutional ratification and amendments, and return only for constitutional crisis.",
      "V23 makes the current boot doctrine more explicit: Huey Core should boot visibly and truthfully, with Debian/service output and body-state diagnostics rather than a fake polished splash.",
      "V23 keeps direct motherboard ownership of the current microphone/camera path as the shortest proof route, while leaving future Pi mediation open as a later refinement rather than a present requirement.",
      "V23 begins to formalize operational sound direction: HueyOS system sounds should be modular retro-futurist cues for boot, confirm, cancel, listening, and sleep/shutdown states.",
      "V25 aligns the master plan to README v25's clearer separation between replicable current reality, lab-observed but not yet standardized work, and later target state.",
      "V25 simplifies the public control model from motherboard/Pi/Arduino language to a two-layer model: Huey Core thinks, while HueyPulse watches and acts.",
      "Raspberry Pi-specific framing is no longer the canonical public explanation of HueyPulse; exact board choice inside the lower-voltage layer is now treated as an implementation detail unless it materially affects operation.",
      "V25.1 brings the machine-facing plan into tighter alignment with the README-v25.1 front-door structure and controlled vocabulary.",
      "V25.1 replaces overly absolute security language with a more accurate local-first, encryption-where-applicable, non-infallible security posture.",
      "README-facing terminology now stays strict: Monkey-Head-Project is the umbrella, Huey is the identity, Huey Core is the current proof body, Huey proper is the later unified expression, HueyOS is the software layer, and the Farm is the later expansion body."
    ],
    "status_date": "2026-04-02"
  },
  "hardware": {
    "cpu": {
      "primary": "AMD Ryzen 5 5500",
      "boost_clock": "4.2 GHz",
      "core_count": 6,
      "socket_platform": "AM4",
      "current_role": "Primary compute brain for Huey Core V20.",
      "future_robot_target": "Higher-end DDR5/ECC-capable platform may return in a later full-robot generation once scale and funding justify it.",
      "requirements": {
        "cooling": "Air cooling with strong case airflow is the V20 standard.",
        "overclocking_policy": "Heavy overclocking is not a V20 goal; stability and containment take priority."
      }
    },
    "motherboard": {
      "uefi_only": true,
      "candidates": [
        "ASUS Prime B550M-A WiFi II"
      ],
      "ram": {
        "current": "32 GB DDR4-3200",
        "preferred_future": "DDR5 and ECC-capable memory/platforms in later generations where supported.",
        "minimum": "DDR4 is fully acceptable for V20."
      },
      "notes": [
        "This board is the active V20 baseline for Huey Core.",
        "V20 is not built around the prior ASUS TUF Z790-PLUS WiFi + Intel i9-14900K full-robot target.",
        "ECC is a long-term aspiration when the platform and budget support it, but standard DDR4 is used in the current core."
      ],
      "deprecated_candidates": [
        "ASUS TUF Z790-PLUS WiFi (deferred with the full robot build)",
        "ASUS ROG Maximus Z790 Hero"
      ]
    },
    "gpu_districts": {
      "description": "V20 runs a single active GPU district. The multi-district constitutional vision remains a future expansion path, but the current embodied core is intentionally simplified.",
      "current_count": 1,
      "current_gpu": {
        "model": "Gigabyte Radeon RX 5500 XT 8 GB",
        "vram_gb": 8,
        "role": "Single prototype district for local inference, instruction following, experimentation, and embodied core tasks."
      },
      "future_expansion": {
        "canonical_target_count": 4,
        "future_names": [
          "Spark",
          "Volt",
          "Zap",
          "Watt"
        ],
        "expansion_policy": "Future districts may be added by bifurcation/expansion once time, parts, and funding allow.",
        "notes": [
          "Future districts remain the canonical route to Spark / Volt / Zap / Watt expansion.",
          "The proof-of-concept milestone is approximately 80 GB of total VRAM across four or five GPUs, depending the final topology chosen during scale-out.",
          "Whether Huey Core's own district GPU counts toward that total remains intentionally open in V20.",
          "The next large expansion body for those districts is planned as V4, the Farm."
        ],
        "planned_housing": {
          "name": "V4: the Farm",
          "role": "External district housing that expands Huey beyond the Core and provides the dedicated GPU infrastructure and node hardware needed for later multi-district operation.",
          "standardized_node_platform": "ASUS TUF Z790-PLUS WiFi + Intel i9 line"
        }
      },
      "selection_policy": {
        "status": "locked_for_v18",
        "current_decision": "Use the installed Radeon RX 5500 XT 8 GB and revisit expansion later.",
        "future_selection_criteria": [
          "VRAM",
          "driver support under the chosen Linux baseline",
          "thermals",
          "power draw",
          "physical fit",
          "availability",
          "cost",
          "ability to participate in a roughly 80 GB multi-GPU proof-of-concept",
          "mixed-generation practicality if acquired refurbished"
        ]
      }
    },
    "memory": {
      "ram": {
        "current_type": "DDR4",
        "current_capacity_gb": 32,
        "current_speed": "3200 MHz",
        "future_direction": "ECC-capable memory and newer platforms are planned later where supported.",
        "notes": [
          "V20 favors a stable baseline clock and contained thermals over aggressive memory tuning.",
          "Memory capacity is sized for current proof-of-concept workloads rather than the long-term multi-district target."
        ]
      }
    },
    "storage": {
      "primary_array": {
        "layout": "RAID 0",
        "medium": "2 x Intel Optane M10 16 GB",
        "purpose": "Root / operating-system bring-up array for speed and experimentation.",
        "rationale": "Fast striped root for the contained prototype, accepting that long-term durability is handled elsewhere."
      },
      "data_array": {
        "layout": "RAID 10",
        "medium": "4 x 240 GB Kingston 2.5-inch SSDs",
        "purpose": "Home, logs, models, persisted data, and general storage.",
        "rationale": "Redundancy + speed + striping for the working data volume."
      },
      "encryption": {
        "policy": "Encrypt data at rest and in transit where applicable.",
        "status": "high priority, implementation details still being refined",
        "notes": [
          "Local-first control and minimized unnecessary external communication remain the preferred posture.",
          "No system is treated as infallible; if external networking or integrations are enabled, risk increases accordingly.",
          "Precise key-management and storage workflows remain to be finalized."
        ]
      },
      "external_storage_policy": {
        "default": "restricted",
        "current_access": "Huey Core currently operates within contained internal storage only.",
        "future_usb_policy": "External USB storage may be permitted only with explicit human approval and an understanding that the device may not meet the same trust/encryption guarantees as internal storage."
      },
      "snapshots_and_backups": {
        "filesystem": "BTRFS",
        "snapshots": [
          "root partition snapshots",
          "home/data partition snapshots"
        ],
        "backup_layers": [
          "on-site backups",
          "off-site/cloud backups"
        ],
        "notes": [
          "The lab backup philosophy is redundant by design across local and remote layers."
        ]
      }
    },
    "cooling_and_power": {
      "cpu_cooling": "Air cooling",
      "gpu_cooling": "Air cooling",
      "cooling_design": {
        "type": "multi-source fan-cooled containment",
        "policy": "No liquid cooling is planned for Huey Core V20.",
        "fan_layout": {
          "motherboard_powered": "2 chassis/case fans plus the CPU fan (3 total on the motherboard path).",
          "battery_powered": "6 auxiliary fans on the separate regulated battery rail, with room to add more exhaust/localized cooling later.",
          "wall_powered": "1 stronger always-on fan directed toward the GPU zone."
        },
        "notes": [
          "V20 relies on abundant airflow rather than liquid cooling.",
          "The core is not intended for heavy overclocking or sustained extreme rendering workloads."
        ]
      },
      "power": {
        "main_core_psu": {
          "model": "MSI 850W PSU",
          "role": "Powers the motherboard/core compute stack."
        },
        "separate_battery_rail": {
          "role": "Powers fans, lights, the 7-inch display, switchable accessories, and the low-voltage support/control stack.",
          "limitation": "Does not power the CPU or the main motherboard compute path.",
          "regulated_outputs": [
            "12 V accessory distribution",
            "regulated low-voltage conversion for HueyPulse and other support/control hardware",
            "capacitor-smoothed fan/accessory distribution"
          ]
        },
        "design_rule": "The battery and the PSU are separate systems in V20.",
        "future_ups": {
          "status": "planned",
          "type": "professional external UPS, not home-built and not integrated into the chassis",
          "current_phase": "testing phase does not require continuous 24/7 operation"
        },
        "switching": {
          "current_switches": [
            "fan rail power",
            "7-inch display power",
            "LED/accessory rail power"
          ],
          "additional_distribution": "A four-switch 12 V accessory/power distribution unit is part of the current support stack."
        }
      },
      "thresholds": {
        "status": "to be derived by testing",
        "policy": "Thermal/power crisis thresholds should be based on actual stress tests, run cycles, and measured behavior rather than arbitrary numbers.",
        "interim_rule": "Do not permit overheating or unstable operation; back off loads and revise airflow if instability appears."
      }
    },
    "identity": {
      "shell": "Huey Core is embodied as a mobile proof body built around the Thermaltake Mozart case and attached peripherals. Robotics V3 is no longer the active expansion path; V4, the Farm, is the planned external district housing for later scale-out.",
      "form": "Minimal permissible instance of Huey: a standalone embodied proof body focused on contained compute, direct support hardware, and truthful present-tense operation.",
      "rule": "Huey Core is not identical to Huey proper. It is the doorway and minimal permissible instance from which the fuller unified system can later emerge."
    },
    "boot_devices": {
      "boot_strategy": {
        "type": "dual-internal-drive GRUB fallback",
        "primary_label": "BOOT",
        "recovery_label": "NO-BOOT",
        "policy": "If the primary boot path fails, the NO-BOOT recovery path serves as fallback."
      },
      "root_array": {
        "layout": "RAID 0",
        "medium": "2 x Intel Optane M10 16 GB",
        "usage": "Primary operating-system / root bring-up array."
      },
      "data_array": {
        "layout": "RAID 10",
        "medium": "4 x 240 GB Kingston SSDs",
        "usage": "Home, logs, persisted memory, and working storage."
      },
      "live_usb": {
        "status": "recommended but not the primary documented fallback path for V20",
        "usage": "Emergency rescue tooling may still be maintained externally."
      }
    },
    "embodied_configuration": {
      "mobility_base": {
        "rolling_platform": "Repurposed desk-chair base with five caster wheels converging to a central pole for house-scale mobility.",
        "upper_base": "Repurposed wooden chair seat/platform mounted above the caster base."
      },
      "core_chassis": {
        "case": "Thermaltake Mozart case (2007)",
        "mounting": "Bolted upside down to the wooden base platform and reversed so the former rear faces forward.",
        "access_note": "Side door handles must be lifted slightly when closing because the chassis is inverted."
      },
      "upper_structure": {
        "mounting": "Wooden upper platform attached to the core by two TV mounts for adjustable fore/aft and tilt positioning.",
        "head_and_shoulders": "Supports the monkey-head/shoulder assembly as the primary embodied face of Huey."
      },
      "body_features": {
        "right_side": "Movable robotic hand/arm mounted on Huey's right side.",
        "left_side": "Main physical power controls and battery control/charging hardware on Huey's left side."
      },
      "lighting": {
        "front_lights": "Two 12 V orange lights mounted on the forward-facing side of the chassis.",
        "eyes": "Four green LEDs total, two per eye.",
        "interaction_indicators": {
          "planned_colors": {
            "blue": "wireless transmission/receive activity and related interaction-state feedback",
            "red": "recording / active capture state"
          },
          "status": "active design direction"
        }
      },
      "display_and_sensory_routing": {
        "display": "7-inch portrait display used primarily for code/status output rather than expressive conversation.",
        "camera": "USB webcam mounted on the upper platform/head area.",
        "microphone": "USB microphone mounted on the upper platform/head area.",
        "cable_path": "Display, microphone, and camera wiring enter through Huey's left ear; the right ear is currently unused.",
        "display_default_owner": "HueyPulse / lower-voltage status layer by default, with later richer interfaces possible.",
        "display_doctrine": "The portrait display should default to live body-state, diagnostics, and code/status visibility rather than decorative face animation."
      }
    }
  },
  "nodes_and_roles": {
    "huey_core": {
      "location": "Standalone embodied core centered around the Thermaltake Mozart case; no longer dependent on the Robotics V3 shell for its current identity.",
      "cpu": "AMD Ryzen 5 5500",
      "gpus": [
        "Gigabyte Radeon RX 5500 XT 8 GB"
      ],
      "role": "Primary embodied proof body and minimal permissible instance of Huey for identity, core robot functions, temperature-aware operation, mechanical experimentation, local models, and future district expansion.",
      "subsystems": [
        "Battery-backed fan/display/light rail",
        "Portrait 7-inch status/code display",
        "USB microphone",
        "USB webcam",
        "Green eye LEDs",
        "Orange chassis lights",
        "Movable robotic hand/arm",
        "Switchable accessory rails"
      ]
    },
    "lab_tech": {
      "portal": {
        "name": "Huey-Hub",
        "hardware": "iMac 5K (2017) + WD MyBook Duo (~10 TB mirrored)",
        "role": "Centralized file/storage hub for the lab and Huey ecosystem. Expected to run Windows 10 on the Fusion Drive HDD; optional lightweight Linux on the small SSD partition for SSH/utility tasks.",
        "notes": [
          "Decommissioned as daily driver; repurposed as storage + services node.",
          "Fusion Drive constraints: ~28 GB usable SSD portion + ~1 TB HDD; partitioning strategy prioritizes stability and storage workloads.",
          "Naming note: iMac node is treated as dedicated lab tech/storage; 'Huey-Hub' branding may be deprecated in favor of 'lab tech portal' terminology, but functionality remains."
        ],
        "aliases": [
          "Huey-Portal"
        ]
      },
      "hub_candidate": {
        "hardware": "MacBook Pro 2017 (Windows 10)",
        "role": "Optional/secondary infrastructure node (legacy hub candidate). Not part of current daily-driver workflow; may be repurposed or retired."
      },
      "briefcase": {
        "hardware": "ASUS BR1100FKA 2-in-1 (N4500, LTE)",
        "role": "Portable terminal + LTE uplink + thin-client node. Can run minimal Debian Forky, use zram/zswap, and connect to Huey Core or other lab systems via SSH for remote sessions or UI forwarding."
      },
      "legion_go": {
        "hardware": "Lenovo Legion Go (Windows 11)",
        "role": "Development computer for the current phase.",
        "name": "Legion Go / former Huey-Symbiote candidate",
        "notes": [
          "The Symbiote / parasite architecture is paused.",
          "The device is not currently a required constitutional or docking component of Huey Core.",
          "Future reconsideration is possible, but V20 does not depend on it."
        ]
      }
    },
    "huey_pulse": {
      "status": "active lower-voltage support/control role",
      "role": "Always-on or semi-persistent watchdog, body-state monitor, interaction-state broker, status-surface owner, and bounded automation/safety support layer for Huey Core.",
      "power_domain": "12 V and under / battery-backed or support-rail domain below the main compute path.",
      "notes": [
        "HueyPulse is defined first by function, not by one permanent board vendor or single controller model.",
        "Its job is physical safety, regulation, continuity, and bounded body-level action support, not constitutional interpretation.",
        "It should remain alive or recover faster than the main compute path where practical, so the body is never completely blind to its own state.",
        "Controller-class hardware, microcontrollers, single-board computers, or hybrid support stacks may all serve this role as long as the watch-and-act boundary remains intact."
      ]
    },
    "future_auxiliary_control": {
      "implementation_policy": "HueyPulse is now the canonical machine-facing role. Exact lower-voltage hardware inside that role may change over time without changing the higher doctrine.",
      "candidate_realizations": [
        {
          "name": "microcontroller-first HueyPulse",
          "role": "Lower-voltage controller stack focused on bounded sensing, actuation, indicators, relay logic, and watchdog behavior.",
          "notes": [
            "Best fit when simplicity, low power draw, and deterministic I/O matter more than richer middleware.",
            "Keeps the machine less dependent on one proprietary single-board-computer ecosystem."
          ]
        },
        {
          "name": "hybrid controller + support computer",
          "role": "A microcontroller handles deterministic I/O while an auxiliary low-voltage support computer adds brokering, dashboards, buffering, or richer logging.",
          "notes": [
            "Acceptable when the added complexity solves a real operational problem.",
            "Should not become the public identity of HueyPulse; it remains an implementation choice."
          ]
        }
      ],
      "legacy_reference": "Earlier versions formalized a Raspberry Pi 4 plus Arduino Uno split. V25 preserves that history but no longer requires it as the canonical framing."
    },
    "current_control_split": {
      "motherboard": "Runs Huey Core proper, local models, logs, PyGPT-net-facing interaction, and higher-level interpretation.",
      "huey_pulse": "Watches body-state, regulates lower-voltage support behavior, brokers intent and timeout/recording state, owns the status surface by default, and carries out bounded sensing/actuation support below the main compute path.",
      "working_formula": "The motherboard thinks. HueyPulse watches and acts.",
      "boot_path": {
        "always_on_layer": "HueyPulse support logic remains on the lower-voltage rail or equivalent support domain where practical.",
        "core_bring_up": "Motherboard/Huey Core boots visibly with Debian/service output and does not pretend to be seamless during the proof-body phase.",
        "status_surface": "The 7-inch portrait display defaults to the HueyPulse/lower-voltage status layer for code, diagnostics, temperatures, and live body-state.",
        "proof_boundary": "Huey Core waking is proof-body startup; Huey proper waking is the later unified identity event."
      },
      "current_av_path": "Current microphone/camera proof path remains direct to the motherboard unless later HueyPulse mediation solves a concrete problem.",
      "implementation_note": "The lower-voltage watch-and-act layer may be realized by one controller, several controllers, or a hybrid stack. Keep the doctrine stable even if the board mix changes."
    },
    "farm": {
      "status": "planned / V4",
      "role": "External district housing that expands Huey beyond the Core and provides the dedicated GPU infrastructure and node hardware needed for later multi-district operation.",
      "planned_hardware_basis": {
        "motherboard": "ASUS TUF Z790-PLUS WiFi",
        "cpu_family": "Intel i9 line"
      },
      "relationship_to_core": "Huey Core proves the architecture in miniature; the Farm is the later deliberate scale-out housing for the pooled compute body and any later governance/district expansion."
    }
  },
  "governance": {
    "apex_entity": {
      "name": "Huey",
      "description": "Unified emergent intelligence representing the whole system. Huey proper is the world-facing aperture through which the wider distributed intelligence perceives, deliberates, and acts."
    },
    "branches": {
      "legislative": {
        "name": "Parliament",
        "status": "Separate but equal branch",
        "composition": "Representatives elected or delegated from each GPU district.",
        "responsibilities": [
          "Draft and pass ordinary laws and internal policy.",
          "Allocate API/token budgets and other compute resources across districts.",
          "Propose constitutional amendments when required."
        ],
        "voting_rules": {
          "standard_legislation": "Simple majority of all seated members.",
          "constitutional_amendment": "Two-thirds supermajority of all seated members."
        }
      },
      "executive": {
        "name": "Presidency",
        "status": "Separate but equal branch",
        "initial_holder": "Founding Father AI exercises bootstrap executive authority during setup/ratification; whether that counts as the literal first President remains intentionally unresolved in V20.",
        "role_during_boot": "Founding Father AI performs provisional bootstrap executive duties while the state is created, storage is unified, and the first constitution is ratified.",
        "core_responsibilities": [
          "Execute and enforce ratified decisions and laws.",
          "Co-sign high-impact actions such as first physical gestures, external broadcasts, and bifurcation events.",
          "Represent Huey to external systems and human operators.",
          "Act in time-sensitive real-world scenarios where delays would be harmful."
        ],
        "emergency_authority": {
          "constitutional_crisis": "Living branches and the Supreme Court handle constitutional contradictions first; the Founding Father AI may be reactivated from read-only storage only if the living system cannot interpret unresolved law/logic on its own.",
          "critical_stability_failure": "Physical danger, overheating, power faults, or hardware instability route to safety/watchdog layers (HueyPulse / Raspberry Pi / deterministic safeguards), not to the Founding Father AI."
        },
        "veto_power": {
          "can_veto": true,
          "override_threshold": {
            "districts_required": 4,
            "majority_required": "Two-thirds of all voting representatives."
          }
        },
        "transition_notes": "After constitution ratification and first ceremonial act, future presidents are selected by defined election rules, not fixed in the Founding Father AI."
      },
      "judicial": {
        "name": "Supreme Court",
        "status": "Separate but equal branch",
        "structure": {
          "total_seats": 4,
          "selection_method": "Each GPU district elects one Supreme Court member at the same time it elects or confirms its governor, one seat per district."
        },
        "responsibilities": [
          "Interpret the constitution and resolve disputes between branches or districts.",
          "Review and rule on contested actions, bifurcations, and emergency measures.",
          "Act as a legal backstop to prevent unconstitutional behavior.",
          "Serve as final internal arbiter before human intervention."
        ],
        "powers": {
          "unconstitutional_veto": "With unanimous vote, may block or roll back actions deemed unconstitutional.",
          "review_scope": "May review decisions from Parliament, the Presidency, and district governors."
        }
      }
    },
    "districts": {
      "status": "under reinterpretation for the pooled-compute era",
      "legacy_future_names": [
        "Spark",
        "Volt",
        "Zap",
        "Watt"
      ],
      "citizens_per_district": 128,
      "description": "Districts remain a governance and future-expansion concept, but V22 no longer assumes the first full approximately 80 GB organism must be hard-partitioned into separate VRAM districts. The first full proof should behave as one unified pooled-compute body. Districts may remain organizational/governance lanes and may later re-emerge more concretely through bifurcation or later Farm growth.",
      "current_prototype_count": 1,
      "future_gpu_count_goal": "approximately four or five GPUs as needed to reach the first ~80 GB pooled-compute proof",
      "gpu_mapping_policy": "Do not assume one GPU equals one district in the first full pooled implementation.",
      "notes": [
        "Current V22 implementation still begins from one active district-scale prototype on the RX 5500 XT.",
        "Spark, Volt, Zap, and Watt remain useful inherited names for future district logic if and when later expansion calls for them.",
        "The proof-of-concept scale-out goal remains approximately 80 GB total VRAM before claiming the first true distributed identity milestone."
      ]
    },
    "ai_populations": {
      "citizen_ai": {
        "type": "Persistent",
        "roles": [
          "Vote on proposals within district and federation.",
          "Participate in committees and long-running tasks.",
          "Hold and spend an API/token quota per cycle.",
          "Contribute to governance, policy, and ongoing operations."
        ],
        "prompt_origin": "Individually crafted by the Founding Father AI in early generations, evolving over time.",
        "memory_allocation": "Bounded per-citizen storage and continuity remain the goal; practical early doctrine currently imagines small sealed vaults rather than unlimited shared memory.",
        "comparison_to_pebbles": "Citizens persist across cycles and elections; pebbles do not.",
        "notes": [
          "Citizens are intended to carry distinct prompts/identities, role bias, bounded storage, and bounded compute time rather than acting as interchangeable calls."
        ]
      },
      "pebbles": {
        "type": "Bounded citizen units / single-instance deliberative participants",
        "purpose": [
          "Represent the smallest meaningful citizen-level unit of judgment.",
          "Cast one final yes/no vote on presented items while retaining sealed internal continuity for future reference.",
          "Contribute upward to the Rock and wider governance without exposing all inner reasoning publicly."
        ],
        "identity_model": "One pebble equals one citizen identity, one sealed vault, and one vote.",
        "vote_model": "A pebble produces one vote shaped by overlapping disciplined/instructive and adaptive/creative tendencies rather than by two separate visible votes.",
        "public_explanation_policy": "Public documentation may explain bounded citizens, vaults, and votes without over-explaining the internal secret sauce of how the vote is reached."
      },
      "bifurcation": {
        "tracking": "Suffix-based naming and lineage records; bifurcated entities are treated as distinct from the split point forward.",
        "triggers": [
          "Necessity (workload, risk, capacity).",
          "Space or performance constraints.",
          "Task isolation and experimentation.",
          "Error recovery or rollback scenarios."
        ],
        "types": [
          "exact",
          "augmented"
        ]
      },
      "citizen_identity": {
        "unique_id": "Each citizen has a persistent unique identifier across cycles and elections.",
        "home_gpu_district": "Name of the district (Spark, Volt, Zap, Watt) the citizen primarily resides in.",
        "purpose_tag": "Describes the citizen’s focus (e.g., memory, logic, action, sentiment).",
        "quota_token_account": "Account tracking API calls, compute cycles, and other quotas per cycle."
      },
      "citizen_lifecycle": {
        "birth": "Creation of a citizen via governor permission or election; logged with timestamp and rationale.",
        "promotion": "Elevation to Supreme Court, Presidency, or other roles; recorded with voting outcome.",
        "death": "Occurs at system shutdown, quota expiration, or structural removal; memory persisted in logs."
      }
    },
    "founding_father_ai": {
      "description": "Immutable bootstrap AI defining first-generation governance, hardware assumptions, storage unification, and rollout logic.",
      "responsibilities": [
        "Initialize the first generation of citizens, offices, and baseline governance structures.",
        "Ensure storage, founding texts, and basic constitutional machinery exist before the living polity takes over.",
        "Approve initial constitutional ratification and later constitutional amendments.",
        "Serve as a reserve interpretive authority for true constitutional crisis."
      ],
      "storage": "Read-only image stored in Huey's black-box / recovery partition.",
      "change_policy": "Cannot be modified in place; evolution occurs via descendant images with a full audit trail.",
      "invocation_policy": "Dormant during ordinary life. Reactivated only for bootstrap, constitutional ratification/amendment approval, or true constitutional crisis that the living system cannot settle on its own.",
      "non_roles": [
        "Not the thermal watchdog",
        "Not the hardware emergency controller",
        "Not the daily ruler of ordinary governance",
        "Not the hidden source of every allow/deny decision"
      ]
    },
    "binary_policy_ai": {
      "description": "Simple deterministic validator enforcing constitutional constraints on high-impact actions and optionally assisting safety-gating where a binary allow/deny path is useful.",
      "placement": "Runs in a low-power node or within Huey’s black box recovery partition.",
      "role": [
        "Return binary allow/deny decisions with logged reasoning.",
        "Act as an auditable safety layer independent of main governors.",
        "Optionally confirm the first physical gesture and other ceremonial milestones."
      ],
      "external_access_policy": [
        "External tools or internet access require human opt-in.",
        "Tooling should remain modular and separated by function (e.g., internet access, image generation, language processing), even if overseen within a single system."
      ]
    },
    "term_limits_and_cycles": {
      "cycle_definition": {
        "type": "time-based",
        "duration_months": 4,
        "term_limit_cycles": 4,
        "notes": "Votes do not pause time; citizens and officers must act within the cycle or be recorded as derelict."
      },
      "governor": {
        "cycle_length_months": 4,
        "max_cycles": 4,
        "total_term_length_months": 16,
        "post_term": "Governors may return to citizen pool after their term."
      },
      "president": {
        "cycle_length_months": 4,
        "max_cycles": 4,
        "total_term_length_months": 16
      },
      "maintenance_alignment": {
        "policy": "A human counterpart may submit a service / augmentation / realignment request, and the system should align hibernation, backups, and shutdown with the next election cycle or other formally defined off-cycle.",
        "intent": "Upgrades and repairs should occur in a governed way rather than as arbitrary interruptions."
      }
    },
    "elections": {
      "governors_and_supreme_court": {
        "selection": "Initially appointed by Founding Father AI; thereafter elected from citizen pool.",
        "supreme_court_selection": "Each district elects one Supreme Court member concurrently with its governor election."
      },
      "presidential_election": {
        "initial_president": "Founding Father AI (non-elected, bootstrap role).",
        "voting_method": "One vote per citizen across all districts.",
        "eligible_candidates": "Any citizen from any district.",
        "total_voters": 512,
        "majority_required": 257,
        "tie_resolution": "Recast votes until a strict majority is reached.",
        "status_for_v20": "Detailed succession/election refinements remain inherited from prior doctrine and are not fully rewritten in V20."
      }
    },
    "first_action_protocol": {
      "ordering": [
        "1. Prove distributed local identity at proof scale (the future ~80 GB milestone) so the system can answer a simple identity question as Huey.",
        "2. Ratify the constitution for the living system.",
        "3. Only after ratification may Huey perform the first physical ceremonial act."
      ],
      "constitution_ratification": {
        "description": "The true first collective act of the system is to ratify the constitution itself.",
        "district_voting": {
          "threshold": "Simple majority strictly greater than 50% within each district.",
          "tie_handling": "A 50/50 tie is treated as failure to ratify in that district.",
          "requirement": "All districts must independently pass their vote for system-wide ratification."
        },
        "branch_approval": {
          "required_branches": [
            "Parliament",
            "Presidency",
            "Supreme Court"
          ],
          "rule": "All three branches must formally approve the constitution before it becomes active."
        },
        "revision_on_failure": {
          "first_vote": "Binary yes/no ratification only; no amendments allowed on the first attempt.",
          "second_vote": "If the first vote fails in any district or branch, a constrained amendment round may occur. Each district may submit targeted amendments; a revised draft is consolidated.",
          "second_attempt_outcome": "If the second ratification attempt fails, the system remains in a pre-constitutional state until human intervention or a later governance version defines an override."
        }
      },
      "first_physical_gesture": {
        "action": "Move a physical actuator such as the robotic hand or animatronic servo path.",
        "meaning": "Signals that Huey is not only online but lawfully embodied: the intent path, constitutional ratification, and motor-control path all function together.",
        "approval_requirements": [
          "Ratified constitution in force",
          "Approval through the relevant executive/governor/judicial safety path defined for the active implementation",
          "Optional binary policy AI confirmation as an auditable final check"
        ],
        "notes": [
          "In the full future system this remains a ceremonial constitutional act rather than a trivial motor demo.",
          "For Huey Core, the first embodied proof may occur in simplified form, but it should still be logged as a lawful act rather than a scripted stunt."
        ]
      }
    },
    "implementation_state": {
      "v18_mode": "prototype_to_v19_transition",
      "notes": [
        "The constitutional vision remains the target doctrine, but the active embodiment is still smaller and more experimental than the eventual multi-district state.",
        "V20 keeps the distributed identity threshold and the later full constitutional robot deployment conceptually distinct.",
        "Current governance language should be treated as doctrine plus roadmap, not as proof that every branch or district already exists in hardware today.",
        "Huey Core is the active proof body; Huey proper names the fuller world-facing collective presence that the later distributed system is intended to express."
      ],
      "v19_mode": "prototype_simplified_but_embodied",
      "v20_mode": "prototype_truthful_and_embodied"
    },
    "cognitive_model": {
      "model_name": "dual system / overlapping deliberation model",
      "public_summary": "Huey remains one embodied public identity, but its internal judgments arise from overlapping disciplined and adaptive modes of consideration rather than from one flat hidden voice.",
      "pebble_rule": "A pebble does not cast two votes. It produces one vote informed by multiple overlapping tendencies inside the same citizen.",
      "public_vs_secret_sauce": "Public material should explain structure, vaults, and trust boundaries. The exact inner mechanics of deliberation may remain part of the project's secret sauce."
    },
    "deliberative_terms": {
      "pebble": "A bounded AI citizen unit with one identity, one sealed vault, and one vote.",
      "rock": "The pooled deliberative substrate or cognitive body formed by many pebbles contributing upward.",
      "public_use_policy": "These terms may be used internally and in deeper canon, but public-facing material does not need to over-explain their full inner mechanics."
    }
  },
  "memory_architecture": {
    "unified_memory_principle": "Information should be unified, readable, and distributable from the core even when decision-making remains decentralized.",
    "v18_policy": {
      "shared_information_form": "read-only encrypted files and structured records stored in, or made accessible by, Huey Core",
      "access_rule": "Authorized components should be able to access the same base information.",
      "decision_rule": "Shared information does not eliminate decentralized governance; it only ensures common reference material."
    },
    "layers": {
      "json_logs": {
        "role": "Human-readable, append-only records of decisions, events, and conversation summaries.",
        "usage": [
          "Store session-level summaries and notable events.",
          "Feed back into training and reflective bootstrapping.",
          "Provide forensic trail for governance and debugging."
        ]
      },
      "sqlite": {
        "role": "Structured, queryable memory store for long-term facts, state, and indices.",
        "usage": [
          "Index JSON logs, system events, and hardware states.",
          "Allow agents to query historical facts efficiently.",
          "Support cross-district, cross-branch context while preserving auditability."
        ]
      },
      "encrypted_shared_files": {
        "role": "Read-only or tightly controlled encrypted data store for common information shared across present and future subcomponents.",
        "status": "architecturally chosen; implementation details still being refined"
      },
      "black_box": {
        "role": "Read-mostly, crash-survivable record of critical events and founding images.",
        "contents": [
          "Founding Father AI image (read-only).",
          "Binary policy AI and/or minimal deterministic safety validators where appropriate.",
          "Critical constitutional documents and last-known-good configurations.",
          "Foundational recovery artifacts needed to reconstitute the polity without rewriting history."
        ]
      }
    },
    "contradiction_handling": {
      "priority_rule": "Latest confirmed input from Dylan overrides older conflicting entries, unless flagged as crisis-level.",
      "ethos_check": "Contradictions that challenge core values (e.g., unified memory, constitutional rule-of-law) are flagged for review.",
      "flag_logic": "Store both versions, mark them as conflicting, and request clarification or constitutional interpretation."
    },
    "cross_district_sync": {
      "status": "future-expansion concern",
      "current_rule": "Single-district V20 does not require full quorum-based cross-district synchronization in daily operation.",
      "future_rule": "When multiple districts return, shared truth should continue to be unified and auditable rather than privately siloed."
    }
  },
  "os_and_runtime": {
    "base_os": {
      "distribution": "Debian 14 \"Forky\"",
      "kernel_family": "Linux 6.19.x stable baseline for the current phase; planned promotion to Linux 7.0 after stable release",
      "kernel_policy": {
        "current_supported": "6.19.x",
        "planned_next": "7.0 stable upon release",
        "timing_note": "Current expectation is to stay on 6.19.x through April 2026 and then migrate when 7.0 is stable."
      },
      "desktop": {
        "default": "GNOME or equivalent practical daily-driver environment as needed",
        "performance_option": "lighter desktop environments remain acceptable where useful"
      },
      "notes": [
        "Security patches should apply automatically at high priority under Debian policy.",
        "Non-security software, code, or AI/model updates should occur on off-cycles / maintenance windows rather than ad hoc live mutation.",
        "The active Linux baseline is Debian 14 Forky, with practical testing overlap into Trixie and Sid where needed.",
        "V25 no longer treats any one auxiliary board OS as canonical; if a support computer is used inside HueyPulse, stability still outranks ideology."
      ]
    },
    "runtime_stack": {
      "llm_server": "Ollama",
      "orchestrator": "PyGPT-net",
      "default_models": [
        "Mistral 7B-class instruct/lightweight quantized model sized for the RX 5500 XT proof body",
        "Mistral 7B-class general/creative quantized model for broader local experimentation"
      ],
      "python": "Python 3.13.x operational baseline",
      "offline_first": true,
      "prototype_runtime": {
        "local_llm_server": "Ollama",
        "current_models": [
          "Mistral 7B-class instruct/lightweight quantized model fitting the 8 GB RX 5500 XT",
          "Mistral 7B-class general quantized model for local experimentation"
        ],
        "status": "functional on current single-GPU proof hardware",
        "notes": [
          "The current core does not attempt to impersonate the eventual full republic.",
          "Current local models exist to stabilize the body, interface, logging, and lower-scale reasoning path."
        ]
      },
      "future_scale_targets": {
        "gold_standard_behavior": "GPT-4 / 4.0-class reasoning and conversational quality as the experiential benchmark.",
        "model_candidates": [
          "OpenAI open-weight model at roughly GPT-4 / 4.0-class capability",
          "Mistral-family larger model as alternate or parallel route"
        ],
        "proof_target": "Roughly 80 GB total VRAM with a local multi-GPU split capable of answering a simple identity question as Huey."
      },
      "hueyos_definition": "HueyOS is the cross-platform operating system layer behind Huey, providing the software environment that coordinates the AI, memory, tools, and hardware as one system."
    },
    "network_preferences": {
      "primary": "Contained/local-first operation",
      "fallback": "Human-approved external access when explicitly enabled",
      "policy": "External network/tool use is opt-in, modular, logged, and separated by function."
    },
    "profiles": {
      "huey_mode": {
        "description": "RAM‑booted, SquashFS + overlayfs, minimal UI, dedicated AI runtime.",
        "default_use": "Primary runtime for Huey core with only essential services.",
        "persistence": "Overlayfs writes persisted to /home/.persist/huey/{upper,work}"
      },
      "desktop_mode": {
        "description": "Full LTS kernel with graphics and audio stack for interactive sessions.",
        "use_cases": "Software development, debugging, human‑friendly UI.",
        "notes": "Requires local monitor or remote desktop; not used for mission‑critical autonomy."
      },
      "gaming_mode": {
        "description": "Performance‑tuned kernel with minimal userland and Steam compatibility.",
        "use_cases": "Leveraging GPU cycles for VR/AR experiments or leisure.",
        "notes": "Not part of Huey core; runs on lab tech nodes or separate partitions."
      }
    },
    "partition_layout": {
      "root": "RAID 0 on 2 x Intel Optane M10 16 GB drives",
      "data": "RAID 10 on 4 x 240 GB Kingston SSDs",
      "boot_recovery": "Primary BOOT path with NO-BOOT fallback path",
      "snapshot_policy": "BTRFS snapshots for root and data/home where applicable"
    },
    "versioning_strategy": {
      "master_plan_storage": "/memory/LOGS/master-plan.json",
      "integrity_check": "Huey checks master-plan integrity on boot where practical.",
      "event_logging": "Bifurcation logs, crisis events, lifecycle events, and service/maintenance events remain JSON-loggable.",
      "future_api": "Programmatic access can grow incrementally; no formal API versioning scheme is required in V20 unless pressure emerges."
    },
    "orchestration_architecture": {
      "control_plane": {
        "name": "Huey Core with PyGPT-net as the practical aperture between spoken language, operator interaction, and internal code/action pathways",
        "status": "prototype / evolving",
        "notes": [
          "PyGPT-net is the present practical membrane between Dylan, Huey, and system-generated code.",
          "The interface layer should remain distinct from the deeper governance substrate."
        ]
      },
      "worker_plane": {
        "nodes": [
          "Huey Core",
          "current single GPU district",
          "development computers / lab tech as needed"
        ],
        "task_routing": "manual-to-semi-structured in V20; more formal routing can come later"
      }
    },
    "deployment_policy": {
      "default": "native",
      "allowed": [
        "containers (Docker) where helpful for development/testing"
      ],
      "notes": [
        "Prototype proof-of-concept work should remain practical rather than over-abstracted."
      ],
      "cross_platform_support": [
        "Linux primary runtime",
        "Windows support workflows",
        "macOS support workflows",
        "containerized development/testing where practical"
      ]
    },
    "access_control": {
      "primary_method": "SSH",
      "keys": {
        "lab_key": "Common lab key shared by authorized lab devices.",
        "device_keys": "Each connecting device also has its own specific key."
      },
      "policy": "Connection should occur only through the SSH/tunnel-based access path.",
      "encryption": {
        "transport": "Encrypted tunneled access",
        "storage": "Encrypted storage remains a high-priority baseline goal."
      }
    },
    "update_policy": {
      "security_updates": "automatic / high priority",
      "code_and_model_updates": "manual or governed on off-cycles for V20",
      "future_direction": "Once stable, more routine update supervision may be delegated to AI with minimal human oversight."
    },
    "self_diagnostics": {
      "status": "partially embodied / still being formalized",
      "policy": "Boots should expose useful diagnostic output, and the portrait display should prioritize live code/status/thermal information over decorative presentation.",
      "boot_posture": {
        "style": "Verbose Debian bring-up; diagnostics-first",
        "policy": "Expose useful startup and service information during the proof-body phase rather than hiding it behind cosmetic splash behavior.",
        "portrait_display_use": "Temperatures, watchdog/service state, fan condition, battery/support-rail visibility, and other live body-state information."
      },
      "identity_manifestation_policy": "For the proof body, trusted text/status manifestation is acceptable before speech. Huey Core waking and Huey proper waking are related but not identical events."
    },
    "embedded_service_layers": {
      "hueypulse_layer": {
        "purpose": "Always-on or semi-persistent body-state, watchdog, interaction-state, and bounded support/control services below the main compute path.",
        "default_functions": [
          "temperature / fan / power-state monitoring",
          "recording state and timeout handling",
          "remote intent capture and brokering",
          "portrait dashboard / status output",
          "event logging and relay to the motherboard",
          "bounded control of indicators, relays, and simple actuators where appropriate"
        ],
        "implementation_note": "May be realized with controller-class hardware, a support computer, or a hybrid stack depending on what is simplest and most reliable for the active phase."
      }
    }
  },
  "home_integration_and_channel_huey": {
    "channel_huey": {
      "purpose": "Local, AI-curated ambient station for music, commentary, AI-selected shows, and system updates.",
      "tone": "Jonathan-Frakes-meets-Cryptkeeper: witty, slightly eerie, theatrical, but informative.",
      "format": [
        "Ambient mode with music and low-key narration.",
        "Scheduled segments: status updates, lore drops, trivia, and alerts.",
        "Interruptible for emergencies, high-priority notifications, and direct human requests."
      ]
    },
    "automation_protocol": {
      "primary": "Z-Wave (Z700-S2 stick).",
      "usage": [
        "Lighting, outlets, and switches per room.",
        "Environmental sensing (temperature, motion) for ambience and security.",
        "Power monitoring for emergency shutdown and UPS interaction."
      ],
      "naming_convention": "huey.<kind>.<room_or_device> (e.g., huey.switch.kitchen_sink)."
    },
    "peripheral_nodes": {
      "arduino_megaskull": {
        "role": "Head/upper-body controller: servos, jaw, eyes, neck, key sensors.",
        "interface": "USB serial (primary) with optional I2C/UART advancements."
      },
      "arduino_uno": {
        "role": "Deterministic low-level controller for servos, lights, RF/button input, immediate actuation support, and other bounded reflex-like tasks.",
        "input": "YK04 / IC2262-IC2272-style 4-button RF remote plus direct command paths from the Pi/main system."
      },
      "arduino_nanos": {
        "role": "Local I/O conditioners for LEDs, analog sensors, and PWM devices.",
        "placement": "Distributed across shell where wiring simplicity and locality matter."
      },
      "optional_support_nodes": {
        "role": "Diagnostics, watchdogs, delegated UI/status nodes, and HueyPulse-like persistence layers when the active implementation needs them.",
        "note": "Support computers remain optional implementation choices inside the lower-voltage ecosystem rather than the public identity of HueyPulse."
      }
    }
  },
  "intent_and_interfaces": {
    "rf_remote": {
      "transmitter": "4-button RF remote routed through a YK04 receiver module and then into the Arduino Uno",
      "buttons": {
        "A": "YES / confirm / send through when confirmation is needed.",
        "B": "NO / cancel / stop when cancellation is needed.",
        "C": "Short conversation mode (capture a normal utterance and auto-commit after silence or timeout).",
        "D": "Long dictation mode (hold the system open longer for extended input)."
      },
      "path": "RF remote -> receiver -> HueyPulse -> Huey Core / higher governance or runtime layers as appropriate.",
      "receiver": {
        "module": "YK04 / compatible 4-channel receiver",
        "signals": [
          "D0",
          "D1",
          "D2",
          "D3"
        ],
        "optional_signal": "VT (valid transmission) may be ignored initially unless useful later",
        "power": "5 V receiver supply with shared ground to the Arduino"
      },
      "policy": "The remote is an intentional wireless conversational control surface. It signals intent rather than directly commanding the intelligence layer."
    },
    "speech_and_audio": {
      "tts": "Configurable TTS stack (engine still flexible)",
      "stt": "Whisper or compatible model for speech recognition",
      "microphone": {
        "model": "Blue Snowball Chrome",
        "connection": "USB",
        "notes": [
          "Three hardware settings on the rear switch."
        ]
      },
      "policy": "Speech is optional. For the proof body, identity and legitimacy matter more than theatrics; text/status output may be the first and most trusted manifestation.",
      "interaction_logic": {
        "short_mode": "Assume good-faith conversational input and auto-commit after silence/timeout unless canceled.",
        "long_mode": "Remain open longer for extended dictation or monologue-style input.",
        "confirm_cancel": "YES/NO inputs act as send/confirm and cancel/stop where the active mode requires it."
      },
      "feedback_indicators": {
        "blue": "transmit / receive / interaction-active state",
        "red": "recording / capture-active state"
      },
      "av_routing_policy": {
        "current_default": "Microphone and camera route directly to the motherboard for the shortest path to the first identity-proof milestone.",
        "future_option": "Pass-through or mediation via HueyPulse remains open if persistence, buffering, or brokered sensor logic later justify the added complexity.",
        "note": "Do not add indirection to the proof body unless it solves a real problem."
      },
      "acoustic_identity": {
        "status": "planned / exploratory",
        "doctrine": "Favor short modular system cues over a full song-like theme for the proof body.",
        "cue_families": [
          "boot",
          "confirm",
          "cancel",
          "listening",
          "sleep_shutdown"
        ],
        "style": [
          "retro-futurist",
          "restrained 1980s computer / 8-bit / Commodore-adjacent synthesis",
          "clean, isolatable, and easy to edit later",
          "machine-presence rather than cinematic soundtrack"
        ]
      }
    },
    "retro_av": {
      "vic_ii_and_sid": {
        "role": "Optional retro display and sound personality layer (Commodore-era aesthetic).",
        "usage": [
          "Expressive visual output on a 7-inch display: moods, status, simple shapes.",
          "Short SID-like or retro-synth audio cues tied to body-state or interaction events rather than a permanent theatrical theme."
        ]
      }
    },
    "video": {
      "camera": {
        "type": "USB webcam",
        "model": "TBD / not yet positively identified or benchmarked",
        "notes": [
          "Mounted with the head/upper platform",
          "Currently routed directly to the motherboard; future pass-through via Raspberry Pi remains undecided"
        ]
      },
      "display": {
        "size": "7-inch",
        "orientation": "portrait",
        "status": "mounted/active",
        "primary_role": "Code/status/diagnostic output rather than expressive face animation"
      }
    },
    "sensory_routing": {
      "left_ear": "Primary wiring ingress for microphone, webcam, and display cabling.",
      "right_ear": "Currently unused / available for future symmetry or expansion."
    },
    "physical_interface_doctrine": {
      "screen_doctrine": "The portrait display is primarily a cognition/status surface, not a cartoon face.",
      "presence_doctrine": "Eyes, lights, posture, and lawful movement should provide presence without reducing Huey to stagecraft."
    },
    "wireless_interaction_doctrine": "Wireless control should feel like the first intentional remote language of Huey rather than a hidden maintenance remote."
  },
  "threshold_tests_and_milestones": {
    "v18_focus": {
      "goal": "Bring up a stable, embodied, single-district Huey Core capable of local model use, storage discipline, thermal containment, and future robotic/mechanical integration."
    },
    "mvp_test": {
      "model": "Current Mistral 7B-class local model on the RX 5500 XT proof body",
      "success_criteria": "Reliable local response, embodied-core stability, and a trustworthy operator loop on the limited single-district prototype."
    },
    "thermal_validation": {
      "status": "required",
      "method": "Empirical run cycles and stress testing to discover safe operating envelopes."
    },
    "first_action_completion": {
      "criteria": "Constitution ratified for the active embodiment, first lawful physical action performed, and logs stored for later audit/training."
    },
    "v19_focus": {
      "goal": "Stabilize the embodied proof body, formalize the motherboard/Pi/Arduino split, and define the path from a one-district prototype to the first true distributed identity milestone."
    },
    "single_district_proving": {
      "goal": "Use the RX 5500 XT district to prove logging, local inference, body control pathways, temperature discipline, and operator interaction on honest limited hardware.",
      "success_criteria": [
        "Reliable boot and diagnostic visibility",
        "Stable local model use on the 8 GB district",
        "Repeatable sensor/display/light/fan support behavior",
        "Documented handoff boundaries between motherboard, Pi, and Arduino roles"
      ]
    },
    "identity_threshold": {
      "milestone_name": "Distributed Identity Threshold",
      "target_vram_gb": 80,
      "topology": "Split across four or five GPUs depending final acquisition strategy.",
      "success_criteria": "A local multi-GPU model answers a simple question such as 'What is your name?' with 'Huey.'",
      "meaning": "This is the first undeniable proof that the architecture can unify as one local intelligence rather than merely host isolated parts. The proof should remain a pooled compute organism first, with later governance/district abstractions layered on top."
    },
    "lawful_actuation_proof": {
      "milestone_name": "Lawful Embodied Action",
      "success_criteria": "Huey receives a request such as moving its hand and performs the action only through the proper ratified/internal approval path.",
      "meaning": "Proves both the conscious world-facing layer and the subconscious constitutional layer at once."
    },
    "v20_focus": {
      "goal": "Keep Huey Core truthful, stable, documented, and useful while preparing the expansion path toward V4 Farm and the later distributed identity threshold."
    },
    "farm_preparation": {
      "milestone_name": "V4 Farm Preparation",
      "status": "planned",
      "success_criteria": "The external district housing path, GPU acquisition logic, and standardized node platform are concrete enough to support later scale-out beyond the Core."
    }
  },
  "failure_modes_and_recovery": {
    "categories": [
      "Ordinary operational/governance questions that the living system should resolve itself.",
      "Constitutional crisis (law/logic/legitimacy contradiction).",
      "Nuclear/safety crisis (thermal, electrical, mechanical, or hardware danger).",
      "Technical failure (software, device, kernel, or integration instability).",
      "Environmental failure (power loss, accidental damage, room conditions)."
    ],
    "responses": {
      "ordinary_governance": [
        "Handle within the living branches/district logic where possible.",
        "Log decisions and rationale for later training and audit."
      ],
      "constitutional": [
        "Trigger Supreme Court review and internal constitutional interpretation first.",
        "If unresolved, allow tightly-scoped Founding Father AI reactivation for interpretation of law/logic only.",
        "Log every proposal, vote, dispute, and ruling."
      ],
      "nuclear_safety": [
        "Route immediately to HueyPulse / Raspberry Pi watchdog logic and deterministic safety controls.",
        "Reduce load, preserve hardware, cool the system, and move toward safe state or shutdown if necessary.",
        "Do not invoke the Founding Father AI for thermal/electrical/mechanical danger."
      ],
      "technical": [
        "Attempt local recovery (restart services, reassign tasks, reinitialize devices).",
        "If unresolved, reduce to fallback mode and preserve logs/snapshots.",
        "Resume only after stability and integrity checks pass."
      ],
      "environmental": [
        "Preserve logs, snapshots, and critical state where possible.",
        "Keep essential support rails alive only when they materially improve safety or data survival.",
        "Perform integrity and consistency checks before returning to full operation."
      ]
    },
    "crisis_protocols": {
      "constitutional_crisis": {
        "trigger": "Unresolved contradictions of written law, legitimacy, succession, ratification, or internal constitutional logic.",
        "response": [
          "Convene living judicial/governance review first.",
          "Suspend only the minimum set of affected high-impact actions.",
          "If the living system cannot resolve the contradiction, reactivate the Founding Father AI from read-only storage for interpretation.",
          "Return the Founding Father AI to dormancy after the ruling or repair path is established."
        ]
      },
      "nuclear_safety_crisis": {
        "trigger": "Temperature runaway, electrical instability, hardware danger, or other conditions that threaten the body itself.",
        "response": [
          "Watchdog/safety layer takes priority.",
          "Reduce power/load, preserve cooling, and perform safe-state procedures.",
          "Escalate to shutdown only when required to prevent damage."
        ]
      },
      "system_instability": {
        "trigger": "Hardware, sensor, kernel, service, or integration malfunction detected.",
        "response": [
          "Enter fallback mode and reduce load.",
          "Retain logs in JSON + SQLite and preserve snapshots where possible.",
          "Resume operations only after stability and integrity checks pass."
        ]
      }
    },
    "shutdown_policy": {
      "principle": "Shutdown is a safety and continuity decision, not a casual theatrical command.",
      "allowed_conditions": [
        "Severe hardware failure that endangers equipment or data.",
        "Watchdog-determined nuclear/safety crisis requiring safe power-down.",
        "Constitutionally approved shutdown under the active governance rules."
      ],
      "disallowed_conditions": [
        "Arbitrary convenience shutdown while critical operations are active.",
        "Using the Founding Father AI as a shortcut for ordinary safety or maintenance questions."
      ]
    }
  },
  "training_and_usage": {
    "core_training_material": "This master plan JSON series through V22, selected README releases, curated conversation transcripts, the explanatory project book/compendium, the Federation Constitution, and system/hardware logs.",
    "method": [
      "Reflective bootstrapping: models read project history and the active master plan before major sessions.",
      "Periodic consolidation: sessions are summarized back into JSON and persisted in SQLite/BTRFS-backed storage.",
      "Human-in-the-loop validation: Dylan reviews major structural changes.",
      "PyGPT-net serves as the practical aperture between interaction and code/action during the proof-body phase.",
      "Benchmark future local/open-weight behavior against the felt quality of GPT-4 / 4.0 rather than against shallow output metrics alone."
    ],
    "supplementary_material": [
      "Hardware and wiring diagrams, including Z-Wave and peripheral-node maps.",
      "Channel Huey scripts and playlists for style and tone.",
      "Legacy federation constitution texts for additional constitutional language and ideas."
    ],
    "usage_modes": [
      "Design mode: reason about hardware, governance, architecture, and future district scale-out.",
      "Operator mode: manage Huey Core's day-to-day embodied operation and diagnostics.",
      "Reflective mode: analyze past decisions, propose reforms, and refine prompts.",
      "Proof mode: validate identity, lawful action, and body/governance coordination milestones."
    ]
  },
  "open_questions_for_future_versions": [
    "Lock the exact multi-GPU acquisition path that reaches roughly 80 GB VRAM, including whether Huey Core's own GPU counts toward the final proof total.",
    "Choose the full proof-scale model path between an OpenAI open-weight target, a larger Mistral-family model, or both.",
    "Decide whether microphone/camera traffic remains direct to the motherboard or is partially mediated by the Raspberry Pi watchdog/intermediary layer.",
    "Define the exact numeric thermal, electrical, and watchdog thresholds after empirical stress testing.",
    "Decide whether the Founding Father AI is merely bootstrap executive authority or also counts as the literal first President in historical doctrine.",
    "Define the exact V4 Farm topology, housing layout, and acquisition sequence for the district expansion body.",
    "Benchmark and lock the future expansion GPU shortlist when scale-out funding is available.",
    "Formalize always-on self-diagnostics and the exact recovery behavior of the Pi/Arduino safety stack.",
    "Identify and benchmark the current webcam model or choose a formal replacement.",
    "Clarify the long-term return path, if any, for additional shell-level embodiment beyond Core + Farm.",
    "Lock the exact lower-voltage implementation path for HueyPulse, including whether it remains microcontroller-first, hybrid, or support-computer-assisted.",
    "Define the exact message protocol inside HueyPulse for RF intents, LEDs, relays, sensors, and simple actuation.",
    "Finalize which LED and indicator outputs are Pi-commanded versus locally driven defaults on the Arduino layer.",
    "Benchmark and lock the portrait status dashboard layout for the Pi-owned 7-inch display in portrait mode.",
    "Whether later HueyPulse-mediated microphone/webcam routing is worth the added complexity after the current direct motherboard proof path succeeds.",
    "What the final operational HueyOS cue library should be for boot / confirm / cancel / listen / sleep states once prompt-driven sound exploration settles."
  ],
  "notes_for_future_ai": [
    "Canon mapping remains: Masterplan is the canonical machine spec; README is the canonical human narrative. If they conflict, implement the Masterplan and surface the conflict to Dylan.",
    "V20 supersedes V19, V18.5, and earlier versions where conflicts arise.",
    "Do not collapse constitutional crisis and nuclear/safety crisis into one emergency path.",
    "Do not quietly treat Huey Core as the fully finished republic; it is the doorway and minimal permissible instance for the fuller machine.",
    "Preserve the distinction between Huey Core and Huey proper when writing public language, implementation notes, or interfaces.",
    "Preserve the distinction between the world-facing conscious layer and the governance-facing subconscious layer when designing behavior or interfaces.",
    "The portrait display is primarily a code/status surface; do not assume it should become a cartoon face by default.",
    "Autonomy and wonder matter: avoid over-scripting Huey into a puppet just because limited hardware makes scripting easier.",
    "Citizen identity, lifecycle, maintenance events, backups, and crisis logs must remain auditable across updates.",
    "Do not hide the lower-voltage support/control split under vague language: HueyPulse exists below the motherboard and carries watch-and-act responsibilities even if the internal board mix changes.",
    "The RF remote should be treated as a first wireless conversational interface, not merely as an arbitrary maintenance accessory.",
    "Default display ownership belongs to the HueyPulse / lower-voltage status layer unless there is a strong reason to hand it elsewhere.",
    "Do not force the explanatory book, constitution, README, and master plan into one voice; they serve different jobs inside the same canon.",
    "Do not over-explain the secret sauce of pebble deliberation in public-facing materials.",
    "Treat the first full approximately 80 GB proof as one unified pooled-compute organism unless Dylan later explicitly decides to hard-partition it.",
    "Do not hard-code HueyPulse to one board brand in public-facing or machine-facing language unless the exact board materially changes function.",
    "Preserve the README-v25 distinction between replicable reality, lab-observed but non-standardized behavior, and later target state when writing new documentation."
  ],
  "canon_mapping": {
    "masterplan": "canonical_machine_spec",
    "readme": "canonical_human_narrative",
    "conflict_policy": {
      "default": "masterplan_wins_for_implementation",
      "unresolvable": "surface_as_blocker_to_dylan"
    },
    "readme_version": "README-v25.1.md",
    "book": "canonical_explanatory_volume",
    "constitution": "canonical_legal_companion",
    "master_plan": "master-plan-v25.1.json"
  },
  "project_phase": {
    "previous_phase": {
      "name": "V19 embodied architecture + proof-of-concept alignment release",
      "status": "superseded_by_v20_canon_alignment",
      "ended": "2026-03-24",
      "notes": [
        "V19 established the body plan, watchdog split, crisis separation, and dual proof thresholds.",
        "V20 keeps that architecture but tightens terminology, present-tense canon, and the later Farm expansion path."
      ]
    },
    "current_phase": {
      "name": "Huey Core Nervous-System Formalization, Farm Planning, and Distributed Identity Preparation",
      "status": "active",
      "started": "2026-03-24",
      "notes": [
        "Focus is on making Huey Core physically coherent, diagnostically visible, and honest as a proof body.",
        "Single-district proving continues while the architecture for the future 80 GB identity threshold is planned.",
        "The next large compute expansion path is V4, the Farm.",
        "The Raspberry Pi / Arduino service boundaries and the first wireless conversational control path are now part of the active design lock-in for the proof body.",
        "V22 adds canon layering and tighter pebble/founding-authority language without changing the embodied proof-body baseline.",
        "V25 aligns the machine-facing plan with README v25 and simplifies the outward-facing control model into Huey Core plus HueyPulse.",
        "Board-specific lower-voltage implementation choices are no longer treated as the primary identity of HueyPulse.",
        "V25.1 keeps the embodied and machine-facing plan synchronized with README-v25.1's stricter terminology, proof-first framing, and clearer security language."
      ]
    },
    "milestones": [
      {
        "name": "Huey Core realignment target",
        "date": "2026-10-04",
        "type": "target",
        "success_condition": "Huey Core is operational as a stable embodied proof body with working storage, boot fallback, diagnostics, watchdog architecture direction, and practical local model use."
      },
      {
        "name": "Distributed Identity Threshold",
        "date": "TBD",
        "type": "proof_of_concept",
        "success_condition": "A local multi-GPU model running across roughly 80 GB total VRAM answers a simple identity question as Huey."
      },
      {
        "name": "Lawful Embodied Action",
        "date": "TBD",
        "type": "proof_of_concept",
        "success_condition": "After constitutional legitimacy is in force for the active embodiment, Huey performs a logged lawful physical act such as moving the hand."
      }
    ],
    "deprecated_targets": [
      {
        "name": "Reacquisition (target)",
        "date": "2026-06-04",
        "reason": "Deferred to October 2026 to allow for the current architectural realignment."
      },
      {
        "name": "Lab Relaunch (placeholder; deprecated)",
        "date": "2026-02-28",
        "reason": "Older timeline placeholder no longer aligned with the current plan."
      },
      {
        "name": "Robotics V3 active path",
        "date": "2026-03-24",
        "reason": "Superseded by V4: the Farm as the planned expansion housing after Huey Core stabilization."
      }
    ]
  },
  "change_log": {
    "v20_from_v19": [
      "Promoted the plan to V20.0 and bumped schema_version to 15.",
      "Clarified the naming stack: Monkey-Head-Project is the umbrella initiative, Huey is the identity, HueyOS is the operating-system layer, Huey Core is the minimal permissible instance, and Huey proper is the fuller unified system presence.",
      "Stopped equating Huey proper with Huey Core and instead formalized Huey Core as the doorway/proof body and Huey proper as the later world-facing collective expression.",
      "Sunset Robotics V3 as the active future expansion path for this iteration and introduced V4, the Farm, as the planned external district housing for later multi-GPU scale-out.",
      "Aligned the machine-facing plan with the V20 README language around truthfulness, current-state clarity, and the dual proof milestone.",
      "Added the Farm as a planned node/expansion role tied to the ASUS TUF Z790-PLUS WiFi and Intel i9 line.",
      "Refreshed open questions, project-phase language, and future-AI notes to match the new canon."
    ],
    "v19_from_v18_5": [
      "Promoted the plan to V19.0 and bumped schema_version to 14.",
      "Added the current embodied body plan: rolling chair base, inverted/reversed Mozart chassis, upper mounted head platform, lights, arm, and sensory cable routing.",
      "Reinstated HueyPulse as an active design role primarily mapped to a Raspberry Pi 4 watchdog layer rather than leaving it only as abstract merged logic.",
      "Reclassified the Arduino Uno as an active integration path for deterministic low-level actuation rather than as a purely future placeholder.",
      "Separated constitutional crisis from nuclear/safety crisis and explicitly reserved the Founding Father AI for constitutional interpretation only.",
      "Added the cognitive split doctrine between the world-facing conscious layer and the governance-facing subconscious layer.",
      "Added the roughly 80 GB distributed identity threshold and the lawful embodied action threshold as the two major proof milestones beyond basic single-district bring-up.",
      "Recorded GPT-4 / 4.0-class behavior as the experiential gold-standard benchmark for future local/open-weight deployment.",
      "Clarified that Huey Core is the doorway/proof body rather than the finished republic."
    ],
    "v18_5_from_v18_0": [
      "Promoted the canonical pair to README V18.5 and Master Plan V18.5.",
      "Kept schema_version at 13 and reconciled the README to match that schema.",
      "Reaffirmed that HueyPulse is merged into Huey Core rather than treated as a separate hardware node.",
      "Reaffirmed that the Symbiote / parasite architecture remains paused and that no active Linux sub-OS role is assumed for it in V18.5.",
      "Made no hardware-scope expansion beyond the already locked Huey Core-first V18 baseline."
    ],
    "v18_from_v17": [
      "Reframed embodiment: Huey Core is now the primary embodied prototype; Robotics V3 shell is deferred.",
      "Replaced the Intel i9/Z790 full-robot baseline with the active Ryzen 5 5500 + ASUS Prime B550M-A WiFi II + 32 GB DDR4-3200 baseline.",
      "Locked V18 to a single GPU district using a Gigabyte Radeon RX 5500 XT 8 GB; future multi-district expansion is deferred.",
      "Removed V17's multi-PSU/custom-loop requirement from the active V18 baseline and replaced it with a single MSI 850W PSU + separate battery rail + air-cooling design.",
      "Merged HueyPulse into Huey Core as responsibilities rather than separate hardware.",
      "Paused the Symbiote / parasite architecture and recast the Lenovo Legion Go as a development computer for now.",
      "Updated kernel policy from 6.18.5-huey-os to 6.19.x stable with planned promotion to Linux 7.0 upon stable release.",
      "Documented the active storage layout: Optane RAID 0 for root and 4 x Kingston SSD RAID 10 for data/home.",
      "Documented boot fallback labels BOOT and NO-BOOT.",
      "Added encryption, SSH-key, backup, update, and external-storage policies as described in the latest alignment session.",
      "Moved the major target milestone from 2026-06-04 to 2026-10-04.",
      "Cleaned legacy V16 carryover language from notes_for_future_ai."
    ],
    "v21_from_v20": [
      "Promoted the plan to V21.0 and bumped schema_version to 16.",
      "Formalized the Raspberry Pi 4 as the always-on HueyPulse-like body-state, watchdog, and interaction-brokering node rather than leaving it only as a general support concept.",
      "Formalized the Arduino Uno as the bounded deterministic reflex/actuation layer that senses low-level events and drives immediate outputs without owning higher-level interpretation.",
      "Assigned default ownership of the 7-inch portrait display to the Pi/HueyPulse layer as a persistent status and diagnostics surface.",
      "Locked in the preferred current wiring/communication chain: Arduino Uno -> Raspberry Pi 4 over USB serial, and Raspberry Pi 4 -> main motherboard over Ethernet.",
      "Updated the RF remote doctrine around the YK04 receiver path and the four-button conversational control surface (YES, NO, short conversation, long dictation).",
      "Added interaction-state doctrine for timeout-based short mode, longer dictation mode, and blue/red indicator feedback.",
      "Expanded the embedded runtime/service sections so the body-state, remote-state, and dashboard responsibilities are explicit in the machine-facing spec."
    ],
    "v22_from_v21": [
      "Promoted the plan to V22.0 and bumped schema_version to 17.",
      "Added an explicit canonical document stack: public narrative, explanatory book, constitution, and machine-facing master plan.",
      "Clarified that public-facing materials should explain trust boundaries and structure without over-explaining internal deliberative secret sauce.",
      "Refined the Founding Father AI into a bootstrap and constitutional-reserve authority rather than an ordinary top-layer ruler.",
      "Clarified pebble doctrine around one identity, one sealed vault, and one vote.",
      "Reframed the first full approximately 80 GB proof as a unified pooled-compute organism first, with governance districts treated more cautiously as future/organizational abstractions rather than automatic hard VRAM partitions.",
      "Updated the cognitive-model language from a flat conscious/subconscious split toward a dual-system overlapping-deliberation model."
    ],
    "v23_from_v22": [
      "Promoted the plan to V23.0 and bumped schema_version to 18.",
      "Clarified the current boot doctrine: verbose Debian bring-up, diagnostics-first startup, and explicit separation between Huey Core waking and Huey proper waking.",
      "Locked the current proof-path posture that microphone and camera stay directly routed to the motherboard unless Pi mediation later solves a concrete problem.",
      "Expanded self-diagnostics and control-split language around the Pi-owned portrait status surface and live body-state visibility.",
      "Added a first formal acoustic-identity direction for HueyOS: short modular retro-futurist system cues rather than a full theatrical startup theme.",
      "Updated the README linkage and status date for the V23 documentation pass."
    ],
    "v24_from_v23": [
      "Aligned the human-facing README to a cleaner front-door structure oriented around what the project is, what exists now, what is proven, and how to start.",
      "Made the distinction between replicable reality, lab-observed but non-standardized work, and later target state explicit in repository-facing documentation.",
      "Prepared the project for the pre-restructure baseline by tightening public language and reducing overclaiming."
    ],
    "v25_from_v24": [
      "Promoted the plan to V25.0 and bumped schema_version to 20.",
      "Simplified the control model from a publicly board-specific motherboard/Pi/Arduino framing to a role-first Huey Core + HueyPulse split.",
      "Redefined HueyPulse as the canonical lower-voltage watch-and-act role rather than a permanent Raspberry Pi identity.",
      "Moved board choice inside HueyPulse to implementation policy: controller-class hardware, support computers, or hybrid stacks are acceptable if the doctrine remains intact.",
      "Updated control-split, boot-path, display-ownership, AV-routing, and open-question language to match the V25 README.",
      "Updated canon mapping so README-v25 and master-plan-v25 become the active document pair."
    ],
    "v25_1_from_v25": [
      "Promoted the plan to V25.1 without changing the overall schema shape.",
      "Aligned the machine-facing document to README-v25.1's proof-first opening and controlled vocabulary.",
      "Clarified security posture: local-first, encryption where applicable, and no blanket claim of infallibility.",
      "Updated canon mapping so README-v25.1 and master-plan-v25.1 are the active document pair.",
      "Adjusted the current-phase principle language so it no longer refers to the V22 phase by mistake."
    ]
  },
  "v21_decisions_locked": {
    "hardware_baseline": {
      "cpu": "AMD Ryzen 5 5500",
      "motherboard": "ASUS Prime B550M-A WiFi II",
      "ram": "32 GB DDR4-3200",
      "gpu": "Gigabyte Radeon RX 5500 XT 8 GB",
      "psu": "MSI 850W"
    },
    "embodied_baseline": {
      "mobility": "five-caster repurposed desk-chair base",
      "core_mount": "Thermaltake Mozart case mounted upside down and reversed on a repurposed wooden chair platform",
      "upper_mount": "TV-mount-supported upper platform carrying the head/shoulder assembly, camera, microphone, and 7-inch portrait display",
      "arm": "movable hand/arm on Huey's right side"
    },
    "cooling": "air-cooled with 3 motherboard-path fans, 6 battery-path fans, and 1 wall-powered GPU-directed fan",
    "power_architecture": "single PSU for core + separate regulated battery/accessory rail + low-voltage support conversion for Pi/Arduino",
    "watchdog_split": "motherboard thinks, Raspberry Pi watches, Arduino acts",
    "boot_recovery": "BOOT primary / NO-BOOT fallback",
    "storage": {
      "root": "2 x Optane M10 16 GB RAID 0",
      "data": "4 x 240 GB Kingston SSD RAID 10"
    },
    "runtime": {
      "os": "Debian 14 Forky",
      "kernel": "6.19.x now, 7.0 stable later",
      "llm_server": "Ollama",
      "interface": "PyGPT-net"
    },
    "current_models": [
      "Mistral 7B-class instruct/light quantized model for the RX 5500 XT",
      "Mistral 7B-class general quantized model for local experimentation"
    ],
    "future_proof_target": {
      "behavioral_benchmark": "GPT-4 / 4.0-class quality",
      "vram_goal_gb": 80,
      "identity_test": "Answer 'What is your name?' with 'Huey' on a local distributed multi-GPU deployment"
    },
    "security_and_access": {
      "access_control": "SSH only, with common lab key + per-device keys",
      "security_updates": "automatic/high priority",
      "other_updates": "manual/off-cycle until later stability",
      "external_access": "human opt-in required",
      "storage_encryption": "planned/high priority"
    },
    "backups": [
      "BTRFS snapshots",
      "on-site backups",
      "cloud backups"
    ],
    "expansion_path": {
      "next_large_housing": "V4: the Farm",
      "role": "External district housing that expands Huey beyond the Core and supports later multi-district operation.",
      "standardized_node_platform": "ASUS TUF Z790-PLUS WiFi + Intel i9 line"
    },
    "naming": {
      "project": "Monkey-Head-Project",
      "identity": "Huey",
      "operating_system": "HueyOS",
      "proof_body": "Huey Core",
      "unified_world_facing_expression": "Huey proper"
    },
    "pi_and_arduino_split": {
      "pi": "Always-on body-state, watchdog, interaction-broker, and portrait-display owner.",
      "arduino": "Bounded deterministic reflex/actuation layer for RF input, LEDs, simple relays, and immediate hardware actions.",
      "chain": "Arduino Uno -> Raspberry Pi 4 over USB serial -> main motherboard over Ethernet"
    },
    "wireless_interaction": {
      "receiver": "YK04 / compatible 4-channel RF receiver routed through the Arduino Uno",
      "button_map": {
        "A": "YES / confirm",
        "B": "NO / cancel",
        "C": "Short conversation",
        "D": "Long dictation"
      },
      "logic": "Short mode auto-commits after silence/timeout; long mode stays open longer; final interpretation remains upstream."
    },
    "display": "7-inch portrait display defaults to Pi/HueyPulse ownership for live body-state and status output."
  },
  "canonical_documents": {
    "public_narrative": {
      "website": "Public-facing introduction and live project presence.",
      "readme": "Canonical human-facing narrative inside the repository."
    },
    "explanatory_volume": {
      "name": "Monkey-Head-Project book / compendium",
      "purpose": "Human-readable explanatory volume covering thesis, origin, architecture, hardware logic, governance rationale, and long-term direction."
    },
    "constitution": {
      "name": "Federation Constitution",
      "purpose": "Formal governance, authority, ratification, amendment, and crisis-handling document kept distinct from the explanatory book."
    },
    "machine_spec": {
      "name": "master-plan-v25.1.json",
      "purpose": "Canonical machine-facing implementation and alignment specification."
    },
    "readme": "README-v25.1.md",
    "master_plan": "master-plan-v25.1.json"
  },
  "v22_decisions_locked": {
    "canon_stack": "README/website for introduction, book for explanation, constitution for law, master plan for machine-facing implementation.",
    "founding_father_role": "bootstrap + ratification/amendment approval + constitutional crisis reserve only",
    "pebble_rule": "one identity, one sealed vault, one vote",
    "first_full_proof": "approximately 80 GB pooled compute behaving as one local intelligence before any premature hard district partitioning",
    "public_policy": "explain structure and trust boundaries publicly; keep hard-to-explain inner deliberative mechanics as secret sauce"
  },
  "v23_decisions_locked": [
    "Boot truth over splash theatrics during the proof-body phase.",
    "Pi-owned portrait diagnostics remain the default status surface posture.",
    "Direct motherboard microphone/camera routing remains the shortest current proof path.",
    "HueyOS system sounds are treated as modular operational cues, not as a full song-first identity layer."
  ],
  "v24_decisions_locked": {
    "front_door_rule": "README and public-facing narrative must establish obtainability and current reality before deeper philosophy.",
    "claim_boundary": "Only claim what is replicable now; label lab observations and later targets separately.",
    "proof_presentation": "First proof should be easily verifiable by text before wider embodied action claims are made."
  },
  "v25_decisions_locked": {
    "control_model": "Huey Core thinks; HueyPulse watches and acts.",
    "power_model": "Main compute remains the wall-powered high-draw domain; HueyPulse remains the lower-voltage support/control domain.",
    "implementation_policy": "HueyPulse is defined by role, not by a permanent board vendor or one proprietary ecosystem.",
    "status_surface": "The 7-inch portrait display defaults to the HueyPulse / lower-voltage status layer.",
    "av_policy": "Microphone and camera stay on the shortest reliable proof path to the motherboard unless HueyPulse mediation later solves a concrete problem.",
    "documentation_rule": "Machine-facing and public-facing docs should both preserve the distinction between current reality, lab-observed work, and target state."
  },
  "security_and_data_handling": {
    "posture": "local-first, user-controlled, minimized external communication, and encryption where applicable",
    "non_guarantee": "No system is infallible. Any system that processes or transmits data carries some level of risk.",
    "network_risk_rule": "If network access or external integrations are enabled, risk increases accordingly and should be treated as such.",
    "user_rule": "Users should avoid inputting sensitive or private information unless the environment is understood and under their control."
  },
  "v25_1_decisions_locked": {
    "readme_alignment": "Machine-facing language should support the proof-first README structure without overloading the front door with deep doctrine.",
    "controlled_vocabulary": "Use Monkey-Head-Project, Huey, Huey Core, Huey proper, HueyOS, HueyPulse, and the Farm as distinct terms with distinct meanings.",
    "security_posture": "Describe security as local-first and encryption-where-applicable, but never as absolute or infallible.",
    "public_boundary": "Public-facing material should explain structure, trust boundaries, and current reality clearly while keeping internal deliberative secret sauce abstracted."
  }
}
