44 lines
2.0 KiB
Python
Executable File
44 lines
2.0 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
Initialize the founding entrepreneur in Book of Owners
|
|
This creates the first owner record for Robbert
|
|
"""
|
|
|
|
import csv
|
|
from datetime import datetime
|
|
import os
|
|
|
|
def initialize_founder():
|
|
"""Add the founding entrepreneur to Book of Owners"""
|
|
|
|
base_path = os.path.join(os.path.dirname(__file__), '..')
|
|
timestamp = datetime.now().isoformat() + 'Z'
|
|
|
|
# Create identity mapping (PRIVATE - not committed)
|
|
identity_file = os.path.join(base_path, 'ownership', 'identity-mapping.csv')
|
|
with open(identity_file, 'w', newline='') as f:
|
|
writer = csv.writer(f)
|
|
writer.writerow(['owner_id', 'real_name', 'email', 'display_name', 'privacy_level', 'created_date'])
|
|
writer.writerow(['001', 'Robbert Schep', 'robbert@timeline0.org', 'robbert_founder', 'alias_only', timestamp])
|
|
|
|
# Create license transaction record
|
|
transactions_file = os.path.join(base_path, 'ownership', 'license-transactions.csv')
|
|
with open(transactions_file, 'w', newline='') as f:
|
|
writer = csv.writer(f)
|
|
writer.writerow(['timestamp', 'owner_id', 'transaction_type', 'from_license', 'to_license', 'payment_eur', 'upgrade_reason', 'reference', 'approver'])
|
|
writer.writerow([timestamp, '001', 'FOUNDER', '', 'work', 0, 'founding_entrepreneur', 'system-init', 'smartup-zero-launch'])
|
|
|
|
# Update Book of Owners (PUBLIC)
|
|
book_file = os.path.join(base_path, 'ownership', 'book-of-owners.csv')
|
|
with open(book_file, 'w', newline='') as f:
|
|
writer = csv.writer(f)
|
|
writer.writerow(['owner_id', 'display_name', 'license_type', 'license_date', 'current_sk', 'voting_weight', 'status', 'last_updated'])
|
|
writer.writerow(['001', 'robbert_founder', 'work', timestamp, '0', '1.00', 'active', timestamp])
|
|
|
|
print("✅ Founding entrepreneur initialized in Book of Owners")
|
|
print("📝 Identity mapping created (private file)")
|
|
print("📊 Ready for founding work audit process")
|
|
|
|
if __name__ == "__main__":
|
|
initialize_founder()
|