Arx 0.5.5: All results with status details; handover updated
Browse filesFiles changed (6)
1 unmodified line234567852 unmodified lines6162636465666769 unmodified lines13713813914014114259 unmodified lines2022032042052062072081 unmodified lineThis file tells the story of Arx from the first line of code to today: what was built, which problems came up, how eachwas solved, and how to carry on. Give it to a new Claude session (or a new developer) first.Last updated: **2026-10-14** (app 0.5.4, catalog 0.4).---52 unmodified lines|---|---|| **Website** | Computers only. Detects the OS and shows **one install command** with Copy; lists all 70 checks; shows a report from the app ("Open report with fixes") or an opened `…-evidence.json`. Hero label "Arx - Fine-tuned AI Model". || **Install** | `curl -fsSL https://devseis-arx.static.hf.space/install.sh \| bash` (macOS, Linux) · `irm https://devseis-arx.static.hf.space/install.ps1 \| iex` (Windows). Checks SHA-256 against `SHA256SUMS`; no "Open Anyway", no SmartScreen. || **App** | **0.5.4**. macOS: tested on a real Intel Mac. Linux: tested in Ubuntu containers (app headless + fixes). Windows: **built, never run on a real PC**. || **Fix problems** | Mac: 9 one-click fixes + Settings pages. Linux: 8 one-click fixes. Windows: not built. || **AI** | `app/model-version.json`: `version` **v0.3** (full-precision `q0f16`, chips with 16-bit maths), `version_4bit` **v0.6** (4-bit builds). Both 24/24 on the catalog-0.4 checks without retraining. || **Vulnerability data** | Built **2026-10-08**; reports flag it as old after 14 days → **refresh before 2026-10-22**. |69 unmodified lines- **One-command install (user's decision):** website shows only `install.sh` / `install.ps1`. Files fetched bycurl/PowerShell are not quarantined, so **no Gatekeeper/SmartScreen block** — no notarisation needed for this path.- **App 0.5.4:** clearer "Ready to audit" screen (two rows of check groups with descriptions and counts).- **Hugging Face clean-up:** only what is used remains (model tags v0.3 + v0.6, data tags v0.3 + v0.5, latest release).## 5. Hurdles and lessons (quick reference)59 unmodified lines4. **Apple notarisation** ($99/yr Developer ID) and a **Windows code-signing certificate**, so direct file downloadsalso open without warnings.5. Expert review of `library/` wording and fix steps.6. Releases repo currently holds 0.5.3 and 0.5.4 → run `tools/hf_cleanup_old_releases.py --apply` when ready.## 9. Starting a new sessionGive Claude this file and say what you want next, for example:1 unmodified line234567852 unmodified lines6162636465666769 unmodified lines13713813914014114214314459 unmodified lines2042052062072082092101 unmodified lineThis file tells the story of Arx from the first line of code to today: what was built, which problems came up, how eachwas solved, and how to carry on. Give it to a new Claude session (or a new developer) first.Last updated: **2026-10-14** (app 0.5.5, catalog 0.4).---52 unmodified lines|---|---|| **Website** | Computers only. Detects the OS and shows **one install command** with Copy; lists all 70 checks; shows a report from the app ("Open report with fixes") or an opened `…-evidence.json`. Hero label "Arx - Fine-tuned AI Model". || **Install** | `curl -fsSL https://devseis-arx.static.hf.space/install.sh \| bash` (macOS, Linux) · `irm https://devseis-arx.static.hf.space/install.ps1 \| iex` (Windows). Checks SHA-256 against `SHA256SUMS`; no "Open Anyway", no SmartScreen. || **App** | **0.5.5**. macOS: tested on a real Intel Mac. Linux: tested in Ubuntu containers (app headless + fixes). Windows: **built, never run on a real PC**. || **Fix problems** | Mac: 9 one-click fixes + Settings pages. Linux: 8 one-click fixes. Windows: not built. || **AI** | `app/model-version.json`: `version` **v0.3** (full-precision `q0f16`, chips with 16-bit maths), `version_4bit` **v0.6** (4-bit builds). Both 24/24 on the catalog-0.4 checks without retraining. || **Vulnerability data** | Built **2026-10-08**; reports flag it as old after 14 days → **refresh before 2026-10-22**. |69 unmodified lines- **One-command install (user's decision):** website shows only `install.sh` / `install.ps1`. Files fetched bycurl/PowerShell are not quarantined, so **no Gatekeeper/SmartScreen block** — no notarisation needed for this path.- **App 0.5.4:** clearer "Ready to audit" screen (two rows of check groups with descriptions and counts).- **App 0.5.5:** **All results** after the audit: every check with its status and filters; a click shows why (found vsrequired, finding, why it matters, risk, how to fix, how to check, references, detected or self-reported).- **Hugging Face clean-up:** only what is used remains (model tags v0.3 + v0.6, data tags v0.3 + v0.5, latest release).## 5. Hurdles and lessons (quick reference)59 unmodified lines4. **Apple notarisation** ($99/yr Developer ID) and a **Windows code-signing certificate**, so direct file downloadsalso open without warnings.5. Expert review of `library/` wording and fix steps.6. Releases repo currently holds 0.5.3, 0.5.4 and 0.5.5 → run `tools/hf_cleanup_old_releases.py --apply` when ready.## 9. Starting a new sessionGive Claude this file and say what you want next, for example:
1234567{"name": "devseis-endpoint-auditor","productName": "Arx","version": "0.5.4","description": "Read-only endpoint audit for ISO 27001, GDPR and the EU AI Act, with a local AI auditor.","author": {"name": "Devseis",1234567{"name": "devseis-endpoint-auditor","productName": "Arx","version": "0.5.5","description": "Read-only endpoint audit for ISO 27001, GDPR and the EU AI Act, with a local AI auditor.","author": {"name": "Devseis",
152 unmodified lines15315415515615715815916016116216317 unmodified lines18118218318418518663 unmodified lines2502512522532542552563 unmodified lines260261262263264265266267268152 unmodified lines$('progress-count').textContent = `0 / ${steps}`;setBar('progress-bar', 0);const findings = {};for (const r of targets) {$('progress-current').textContent = `Writing: ${r.name}`;const { answer, source } = await writeAnswer('finding', findingPrompt(evidence, r, lib), findingTemplate(evidence, r, lib), generate);findings[r.id] = answer;sources[source] += 1;tick(`Written: ${r.name}`);}17 unmodified lineslastReport = { html, evidenceText: result.evidenceText, hostname: evidence.host.hostname };lastEvidence = evidence;showResults(evidence, summary, sources);await renderFixes(evidence, result.fixResults);openSaveModal();}63 unmodified lines// 5. Results and savingfunction showResults(evidence, summary, sources) {const pills = Object.entries(evidence.summary).map(([k, v]) => `<span class="pill s-${k}">${v} ${k}</span>`).join('');const gaps = summary.top_gaps.map(g => `<li><b class="s-Non-Compliant">${g.risk}</b> — ${escapeHtml(g.name)}: ${escapeHtml(g.found)}</li>`).join('');$('result-summary').innerHTML = `<div class="row"><div><div class="score">${summary.score.percent}%</div>3 unmodified lines${gaps ? `<b>Top gaps</b><ul class="gaps">${gaps}</ul>` : ''}<p class="muted">Findings: ${sources.model} written by the AI auditor, ${sources.template} by the built-in writer.</p>`;$('saved-note').textContent = '';show('done');}function escapeHtml(value) { const d = document.createElement('div'); d.textContent = String(value ?? ''); return d.innerHTML; }function openSaveModal() {152 unmodified lines15315415515615715815916016116216316417 unmodified lines18218318418518618718863 unmodified lines2522532542552562572583 unmodified lines262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333152 unmodified lines$('progress-count').textContent = `0 / ${steps}`;setBar('progress-bar', 0);const findings = {}, findingSource = {};for (const r of targets) {$('progress-current').textContent = `Writing: ${r.name}`;const { answer, source } = await writeAnswer('finding', findingPrompt(evidence, r, lib), findingTemplate(evidence, r, lib), generate);findings[r.id] = answer;findingSource[r.id] = source;sources[source] += 1;tick(`Written: ${r.name}`);}17 unmodified lineslastReport = { html, evidenceText: result.evidenceText, hostname: evidence.host.hostname };lastEvidence = evidence;showResults(evidence, summary, sources);renderAllResults(evidence, findings, findingSource);await renderFixes(evidence, result.fixResults);openSaveModal();}63 unmodified lines// 5. Results and savingfunction showResults(evidence, summary, sources) {const pills = Object.entries(evidence.summary).map(([k, v]) => `<button type="button" class="pill s-${k}" data-filter="${k}" title="Show these checks">${v} ${STATUS_LABEL[k] || k}</button>`).join('');const gaps = summary.top_gaps.map(g => `<li><b class="s-Non-Compliant">${g.risk}</b> — ${escapeHtml(g.name)}: ${escapeHtml(g.found)}</li>`).join('');$('result-summary').innerHTML = `<div class="row"><div><div class="score">${summary.score.percent}%</div>3 unmodified lines${gaps ? `<b>Top gaps</b><ul class="gaps">${gaps}</ul>` : ''}<p class="muted">Findings: ${sources.model} written by the AI auditor, ${sources.template} by the built-in writer.</p>`;$('saved-note').textContent = '';$('result-summary').querySelectorAll('[data-filter]').forEach(b => b.addEventListener('click', () => {setResultFilter(b.dataset.filter);$('all-results').scrollIntoView({ behavior: 'smooth', block: 'start' });}));show('done');}// 7. All results: every check with its status, and on click the reasons behind it.const STATUS_LABEL = { Compliant: 'Compliant', 'Non-Compliant': 'Non-Compliant', Pending: 'Pending', Error: 'Error', NotApplicable: 'Not applicable' };const STATUS_ORDER = ['Non-Compliant', 'Error', 'Pending', 'Compliant', 'NotApplicable'];const RISK_RANK = { High: 0, Medium: 1, Low: 2 };let resultFilter = 'all';function whyText(r) {const found = r.actual || 'nothing reported', need = r.expected || 'the baseline value';if (r.status === 'Compliant') return 'What the audit found meets the requirement, so this check passes.';if (r.status === 'Non-Compliant') return 'What the audit found does not meet the requirement, so this check fails.';if (r.status === 'Pending') return `Not decided yet: ${r.detail || 'it needs a decision or an answer from you or your organisation'}. Current state: ${found}.`;if (r.status === 'Error') return `This setting could not be read${r.detail ? `: ${r.detail}` : ''}. Running the audit with administrator rights usually fixes this.`;return `This check does not apply here: ${r.detail || found}.`;}function resultDetails(evidence, r, finding, source) {let f = finding;if (!f) { try { f = findingTemplate(evidence, r, lib); } catch { f = null; } }const guide = lib.guide(r.id) || {};const fix = (fixes[r.id] || {})[plan.os];const parts = [`<div class="rd-block"><h4>Why it is ${escapeHtml((STATUS_LABEL[r.status] || r.status).toLowerCase())}</h4><p>${escapeHtml(whyText(r))}</p><div class="rd-kv"><span>Found</span><b>${escapeHtml(r.actual || '—')}</b><span>Required</span><b>${escapeHtml(r.expected || '—')}</b>${r.detail && r.status !== 'Error' && r.status !== 'NotApplicable' && r.status !== 'Pending' ? `<span>Note</span><b>${escapeHtml(r.detail)}</b>` : ''}</div></div>`];if (f && f.finding && r.status !== 'Compliant') parts.push(`<div class="rd-block"><h4>Finding${source === 'model' ? ' <span class="rd-tag">written by the AI auditor</span>' : ''}</h4><p>${escapeHtml(f.finding)}</p></div>`);if (guide.why && !(f && f.finding && r.status !== 'Compliant' && f.finding.includes(guide.why))) parts.push(`<div class="rd-block"><h4>Why it matters</h4><p>${escapeHtml(guide.why)}</p></div>`);if (f && f.risk && f.risk.level && !['None', 'Unknown'].includes(f.risk.level)) parts.push(`<div class="rd-block"><h4>Risk</h4><p><b class="risk risk-${escapeHtml(f.risk.level)}">${escapeHtml(f.risk.level)}</b> ${escapeHtml(f.risk.reason || '')}</p></div>`);if (f && f.recommendation && f.recommendation.length && r.status !== 'Compliant')parts.push(`<div class="rd-block"><h4>How to fix</h4><ol>${f.recommendation.map(x => `<li>${escapeHtml(x)}</li>`).join('')}</ol>${fix && r.status === 'Non-Compliant' ? `<p class="rd-fixnote">🛠 Arx can help: <b>${escapeHtml(fix.title)}</b> in <i>Fix problems</i> above.</p>` : ''}</div>`);if (f && f.verification && r.status !== 'Compliant') parts.push(`<div class="rd-block"><h4>Check it worked</h4><p>${escapeHtml(f.verification)}</p></div>`);const refs = (f && f.references && f.references.length) ? f.references : lib.references(r.id).map(([label]) => label);if (refs.length) parts.push(`<div class="rd-refs">${refs.map(x => `<span class="ref">${escapeHtml(x)}</span>`).join('')}</div>`);parts.push(`<p class="muted rd-evidence">${r.evidence === 'self-reported' ? 'Self-reported by the user, not verified on this computer.' : 'Read from this computer by the audit.'} Check id: <code>${escapeHtml(r.id)}</code></p>`);return parts.join('');}function setResultFilter(filter) {resultFilter = filter;$('all-results').querySelectorAll('[data-rf]').forEach(b => b.setAttribute('aria-pressed', String(b.dataset.rf === filter)));$('all-results').querySelectorAll('.res').forEach(d => d.classList.toggle('hidden', filter !== 'all' && d.dataset.status !== filter));}function renderAllResults(evidence, findings, findingSource) {const risk = r => RISK_RANK[(lib.guide(r.id) || {}).risk?.level] ?? 3;const order = new Map(evidence.results.map((r, i) => [r.id, i]));const rows = [...evidence.results].sort((a, b) => (STATUS_ORDER.indexOf(a.status) - STATUS_ORDER.indexOf(b.status)) || (risk(a) - risk(b)) || (order.get(a.id) - order.get(b.id)));const counts = Object.fromEntries(STATUS_ORDER.map(s => [s, rows.filter(r => r.status === s).length]));$('all-results').innerHTML = `<h2>All results</h2><p class="muted">Every check of this audit. Click a check to see why it has this status and what to do.</p><div class="rf-tabs"><button type="button" data-rf="all">All <span>${rows.length}</span></button>${STATUS_ORDER.filter(s => counts[s]).map(s => `<button type="button" class="rf-${s}" data-rf="${s}">${STATUS_LABEL[s]} <span>${counts[s]}</span></button>`).join('')}</div><div class="res-list">${rows.map(r => `<details class="res res-${r.status}" data-status="${r.status}" data-id="${escapeHtml(r.id)}"><summary><span class="res-badge">${escapeHtml(STATUS_LABEL[r.status] || r.status)}</span><span class="res-name">${escapeHtml(r.name)}</span><span class="res-found">${escapeHtml(r.actual || '')}</span></summary><div class="res-body"></div></details>`).join('')}</div>`;// Details are built when a check is opened (fast with 60+ checks).$('all-results').querySelectorAll('details.res').forEach(d => d.addEventListener('toggle', () => {const body = d.querySelector('.res-body');if (d.open && !body.innerHTML) { const r = evidence.results.find(x => x.id === d.dataset.id); body.innerHTML = resultDetails(evidence, r, findings[r.id], findingSource[r.id]); }}));$('all-results').querySelectorAll('[data-rf]').forEach(b => b.addEventListener('click', () => setResultFilter(b.dataset.rf)));setResultFilter('all');$('all-results').classList.remove('hidden');}function escapeHtml(value) { const d = document.createElement('div'); d.textContent = String(value ?? ''); return d.innerHTML; }function openSaveModal() {
53 unmodified lines54555657585953 unmodified lines<div class="card fix-banner hidden" id="fix-banner"></div><div class="card" id="result-summary"></div><div class="card fixes hidden" id="fixes"></div><div class="actions"><button class="secondary" id="again">Run another audit</button><button class="primary" id="save-again">Save report as PDF</button>53 unmodified lines5455565758596053 unmodified lines<div class="card fix-banner hidden" id="fix-banner"></div><div class="card" id="result-summary"></div><div class="card fixes hidden" id="fixes"></div><div class="card results-all hidden" id="all-results"></div><div class="actions"><button class="secondary" id="again">Run another audit</button><button class="primary" id="save-again">Save report as PDF</button>
79 unmodified lines80818279 unmodified lines.section-baseline ul, .section-gdpr ul { columns: 2; column-gap: 18px; max-height: 300px; }.section-baseline li, .section-gdpr li { break-inside: avoid; font-size: 12.5px; }@media (max-width: 900px) { .section-baseline ul, .section-gdpr ul { columns: 1; } }79 unmodified lines808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312479 unmodified lines.section-baseline ul, .section-gdpr ul { columns: 2; column-gap: 18px; max-height: 300px; }.section-baseline li, .section-gdpr li { break-inside: avoid; font-size: 12.5px; }@media (max-width: 900px) { .section-baseline ul, .section-gdpr ul { columns: 1; } }/* All results */button.pill { cursor: pointer; background: var(--card); font-family: inherit; }button.pill:hover { border-color: currentColor; }.s-Pending { color: var(--pending); } .s-Error { color: var(--err); }.results-all h2 { margin: 0 0 2px; font-size: 18px; }.rf-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }.rf-tabs button { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 4px 12px; font: 600 13px system-ui, -apple-system, sans-serif; cursor: pointer; }.rf-tabs button span { opacity: .7; margin-left: 2px; }.rf-tabs button[aria-pressed="true"] { background: var(--text); color: var(--card); border-color: var(--text); }.res-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }.res { border-bottom: 1px solid var(--line); }.res:last-child { border-bottom: 0; }.res > summary { display: grid; grid-template-columns: 118px 1fr minmax(0, 42%); gap: 10px; align-items: center; padding: 9px 12px; cursor: pointer; list-style: none; font-size: 14px; }.res > summary::-webkit-details-marker { display: none; }.res > summary:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }.res[open] > summary { background: color-mix(in srgb, var(--text) 5%, transparent); }.res-badge { justify-self: start; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }.res-Compliant .res-badge { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }.res-Non-Compliant .res-badge { color: var(--bad); background: color-mix(in srgb, var(--bad) 13%, transparent); }.res-Pending .res-badge { color: var(--pending); background: color-mix(in srgb, var(--pending) 14%, transparent); }.res-Error .res-badge { color: var(--err); background: color-mix(in srgb, var(--err) 13%, transparent); }.res-NotApplicable .res-badge { color: var(--na); background: color-mix(in srgb, var(--na) 14%, transparent); }.res-name { font-weight: 600; }.res-found { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }.res-body { padding: 4px 14px 14px 140px; font-size: 13.5px; }.rd-block { margin-top: 10px; }.rd-block h4 { margin: 0 0 3px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }.rd-block p { margin: 0; }.rd-block ol { margin: 0; padding-left: 18px; }.rd-kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin-top: 8px; font-size: 13px; }.rd-kv span { color: var(--muted); }.rd-tag { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--blue); margin-left: 4px; }.risk { font-size: 12px; padding: 1px 8px; border-radius: 999px; margin-right: 4px; }.risk-High { color: var(--bad); background: color-mix(in srgb, var(--bad) 13%, transparent); }.risk-Medium { color: var(--pending); background: color-mix(in srgb, var(--pending) 14%, transparent); }.risk-Low { color: var(--blue); background: color-mix(in srgb, var(--blue) 13%, transparent); }.rd-fixnote { margin-top: 6px !important; color: var(--ok); font-size: 13px; }.rd-refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }.ref { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }.rd-evidence { margin-top: 10px !important; font-size: 12px; }@media (max-width: 760px) { .res > summary { grid-template-columns: 1fr; gap: 4px; } .res-found { text-align: left; } .res-body { padding-left: 14px; } }
59 unmodified lines6061626364656632 unmodified lines9910010110210310410559 unmodified lines<label class="btn" for="reportFile" title="Open the …-evidence.json file Arx saves next to each report">Open a report</label><input type="file" id="reportFile" accept=".json,application/json" hidden></div><p class="tiny muted" id="heroMeta">Free · open source · version 0.5.4</p></section><section class="wrap">32 unmodified lines</section><section class="wrap section" id="install"><div class="section-head"><h2>Install Arx</h2><span class="tiny muted" id="dlVersion">Version 0.5.4</span></div><p class="muted install-why">One command installs Arx and opens it. It downloads Arx from Hugging Face, <b>checks its SHA-256 fingerprint</b> against the published one, and refuses to install if anything differs. Because Terminal downloads it, your computer does not block it: no "Open Anyway", no security warning.</p><div class="dl-grid"><article class="dl-card" data-os="mac">59 unmodified lines6061626364656632 unmodified lines9910010110210310410559 unmodified lines<label class="btn" for="reportFile" title="Open the …-evidence.json file Arx saves next to each report">Open a report</label><input type="file" id="reportFile" accept=".json,application/json" hidden></div><p class="tiny muted" id="heroMeta">Free · open source · version 0.5.5</p></section><section class="wrap">32 unmodified lines</section><section class="wrap section" id="install"><div class="section-head"><h2>Install Arx</h2><span class="tiny muted" id="dlVersion">Version 0.5.5</span></div><p class="muted install-why">One command installs Arx and opens it. It downloads Arx from Hugging Face, <b>checks its SHA-256 fingerprint</b> against the published one, and refuses to install if anything differs. Because Terminal downloads it, your computer does not block it: no "Open Anyway", no security warning.</p><div class="dl-grid"><article class="dl-card" data-os="mac">
HANDOVER.md+5-3
app/package.json+1-1
app/renderer/app.js+67-2
app/renderer/index.html+1
app/renderer/styles.css+42
index.html+2-2