Knowledge Portal · engineering documentation

Skip to content

ZAIXOS Engineering Platform — Rollback Plan

Document type: Extraction Planning Specification
Version: 1.0 · Phase: 12-4
Status: Permanent execution authority


Purpose

Define complete rollback strategy for every extraction phase — restore points, procedures, and decision authority.


Rollback timeline (when available)

Pre-12-5:  Rollback = no-op (nothing extracted)
12-5:      Rollback = delete platform repo (no consumer impact)
12-6:      Rollback = abandon platform branch; Dental Clinic unchanged
12-7:      Rollback = remove composer require + .zaixos/; restore embedded
12-8:      Rollback = revert to 12-7 dual-run or full embedded
12-9:      Rollback = revert platform.lock + restore embedded copies (12 months)
Post-GA:   Rollback = platform.lock downgrade per VERSION_TRANSITION_PLAN

Rollback principles

IDPrinciple
RB-01Dental Clinic production release branches never roll back without Architect approval
RB-02Embedded baseline SHA (PRE-2) is always restorable until 12-9 deletion
RB-03Platform repo rollback does not require product rollback if consumer not yet cut over
RB-04Consumer rollback must restore green embedded tests before merge
RB-05Git operations by Developer only

Restore points

IDNameContentsCreated
RP-0Pre-extraction baselineDental Clinic SHA + adapter checksumBefore 12-5
RP-1Post-scaffoldEmpty platform repo tag12-5 end
RP-2Post-extraction rcPlatform 1.0.0-rc.final12-6 end
RP-3Dual-run startProduct branch with composer + embedded12-7 start
RP-4Pre-GA consumerLock @ rc; embedded presentBefore 12-9
RP-5GAPlatform 1.0.0 + consumer lock12-9

Document each RP in phase Format B reports.


Rollback procedures by phase

RB-12-5 — Scaffold rollback

StepAction
1Delete or archive empty zaixos-engineering-platform repository
2No Dental Clinic changes required
3Re-plan if structure wrong

Impact: None on product.


RB-12-6 — Extraction rollback

StepAction
1Stop platform repo extraction branch
2Dental Clinic repo unchanged (extraction is copy-out)
3Fix wave failure; restart wave from last green checkpoint
4If unrecoverable: abandon platform branch; return to RP-0 planning

Impact: None on product until 12-7.


RB-12-7 — Consumer integration rollback

StepAction
1Revert product branch commits adding composer.json require
2Remove .zaixos/ directory
3Restore .cursor/ from RP-0 if materialization altered it
4Remove vendor entry; restore composer.lock
5Run PRE-1 validation suite — must pass
6Architect documents rollback in Format B

Impact: Return to embedded ERP authoritative mode.


RB-12-8 — Validation phase rollback

StepAction
1If parity fail: pin consumer to previous rc OR rollback to RB-12-7
2Do not proceed to 12-9
3Fix platform rc; re-run PV-1–PV-8

RB-12-9 — GA rollback (within 12 months)

StepAction
1Restore embedded copies from RP-0 tag archive (if not deleted) OR git history
2Revert platform.lock removal of embedded
3Pin platform package to last known good PATCH
4Rematerialize adapter
5Full PRE-1 + CO-4 validation
6Architect + Platform Architect joint decision

Note: After embedded deletion, rollback requires git history restore — mandatory tag RP-0 before 12-9 deletion.


Rollback decision matrix

SymptomRollback toAuthority
Wave checksum failSame wave restartPlatform Developer
Platform CI broken 12-6RB-12-6Platform Architect
Consumer CI broken 12-7RB-12-7Product Architect
Parity fail 12-8RB-12-7 or fix rcPlatform Architect
KPI-1 missFix docs; no rollback unless blockingArchitect
Contract text drift detectedStop all; RP-0 investigationPlatform Architect

Data preserved during rollback

DataPreserved in
Dental Clinic baselineGit tag at RP-0
Platform extraction workPlatform repo branches (even if abandoned)
Planning docsdocs/platform/planning/ (both repos after sync)
Phase reportsProduct + platform release docs

Rollback verification

After any rollback procedure:

  • [ ] PRE-1 tests green in Dental Clinic
  • [ ] No partial .zaixos/ state without lock
  • [ ] Architect Format B rollback report filed
  • [ ] Restore point ID documented

Rollback Plan v1.0 — Phase 12-4.

ZAIXOS Knowledge Portal — public engineering docs at /docs · Staff operations at /admin