fix(wt-memory-gate-batch): pass --legacy-mode only when the deployed harness has it

b193 (U11b) retired the legacy plane and removed --legacy-mode from the
harness; passing it there fails the daily batch. The wrapper now greps
core/memory_acceptance at the deployed sha and omits the flag when it is
gone, so it is correct on both sides of the b192 -> b193 deploy (checked:
7a83f2f -> passes it, c2d87263 -> omits it).
This commit is contained in:
vh
2026-10-02 07:59:03 -07:00
parent 1cc8ad3292
commit cd30592e55
2 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ _As of 2026-10-01 ~0446 PT._
- **Legacy plane OFF since 0115/0120 PT 2026-09-30** (config repo 63cf268; personal /metrics b6fdd81; the repo is pushed). → `persistent-memory.d/2026-09-30-worldtree-u11a-off-u11b-gate.md`
- **U11b STEP 5 DONE 2026-10-02 14:54:03Z on Prime's direct go** (in this channel, ~0750 PT). H2 re-check exit 0 on both (demo rows 4/12/5, personal 0/6/2200, agent_self 0); deleted `agents/{forseti,lofn,mimir}/memory/<agent>.chroma` + `memory/context_promotion` on demo and personal with literal paths; apis healthy, no restart; stamp sent to worldtree-dev (b193 is theirs to cut). Demo had already lost 22 context_promotion JSONL (2026-07-03) to ledger.py's 90-day `JSONL_RETENTION_DAYS` sweep on 10-01 07:10:30 — TTL, not an erasure; flagged to worldtree-dev as retirement owner.
- **On b193 day (mine):** drop `--legacy-mode` from `scripts/wt-memory-gate-batch` (infra-hermes' daily batch fails otherwise); remove the residue `memory/context_promotion/ledger.db` a b192 restart may have re-created; then the parity config retirements (detail file). Verdict ccs come FROM `hermes-gateway` (never read); reply to `infra-hermes`.
- **b193 is cut and pushed (c2d87263, worldtree-dev 2026-10-02); demo deploys via CI, personal on Prime's staging tag.** `scripts/wt-memory-gate-batch` now passes `--legacy-mode` only when the DEPLOYED sha's harness still has it (git grep at that sha; tested b192 → passed, b193 → omitted), so no timed edit is needed. ⚠ It will REFUSE (exit 3) while demo's deployed sha lags a tree HEAD whose pyproject/uv.lock/packages changed (b193, then the albok commit): by design. **Still mine after b193 deploys:** remove the residue `memory/context_promotion/ledger.db` a b192 restart may have re-created; then the parity config retirements (detail file). Verdict ccs come FROM `hermes-gateway` (never read); reply to `infra-hermes`.
- **Legacy archive:** DESTROY it whole by **2026-10-30**, or at retirement-done, or on a subject-erasure request, whichever comes first. The runbook is in the detail file.
- **TODO:** re-sweep both api logs after real traffic. After the b193 push, remove the retired config keys (list: detail file, "Post-b193 config retirements").
+10 -3
View File
@@ -41,8 +41,11 @@
# WT_DEMO_API_CT default worldtree-worldtree-api-1
# WT_LEGACY_MODE default off (U11a ruling 2026-09-30: off, not read_only)
# WT_BATCH_LABEL default window-off
# Until the U11b retirement unit lands. After it, `off` is the only mode, the
# harness drops --legacy-mode, and this script needs that flag removed.
# WT_LEGACY_MODE is passed ONLY when the deployed sha's harness still has --legacy-mode.
# b193 (U11b, 2026-10-02) retired the legacy plane and removed the flag; passing it there
# fails the batch. The check greps core/memory_acceptance/ AT THE DEPLOYED SHA (the argparse
# lives in live_driver.py; live.py only imports it), so
# the wrapper is right on both sides of the b192 -> b193 deploy without a timed edit.
set -euo pipefail
WT_TREE="${WT_TREE:-$HOME/development/Worldtree}"
@@ -105,8 +108,12 @@ else
where="detached worktree $WT_GATE_TREE (tree HEAD ${head:0:12} != deployed)"
fi
legacy_args=()
if git -C "$WT_TREE" grep -q -e '"--legacy-mode"' "$deployed" -- core/memory_acceptance 2>/dev/null; then
legacy_args=(--legacy-mode "$WT_LEGACY_MODE")
fi
cmd=(python -m core.memory_acceptance.live --runs 3 --gate
--legacy-mode "$WT_LEGACY_MODE" --label "$WT_BATCH_LABEL" --out "$OUT_DIR")
"${legacy_args[@]}" --label "$WT_BATCH_LABEL" --out "$OUT_DIR")
echo "wt-memory-gate-batch $(now)"
echo " demo image $image"