God forgetting righteousness is not going to change, because God doesn't change, and "these things were written for our instruction". Righteousness is still how we are blessed, only what righteousness is is different today. Faith is counted as righteousness. "God Is Our Righteousness" (Jer 23:6).
God doesn't change, but He does do different things with different people at different times. Adam was to not eat a piece of fruit. Noah was to build an ark, Abraham was promised children. Same God each time.
In the OT Covenant which God made with the nation of Israel, righteousness was through the Law, and if you were obedient, or if you were disobedient, that was your state of righteousness. No one kept the Law sufficiently to live from it however, and God even then accepted belief in Him, and give a covering for unrighteousness.
In the Gospel of grace in Jesus Christ, righteousness is given us by God, apart from Law.
These passages in Ezekiel 3, and 18, for instance, are in the context of righteousness by the Law.
Ezekiel 18:4-9 KJV
4) Behold, all souls are mine; as the soul of the father, so also the soul of the son is mine: the soul that sinneth, it shall die.
5) But if a man be just, and do that which is lawful and right,
6) And hath not eaten upon the mountains, neither hath lifted up his eyes to the idols of the house of Israel, neither hath defiled his neighbour's wife, neither hath come near to a menstruous woman,
7) And hath not oppressed any, but hath restored to the debtor his pledge, hath spoiled none by violence, hath given his bread to the hungry, and hath covered the naked with a garment;
8) He that hath not given forth upon usury, neither hath taken any increase, that hath withdrawn his hand from iniquity, hath executed true judgment between man and man,
9) Hath walked in my statutes, and hath kept my judgments, to deal truly; he is just, he shall surely live, saith the Lord GOD.
Ezekiel 18:20-29 KJV
20) The soul that sinneth, it shall die. The son shall not bear the iniquity of the father, neither shall the father bear the iniquity of the son: the righteousness of the righteous shall be upon him, and the wickedness of the wicked shall be upon him.
21) But if the wicked will turn from all his sins that he hath committed, and keep all my statutes, and do that which is lawful and right, he shall surely live, he shall not die.
22) All his transgressions that he hath committed, they shall not be mentioned unto him: in his righteousness that he hath done he shall live.
23) Have I any pleasure at all that the wicked should die? saith the Lord GOD: and not that he should return from his ways, and live?
24) But when the righteous turneth away from his righteousness, and committeth iniquity, and doeth according to all the abominations that the wicked man doeth, shall he live? All his righteousness that he hath done shall not be mentioned: in his trespass that he hath trespassed, and in his sin that he hath sinned, in them shall he die.
25) Yet ye say, The way of the Lord is not equal. Hear now, O house of Israel; Is not my way equal? are not your ways unequal?
26) When a righteous man turneth away from his righteousness, and committeth iniquity, and dieth in them; for his iniquity that he hath done shall he die.
27) Again, when the wicked man turneth away from his wickedness that he hath committed, and doeth that which is lawful and right, he shall save his soul alive.
28) Because he considereth, and turneth away from all his transgressions that he hath committed, he shall surely live, he shall not die.
29) Yet saith the house of Israel, The way of the Lord is not equal. O house of Israel, are not my ways equal? are not your ways unequal?
This is actually a conversation between God and Israel, concerning their covenant.
Still, God blots names out. If the name isn't visible, it was never there.
I'm thinking it was there, because it was blotted out. If it was never there, it could not be blotted out. In the Revelation, the distinction given between those who are and are not in the Book of Life, is that some names "remain written". And as we've seen in other passages, some names are blotted out.
Whose names remain written?
Blessed is the man to whom sin is not imputed!
Much love!