confucius is easy to misread as a fortune-cookie guy. he wasn't. he was a working teacher in a violent, unstable time who believed the way you fix a person, or a state, is by getting the small daily stuff right, over and over, until it becomes who you are.
his own life is a loop story of a different kind. he built a career the slow way from nothing, got a senior post in his home state, tried to weaken three powerful families who ran private fortified cities inside it, and lost. he left around 497 bce and spent roughly thirteen years wandering — wey, song, zheng, chen, cai, chu — offering rulers government by virtue and ritual instead of law and punishment. state after state: an audience, some polite interest, no job. he was in his late sixties when he went home.
the teaching he did in those last years is what survives, and it's about habit at its root. one of his students, zengzi, is recorded saying he examined himself daily on three points — was i faithful, was i sincere, did i actually practise what i was taught. confucius describes his own growth in decades: at fifteen he set his heart on learning, at thirty he stood firm, at forty he had no doubts, at seventy he could follow his heart without stepping over the line. that's not a conversion story. that's a life-long build.
the mechanism, in his words as we have them: when you see a worthy person, think about how you can equal them; when you see an unworthy one, look at your own conduct. use everyone as a mirror. check yourself daily. practise the ritual — the small proper act — until the character follows. he thought people led by punishment learn to dodge punishment. people led by example learn to feel shame and come round on their own.
honest note: everything he 'said' comes through students and their students, edited over centuries. treat any single line as probable, not certain. the shape of the teaching, though, is solid — and for the loop it's very simple. you don't get out in a moment. you get out by what you do the next hundred ordinary days.