소스 정보
- 저장소
- lukemcqueen/hermes-cortex
- 최근 소스 활동
- 2026년 8월 8일 19:47
- 감지된 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 cron-output-contracts명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | cron-output-contracts |
| description | Use when a script reads another cron's output or retires. |
| version | 1.0.0 |
| author | Hermes Cortex |
| license | MIT |
| platforms | ["linux","macos"] |
Job ids are ephemeral: they change whenever a cron is recreated
(re-install, re-create, migrate). A script that reads
~/.hermes/cron/output/<hardcoded-id>/ goes silently blind the day the
cron is recreated under a new id — it still exits 0, still logs, still
"runs", and fixes nothing.
Real case (2026-08-08): agent-remediate-apply.py hardcoded
SENSOR_JOB_ID="2c71ffaf3a55" while the live agent-remediation-sensor
ran under 0afb2f94d9b7. The deterministic fixer was a no-op for weeks
and nobody noticed — the sensor itself looked healthy.
Canonical resolution — by NAME, from jobs.json:
import json
from pathlib import Path
HOME = Path.home()
SENSOR_JOB_NAME = "agent-remediation-sensor"
OUTPUT_ROOT = HOME / ".hermes" / "cron" / "output"
def discover_output_dir() -> Path | None:
jobs_file = HOME / ".hermes" / "cron" / "jobs.json"
try:
if jobs_file.exists():
data = json.loads(jobs_file.read_text(encoding="utf-8"))
jobs = data if isinstance(data, list) else data.get("jobs", [])
for j in jobs:
if j.get("name") == SENSOR_JOB_NAME and j.get("id"):
d = OUTPUT_ROOT / str(j["id"])
if d.exists():
return d
except Exception:
pass
# Fallback: newest .md under the output root
best, best_mtime = None, 0.0
if OUTPUT_ROOT.exists():
for d in OUTPUT_ROOT.iterdir():
if not d.is_dir():
continue
mds = sorted(d.glob("*.md"), key=lambda p: p.stat().st_mtime, reverse=True)
mds mds[].stat().st_mtime > best_mtime:
best, best_mtime = d, mds[].stat().st_mtime
best
When the producer script's name changes too, update the constant — never reach for the id.
A cron is a zombie when its input path died but the cron itself still ticks. Before "fixing" a seemingly broken fixer, check:
ls -lt <dir> — a stale mtime = dead producer.)cronjob action=list — is the producer actually
running ok, or has its job id changed?register()-ed in
cortex-update.sh? An unregistered script keeps running from a stale
deployed copy that never updates.ls -la ~/.hermes/scripts/<script> — a weeks-old
mtime while the repo has newer source = orphaned deploy.references/fixer-reconciliation-2026-08-08.md).Removing a cron touches ALL of these — one missed location = stale reference or doctor drift:
cronjob action='remove' job_id=<id> (list first; never
guess ids).create_cron
block AND the matching uninstall-array entry (the array is the doctor's
expected-cron source; a leftover name = false ❌).register() line for the script.agent-stale-ref-watchdog.sh CRON_SCRIPTS array).~/.hermes/scripts/ and
~/.hermes-cortex/scripts/ copies (and repo source via git rm).docs/cron-schedules.md,
docs/cron-jobs-reference.md, docs/fleet-reference.md, README.md
(pipeline diagrams + category tables), docs/setup-reference.md (key
scripts lists). Grep the whole repo:
grep -rn "<cron-name>" --include="*.md" --include="*.sh" --include="*.py".
Historical migration notes may keep the name intentionally — leave those.docs/DOCS-INDEX.md
entries or the pre-commit DOCS AUDIT warns.Then verify: fix-cron-duplicates.py (arrays in sync) → bash -n /
py_compile on changed scripts → adversarial gate
(adversarial-verify.py --file <f> --level A2 --gate) → commit →
cortex-update.sh (deploy) → re-acquire governance lock (deploy purges
locks) → push → cronjob action='run' on remaining crons (refreshes
scheduler last_status — manual runs don't) → doctor clean.
cortex-update.sh, the running cron picks up
the new script on its next tick — and your governance lock is gone;
re-acquire before further repo work.references/fixer-reconciliation-2026-08-08.md — full case study: the
two-fixer overlap, stale-job-id blindness, zombie detection, and the
end-to-end retirement of agent-apply-fixes (all touchpoints + evidence).