Skip to content
UGP v1.0 is a public comment draft. Comments close November 23, 2026. The A–D defect counts are provisional.Public comment draft · until November 23, 2026Comment on this draftComment →
UGPUniversal Grading Protocol
Build

Golden examples

PDF

The golden-file set: UGP records with their expected status, grade, Premium and core code. Every implementation's derivation reproduces them.

Every implementation's derivation reproduces the golden examples exactly: the same status, reasons, grade, Premium flag and core code. The files are published beside the schema at /schema/v1.0/golden/, one JSON record per example.

The seven examples of §12.5

Core codeReads as
U1UGP version · UGP version 1 §18.2-PHNDevice class · Phone §16-CA0Cosmetic · Within the Like New tolerance, zero defects on the display and lenses §5.3-FFFunctional · Fully functional §7.3-B93MBattery · 93% health, measured §8-LCAccount and management locks · Clear §9.1-RUCarrier lock · Unlocked §9.2-DVData · Sanitised and verified §10.1-PGParts · All genuine, verified §10.2-KFKit · Full: every required component, original §10.4Like New · Premium
U1UGP version · UGP version 1 §18.2-PHNDevice class · Phone §16-CBCosmetic · Within the Very Good tolerance §5.3-FFFunctional · Fully functional §7.3-B80DBattery · 80% health or more, declared §8-LCAccount and management locks · Clear §9.1-RUCarrier lock · Unlocked §9.2-DWData · Sanitised, declared §10.1-PUParts · Parts not verified §10.2-KHKit · Unit only, no box or accessories §10.4Very Good · battery declared ≥ 80% · parts not verified · unit only
U1UGP version · UGP version 1 §18.2-PHNDevice class · Phone §16-CSCosmetic · New, factory sealed (not inspected) §5.3-FXFunctional · Not tested §7.3-BNABattery · Not applicable (no battery, or sealed) §8-LNAccount and management locks · Not applicable (sealed) §9.1-RUCarrier lock · Unlocked §9.2-DNData · Not applicable (sealed) §10.1-PNParts · Not applicable (sealed new) §10.2-KFKit · Full: every required component, original §10.4New Sealed
U1UGP version · UGP version 1 §18.2-PHNDevice class · Phone §16-COCosmetic · New, unsealed, never activated, zero defects §5.3-FFFunctional · Fully functional §7.3-B100MBattery · 100% health, measured §8-LCAccount and management locks · Clear §9.1-RUCarrier lock · Unlocked §9.2-DVData · Sanitised and verified §10.1-PGParts · All genuine, verified §10.2-KHKit · Unit only, no box or accessories §10.4New Open Box · Handset only
U1UGP version · UGP version 1 §18.2-PHNDevice class · Phone §16-CDCosmetic · Within the Acceptable tolerance §5.3-FFFunctional · Fully functional §7.3-B84MBattery · 84% health, measured §8-LCAccount and management locks · Clear §9.1-RLCarrier lock · Carrier-locked (disclosed with the grade) §9.2-DVData · Sanitised and verified §10.1-PMParts · One or more non-genuine parts (disclosed) §10.2-KFKit · Full: every required component, original §10.4Acceptable · carrier-locked (disclosed) · non-genuine part (disclosed)
U1UGP version · UGP version 1 §18.2-PHNDevice class · Phone §16-CKCosmetic · Cracked, liquid indicator triggered, or a missing external part: no grade §5.3-FFFunctional · Fully functional §7.3-B91MBattery · 91% health, measured §8-LCAccount and management locks · Clear §9.1-RUCarrier lock · Unlocked §9.2-DVData · Sanitised and verified §10.1-PGParts · All genuine, verified §10.2-KFKit · Full: every required component, original §10.4No grade · status REPAIR (reason: K, cracked back glass)
U1UGP version · UGP version 1 §18.2-TABDevice class · Tablet §16-CACosmetic · Within the Like New tolerance §5.3-FFFunctional · Fully functional §7.3-B95MBattery · 95% health, measured §8-LEAccount and management locks · Encumbered (account, management, firmware, ban or financing) §9.1-RNCarrier lock · Not applicable (no cellular radio) §9.2-DVData · Sanitised and verified §10.1-PGParts · All genuine, verified §10.2-KPKit · Partial: missing items listed §10.4No grade · status ENCUMBERED (reason: MDM)

§12.5

Edge cases in the set

The published set adds edge cases to the seven above, so that the corners of the rules are pinned down. They include:

  • A against A0, the difference between Like New and Like New · Premium;
  • a declared battery (B80D), and a charge-hold pass (CP) and fail (CF);
  • the sealed exemptions of New Sealed (FX, NA, N);
  • a carrier-locked device, which keeps its grade and discloses the lock;
  • one example for each status;
  • the lost/stolen rules: a declared clear, unchecked (NOT GRADED, reason lost_stolen_unchecked), and a reported check that outranks a declaration;
  • supplier-mapped grades (mapped_from, ~src:supplier), including one that still ends as a status.

§11.1 · §8.2 · §6.1

Using the files

  1. Validate each record against the schema.
  2. Run your derivation on its axes and identity.
  3. Compare your result with the file's result, field by field.

A mismatch is a bug in the implementation, or an error in the golden file: report the second through Propose a change (type "Erratum").

68 golden examples

ExampleCore codeResultJSON
Like New · Premium
UGP v1.0 §12.5 example 1
U1-PHN-CA0-FF-B93M-LC-RU-DV-PG-KFLike NewPremiumOpen in decoderJSON
Very Good · battery declared ≥80% · parts not verified · unit only
UGP v1.0 §12.5 example 2
U1-PHN-CB-FF-B80D-LC-RU-DW-PU-KHVery GoodOpen in decoderJSON
New Sealed
UGP v1.0 §12.5 example 3
U1-PHN-CS-FX-BNA-LN-RU-DN-PN-KFNew SealedOpen in decoderJSON
New Open Box · Handset only
UGP v1.0 §12.5 example 4
U1-PHN-CO-FF-B100M-LC-RU-DV-PG-KHNew Open Box· Handset onlyOpen in decoderJSON
Acceptable · carrier-locked (disclosed) · non-genuine part (disclosed)
UGP v1.0 §12.5 example 5
U1-PHN-CD-FF-B84M-LC-RL-DV-PM-KFAcceptableOpen in decoderJSON
No grade · REPAIR (K, cracked back glass)
UGP v1.0 §12.5 example 6
U1-PHN-CK-FF-B91M-LC-RU-DV-PG-KFREPAIRKOpen in decoderJSON
No grade · ENCUMBERED (MDM)
UGP v1.0 §12.5 example 7
U1-TAB-CA-FF-B95M-LE-RN-DV-PG-KPENCUMBEREDLCK-02Open in decoderJSON
Like New, one S1 on the screen: not Premium
edge case
U1-PHN-CA-FF-B95M-LC-RU-DV-PG-KFLike NewOpen in decoderJSON
A0 with 89% measured: not Premium
edge case
U1-PHN-CA0-FF-B89M-LC-RU-DV-PG-KFLike NewOpen in decoderJSON
A0 with exactly 90% measured: Premium
edge case
U1-PHN-CA0-FF-B90M-LC-RU-DV-PG-KFLike NewPremiumOpen in decoderJSON
A0 with 95% declared: not Premium
edge case
U1-PHN-CA0-FF-B95D-LC-RU-DV-PG-KFLike NewOpen in decoderJSON
A0 with 93% evidenced: counts as measured
edge case
U1-PHN-CA0-FF-B93M-LC-RU-DV-PG-KFLike NewPremiumOpen in decoderJSON
A0, parts declared genuine: not Premium
edge case
U1-PHN-CA0-FF-B93M-LC-RU-DV-PD-KFLike NewOpen in decoderJSON
Like New · Premium, carrier-locked (disclosed)
edge case
U1-PHN-CA0-FF-B93M-LC-RL-DV-PG-KFLike NewPremiumOpen in decoderJSON
Tablet Like New · Premium
edge case
U1-TAB-CA0-FF-B92M-LC-RN-DV-PG-KFLike NewPremiumOpen in decoderJSON
Very Good with a clean screen (B0)
edge case
U1-PHN-CB0-FF-B88M-LC-RU-DV-PG-KFVery GoodOpen in decoderJSON
Good, 80% measured: gradable
edge case
U1-PHN-CC-FF-B80M-LC-RU-DV-PG-KFGoodOpen in decoderJSON
79% measured: REPAIR
edge case
U1-PHN-CC-FF-B79M-LC-RU-DV-PG-KFREPAIRBAT-02Open in decoderJSON
79% declared: REPAIR
edge case
U1-PHN-CC-FF-B79D-LC-RU-DV-PG-KFREPAIRBAT-02Open in decoderJSON
No reading and no declaration: NOT GRADED
edge case
U1-PHN-CB-FF-BUN-LC-RU-DV-PG-KFNOT_GRADEDBUNOpen in decoderJSON
A figure of unknown origin is no reading: NOT GRADED
edge case
U1-PHN-CB-FF-BUN-LC-RU-DV-PG-KFNOT_GRADEDBUNOpen in decoderJSON
A phone recorded as having no battery: NOT GRADED
edge case
U1-PHN-CB-FF-BNA-LC-RU-DV-PG-KFNOT_GRADEDBNAOpen in decoderJSON
Smartwatch, charge-hold pass (provisional profile)
edge case
U1-WCH-CC-FF-BCP-LC-RN-DV-PU-KFGoodOpen in decoderJSON
Earbuds, charge-hold fail: REPAIR
edge case
U1-BUD-CB-FF-BCF-LC-RN-DW-PU-KFREPAIRBCFOpen in decoderJSON
Sealed box, data unknown: still New Sealed
edge case
U1-PHN-CS-FX-BNA-LN-RU-DU-PN-KFNew SealedOpen in decoderJSON
Sealed box with a battery figure: battery is NA
edge case
U1-PHN-CS-FX-BNA-LN-RU-DN-PN-KFNew SealedOpen in decoderJSON
Sealed box under a financing hold: ENCUMBERED
edge case
U1-PHN-CS-FX-BNA-LE-RU-DN-PN-KFENCUMBEREDLCK-06Open in decoderJSON
Sealed box reported stolen: PROHIBITED
edge case
U1-PHN-CS-FX-BNA-LN-RU-DN-PN-KFPROHIBITEDIDN-01Open in decoderJSON
Open box, not tested: NOT GRADED
edge case
U1-PHN-CO-FX-B100M-LC-RU-DV-PG-KFNOT_GRADEDFXOpen in decoderJSON
Open box with a non-genuine display: NOT GRADED
edge case
U1-PHN-CO-FF-B100M-LC-RU-DV-PM-KFNOT_GRADEDPMOpen in decoderJSON
Used device, not tested: NOT GRADED
edge case
U1-PHN-CB-FX-B93M-LC-RU-DV-PG-KFNOT_GRADEDFXOpen in decoderJSON
Very Good, carrier lock unknown
edge case
U1-PHN-CB-FF-B93M-LC-RV-DV-PG-KFVery GoodOpen in decoderJSON
Very Good, charging cable missing
edge case
U1-PHN-CB-FF-B93M-LC-RU-DV-PG-KPVery GoodOpen in decoderJSON
Manifest shows a non-genuine display under parts G: disclosed as M
edge case
U1-PHN-CA0-FF-B93M-LC-RU-DV-PM-KFLike NewOpen in decoderJSON
No lost/stolen check and no declaration: NOT GRADED
edge case
U1-PHN-CA0-FF-B93M-LC-RU-DV-PG-KFNOT_GRADEDlost_stolen_uncheckedOpen in decoderJSON
Reported lost or stolen: PROHIBITED
edge case
U1-PHN-CA0-FF-B93M-LC-RU-DV-PG-KFPROHIBITEDIDN-01Open in decoderJSON
IMEI mismatch: PROHIBITED
edge case
U1-PHN-CA0-FF-B93M-LC-RU-DV-PG-KFPROHIBITEDIDN-02Open in decoderJSON
Counterfeit: PROHIBITED
edge case
U1-PHN-CA0-FF-B93M-LC-RU-DV-PG-KFPROHIBITEDcounterfeitOpen in decoderJSON
Recalled unsafe: PROHIBITED
edge case
U1-PHN-CA0-FF-B93M-LC-RU-DV-PG-KFPROHIBITEDrecalled_unsafeOpen in decoderJSON
Reported and activation-locked: PROHIBITED first
edge case
U1-PHN-CA0-FF-B93M-LE-RU-DV-PG-KFPROHIBITEDIDN-01Open in decoderJSON
Activation Lock on: ENCUMBERED
edge case
U1-PHN-CA0-FF-B93M-LE-RU-DV-PG-KFENCUMBEREDLCK-01Open in decoderJSON
Locks unknown: ENCUMBERED
edge case
U1-PHN-CA0-FF-B93M-LU-RU-DV-PG-KFENCUMBEREDLUOpen in decoderJSON
Locks 'not applicable' on an opened device: ENCUMBERED
edge case
U1-PHN-CB-FF-B93M-LN-RU-DV-PG-KFENCUMBEREDLNOpen in decoderJSON
Lock type listed under value C: ENCUMBERED
edge case
U1-PHN-CA0-FF-B93M-LE-RU-DV-PG-KFENCUMBEREDLCK-02Open in decoderJSON
Not wiped: UNSANITIZED
edge case
U1-PHN-CA0-FF-B93M-LC-RU-DX-PG-KFUNSANITIZEDDAT-01Open in decoderJSON
Wipe unknown: UNSANITIZED
edge case
U1-PHN-CA0-FF-B93M-LC-RU-DU-PG-KFUNSANITIZEDDUOpen in decoderJSON
Not wiped and cracked: UNSANITIZED first
edge case
U1-PHN-CK-FF-B93M-LC-RU-DX-PG-KFUNSANITIZEDDAT-01Open in decoderJSON
Severe damage: PARTS
edge case
U1-PHN-CE-FX-B93M-LC-RU-DV-PG-KFPARTSCEOpen in decoderJSON
Display inoperable, sent for parts: PARTS
edge case
U1-PHN-CC-FK-B93M-LC-RU-DV-PG-KFPARTSDSP-06Open in decoderJSON
Does not charge, no disposition: REPAIR
edge case
U1-PHN-CC-FK-B93M-LC-RU-DV-PG-KFREPAIRPWR-02Open in decoderJSON
Two dead pixels (minor): REPAIR
edge case
U1-PHN-CB-FM-B93M-LC-RU-DV-PG-KFREPAIRDSP-01Open in decoderJSON
Face ID fails (major): REPAIR
edge case
U1-PHN-CB-FJ-B93M-LC-RU-DV-PG-KFREPAIRBIO-01Open in decoderJSON
Camera fault recorded under FF: derived FJ
edge case
U1-PHN-CB-FJ-B93M-LC-RU-DV-PG-KFREPAIRCAM-01Open in decoderJSON
Sensor fault seen on a device marked not tested: FM
edge case
U1-PHN-CB-FM-B93M-LC-RU-DV-PG-KFREPAIRSNS-01Open in decoderJSON
Phone earpiece fails: key (FK)
edge case
U1-PHN-CB-FK-B93M-LC-RU-DV-PG-KFREPAIRAUD-01Open in decoderJSON
Tablet microphone fails: major (FJ)
edge case
U1-TAB-CB-FJ-B93M-LC-RN-DV-PG-KFREPAIRAUD-01Open in decoderJSON
Liquid indicator triggered: cosmetic K, REPAIR
edge case
U1-PHN-CK-FF-B93M-LC-RU-DV-PG-KFREPAIRLDIOpen in decoderJSON
Missing SIM tray: cosmetic K, REPAIR
edge case
U1-PHN-CK-FF-B93M-LC-RU-DV-PG-KFREPAIRMOpen in decoderJSON
Cracked, speaker fails, battery 75%: every reason listed
edge case
U1-PHN-CK-FJ-B75M-LC-RU-DV-PG-KFREPAIRK · AUD-02 · BAT-02Open in decoderJSON
Not inspected: NOT GRADED
edge case
U1-PHN-CN-FF-B93M-LC-RU-DV-PG-KFNOT_GRADEDCNOpen in decoderJSON
Declared not lost or stolen: graded, the declaration disclosed
edge case
U1-PHN-CA0-FF-B93M-LC-RU-DV-PG-KFLike NewPremiumOpen in decoderJSON
Sealed box, no check and no declaration: NOT GRADED
edge case
U1-PHN-CS-FX-BNA-LN-RU-DN-PN-KFNOT_GRADEDlost_stolen_uncheckedOpen in decoderJSON
Cracked and unchecked: REPAIR comes first
edge case
U1-PHN-CK-FF-B93M-LC-RU-DV-PG-KFREPAIRKOpen in decoderJSON
Unchecked and no battery reading: both reasons
edge case
U1-PHN-CB-FF-BUN-LC-RU-DV-PG-KFNOT_GRADEDBUN · lost_stolen_uncheckedOpen in decoderJSON
Reported stolen whatever was declared: PROHIBITED
edge case
U1-PHN-CA0-FF-B93M-LC-RU-DV-PG-KFPROHIBITEDIDN-01Open in decoderJSON
Good, transcribed from a supplier's Grade C: disclosed and ~src:supplier
edge case
U1-PHN-CC-FF-B80D-LC-RU-DW-PU-KF~src:supplierGoodOpen in decoderJSON
New Sealed from a supplier's NEW (SEALED)
edge case
U1-PHN-CS-FX-BNA-LN-RU-DN-PN-KF~src:supplierNew SealedOpen in decoderJSON
Supplier-mapped but not wiped: the extension stays on the code
edge case
U1-PHN-CD-FF-B93M-LC-RU-DX-PG-KF~src:supplierUNSANITIZEDDAT-01Open in decoderJSON