WayCup TCI Architecture Specification (v2.0)

πŸ“‹ Overview

A machine-aware, zero-persistence, declarative infrastructure built on Nix Home Manager and 1Password. Designed for 40-year hardware scaling.

🧬 Hardware Taxonomy

  • TCI_CLASS:
    • METAL: Physical hardware (Desktops, Laptops).
    • CLOUD: Virtual environments (VMs, Containers).
  • TCI_ROLE:
    • ENGINE: Stateful Source of Truth. High-power. Owns the projects and deep memory.
    • TERMINAL: Thin-client interface (Glass & Keyboard). No local project files.
    • ROUTER: Management node (VMs) for orchestration and connectivity.

πŸ›‘οΈ Security Protocol (Zero-Persistence)

  • Private Keys: 0% disk persistence. Served via agent.sock.
  • Public Keys: Managed in ~/dotfiles/ssh/ and symlinked via Nix.
  • Secrets: Headless API access via .op_service_account (Git-ignored).
  • Signing: Commits cryptographically signed via 1Password on METAL devices.

πŸš€ Environment Resolution

The system uses a β€œBottom-Up” authority model in .bashrc.

  1. Nix Home Manager sources background variables.
  2. The TCI Detection Engine (at the very bottom of .bashrc) unsets any inherited variables and re-reads the physical ~/.tci_identity file to establish the final machine state.

🚧 Safety Shield (AI Mandates)

  • No Direct Home Edits: AI agents are forbidden from editing symlinks in ~/.
  • Source Only: All changes must occur in ~/dotfiles/ or ~/projects/.
  • Interpolation Guard: Nix interpolation (${var}) for .nix files; raw paths for static .json/.toml.