memory-bridge-commit-fallbacks
Fallback procedures when the Hermes ↔ Codex memory bridge writes .Codex/memory outputs but the internal git commit/push path fails because of dirty, stale, or broken submodule state.
Best use case
memory-bridge-commit-fallbacks is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Fallback procedures when the Hermes ↔ Codex memory bridge writes .Codex/memory outputs but the internal git commit/push path fails because of dirty, stale, or broken submodule state.
Teams using memory-bridge-commit-fallbacks should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/memory-bridge-commit-fallbacks/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How memory-bridge-commit-fallbacks Compares
| Feature / Agent | memory-bridge-commit-fallbacks | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Fallback procedures when the Hermes ↔ Codex memory bridge writes .Codex/memory outputs but the internal git commit/push path fails because of dirty, stale, or broken submodule state.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Memory Bridge Commit Fallbacks ## When to use Use when running `scripts/memory/pre-bridge-quality.sh --fix` or `scripts/memory/bridge-hermes-Codex.sh --commit` in workspace-hub and the bridge successfully updates `.Codex/memory/` files, but its internal commit/push phase fails due to unrelated dirty repo state, stale/broken submodule status, or errors such as: - `fatal: 'git status --porcelain=2' failed in submodule ...` - `error: status died of signal 15` - bridge output shows files updated, then fails while stashing/pulling/committing This is a fallback for landing the bridge outputs only; do not use it to commit unrelated repo churn. ## Procedure 1. Confirm the quality gate passed and was not a degenerate-memory abort. - If score `< 50`, do **not** bridge. - If score `>= 50`, continue only if `.Codex/memory/` outputs were written. 2. Verify remote relationship before creating a manual commit: ```bash cd /mnt/local-analysis/workspace-hub git fetch origin main git rev-list --left-right --count origin/main...HEAD ``` Expected safe case: `0 0` or only local bridge work pending. If behind, avoid broad rebase/stash in a dirty checkout; resolve upstream state first or use a clean worktree. 3. Inspect only memory outputs, not repo-wide churn: ```bash git diff --cached --name-only -- .Codex/memory git status --short --ignore-submodules=all -- .Codex/memory ``` 4. Commit with an explicit pathspec so unrelated staged/dirty files are excluded: ```bash git commit -m "chore(memory): auto-refresh memory bridge ($(date +%F))" -- .Codex/memory ``` 5. Push and verify remote HEAD: ```bash git push origin main git rev-parse HEAD git ls-remote origin refs/heads/main | cut -f1 ``` 6. Verify the bridge succeeded semantically: ```bash bash scripts/memory/check-memory-drift.sh ``` Expected result: `In sync — no drift detected` and exit code `0`. 7. Report honestly: - quality score - drift count from the initial drift check - `.Codex/memory/` files updated with line counts - that the internal script commit failed and the path-limited fallback commit/push was used - final commit SHA and drift recheck result ## Pitfalls - Do not run broad `git stash`, `git add .`, or repo-wide `git commit` in workspace-hub when unrelated agent/session churn is present. - Do not trust repo-wide `git status` if submodules are broken; use `--ignore-submodules=all` and path-limited checks for `.Codex/memory/`. - Do not rerun the bridge repeatedly after outputs were written; repeated runs can change timestamps and expand the diff. - This skill overlaps with `memory-bridge-operation`; prefer updating that canonical skill when it is editable.
Related Skills
memory-bridge-operations
Operate and recover the Hermes-to-repo memory bridge: drift checks, quality gate, bridge commits, push verification, and stash recovery when pre-bridge scripts fail after generating outputs.
hermes-memory-bridge
Architecture and scripts for syncing Hermes memory into git-tracked .claude/memory/ so all machines get context via git pull. Covers quality gate, drift detection, topic mirroring, and cron automation.
verify-Codex-run-commit-vs-working-tree-before-closing
After a Codex implementation run, verify the claimed file set against the actual commit and working tree before treating the issue as fully complete.
evaluate-local-commits-via-cherry-pick-dry-run
Technique to identify which ahead commits contain real changes vs. already-merged or ephemeral content
bridge-brokerage-market-data-apis
Handle ticker symbol mismatches between brokerage exports and market data APIs
adversarial-code-review-for-committed-diffs
Systematic process for reviewing already-committed code changes to catch type inconsistencies, edge cases, and docstring gaps
targeted-artifact-commit-verification
Verify whether the exact files from a just-completed task are still uncommitted before creating another commit, especially in dirty repos with unrelated churn.
artifact-commit-verification
Class-level artifact and commit verification for claimed agent work, exact file diffs, and closeout evidence.
memory-bridge-operation
Manage the Hermes ↔ repo memory sync system — bridge, quality gate, compaction, health checks, and cron
agent-memory-bridge
Bidirectional sync between Hermes memory and Codex auto-memory, with licensed machine bootstrap. Use when context parity across agents is needed.
memory-management
Two-tier memory system for decoding workplace shorthand, acronyms, nicknames, and internal language.
clean-code-pre-commit-integration
Sub-skill of clean-code: Pre-commit Integration.