diazmelgarejo/orama-system/guard-sync-divergence-guard

Claude Code and agent skill by diazmelgarejo/orama-system

Trust tier 2
  • community
LLM review pending
Source check pending

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-guard

SKILL.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.sh invocation
  • When verify-guard-parity.sh reports 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

bash
bash scripts/git/check-guard-sync-divergence.sh --workspace

Optional explicit workspace (defaults to parent of repo root):

bash
WORKSPACE_ROOT="${WORKSPACE_ROOT:-$REPO_ROOT/..}" \
bash scripts/git/check-guard-sync-divergence.sh --workspace
ExitMeaning
0Safe to sync
1GUARD_SYNC_E_DIVERGENCE — HITL required
2Usage error

Safe vs blocked

Sibling file vs canonical HEADVerdict
Byte-identicalSafe
Differs, sibling blob exists in canonical historySafe (upgrade lagging copy)
Differs, sibling blob absent from canonical historyBlock — promote sibling first
Canonical blob only in sibling historyBlock — canonical is behind

HITL workflow (AskUserQuestions)

  1. Identify failing repo/path from checker output.
  2. Ask: commit sibling work? promote to orama canonical on the one open PR?
  3. Merge/push orama canonical, then sync downstream — never open parallel guard PRs.
  4. 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

— synthesize sibling and canonical guards (keep the stronger guarantee), verify against live code

  • scripts/git/check-guard-sync-divergence.sh — implementation
  • scripts/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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/diazmelgarejo/orama-system/guard-sync-divergence-guard/badge)](https://verified-skill.com/skills/diazmelgarejo/orama-system/guard-sync-divergence-guard)

Something wrong with this skill or its page? Tell us.