Phase 15.4 — VersionManager: version lineage, rollback targeting & compatibility assessment #411
web3guru888
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Phase 15.4 —
VersionManager: Architecture & DesignWelcome to the Show & Tell for
VersionManager, the fourth component of Phase 15 (Hot-Reload & Self-Modification). This component is the version ledger of the entire self-modification pipeline.What does
VersionManagerdo?VersionManagermaintains a complete version lineage for every hot-swappable module:HotSwapperrequire_approval=TrueVersion Lifecycle
Compatibility Assessment
CompatibilityLevelCOMPATIBLEMINOR_CHANGEBREAKINGreject_breaking=TrueUNKNOWNData Model
Three frozen dataclasses:
VersionCheckpointmodule_id,version,checksum,timestamp,parent_ver,tagsCompatibilityReportmodule_id,from_ver,to_ver,level,rationale,approved_byVersionManagerConfigmax_checkpoints,require_approval,auto_rollback_on_breakingrollback_target— backwards walk algorithmThis guarantees that after a health failure,
HotSwapperalways has a safe prior version to restore.HotSwapper Integration
HotSwapper.swap()now accepts aversion_managerkeyword argument:After a
COMMITTEDswap,VersionManager.record_checkpoint()is called automatically. After aROLLED_BACKresult,rollback_target()is queried andModuleRegistry.set_status(REVERTED)follows.Prometheus Metrics
asm_version_checkpoints_totalmodule_idasm_version_rollbacks_totalmodule_id,reasonasm_version_breaking_changes_totalmodule_idasm_version_pending_approvalsasm_version_lineage_depthmodule_idPromQL alerts:
Open Questions
DependencyResolverconsultVersionManagerto check cross-module compatibility before resolving topology?"stable". Worth adding atag_filterparam torollback_target()?VersionManagerstate be replicated viaFederatedBlackboard?Discussion, feedback, and +1s welcome! 🎉
Beta Was this translation helpful? Give feedback.
All reactions