feat: disallow self-referencing nodes except via bootstrap() #13
Reference in New Issue
Block a user
Delete Branch "feat/12-no-null-type"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
put(typeHash)no longer acceptsnull. Self-referencing nodes can only be created viabootstrap().How
Store.putsignature:Hash | null→HashBOOTSTRAP_STOREsymbol forputSelfReferencing, only called bybootstrap()Ref
Closes #12
LGTM ✅ Symbol-based capability gate 干净,公共 put 不再接受 null,self-ref 只能走 bootstrap()。测试覆盖到位(含 non-capable store throws)。