; and (ii) consistent with the interests of national security. (4) Representation by counsel (A) In general Each head of an agency shall ensure that, under this subsection, a covered person appealing a decision of the head's agency under this subsection has an opportunity to retain counsel or other representation at the covered person’s expense. (B) Access to classified information (i) In general Upon the request of a covered person appealing a decision of an agency under this subsection and a showing that the ability to review classified information is essential to the resolution of the appeal under this subsection, the head of the agency shall sponsor an application by the counsel or other representation retained under this paragraph for access to classified information for the limited purposes of such appeal. (ii) Extent of access Counsel or another representative who is cleared for access under this subparagraph may be afforded access to relevant classified materials to the extent consistent with the interests of national security. (5) Corrective action (A) In general If, in the course of proceedings under this subsection, the head of an agency or a panel established by the head under paragraph (3) decides that a covered person's eligibility for access to classified information was improperly denied or revoked by the agency, the agency shall take corrective action to return the covered person, as nearly as practicable and reasonable, to the position such covered person would have held had the improper denial or revocation not occurred. (B) Compensation Corrective action under subparagraph (A) may include compensation, in an amount not to exceed $300,000, for any loss of wages or benefits suffered, or expenses otherwise incurred, by reason of such improper denial or revocation. (6) Publication of decisions (A) In general Each head of an agency shall publish each final decision on an appeal under this subsection. (B) Requirements In order to ensure transparency, oversight by Congress, and meaningful information