- Shipped
- October 5, 2026 at 4:14 AM UTC
- Author
- Kamo
- Commit
- d7dfa99
Package com.kamo.z.shared.org.graph (pure, no beans), per KamoCollab master §6.2 and CP02 spec §5.2-§5.3: - enums OrgRelationship, CounterpartKind, OrgGraphChangeCause (STRING, append-only); - records OrgNode, OrgDepartment, OrgTeam and OrgGraphRows with its eight nested row records; - OrgGraphBuilder.build: department tree and root-to-leaf paths (chat's ancestry reversed), nodes, effective levels (D5), then OrgGraph.of; - OrgGraph: relationships (what b is to a), managementChain (BFS over manager and AI-supervisor edges), managerChain (chat's walk), reports, derivedTeam, lowestCommonManager (D9), outranks (D6, CP-D15), effectiveLevel, department heads, team leads, departmentManagerCandidates (D12), and a 24-hex content stamp. Cycle-safe throughout. Tests pin every row of spec §5.3's expected-answers table on the reference org, the cycle cases, 2,000 random shapes under a 5 s budget, the five invariants, and the stamp. Rulings CP02-T3-1..5.
