Research Labs

2026-09-17 20:37 UTCopen field data · live

pages/vault.php

Snapshot 2026.09.17-a2894de (current) · 17 lines · 1,822 bytes · tree · plain text

SHA-256 11632036744755183c5666d3613f7e3eb300079483605793dc4c44960779cb4a
1<?php
2require_once __DIR__.'/../inc/layout.php';
3page_header('Raw Vault','vault');
4echo '<h1>Raw vault</h1><p class="lede">Every raw pull, checksummed on arrival. Any published chart traces to rows in the readings store, which trace to these files. This is the provenance chain, demonstrated.</p>';
5$q=db()->query("SELECT f.*, s.label FROM files_raw f LEFT JOIN streams s ON s.id=f.stream_id ORDER BY f.pulled_at DESC LIMIT 200");
6echo '<table class="data"><tr><th>Pulled</th><th>Stream</th><th>File</th><th>SHA-256</th><th>Bytes</th><th>Tag</th></tr>';
7foreach($q as $f){
8 echo '<tr><td>'.h($f['pulled_at']).'</td><td>'.h($f['label']??'·').'</td><td>'.h($f['path']).'</td><td style="font-family:monospace;font-size:10px">'.h(substr($f['sha256'],0,16)).'…</td><td>'.h((string)$f['bytes']).'</td><td>'.($f['is_placeholder']?'<span class="badge badge-ph">PLACEHOLDER DATA</span>':'<span class="badge badge-live">LIVE DATA</span>').'</td></tr>';
9}
10echo '</table>';
11if(function_exists('code_version')&&code_version()!==''){
12 $cj=@file_get_contents(__DIR__.'/../inc/snapshots/current.json'); $cd=$cj?json_decode($cj,true):[];
13 echo '<h2>Code manifest</h2><p class="note">The code that produced these rows is verified the same way: platform code <span class="mono">'.h(code_version()).'</span>, manifest SHA-256 <span class="mono">'.h((string)($cd['manifest_sha256']??'')).'</span> · <a href="index.php?p=code&amp;v='.h(code_version()).'&amp;manifest=1">code-manifest.json</a> · <a href="index.php?p=code&amp;v='.h(code_version()).'">Code tab</a>.</p>';
14}
15echo '<h2>Chain, worked example</h2><p class="note">Chart point → readings row (stream, timestamp, value) → raw file path + SHA-256 above → the file itself in cold storage. Request raw archives under the open licence via the About page.</p>';
16page_footer();
17

Lines can be cited as pages/vault.php L120-L140, platform code 2026.09.17-a2894de; add #L120-L140 to this page's address to highlight them. Source shown for scrutiny of the research platform. All rights reserved. Not offered as installable software.