Skip to main content

๐Ÿ”„ XP Lifecycle

The XP lifecycle defines how an XP identity evolves over time.

It answers:

  • how XP is created
  • how it grows
  • how it is constrained
  • how it becomes inactive
  • how it is permanently removed

Unlike tokens, XP is not meant for passive holding.

It exists only while it remains meaningful to the system.


High-Level Lifecycleโ€‹

This is the complete lifecycle of an XP identity.


๐Ÿ†• 1. Creationโ€‹

An XP identity begins when a new XpId is initialized.

Creation includes:

  • generating a new XP key
  • assigning ownership
  • initializing state
  • setting the starting XP value (InitXp)

This creates a valid runtime identity that can participate in the protocol.

Creation Flowโ€‹

Initial Stateโ€‹

Free XP = InitXp
Pulse = 0
Timestamp = current block

At creation, XP starts with no reputation and must earn trust over time.


๐Ÿ“ˆ 2. Earning (Reputation-Driven Growth)โ€‹

XP does not grow through direct increments.

It grows through the Pulse system, where reputation controls both access to rewards and reward size.

๐ŸŒฑ Early Stageโ€‹

When:

Pulse < MinPulse

then:

  • XP is not awarded
  • Pulse increases instead

This is the warmup phase.

๐Ÿš€ Active Stageโ€‹

When:

Pulse >= MinPulse

then:

  • XP earning becomes active
  • rewards scale using Pulse

Higher reputation produces stronger rewards.

Earning Flowโ€‹

Key Propertiesโ€‹

PropertyMeaning
โณ Time-dependentXP cannot be rushed
๐Ÿ“ˆ Reputation-basedPulse controls growth
๐Ÿ›ก๏ธ Anti-spamSame-block farming is prevented

XP rewards consistency, not bursts.


โš™๏ธ 3. Execution (Call via XpId)โ€‹

XP is not passive storage.

It is used as an execution context inside runtime logic.

Execution Modelโ€‹

origin: AccountId
input: XpId
ensure: owner(origin, XpId)

Mental Modelโ€‹

AccountId = who authorizes
XpId = what the system acts upon

The account signs.

The XP identity becomes the execution subject.

Execution Flowโ€‹

Effectโ€‹

  • ๐Ÿง  Logic is scoped to XP identities
  • ๐ŸŽญ Enables multi-role participation
  • โš™๏ธ XP becomes a runtime-native execution subject

This is what separates XP from simple balances.


๐Ÿ”’ 4. Constraints (Lock & Reserve)โ€‹

XP can be constrained in two different ways.

These constraints affect usability, liveness, and future growth.

Lock (Hard Constraint)โ€‹

A lock is a strict restriction.

  • ๐Ÿšซ XP becomes unavailable for partial use
  • โŒ Cannot be partially withdrawn
  • ๐Ÿง  Represents commitment or staking intent

Locked XP also improves future Pulse growth.

Reserve (Soft Constraint)โ€‹

A reserve is a soft allocation.

  • ๐Ÿ“Œ XP is marked for a specific purpose
  • โœ… Still usable within that context
  • ๐Ÿ”„ Can be released later

Reserved XP represents intent, not hard restriction.

Constraint Flowโ€‹

Effectโ€‹

  • ๐ŸŽ›๏ธ Controls how XP can be used
  • ๐Ÿ“ˆ Locking improves long-term rewards
  • ๐Ÿ›ก๏ธ Prevents misuse of committed XP

Constraints are behavioral tools, not balance transfers.


โณ 5. Inactivityโ€‹

XP liveness is determined by activity, not minimum balance.

Every XP identity tracks its last meaningful interaction using a timestamp.

Inactivity Ruleโ€‹

if timestamp < MinTimeStamp
AND no active locks
-> XP becomes inactive

Meaningโ€‹

  • XP is no longer considered alive
  • it becomes eligible for reaping

This prevents abandoned XP from remaining permanently valid.


๐Ÿงน 6. Reaping (Permanent Deletion)โ€‹

Inactive XP can be permanently removed from the system.

This process is called reaping.

Reaping is not a balance reduction.

It is full identity invalidation.

Reaping Flowโ€‹

Resultโ€‹

  • โŒ XP entry is removed
  • ๐Ÿšซ Identity cannot be reused
  • ๐Ÿ—‘๏ธ Historical state is permanently lost

Reaping ensures XP reflects active participation, not passive storage.


Full Lifecycle Flowโ€‹

This is the full operational lifecycle of the XP system.


Lifecycle Propertiesโ€‹

PropertyMeaning
ProgressiveGrows through participation
Activity-drivenInactive XP can be removed
Constraint-awareLocks and reserves affect behavior
Identity-centricEverything is tied to XpId

XP is alive only while it is being used.


โšก What Makes This Uniqueโ€‹

Compared to traditional tokens:

๐Ÿช™ Tokensโšก XP
Passive holdingโŒ Not sufficient
Permanent balanceโŒ Not guaranteed
Value storageโŒ Not the goal
Activity-based progressionโœ… Core principle

XP is a living identity, not a stored asset.


Key Insightโ€‹

XP exists only as long as it is actively used, maintained, or committed.

This is what makes the lifecycle fundamentally different from token systems.


๐Ÿš€ Next Stepsโ€‹

To understand how constraints work in detail:

๐Ÿ‘‰ Concepts -> Constraints (Lock & Reserve)