{"lexicon":1,"id":"money.atmosphere.payment.lifecycle","defs":{"main":{"type":"record","key":"any","description":"EXPERIMENTAL DRAFT — unpublished immutable lifecycle revision for one exact proof. Revision 1 is settled genesis at the proof's rkey in the lifecycle authority's repository, created atomically with that proof. Every later revision is a new create-only record with previous naming the exact predecessor URI and CID; previous is absent at revision 1 and required from revision 2. The public sequence is dense 1,2,3,...; composed ledger transitions must remain table-legal. Revision 1 uses exactly proofRkey. Revisions 2 through 9007199254740991 use proofRkey.<revision>, with canonical ASCII decimal revision and no leading zeros. proofRkey.1, segmented spellings, signs, fractions and overflow are invalid; a successor beyond the maximum cannot be issued. A canonical 13-character broker TID yields at most 30 ASCII characters. Revision n+1 may be handed off only after exact authenticated read-back confirms n. Frozen bytes at the same deterministic key are reused; different bytes occupying that key are terminal integrity failure. A direct reader covers every key of each segment plus the next segment's first key at one signed head and derives prefix(n), never current. Qualified gap-free ingestion or complete exhaustion evidence at one head is required for current. A visible hole, changed predecessor, divergence or interior deletion is sticky integrity; no automatic clear is permitted. The canonical ledger remains authoritative, and the complete algorithm and retained producer/checkpoint requirements are in COMMITMENT_PROFILE.md. Profile dispatch first authenticates the referenced proof. money-atmosphere-p2p-v1 retains the immutable key/history algorithm but uses only its closed settled/under-review/invalidated edge and reason table; commerce Stripe/refund/dispute semantics never apply to P2P. Private authority standing, current published status and actual funds movement are distinct.","record":{"type":"object","required":["proof","status","revision","asOf"],"properties":{"proof":{"type":"ref","ref":"com.atproto.repo.strongRef","description":"Exact reference to the immutable money.atmosphere.payment.proof record whose payment this state describes. Its cid is the proof's canonical AT repository-record CID string (lowercase unpadded base32 CIDv1, DAG-CBOR, SHA-256/32)."},"previous":{"type":"ref","ref":"com.atproto.repo.strongRef","description":"Exact immediately preceding lifecycle revision URI and canonical repository-record CID in this proof's path and authority. Required when revision >= 2 and forbidden at revision 1; Lexicon cannot express this conditional, so profile verification enforces it. The predecessor revision is exactly revision-1 and every revision retains the same exact proof."},"status":{"type":"string","maxLength":64,"knownValues":["settled","refunded","partially-refunded","disputed","reversed","under-review","invalidated"],"description":"State asserted for this exact proof under its authenticated supported profile. settled is required at genesis. money-atmosphere-v1 and guest-v1 retain their COMMITMENT_PROFILE.md commerce transitions and Stripe projection doctrine. P2P permits only settled -> under-review (evidence-conflict), under-review -> settled (evidence-revalidated), or settled/under-review -> invalidated with a P2P-defined error reason; invalidated is terminal. P2P review is evidence review, not a merchant dispute, and invalidation never reverses funds. For every profile other than P2P, unknown values are present but unrecognized and cannot authorize effects. Under P2P, known vocabulary alone grants no effect and unknown or cross-profile statuses fail closed. transferred remains unadmitted."},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Dense public lifecycle sequence for this exact proof path, starting at 1 with no skipped number. It is independent of internal ledger transition counters; a composed transition must be table-legal. Reuse the frozen value on identical retries. It determines the immutable revision rkey and exact predecessor, and never orders different authorities' paths."},"reason":{"type":"string","maxLength":64,"description":"Profile-qualified short machine-readable kebab-case reason; no free text, PII or processor detail. P2P forbids it at genesis, requires it on every later edge, and admits only evidence-conflict, evidence-revalidated, authorization-error, binding-error, value-error and finality-failure. An incorrect qualified rail settlement time is a finality-failure under P2P even when inclusion is otherwise final. Existing commerce reason rules remain unchanged."},"asOf":{"type":"string","format":"datetime","description":"UTC instant at which the lifecycle authority asserted this immutable state. It does not replace dense revision order or establish real-time canonical-ledger currentness."}}}}}}