Skip to content

feat(decommission): sovereign ecosystem migration, native tooling & golden sequence - #335

Merged
harshsinghmp merged 10 commits into
devfrom
feat/wave-29-lifeos-decommission
Oct 26, 2026
Merged

harshsinghmp merged 10 commits into
devfrom
feat/wave-29-lifeos-decommission

Conversation

@harshsinghmp

Copy link
Copy Markdown
Owner

Summary

  • Wave 29 — Sovereign Ecosystem Migration & Decommissioning: Fully decouples Muse Memory from legacy external environments. All identity and operational rules are synthesized into sovereign ~/.memory/USER.md.
  • Native Vibeguard Secret Scanner: Standalone memory scan-secrets [dir] command with zero external dependencies.
  • Machine Terrain Collector: Hardware, toolchains, and agent ecosystem diagnostics exported to system.md (memory terrain).
  • Sovereign Persona Engine: Custom user profile templates with customizable bracketed placeholders ([Name], [Role], [Preferences]) across 5 archetypes (memory user init [archetype]).
  • The Golden Sequence Guide: Published 4-phase best-practice workflow for using Muse Memory with AI coding agents in README.md and docs/agent-reference.md.
  • Permanently Removed Legacy Tools: Purged one-time import script src/cli/import_lifeos.ts and legacy transcript paths.

Verification Evidence

  • All automated tests pass: 1,441 tests across 217 files (bun test).
  • Static type check passes: 0 diagnostics (bunx tsc --noEmit).
  • Pre-ship secret scan clean (memory scan-secrets src).
  • Decommissioning & Sovereignty gate passes (test/sovereignty_gate.test.ts).
  • Documentation synchronized (updatedocs, README.md, claims.json, docs/cli-reference.md).

- Why: Eliminate external dependency on ~/.config/LIFEOS/USER by ingesting all personal identity, telos, operational rules, and personal notes directly into ~/.memory/USER.md and the SQLite store with Vibeguard protection.
- What: Add src/cli/import_lifeos.ts, wire 'import-lifeos' command in src/cli.ts, and add test/import_lifeos.test.ts.
- Verification: bun test test/import_lifeos.test.ts passed all 4 tests cleanly, and live import migrated 52 notes and synthesized ~/.memory/USER.md.
- Why: Replace the external dependency on ~/.config/LIFEOS/runtime/TOOLS/SecretScan.ts with a standalone, high-performance, zero-dependency secret scanner natively built into musememory.
- What: Add src/cli/secrets.ts, wire 'scan-secrets' CLI command in src/cli.ts, and add test/cli_secrets.test.ts.
- Verification: test/cli_secrets.test.ts passed all 4 tests cleanly, and live scan scanned 1,297 files in 81ms with full redaction.
…-446)

- Why: Incorporate LifeOS Atlas hardware, daemon, and package scans into unified deterministic workspace terrain maps without external daemons.
- What: Add src/vault/system.ts, src/vault/index.ts, wire 'terrain' CLI command in src/cli.ts, and add test/vault_system.test.ts.
- Verification: test/vault_system.test.ts passed all 4 tests cleanly, and live CLI compiled .memory/vault/system.md with complete host, toolchain, and agent ecosystem maps.
…-447)

- Why: Eliminate all @LifeOS imports, remove legacy LifeOS routing, and switch single source of truth and secret scanning to sovereign Muse Memory (~/.memory/USER.md and 'memory scan-secrets').
- What: Update ~/.agents/AGENTS.md, .agents/standards/memory-context.md, .agents/standards/security-vibeguard.md, and .agents/standards/workflows.md.
- Verification: Verified 0 @LifeOS imports remain in ~/.agents/AGENTS.md and standards reference sovereign ~/.memory/USER.md and memory scan-secrets.
…ion (T-448)

- Why: Provide comprehensive decommissioning verification, automated retirement audit gate, backup procedures, and mark Wave 29 completed in ticket plan and current status.
- What: Add docs/lifeos_retirement.md, test/lifeos_decommission_gate.test.ts, update .agents/context/ticket-plan.md, .agents/context/current.md, claims.json, and docs/cli-reference.md.
- Verification: bun test passed all 1,443 tests across 218 files, tsc --noEmit passed clean, and bun run build succeeded in 31ms.
- Why: Audit findings identified schema pattern mismatch in import-lifeos IDs, subshell execution risk in terrain collector, and missing single-file support and non-existent target error handling in scan-secrets.
- What: Update src/cli/import_lifeos.ts to strictly follow ^m_[0-9]+_[a-z0-9_-]+$ ID pattern, switch system terrain collector to spawnSync, and add single-file target and path existence checks in src/cli/secrets.ts.
- Verification: bun test passed all 1,444 tests across 218 files, tsc --noEmit passed clean, and bun run build succeeded in 75ms.
…it reports

- Why: Document multi-perspective quality and security gate compliance for Wave 29.
- What: Add .agents/artifacts/2026-10-26-wave-29-code-review-audit.md, .agents/artifacts/2026-10-26-wave-29-gauntlet-acceptance-packet.md, and .agents/artifacts/2026-10-26-wave-29-muse-security-audit.md.
- Verification: Linus Torvalds code-review passed, Gauntlet score 9.8/10, muse-security verified zero secret leaks and OWASP ASVS compliance.
…crub remaining references

- Remove import-lifeos command from public CLI usage string
- Update harvester comments to vendor-neutral runtime transcript directories
- Standardize constitutional rule sources to Vibeguard and Agency architecture
- Update mesh test title to Vibeguard Protocol
- 1,444 tests passing across 218 files
…ublish golden sequence docs

Why:
- The system is now completely sovereign and decoupled from legacy frameworks.
- The one-time ingestion has concluded; dedicated import tools and legacy traces must be permanently removed.
- Users need a crystal-clear, end-to-end golden sequence to maximize AI agent effectiveness.

What:
- Permanently deleted src/cli/import_lifeos.ts and test/import_lifeos.test.ts
- Removed import-lifeos / lifeos-import command handlers from src/cli.ts
- Cleaned harvester transcript scan roots in src/harvester.ts
- Converted retirement gate to test/sovereignty_gate.test.ts (asserts legacy tool removal and 0 dangling imports)
- Updated docs/lifeos_retirement.md to document permanent tool removal
- Regenerated claims.json, docs/cli-reference.md, and docs/mcp-tool-matrix.json
- Enhanced README.md and docs/agent-reference.md with 'The Golden Sequence: Best-Practice Workflow for AI Agents'
- Updated .agents/context/current.md and .agents/context/ticket-plan.md

Verification:
- bunx tsc --noEmit (0 diagnostics)
- bun test test/sovereignty_gate.test.ts (6/6 passed)
- bun test (1,441 passed across 217 files, 0 failures)
@harshsinghmp
harshsinghmp merged commit 074c6b7 into dev Oct 26, 2026
1 check passed
@harshsinghmp
harshsinghmp deleted the feat/wave-29-lifeos-decommission branch October 26, 2026 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant