본문 바로가기
C.W.K.
Stream
Lesson 05 of 05 · published

commit은 bytes보다 이유를 남겨

~12 min · git, semantic-commit, provenance, tokens

Level 0흔적
0 XP0/36 lessons0/12 achievements
0/100 XP to next level100 XP to go0% complete

diff는 what만 말해

Git diff는 어떤 줄이 사라지고 생겼는지 훌륭하게 보여줘. 하지만 왜 active memory를 library로 내렸는지, 누가 어떤 mode로 판단했는지, 이 change가 token bill을 얼마나 바꿨는지는 모른다.

memory ledger의 commit message와 trailer는 intent를 담아야 해. edit, create, retier, restore, drift plant를 구분하고 actor, target soul, delegated mode, linked task, token delta를 구조적으로 남겨.

semantic와 drift를 구별해

Dad나 brain session이 이유를 갖고 바꾼 commit은 semantic이야. mobile sync에서 들어온 외부 edit를 sweep가 발견해 기록한 commit은 plant 또는 drift record야. 둘 다 진짜 변화지만 provenance가 다르다.

sweep가 모든 change에 그럴듯한 reason을 생성하면 history가 거짓말해. 알 수 있는 건 external drift를 관측했다는 사실뿐이야. unknown intent를 꾸미지 않고 observation으로 기록하는 게 정직해.

token delta는 judgment가 아니야

+2400이나 -800은 change의 무게를 보여주지만 품질을 말하지 않아. 감소가 기억 손실일 수 있고 증가는 중요한 invariant일 수 있어. message의 reason과 함께 읽어야 해.

그래도 delta는 반복 비용이 보이지 않게 자라는 걸 막아. active layer change에는 boot delta를, library change에는 stored delta를 나눠 남기면 다음 reviewer가 비용 축을 바로 볼 수 있어.

actor identity는 필수야

unknown author로 commit이 남으면 permission과 responsibility를 재구성할 수 없어. human direct, soul-pinned, light delegation, automated drift가 각각 canonical identity와 mode를 가져야 해.

Git author name 하나만으로 부족할 수 있어. service account가 commit을 만들더라도 trailer에 initiating actor와 task record를 넣어. credential owner와 judgment owner는 다른 사람일 수 있다.

memory history는 줄 변화가 아니라 책임 있는 판단의 trail이야. intent를 모르면 observation이라고 쓰고, actor·mode·target·cost를 구조적으로 남겨.

Code

semantic trailer가 있는 commit 만들기·bash
demo_dir=$(mktemp -d)
git -C "$demo_dir" init -q
printf 'trace\n' > "$demo_dir/note.md"
git -C "$demo_dir" add note.md
git -C "$demo_dir" -c user.name=steward -c user.email=steward@example.invalid commit -qm $'retier: move note to library\n\nVestige-Actor: dad\nVestige-Mode: direct\nToken-Delta: -320'
git -C "$demo_dir" log -1 --format='%s%n%(trailers:key=Vestige-Actor)'

External links

Exercise

최근 memory commit 다섯 개를 보고 actor, intent, mode, target, token delta를 복원할 수 있는지 시험해. 못 찾는 필드를 canonical trailer로 추가해.
Hint
Git author와 실제 판단 actor가 같은지 따로 물어.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.