Document verified permanent voice archives and protected source copies
This commit is contained in:
1 parent
2d265eef56
commit
c6dd01764f
11 files changed
+1541
No files matched your search
@@ -5,6 +5,23 @@ curated project handoff, not imported chat history. Read applicable `AGENTS.md`,
|
||||
then the current source and relevant linked documentation; verify live state
|
||||
again before changing anything. Historical notes do not override current facts.
|
||||
|
||||
## Remaining voice data tidied · 23 November 2026
|
||||
|
||||
Michael's relayed “Yes, tidy up” authorizes storage-only preservation, not TTS
|
||||
candidate work.26 source groups copied with rsync-aHAX and source/copy/repeated
|
||||
SHA-256 checks:8658 original files,53.454GiB, plus two consistent Applio SQLite
|
||||
snapshots.0 moves/deletions: Piper/Kikiri/Victoria recipe paths, live Anna profile,
|
||||
Applio jobs and SoulX/Legacy consumers remain protected at their original paths.
|
||||
Permanent copies live under `/data/athena-voices/<voice>/<source>/`; nine speaker
|
||||
groups have NICHT LÖSCHEN READMEs.63 archive-only audio links made relative and
|
||||
content-verified.918 derived audio outputs inventoried only. Anna's catalogue
|
||||
README/SHA extended; original Pocket payload and primary state copy still verify.
|
||||
Archive total53.499GiB, /data available216.621GiB at closure.12 container lifecycle
|
||||
identities,4 GPU processes and3 captured state JSON hashes unchanged; Deck healthy.
|
||||
No restart, drain, inference, activation, Unraid action or backup job. Referenced
|
||||
working roots still exist; never run archived writing scripts inside these copies.
|
||||
[Exact mappings, exclusions, hashes, output inventory and native restore limits](maintenance/voice-tidy-2026-11-23/README.md).
|
||||
|
||||
## Anna voice preservation · 23 November 2026
|
||||
|
||||
Michael authorized durable preservation and retirement of the small-TTS test
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# Anna voice/accent follow-up · 27 October 2026
|
||||
|
||||
Preservation update · 23 November 2026: voice/training assets now also have a
|
||||
verified permanent copy at `/data/athena-voices/anna/kikiri-more/`.
|
||||
[Copy scope, hashes and unchanged-source rules](../../maintenance/voice-tidy-2026-11-23/README.md).
|
||||
The original recipe/working paths below still exist and were NOT moved or
|
||||
retired. Do not redirect writing scripts into the preservation archive.
|
||||
Historical results and source manifests below remain unchanged.
|
||||
|
||||
Michael clarified that technical-word pronunciation belongs to the existing
|
||||
Athena enhancer. This experiment targets **Anna identity and perceived accent**,
|
||||
not a new technical lexicon, phonemizer replacement or active endpoint switch.
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# Continue the selected Anna full20 voice · 27 October 2026
|
||||
|
||||
Preservation update · 23 November 2026: voice/training assets now also have a
|
||||
verified permanent copy at `/data/athena-voices/anna/kikiri-full20-next/`.
|
||||
[Copy scope, hashes and unchanged-source rules](../../maintenance/voice-tidy-2026-11-23/README.md).
|
||||
The original recipe/working paths below still exist and were NOT moved or
|
||||
retired. Do not redirect writing scripts into the preservation archive.
|
||||
Historical results and source manifests below remain unchanged.
|
||||
|
||||
Michael selected `anna-full20-expressive.wav` as the basis for further work,
|
||||
using the large original `Anna Training.wav`. Continue the **model checkpoint
|
||||
behind that listening file**, not training on the synthetic listening audio.
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# Kokoro/Kikiri Anna adaptation · 27 October 2026
|
||||
|
||||
Preservation update · 23 November 2026: voice/training assets now also have a
|
||||
verified permanent copy at `/data/athena-voices/anna/kikiri/`.
|
||||
[Copy scope, hashes and unchanged-source rules](../../maintenance/voice-tidy-2026-11-23/README.md).
|
||||
The original recipe/working paths below still exist and were NOT moved or
|
||||
retired. Do not redirect writing scripts into the preservation archive.
|
||||
Historical results and source manifests below remain unchanged.
|
||||
|
||||
Michael authorized training on the supplied `Anna Training.wav`, followed by
|
||||
the unchanged technical paragraph on Athena CPU, local STT and a listening
|
||||
sample. This is an isolated pilot. The active Articulino TTS must not change.
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# Kokoro/Kikiri Victoria on Athena CPU · 27 October 2026
|
||||
|
||||
Preservation update · 23 November 2026: voice/training assets now also have a
|
||||
verified permanent copy at `/data/athena-voices/victoria/kikiri/`.
|
||||
[Copy scope, hashes and unchanged-source rules](../../maintenance/voice-tidy-2026-11-23/README.md).
|
||||
The original recipe/working paths below still exist and were NOT moved or
|
||||
retired. Do not redirect writing scripts into the preservation archive.
|
||||
Historical results and source manifests below remain unchanged.
|
||||
|
||||
Michael authorized a speed-first CPU test, then the unchanged technical text,
|
||||
local STT and one listening sample if fast enough. Active TTS must remain
|
||||
unchanged. This uses the public **Victoria** voice, not Anna. No voice cloning,
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# Piper CPU and Anna adaptation pilot · 27 October 2026
|
||||
|
||||
Preservation update · 23 November 2026: voice/training assets now also have a
|
||||
verified permanent copy at `/data/athena-voices/anna/piper/`.
|
||||
[Copy scope, hashes and unchanged-source rules](../../maintenance/voice-tidy-2026-11-23/README.md).
|
||||
The original recipe/working paths below still exist and were NOT moved or
|
||||
retired. Do not redirect writing scripts into the preservation archive.
|
||||
Historical results and source manifests below remain unchanged.
|
||||
|
||||
Michael authorized trying Piper and, explicitly, temporarily unloading idle
|
||||
Qwen for GPU training and restoring it afterwards. This is an isolated pilot,
|
||||
not a production endpoint integration. **Michael rejected this Anna pilot
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# Anna voice preservation · 23 November 2026
|
||||
|
||||
Follow-up: Michael subsequently authorized tidying the remaining voice data.
|
||||
The inventory-only section below describes the earlier snapshot; selected
|
||||
training/reference stores now have verified permanent copies, while referenced
|
||||
sources stay untouched. Anna's second-copy README/checksum catalogue was extended
|
||||
without changing original Pocket payload bytes; its original catalogue metadata
|
||||
is retained privately. See [current paths and checks](../voice-tidy-2026-11-23/README.md).
|
||||
No Unraid backup was requested or performed.
|
||||
|
||||
Authorized scope: Michael's relayed “Yes, do it”: preserve Anna at a clearly
|
||||
named permanent location, verify a second copy, then retire the disposable test
|
||||
environment. No restart, drain, inference, profile activation or model switch.
|
||||
|
||||
@@ -0,0 +1,157 @@
|
||||
# Dauerhafte Stimmarchive · 23. November 2026
|
||||
|
||||
Freigabe: Michaels übermitteltes „Yes, tidy up“. Reine Athena-Speicherordnung.
|
||||
Kein Unraid-Backup und keine Unraid-Datenaktion. Kein Neustart, Drain,
|
||||
Inferenzlauf, Profilwechsel oder Übernahme der ursprünglichen Codex-TTS-Arbeit.
|
||||
|
||||
## Ergebnis
|
||||
|
||||
26 Quellgruppen kopiert, 0 verschoben, 0 gelöscht. Piper/Kikiri/Victoria werden
|
||||
von Trainings-/Export-/Auswertungsrezepten referenziert. Applio, Kikiri-Profil,
|
||||
SoulX und Legacy liegen im Dienst-/Profilzustand oder ihre Verbraucher sind
|
||||
nicht sicher vollständig zuzuordnen. Deshalb greift die angeordnete Kopier-
|
||||
Ausnahme: Quellen unverändert erhalten, keine als unbenutzt freigegeben.
|
||||
Die alten Pfade sind weiterhin Arbeitsbestände, keine leeren Hüllen.
|
||||
Die Archive sind nicht automatisch registriert oder live aktiviert.
|
||||
|
||||
## Alte → neue Pfade: alle nur kopiert
|
||||
|
||||
Zielpräfix `/data/athena-voices/`.
|
||||
|
||||
| Quelle | Ziel relativ zum Präfix | Dateien | Quellbytes |
|
||||
| --- | --- | ---: | ---: |
|
||||
| `/data/athena-piper-test-20261027` | `anna/piper` | 566 | 2394982261 |
|
||||
| `/data/athena-kikiri-anna-20261027` | `anna/kikiri` | 121 | 3366257827 |
|
||||
| `/data/athena-kikiri-anna-more-20261027` | `anna/kikiri-more` | 43 | 3653544297 |
|
||||
| `/data/athena-kikiri-anna-full20-next-20261027` | `anna/kikiri-full20-next` | 36 | 2153511015 |
|
||||
| `/data/athena-kikiri-victoria-cpu-20261027` | `victoria/kikiri` | 17 | 327804480 |
|
||||
| `/opt/athena-deck-dev/runtime/state/kikiri-data/anna-plus20` | `anna/kikiri-profil` | 3 | 327713941 |
|
||||
| `/data/experiments/qwen06-q8-native-cpu-20261019` | `anna/experiments-referenzen/qwen06-q8-native-cpu-20261019` | 1 | 576078 |
|
||||
| `/data/experiments/humaneness-pitch-20261019` | `anna/experiments-referenzen/humaneness-pitch-20261019` | 1 | 285926 |
|
||||
| `/data/experiments/seed-vc-20261019/inputs` | `anna/experiments-referenzen/seed-vc-20261019/inputs` | 1 | 384078 |
|
||||
| `/data/experiments/seedvc-ab-20261019/40` | `anna/experiments-referenzen/seedvc-ab-20261019/40` | 1 | 384078 |
|
||||
| `/data/experiments/seedvc-ab-20261019/50` | `anna/experiments-referenzen/seedvc-ab-20261019/50` | 1 | 384078 |
|
||||
| `/opt/athena-deck-dev/runtime/state/applio-data/logs/Amelia - young and enthusiastic` | `amelia/applio/training` | 1751 | 14354209615 |
|
||||
| `/opt/athena-deck-dev/runtime/state/applio-data/logs/BritishWoman` | `britishwoman/applio/training` | 3 | 95216492 |
|
||||
| `/opt/athena-deck-dev/runtime/state/applio-data/logs/ElevenLabs-Anna-Dataset` | `anna/applio/training` | 2288 | 1021616670 |
|
||||
| `/opt/athena-deck-dev/runtime/state/applio-data/logs/Wayne Steele` | `wayne-steele/applio/training` | 1949 | 14418700710 |
|
||||
| `/opt/athena-deck-dev/runtime/state/applio-data/logs/Captain Picard 1` | `captain-picard/applio/training` | 1830 | 14494669459 |
|
||||
| `/opt/athena-deck-dev/runtime/state/applio-data/datasets/ElevenLabs-Amelia-Dataset` | `amelia/applio/dataset` | 1 | 66563388 |
|
||||
| `/opt/athena-deck-dev/runtime/state/applio-data/datasets/ElevenLabs-Anna-Dataset` | `anna/applio/dataset` | 1 | 87260788 |
|
||||
| `/opt/athena-deck-dev/runtime/state/applio-data/datasets/ElevenLabs-Wayne-Dataset` | `wayne-steele/applio/dataset` | 1 | 70736292 |
|
||||
| `/opt/athena-deck-dev/runtime/state/applio-data/datasets/StarTrek-Picard-Voice-1` | `captain-picard/applio/dataset` | 1 | 145153116 |
|
||||
| `/opt/athena-deck-dev/runtime/state/applio-data/datasets/.mikes-applio-ui/uploads` | `sprecher-unbekannt/applio/uploads` | 31 | 261518151 |
|
||||
| `/opt/athena-deck-dev/runtime/state/applio-data/uploads` | `sprecher-unbekannt/applio/service-uploads` | 1 | 41484620 |
|
||||
| `/opt/athena-deck-dev/runtime/state/legacy-userdata/voice-profiles` | `anna/legacy-stimmprofil` | 1 | 3093394 |
|
||||
| `/opt/athena-deck-dev/runtime/state/legacy-userdata/xvc-output` | `xvc-legacy-sprecher-unbekannt/referenzen` | 2 | 1992723 |
|
||||
| `/opt/athena-deck-dev/runtime/state/legacy-userdata/retired-seed-vc/uploads` | `sprecher-unbekannt/seed-vc-legacy/uploads` | 5 | 106895866 |
|
||||
| `/opt/athena-deck-dev/runtime/state/soulx_singer-data/tmp/check` | `soulx-sprecher-unbekannt/referenzen` | 2 | 532156 |
|
||||
|
||||
Auswahl Piper: `anna-input.wav`, `anna-data/`, `anna-pilot/`, `model/`;
|
||||
Kikiri: `data/`, `model/`, `run/`; Follow-ups: `models/`, `run/`;
|
||||
Victoria: `model/`; jeweils oberste Rezept-/Provenienzdateien.
|
||||
`SOURCE_FILES.json` je Archiv nennt die genaue Auswahl mit Originalhashes.
|
||||
Originalaufnahmen, Trainingssegmente, Stimmprofile, private Checkpoints und
|
||||
Exports erhalten. Öffentliche Basisgewichte, venvs und Abhängigkeiten nicht
|
||||
unnötig dupliziert; alle bleiben an der Quelle unverändert. Applio-Trainingsbäume
|
||||
inklusive Features und Zwischenständen vollständig kopiert, nicht ausgesiebt.
|
||||
Victoria ist laut ursprünglicher Modelldokumentation öffentlich, nicht Anna.
|
||||
Sprecher gemischter/unbekannter Uploads nicht erfunden zugeordnet.
|
||||
|
||||
Zusätzlich: zwei konsistente SQLite-Onlinekopien von
|
||||
`state/applio-data/jobs/jobs.db` und `state/legacy-userdata/applio-ui/jobs/jobs.db`
|
||||
nach `sprecher-unbekannt/applio/job-provenienz/{jobs.db,legacy-jobs.db}`.
|
||||
Beide `PRAGMA integrity_check` = `ok`; laufende Datenbanken unangetastet.
|
||||
|
||||
## Tatsächliche Prüfungen
|
||||
|
||||
- `rsync -aHAX --numeric-ids`: Hardlinks, Rechte, ACLs, xattrs erhalten.
|
||||
- Je Gruppe Originalhash → Kopie, danach erneuter Quellhash identisch;
|
||||
rsync Dry-run mit checksum/itemize ohne Abweichung.
|
||||
- Je Archiv `SHA256SUMS`, abschließend alle `sha256sum -c` erfolgreich;
|
||||
sämtliche kopierten Originaldateien zusätzlich gegen SOURCE_FILES neu gehasht.
|
||||
DB-Snapshots besitzen eine separate Prüfliste.
|
||||
- 63 absolute Kikiri-Audiolinks nur IN DER KOPIE auf relative Archivpfade
|
||||
umgestellt. Original- und Archivzielbytes verglichen; `LINK_REWRITES.json`
|
||||
dokumentiert alte/neue Linkziele und Inhaltshashes. Keine Abhängigkeit dieser
|
||||
Archivlinks vom alten Testpfad mehr. Quelllinks unverändert.
|
||||
- Neun Stimmen-/Sprechergruppen mit gelesener README: Herkunft, Inhalt,
|
||||
Nutzung und NICHT LÖSCHEN. Anna-README um Quellenkatalog ergänzt; vorherige
|
||||
Pocket-README/Prüfliste privat unter `.maintenance/tidy-20261123/` erhalten.
|
||||
Anna-Wurzelprüfliste gilt für oberste Dateien, SUBARCHIVE_SHA256SUMS bindet
|
||||
Unterarchive ein; diese besitzen eigene rekursive Prüflisten.
|
||||
Ursprünglicher Pocket-Inhalt und primäres `state/voices/anna` weiterhin geprüft.
|
||||
- Alle 12 Projektcontainer: Image/PID/Start/Running/RestartCount unverändert.
|
||||
Vier GPU-Prozessidentitäten unverändert. Abschließende Deck-Health: healthy.
|
||||
- Drei erfasste Zustandsdateien bytegleich:
|
||||
- `/opt/athena-deck-dev/runtime/state/endpoint.json`
|
||||
- `/opt/athena-deck-dev/runtime/state/profiles.json`
|
||||
- `/opt/athena-deck-dev/runtime/state/cpu-partition.json`
|
||||
|
||||
26 Gruppen: 8658 Originaldateien, 57395471499 Bytes =
|
||||
53.454 GiB, zusätzlich zwei DB-Snapshots und Archivmetadaten.
|
||||
Gesamte Archivwurzel einschließlich bisherigem Pocket und Evidence:
|
||||
57444569088 belegte Bytes = 53.499 GiB.
|
||||
/data verfügbar nach Abschluss: 232594849792 Bytes = 216.621 GiB.
|
||||
Verfügbare Bytes während der Aktion: 290013446144 → 232594849792.
|
||||
Parallele Aktivität kann freie Filesystembytes ebenfalls beeinflussen.
|
||||
Kopieren schafft keinen freien Platz.
|
||||
|
||||
## Abgeleitete Audioausgaben: nur inventarisiert
|
||||
|
||||
918 Dateien / 2350239352 Bytes. Nicht kopiert,
|
||||
verschoben oder gelöscht. Einzelliste privat in derived-inventory.json.
|
||||
Keine pauschale spätere Löschfreigabe, besonders für Separator-Vocals.
|
||||
|
||||
| Bestand | Audiodateien | Bytes |
|
||||
| --- | ---: | ---: |
|
||||
| `/data/athena-piper-test-20261027/outputs` | 31 | 11217364 |
|
||||
| `/data/athena-kikiri-anna-20261027/outputs` | 3 | 2547732 |
|
||||
| `/data/athena-kikiri-anna-more-20261027/outputs` | 10 | 7696040 |
|
||||
| `/data/athena-kikiri-anna-full20-next-20261027/outputs` | 6 | 4482264 |
|
||||
| `/data/athena-kikiri-anna-breath-20261027/outputs` | 3 | 2235732 |
|
||||
| `/data/athena-kikiri-anna-pronunciation-20261027/outputs` | 4 | 3140576 |
|
||||
| `/data/athena-kikiri-victoria-cpu-20261027/outputs` | 3 | 2304132 |
|
||||
| `/opt/athena-deck-dev/runtime/state/tts-tests` | 490 | 128523320 |
|
||||
| `/opt/athena-deck-dev/runtime/state/voice-tests` | 118 | 44304872 |
|
||||
| `/opt/athena-deck-dev/runtime/state/tts-verification-iq9qi2x2` | 1 | 192044 |
|
||||
| `/opt/athena-deck-dev/runtime/state/kikiri-verification-jobs` | 2 | 1735288 |
|
||||
| `/opt/athena-deck-dev/runtime/state/separator-tests` | 81 | 1503574206 |
|
||||
| `/opt/athena-deck-dev/runtime/state/applio-data/results` | 1 | 22571564 |
|
||||
| `/opt/athena-deck-dev/runtime/state/applio-data/datasets/.mikes-applio-ui/results` | 95 | 517986246 |
|
||||
| `/opt/athena-deck-dev/runtime/state/soulx_singer-data/results` | 7 | 58292108 |
|
||||
| `/opt/athena-deck-dev/tts-cpu-test-20261013` | 3 | 760452 |
|
||||
| `/data/experiments/tts-speed-20261019` | 17 | 8702188 |
|
||||
| `/data/experiments/tts-q8-q4-20261022T1245` | 4 | 4350896 |
|
||||
| `/opt/athena-deck-dev/runtime/state/legacy-userdata/xvc-output` | 39 | 25622328 |
|
||||
|
||||
## Referenzen, Nutzung und native Wiederherstellung
|
||||
|
||||
Historische Experiment-READMEs verweisen auf diese dauerhaften Kopien.
|
||||
Ausführbare Originalrezepte und produktive Profile behalten ihre existierenden
|
||||
Arbeits-/Dienstpfade: blindes Ersetzen würde Schreibprogramme in ein geschütztes
|
||||
Archiv lenken. Kopierte Skripte/Konfigurationen sind bytegenaue historische
|
||||
Provenienz, ausdrücklich NICHT im Archiv ausführen. Neue Arbeiten in getrennten
|
||||
Arbeitskopien mit bewusst angepassten Pfaden und gepinnten Abhängigkeiten.
|
||||
|
||||
Private Verzeichniseltern; rsync erhält Quellrechte. Native Kopie/Prüfung braucht
|
||||
keinen Docker: rsync, SHA-256, separate Arbeitskopie, tatsächliche Dienst-UID,
|
||||
Pfadabbildung und Runtime-/Modellabhängigkeiten prüfen. Registrierung/Aktivierung
|
||||
nur separat autorisiert. Kein Mount-/Produktionswechsel. Vollständiger nativer
|
||||
Debian-/TTS-Restore und Offhost-Sicherung nicht ausgeführt oder behauptet.
|
||||
Dies ist kein Backupauftrag, insbesondere keiner für Unraid.
|
||||
|
||||
## Evidence / tatsächliche Ausführungsumgebung
|
||||
|
||||
Private Athena-Host-Evidence:
|
||||
`/data/athena-voices/.maintenance/tidy-20261123/` mit Plan, Vorher/Nachher,
|
||||
Prüflogs, Ergebnissen, derived-inventory.json und final-summary.json.
|
||||
`evidence.json` hier enthält nur Pfad-/Mengen-/Prüfsummenmetadaten.
|
||||
Keine privaten Audioinhalte, Transkripte oder Datenbanken in Git.
|
||||
|
||||
Die beiden beiliegenden Einmalskripte liefen auf dem Athena-HOST via explizitem
|
||||
Athena-SSH, `nice -n 15 ionice -c 3 python3 -`, beide Exit0. Voraussetzungen:
|
||||
root, rsync, SHA256, SQLite; Docker/nvidia-smi nur zum Metadatenlesen.
|
||||
Nicht in Hermes/Servicecontainer ausführen, nicht erneut starten. Kein Daemon,
|
||||
Installer, Zeitplan oder Deployment-Rezept. Abnahme durch tatsächliche Kopie
|
||||
und Hashprüfungen; absichtlich kein neuer Modell-/TTS-Test.
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,84 @@
|
||||
"""Athena HOST, one-shot archive finalization; no source/service mutation.
|
||||
Run only after this task's tidy_on_athena.py succeeded. No automatic replay.
|
||||
"""
|
||||
import hashlib,json,os,subprocess
|
||||
from pathlib import Path
|
||||
B=Path('/data/athena-voices');E=B/'.maintenance/tidy-20261123'
|
||||
os.umask(0o077)
|
||||
def sha(p):
|
||||
h=hashlib.sha256()
|
||||
with p.open('rb') as f:
|
||||
for b in iter(lambda:f.read(4*1024*1024),b''):h.update(b)
|
||||
return h.hexdigest()
|
||||
def dump(p,x):p.write_text(json.dumps(x,indent=2,ensure_ascii=False)+'\n')
|
||||
def manifest(p):
|
||||
files=[]
|
||||
for d,ds,fs in os.walk(p):
|
||||
for f in fs:
|
||||
q=Path(d)/f
|
||||
if q.is_file() and not q.is_symlink() and q!=p/'SHA256SUMS':files.append(q)
|
||||
(p/'SHA256SUMS').write_text(''.join(sha(q)+' '+str(q.relative_to(p))+'\n' for q in sorted(files)))
|
||||
results=json.loads((E/'results.json').read_text());summary=json.loads((E/'summary.json').read_text())
|
||||
assert summary['complete'] and len(results)==summary['tasks']
|
||||
rewrites=[]
|
||||
for t in results:
|
||||
p=Path(t['destination']);changes=[]
|
||||
for rel,meta in t['links'].items():
|
||||
q=p/rel;assert q.is_symlink() and os.readlink(q)==meta['target']
|
||||
target=Path(meta['target']) if meta['target'].startswith('/') else (Path(t['source'])/rel).parent/meta['target']
|
||||
target=target.resolve(strict=True)
|
||||
matches=[a for a in results if target.is_relative_to(Path(a['source']))]
|
||||
assert matches,('Unarchived symlink target',q,target)
|
||||
a=max(matches,key=lambda a:len(a['source']))
|
||||
new=Path(a['destination'])/target.relative_to(a['source'])
|
||||
assert new.is_file() and sha(new)==sha(target),(q,new)
|
||||
relative=os.path.relpath(new,q.parent)
|
||||
# Modify only an owned archive link, never the source link.
|
||||
q.unlink();q.symlink_to(relative)
|
||||
assert q.resolve(strict=True)==new.resolve(strict=True)
|
||||
changes.append({'path':rel,'old':meta['target'],'new':relative,'target_sha256':sha(q)})
|
||||
if changes:
|
||||
dump(p/'LINK_REWRITES.json',changes)
|
||||
with (p/'ARCHIVE_README.md').open('a') as f:f.write('\nArchivinterne Symlinks wurden auf relative Archivpfade umgestellt; LINK_REWRITES.json dokumentiert Original, Ziel und Inhaltshash. Originalquelle unverändert.\n')
|
||||
manifest(p)
|
||||
rewrites+=changes
|
||||
t['archive_relative_link_rewrites']=len(changes)
|
||||
t['manifest_sha256']=sha(p/'SHA256SUMS')
|
||||
# Preserve original Pocket catalogue metadata before extending the speaker README.
|
||||
p=B/'anna';old=E/'pocket-original-catalogue';old.mkdir(exist_ok=False)
|
||||
subprocess.run(['rsync','-aHAX',str(p/'README.md'),str(p/'SHA256SUMS'),str(old)+'/'],check=True)
|
||||
with (p/'README.md').open('a') as f:f.write('\n\nWeitere dauerhaft erhaltene Anna-Quellen (23. November 2026)\n\n'+(p/'SOURCES.md').read_text()+'\nDas frühere Pocket-Archiv bleibt erhalten. SHA256SUMS hier prüft die obersten Dateien; jeder neue Quellordner hat eine eigene rekursive SHA256SUMS. SUBARCHIVE_SHA256SUMS bindet die Anna-Unterarchive ein. Originale Pocket-README und Prüfliste liegen zur Provenienz in .maintenance/tidy-20261123/pocket-original-catalogue unter der Archivwurzel.\n')
|
||||
sub=[Path(t['destination'])/'SHA256SUMS' for t in results if Path(t['destination']).is_relative_to(p)]
|
||||
(p/'SUBARCHIVE_SHA256SUMS').write_text(''.join(sha(q)+' '+str(q.relative_to(p))+'\n' for q in sorted(sub)))
|
||||
(p/'SHA256SUMS').write_text(''.join(sha(q)+' '+q.name+'\n' for q in sorted(p.iterdir()) if q.is_file() and q.name!='SHA256SUMS'))
|
||||
checks=[]
|
||||
for i,t in enumerate(results):
|
||||
p=Path(t['destination'])
|
||||
with (E/('final-check-%02d.log'%i)).open('w') as f:subprocess.run(['sha256sum','-c','SHA256SUMS'],cwd=p,stdout=f,check=True)
|
||||
# Every copied original regular file must still exactly match its source hash.
|
||||
source=json.loads((p/'SOURCE_FILES.json').read_text())['files']
|
||||
for rel,meta in source.items():
|
||||
if meta['type']=='file':assert sha(p/rel)==meta['sha256'],p/rel
|
||||
for change in rewrites:
|
||||
q=p/change['path']
|
||||
if q.is_symlink() and os.readlink(q)==change['new']:assert sha(q)==change['target_sha256']
|
||||
checks.append({'destination':str(p),'manifest_sha256':sha(p/'SHA256SUMS'),'ok':True})
|
||||
for p in [B/'anna',B/'sprecher-unbekannt/applio/job-provenienz',Path('/opt/athena-deck-dev/runtime/state/voices/anna')]:
|
||||
subprocess.run(['sha256sum','--quiet','-c','SHA256SUMS'],cwd=p,check=True)
|
||||
subprocess.run(['sha256sum','--quiet','-c','SUBARCHIVE_SHA256SUMS'],cwd=B/'anna',check=True)
|
||||
# Read back all guides. Do not confuse archive permissions with live service access.
|
||||
voices=sorted({Path(t['destination']).relative_to(B).parts[0] for t in results})
|
||||
for v in voices:assert 'NICHT LÖSCHEN' in (B/v/'README.md').read_text()
|
||||
summary['speaker_directories']=voices
|
||||
summary['archive_relative_link_rewrites']=len(rewrites)
|
||||
summary['final_checks']=checks
|
||||
summary['allocated_archive_bytes']=int(subprocess.check_output(['du','-sx','--block-size=1',str(B)],text=True).split()[0])
|
||||
summary['free_after']=os.statvfs(B).f_bavail*os.statvfs(B).f_frsize
|
||||
summary['derived_count']=sum(x['count'] for x in summary['derived'])
|
||||
summary['derived_bytes']=sum(x['bytes'] for x in summary['derived'])
|
||||
summary['source_gib']=round(summary['source_bytes']/2**30,3)
|
||||
summary['allocated_archive_gib']=round(summary['allocated_archive_bytes']/2**30,3)
|
||||
summary['free_after_gib']=round(summary['free_after']/2**30,3)
|
||||
summary['net_free_change_bytes']=summary['free_after']-summary['free_before']
|
||||
dump(E/'results.json',results);dump(E/'final-summary.json',summary)
|
||||
print(json.dumps(summary,indent=2))
|
||||
@@ -0,0 +1,145 @@
|
||||
"""One-shot Athena HOST preservation. Not an installer or activation recipe.
|
||||
Requires explicit storage authorization, root, rsync and existing Athena paths.
|
||||
Refuses pre-existing destinations. Copies only; never deletes or changes sources.
|
||||
"""
|
||||
import hashlib,json,os,sqlite3,stat,subprocess,time
|
||||
from pathlib import Path
|
||||
S=Path('/opt/athena-deck-dev/runtime/state')
|
||||
B=Path('/data/athena-voices')
|
||||
E=B/'.maintenance/tidy-20261123'
|
||||
os.umask(0o077)
|
||||
E.mkdir(parents=True,exist_ok=False)
|
||||
def dump(p,x):p.write_text(json.dumps(x,indent=2,ensure_ascii=False)+'\n')
|
||||
def sha(p):
|
||||
h=hashlib.sha256()
|
||||
with p.open('rb') as f:
|
||||
for b in iter(lambda:f.read(4*1024*1024),b''):h.update(b)
|
||||
return h.hexdigest()
|
||||
def inventory(p):
|
||||
out={}
|
||||
for d,ds,fs in os.walk(p,followlinks=False):
|
||||
for n in sorted(ds+fs):
|
||||
q=Path(d)/n;r=str(q.relative_to(p));st=q.lstat()
|
||||
if q.is_symlink():out[r]={'type':'link','target':os.readlink(q)}
|
||||
elif q.is_file():
|
||||
before=(st.st_size,st.st_mtime_ns,st.st_ino)
|
||||
digest=sha(q);st2=q.stat()
|
||||
assert before==(st2.st_size,st2.st_mtime_ns,st2.st_ino),str(q)+' changed while hashing'
|
||||
out[r]={'type':'file','size':st.st_size,'sha256':digest}
|
||||
elif not q.is_dir():raise RuntimeError('Special file '+str(q))
|
||||
return out
|
||||
def lifecycle():
|
||||
ids=subprocess.check_output(['docker','ps','-aq'],text=True).split()
|
||||
cs=json.loads(subprocess.check_output(['docker','inspect']+ids))
|
||||
return {c['Name']:{'pid':c['State']['Pid'],'started':c['State']['StartedAt'],'running':c['State']['Running'],'restarts':c['RestartCount'],'image':c['Image']} for c in cs if c['Name'].startswith(('/athena-','/ltx-'))}
|
||||
def gpu():
|
||||
return sorted(subprocess.check_output(['nvidia-smi','--query-compute-apps=pid,process_name','--format=csv,noheader'],text=True).splitlines())
|
||||
def protected():
|
||||
return {str(p):sha(p) for p in S.glob('*.json') if p.name in ['profiles.json','endpoint.json','tts.json','stt.json','cpu-partition.json','cpu-assignment.json','reasoning.json']}
|
||||
before={'containers':lifecycle(),'gpu':gpu(),'protected':protected(),'free':os.statvfs(B).f_bavail*os.statvfs(B).f_frsize,'time':time.time()}
|
||||
dump(E/'before.json',before)
|
||||
tasks=[]
|
||||
def add(src,dst,reason,children=None):
|
||||
src=Path(src);dst=B/dst
|
||||
assert src.exists(),src
|
||||
assert not dst.exists(),dst
|
||||
tasks.append({'source':str(src),'destination':str(dst),'mode':'copy','reason':reason,'children':children})
|
||||
def training(src,dst,dirs):
|
||||
p=Path(src)
|
||||
children=[x.name for x in p.iterdir() if (x.is_file() and x.suffix in ['.py','.json','.yml','.yaml','.txt','.log']) or x.name in dirs]
|
||||
add(p,dst,'Referenced by existing training/evaluation recipes; source retained unchanged',sorted(children))
|
||||
training('/data/athena-piper-test-20261027','anna/piper',['anna-data','anna-input.wav','anna-pilot','model'])
|
||||
training('/data/athena-kikiri-anna-20261027','anna/kikiri',['data','model','run'])
|
||||
training('/data/athena-kikiri-anna-more-20261027','anna/kikiri-more',['models','run'])
|
||||
training('/data/athena-kikiri-anna-full20-next-20261027','anna/kikiri-full20-next',['models','run'])
|
||||
training('/data/athena-kikiri-victoria-cpu-20261027','victoria/kikiri',['model'])
|
||||
add(S/'kikiri-data/anna-plus20','anna/kikiri-profil','Live runtime/import path; no profile change')
|
||||
refs=['qwen06-q8-native-cpu-20261019/anna-reference-original.wav','humaneness-pitch-20261019/service-reference.wav','seed-vc-20261019/inputs/anna-reference.wav','seedvc-ab-20261019/40/reference.wav','seedvc-ab-20261019/50/reference.wav']
|
||||
for r in refs:
|
||||
p=Path('/data/experiments')/r
|
||||
# Preserve only the selected reference; source experiment/recipe ownership stays unchanged.
|
||||
add(p.parent,'anna/experiments-referenzen/'+str(Path(r).parent),'Original experiment ownership/recipe dependencies retained; reference-only copy',[p.name])
|
||||
voices={'Amelia - young and enthusiastic':'amelia','BritishWoman':'britishwoman','ElevenLabs-Anna-Dataset':'anna','Wayne Steele':'wayne-steele','Captain Picard 1':'captain-picard'}
|
||||
for name,v in voices.items():add(S/'applio-data/logs'/name,v+'/applio/training','Applio model_name/job paths; preserve all checkpoints, features and training audio')
|
||||
for name,v in {'ElevenLabs-Amelia-Dataset':'amelia','ElevenLabs-Anna-Dataset':'anna','ElevenLabs-Wayne-Dataset':'wayne-steele','StarTrek-Picard-Voice-1':'captain-picard'}.items():add(S/'applio-data/datasets'/name,v+'/applio/dataset','Applio dataset/job paths')
|
||||
add(S/'applio-data/datasets/.mikes-applio-ui/uploads','sprecher-unbekannt/applio/uploads','Mixed uploads; speaker mapping not verified, do not guess')
|
||||
add(S/'applio-data/uploads','sprecher-unbekannt/applio/service-uploads','Service uploads; speaker mapping not verified')
|
||||
add(S/'legacy-userdata/voice-profiles','anna/legacy-stimmprofil','Legacy service/profile paths',['Anna.wav'])
|
||||
add(S/'legacy-userdata/xvc-output','xvc-legacy-sprecher-unbekannt/referenzen','Legacy consumers not fully attributable; preserve source/reference candidates only',['codex-test-quelle.wav','codex-test-referenz.mp3'])
|
||||
add(S/'legacy-userdata/retired-seed-vc/uploads','sprecher-unbekannt/seed-vc-legacy/uploads','Legacy inputs, mixed speakers, consumers not fully attributable')
|
||||
add(S/'soulx_singer-data/tmp/check','soulx-sprecher-unbekannt/referenzen','Live service tmp/check references; preserve target and prompt without moving')
|
||||
dump(E/'plan.json',tasks)
|
||||
results=[]
|
||||
for i,t in enumerate(tasks):
|
||||
src=Path(t['source']);dst=Path(t['destination']);dst.mkdir(parents=True,exist_ok=False)
|
||||
# Original owners/modes/ACL/xattrs/hardlinks retained by rsync; private archive ancestors.
|
||||
cmd=['rsync','-aHAX','--numeric-ids']
|
||||
if t['children'] is not None:
|
||||
for name in t['children']:assert (src/name).exists(),src/name
|
||||
cmd+=['--relative']+[str(src)+'/./'+name for name in t['children']]+[str(dst)+'/']
|
||||
else:cmd+=[str(src)+'/',str(dst)+'/']
|
||||
# Hash exact selected source files before copying without hashing excluded dependencies.
|
||||
def selected():
|
||||
if t['children'] is None:return inventory(src)
|
||||
out={}
|
||||
for n in t['children']:
|
||||
p=src/n
|
||||
if p.is_dir() and not p.is_symlink():
|
||||
out.update({n+'/'+k:v for k,v in inventory(p).items()})
|
||||
elif p.is_symlink():out[n]={'type':'link','target':os.readlink(p)}
|
||||
else:out[n]={'type':'file','size':p.stat().st_size,'sha256':sha(p)}
|
||||
return out
|
||||
original=selected()
|
||||
subprocess.run(cmd,check=True,stdout=subprocess.DEVNULL)
|
||||
copied=inventory(dst)
|
||||
assert copied==original, 'Copy mismatch '+str(dst)
|
||||
assert selected()==original,'Source changed '+str(src)
|
||||
# Check rsync metadata as well, without modifying either tree.
|
||||
check=cmd[:1]+['--dry-run','--checksum','--itemize-changes']+cmd[1:]
|
||||
metadata=subprocess.check_output(check,text=True)
|
||||
assert not metadata.strip(),metadata
|
||||
dump(dst/'SOURCE_FILES.json',{'source':str(src),'mode':'copy','reason':t['reason'],'files':original})
|
||||
(dst/'ARCHIVE_README.md').write_text('NICHT LÖSCHEN\n\nHerkunft: '+str(src)+'\nInhalt: ausgewählte Stimm-/Trainingsdaten und Original-Metadaten; SOURCE_FILES.json nennt jede Quelldatei.\nNutzung: privates Erhaltungsarchiv, keine aktivierte Stimme.\nQuelle bleibt unverändert: '+t['reason']+'.\nSprecheridentität/Lizenz nicht allein aus Ordnernamen ableiten.\nKopierte Skripte und Konfigurationen sind historische Provenienz, NICHT im Archiv ausführen.\nZum Restore Dateien in eine getrennte Arbeitskopie übernehmen; Dienstpfade und Besitzer explizit prüfen.\nPrüfung: sha256sum -c SHA256SUMS im jeweiligen Archivordner.\nKeine Unraid-/Offhost-Sicherung und keine vollständige Restore-Abnahme.\n')
|
||||
inv=inventory(dst)
|
||||
(dst/'SHA256SUMS').write_text(''.join(v['sha256']+' '+k+'\n' for k,v in sorted(inv.items()) if v['type']=='file'))
|
||||
with (E/('check-%02d.log'%i)).open('w') as f:subprocess.run(['sha256sum','-c','SHA256SUMS'],cwd=dst,stdout=f,check=True)
|
||||
result={**t,'files':sum(v['type']=='file' for v in original.values()),'source_bytes':sum(v.get('size',0) for v in original.values()),'links':{k:v for k,v in original.items() if v['type']=='link'},'checksum_ok':True,'metadata_ok':True,'source_rehash_ok':True,'manifest_sha256':sha(dst/'SHA256SUMS')}
|
||||
results.append(result);dump(E/'results.json',results)
|
||||
print('COPIED',i+1,len(tasks),dst,result['files'],result['source_bytes'],flush=True)
|
||||
# Consistent SQLite provenance snapshot; do not copy live DB/WAL as ordinary files.
|
||||
D=B/'sprecher-unbekannt/applio/job-provenienz';D.mkdir()
|
||||
for src,name in [(S/'applio-data/jobs/jobs.db','jobs.db'),(S/'legacy-userdata/applio-ui/jobs/jobs.db','legacy-jobs.db')]:
|
||||
c=sqlite3.connect('file:'+str(src)+'?mode=ro',uri=True);o=sqlite3.connect(D/name);c.backup(o);assert o.execute('PRAGMA integrity_check').fetchone()[0]=='ok';o.close();c.close()
|
||||
(D/'README.md').write_text('NICHT LÖSCHEN\nSQLite Online-Backup der Applio Job-Provenienz. Originale im Deck state bleiben unverändert.\nEnthält private Job-Metadaten. Nicht mit laufender jobs.db vertauschen. Kein Dienst-/Profilwechsel.\n')
|
||||
(D/'SHA256SUMS').write_text(''.join(sha(p)+' '+p.name+'\n' for p in sorted(D.iterdir()) if p.is_file()))
|
||||
subprocess.run(['sha256sum','-c','SHA256SUMS'],cwd=D,check=True)
|
||||
# One speaker-level guide; preserve the already checksummed Anna README byte-exact.
|
||||
for v in sorted({Path(t['destination']).relative_to(B).parts[0] for t in tasks}):
|
||||
root=B/v
|
||||
text='NICHT LÖSCHEN — '+v+'\n\nHerkunft/Inhalt:\n'+''.join('- '+str(Path(t['destination']).relative_to(root))+' <- '+t['source']+' (geprüfte Kopie)\n' for t in tasks if Path(t['destination']).is_relative_to(root))+'\nNutzung: privates dauerhaftes Stimmarchiv; keine Aktivierung. Quellen bleiben aus Dienst-/Profil-/Rezeptschutz unverändert.\nJeder Quellordner besitzt SOURCE_FILES.json, ARCHIVE_README.md und SHA256SUMS.\nKopierte Rezepte sind Originalbelege, keine sofort ausführbaren Restore-Rezepte.\nSprecherzuordnung und Lizenz nur soweit durch die Originalnamen belegt; unbekannte Stimmen bleiben unbekannt.\nKein Unraid-Backup; keine Offhost-Kopie. Restore erfordert passende Runtime, Modelle, Pfade und Dienstrechte.\n'
|
||||
if (root/'README.md').exists(): (root/'SOURCES.md').write_text(text)
|
||||
else:(root/'README.md').write_text(text)
|
||||
# Inventory generated outputs only, with no copying/deleting.
|
||||
derived=[Path('/data')/x/'outputs' for x in ['athena-piper-test-20261027','athena-kikiri-anna-20261027','athena-kikiri-anna-more-20261027','athena-kikiri-anna-full20-next-20261027','athena-kikiri-anna-breath-20261027','athena-kikiri-anna-pronunciation-20261027','athena-kikiri-victoria-cpu-20261027']]
|
||||
derived += [S/x for x in ['tts-tests','voice-tests','tts-verification-iq9qi2x2','kikiri-verification-jobs','separator-tests','applio-data/results','applio-data/datasets/.mikes-applio-ui/results','soulx_singer-data/results']]
|
||||
derived += [Path('/opt/athena-deck-dev/tts-cpu-test-20261013'),Path('/data/experiments/tts-speed-20261019'),Path('/data/experiments/tts-q8-q4-20261022T1245')]
|
||||
out=[]
|
||||
for p in derived:
|
||||
files=[{'path':str(q),'bytes':q.stat().st_size} for q in p.rglob('*') if q.is_file() and q.suffix.lower() in ['.wav','.mp3','.flac','.ogg'] ] if p.exists() else []
|
||||
out.append({'root':str(p),'exists':p.exists(),'files':files,'count':len(files),'bytes':sum(x['bytes'] for x in files)})
|
||||
# XVC references copied separately; other outputs explicitly inventory-only.
|
||||
p=S/'legacy-userdata/xvc-output'
|
||||
files=[{'path':str(q),'bytes':q.stat().st_size} for q in p.iterdir() if q.is_file() and q.name not in ['codex-test-quelle.wav','codex-test-referenz.mp3']]
|
||||
out.append({'root':str(p),'exists':True,'files':files,'count':len(files),'bytes':sum(x['bytes'] for x in files)})
|
||||
dump(E/'derived-inventory.json',out)
|
||||
# Existing Pocket archives must still verify after adding sibling archives.
|
||||
for p in [B/'anna',S/'voices/anna']:
|
||||
with (E/('existing-'+('data' if p==B/'anna' else 'state')+'.log')).open('w') as f:subprocess.run(['sha256sum','-c','SHA256SUMS'],cwd=p,stdout=f,check=True)
|
||||
after={'containers':lifecycle(),'gpu':gpu(),'protected':protected(),'free':os.statvfs(B).f_bavail*os.statvfs(B).f_frsize,'time':time.time()}
|
||||
dump(E/'after.json',after)
|
||||
assert before['containers']==after['containers'],'Lifecycle changed'
|
||||
assert before['gpu']==after['gpu'],'GPU process identities changed'
|
||||
assert before['protected']==after['protected'],'Protected JSON changed'
|
||||
summary={'tasks':len(tasks),'copied':len(results),'moved':0,'source_files':sum(x['files'] for x in results),'source_bytes':sum(x['source_bytes'] for x in results),'allocated_archive_bytes':int(subprocess.check_output(['du','-sx','--block-size=1',str(B)],text=True).split()[0]),'free_before':before['free'],'free_after':after['free'],'containers_unchanged':True,'gpu_unchanged':True,'protected_unchanged':True,'derived':[ {k:v for k,v in x.items() if k!='files'} for x in out],'complete':True}
|
||||
dump(E/'summary.json',summary)
|
||||
print(json.dumps(summary,indent=2),flush=True)
|
||||
Reference in new issue
Block a user