Skip to main content

MasterChief V4 Recovery / Restoration Guide

MasterChief is a modular platform for DevOps, automation, dashboards, addon hosting, and AI-assisted operational workflows. This repository represents the recovered and stabilized state of the app after a major restoration pass, with route inventory corrected, dashboard navigation rebuilt, diagnostics repaired, additive feature wiring restored, and the app brought back to a working, navigable condition.

This README is meant to be both a working developer guide and a fail-safe operational document. It specifically emphasizes how to protect the current working state, create safe release branches, and roll back quickly if a deployment or code change causes issues.

Current Recovery Status

The current branch state is intended to preserve a usable, repaired project while keeping a clean rollback path.

Key restoration areas include:

  • core dashboard startup and runtime initialization
  • route mapping and route inventory recovery
  • UI and menu restoration
  • diagnostics and system health API recovery
  • gallery and metadata operations
  • addon/module loading and dynamic route safety
  • Echo chat and voice command support
  • general project stability and route coverage

This repo should be treated as a working operational platform, not a throwaway prototype. The project has been repaired, extended, and stabilized enough to be used and released with caution.

Critical Safety Principle

Do not push directly from the active working directory unless you have verified the branch, commit set, and release scope.

The safest process is:

  • keep the current live project directory as-is
  • create a dedicated release branch for the recovered work
  • back up the project directory before major changes
  • tag and push only the intended release branch
  • keep the old version available as a reference and rollback target

Use a separate release branch so the old version remains available for restore.

Suggested pattern:

  • masterchief-V4: recovered and stabilized release branch
  • legacy/backups: preserved old version branch or archived copy

Example:

git checkout -b masterchief-V4

If you want to preserve an older branch for posterity instead of touching it:

git checkout -b retro-version

This keeps the older version intact while allowing the recovered version to move forward cleanly.

Backup Before Any Risky Move

Before any commit, tag, or push, create a backup of the working directory.

Windows backup example

Copy-Item -Recurse -Force "C:\Users\Echo\masterchief" "C:\Users\Echo\masterchief-backup-$(Get-Date -Format yyyyMMdd-HHmmss)"

Alternative archive example

Compress-Archive -Path "C:\Users\Echo\masterchief" -DestinationPath "C:\Users\Echo\masterchief-backup-$(Get-Date -Format yyyyMMdd-HHmmss).zip" -Force

This is the safest fail-safe if anything goes wrong during a release or branch change.

Fast Fail-Safe Rollback

If something breaks after a push, tag, merge, or release attempt, use the following rollback path.

Option 1: Roll back to the last good commit

git log --oneline --decorate --max-count=20
git checkout <last-good-commit>

or if you want to reset the current branch cleanly:

git reset --hard <last-good-commit>

Option 2: Revert a recent bad commit

git revert <commit-sha>

Option 3: Restore from backup folder

If the repo or working directory becomes unsafe:

Copy-Item -Recurse -Force "C:\Users\Echo\masterchief-backup-<timestamp>" "C:\Users\Echo\masterchief"

or if you archived it:

Expand-Archive -Path "C:\Users\Echo\masterchief-backup-<timestamp>.zip" -DestinationPath "C:\Users\Echo"

Safe Release Workflow

Before pushing, do not use broad staging commands such as:

git add .

Instead, stage intentionally:

git status
git add -p
git diff --cached --name-only

Then review exactly what is being included.

Example release tag

git tag -a v0.9.0 -m "MasterChief V4 recovery release"
git push origin masterchief-V4 --follow-tags

This creates a clean, recordable version marker for the recovered build.

Minimum Local Run

Use the venv in this workspace:

Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
.\venv\Scripts\Activate.ps1
python main.py --port 8084

Then open:

Core Application Layout

This project is organized around a central Flask app and modular runtime components.

Main entry points

  • main.py: application bootstrap, routes, UI shell, and app wiring
  • templates/: dashboard and HTML shell assets
  • blueprints/: modular route groups and feature surfaces
  • features/: feature registration and manager logic
  • data/: persistent app data and uploaded/generated content
  • echo/: echo chat, prompt flow, and runtime logic
  • addons/, modules/, scripts/: extension and automation surfaces

Notable Functional Areas Restored

  • route inventory and app shell recovery
  • dashboard navigation and menu system restoration
  • diagnostics and system route health checks
  • gallery screens and upload workflow
  • module loading and dynamic route startup safety
  • Echo chat and voice command UI interactions
  • internal feature manager and plugin-style registration
  • platform configuration and runtime safe fallback behavior

Do Not Do This Without Verifying

Avoid the following when preparing a release:

  • force-pushing without a backup
  • staging every changed file indiscriminately
  • pushing from a dirty working tree without review
  • replacing an old branch with a new one unless you deliberately intend to do so
  • deleting the old version before preserving a restore copy

Release Checklist

Before a push, confirm all of the following:

  • project backup has been created
  • working tree is reviewed
  • only intended files are staged
  • branch is a dedicated recovery/release branch
  • version tag is created
  • push is limited to the release branch and tags
  • rollback path is documented and preserved

Example Safe Commands

# 1) create backup
Copy-Item -Recurse -Force "C:\Users\Echo\masterchief" "C:\Users\Echo\masterchief-backup-$(Get-Date -Format yyyyMMdd-HHmmss)"

# 2) branch cleanly
git checkout -b masterchief-V4

# 3) stage intentionally
git add -p

git diff --cached --name-only

# 4) commit
git commit -m "Restore app stability and dashboard functionality"

# 5) tag
git tag -a v0.9.0 -m "MasterChief V4 recovery release"

# 6) push
git push origin masterchief-V4 --follow-tags

Troubleshooting Notes

If the app fails to start or route pages stop working:

  1. restore from the latest backup
  2. verify the app entrypoint is still main.py
  3. confirm required runtime files still exist under data/ and templates/
  4. check for stale artifact directories or local generated folders that may have drifted
  5. revert only the last bad commit instead of a broad rollback

Treat this repository as a living operational system with a documented rollback path. The key to preserving progress is to keep old versions intact, create new release branches, and always have a backup ready before changing the repo state.

License

This project should be treated according to the repository's existing licensing terms. See the included LICENSE file if present in the project root.

Final Notes

This V4 recovery version is a meaningful milestone: the app is functional again, the key route structure is restored, and the system has been repaired enough to continue forward safely. The safest release is not the fastest push; it is the one that preserves the old version and allows a clean rollback if the new version has issues.

Metadata

Release files for masterchief 2.2.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for masterchief 2.2.7
File Size Uploaded
masterchief-2.2.7.tar.gz 1.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for masterchief 2.2.7
File Interpreter ABI Platform
masterchief-2.2.7-py3-none-any.whl Python 3 none any Details

Total release size: 3.8 MB

Release files / masterchief-2.2.7.tar.gz

Download URL masterchief-2.2.7.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
18a0355e4c58e5fb05874feac4c96049d118e1383f51eff351e19bcb1694e2dc
BLAKE2b-256 checksum
How to use checksums
dde5429814bb179138556f31a819069b040c60429543d4f1f9f799509bb2fe8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / masterchief-2.2.7-py3-none-any.whl

Download URL masterchief-2.2.7-py3-none-any.whl
Size 2.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f8db952586795c87b2ff08b2a3acab62d07ac30ef08c208a76520acb21ba5131
BLAKE2b-256 checksum
How to use checksums
db83691e800a2813fcf99be4b7d87c21fdaa2cbc7ad8c8d339dea2048d05f0bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

2.2.8

2 release files

This release

2.2.7 This release

2 release files

2.2.6

2 release files

2.2.5

2 release files

2.2.4

2 release files

2.2.3

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page