From d09a22498d08e565e4c242c54f64eddec7b12b04 Mon Sep 17 00:00:00 2001 From: Keysat Date: Mon, 15 Jun 2026 13:49:42 -0500 Subject: [PATCH] Remove superseded thesis-seed drafts and legacy s9pk seed artifacts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit thesis-seed v1–v4 are superseded by v5 (the version seeded by thesis_seed.py) and had no inbound references. refresh_seed.sh and seed/README.md are 0.3.5-era seed-snapshot helpers the 0.4 entrypoint no longer uses (DEPLOY_040 labels both LEGACY). data/test_write was a stray 0-byte write-probe. Folder-rename housekeeping; no runtime change. --- data/test_write | 0 docs/thesis-seed-v1.md | 60 ------------------- docs/thesis-seed-v2.md | 56 ------------------ docs/thesis-seed-v3.md | 51 ---------------- docs/thesis-seed-v4.md | 52 ----------------- start9/0.4/refresh_seed.sh | 116 ------------------------------------- start9/0.4/seed/README.md | 58 ------------------- 7 files changed, 393 deletions(-) delete mode 100644 data/test_write delete mode 100644 docs/thesis-seed-v1.md delete mode 100644 docs/thesis-seed-v2.md delete mode 100644 docs/thesis-seed-v3.md delete mode 100644 docs/thesis-seed-v4.md delete mode 100755 start9/0.4/refresh_seed.sh delete mode 100644 start9/0.4/seed/README.md diff --git a/data/test_write b/data/test_write deleted file mode 100644 index e69de29..0000000 diff --git a/docs/thesis-seed-v1.md b/docs/thesis-seed-v1.md deleted file mode 100644 index 94af9bc..0000000 --- a/docs/thesis-seed-v1.md +++ /dev/null @@ -1,60 +0,0 @@ -# Ten31 Thesis — Seed v1 (a starting point to sharpen) - -*Drafted from Ten31's own material: the newsletter, ten31.xyz/home and /insights (esp. "Digital Industrialization: Land, Labor & Capital," "Credible Finance," "Coherence in an Age of Abundance"), the current self-description, and the partner's workshop notes. This is **v0 to react to**, not a finished thesis — it's the raw clay the Architect helps you and your partner sharpen (vary framings, red-team LP objections, ground each claim in your essays/track record). Where the partner's framing was "too philosophical," I've paired each abstract move with the concrete investment logic underneath it.* - ---- - -## Throughline (the spine) - -> **Every wave of digital industrialization makes one resource abundant and forces value into whatever stays scarce.** The internet made *distribution* free and pooled value in attention. AI is making *competence* free and pooling value into its scarce physical inputs — energy and compute. Bitcoin makes *capital itself* verifiable, and the last scarce resource becomes **credibility**. The pattern doesn't change: when a resource turns abundant, value abandons it for whatever stays scarce. **Ten31 invests in the scarce side of each shift — bitcoin, energy, and the credible infrastructure of the AI era — and backs the bitcoin-native founders organizing capital and production around it, while the position is still mispriced.** - -*(One-line version for cold contexts: "The world's leading investor at the convergence of bitcoin, energy, and AI — backing the scarce side of every digital shift, and the founders building it.")* - -## Pillars - -**1. The scarcity shift is the master pattern — and it's accelerating.** -Each digital epoch decentralizes one domain and concentrates value in another (your *Digital Industrialization* essay). Internet → distribution. AI → competence. Bitcoin → capital access. Value flees the newly-abundant for whatever stays scarce. *Investment logic: we position on the scarce side of the current shift — energy, compute, and verifiable capital — before the market reprices it.* - -**2. Bitcoin is the base layer of a credible economy.** -"Proof over promise." As AI floods the world with cheap, unverifiable output, verifiable scarcity and credibility become the premium — and bitcoin is the only money that delivers both (*Credible Finance*; *The Global Capital Circuit*). *Investment logic: bitcoin infrastructure — custody, payments, lending, computing, security — is the rails of that economy, and we've backed it since 2013.* - -**3. The bitcoin–energy–AI convergence is physical, not theoretical.** -Mining monetizes stranded energy; compute and bitcoin compete for the same low-cost megawatts; sovereign infrastructure and secure inference become moats as competence commoditizes (*Coherence in an Age of Abundance*). *Investment logic: energy and compute are the scarce inputs of the AI era; bitcoin prices, secures, and settles them. We invest across that physical stack (e.g. Giga Energy, Upstream Data) — "the world's largest investor focused on the convergence of bitcoin, energy, and AI."* - -**4. We back a specific kind of founder.** -Bitcoin-native operators: long time horizons, real ownership, no patience for fragility or shortcuts — people who saw the future before the market thought it possible. We don't screen for bitcoin; the best founders in this space already think this way. *Proof: Strike (global bitcoin financial services) and Start9 (personal datacenters for edge AI) share nothing as businesses — but the same kind of founder is at the top.* - -**5. The portfolio is a synergistic ecosystem, not a list of bets.** -Sequoia-inspired: complementary companies whose value compounds in combination — custody enables payments, payments drive commerce, commerce produces sovereignty (*An Investment Platform for Bitcoin Adoption*). *Proof: 35+ portfolio companies, $200M+ deployed across two funds, unmatched founder access and credibility from a decade in the ecosystem.* - -**6. Patient, credible capital — and the position is still mispriced.** -Long time preference, durability over paper markups, "gradually, then suddenly." *Investment logic: Fund III takes the convergence position while the market still underprices it.* - -## Key objections to pressure-test (red-team targets) - -- *"Isn't this just a bitcoin fund?"* → No: it's a thesis on the scarce inputs of the AI/energy era, with bitcoin as the credibility/settlement layer — a broader and more durable position than "buy bitcoin." -- *"Energy + AI infrastructure is crowded and capital-intensive."* → Our edge is founder access and the bitcoin-native lens that generalist energy/AI capital lacks; we back the operators, not the hype cycle. -- *"Concentration / correlation risk to bitcoin's price."* → The ecosystem spans infrastructure with real revenue (energy, compute, financial services), not directional bitcoin beta; durability over markups. -- *"Why now?"* → The convergence just turned physical (AI's energy/compute crunch) while bitcoin's role as credible capital is still underpriced — the gap is the opportunity. - -## Segment angles (per-segment lines, sharing the spine) - -*Per the decision that different audiences may carry different—but related—narratives:* -- **Bitcoin-native HNWI** — conviction, sovereignty, asymmetric upside; "you already see it; we invest in it." (Lean into *Because We're Right*.) -- **Institution** — risk-adjusted, credible exposure to the AI-energy buildout via a differentiated manager with a decade-long edge; secular tailwinds, durability. -- **Family office (bitcoin/AI-curious, other focuses)** — a generational allocation to the convergence; patient capital aligned with multi-generational horizons; ecosystem diversification. -- **Smaller accredited ($100k checks)** — accessible entry to the same thesis the HNWIs back; aligned conviction, lower minimum. -- **AI-oriented investors** — the scarce-inputs (energy/compute) + secure-inference angle; bitcoin as AI's settlement and credibility layer. -- **Energy players** — stranded/curtailed energy monetization; bitcoin + compute as flexible offtake; the physical buildout. - -## Voice (to encode in the `ten31-voice` skill) - -Sophisticated, macro-literate, conviction-driven, and willing to be irreverent (per the newsletter). Proof over promise; historical analogies (railroads, "gradually then suddenly"); confident but not hype-y; never crypto-casino framing (no NFTs/meme-coin energy). "This is us": James J. Hill, scarcity, credibility, sovereignty, long time preference. "Not us": growth-at-all-costs, paper markups, shiny speculation. - ---- - -## How to use this - -This becomes the seeded **core thesis line** in the Architect. From here the loop is: you and your partner react → the Architect proposes sharper variations, drafts the per-segment cuts, anticipates LP objections, and grounds each claim against your essays + real LP conversations → you both leave feedback and sign off. Nothing here is canonical until you approve it. - -**Open spots needing your input:** which pillars are load-bearing vs. cuttable; the exact Fund III framing/numbers to use externally; confirming the segment set; and any sacred phrases / forbidden framings for the voice guide. diff --git a/docs/thesis-seed-v2.md b/docs/thesis-seed-v2.md deleted file mode 100644 index 2032a30..0000000 --- a/docs/thesis-seed-v2.md +++ /dev/null @@ -1,56 +0,0 @@ -# Ten31 Thesis — Seed v2 (plain version) - -*Rewrite after Grant's v1 feedback: too abstract, too philosophical, too "think-boy." His direction: we make money investing in **obvious things with long-term growth where others haven't connected the dots like we have** — say it simply, concretely, in a way that resonates and is hard to refute, where eyes don't glaze over. So this version drops the philosophy (no "credibility is the last scarce resource") and leads with the concrete investment logic. v1 is kept for lineage; this is the one to react to.* - ---- - -## The one-liner - -> **Ten31 invests in the critical infrastructure behind bitcoin, AI, and energy — three trends that aren't slowing down, that all run on the same scarce inputs, and that almost no one else is investing in as one connected bet.** - -## The throughline (still plain) - -Bitcoin, AI, and energy are each going to be much bigger in ten years. That part isn't controversial. **What most investors miss is that they're the same bet:** all three are bottlenecked on the same scarce things — cheap energy, computing power, and sound money. The company that powers a bitcoin mine, the company that cools an AI datacenter, and the company that custodies digital capital are solving versions of the same problem. - -**Ten31 invests in that overlap — the picks and shovels.** We've been in bitcoin since 2013, so we see the best companies first and get access others can't. We're not betting on a token going up; we're funding the infrastructure everyone in these three markets will have to buy. - -## What we actually invest in (4 pillars) - -**1. Three durable trends, one set of scarce inputs.** -Bitcoin adoption, AI buildout, and energy demand are all multi-decade growth stories. They all need more energy, more compute, and more secure ways to hold and move capital. We invest in the companies that supply those. - -**2. Infrastructure, not hype.** -Picks and shovels with real revenue — mining, energy, custody, payments, compute, security. Companies that make money whether or not the market is excited that quarter. Not tokens, not speculation. - -**3. We connected the dots first.** -The bitcoin–energy–AI overlap looks obvious in hindsight but is wildly under-invested today. A decade in bitcoin gives us conviction, first look at the best founders, and access generalist funds don't have. That edge is the whole game. - -**4. We back founders who build for the long term.** -$200M+ deployed across 30+ of the best companies in the space (Strike, Start9, and more). We back operators who think in decades, own what they build, and don't cut corners — the kind of people who saw this coming before the market did. - -## Why it's hard to refute - -- *Are these growing markets?* Obviously yes — bitcoin, AI, and energy are three of the most-discussed growth stories anywhere. -- *Do they share scarce inputs?* Yes — energy and compute are the literal bottleneck for AI and mining; sound money is the settlement layer for both. -- *Has anyone else connected them into one strategy?* Almost no one — and we've been positioned for a decade. -- *Are we buying real businesses?* Yes — revenue-generating infrastructure, not speculation. - -## Proof points (to back each claim) - -$200M+ across two funds · 30+/35+ portfolio companies · in bitcoin since 2013 · Strike (bitcoin financial services), Start9 (personal datacenters / edge AI), energy + mining infrastructure (e.g. Giga Energy, Upstream Data) · Fund III now raising into the same position while it's still early. - -## Per-segment angle (one line each, same core) - -- **Bitcoin-native HNWI:** you already believe in bitcoin — this is how you get exposure to the whole buildout around it, run by people who've been here since 2013. -- **Institution:** durable, revenue-generating infrastructure exposure to the AI/energy/bitcoin buildout, through a manager with a decade-long edge. -- **Family office (curious, diversified):** a generational allocation to three obvious trends, with downside grounded in real businesses, not price speculation. -- **Smaller accredited ($100k):** the same thesis the big believers are backing, at an accessible entry point. -- **AI / energy operators:** you live the energy-and-compute scarcity every day — we invest across the stack that supplies it. - -## Voice (for the `ten31-voice` skill) - -Direct, concrete, confident, money-focused. Lead with what we buy and why it grows. Plain English an engineer or a serious LP can verify in their head. Use real examples and numbers. **Avoid:** abstract philosophy, jargon, "credibility/coherence/digital industrialization" framings, anything that makes eyes glaze over. If a sentence needs a second read to parse, cut it. - ---- - -*Next: react to this — which pillars land, which proof points to lead with, the exact Fund III framing — and we sharpen toward a v3. The essays (Digital Industrialization, etc.) stay as deeper supporting material for those who want the philosophy; they're not the pitch.* diff --git a/docs/thesis-seed-v3.md b/docs/thesis-seed-v3.md deleted file mode 100644 index d6e07d7..0000000 --- a/docs/thesis-seed-v3.md +++ /dev/null @@ -1,51 +0,0 @@ -# Ten31 Thesis — Seed v3 - -*Revision after Grant's v2 feedback. Changes: (1) removed ALL "bet" language — we invest with conviction, we don't gamble; (2) added freedom-oriented technologies to the core themes (complementary alongside bitcoin/AI/energy); (3) cut the generic "we back special founders" pillar (too hand-wavy / everyone claims it / hard to prove) and refold the real, substantiable point — a decade of access — into the edge pillar; (4) fixed the segment angles: don't lead with "since 2013" for bitcoin-native HNWIs (they may have been in longer), but DO use our long history for institutions/family offices, where it's a genuine credibility edge.* - ---- - -## The one-liner - -> **Ten31 invests in the critical infrastructure behind bitcoin, AI, energy, and freedom technologies — four long-term trends that run on the same scarce inputs, where we've had conviction and a front-row seat since 2013.** - -## The throughline - -Bitcoin adoption, the AI buildout, and energy demand are all growing for the long haul — and freedom-oriented technologies are the complementary layer that ties them together. They aren't separate themes: they run on the same scarce inputs — **energy, compute, and sound money**. The company powering a bitcoin mine, the one cooling an AI datacenter, and the one custodying digital capital are solving versions of the same problem. - -**Ten31 invests, with conviction, in that infrastructure — the picks and shovels.** We've been in the bitcoin ecosystem since 2013, longer than almost anyone, so we have the conviction, the relationships, and the first look at the best companies these markets will need. - -## What we invest in (3 pillars + the proof) - -**1. Four connected trends, one set of scarce inputs.** -Bitcoin adoption, AI buildout, energy demand — plus **freedom-oriented technologies** as the complementary layer (sovereign computing, open protocols, the tools that keep individuals and businesses in control). All of it is bottlenecked on the same scarce things: cheap energy, computing power, and sound money. We invest in the companies that supply them. - -**2. Real infrastructure with real revenue — not speculation.** -Picks and shovels: mining, energy, custody, payments, compute, security, and freedom tech. Companies that generate revenue regardless of market sentiment. We're investing in businesses, not chasing tokens. - -**3. We saw the connection first — and we have the access to act on it.** -The overlap of bitcoin, energy, AI, and freedom tech is under-invested today, and our decade in the ecosystem is the edge: it gives us conviction generalist funds don't have, first look at the strongest founders, and relationships and access others simply can't get. *This is substantiable* — it shows up in the companies we've backed and the deals we see. - -**The proof:** $200M+ deployed across two funds into 30+ of the best companies in the space — Strike (bitcoin financial services), Start9 (personal datacenters / edge AI), and energy + mining infrastructure (e.g. Giga Energy, Upstream Data). Fund III continues the same strategy. - -## Why it's hard to refute (no hand-waving) - -- *Are these growing markets?* Obviously — bitcoin, AI, and energy are three of the biggest long-term trends there are. -- *Do they share scarce inputs?* Yes — energy and compute are the literal bottleneck for AI and mining; sound money is the settlement layer. -- *Has anyone else been investing across all of it, with this history?* Almost no one — we've been at it since 2013. -- *Are these real businesses?* Yes — revenue-generating infrastructure, not speculation. - -## Per-segment angle (one line each, same core) - -- **Bitcoin-native HNWI** — you already have conviction in bitcoin; we give you exposure to the entire infrastructure buildout around it, and access to the best companies in the space. *(Lead with shared conviction + access — NOT our tenure; many of these investors have been in as long as or longer than us.)* -- **Institution** — durable, revenue-generating exposure to the bitcoin/AI/energy buildout, through a manager who has been in this ecosystem since 2013 — longer than almost anyone, and a real credibility edge. *(Tenure is a key selling point here.)* -- **Family office (diversified, curious)** — a long-horizon allocation to four connected trends, grounded in real businesses, from a team with a decade-plus track record in the space. *(Tenure matters here too.)* -- **Smaller accredited ($100k)** — the same thesis our largest, most-convicted investors back, at an accessible entry point. -- **AI / energy operators** — you live the energy-and-compute scarcity every day; we invest across the stack that supplies it. - -## Voice - -Direct, concrete, confident, conviction-driven. **Never** "bet"/"betting"/"gamble" — we invest behind things we have conviction in. Lead with what we buy and why it grows; plain English an engineer or a serious LP can verify in their head; real examples and numbers. Avoid abstract philosophy and anything that makes eyes glaze over. - ---- - -*Next: react again — especially on pillar 3 (is "access/first look" the right framing for the edge?), the freedom-tech wording, and whether the segment angles land. The deeper essays stay as supporting material, not the pitch.* diff --git a/docs/thesis-seed-v4.md b/docs/thesis-seed-v4.md deleted file mode 100644 index 2f18ff0..0000000 --- a/docs/thesis-seed-v4.md +++ /dev/null @@ -1,52 +0,0 @@ -# Ten31 Thesis — Seed v4 - -*Revision after Grant's v3 feedback. Changes made: removed the "in bitcoin longer than almost anyone" claim from the throughline (not true); leaned harder into scarcity as the core idea; stopped treating freedom tech as a throwaway fourth item and instead tried it as the connecting theme across three domains (an experiment to react to); cut the kitchen-sink list in pillar 2; dropped the generic "special founders" framing entirely; rewrote the edge around being sought out and pursuing exclusive opportunities (not just "first look"); rewrote the segment angles per your notes. Also: no em dashes and no "we do X, not Y" phrasing, since those read as AI-generated.* - ---- - -## The one-liner (two options to react to) - -> **Option A (scarcity-forward):** Ten31 invests in the infrastructure of scarcity. We back the bitcoin, energy, and AI companies that produce and secure the scarce resources these markets are built on. - -> **Option B (freedom-tech as the banner):** Ten31 invests in freedom technology. We back the bitcoin, energy, and AI companies building the foundation for a more sovereign, less centralized economy. - -*(Option B treats "freedom tech" the way a16z treats "American Dynamism": one strong banner that the three domains sit underneath, rather than a vague fourth bucket. It's a bigger swing. Worth deciding which framing you want before we go deeper.)* - -## The throughline - -Bitcoin, AI, and energy are three of the largest growth markets of the next decade, and they run on the same scarce resources: cheap energy, computing power, and money that cannot be printed at will. As these markets grow, the value collects in whoever supplies and secures those scarce inputs. Ten31 invests in that infrastructure. We have strong conviction in where this is going, and we put capital behind the companies building the foundation underneath it. - -## What we invest in (3 pillars) - -**1. Scarcity is the whole opportunity.** -Every one of these markets is bottlenecked on something scarce. AI and bitcoin both compete for cheap energy and compute. Both settle on money that is hard to produce. The companies that own and supply the scarce side of that equation capture the value as demand grows. That is where we invest. - -**2. We invest in foundational infrastructure with real revenue.** -The companies that generate energy, secure capital, and power computation. These are real businesses earning real money from real demand today, not stories about what might happen later. - -**3. Founders seek us out, and we lead deals others never see.** -This is our edge, and it is concrete. Founders in this space come to us because of our experience and our genuine alignment with bitcoin. We pursue and lead opportunities that are exclusive to us and not available to the broader market. People in this ecosystem know our track record and want us on their side. - -## Why it holds up under questioning - -Are these large, growing markets? Yes, and obviously so. Do they share the same scarce inputs? Yes, energy and compute are the bottleneck for both AI and mining, and sound money is the settlement layer. Has anyone built a strategy across all of it with our position in the ecosystem? Very few have. Are these real businesses? Yes, with real revenue. - -## The proof - -$200M+ deployed across two funds into 30+ of the strongest companies in the space, including Strike in bitcoin financial services and Start9 in personal datacenters and edge AI, plus energy and mining infrastructure. Fund III continues the same strategy. - -## Per-segment angle - -- **Bitcoin-native HNWIs (the OGs).** Bitcoin only wins if people build on it. Holding is not enough. You care about making bitcoin succeed, and so do we. We put capital behind the companies that turn bitcoin from an asset into a working economy, and that is how it actually wins. *(Lead with the mission of making bitcoin succeed, not our tenure. These investors may have been in longer than us, and money is not their only motivation.)* -- **Institutions.** Exposure to the bitcoin, energy, and AI buildout through a team whose institutional investing experience is unmatched in this space, particularly Grant's. The secular trends are real, and we have the discipline and background to invest in them at an institutional standard. -- **Family offices.** A long-horizon allocation to growth markets grounded in real, revenue-generating businesses, run by a team with deep experience and credibility in the space. -- **Smaller accredited ($100k).** The same thesis our most convicted investors back, at an accessible entry point. -- **AI and energy operators.** You live the scarcity of energy and compute every day. We invest across the stack that supplies it. - -## Voice - -Direct, concrete, confident, conviction-driven. Plain sentences a serious LP can verify in their head. Real examples and numbers. Avoid abstract philosophy, avoid "betting"/"gambling" language entirely, avoid em dashes and "X, not Y" constructions, and avoid kitchen-sink lists. - ---- - -*Two decisions for you: (1) Option A vs Option B for the framing, and whether to elevate "freedom tech" to the banner or keep it implicit. (2) Whether pillar 3 (being sought out / exclusive deals) is the edge you want to lead with. React and we go to v5.* diff --git a/start9/0.4/refresh_seed.sh b/start9/0.4/refresh_seed.sh deleted file mode 100755 index b9a3a60..0000000 --- a/start9/0.4/refresh_seed.sh +++ /dev/null @@ -1,116 +0,0 @@ -#!/bin/bash -# ═══════════════════════════════════════════════════════════════ -# refresh_seed.sh -# Pull the live Ten31 Database data off a StartOS 0.3.5 host -# and stage it as the seed snapshot baked into the 0.4 image. -# ═══════════════════════════════════════════════════════════════ -# -# Usage: -# ./refresh_seed.sh [remote-data-dir] -# -# Examples: -# ./refresh_seed.sh start9@192.168.1.50 -# ./refresh_seed.sh embassy@embassy.local \ -# /embassy-data/package-data/volumes/ten-database/data/main -# -# What it does: -# 1. Finds the remote /data directory for the ten-database service. -# 2. Copies crm.db, backups/, and (optionally) .crm-secret into -# start9/0.4/seed/data/ on this machine. -# 3. Prints a row-count summary so you can verify content. -# -# After it finishes, run: -# make clean && make x86 -# from this (start9/0.4/) directory to rebuild the .s9pk. -# ═══════════════════════════════════════════════════════════════ - -set -eu - -if [ $# -lt 1 ]; then - echo "Usage: $0 [remote-data-dir]" - echo "" - echo "Remote data dir defaults (tried in order):" - echo " /embassy-data/package-data/volumes/ten-database/data/main" - echo " /mnt/embassy-os/package-data/volumes/ten-database/data/main" - echo " /var/lib/embassy/services/ten-database/data" - exit 1 -fi - -REMOTE="$1" -REMOTE_DIR="${2:-}" -SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" -SEED_DIR="$SCRIPT_DIR/seed/data" - -echo "" -echo " Staging production seed from $REMOTE" -echo " into $SEED_DIR" -echo "" - -# Auto-detect remote data dir if not supplied -if [ -z "$REMOTE_DIR" ]; then - echo " Probing for remote data directory..." - for candidate in \ - "/embassy-data/package-data/volumes/ten-database/data/main" \ - "/mnt/embassy-os/package-data/volumes/ten-database/data/main" \ - "/var/lib/embassy/services/ten-database/data"; do - if ssh "$REMOTE" "[ -f \"$candidate/crm.db\" ]" 2>/dev/null; then - REMOTE_DIR="$candidate" - echo " found: $REMOTE_DIR" - break - fi - done - if [ -z "$REMOTE_DIR" ]; then - echo " Could not auto-detect a valid data directory with crm.db on $REMOTE." - echo " Re-run this script and pass the path explicitly as the 2nd argument." - exit 2 - fi -fi - -mkdir -p "$SEED_DIR/backups" - -echo "" -echo " Copying crm.db ..." -scp "$REMOTE:$REMOTE_DIR/crm.db" "$SEED_DIR/crm.db" - -echo " Copying backups/ (if present) ..." -if ssh "$REMOTE" "[ -d \"$REMOTE_DIR/backups\" ]" 2>/dev/null; then - scp -r "$REMOTE:$REMOTE_DIR/backups/." "$SEED_DIR/backups/" || true -else - echo " (none found, skipping)" -fi - -echo " Copying .crm-secret (optional — keeps existing JWTs valid) ..." -if ssh "$REMOTE" "[ -f \"$REMOTE_DIR/.crm-secret\" ]" 2>/dev/null; then - read -r -p " Include .crm-secret in the baked image? [y/N] " ans - case "$ans" in - [yY]*) scp "$REMOTE:$REMOTE_DIR/.crm-secret" "$SEED_DIR/.crm-secret" ;; - *) echo " skipping .crm-secret; a fresh secret will be generated on first boot" ;; - esac -else - echo " (no .crm-secret on remote)" -fi - -echo "" -echo " Summary of staged seed:" -ls -la "$SEED_DIR" -echo "" - -if command -v python3 >/dev/null 2>&1 && [ -f "$SEED_DIR/crm.db" ]; then - python3 - <:/media/.../ten-database/data/crm.db \ - start9/0.4/seed/data/crm.db -# (Optional) include backups + secret: -scp embassy@:/media/.../ten-database/data/backups/* \ - start9/0.4/seed/data/backups/ -scp embassy@:/media/.../ten-database/data/.crm-secret \ - start9/0.4/seed/data/.crm-secret -# -# 3) Rebuild: -cd start9/0.4 && make clean && make x86 -``` - -## Keeping `.crm-secret` out of the image - -By default `seed/data/.crm-secret` is NOT included. The first boot on the -new machine generates a fresh JWT secret. Existing password hashes in -`crm.db` remain valid, so users just log in once on the new host. - -If you WANT to preserve the exact secret (so already-issued JWTs remain -valid), drop the file at `seed/data/.crm-secret` and rebuild. - -## Safety - -The entrypoint never overwrites an existing `/data/crm.db`. If the volume -already contains data (StartOS restore, manual SSH pre-seed, prior install) -the seed is skipped and a `.seeded` marker is written.