Restore the runtime and bring master up to the seventh session #1
Reference in New Issue
Block a user
Delete Branch "restore-runtime"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Brings
masterup to the current state of the pipeline.masterholds only the reconstruction commit. Every session since lives on this branch.What this is
The workpc compute half of a manga to narrated-video pipeline: stateless GPU and CPU workers behind a fixed HTTP contract. State and stage orchestration live in the separate homesrv orchestrator repo. That repo is reconciled in lockstep whenever a request or response shape changes.
The arc, oldest to newest
Runtime restore. Models,
dots.ttsand the torchvision shadow put back after the loss.Phase 1 audit. Correctness and scheduling safety, then a cross-repo pass over the worker/orchestrator contract. Findings are filed in
decisions/audit-phase1.md, not restated in prose.Storage. Artifacts split one bucket per class.
stowageserves the manga buckets.rustfsis staged and empty, and MinIO still serves every read and write.Speaker attribution. A model guess is no longer labelled as a read tail. Gemma's answer maps back to a present character. The honest speaker number is 9%.
The first end-to-end chapter, and two stages that reported success while writing nothing.
A/V sync. Two separate defects.
xfadeoffsets ran off the end of their input, and a stream copy crossed mixed frame rates.chapter.mp4now runs video 364.120s against audio 364.122s. Invariant 9 exists becauseformat=durationreportsmax(video, audio)and hides both.Identity, the bulk of the recent work. Five changes, in the order they landed:
bboxcoordinate space settled, proven over 113 detectionshas_facegates enrollment and two downstream consumersFour GPU cycles back these. The last cycle measured 119 detections and 60 assignments. The lead holds 16 rather than 36, and reconcile leaves 14 characters. Checked crop by crop by eye.
Naming. Three fixes in
db.add_name_claim, written against a real dialogue run and not yet exercised on a GPU.Architecture. The target shape, written under the constraint that Magi and any learned head are ruled out. Every section carries what exists today and a DoD. The build order starts at step 0, the measurement spine.
State at merge
The chapter runs end to end. The job is parked at
dialogue waiting. Four changes are written and tested but have not touched a GPU: the wired caption merge and the three naming fixes.NEXT.mdholds the live plan and the exact next command.Reading order
CLAUDE.mdfirst. It is a pointer table, and the goal and invariants live there.NEXT.mdis the current state,ARCHITECTURE.mdis the target,decisions/andcaveats/hold every settled question and known limit.Checks
No lint or build step. Every module carries an assert-based
__main__self-check. The orchestrator suite runs 121 tests.A full vision + identity + reconcile cycle ran today against a worker that had been started before the fix it was supposed to prove. It reproduced the defect exactly: 46 of 110 boxes past the 900px panel width, coordinates clamping at 1000, the same fingerprint measured before the fix. vision worker started 12:00:09 worker_vision.py modified 12:11:358113bdf, carrying _bbox_to_pixels 12:16:22 Python binds a module once, at process start. Editing the file afterwards changes nothing until the process restarts, and nothing in the result says so: the stage reported completed 116/116, the orchestrator recorded no error, and identity and reconcile ran to completion on top of it. Cost was one cycle plus a registry reset to undo the 8 characters it minted. This was already known as advice. The previous handoff said the render worker "must be restarted by hand to pick up an edit". Advice did not stop it. check_stale.sh compares every running worker's process start against its module's mtime and exits non-zero if any is stale, so it can gate a script. Mutation-tested by touching worker_tts.py, which it caught. decisions/identity-bbox.md#stale-worker-invalidates carries the evidence and is committed separately with the rest of the session's notes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011FmkHKFtuhppZE3B4VvNNEcouple of notes:
@@ -0,0 +1,93 @@"""Registry audit for one chapter, after vision + identity + reconcile and before anything downstream.mind if we do some other static tests like this just to verify that rgw pipeline got the stuff right?
@@ -0,0 +1,38 @@#!/usr/bin/env bashthis one and audits should probably be a part of the CICD pipeline.