Reasoning systems · Electrocardiography · 2026

Vector EKG and ReasonOS

I built an educational ECG prototype that records observations, measurements, calculations, alternative explanations, and revisions. ReasonOS stores the history; Vector EKG supplies ECG rules.

REASONOS / LIVE MODEL TRACE OPEN
SOURCE / SYNTHETIC LEAD II25 mm/s
68 ms learner-selected endpoints
01 / OBSERVER–R intervals appear regularlearner-derived
02 / MEASUREQRS interval · 68 msapplication-calculated
03 / CHALLENGESinus origin establishedrejected · evidence absent
Accepted states 02Rejected attempts 01Replay deterministic
Status
Tested educational prototype
Role
Independent designer and developer
Clinical use
None
Core record
Append-only reasoning trace

01 / The problem

An ECG exercise that stores only the final answer leaves the measurements and intermediate claims unavailable for review.

CONVENTIONAL EXERCISEFinal interpretation
✓

A final answer alone omits intermediate steps.

REASONOSInspectable state change

Preserves evidence, operations, failed attempts, and revision.

This prototype records selected regions, measurements, and attempted inferences so a reviewer can inspect where a claim came from. Whether that record improves teaching or assessment remains untested.

02 / Runtime model

Implementation: accepted and rejected state changes

Every attempted change names its inputs, actor, evidence, provenance, and governing rules. History remains intact whether the attempt succeeds or fails.

INPUTState NObserved evidence
ATTEMPTTransformationActor + provenance
EVALUATEConstraintsPure predicates
ADMITState N+1New immutable state
REJECTNo new stateAttempt remains visible
TRACEAccepted and rejected events retained.
Both outcomes enter the trace. Only an admitted transformation adds a state.

03 / Kernel

The six kernel objects

The kernel knows how reasoning is recorded. It does not know what a P wave, lead, interval, or diagnosis means.

KERNELDomain-independentIndependent of ECG vocabulary
01

State

What currently exists

02

Transformation

An attempted change

03

Constraint

A rule that admits or rejects

04

Trace

The append-only record

05

Provenance

Source, method, and lineage

06

Actor

Who or what made the change

04 / Separation of concerns

ECG rules in a separate plugin

The kernel and ECG plugin have separate responsibilities. Histology and radiology plugins remain possible extensions.

REASONOS KERNEL / 3.0.0

Structure

  • Immutable states
  • Attempted transformations
  • Constraint results
  • Replayable traces
  • Actor and provenance
typed plugin contractversioned · deterministic

VECTOR EKG / 0.5.0

Medical meaning

  • Leads and coordinates
  • Calibration
  • Intervals and axis
  • Candidate pathways
  • ECG constraints
The kernel evaluates structural validity. The plugin owns ECG vocabulary and domain rules.

05 / Measurement provenance

Recording the source and calculation method

The interface keeps the source, the witness, and the calculation separate. A cursor selection is never relabeled as gaze. A machine output never becomes a learner observation.

ValueWitnessMethodStatus
Two selected pointsLearner-derivedExplicit cursor selectionObserved input
68 msApplication-calculatedΔx × calibrated scaleDerived value
Sinus originLearner claimRequired evidence absentRejected

06 / Synthetic reasoning trace

Example: rejecting an unsupported sinus-origin claim

STATE 01 · OBSERVEDR–R intervals appear regular

Direct visual observation from one synthetic lead.

STATE 02 · INFERREDRegular narrow-complex rhythm

Provisional synthesis of admitted evidence.

ATTEMPT 03 · REJECTEDSinus origin established

P-wave relation has not been demonstrated.

STATE 03 · REVISEDOrigin remains unresolved

The new state retains lineage to the earlier claim.

Synthetic educational example. It is not a patient interpretation or validated diagnostic workflow.

07 / Evidence states

Evidence-state labels

These labels describe the status of evidence in a trace. They are not diagnostic confidence scores.

01

Observed

Directly marked or measured from the source.

02

Inferred

Derived from admitted observations under an explicit rule.

03

Contradicted

Conflicts with another admitted finding.

04

Unresolved

Available evidence remains insufficient or discordant.

05

Excluded

A candidate explanation fails a required criterion.

06

Confirmed

A defined review process supports the claim. Not used diagnostically here.

08 / Grounded source case

Paired ECG recordings and device-reported values

The paired record creates a concrete comparison problem: determine whether small differences arise from acquisition, measurement boundaries, scan geometry, or defensible signal variation.

CASE ASP-001Paired 12-lead source recording

Self-contributed · de-identified derivative · waveform pixels preserved

RECORDING A12 leads + long lead II
De-identified first 12-lead ECG source recording with a long lead II rhythm strip
RECORDING B12 leads + long lead II
De-identified second 12-lead ECG source recording with a long lead II rhythm strip
RecordingRatePRQRSQT / QTcP / QRS / T axes
A82 bpm149 ms83 ms357 / 396 ms−3° / 39° / 53°
B81 bpm155 ms80 ms357 / 394 ms12° / 40° / 55°
MACHINE-DERIVED · UNCONFIRMED

The values above are transcribed from the device report. They are comparison inputs, not adjudicated measurements or diagnostic truth.

09 / Executable vertical slice

Interactive synthetic ECG example

The paired case above supplies real source complexity. The calibrated synthetic waveform below isolates the reasoning mechanics so its measurements remain reproducible.

Synthetic source · Lead II

Measurement workspace

Not for diagnosis

This generated waveform contains no patient information. Select two points to create a cursor-derived measurement.

Frontal axis

34° · normal

Corrected QT

Bazett 420 ms · Fridericia 406 ms

Candidate path

Morphology-led sinus assessment64% structural matchcandidate; 0 expert traces. This is not validated consensus.

Append-only record

Reasoning trace

Replay reproduces accepted state
No transformations recorded.

Begin with “Record inspection.” Every accepted and rejected attempt will appear here.

10 / Engineering record

Inputs, outputs, constraints, and failure modes

The portfolio example has kernel and ECG calculation tests. Archived v0.5.0 release records report 15 kernel, 8 plugin, and 27 application tests passing on August 2, 2026; that record is separate from this smaller example.

ACCEPTS

Inputs

  • De-identified and synthetic ECG sources
  • Manual calibration metadata
  • Learner observations and measurements
  • Versioned candidate paths
EMITS

Outputs

  • Immutable accepted states
  • Accepted and rejected events
  • Interval, axis, and QTc calculations
  • Candidate-path structural comparison
ENFORCES

Invariants

  • Referenced inputs exist
  • Writes remain append-only
  • Actor and provenance are present
  • Causal ancestry remains acyclic
  • Witness identity is preserved
CAN FAIL

Known failure modes

  • Incorrect manual calibration
  • Poor source quality
  • Incompatible paths combined
  • Candidate models mistaken for consensus
  • Single-lead evidence overinterpreted

11 / What remains unproven

Limitations and clinical-use boundary

Vector EKG is educational research software. It has no clinical validation, regulatory clearance, expert-trace reliability study, demonstrated learning benefit, or authorization for patient care.

Clinical use would require a defined intended use, expert-reviewed ontology, representative datasets, human-factors testing, prospective validation, security and privacy controls, regulatory analysis, and independent clinical governance.

See the documented research record →