reprochain-ai / ARCHITECTURE.md
Hugdrigo's picture
Upload 35 files
c04328a verified
|
Raw History Blame Contribute Delete
2.07 kB

Technical architecture

Static browser interface

  • index.html: accessible structure and navigation.
  • styles.css: responsive layout and mobile controls.
  • app.js: local in-browser state machine, event handlers, exports, evidence load, and WebCrypto SHA-256 hashing.
  • evalflow_engine.js: imported deterministic evaluation logic from EvalFlow CI Lab.
  • reprochain_engine.js: new DAG validation, recursive lineage traversal, provenance inventory, gate combination, local run record serialization, CSV and GraphML exports.

All data files are fetched from this same Static Space only. Source documents are not uploaded to a third party and no remote model is called. Browser run history is in-memory and disappears on page reload unless exported.

Evidence chain

  • 842 training + 130 IID test + 54 challenge fixed labeled examples.
  • Four research classifiers and six documented perturbation conditions.
  • robustness_snapshots.json holds fixed prediction evidence.
  • Nine research gates reproduce the EvalFlow standard.
  • manifest.json describes the documented DAG and expected SHA-256 values of core evidence and app entry points. The manifest itself is deliberately excluded from self-hashing, avoiding an impossible recursive digest.

Command-line tools

  • verify_bundle.js checks byte-level digests, DAG shape, and inventory root.
  • run_reprochain.js validates those digests before replaying the model-quality gate; writes a JSON run record and CSV/Markdown audit artifacts.
  • test_engine.js verifies deterministic analysis, security checks, DAG integrity and provenance.
  • test_browser.py exercises browser controls using a test-only SHA-256 bridge when the browser runner cannot navigate to localhost.

Trust boundary

A SHA-256 hash proves consistency with the co-hosted manifest, not that a file was authored by a particular individual, originated from a given model training run, or was endorsed by an external auditor. A signed manifest or external attestation service would be needed for stronger guarantees.