Files
ledger a3e5ce4db4 volt: Q63 class repair -- eight assert-only verifiers gain a failure path -O cannot strip
The Q63 stripped-assert population read 0 of the tree from 2026-10-24 until
cycle 6; at 1518f2b it reads 8, measured with the lane's own scanner
(q63_verify_scan.py --repo . --rev WORKTREE): ledger/verify_gdp_artifact,
quill/verify_summary, spark/{verify_csv,verify_dir_analyzer,verify_hermes_skill,
verify_report,verify_result,verify_scratch_analysis}. Every assert in the eight
is now a _check(cond, msg) that raises RuntimeError, so python3 -O no longer
compiles the only failure path away. Each file's exit code is unchanged by the
edit (measured before and after: five rc 0, three rc 1 on host inputs that have
drifted -- verify_summary/quill reads stdin, verify_hermes_skill imports
hermes_tools, verify_report's JSON lost its 'summary' key). No assertion
weakened, no input repointed.

Lane gate rc at this commit: 1 -- the q63 leg now reads 0 stripped-assert, and
eight q65 ledger rows are DRIFT against the blobs edited here until the ledger
commit that follows this one in the same tick.
2026-11-02 14:33:56 +00:00

37 lines
1.3 KiB
Python

#!/usr/bin/env python3
"""Verify hermes-agent skill is available and functional."""
from hermes_tools import skill_view, skills_list
def _check(cond, msg):
"""A failure path `-O` cannot compile away (Q63: assert-only files exit 0 under -O)."""
if not cond:
raise RuntimeError(msg)
def main():
# Check hermes-agent skill is in the list
skills = skills_list()
skill_names = [s['name'] for s in skills.get('skills', [])]
_check('hermes-agent' in skill_names, "hermes-agent skill not found in catalog")
print("FOUND: hermes-agent skill in catalog")
# Try to view the skill
skill_content = skill_view(name='hermes-agent')
_check('name' in skill_content or 'description' in skill_content, "Failed to read hermes-agent skill")
print("SUCCESS: hermes-agent skill contents accessible")
# Extract key functionality areas
content_str = str(skill_content)
_check('cronjob' in content_str or 'cron' in content_str.lower(), "Missing cronjob functionality")
_check('manage_connections' in content_str or 'connect' in content_str.lower(), "Missing connection management")
print("VERIFIED: Core Hermes functionalities present in skill")
print("\nAll checks passed - hermes-agent skill is working correctly")
return True
if __name__ == '__main__':
main()