nx_ownership_commitment.nx source
↩ module page · 93 lines · 4409 B
1// nx_ownership_commitment.nx -- sealed mission-lock verdict.
2//
3// license_tier: PUBLIC_NISHI_SUBSTRATE
4// genealogy_id: patagonia_2022_purpose_trust + steward_ownership_DE_2021 +
5// ossi_open_source_seed_initiative_pledge_2014 +
6// nishi_pillar_11_founder_team_capture_2026
7//
8// Pillar 11 of the greenhouse prevention framework: structural
9// anti-capture commitments encoded at the substrate level. Bylaws
10// as code, not just paper.
11//
12// Every breeding line, substrate primitive, community asset, and
13// company resource gets a commitment verdict at creation. Substrate-
14// level transfer-check ensures a sell / transfer / merge cannot
15// REDUCE a commitment level (additive-only per Cardinal 13 applied
16// to governance itself).
17//
18// The point: the company can grow, raise capital, even be acquired,
19// and the community assets stay protected. Acquirer can have the
20// business; they cannot patent your Cherokee Purple lineage or close
21// the substrate.
22//
23// ===== The commitments ============================================
24//
25// STANDARD - default commercial entity ownership;
26// company can freely sell/transfer.
27// MISSION_LOCKED - bylaws constrain operations to mission
28// statement; transfer requires successor
29// to honor same mission.
30// PUBLIC_BENEFIT - Public Benefit Corp status (Delaware
31// ยง362 or equivalent); legally enforceable
32// public-benefit purpose.
33// STEWARD_OWNED - Patagonia / Bosch / Veld pattern;
34// shares held in purpose trust; profits
35// constrained-to-mission by trust deed.
36// OSSI_PLEDGED - irrevocable pledge: this variety/lineage
37// cannot be patented, ever, by anyone.
38// Mirrors Open Source Seed Initiative
39// 2014 pledge.
40// COMMUNITY_COMMONS - asset belongs to community-owned
41// commons; if company dissolves, asset
42// transfers to community trust.
43
44const NX_OWN_STANDARD: i64 = 1
45const NX_OWN_MISSION_LOCKED: i64 = 2
46const NX_OWN_PUBLIC_BENEFIT: i64 = 3
47const NX_OWN_STEWARD_OWNED: i64 = 4
48const NX_OWN_OSSI_PLEDGED: i64 = 5
49const NX_OWN_COMMUNITY_COMMONS: i64 = 6
50
51func nx_own_commitment_name(v: i64) -> *u8 {
52 if v == NX_OWN_STANDARD { return "STANDARD" }
53 if v == NX_OWN_MISSION_LOCKED { return "MISSION_LOCKED" }
54 if v == NX_OWN_PUBLIC_BENEFIT { return "PUBLIC_BENEFIT" }
55 if v == NX_OWN_STEWARD_OWNED { return "STEWARD_OWNED" }
56 if v == NX_OWN_OSSI_PLEDGED { return "OSSI_PLEDGED" }
57 if v == NX_OWN_COMMUNITY_COMMONS { return "COMMUNITY_COMMONS" }
58 return "UNKNOWN"
59}
60
61// Strength ordering: a transfer can never reduce strength. Each
62// commitment has a strength rank; substrate-level transfer check
63// refuses any transfer where target_strength < source_strength.
64func nx_own_strength_rank(v: i64) -> i64 {
65 if v == NX_OWN_STANDARD { return 0 }
66 if v == NX_OWN_MISSION_LOCKED { return 1 }
67 if v == NX_OWN_PUBLIC_BENEFIT { return 2 }
68 if v == NX_OWN_STEWARD_OWNED { return 3 }
69 if v == NX_OWN_OSSI_PLEDGED { return 4 }
70 if v == NX_OWN_COMMUNITY_COMMONS { return 5 }
71 return -1
72}
73
74// Transfer-check primitive. Returns 1 if transfer is allowed (target
75// commitment is at least as strong as source); 0 otherwise.
76func nx_own_transfer_allowed(source_commitment: i64, target_commitment: i64) -> i64 {
77 let src_rank: i64 = nx_own_strength_rank(source_commitment)
78 let tgt_rank: i64 = nx_own_strength_rank(target_commitment)
79 if src_rank < 0 { return 0 }
80 if tgt_rank < 0 { return 0 }
81 if tgt_rank >= src_rank { return 1 }
82 return 0
83}
84
85// Is this commitment patentable (i.e. could the asset be patented
86// by anyone)? OSSI_PLEDGED and COMMUNITY_COMMONS are NEVER
87// patentable; the substrate refuses to register a patent claim
88// against such assets.
89func nx_own_is_patentable(v: i64) -> i64 {
90 if v == NX_OWN_OSSI_PLEDGED { return 0 }
91 if v == NX_OWN_COMMUNITY_COMMONS { return 0 }
92 return 1 // STANDARD / MISSION_LOCKED / PUBLIC_BENEFIT / STEWARD_OWNED are theoretically patentable
93}