Shared ground
These verses look forward to a future personal “appearance/coming” and connect present loyalty (“remain in him”) with how that moment will feel and reveal things. The text’s stated aim is “boldness” (confidence) rather than “shame” when that coming happens. It then links God’s/Christ’s righteousness with a recognizable family resemblance: people who practice righteousness show they have been “born of him.”
The passage also assumes shared knowledge in the community (“you know”), and it uses that shared conviction (“he is righteous”) as the basis for a further recognition about others (“everyone who practices righteousness…”).
Where interpretation differs
Who “he” is in v.29. Some read “he is righteous” and “born of him” as referring to God the Father, because new birth language in John’s writings often points to God as the source. Others read it as referring to Christ, since v.28 has just spoken repeatedly of “his coming” and “when he appears,” keeping Christ in view.
What “ashamed before him” means. Some take this mainly as an inner experience (felt shame at exposure). Others hear it more as a relational/public outcome (being shown unready and losing confidence “before him”), without necessarily defining further consequences.
Why the disagreement exists
The pronoun “he/him” is not reintroduced with a name, so readers decide whether the referent continues from v.28 (the one who “appears” and “comes”) or shifts to the one who is the source of new birth. Likewise, “shame” language can describe emotion or the loss of confidence in the presence of someone greater; the verse does not spell out details beyond the contrast with “boldness.”
What this passage clearly contributes
Explicitly, it teaches (1) ongoing “remaining” is tied to readiness for the future appearance, (2) that future meeting will distinguish between confidence and shame, and (3) righteousness in conduct functions as evidence of being “born of him.” The passage does not define a checklist for “practices righteousness,” but it does present a pattern: what someone repeatedly does aligns with the character of the one they come from (the righteous one). It also advances the letter’s movement from guarding true confession (2:18–27) into visible markers of identity that will be developed next (2:28–4:6).