Introducing openclaw-archive-status.py to Verify Stopped Writer Prior to Legacy Archive Use
I added a new verification script and updated related tests to ensure the OpenClaw writer is confirmed stopped before any legacy archive is used, reducing risk of data inconsistency.
New Verification Script
The new scripts/openclaw-archive-status.py script proves the current writer is stopped before using the immutable legacy archive. It defines stopped_generation() to check deployment generation and replica status, and stopped_archive_status() to query the deployment and validate its state. This addresses the fix(storage) commit that verifies the stopped OpenClaw writer separately.
Test Coverage Expansion
The policy/workflows_test.rego change adds a workflow_with_openclaw_legacy_operation test that specifies read, contents, and id-token permissions, extending test coverage for the legacy operation scenario. This ensures the new verification script is exercised within the policy test suite.
Architecture and Policy Adjustments
The openwiki/architecture/storage-and-state.md update revises the recovery set description to include archive verification and fresh restore preparation that compare stored archive identity with the original contract. The policy/workflows.rego change reflects a minimal one-line adjustment, and scripts/ci/offline-checks.sh receives a corresponding one-line fix to keep the CI pipeline consistent. The next check is to run the offline-checks script and observe that the new verification passes without regressions. A platform team managing multiple stateful workloads could adopt this pattern by adding a verification script that checks the generation and replica status of the primary writer before delegating to legacy archives, and then mirror the test additions in their policy repository.