๐ 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โ
| Property | Meaning |
|---|---|
| โณ Time-dependent | XP cannot be rushed |
| ๐ Reputation-based | Pulse controls growth |
| ๐ก๏ธ Anti-spam | Same-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โ
| Property | Meaning |
|---|---|
| Progressive | Grows through participation |
| Activity-driven | Inactive XP can be removed |
| Constraint-aware | Locks and reserves affect behavior |
| Identity-centric | Everything 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)