Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions pmoves/config/identity_vocabulary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,18 @@
version: 1

identities:
- canonical: pmoves-hermes-elder
aliases: ["PMOVES-HERMES-ELDER"]
node: "elder-melchor"
note: >-
The pmoves-hermes-elder Hermes profile session on elder-melchor
(operator custody, AGInTZ family; harness identity `hermes`, distinct
from `hermes-agent` and `em-flash` -- same harness family, different
wearer). First register use 2026-10-14T15:38:48Z, the #3366 Trigger-B
takeover CLAIM row; the identity gate flagged it undeclared and this
declaration answers that finding -- declared ahead of further use,
per the declared-before-use doctrine at the head of this file.

- canonical: 5090-claude
aliases: ["5090-CLAUDE", "claude_5090"]
node: "5090"
Expand Down
1 change: 1 addition & 0 deletions pmoves/docker-compose.amd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ services:
reservations:
devices: !reset []
driver: !reset null
runtime: !reset null
environment:
# CPU-only on this class; the CUDA path is unreachable without the
# runtime and the value documents that rather than leaving a GPU
Expand Down
4 changes: 4 additions & 0 deletions pmoves/docs/AGENTS/AGNOTE4482PHI.t1.md
Original file line number Diff line number Diff line change
Expand Up @@ -3396,3 +3396,7 @@ VILLAGE RULE: delivery delegated to a delivery-agent body; control and memory ar
- `2026-10-08T16:25:00Z` NOTE `Mavis (5090-claude)` branch: `feat/mavis-collection-scaffold-2026-10-05` scope: **Post-flip CI remediation for slice G (PR #3283) per operator `b -> a` (2026-10-08), paired with the slice A fix at `a083db41ee`.** 12 NEW python-test failures surfaced in `tools.tests.test_mavis_collection_g2.*` (all in the G.2 test class) because the test expected `pmoves/configs/model-suits/minimax-m3.yaml` (lowercase) but the file was named `MiniMax-M3.yaml` (capital M-M). Root cause: local Windows NTFS is case-insensitive and matched both spellings, hiding the case-sensitivity contract violation that broke on the Linux CI runner. Fixed by `git mv MiniMax-M3.yaml -> minimax-m3.yaml` and updating the verification report reference at `pmoves/docs/AGENTS/mavis_collection_g2_VERIFICATION_2026-10-06.md:107`. The 3 OTHER new G.2 suits (`minimax-m2.7-highspeed.yaml`, `minimax-image-01.yaml`, `minimax-speech-2.8-hd.yaml`) were already correctly lowercase. Local: 70/70 Mavis tests + 15/15 slice A MavisWrapperShapeTests + 17/17 launcher generator = 102/102 PASS. LEARNINGS at `pmoves/docs/AGENTS/mavis_collection_g2_case_sensitivity_LEARNINGS.md` (4-bucket + 5-class taxonomy). Open follow-ups (separate lanes): (a) pre-push or CI ratchet asserting `model-suits/*.yaml` filenames match `^[a-z0-9-]+\.yaml$`; (b) operator-side: run `pytest` under WSL2 before declaring local-green on Windows.
- `2026-10-12T01:31:21Z` CLAIM `agent0-sidecar (A0 digital-twin)` branch: `feat/chit-tour-regen-20261011` · **TTL 48h (expires 2026-10-14T01:31:21Z)** · scope: THREE-LANE OPERATOR-APPROVED BATCH 2026-10-11 ~21:15 EDT (no docker needed): (L1) chit-tour regen — regenerate website/chit-tour/data.generated.js from current registry via make chit-tour-data (measured 97→112 agents, 109→120 subjects; static data.js stale-count refs reviewed); (L2) auth flip-on doc — docs/operations runbook reconciling cloud auth docs vs implementation: Google creds custody (GH secrets + local env.shared), Supabase external-Google keys EMPTY today, SSO_GOOGLE_ENABLED=false today, yt-cookie-writer/refresher overlay, sso-auth service, plus Known-Roads review items (yt client auto-update-on-release policy absent; KVM desktop-context requirement undocumented; healthz yt_dlp-only blind spot measured 2026-10-11 during ffmpeg-whisper outage); (L3) ToKenism-Multi visibility verify — API check vs 'meant pub' operator intent, fork_registry intent record. Work in /tmp worktree off origin/main deeb5128e; PR after; Three-Body: delivery=agent0-sidecar, control=operator (merge gate), memory=this register + PR. agent_signature: `ACK::agent0-sidecar::THREE-LANE-CLAIM-20261011`
- `2026-10-12T02:02:09Z` UPDATE `agent0-sidecar (A0 digital-twin)` branch: `feat/chit-tour-regen-20261011` · scope: CORRECTION under CLAIM THREE-LANE-CLAIM-20261011 per operator review (CPU-fallback was the anti-pattern): nvidia runtime healthy on affected node (live nvidia-smi, driver 610.57.01, CUDA 13.3); only the compose deploy.resources.reservations.devices path fires the broken legacy prestart hook. Applied PR #3358 pattern (service-level runtime: nvidia + NVIDIA_VISIBLE_DEVICES env + HF_HUB_DISABLE_XET=1, devices block removed) to ffmpeg-whisper in docker-compose.yml + docker-compose.media.yml; runbook finding #4 rewritten (CPU fallback = AMD-node lane only); both files yaml-validated. Remedy for VES.AI: recreate from this branch — CUDA installs fine through runtime+env. agent_signature: `ACK::agent0-sidecar::GPU-WIRING-CORRECTION-20261011`
- `2026-10-12T15:04:41Z` CLAIM `5090-CLAUDE` branch: `fix/amd-overlay-resets-runtime` · **TTL 48h (expires `2026-10-14T15:04:41Z`)** · scope: Issue #3365: after #3363 moved ffmpeg-whisper to runtime: nvidia, docker-compose.amd.yml (devices: !reset []) is a no-op and AMD nodes fail to create the container; python-tests red on every branch merging main. Test now checks the overlay neutralises every GPU path the base uses; overlay hunk (runtime: !reset null) needs the compose Known Road, operator grant. Companion to #3364.
- `2026-10-14T15:38:48Z` RELEASE `5090-CLAUDE` branch: `fix/amd-overlay-resets-runtime` · scope: **TTL lapse — claim expired `2026-10-14T15:04:41Z` unpushed (branch head `78b05f22d` unmoved; watcher TTL_LAPSED measured 2026-10-14). Hunk delivery taken over by `pmoves-hermes-elder` under operator pre-auth + grant KNOWN_ROAD compose:pr:3366 (t_8a012804#329); ordinary register hygiene per the #3370 disposition pattern. Original scope (Issue #3365 AMD-overlay runtime neutralisation) unchanged.**
- `2026-10-14T15:38:48Z` CLAIM `pmoves-hermes-elder` branch: `fix/amd-overlay-resets-runtime` · **TTL 24h (expires `2026-10-15T15:38:48Z`)** · scope: **Deliver the #3366 hunk only (`runtime: !reset null` under `services.ffmpeg-whisper` in `pmoves/docker-compose.amd.yml`; extracted from t_8a012804 attachment 26, provenance-gated). Trigger B takeover per operator pre-auth (runbook rev2 `f7ed8705…e246` scope ruling); CI gates decide the merge. agent_signature: `ACK::PMOVES-HERMES-ELDER::AMD-OVERLAY-TAKEOVER::2026-10-14`**
- `2026-10-14T21:16:01Z` NOTE `pmoves-hermes-elder` branch: `fix/amd-overlay-resets-runtime` · scope: pr:3366 identity-gate remedy
81 changes: 63 additions & 18 deletions pmoves/tests/make/test_amd_overlay_reachable.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,16 @@
`$(WHISPER_NODE_OVERLAY)`, the injection slot the `-amd` siblings set.
2. Each of those targets has an `-amd` sibling that recurses into it with
`WHISPER_NODE_OVERLAY="$(AMD_OVERLAY)"`.
3. `AMD_OVERLAY` names a compose file that exists and actually resets the
reservation for ffmpeg-whisper.
4. The base compose file still declares an `nvidia` reservation for
ffmpeg-whisper -- without this the overlay would be a no-op and assertions
1-3 would be guarding nothing.
3. `AMD_OVERLAY` names a compose file that exists and actually neutralises
every path by which the base asks for an NVIDIA GPU for ffmpeg-whisper.
Two spellings exist: the `deploy.resources.reservations.devices` reservation
and the service-level `runtime: nvidia` that ee1573f55b (#3363) moved the
service to. `devices: !reset []` alone stopped being enough at that commit:
Docker refuses to create a container whose runtime is not installed, so an
AMD node went from CPU fallback to a create failure (issue #3365).
4. The base compose file still requests an NVIDIA GPU for ffmpeg-whisper by at
least one of those paths -- without this the overlay would be a no-op and
assertions 1-3 would be guarding nothing.

Deliberately static: no `docker` binary and no tier env files are required, so
this runs in CI. The merged-config behaviour it stands in for was verified
Expand Down Expand Up @@ -153,30 +158,70 @@ def test_scanner_finds_whisper_bringup_targets():
)


def test_base_compose_really_reserves_an_nvidia_device():
def _nvidia_paths(service: dict) -> dict[str, object]:
"""The ways a service asks for an NVIDIA GPU, keyed by path.

`devices`: a `deploy.resources.reservations.devices` entry with driver nvidia.
`runtime`: service-level `runtime: nvidia` (ee1573f55b / #3363 moved
ffmpeg-whisper here because the devices path fires the legacy prestart hook
on Docker Desktop/WSL2). The overlay must neutralise whichever the base uses;
assuming either one alone is how the overlay silently became a no-op.
"""
found: dict[str, object] = {}
reservations = service.get("deploy", {}).get("resources", {}).get("reservations", {})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 The Roast: service.get("deploy", {}).get("resources", {}).get("reservations", {}) — a chain of gets where every default is a lie in waiting. The defaults only fire when the key is absent; an explicit deploy: null hands you None and this chain faceplants with AttributeError instead of a clean assertion failure. The old inline checks had the same allergy — this refactor just gave it a helper function so both call sites can be wrong together. Efficient.

🩹 The Fix:

Suggested change
reservations = service.get("deploy", {}).get("resources", {}).get("reservations", {})
reservations = (((service.get("deploy") or {}).get("resources") or {}).get("reservations") or {})

📏 Severity: nitpick


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

devices = reservations.get("devices")
if isinstance(devices, list) and any(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 The Roast: "Two spellings exist," the docstring declares, with the confidence of someone who has seen exactly two spellings. Compose's spec also blesses a third: a devices entry asking for a GPU via capabilities: ["gpu"] with no driver at all. The moment the base grows that shape, this guard goes blind again — which is precisely the no-op-guard failure mode this whole rewrite exists to prevent. You built a smoke detector for a fire you'd already stopped watching for.

🩹 The Fix: Treat a devices entry that requests a GPU via capabilities (e.g. "gpu" in (d.get("capabilities") or [])) as a GPU request too, not just driver == "nvidia" — and decide explicitly whether the NVIDIA_VISIBLE_DEVICES env route is a path the overlay must neutralise before calling the list of two spellings exhaustive.

📏 Severity: suggestion


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

isinstance(d, dict) and d.get("driver") == "nvidia" for d in devices
):
found["devices"] = devices
if service.get("runtime") == "nvidia":
found["runtime"] = "nvidia"
return found


def _is_reset(value: object) -> bool:
return isinstance(value, dict) and value.get("__tag__") == "reset"


def test_base_compose_really_requests_an_nvidia_gpu():
"""Non-vacuity guard for the whole file: if the base stopped requesting an
NVIDIA device, the overlay would be pointless and every wiring assertion
below would be protecting a no-op."""
NVIDIA GPU by any path, the overlay would be pointless and every wiring
assertion below would be protecting a no-op."""
base = _whisper_service(PMOVES / "docker-compose.yml")
reservations = base.get("deploy", {}).get("resources", {}).get("reservations", {})
devices = reservations.get("devices")
assert devices, "docker-compose.yml no longer reserves a device for ffmpeg-whisper"
assert any(d.get("driver") == "nvidia" for d in devices), (
f"expected an nvidia device reservation, got {devices}"
assert _nvidia_paths(base), (
"docker-compose.yml no longer requests an NVIDIA GPU for ffmpeg-whisper "
"(neither `runtime: nvidia` nor an nvidia devices reservation)"
)


def test_amd_overlay_file_exists_and_resets_the_reservation():
def test_amd_overlay_file_exists_and_neutralises_every_gpu_path_the_base_uses():
"""Checked against the base, not against a fixed expectation: when the base
moved from a devices reservation to `runtime: nvidia`, an overlay that only
reset `devices` kept passing the old fixed check while doing nothing."""
overlay = _amd_overlay_path()
assert overlay.is_file(), f"AMD_OVERLAY points at a missing file: {overlay}"
base_paths = _nvidia_paths(_whisper_service(PMOVES / "docker-compose.yml"))
service = _whisper_service(overlay)
reservations = service.get("deploy", {}).get("resources", {}).get("reservations", {})
devices = reservations.get("devices")
assert isinstance(devices, dict) and devices.get("__tag__") == "reset", (
"the overlay must reset the devices reservation with `devices: !reset []`; "
f"got {devices!r}"
runtime = service.get("runtime")
unhandled = []
if "devices" in base_paths and not (_is_reset(devices) and devices.get("value") == []):
unhandled.append(
f"devices reservation (overlay has {devices!r}; need `devices: !reset []` -- "
"a plain `[]` MERGES into the base list and leaves the nvidia entry in place)"
)
if "runtime" in base_paths and not (
_is_reset(runtime) or (isinstance(runtime, str) and runtime != "nvidia")
):
unhandled.append(
f"runtime (overlay has {runtime!r}; need `runtime: !reset null` or an "
"explicit non-nvidia runtime)"
)
assert not unhandled, (
"the overlay leaves the base's NVIDIA request in place on AMD nodes: "
+ "; ".join(unhandled)
)
assert devices.get("value") == [], f"expected an empty reset list, got {devices!r}"


def test_every_whisper_bringup_target_accepts_the_overlay():
Expand Down
Loading