소스 정보
- 저장소
- lukemcqueen/hermes-cortex
- 최근 소스 활동
- 2026년 8월 7일 10:25
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 1
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/lukemcqueen/hermes-cortex --skill migration-deploy-verification명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| name | migration-deploy-verification |
| description | Use when a repo migration is missing from the live DB. |
| version | 1.0.0 |
| category | devops |
| platforms | ["linux","macos"] |
Versioned SQL migrations in this fleet deploy through a chain of FIVE independent links. Any one link missing silently breaks the whole chain — the repo can carry the fix while every host keeps the old broken function.
ops/services/<svc>/schema/vNNN__*.sql (1) repo file committed
→ register() line in cortex-update.sh (2) deploy map
→ ${CORTEX_DEPLOY_HOME}/services/<svc>/schema/vNNN__*.sql (3) deployed dir
→ migrate.py (globs the DEPLOYED dir) (4) migration runner
→ <svc>.schema_version row (5) live DB applied
ops/services/<svc>/migrate.py discovers migrations with
schema_dir.glob("*.sql") where schema_dir is its sibling deployed
directory (~/.hermes-cortex/services/<svc>/schema/). A migration committed
to the repo but missing its register() line never reaches the deployed dir,
so the version-gated runner NEVER applies it — even though the file "exists"
in the repo and tests pass against the repo path.
# 1. Repo has the migration?
ls ops/services/<svc>/schema/vNNN__*.sql
# 2. Deploy map has it? (MISSING = the bug)
grep -n 'register.*vNNN' ops/scripts/cortex-update.sh
# 3. Deployed dir has it?
ls ~/.hermes-cortex/services/<svc>/schema/
# 4. Runner sees it — run from the DEPLOYED path, not the repo:
python3 ~/.hermes-cortex/services/<svc>/migrate.py # expect "up to date (version N)" or applies
# 5. Live DB applied it?
docker exec -i mycortex-postgres psql -U mycortex -d mycortex -t -A \
-c "SELECT version, applied_at, applied_by FROM <svc>.schema_version ORDER BY version;"
schema_version.applied_by=mycortex + applied_at EARLIER than the commit
timestamp = someone applied the SQL to the DB by hand (or pointed migrate.py
at the repo dir). The local host LOOKS fixed ("schema_version is at N!"), but
every other host is still broken — the deploy map was never updated. A
"root cause confirmed" report can be partially stale: verify the live DB
before trusting the narrative, then fix the durable gap (link 2).
Real case 2026-08-07: tasks v003 (cancelled→column NULL) and v004 (ON
CONFLICT column preservation) sat in the repo with their L1 test while
cortex-update.sh shipped only v001+v002. Local DB was hand-migrated 9
minutes before the commit; fleet hosts stayed at version 2 with the broken
WHEN 'cancelled' THEN 'done' derivation (any cancel → tasks_check
violation). The deploy-map gap was the real remaining bug.
ops/scripts/cortex-update.sh:
register "ops/services/<svc>/schema/vNNN__foo.sql" "${CORTEX_DEPLOY_HOME}/services/<svc>/schema/vNNN__foo.sql"
bash ~/hermes-cortex/ops/scripts/cortex-update.shtasks schema up to date (version N) — no-opbash tests/test-tasks-schema.sh
style): fresh DB v001→vNNN, assert schema_version == count of repo v*.sql files, assert the fixed behaviour (e.g. cancelled→column NULL).Use this skill when:
references/tasks-v003-v004-deploy-gap-2026-08-07.md — full session trace: masking, diagnosis, fix, verification evidence