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.
This commit is contained in:
@@ -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
|
||||
|
||||
24
tools/migrate-working-memory-pvc-to-clone.sh
Executable file
24
tools/migrate-working-memory-pvc-to-clone.sh
Executable file
@@ -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."
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user