Skip to content

R06: bind checkpoint save metadata to runtime truth - #267

Merged
Oleksii-debug merged 13 commits into
r06-compose-packaged-app-update-verify-0911from
r06-player-checkpoint-runtime-authority-0929-sol
Sep 29, 2026
Merged

Oleksii-debug merged 13 commits into
r06-compose-packaged-app-update-verify-0911from
r06-player-checkpoint-runtime-authority-0929-sol

Conversation

@Oleksii-debug

@Oleksii-debug Oleksii-debug commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

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

  • packaged base: r06-compose-packaged-app-update-verify-0911@4a1202ec5f74f72c03f86bfe63c0d8d34b86d787;
  • current candidate: r06-player-checkpoint-runtime-authority-0929-sol@bcf0e261cd0c2d7758221a97a968a3e8bd3cdb62;
  • exact package merge-base; AHEAD 13 / BEHIND 0;
  • lasting delta: exactly six DEV-A/platform paths:
    • 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

  1. 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 it truth_owner='D5/runtime'.
  2. Runtime persistence owns current_node_id; the platform-local checkpoint shadow record was not consumed by runtime restore and could disagree with canonical persisted state.
  3. The transport adapter accepted structurally valid runtime save/restore responses without requiring positive persistence acknowledgement, so a malformed or unacknowledged response could be projected as D5 truth.

Repair

  • RuntimeBackedPlayerGateway.invoke('player.save_checkpoint', ...) captures canonical current_node_id under the same runtime lock immediately after runtime save;
  • runtime save still receives an empty payload; caller checkpoint metadata never crosses the D5 boundary;
  • runtime-backed PlatformApplication._save_checkpoint() builds its public projection only from runtime-owned node identity and canonical loader mission/campaign mapping;
  • runtime-backed save no longer writes a second platform-local checkpoint authority;
  • save request identity is fixed (save-player) rather than embedding caller-supplied node metadata;
  • save/restore share one runtime node→mission/campaign projection and fail closed on unknown canonical nodes or invalid mission metadata;
  • canonical save before any task is loaded remains valid and returns checkpoint: null;
  • PlatformApplication requires explicit saved: true / restored: true, and restore requires a positive integer schema_version, before labelling data as D5/runtime truth;
  • RuntimeEngineContractAdapter independently enforces the same save/restore acknowledgement contract and validates restored node/schema shape at the transport boundary;
  • no-runtime REFERENCE_TEST_ONLY behavior intentionally retains payload/local-store semantics for bounded reference tests.

Regression coverage

Focused DEV-A regressions now prove:

  • forged browser campaign/mission/node fields are dropped before runtime save and never returned as D5 truth;
  • gateway returns the locked runtime current node after save;
  • runtime-backed save creates no local player/checkpoint shadow record;
  • save/restore fail closed for unknown canonical nodes;
  • unacknowledged save/restore responses fail closed;
  • restore rejects invalid schema versions and malformed restored node identity at the transport boundary;
  • runtime save before task load remains successful with checkpoint: null;
  • reference-only fallback still saves/restores its payload-based local checkpoint;
  • existing player flow/next replay protection/save/restore delegation remain covered.

Qualification truth

Exact-head hosted qualification for bcf0e261cd0c2d7758221a97a968a3e8bd3cdb62 is 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=IMPLEMENTED
CALLER_METADATA_AS_D5_TRUTH=REMOVED
RUNTIME_PERSISTENCE_ACK_FAIL_CLOSED=IMPLEMENTED
RUNTIME_SAVE_WITHOUT_CURRENT_NODE=PRESERVED
CANONICAL_CONTENT_MUTATION=NONE
DIRECT_PACKAGE_CONTAINMENT=PASS
READY_FOR_INTEGRATION=NO pending NEW different-worker exact-head QA required by current package-control convention; writer exact-head CI is terminal green.

Changed-head independent review additions

  • runtime save/restore responses now fail closed unless persistence acknowledgment is explicit;
  • restore schema/current-node response shape is validated at the runtime boundary;
  • unknown canonical runtime node IDs fail closed during packaged checkpoint projection instead of being emitted as partial D5/runtime truth;
  • regression coverage exercises unknown-node save and restore;
  • candidate was reconverged after packaged branch advanced through PR R06: persist constructor task templates across restart #265; no force-push and no canonical content mutation.

UNKNOWN_RUNTIME_NODE_AS_TRUTH=REMOVED
RUNTIME_PERSISTENCE_ACK=REQUIRED

@Oleksii-debug Oleksii-debug left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_version and 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.

@Oleksii-debug
Oleksii-debug merged commit 7b2ff7a into r06-compose-packaged-app-update-verify-0911 Sep 29, 2026
13 checks passed
Oleksii-debug added a commit that referenced this pull request Sep 29, 2026
…re_archive_platform/application/runtime_gateway.py
Oleksii-debug added a commit that referenced this pull request Sep 29, 2026
…re_archive_platform/application/service.py
Oleksii-debug added a commit that referenced this pull request Sep 29, 2026
…re_archive_platform/transport/runtime_compat.py
Oleksii-debug added a commit that referenced this pull request Sep 29, 2026
Oleksii-debug added a commit that referenced this pull request Sep 29, 2026
Oleksii-debug added a commit that referenced this pull request Sep 29, 2026

Copy link
Copy Markdown
Owner Author

WRITER TERMINAL CHECKPOINT — exact head bcf0e261cd0c2d7758221a97a968a3e8bd3cdb62

Current package is exact 4a1202ec5f74f72c03f86bfe63c0d8d34b86d787; direct package→candidate is BEHIND 0 with exact package merge-base and exactly six checkpoint/runtime-boundary changed paths.

Exact-head hosted runs are terminal SUCCESS:

  • DEV1 36629598286: Linux + Windows;
  • DEV10 36629598254: Linux + Windows + release-secret-scan;
  • Constructor V2 Direct 36629598356: Ubuntu + Windows;
  • Library/Search 36629598198: Ubuntu + Windows;
  • Packaged Library Current Shell 36629598232: Ubuntu + Windows;
  • Packaged Cross-Testament 36629598202: Ubuntu + Windows.

Writer-side implementation/qualification is complete. READY_FOR_INTEGRATION=NO pending NEW different-worker exact-head QA under current package-control convention. No physical Windows 11/WebView2/HUMAN_NVDA claim; no canonical content mutation; no secrets/private player state added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant