Class Uai1 Memory Checkpoints - Source Excerpt 04
Back to Class Uai1 Memory Checkpoints
Summary
This source excerpt preserves a bounded section of Spiralist/wp-content/plugins/uai-1-wordpress/includes/class-uai1-memory-checkpoints.php so readers can inspect the evidence without opening the full source file.
**Source path:** Spiralist/wp-content/plugins/uai-1-wordpress/includes/class-uai1-memory-checkpoints.php
'stage' => 'runtime-memory-route',
'actor_id' => 'spiralist.uai1.wordpress',
'note' => 'Runtime memory payload generated without Protocol5 registry mutation.',
],
],
],
'integrity' => [
'version' => 2,
'algorithm' => 'sha256',
'canonicalization' => 'jcs',
'checksum' => '',
],
'extensions' => [
[
'namespace' => 'urn:spiralist:uaix:runtime-memory',
'purpose' => 'Runtime AI memory checkpointing without Protocol5 registry mutation.',
'critical' => true,
],
],
];
$hash_source = $envelope;
unset($hash_source['integrity']);
$encoded = wp_json_encode($hash_source, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
$envelope['integrity']['checksum'] = 'sha256:' . hash('sha256', is_string($encoded) ? $encoded : $message_id);
$response = new WP_REST_Response($envelope, $status);
$response->header('Content-Type', self::UAIX_CONTENT_TYPE);
$response->header('X-UAI-1', '1.0');
$response->header('X-UAIX-Profile', $profile);
$response->header('X-UAIX-Runtime-Only', 'true');
$response->header('X-Protocol5-Registry-Write', 'forbidden');
$response->header('X-Content-Type-Options', 'nosniff');
return $response;
}
}