From ac0886a409197424eaaf6d03939384e1f564f170 Mon Sep 17 00:00:00 2001 From: codex Date: Tue, 7 Jul 2026 01:01:26 +0200 Subject: [PATCH] feat(T06): complete sink path decoupling and working-memory sweep sync hostPath working-memory on railiance01, migration tool, sweep commits daily-triage notes; T06 marked done in workplan. --- .../daily-statehub-wsjf-triage.md | 6 ++++- tools/migrate-working-memory-pvc-to-clone.sh | 24 +++++++++++++++++++ ...tion-independence-and-fleet-realignment.md | 14 +++++------ 3 files changed, 36 insertions(+), 8 deletions(-) create mode 100755 tools/migrate-working-memory-pvc-to-clone.sh diff --git a/activity-definitions/daily-statehub-wsjf-triage.md b/activity-definitions/daily-statehub-wsjf-triage.md index 07798e1..8355b2a 100644 --- a/activity-definitions/daily-statehub-wsjf-triage.md +++ b/activity-definitions/daily-statehub-wsjf-triage.md @@ -166,7 +166,11 @@ The run should produce: - a dated working-memory note under `custodian://memory/working/` -- a State Hub progress event with `event_type: daily_triage` +- on Railiance, that path resolves to the `the-custodian` clone at + `memory/working/` (hostPath mount); ADR-001 consistency sweep writeback + commits new notes to git — no separate sync job +- a State Hub progress event with `event_type: daily_triage` and a + repo-relative `working_memory_path` (e.g. `memory/working/daily-triage-…md`) - no direct workplan/canon edits - no task status changes unless a later human request explicitly asks for an apply step diff --git a/tools/migrate-working-memory-pvc-to-clone.sh b/tools/migrate-working-memory-pvc-to-clone.sh new file mode 100755 index 0000000..e4efc5a --- /dev/null +++ b/tools/migrate-working-memory-pvc-to-clone.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +# One-time migration: copy activity-core PVC daily-triage notes into the +# railiance01 the-custodian clone so consistency sweep can commit them. +set -euo pipefail + +KUBECONFIG="${KUBECONFIG:-$HOME/.kube/config-hosteurope}" +CLONE_DIR="${CLONE_DIR:-/home/tegwick/the-custodian/memory/working}" +NAMESPACE="${NAMESPACE:-activity-core}" + +echo "=== Source: actcore-worker PVC mount (legacy) ===" +KUBECONFIG="${KUBECONFIG}" kubectl -n "${NAMESPACE}" exec deploy/actcore-worker -- \ + sh -c 'ls -1 /var/custodian/memory/working/daily-triage-*.md 2>/dev/null | wc -l' || echo "0" + +echo "=== Copying daily-triage notes to ${CLONE_DIR} ===" +KUBECONFIG="${KUBECONFIG}" kubectl -n "${NAMESPACE}" exec deploy/actcore-worker -- \ + tar czf - -C /var/custodian/memory/working . 2>/dev/null \ + | ssh -i "${OPS_SSH_KEY:-$HOME/.ssh/id_ops}" tegwick@92.205.62.239 \ + "mkdir -p '${CLONE_DIR}' && tar xzf - -C '${CLONE_DIR}'" + +echo "=== Destination file count ===" +ssh -i "${OPS_SSH_KEY:-$HOME/.ssh/id_ops}" tegwick@92.205.62.239 \ + "ls -1 '${CLONE_DIR}'/daily-triage-*.md 2>/dev/null | wc -l" + +echo "Done. Run consistency sweep on the-custodian to commit migrated notes." \ No newline at end of file diff --git a/workplans/CUST-WP-0054-workstation-independence-and-fleet-realignment.md b/workplans/CUST-WP-0054-workstation-independence-and-fleet-realignment.md index 2fc5bb9..6b91eec 100644 --- a/workplans/CUST-WP-0054-workstation-independence-and-fleet-realignment.md +++ b/workplans/CUST-WP-0054-workstation-independence-and-fleet-realignment.md @@ -244,7 +244,7 @@ Forgejo CI image promoted (`main-375961c`, Helm rev 7). Day-1 check (2026-07-06T ```task id: CUST-WP-0054-T06 -status: progress +status: done priority: medium state_hub_task_id: "f2c5dd4b-9af4-4e8c-8619-6814e7d1666e" ``` @@ -254,12 +254,12 @@ working-memory sink and any prompt/context paths become repo-relative or PVC-native with a defined sync-to-repo step (commit via the sweep). Done when no ActivityDefinition or sink references a workstation-specific absolute path. -**Started (2026-07-06):** `custodian://` and `activity-core://` runtime path -URIs in activity-core (`runtime_paths.py`); daily triage definition + Railiance -projection decoupled from `/home/worsch/...`; working-memory mount moved to -`/var/custodian/memory/working`; prompt projected via `actcore-custodian-runtime` -ConfigMap. Remaining: sweep sync-to-repo for working-memory notes, audit remaining -ActivityDefinitions/sinks. +**Complete (2026-07-06):** `custodian://` / `activity-core://` URIs in +activity-core; all ActivityDefinitions use URI sinks (no workstation absolutes); +Railiance worker writes daily-triage notes to hostPath +`/home/tegwick/the-custodian/memory/working` (sweep writeback commits to git); +progress events record repo-relative `working_memory_path`; PVC notes migrated +via `tools/migrate-working-memory-pvc-to-clone.sh`. ## Task: Dev-environment beachhead (files-first)