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.
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.
Accepted state
The location and condition the system currently treats as authoritative.
“Batch is inside; condition = Safe.”
Recorded evidence
A source-qualified report, with time and optional quality metadata.
“GPS reports outside, confidence 0.98.”
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.”
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
Record evidence; preserve accepted position.
Application decides whether to accept it.
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
- Evidence: the outside GPS report is stored without changing the source location.
- Validation: an accepted outside position while
Safeviolates the containment constraint. Validation alone makes no transition. - 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.
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
- 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.
- Emit already-due timers: deadlines at or before the move time fire first, sorted by deadline and grounded declaration rank.
- Compare old and new membership: derive sampled crossings, then commit the position.
- Manage monitors: cancel inverse monitors and start eligible new ones.
- Apply immediate rules: follow declaration order; later rules see earlier state changes. A source-state mismatch skips a transition.
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.
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
- Evidence is not motion: reset, record x = 12 at t = 20. The report exists, but the source stays at x = 5, t = 0, with no timer.
- Counterfactual isolation: reset, fork, select the branch, accept x = 12 at t = 0, and advance to 20. The branch becomes AtRisk; the source stays Safe.
- Snapshot pending work: accept an outside move on the source, then fork. Return on the branch at 9; advance the source to 10. The copied monitors evolve independently.
- Atomic rejection: after advancing to 10, try accepting a move at 5. The error must leave position, state, timer, and log unchanged.
- Boundary semantics: accept x = 10. It is inside for coverage; x = 11 is outside.
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 aliases6. 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.
| Operation | Permitted writes | What must remain unchanged |
|---|---|---|
| Record observation | O | Accepted values, state, timers, clock |
| Accept move | A, q, Q, t | Evidence |
| Advance clock | q, Q, t | Accepted position and evidence |
| Validate / answer questions | None | Entire input configuration |
| Run scenario | Branch-local components | Entire 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.
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.
| Evidence | Reported result | Interpretation and boundary |
|---|---|---|
| Core tests and finite abstraction | 88 tests; 340 bounded move traces; 3,534 checks; no failures | Exercises parser, types, roles, timers, isolation, and other properties. Exhaustive only within the chosen four-position abstraction through depth four. |
| Lean / Python bridge | 32 runtime-kernel cases agree; listing IR is byte-identical | Useful case correspondence, not general implementation refinement. The bridge omits specification name, start, and duration fields. |
| Temporal enumeration | 37,440 / 37,440 traces match a separate reference workflow | Exact final-state and event-order/timestamp agreement on a declared finite grid. |
| Temporal mutation | 10 / 10 single-field mutants killed | Tests detect changes to the selected contract; operators and switches are researcher-defined. |
| Spatial differential tests | 89 valid cases agree with GEOS; Jena and PostGIS each match 7,396 point–region rows | External checks for the supported planar fragment, not full GeoSPARQL conformance. |
| NOAA IBTrACS replay | 1,476,290 transition–zone pairs; 4,800 sampled and 12,831 sustained events; no differences | Large retrospective parity against GEOS and a separately implemented event sweep, under sample-and-hold semantics. |
| Cold-chain composition | Standards workflow, MF-JSON Step workflow, and Sismic reproduce tested traces | Shows computational equivalence on the example and different placement of contract checks. |
| Custom GeoSPARQL profile probes | Native Jena: 112/185; added profiles: 185/185 | Project-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
- Separate evidence from authority. Storing a report and accepting a move are different operations with different effects.
- Make ordering explicit. “Timer due at the return time” needs a rule; PULSE chooses due-before-crossing.
- Keep validation distinct from change. A constraint reports a violation. A guarded process mutates state.
- Treat scenarios as worlds, not temporary edits. Their clocks, monitors, and mutable state must not alias the source.
- Test semantics, not just serialization. Differential spatial checks and boundary-time mutants expose mistakes that a valid RDF file cannot reveal.
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.