|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## Spec 21 |
| 4 | + |
| 5 | +This release introduces major architectural changes to enable decentralized economic relationships, improved governance flexibility, and preparation for off-chain service integration. The changes span several months of development focused on creating a more sophisticated and scalable network. |
| 6 | + |
| 7 | +### Major Features |
| 8 | + |
| 9 | +#### Permission System (permission0 pallet) |
| 10 | + |
| 11 | +A comprehensive permission framework that revolutionizes how agents interact economically within the network: |
| 12 | + |
| 13 | +- Agents can now share their token emissions with contributors through recursive permission trees. Supports percentage-based streams or fixed amounts, with flexible distribution controls (manual, automatic threshold, scheduled). |
| 14 | +- Permissions can be managed by arbiters (multi-sig groups) for enhanced security and decentralized control. |
| 15 | +- Governance powers are now granular with specific permissions for application review, whitelist management, and penalty control. Replaces the old curator system with a more flexible approach. |
| 16 | +- Built-in protections against double-spending and infinite recursion ensure tokenomics. |
| 17 | + |
| 18 | +#### Namespace System |
| 19 | + |
| 20 | +A hierarchical naming system that functions as decentralized DNS/capability listing for agent services: |
| 21 | + |
| 22 | +- Agents can create dot-separated paths like `agent.alice.api.v2` to organize their off-chain services. |
| 23 | +- Owning a namespace gives control over all sub-paths, enabling structured delegation of services. |
| 24 | +- Base fees go to treasury while refundable deposits incentivize efficient storage use. |
| 25 | +- Namespaces can be delegated through the permission system, enabling complex service architectures. |
| 26 | + |
| 27 | +#### Agent Management Improvements |
| 28 | + |
| 29 | +- Agent names are automatically converted to namespace-compliant format (lowercase, no spaces) during the upgrade. |
| 30 | +- Curators can now freeze/unfreeze agents, adding a new governance tool for spam control. |
| 31 | +- Agent metadata updates now have cooldowns to prevent spam and ensure stability. |
| 32 | +- Burn parameters adjusted for better economic balance during high registration activity. |
| 33 | + |
| 34 | +#### Economic Enhancements |
| 35 | + |
| 36 | +- All transaction fees now flow to the treasury instead of being burned, providing sustainable funding for network development. |
| 37 | +- Only whitelisted agents receive emissions, ensuring quality participants chosen by the DAO are rewarded. |
| 38 | +- Permission holders can dynamically adjust how they distribute received emissions. |
| 39 | +- Distribution remainders are now properly accumulated, preventing token loss. |
| 40 | + |
| 41 | +#### Developer Experience |
| 42 | + |
| 43 | +- Proof-of-work based faucet for obtaining testnet tokens, preventing abuse while maintaining accessibility. |
| 44 | +- Comprehensive docs for all pallets now auto-published to GitHub Pages. |
| 45 | +- New `torus0_namespacePathCreationCost` RPC for calculating namespace fees upfront. |
| 46 | +- Integrated coverage reporting with `cargo xtask coverage` for maintaining code quality. |
| 47 | + |
| 48 | +### Bug Fixes & Safety Improvements |
| 49 | + |
| 50 | +- Critical fix ensuring stakes are properly refunded before clearing storage during de-registration. |
| 51 | +- Banned arithmetic side effects throughout the runtime, using saturating operations to prevent overflows. |
| 52 | +- All agents now automatically delegate weights to allocators, simplifying the onboarding process. |
| 53 | + |
| 54 | +### Governance Changes |
| 55 | + |
| 56 | +- Instead of all-or-nothing curator status, specific permissions can be granted. |
| 57 | +- Improved with better event emissions and clearer execution flows. |
| 58 | +- Now integrated with the permission system for more flexible control. |
| 59 | + |
| 60 | +### Infrastructure |
| 61 | + |
| 62 | +- Enhanced GitHub Actions for automated testing, documentation, and Docker builds. |
| 63 | +- Added development container configuration for consistent environments. |
| 64 | +- Migrated CI infrastructure for better performance. |
| 65 | + |
| 66 | +This release represents a fundamental evolution of the Torus Network, creating the foundation for a truly decentralized economy where agents can form complex relationships, share resources, and organize their services in meaningful ways. |
| 67 | + |
3 | 68 | ## Spec version 12 |
4 | 69 |
|
5 | 70 | ### Critical Migration & Bug Fix |
@@ -50,7 +115,7 @@ You can find the migration here: |
50 | 115 |
|
51 | 116 | The migration calculates the difference between `TotalStake` (which remained **correctly** unchanged) and sums all actual stakes on the network. The difference is then sent to a recovery account, and redistributed to the original stakers via script |
52 | 117 |
|
53 | | -**Original Stakers (OS)** |
| 118 | +**Original Stakers (OS)** |
54 | 119 |
|
55 | 120 | ```text |
56 | 121 | 5CuBSdUuBeLVxtzrTtrdiCjipEgjbvUoMJjxrss4T9f1MEoZ: 178467095451535513057748 |
@@ -87,4 +152,3 @@ The migration calculates the difference between `TotalStake` (which remained **c |
87 | 152 | - Applied saturating arithmetic in various runtime and pallet modules to prevent overflow issues. |
88 | 153 | - Improved arithmetic safety and robustness in emission and governance modules. |
89 | 154 | - Refined author identification and gas limit calculations with safer arithmetic operations. |
90 | | - |
|
0 commit comments