Paper explained · executable knowledge graphs

PULSE: a knowledge graph with an execution contract

An observation is not an accepted fact. A violation is not a state transition. A hypothetical world is not the real world. PULSE makes these distinctions executable—and fixes exactly what happens when clocks and movement collide.

Dongxu Yang & Ziyi Liang · Preprint, July 2026
Original paper · PDF · Research artifact

1. The problem, from first principles

A knowledge graph stores entities and relationships: a shipment has a position; a depot contains a safe zone; a sensor reports a location. But an operational system must also answer a different class of questions: Which report do we accept? What is allowed to change? When should a process fire? Can we simulate a reroute without altering production state?

Ordinary triples do not, by themselves, settle these execution choices. An ontology, observation graph, validation shapes, workflow engine, and simulator can each be correct locally while disagreeing at their boundaries. For example, a sensor adapter might overwrite the accepted location before a quality check, or a workflow might process a return before a timer that was already due.

The central contribution is contract localization, not new computational power. PULSE puts a selected set of roles, write permissions, bindings, and temporal ordering rules inside one typed model/runtime boundary. The paper explicitly demonstrates that composed standards and workflows can reproduce its tested behavior.

PULSE means Process-aware Unified Language for Semantic Evolution. It borrows the object–process–state perspective of Object-Process Methodology, but is neither a full OPM implementation nor an ISO 19450 profile. Its scope is a small, deliberately specified knowledge-graph execution kernel.

2. Four roles—not four competing truths

The word mode in this paper means an operational role with a particular write set. It does not mean modal logic. Likewise, “normative” means guarded constraint checking, not a general theory of obligations.

Assertion

Accepted state

The location and condition the system currently treats as authoritative.

“Batch is inside; condition = Safe.”

Observation

Recorded evidence

A source-qualified report, with time and optional quality metadata.

“GPS reports outside, confidence 0.98.”

Constraint

Read-only obligation

A predicate checked when its guard is active. It can report a violation, not repair it.

“While Safe, batch must be covered by zone Z.”

Scenario

Isolated alternative

Assumptions and processes run on a separate branch, leaving the source untouched.

“What if we move outside for 20 minutes?”

The acceptance gap is intentional

Sensor report
Record evidence; preserve accepted position.
→
External runner
Application decides whether to accept it.
→
Accepted move
Update position; derive crossings; manage timers.

PULSE does not decide that a high-confidence report is true. Its record action only appends evidence. An application may later call move_at after applying its own acceptance policy. The guarantee is pre-acceptance non-overwrite, not a complete evidence-governance system.

These four roles are requirements-derived and non-exhaustive. The point is to preserve useful boundaries, not to claim that every possible kind of knowledge fits this partition.

3. The running example: a cold-chain shipment

Consider a shipment initially inside a zone, with condition Safe. If an accepted sample shows it has left, start a ten-minute monitor. If it remains outside until the deadline, transition to AtRisk. If it returns before the deadline, cancel the monitor.

// Teaching sketch of the paper's cold-chain model
entity Shipment {
  property position: Point crs C
  state condition oneof [Safe, AtRisk]
}
constraint Containment {
  must coveredBy(batch.position, Z)
  while Shipment.condition == Safe
}
process SustainedDeparture(s: Shipment) {
  when leaves(s.position, Z) for 10 min
  changes s.condition: Safe -> AtRisk
}
scenario Reroute {
  assume batch.position == point(121.515, 31.205)
  run 20 min
  ask coveredBy(batch.position, Z)
  ask batch.condition
}

This excerpt omits model, CRS, polygon, instance, and observation declarations; it is not a complete standalone PULSE file. The paper's complete listing uses a CRS84 polygon and a timestamped GPS observation.

Three different mechanisms are at work

  1. Evidence: the outside GPS report is stored without changing the source location.
  2. Validation: an accepted outside position while Safe violates the containment constraint. Validation alone makes no transition.
  3. Process: the sustained-departure rule changes the condition after ten minutes, provided its source-state guard still holds.

There is a subtle consequence: once the condition becomes AtRisk, the “while Safe” containment constraint is inactive. A clean validation result at that point does not mean the shipment returned or became safe. It means this particular guarded obligation no longer applies.

In the paper's listing, the scenario starts at the latest observation timestamp by default, applies its assumption on a branch, advances twenty minutes, and answers false and AtRisk. The source remains unchanged. That start-time choice is one way recorded evidence can influence a later operation even though recording itself cannot mutate accepted state or the clock.

4. Time and space: the order is the semantics

PULSE uses sample-and-hold positions. Between accepted samples, the last accepted location remains in effect. It does not infer a continuous path between points.

entry = previously outside AND newly inside
exit = previously inside AND newly outside

Membership is boundary-inclusive for coveredBy. A point exactly on the polygon shell is covered. Strict “within” excludes the shell. An outside-to-outside segment that passes through the polygon produces no sampled entry or exit: both accepted endpoints are outside.

What one accepted move does

  1. Validate first: timestamp must be well formed and nondecreasing; instance must exist; point type and CRS must match. An invalid command leaves the entire world unchanged.
  2. Emit already-due timers: deadlines at or before the move time fire first, sorted by deadline and grounded declaration rank.
  3. Compare old and new membership: derive sampled crossings, then commit the position.
  4. Manage monitors: cancel inverse monitors and start eligible new ones.
  5. Apply immediate rules: follow declaration order; later rules see earlier state changes. A source-state mismatch skips a transition.
t = 0Accepted departure. Condition stays Safe; deadline is t = 10.
t = 9: returnTimer is not due. Entry cancels it. Condition remains Safe.
t = 10: returnDue timer fires first. Condition becomes AtRisk, then entry is processed.

That last case is not a race left to the host language. It is the contract. Returning at the deadline is too late to cancel the qualified event. Returning afterwards also does not automatically restore Safe: no recovery process is declared in this example.

Effective time versus emission time

If the shipment leaves at t = 0 and the next clock advance is to t = 15, the event's effective time is 10, but its emission time is 15. The runtime discovers the expired deadline at 15; it does not pretend the duration ended then.

One source process, many independent monitors

A parameterized process is grounded once per compatible instance, in declaration order. The queue is keyed by identifiers such as SustainedDeparture@batch. Two shipments can therefore have simultaneous timers without overwriting each other. Equal deadlines are resolved by process-then-instance declaration rank—not alphabetic names. Renaming a symbol should not change a trace.

Same-time accepted moves follow input order. They may produce crossings and start or cancel monitors, even though no time elapses between them.

5. Playground: evidence, acceptance, and an isolated branch

Use this tiny runtime to test the boundary cases. It models one shipment, with an x-coordinate slice through a rectangular zone: 0 ≤ x ≤ 10. The y-coordinate is fixed inside. Times are integer minutes; the departure duration is ten minutes.

Teaching simulator, not the PULSE implementation. It preserves the example's evidence/write separation, boundary membership, sample-and-hold clock, due-before-move behavior, guards, atomic input validation, and live-world branch isolation. It omits general parsing, CRS handling, arbitrary polygons, multiple subjects, and immediate-rule conflicts.

Fork copies the source's current clock, evidence, condition, and pending monitor. Then select “Scenario branch” to move or advance only the clone. Demos reset both worlds.

Source world

Scenario branch

Try these experiments

A compact prototype of the essential ordering

This sketch mirrors the simulator's key logic. A general PULSE runtime additionally validates references, types, CRS, and offset-aware timestamps, and orders many grounded rules.

function record(w, report) {
  w.evidence.push(report);          // no position or clock change
}
function advance(w, time) {
  validateTimeBeforeMutation(w, time);
  if (w.pending && w.pending.deadline <= time) {
    emit(w.pending.deadline, time); // effective time, emission time
    if (w.condition === 'Safe') w.condition = 'AtRisk';
    w.pending = null;
  }
  w.time = time;
}
function move(w, x, time) {
  validateAllBeforeMutation(w, x, time);
  advance(w, time);                // due events BEFORE crossing
  const oldInside = inside(w.x), newInside = inside(x);
  w.x = x;
  if (!oldInside && newInside) w.pending = null;
  if (oldInside && !newInside && w.condition === 'Safe')
    w.pending = {start: time, deadline: time + 10};
}
const branch = structuredClone(source); // no mutable aliases

6. What is actually checked?

The runtime configuration is written X = ⟨A, O, q, Q, t⟩: accepted values, evidence, finite object states, pending monitors, and current time. The immutable environment holds the validated types, regions, state domains, ordered rules, and grounded specifications.

OperationPermitted writesWhat must remain unchanged
Record observationOAccepted values, state, timers, clock
Accept moveA, q, Q, tEvidence
Advance clockq, Q, tAccepted position and evidence
Validate / answer questionsNoneEntire input configuration
Run scenarioBranch-local componentsEntire source configuration

This is a limited effect discipline: a successful action must leave components outside its declared write set unchanged. The paper's effect judgment is bookkeeping in the calculus, not a separately mechanized general-purpose effect system.

The six safety properties in plain language

1–3: valid and predictable

  • Preservation: successful actions keep a well-formed world well formed.
  • Determinism: fixed validated input and fixed orders give one trace or one atomic error.
  • Record confinement: recording cannot overwrite accepted values, state, timers, or clock.

4–6: bounded and isolated

  • Scenario isolation: evaluating a fresh branch leaves the source unchanged.
  • Finite advance: advancing a finite queue terminates and emits at most one sustained event per pending monitor.
  • Atomic failure: failed validation returns the original world.

The proofs rely on finite, explicitly ordered helpers, declared state targets, unique ground keys, and validation before mutation. Formalizing the rules clarifies why they work; it does not automatically prove that every line of the Python implementation follows them.

Lean's boundary matters. Lean 4 checks post-parse kernel analogues, with geometry abstracted. It does not prove general surface-parser soundness, floating-point geometry, constraint validation, scenario questions, or a general Python refinement theorem. The integrated model also does not establish object-state preservation as a Lean theorem.

7. Standards remain views, not the execution authority

PULSE keeps execution in typed records and generates purpose-specific projections. Accepted geometry is exposed through RDF/GeoSPARQL; observations through SOSA with source/quality metadata; constraints through SHACL-SPARQL. Processes and scenarios have JSON outputs, not RDF execution models.

These projections are partial and forward-only. A consumer cannot reconstruct runtime queue ordering or branch identity from the exported graph. The design is not “serialize everything to RDF, then recover exactly the same runtime.”

A small spatial mapping with a large caveat

For the supported Point/Polygon fragment, PULSE's strict inside maps to GeoSPARQL sfWithin, while boundary-inclusive coverage maps to sfIntersects. In this fragment, a point intersects a polygon exactly when it lies in the interior or on the shell. That equivalence should not be generalized to arbitrary geometry pairs.

External comparisons corrected an earlier projection choice: ehCoveredBy did not capture the intended Point/Polygon boundary-inclusive membership. This illustrates why exporting familiar vocabulary names is not enough; the semantics of the specific function and supported geometry fragment must be checked.

8. Evaluation: what each result supports

The paper evaluates contract behavior, agreement with other implementations, and spatial projection fidelity. It does not evaluate usability or claim a faster or universally better language.

EvidenceReported resultInterpretation and boundary
Core tests and finite abstraction88 tests; 340 bounded move traces; 3,534 checks; no failuresExercises parser, types, roles, timers, isolation, and other properties. Exhaustive only within the chosen four-position abstraction through depth four.
Lean / Python bridge32 runtime-kernel cases agree; listing IR is byte-identicalUseful case correspondence, not general implementation refinement. The bridge omits specification name, start, and duration fields.
Temporal enumeration37,440 / 37,440 traces match a separate reference workflowExact final-state and event-order/timestamp agreement on a declared finite grid.
Temporal mutation10 / 10 single-field mutants killedTests detect changes to the selected contract; operators and switches are researcher-defined.
Spatial differential tests89 valid cases agree with GEOS; Jena and PostGIS each match 7,396 point–region rowsExternal checks for the supported planar fragment, not full GeoSPARQL conformance.
NOAA IBTrACS replay1,476,290 transition–zone pairs; 4,800 sampled and 12,831 sustained events; no differencesLarge retrospective parity against GEOS and a separately implemented event sweep, under sample-and-hold semantics.
Cold-chain compositionStandards workflow, MF-JSON Step workflow, and Sismic reproduce tested tracesShows computational equivalence on the example and different placement of contract checks.
Custom GeoSPARQL profile probesNative Jena: 112/185; added profiles: 185/185Project-specific interface coverage, not execution of the official OGC conformance suite.

Why the temporal grid is informative

The 37,440 traces cover lengths two through five, Boolean zone membership, time increments of 1, 5, 10, or 11 minutes, initial Safe or Maintenance states, and presence or absence of a same-trigger immediate transition. This stresses duration boundaries and guard interactions rather than just happy-path motion.

The mutants change one field at a time: cancellation, timer-before-move order, start/deadline guards, deadline equality, shorter/longer duration, emission time, transition-on-start, or monitor eligibility relative to an immediate transition. Each mutant is distinguished by between 1,680 and 11,024 traces. “Killed” means at least one trace reveals a difference—not that the system repaired a bug or proved every possible error detectable.

What the real-trajectory experiment adds

The complete frozen IBTrACS since1980 subset contains 307,382 rows. Valid main-track data yield 4,775 tracks, 300,033 points, and 295,258 transitions. Replaying five zones gives the 1,476,290 transition–zone pairs. Sustained events use 6-, 12-, and 24-hour durations; 14,400 monitors start and 12,831 emit.

A dateline audit finds 420 normalized longitude jumps in 366 tracks. After the global latitude-band zones are closed at ±180°, there are no seam-only membership changes for those bands. The deliberately bounded Western-Pacific zone still has 108 changes at its 179.999°E edge. This is a carefully bounded planar/sample experiment, not a demonstration of general antimeridian-crossing geometry.

Where the contract lives in a composed system

The Sismic comparison retains RDF/SHACL inputs and uses a separately implemented statechart. It reproduces the cold-chain crossings, cancellation, final state, and sustained-event timestamps. Six injected faults then probe binding, state domain, clock order, clone isolation, observation roles, and monitor-start guards.

In the unprofiled composition, a complete outcome/source-state oracle catches all six faults. A profiled composition moves checks into binding loads, invariants, and adapters. PULSE catches two at compilation and prevents four at its runtime/record/scenario boundary. That result supports where protections are enforced, not the proposition that standards cannot provide them.

All executable baseline paths were implemented by the first author; the second author independently reviewed and validated them. This is stronger than unchecked self-comparison, but weaker than an independent reimplementation of the intended semantics.

9. What not to conclude

Not a complete spatial engine

The core covers points and simple polygons with explicit CRS agreement and planar predicates. Holes, multipolygons, transformations, geodesics, uncertainty, continuous crossings, and antimeridian-crossing polygons are outside the supported fragment. H3 profile behavior is approximate.

Not a deployment guarantee

Scale ladders preserve counts through 100,000 moves, and PostGIS probes demonstrate component persistence and restart behavior. Some stress tests bypass parts of PULSE. They do not establish end-to-end PULSE throughput, replicated failover, or a portable service-level agreement.

Not proof of lower engineering cost

The contract-location comparison is a structural measure: which declarations or adapters must change. No user study measures authoring time, maintenance cost, or defect rates. IDE tooling remains future work.

Not complete evidence governance

Recording is separated from acceptance, but the external application owns promotion policy. Branch isolation is required, but storage may use copying or an observationally equivalent overlay. The four roles are intentionally non-exhaustive.

The most defensible conclusion is narrow and useful: the tested PULSE fragment localizes a selected execution contract, with formal kernel arguments, bounded checks, and substantial trace parity. Language superiority, usability, and full implementation correctness remain open.

10. Takeaways

  1. Separate evidence from authority. Storing a report and accepting a move are different operations with different effects.
  2. Make ordering explicit. “Timer due at the return time” needs a rule; PULSE chooses due-before-crossing.
  3. Keep validation distinct from change. A constraint reports a violation. A guarded process mutates state.
  4. Treat scenarios as worlds, not temporary edits. Their clocks, monitors, and mutable state must not alias the source.
  5. Test semantics, not just serialization. Differential spatial checks and boundary-time mutants expose mistakes that a valid RDF file cannot reveal.
One context-platform connection: if a context graph mixes observations, accepted state, and simulations, PULSE offers a concrete example of giving those objects different operational roles and effect boundaries—while leaving evidence acceptance to an explicit application policy.

Source and reading guide

This report is grounded in the full paper: §§3–4 for roles, execution order, and calculus; §5 for projection fidelity; §§6.1–6.6 for tests, spatial comparisons, trajectory replay, composition, and engineering probes; §7 for limitations.

Read the paper · HTML version · Artifact revision reported in the paper

All experimental numbers above are the authors' reported results, not experiments rerun for this explanation. The browser playground is a separate educational model; its simplifications are listed above.