fix(kvb-org-queue): restart holders on stale queue code; link host skills into projects
Every holder judges the shared queue.json with its own loaded code, so the project copies from 2026-11-07 (no RAM/CPU budget) granted heavy jobs on the slot limit alone and overloaded the host at 18:24. Each entry now stamps a hash of queue.py and the sibling scripts it loads; a poll that finds other code installed in ~/.agents/skills leaves the queue ungranted and re-execs the same hold with the installed queue.py, on the realpath interpreter, with signals reset and a caught signal ending the hold instead. queue.py list prefixes entries on other or unstamped code. A project install now symlinks every skill the global install holds instead of copying it, so the project hooks and ../ references stay valid and one host runs one version. 🎯 Fix: 92 % 💥 Break: 4 % 💸 Cost: 100 % ⏱️ Time: 100 % 🛡️ Security: 100 % 🏆 Score: 88 🚦 Gate: ✅ 90/5, cost and time <= 100, security 100 % Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e805b07c27
commit
ca54420f4d
4 files changed
+135
-21
No files matched your search
+14
-2
@@ -2,7 +2,8 @@
|
||||
# Render the skills from skills-lock.json and copy them into TARGET.
|
||||
# TARGET defaults to $HOME (global install); pass a project root to
|
||||
# equip that project. Skills land in <TARGET>/.agents/skills and are
|
||||
# mirrored to <TARGET>/.claude/skills.
|
||||
# mirrored to <TARGET>/.claude/skills. A project install links every skill
|
||||
# the global install in $HOME already holds to that copy instead.
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
||||
@@ -38,11 +39,22 @@ if [[ -d "${REPO_ROOT}/skills" ]]; then
|
||||
cp -a "${REPO_ROOT}/skills/." "${src}/"
|
||||
fi
|
||||
|
||||
for dst in "${TARGET}/.agents/skills" "${TARGET}/.claude/skills"; do
|
||||
for root in .agents/skills .claude/skills; do
|
||||
dst="${TARGET}/${root}"
|
||||
log "skills: copying -> ${dst}"
|
||||
mkdir -p "${dst}"
|
||||
find "${dst}" -mindepth 1 -delete
|
||||
cp -a "${src}/." "${dst}/"
|
||||
if [[ ! "${TARGET}" -ef "${HOME}" ]]; then
|
||||
log "skills: linking in ${dst} what ${HOME}/${root} already holds"
|
||||
for skill in "${dst}"/*; do
|
||||
global="${HOME}/${root}/${skill##*/}"
|
||||
if [[ -e "${global}" ]]; then
|
||||
rm -rf "${skill}"
|
||||
ln -s "${global}" "${skill}"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
settings="${TARGET}/.claude/settings.local.json"
|
||||
|
||||
Reference in new issue
Block a user