Commit Graph
573 Commits
Author SHA1 Message Date
David F GliddenandClaude Opus 4.7 7a71c7a07c wake-up/wrap-up: codify MemPalace 5-step protocol
MemPalace has always had a full memory protocol embedded in its
status response, but the skills were treating it as a library
catalog — one search on wake, nothing on wrap. Inspection revealed
the gap: the KG was empty (0 entities, 0 triples ever), and the
diary had exactly one entry, from 2026-04-09. Storage without
protocol is not memory; it is unindexed potential.

The protocol, as MemPalace itself states it:
  1. ON WAKE-UP: mempalace_status (loads protocol + AAAK spec)
  2. BEFORE RESPONDING: kg_query or search first; never guess
  3. IF UNSURE: "let me check" and query — wrong is worse than slow
  4. AFTER EACH SESSION: diary_write in AAAK format
  5. WHEN FACTS CHANGE: kg_invalidate old, kg_add new

wake-up changes:
- Step b.0: mempalace_status first (loads protocol, not just data)
- Step b.1: diary_read for claude-code agent (last 3 entries) —
  the previous self's voice
- Step b.2: kg_query on claude-code (drift patterns to hold today)
  and on pulling-thread subjects (authoritative current state)
- Step b.3: semantic searches as before
- Constraints: MemPalace is primary memory; when it disagrees with
  a memory file, trust MemPalace

wrap-up changes:
- Step 4 split into 4.a (drawer — semantic full content) and
  4.b (diary_write — AAAK compressed agent voice). Both surfaces;
  different future queries.
- New step 5: kg_invalidate facts that changed this session; kg_add
  new drift patterns, decisions, entities.
- Output template surfaces diary + KG update counts, not just drawer.

The drift-pattern handling replaces the proposed patterns-i-drift-
toward.md file idea. KG is the better home: queryable, temporal,
invalidatable. When a return is a repeat, kg_add it; wake-up's
kg_query surfaces it next session.

Verified by usage on today's session: diary entry filed (AAAK),
3 KG facts added (drift-pattern register-import-without-checking,
ARC versioning-regime ADR-005, after-the-reply-sequence staged).
This is the first real exercise of the protocol.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 14:19:09 +02:00
David F GliddenandClaude Opus 4.7 5f3ea1a695 Brewfile: capture current dev environment + mas app additions
Brings the Brewfile back into sync with the actually-installed state
(verified via brew bundle dump diff — no residual drift after this
commit). Two categories of change:

Development environment (for ARC local build, 2026-04-16):
- tap "dart-lang/dart" (required by sass)
- tap "sass/sass"
- brew "haskell-stack" (GHC toolchain via Stack for Hakyll builds)
- brew "sass/sass/sass" (Dart Sass for SCSS compilation; Hakyll's
  older libsass approach is deprecated upstream)

App Store apps installed since last Brewfile commit:
- 1Password for Safari, Current, Drafts, Flighty, forScore,
  Hyperspace, Magic Lasso, Obsidian Web Clipper, Orbot, Pages,
  PCalc, StopTheMadness Pro, Vinegar, xSearch

brew bundle check flags libpng/gh/ollama as "needs update" — that's
outdated versions of already-installed formulae, not missing entries.
Version drift; not a Brewfile error.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 13:54:22 +02:00
David F GliddenandClaude Opus 4.7 119285cf43 claude: back up custom skills, memory, and settings with symlink pattern
The ~/.claude/ directory was previously local-only — a machine wipe
would have lost the accumulated memory, custom skills, and settings.
This commit moves the durable parts into dotfiles with the same
symlink-to-home pattern used for CLAUDE.md, PENDING.md, REVIEWED.md,
and L2-BOOTSTRAP.md.

Preserved (symlinked from ~/.claude/* into here):
  skills/audit/              — thinking-folder drift scanner
  skills/symmetria/          — practice-of-return discipline
  skills/vault-update-people/ — Obsidian People-file maintainer
  skills/wake-up/            — session restoration
  skills/wrap-up/            — session state capture
  memory/                    — 55+ memory files (MEMORY.md, sessions,
                               ledgers, project state, feedback, etc.)
  settings/settings.json     — user preferences (hooks, flags, no secrets)

Deliberately NOT backed up:
  settings.local.json   — contains operational secrets (HF_TOKEN,
                           SSH password in expect scripts); by naming
                           convention, *.local.* is not synced.
                           Needs separate review and probable rotation.
  sessions/, history.jsonl, caches, telemetry — ephemeral
  plugins/, marketplace skills and agents — reinstallable

The working copies at ~/.claude/skills/* and
~/.claude/projects/-Users-davidglidden/memory are symlinks into this
directory, so every write flows here automatically. install.sh
recreates the symlinks on a fresh machine.

FOLLOW-ON (flagged, not in this commit):
  settings.local.json contains a HuggingFace token and an SSH password
  as plaintext strings inside allowed Bash command patterns. These
  should be rotated and moved to secure storage (keychain / pass /
  env file outside the settings file).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 13:51:04 +02:00
David F GliddenandClaude Opus 4.7 dcbba606ea pre-commit: scan staged diff (added lines only), not whole files
The prior hook piped staged filenames through xargs grep, scanning the
entire current file content. This produced false positives whenever a
modified file contained pre-existing TODO/FIXME/XXX markers anywhere —
even if the staged change did not touch those lines. Six --no-verify
bypasses accumulated in two days as a result: the commits were not
introducing any new TODO markers; they simply modified files that had
template or documentary use of those tokens.

Fix:
- Collect added lines from the staged diff once (git diff --cached -U0,
  filtered to lines starting with + and excluding +++ file headers)
- Scan that set for debugging-keyword and secret patterns
- Pre-existing content in modified files no longer triggers the hook

Also:
- Show the matched lines when warning (previously the hook said
  "Found debugging keywords" without indicating which)
- Read from /dev/tty explicitly so interactive prompts work even when
  stdin is closed by the commit driver
- Non-interactive contexts: proceed on TODO warnings (least invasive);
  block on secret matches (most invasive); in both cases state clearly
  what's happening

--no-verify is used on this commit only because the hook file itself
contains the literal scan patterns (TODO:, FIXME:, XXX:) inside its
grep regex. The new hook's scan of added lines therefore matches its
own source at commit time — a one-time bootstrap issue. This should be
the LAST --no-verify in this pattern. Future commits with legitimate
no-TODO-marker changes will pass cleanly; future commits that genuinely
introduce new TODO markers will correctly prompt for confirmation.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 13:37:23 +02:00
David F Glidden 45a5beee51 🔧 Auto-commit from sysupdate on 2026-04-16 18:12 2026-04-16 18:12:51 +02:00
David F Glidden 265d782eee 🔧 Auto-commit from sysupdate on 2026-04-05 21:31 2026-04-05 21:31:15 +02:00
David F GliddenandClaude Opus 4.6 bf4239a39f docs: REVIEWED-17 — ICP-19 Mandated External Review authorized
Closes AF-7. Lifts GOV-05/06 suspension clauses. Four open items
before first review cycle.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 10:53:54 +01:00
David F GliddenandClaude Opus 4.6 1e8a09a085 docs: REVIEWED-16 — I16 The Asymmetry Obligation authorized
Cluster A complete (I15, I16, I17). AF-7 advances immediately as
post-authorization action item.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 10:35:45 +01:00
David F GliddenandClaude Opus 4.6 9a169a362f docs: REVIEWED-15 — I17 Precedence of Present Expression authorized
Full registry entry, jurist amendment incorporated, DN-GOV-08
evaluation passed. L1 contamination: critical, monotonic.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 10:12:02 +01:00
David F GliddenandClaude Opus 4.6 e6479f2546 docs: REVIEWED-14 — DN-GOV-08 authorized as ACTIVE record
Constitutional stabilization, not automation of recognition.
Source: Chamber Phase 1. Phase 3 placeholder recorded.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 00:46:50 +01:00
David F GliddenandClaude Opus 4.6 500c68fa0c docs: REVIEWED-13 — authorize DN-GOV-05/06/07 with jurist additions
DN-GOV-05 (Bounded Self-Repair): design commitment with suspension
clause — enforcement not active until AF-7 reaches design commitment.

DN-GOV-06 (Temporal Authorization Shift): design commitment with
suspension clause + jurist constraint: temporal shift does not relax
the four-condition test, only changes who initiates.

DN-GOV-07 (Threshold Already Crossed): framing document with two
additions: working framing explicitly provisional, counter-norm on
inherited legitimacy (each crossing requires independent warrant).

AF-7 escalated to urgently load-bearing — condition for suspension
clause lifting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 00:41:18 +01:00
David F GliddenandClaude Opus 4.6 0d1c83c3a6 docs: PENDING-14 — DN-GOV-08 constitutional stabilization
Chamber Phase 1 surfaced that L2 governance is either automation
of recognition (drift risk) or constitutional stabilization (the
architecture's intent). Both steward and jurist flagged as Tier 1.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 17:57:38 +01:00
David F GliddenandClaude Opus 4.6 066a47a26b Audit and optimize for CapableMind development
Brewfile: stripped to essential tools (~600MB freed), removed boost,
cmake, aerc, newsboat, fontforge, starship, and 24 auto-dependencies.
Added caffeine, ollama, fastfetch, ocrmypdf, tea, sshpass, vitetris.
Dropped 1password, iterm2, github-desktop, hazel, swiftbar, oversight.

Shell: fixed all stale references (fzf, zoxide, starship, old paths,
Homebrew node aliases). Updated project paths to ~/_Dev/. Added
CapableMind aliases (cm, bmf, bmf-health, bmf-status, bmf-logs).

Configs: removed iterm2, neofetch, swiftbar configs. Added capablemind
(launchd plists, MCP example, bmf-start script). Updated SSH config
with git.skemantix.com. Added CLAUDE.md to dotfiles.

Scripts: consolidated 3 backup scripts into 1 (backup-all-secrets.sh),
added pass store backup. Added setup-capablemind.sh for full environment
reconstruction. Updated symlinks.sh for new config structure.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 23:45:33 +01:00
David F GliddenandClaude e7bb361bd2 ✨ Perfect man page viewer with optimal side-by-side layout
## Enhanced man function following Prime Directive principles
- **Durable**: Robust cross-terminal support (kitty/tmux/iTerm)
- **Thoughtful**: Optimal 60/40 split (~100 chars CLI, ~64 chars reading)
- **Lasting**: Clean code, proper error handling, graceful fallbacks

### Key Features
- Beautiful syntax highlighting with Nord theme
- Responsive width adaptation via MANWIDTH
- Kitty remote control with proper resize shortcuts
- Clean traditional appearance (no line numbers)
- Stays open until user dismisses

### Technical Improvements
- Uses /usr/bin/man explicitly to prevent recursion
- Proper environment detection and fallback chain
- Added kitty resize shortcuts to config
- Removed debug output for clean UX

### Files Updated
- shell/functions.zsh: Complete man() rewrite
- config/kitty/kitty.conf: Added resize shortcuts
- shell/aliases.zsh: Batman alias compatibility
- Cleanup of merged files and plugin updates

μέτρον γὰρ καὶ συμμετρία - measure, proportion, and what is fitting

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-29 21:44:41 +02:00
David F GliddenandClaude 9d9c0ad241 🦇 Batman returns with enhanced powers
- Enhanced man function opens in new window with bat + Nord theme
- Batman alias now uses enhanced man function for muscle memory
- Added license scanner utility
- Fixed shell loading to use only dotfiles versions
- Added dotfiles/bin to PATH for custom scripts
- Removed legacy .zsh loading conflicts
- Fixed bat path issue for new shell contexts

Following prime directive: respecting muscle memory while enhancing capability

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-28 23:34:11 +02:00
David F GliddenandClaude 389febb161 🚀 Complete machine migration setup with encrypted backups
- Added comprehensive configuration files for seamless migration
- SSH, GPG, Karabiner, iTerm2, Neofetch, SwiftBar configs
- Pass license management system with templates and documentation
- Enhanced shell functions with MAS updates and moon phase tracking
- Comprehensive encrypted backup system (GPG AES256)
- Included encrypted backups of all sensitive data
- BBEdit as default editor with proper configuration
- Fixed shell compatibility issues
- Merged existing .zsh configs with improvements

Security:
- All sensitive data is GPG encrypted (.gpg files)
- Private keys excluded from version control
- Only configs and encrypted backups are tracked

Following prime directive: durable, thoughtful solutions

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-28 23:10:36 +02:00
David F GliddenandClaude a0e34f78ae Recover missing Brewfile and enhance system updates
- Add missing Brewfile (found in home directory)
- Add bashrc and FZF configurations to dotfiles
- Install mas CLI for Mac App Store management
- Enhance sysupdate() with moon phase and MAS updates
- Update symlinks script for all shell configs

🖖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-28 19:13:11 +02:00
David F GliddenandClaude 1f543d195b Add comprehensive system enhancements and shell configurations
Following the μέτρον principle of durable, thoughtful solutions:

Shell Configuration:
- Add refined .zshrc with modular architecture
- Include .p10k.zsh for Powerlevel10k prompt
- Add .zprofile for login shell configuration
- Update aliases with new dotfiles management tools

System Management Tools:
- safe-update.sh: System updates with rollback protection
- detect-drift.sh: Configuration drift detection
- system-health.sh: Comprehensive health monitoring
- generate-lockfile.sh: Version tracking for reproducibility

Documentation:
- ARCHITECTURE.md: Philosophy and design rationale
- USAGE.md: Practical guide and troubleshooting

Other Updates:
- Update symlinks.sh to manage all config files
- Add .vimrc configuration
- Create Brewfile.lock for version pinning

These enhancements provide visibility, safety, and maintainability
while following the prime directive of prioritizing durability.

🖖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-27 22:27:54 +02:00
David F GliddenandClaude 92b0ead991 Add completion cleanup script and deploy refined shell config
🧹 Completion system maintenance:
- Remove old Mullvad VPN completion files
- Clear completion cache for fresh start
- Check for NordVPN completion availability

🚀 Deployment successful:
- Backed up original .zshrc
- Symlinked refined modular configuration
- Git hooks configured globally
- All scripts and configs linked

System now running with enhanced durability principles! 🎯

🤖 Generated with Claude Code (https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-27 14:05:56 +02:00
David F GliddenandClaude 546e43fc64 Refactor shell configuration following prime directive principles
🎯 Comprehensive refinement addressing durability and maintainability:

**Modular Architecture:**
- environment.zsh: Centralized environment variables with XDG compliance
- paths.zsh: Intelligent PATH management with existence checking
- aliases.zsh: Enhanced aliases with tool fallbacks and context awareness
- functions.zsh: Sophisticated functions with error handling and recovery
- .zshrc: Clean main config with graceful degradation

**Key Improvements:**
- ✅ Fixed PATH duplication and made portable
- ✅ Added graceful dependency handling throughout
- ✅ Enhanced vault/chamber/work context integration
- ✅ Comprehensive error recovery in sysupdate()
- ✅ Intelligent tool detection and fallbacks
- ✅ Performance optimizations for different shell modes

**Philosophy Applied:**
- μέτρον (measure): Right amount of features without bloat
- συμμετρία (proportion): Balanced modular structure
- πρόσφορον (fitting): Portable, maintainable, testable

**Testing:**
- Syntax validation for all modules
- Function loading verification
- Isolated test environment
- Ready for production deployment

🤖 Generated with Claude Code (https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-27 14:01:23 +02:00
David F GliddenandClaude 6ce6e7c042 Add Gitea clone option to README
- Include both GitHub and Gitea clone commands
- Provide redundancy for repository access
- Label Gitea as alternative mirror

🤖 Generated with Claude Code (https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-27 13:40:44 +02:00
David F GliddenandClaude 8bddc004a7 Add SSH key backup script and fix git config
- Copy actual .gitconfig instead of placeholder
- Create encrypted SSH key backup script with GPG
- Add SSH-based remote setup script
- Include restore instructions and security notes

🤖 Generated with Claude Code (https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-27 13:23:22 +02:00
David F GliddenandClaude 0838f1cf8c Initial commit: Complete macOS dotfiles system
🖖 Features:
- Master 'engage' script for one-command setup
- 120+ CLI tools via Homebrew
- 40+ Applications (casks + MAS apps)
- Complete macOS system configuration
- Security hardening and privacy settings
- Obsidian knowledge vault setup
- Comprehensive backup strategies
- Automated symlink management

Live long and prosper\! 🚀

🤖 Generated with Claude Code (https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-27 13:17:01 +02:00