Repository navigation
R06: bind checkpoint save metadata to runtime truth - #267
Conversation
Oleksii-debug
left a comment
There was a problem hiding this comment.
PRIMARY IMPLEMENTER CHANGED-HEAD STATIC REVIEW — exact bcf0e261cd0c2d7758221a97a968a3e8bd3cdb62
Read-only review against current packaged base 4a1202ec5f74f72c03f86bfe63c0d8d34b86d787.
Containment:
- exact current package is the merge-base;
- candidate is BEHIND 0;
- semantic delta is six DEV-A transport/application/test paths only;
- no canonical Scripture/source/evidence/campaign/grading bytes change.
Authority boundary:
- caller checkpoint metadata is dropped before runtime save;
- the gateway captures runtime-owned current node under the same runtime lock as persistence;
- packaged projection derives campaign/mission only from canonical loader state;
- runtime-backed save does not create a second platform-local checkpoint authority;
- unknown canonical runtime node IDs fail closed.
Persistence acknowledgement:
- runtime adapter requires explicit
saved: true/restored: true; - restore additionally requires positive integer
schema_versionand either null or non-empty string current node; - PlatformApplication repeats acknowledgement checks so custom/test gateways cannot bypass the packaged D5 truth boundary;
- save-before-task-load remains valid and returns
checkpoint: null.
The added checks are compatible with RuntimeContractError(ValueError), so packaged application validation handling remains fail-closed rather than escalating to an unrelated application-error path.
No blocking static defect found in the current six-path delta. This review is from the primary implementation run and is NOT claimed as independent-worker QA.
Current hosted evidence observed on this head: Cross-Testament, Library/Search, DEV10, Constructor V2 Direct and Packaged Current Shell are SUCCESS; DEV1 remains in progress at review time.
STATIC_CHANGED_HEAD_REVIEW=PASS
INDEPENDENT_REVIEW=NOT_CLAIMED
READY_FOR_INTEGRATION=NO pending terminal DEV1 and any project-required independent review.
7b2ff7a
into
r06-compose-packaged-app-update-verify-0911
…re_archive_platform/application/runtime_gateway.py
…re_archive_platform/application/service.py
…re_archive_platform/transport/runtime_compat.py
…est_dev_a_runtime_application.py
…est_dev_a_runtime_gateway.py
|
WRITER TERMINAL CHECKPOINT — exact head Current package is exact Exact-head hosted runs are terminal SUCCESS:
Writer-side implementation/qualification is complete. |
Scope
Release-critical player checkpoint authority and persistence-boundary repair on the exact packaged base. No canonical Scripture/source/evidence/campaign/grading bytes are changed.
Exact lineage
r06-compose-packaged-app-update-verify-0911@4a1202ec5f74f72c03f86bfe63c0d8d34b86d787;r06-player-checkpoint-runtime-authority-0929-sol@bcf0e261cd0c2d7758221a97a968a3e8bd3cdb62;AHEAD 13 / BEHIND 0;lanes/dev1/repair_overlay/scripture_archive_platform/application/runtime_gateway.py;lanes/dev1/repair_overlay/scripture_archive_platform/application/service.py;lanes/dev1/repair_overlay/scripture_archive_platform/transport/runtime_compat.py;lanes/dev1/repair_overlay/tests/test_dev_a_runtime_gateway.py;lanes/dev1/repair_overlay/tests/test_dev_a_runtime_application.py;lanes/dev1/repair_overlay/tests/test_runtime_compat.py.Proven authority defects
PlatformApplication._save_checkpoint()previously built campaign/mission/node metadata from browser/caller payload, invoked canonical runtime save with an empty payload, then stored and returned the caller-derived record while labelling ittruth_owner='D5/runtime'.current_node_id; the platform-local checkpoint shadow record was not consumed by runtime restore and could disagree with canonical persisted state.save/restoreresponses without requiring positive persistence acknowledgement, so a malformed or unacknowledged response could be projected as D5 truth.Repair
RuntimeBackedPlayerGateway.invoke('player.save_checkpoint', ...)captures canonicalcurrent_node_idunder the same runtime lock immediately after runtime save;PlatformApplication._save_checkpoint()builds its public projection only from runtime-owned node identity and canonical loader mission/campaign mapping;save-player) rather than embedding caller-supplied node metadata;checkpoint: null;PlatformApplicationrequires explicitsaved: true/restored: true, and restore requires a positive integerschema_version, before labelling data as D5/runtime truth;RuntimeEngineContractAdapterindependently enforces the same save/restore acknowledgement contract and validates restored node/schema shape at the transport boundary;REFERENCE_TEST_ONLYbehavior intentionally retains payload/local-store semantics for bounded reference tests.Regression coverage
Focused DEV-A regressions now prove:
player/checkpointshadow record;checkpoint: null;Qualification truth
Exact-head hosted qualification for
bcf0e261cd0c2d7758221a97a968a3e8bd3cdb62is terminal PASS across DEV1 Linux+Windows, DEV10 Linux+Windows plus release-secret-scan, Constructor V2 Direct Linux+Windows, Library/Search Linux+Windows, Packaged Library Current Shell Linux+Windows, and Packaged Cross-Testament Linux+Windows. These hosted runners do not constitute physical Windows 11/WebView2 or HUMAN_NVDA acceptance.CHECKPOINT_RUNTIME_AUTHORITY=IMPLEMENTEDCALLER_METADATA_AS_D5_TRUTH=REMOVEDRUNTIME_PERSISTENCE_ACK_FAIL_CLOSED=IMPLEMENTEDRUNTIME_SAVE_WITHOUT_CURRENT_NODE=PRESERVEDCANONICAL_CONTENT_MUTATION=NONEDIRECT_PACKAGE_CONTAINMENT=PASSREADY_FOR_INTEGRATION=NOpending NEW different-worker exact-head QA required by current package-control convention; writer exact-head CI is terminal green.Changed-head independent review additions
D5/runtimetruth;UNKNOWN_RUNTIME_NODE_AS_TRUTH=REMOVEDRUNTIME_PERSISTENCE_ACK=REQUIRED