control-plane: the console viewer measured in a real Chromium (phone and desktop); a phone now gets the page at its own width, and pasted output no longer shows a finality step the console never checks
This commit is contained in:
1 parent
b5e1628265
commit
7812e44e98
6 files changed
+162
-10
No files matched your search
@@ -8,5 +8,9 @@ verification layer, and a sidecar bundle pasted directly is shown as `UNCHECKED`
|
||||
The data shown on opening is an example generated by the tools (host `aws-eu-prod-1`, three entries). Paste your own output to
|
||||
render it. The page loads the IBM Plex fonts from Google Fonts; everything else is in the file.
|
||||
|
||||
Checked on 2026-09-29 by running its script in a minimal DOM (no browser): the example, a real console state (OK), a real broken
|
||||
state (BROKEN) and a raw bundle (UNCHECKED) render without error. The layout was not measured in a real browser in that pass.
|
||||
Checked on 2026-09-30 in a real Chromium (`../proba-consola-web.mjs`), on a phone (390 px, touch, media queries applied) and on a
|
||||
desktop (1440 px), with the network cut: the page is exactly as wide as the screen, nothing scrolls sideways, and the example, a
|
||||
real console state (OK), a real broken state (BROKEN), a raw bundle (UNCHECKED) and invalid JSON render as they should, with no
|
||||
script error. That pass found two defects of the first version, fixed: without a viewport tag a phone laid the page out 980 px
|
||||
wide, and every pasted state was shown with the finality step "not notarized" marked as current, which the console never
|
||||
checks. Now no step is marked for pasted output, and the finality tile says it is not checked here.
|
||||
@@ -1,3 +1,8 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>AERE Verification Console</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
@@ -118,6 +123,8 @@ button.ghost{border:1px solid var(--line2);background:transparent;color:var(--mu
|
||||
.foot code{font-family:var(--mono);color:var(--mut)}
|
||||
.warnbox{margin-top:12px;border:1px solid color-mix(in srgb,var(--crit) 45%,transparent);background:color-mix(in srgb,var(--crit) 10%,transparent);color:var(--crit);border-radius:10px;padding:11px 13px;font-size:12.5px}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header>
|
||||
<div class="hbar">
|
||||
@@ -181,7 +188,7 @@ button.ghost{border:1px solid var(--line2);background:transparent;color:var(--mu
|
||||
</section>
|
||||
|
||||
<div class="foot">
|
||||
A rendering of the output of the AUTHORITATIVE tools (<code>consola.mjs</code> and the sidecar). The verdict and the integrity of the chain and of the envelopes are computed by the tools, not in the browser: this page shows them as they are. The audit chain is an append-only hash chain where every entry covers <code>sha256(seq | prev | envelope)</code>; its head can be given post-quantum finality by notarizing it on AereNotary (Aere Network). The envelopes follow the AERE Proof Protocol (AIP-23). The data shown on opening is an example deployment generated by the tools; the finality step shown is the one of that example (a head that can be notarized and is not yet).
|
||||
A rendering of the output of the AUTHORITATIVE tools (<code>consola.mjs</code> and the sidecar). The verdict and the integrity of the chain and of the envelopes are computed by the tools, not in the browser: this page shows them as they are. The audit chain is an append-only hash chain where every entry covers <code>sha256(seq | prev | envelope)</code>; its head can be given post-quantum finality by notarizing it on AereNotary (Aere Network). The envelopes follow the AERE Proof Protocol (AIP-23). The data shown on opening is an example deployment generated by the tools; the finality step marked is the one of that example (a head that can be notarized and is not yet). For output you paste, the console does not check finality, so no step is marked.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -237,7 +244,9 @@ function copyBtn(text){
|
||||
return b;
|
||||
}
|
||||
|
||||
function render(d){
|
||||
// `exemplu`: numai exemplul are o treapta de finalitate cunoscuta (capul lui nu e notarizat); pentru o iesire lipita consola nu masoara
|
||||
// finalitatea, deci nu se marcheaza nicio treapta si caseta spune ca nu e verificata aici (2026-09-30, B-24)
|
||||
function render(d, exemplu=false){
|
||||
d=normalize(d);
|
||||
const ok = d.verdict==="OK";
|
||||
document.getElementById("host").textContent=d.host||"?";
|
||||
@@ -252,7 +261,8 @@ function render(d){
|
||||
{k:"AIP-23 envelopes",pin:bad?"crit":"ok",v:(pl.intact??0)+"/"+(pl.total??0),n:bad?"intact · bad: "+pl.bad.map(x=>x.seq).join(","):"intact",s:bad?"s-crit":"s-ok"},
|
||||
{k:"PQ migration",pin:mg?(mg.critical?"crit":"acc"):"acc",v:mg&&mg.total!=null?String(mg.total):"—",n:mg?(mg.total==null?(mg.error||"plan not readable"):(mg.critical+" critical · "+mg.auto+" automatic")):"no plan attached",s:mg&&mg.critical?"s-crit":"s-acc"},
|
||||
ex?{k:"Execution",pin:ex.chainOk?(ex.failed?"crit":"ok"):"crit",v:ex.chainOk?"INTACT":"BROKEN",n:ex.actions+" actions · "+ex.ok+" OK · "+ex.failed+" failed",s:ex.chainOk&&!ex.failed?"s-ok":"s-crit"}
|
||||
:{k:"Finality",pin:"warn",v:"ready",n:"the head can be notarized (not notarized)",s:"s-warn"},
|
||||
:(exemplu?{k:"Finality",pin:"warn",v:"ready",n:"example: the head can be notarized (not notarized)",s:"s-warn"}
|
||||
:{k:"Finality",pin:"warn",v:"not checked",n:"the console does not check finality: notarize the head, then check it with the AIP-23 verifier",s:"s-warn"}),
|
||||
];
|
||||
const T=document.getElementById("tiles");T.innerHTML="";
|
||||
for(const t of tiles){
|
||||
@@ -302,7 +312,7 @@ function render(d){
|
||||
["3","anchor without certificate","in a block, under an anchor without a complete post-quantum certificate"],
|
||||
["4","post-quantum","under an anchor with a Falcon / SLH-DSA certificate"],
|
||||
];
|
||||
const cur = 1;
|
||||
const cur = exemplu ? 1 : 0;
|
||||
const L=document.getElementById("ladder");L.innerHTML="";
|
||||
steps.forEach((s,i)=>{
|
||||
const st=el("div","step"+(i+1===cur?" cur":""));
|
||||
@@ -334,8 +344,10 @@ document.getElementById("render").addEventListener("click",()=>{
|
||||
});
|
||||
document.getElementById("reset").addEventListener("click",()=>{
|
||||
document.getElementById("in").value=JSON.stringify(SAMPLE,null,1);
|
||||
document.getElementById("perr").hidden=true; render(SAMPLE);
|
||||
document.getElementById("perr").hidden=true; render(SAMPLE, true);
|
||||
});
|
||||
|
||||
render(SAMPLE);
|
||||
render(SAMPLE, true);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user