; and (ii) is a defendant or plaintiff in a covered proceeding that takes place within the geographic boundaries of the eligible entity described in clause (i); and (B) includes any individual described in subparagraph (A) who is— (i) a tenant of any type of rental housing, including public housing; (ii) a homeowner of any type of home, including a tiny home or a manufactured home; (iii) a tenant or homeowner with a terminated housing subsidy; or (iv) a tenant or homeowner who has received notice that the housing subsidy of the tenant or homeowner will be terminated. (3) Covered proceeding The term covered proceeding means a civil action in a court or administrative forum— (A) for— (i) eviction from the primary residence of a tenant; (ii) the termination of a housing subsidy; (iii) foreclosure on the primary residence of a homeowner; and (iv) an affirmative case, if the eligible entity meets the requirement under subsection (c)(2)(B); and (B) that an eligible entity chooses to cover in the Right to Counsel legislation of the eligible entity. (4) Eligible entity The term eligible entity means a State government, a local government, or an Indian tribe with a Right to Counsel. (5) Housing-related legal representation The term housing-related legal representation — (A) means full legal representation by a Right to Counsel attorney for a covered individual in a covered proceeding