| Up: entity machine | Adapter | Protocol primitives |
The J-machine converts finalized chain observations into deterministic entity inputs and batches entity-originated operations for contracts. Chain RPC and BrowserVM are adapters; canonical event normalization and J-batch state are protocol logic.
core/jurisdiction/machine/ - identity, height, event normalization, and J-batch logic.core/jurisdiction/adapter/ - RPC and BrowserVM adapters/watchers.core/entity/tx/j-events.ts - applies threshold-observed J-events to entity state.core/jurisdiction/machine/batch/index.ts - canonical batch encoding and contract-limit checks.normalizeJurisdictionEvents(events) - canonicalizes external observations.canonicalJurisdictionEventKey(event) - stable event ordering and identity.encodeJBatch(batch) / decodeJBatch(bytes) - deterministic batch wire format.computeBatchHankoHash(...) - commitment signed by the entity board.getEntityCertifiedJurisdictionHeight(state) - the J-height an Entity reducer may read: its certified prefix, never a watcher tip.connectJurisdictionAdapter(config) - opens the selected external chain adapter.RPC data is untrusted input. Entity state changes only after canonical observation validation and the required signer threshold; adapter caches are not consensus state.