diazmelgarejo/orama-system/guard-sync-divergence-guard
Claude Code and agent skill by diazmelgarejo/orama-system
- community
Checking that the SKILL.md file is still in the repository.
Fail-closed pre-sync guard for attribution-guard distribution. Scans workspace siblings before sync-attribution-guard-scripts.sh runs; aborts when a sibling carries guard mutations absent from orama canonical history. Safe when byte-identical or sibling only lags a canonical blob. Triggers on: guard sync, sync-attribution-guard-scripts, verify-guard-parity drift, sibling ahead of canonical, anti-clobber sync, GUARD_SYNC_E_DIVERGENCE, promote upstream before sync.
Install
npx vskill@latest install diazmelgarejo/orama-system/guard-sync-divergence-guardSKILL.md
The same SKILL.md was published earlier as diazmelgarejo/orama-system/guard-sync-divergence-guard.
Guard Sync Divergence Guard
Internal orama development helper. Prevents the guard-sync epic failure mode: blind sync-attribution-guard-scripts.sh overwriting a sibling's more advanced mutations.
When to Use
- Before any
sync-attribution-guard-scripts.shinvocation - When
verify-guard-parity.shreports DRIFTED but sync "fixes" feel wrong - When PT/AlphaClaw improved guards before orama absorbed them
- Pre-push on orama when manifest paths change (hook runs automatically)
Quick check
Optional explicit workspace (defaults to parent of repo root):
| Exit | Meaning | |
|---|---|---|
| 0 | Safe to sync | |
| 1 | GUARD_SYNC_E_DIVERGENCE — HITL required | |
| 2 | Usage error |
Safe vs blocked
| Sibling file vs canonical HEAD | Verdict | |
|---|---|---|
| Byte-identical | Safe | |
| Differs, sibling blob exists in canonical history | Safe (upgrade lagging copy) | |
| Differs, sibling blob absent from canonical history | Block — promote sibling first | |
| Canonical blob only in sibling history | Block — canonical is behind |
HITL workflow (AskUserQuestions)
- Identify failing
repo/pathfrom checker output. - Ask: commit sibling work? promote to orama canonical on the one open PR?
- Merge/push orama canonical, then sync downstream — never open parallel guard PRs.
- Re-run checker until PASS, then sync.
Boundaries
Manifest includes the full scripts/cursor/ grant stack (pr-body-grant-lib.py, append-pr-body.sh, guard hooks, pr-body-guard-core.py) — sync after every orama canonical grant remediation commit.
Always Do
- Run divergence check before sync and after harmonizing guard edits.
- Reuse the single open PR per repo until the wave completes.
- Promote advanced sibling → orama before orama → downstream sync.
Ask First
GUARD_SYNC_SKIP_DIVERGENCE_CHECK=1(emergency only — document why).- Changing manifest paths or checker semantics.
Never Do
- Run sync to "fix" drift when siblings are ahead of canonical.
- Open one-file / one-commit PRs per guard file.
- Skip sibling scan because only one target repo is named.
References
— algorithm, hooks, epic saga context
- `../git-history-surgery/SKILL.md` — tree-twin / re-anchor companion
- `../../references/integration-synthesis-and-verification.md`
— synthesize sibling and canonical guards (keep the stronger guarantee), verify against live code
scripts/git/check-guard-sync-divergence.sh— implementationscripts/git/guard-sync-manifest.sh— path manifest
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbin/orama-system/skills/guard-sync-divergence-guard/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/diazmelgarejo/orama-system/guard-sync-divergence-guard)