review-fix(comments): restore lost #NNNN rationale comments across non-test source (mechanical sweep, condensed, code unchanged)

For each issue anchor present in BASE 63279301bc non-test .py and absent on HEAD, the BASE comment/docstring block was re-attached at the HEAD location of the code it explained (matched by the distinctive code line / enclosing def). Sentences already covered by an existing HEAD comment were deduped; the issue number always survives. Insert-only: no code lines changed.
This commit is contained in:
Teknium
2026-09-03 09:44:26 -07:00
parent ad62a15e94
commit e83816a4d1
586 changed files with 13883 additions and 829 deletions
+5
View File
@@ -111,6 +111,11 @@ def delete_node(node_id: str) -> dict[str, Any]:
def _delete_skill(name: str) -> dict[str, Any]:
from tools import skill_usage
# Pin must be respected by autonomous maintenance. The curator already skips pinned skills from every
# auto-transition; the background review fork is the same kind of autonomous, no-user-present actor, so
# it must not write to a pinned skill either (issue #25839). This is stricter than the foreground
# ``_pinned_guard`` (which only blocks deletion) precisely because there is no user in the loop to
# consent to an edit here.
if skill_usage.get_record(name).get("pinned"):
return {"ok": False, "message": f"'{name}' is pinned — unpin it first (hermes curator unpin {name})"}
ok, message = skill_usage.archive_skill(name)