Repository navigation
Conversation
|
@greptileai review |
૮ >ﻌ< ა ci reviewran on ea89e25 — chore: map contributor email for ej-sanmartin ℹ️ InfoCI caches · View report · View job27 / 27 cache hits (0 misses) per-job cache resultshits
missesnone Compressed archive bytes. Not-restored bytes use the main-size reference; missing sizes remain unknown. debug infoCI timingsCI timings · View report · View jobWall time 6m21s vs 6m23s (-0.5%). 7 job(s) slower, 6 faster,
|
[Medium impact] The PR appears safe to merge; no blocking issues were found.
|
Ooriginador
left a comment
There was a problem hiding this comment.
Automated review — COMMENT
No code-level correctness or security findings. _unattended_scan() now gives every active context a chance to deny before either approval gate can auto-approve, and the regression cases cover stacked single-query/cron and single-query/unattended contexts, message precedence, protected writes, and unchanged single-context behavior.
Repository status
The implementation’s Python test and lint lanes passed, but the required repository guard is red because contributor email edgar.sanmartinjr@gmail.com is not mapped. Please run python3 scripts/audit_pr_attribution.py --fix and commit the generated contributor mapping (or use the documented manual mapping flow) so required CI can pass.
The added-line security scan was clean.
|
@Ooriginador the contributor email is mapped in ea89e25 ( |
With more than one unattended context active (e.g.
cronjob runinsidehermes chat -q, or a cron job runninghermes chat -qthrough the terminal),check_execute_code_guardand_run_approval_gatetook the first context's mode. Single-query is listed first, sosingle_query_mode: approvewaivedcron_mode: deny/unattended_mode: denyforexecute_code,check_dangerous_command,request_tool_approval(plugins, computer_use) and the protected-file write gate.check_all_command_guardsalready blocked on any deny; these two now do the same through a shared_unattended_scan.Every single-context and no-context case keeps its result, message and log line (checked across all 27 single-query × cron × webhook mode combinations against six gates); only the stacked approve-then-deny combinations change, from approved to blocked. When several contexts deny, the first in list order supplies the message.
The fix is @ej-sanmartin's commit, cherry-picked with authorship kept; the follow-ups tidy a docstring and pin the file-write gate in the stacked case. The stacked-deny tests fail on main.
Fixes #156677