Files
leleka/crates/context/tests/rope_plan_golden/gen_plan_golden.sh
T
Pavlo RatushnyiandClaude Sonnet 5.5 e69c3e66d4 refactor: move pure rope/plan/policy modules into leleka-context, add cell geometry
The source-port runtime no longer builds on macOS, so the pure arithmetic and its
golden tests live in a platform-independent crate shared by the driver and runtime.
leleka_runtime::{rope_scaling,memory_plan,context_policy} stay as re-exports.
geometry.rs derives every frozen 262144-cell byte literal from the cell count.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 14:50:09 +02:00

8 lines
315 B
Bash
Executable File

#!/bin/sh
# Regenerates memory_plan_golden.json from the Original (macOS or Linux, any C++17 compiler + python3).
set -eu
here=$(cd "$(dirname "$0")" && pwd)
work=$(mktemp -d)
trap 'rm -rf "$work"' EXIT
python3 -I "$here/gen_plan_golden.py" "$here/memory_plan_golden.json" "$here/../../../../engine/strata" "$work"