fieldMouse Deployment Contract
Version: 1.0.0
Date: May 26, 2026
Status: Active
Authority: cellMembrane team
License: AGPL-3.0-or-later
Related: CELLMEMBRANE_ARCHITECTURE.md, infra/wateringHole/fossilRecord/wave132h_jul2026/CELLMEMBRANE_FIELDMOUSE_DEPLOYMENT.md (fossilized)
---
Abstract
A fieldMouse is a membrane deployment on external substrate — infrastructure
you do not physically control (VPS, cloud VM, bare metal in a colo). This
contract defines what a fieldMouse deployment must satisfy to be considered
operational within the ecoPrimals ecosystem, and what a third party must
implement to run their own.
A fieldMouse is:
- Minimal — Tower atomic on external substrate, not a full NUCLEUS gate
- Ephemeral — can be torn down and reprovisioned without data loss
- Sovereign — all secrets encrypted at rest, provider treated as adversary
- A broker — routes traffic, never originates or stores primary data
---
Deployment Classes
| Class | Substrate | biomeOS | Composition | Example |
| fieldMouse | External VPS/cloud | No | Tower or Nest | membrane.primals.eco |
| peptidoglycan | External VPS/cloud | No | Peptidoglycan | peptidoglycan-nyc1 |
| gate | Owned hardware | Yes | Full NUCLEUS | ironGate, eastGate |
| niche | Gate-local | Yes | Domain spring | wetSpring on southGate |
This contract applies to fieldMouse deployments only. Gates and niches
have their own deployment standards (see DESKTOP_NUCLEUS_DEPLOYMENT.md
and SPRING_NICHE_DEPLOYMENT_GUIDE.md).
---
Hardware Requirements
Minimum (Relay composition)
| Resource | Minimum | Notes |
| CPU | 1 vCPU | Songbird is lightweight |
| RAM | 512 MB | Static binary, no runtime |
| Disk | 10 GB | OS + binaries |
| Network | Public IPv4 | Required for TURN |
| OS | Debian 12+ | Or any systemd-based Linux |
Recommended (Nest composition)
| Resource | Recommended | Notes |
| CPU | 2 vCPU | NestGate content serving |
| RAM | 2 GB | Caddy + NestGate cache |
| Disk | 25 GB | Content cache + logs |
| Network | Public IPv4 | + domain with DNS control |
| OS | Debian 12+ | Stable, long-term support |
---
Hardening Checklist
Every fieldMouse must satisfy all items before being considered operational.
SSH
- [ ] Password authentication disabled (
PasswordAuthentication no) - [ ] Root login restricted (
PermitRootLogin prohibit-password) - [ ] SSH keys are the only authentication method
- [ ] SSH on port 22 only (no obscurity)
Firewall
- [ ] UFW enabled with
default deny incoming - [ ] Only composition-required ports open (see
MEMBRANE_COMPOSITION_MODEL.md) - [ ] No manual port additions outside the composition
- [ ]
default allow outgoing(primals need to reach GitHub Releases, DNS)
System Hardening
- [ ] Mail transfer agent removed (exim4, postfix — not needed)
- [ ] Provider agents removed (droplet-agent, cloud-init post-setup)
- [ ] fail2ban installed and active
- [ ] journald persistence enabled (
Storage=persistent) - [ ] Automatic security updates enabled (
unattended-upgrades)
Credential Security
- [ ] No plaintext credentials in
/opt/membrane/(excepttower.envwhich is 0600) - [ ]
tower.envpermissions:chmod 0600, owned by root - [ ] TURN credentials in
/etc/songbird/relay-credentials(0600, root) - [ ] Cross-gate credential sharing via
ageencryption only - [ ] No credentials committed to git (enforced by
.gitignore)
Binary Security
- [ ] All primal binaries are static musl ELFs (no dynamic linking)
- [ ] Binaries are stripped (
strip --strip-all) - [ ] No hostnames, paths, or debug info embedded
- [ ] Binaries fetched from GitHub Releases with BLAKE3 checksum verification
---
Operational Contract
The fieldMouse MUST:
1. Respond to membrane gate.health with accurate channel health.
2. Maintain TURN relay availability — 99.9% uptime target for Channel 2.
3. Preserve tower.env across redeploys — the family seed is persistent identity.
4. Keep binaries current — track plasmidBin releases, redeploy on security updates.
5. Pass Dark Forest audit — all 17 MEM checks via membrane gate.validate.
The fieldMouse MUST NOT:
1. Originate content — it caches, proxies, and relays only.
2. Store user data — NestGate runs in cache-only mode.
3. Run biomeOS — no orchestration kernel on external substrate.
4. Expose intracellular ports — BearDog, SkunkBat, provenance trio are loopback/UDS only.
5. Trust the substrate — provider is a non-family observer per Dark Forest model.
The fieldMouse MAY:
1. Be torn down and reprovisioned from membrane.toml + tower.env backup.
2. Run on any provider — DigitalOcean, Hetzner, Linode, bare metal, LAN.
3. Use a custom domain — configure via membrane.toml domain field.
4. Scale vertically — upgrade VPS size without redeployment.
5. Serve multiple families — future multi-tenant mode via family ID isolation.
---
Dark Forest Compliance
Five pillars from DARK_FOREST_GLACIAL_GATE_STANDARD.md applied to fieldMouse:
| Pillar | fieldMouse Implementation |
| 1. Zero metadata leakage | Stripped binaries, no hostnames embedded |
| 2. Zero port exposure | Composition-aware UFW, deny default |
| 3. Songbird sole network surface | All external relay traffic through Songbird |
| 4. BTSP crypto integrity | BTSP_MODE=enforced in Tower+ compositions |
| 5. Enclave computing | UDS-first IPC, loopback for TCP primals |
Pillar 3 is nuanced on a membrane: Caddy (Channel 3) and knot-dns
(Channel 1) are exceptions — they are purpose-built for public exposure.
The pillar applies to all other traffic.
---
Validation
A fieldMouse deployment is validated at three levels:
Level 1: Structural (pre-deploy)
Validate membrane.toml against cellmembrane-types:
- Composition is valid
- Required primals listed
- Ports consistent with composition
- Provider config present
Level 2: Runtime (post-deploy)
Run membrane gate.health:
- All systemd units active
- UFW rules match composition
- Health probes pass (TURN allocate, TCP connect, TLS handshake)
Level 3: Security (audit)
Run membrane gate.validate:
- 17 MEM checks (MEM-01 through MEM-17)
- SSH hardening, credential perms, port inventory, binary provenance
- Must be 21/21 PASS for Nest Atomic production status (MEM-01 through MEM-17)
---
Lifecycle
provision ──► harden ──► deploy ──► validate ──► operate
│
├── status (health)
├── redeploy (binary update)
├── keys (SSH management)
└── teardown (destroy)
Provisioning creates the substrate (VPS). Hardening locks down SSH and
firewall. Deployment installs binaries and starts services. Validation
confirms operational status. The operate phase is indefinite, with
periodic health checks and binary updates.
Teardown is non-destructive to the ecosystem — the membrane can be
reprovisioned from membrane.toml. The only state that must be backed
up is tower.env (family seed) and any TLS certificates not managed
by ACME auto-renewal.
---
For Third-Party Operators
To deploy your own membrane:
1. Write a membrane.toml — see MULTI_MEMBRANE_DEPLOYMENT.md for the schema.
2. Provision a VPS — any provider with public IPv4 and Debian 12+.
3. Bootstrap the gate — membrane gate.bootstrap (profile-driven 7-phase deployment).
4. Validate — membrane gate.validate (Dark Forest audit).
5. Register your domain — point DNS to the VPS IP, configure in membrane.toml.
6. Back up tower.env — this is your membrane's persistent identity.
No ecoPrimals account, API key, or coordination is required. The membrane
is self-contained. Binaries are fetched from public GitHub Releases.
---
Peptidoglycan Composition — Trust Barrier Contract
Added: Wave 77b (2026-06-04)
Reference: DIDERM_DOMAIN_ARCHITECTURE.md in wateringHole
The peptidoglycan composition is a role variant of the fieldMouse contract.
It specializes the fieldMouse as the trust barrier between outer and inner
membranes in a diderm envelope.
Configuration
[membrane]
name = \"peptidoglycan-nyc1\"
composition = \"peptidoglycan\"
[membrane.channels.relay]
enabled = true # Songbird TURN — primary role
port = 3478
[membrane.channels.sync]
enabled = true # Temporal sync / Forgejo SSH relay
port = 2222
[membrane.channels.surface]
enabled = false # NO public web surface
[membrane.trust_barrier]
inner_domain = \"primal.eco\"
outer_domain = \"primals.eco\"
opaque_relay = true
content_domain = \"nestgate.io\"
What It Relays
| Channel | Protocol | Direction | Purpose |
| Songbird TURN | UDP/TCP 3478 | Bidirectional | Mesh relay between gates |
| Temporal sync | TCP 2222 | Inner pulls from outer | Git object transport (Forgejo SSH) |
| K-Derm relay | TCP (SSH) | Push chain | golgi → pepti → ext → GitHub |
What It CANNOT See
| Data Class | Visibility | Guarantee |
| BTSP tokens | Opaque | End-to-end encrypted; relay cannot forge, read, or modify |
| Inner membrane identity | Hidden | Gate IDs, family seeds never transit the barrier |
| Capability surface | Hidden | UDS sockets are gate-local; relay has no path to them |
| Content payloads | Opaque | NestGate CAS objects are BLAKE3-addressed, encrypted in transit |
| Mesh topology | Partially visible | Connection metadata (IPs, timing) visible; content opaque |
What It Stores
NOTHING beyond:
tower.env— relay identity credentials (0600, root-owned)- Systemd unit files
- Binary artifacts (stateless, replaceable)
No primary data. No user data. No caches. No logs beyond journald.
Invariants
1. Disposable: Tear down and reprovision from membrane.toml + tower.env
backup yields an identical functional relay. Zero data loss.
2. Replicable: membrane gate.bootstrap with a membrane.toml composition
produces a working trust barrier on any VPS provider.
3. Provider-as-adversary: VPS provider sees encrypted relay traffic volume
and timing. Cannot read content, forge identity, or impersonate a gate.
4. Unidirectional flow: Outer membrane pushes TO peptidoglycan.
Inner membrane pulls FROM peptidoglycan. Neither reaches the other directly.
5. Zero storage: If the peptidoglycan is seized, captured, or compromised,
no primary data is exposed. The relay has nothing to give.
Discovery
Inner membrane gates discover peptidoglycan instances via:
1. SONGBIRD_PEERS environment variable (explicit configuration)
2. Songbird TURN peer registration (runtime discovery)
Adding a new peptidoglycan requires only:
1. Deploy membrane.toml with composition = \"peptidoglycan\"
2. Start Songbird TURN on the instance
3. Inner membrane gates add it to SONGBIRD_PEERS
Validation
A peptidoglycan passes validation when:
- [ ] Songbird TURN allocate succeeds from an external client
- [ ] Temporal sync (git fetch) works through the relay
- [ ] No content is stored locally after relay operations
- [ ]
tower.envis the only persistent state file - [ ] UFW shows only TURN + SSH + sync ports open