feat(kvb-org-organize): hold heavy jobs back on memory pressure with one shipped default config
watch.py admits heavy work only while PSI, swap-out rate and RAM forecast stay under the configured limits; config.default.json is the single default the install writes once (mode 600, no clobber) and every hook, admit and queue command falls back to. Browser runners and package-manager script forms count as heavy, preflight derives its probes from the light and heavy tool lists, and the shipped default carries no prune command, buildx path or host-specific key. Tests run once on unify/skills-20261114 after the merge (operator order 2026-11-14). 🎯 Fix: 85 % 💥 Break: 8 % 💸 Tokens: 99 % ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 79 🚦 Gate: ⛔ fix 85 % < 90, break 8 % > 5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a2a03995cb
commit
8e2db852e5
27 files changed
+2795
-207
No files matched your search
@@ -23,6 +23,12 @@ if [[ ! -d "${TARGET}" ]]; then
|
||||
exit 2
|
||||
fi
|
||||
|
||||
watch="${REPO_ROOT}/skills/kvb-org-organize/scripts/watch.py"
|
||||
if [[ -f "${watch}" ]] && ! python3 -I "${watch}" preflight; then
|
||||
warn "skills: add the keys above to the agents council config first; the new hooks and queue.py refuse to run without them"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
cd "${REPO_ROOT}"
|
||||
src="${REPO_ROOT}/.agents/skills"
|
||||
rm -rf "${src}"
|
||||
@@ -58,6 +64,17 @@ for root in .agents/skills .claude/skills; do
|
||||
fi
|
||||
done
|
||||
|
||||
config="${AGENTS_COUNCIL_CONFIG:-${HOME}/.claude/agents-council/config.json}"
|
||||
shipped="${REPO_ROOT}/skills/kvb-org-organize/config.default.json"
|
||||
if [[ -f "${shipped}" && ! -e "${config}" && ! -L "${config}" ]]; then
|
||||
[[ -d "$(dirname -- "${config}")" ]] || install -d -m 0700 "$(dirname -- "${config}")"
|
||||
if (umask 077 && set -o noclobber && cat -- "${shipped}" >"${config}") 2>/dev/null; then
|
||||
log "skills: wrote the shipped agents council config to ${config}"
|
||||
else
|
||||
warn "skills: kept ${config}, which appeared while the install wrote the shipped default"
|
||||
fi
|
||||
fi
|
||||
|
||||
settings="${TARGET}/.claude/settings.local.json"
|
||||
if command -v node &>/dev/null; then
|
||||
log "skills: auto-enabling caveman + ponytail plugins in ${settings}"
|
||||
|
||||
Reference in new issue
Block a user