You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(session-flow): count guardrails hook blocks per arm in the resume-eval report #17874
Resume-eval reader sessions load the host's installed plugins, as rule R5 requires ("Testing uses
the real product the owner runs"). The guardrails plugin's plugins/guardrails/hooks/block-cd-prefix.sh hook runs in those sessions and refuses cd <repo> && ... Bash calls.
The grader scores a hook-blocked run as a plain non-delivery
(nondelivery: reader: denied tool calls: ['Bash']). In the #17677 ship-gate smoke test, re-decision-trimmed-to-fit lost 2 of 4 after-arm runs this way. The hook also fired in 1 of 2
before-arm runs, which still delivered. The report can't tell a format that leads readers into
the hook from a format that drops content.
Fix
Keep guardrails on in eval sessions (owner decision, 2026-11-21: keep the hook and count it).
Classify a run whose reader was refused by a guardrails hook as its own result, and tally it per
arm, apart from the accuracy and non-delivery rates, so the before/after report shows whether a
format triggers the hook more often.
Acceptance
The grader records a hook-blocked run with the hook's name, separate from other non-deliveries.
The before/after report prints hook-blocked counts per arm.
A unit test covers a reader transcript carrying a block-cd-prefix.sh refusal.
Size: Small
Complexity: Low
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: the session-flow resume-eval harness (run_settings and its unit test); read by eval runs only.
Reversible: yes; revert the small edit.
Open questions: none
Understood: resume-eval reader sessions turn off only session-flow, so the guardrails cd-prefix hook still denies Bash calls and skews eval results. The fix is to turn off guardrails@melodic-software in run_settings and update the unit test. The rerun of re-decision-trimmed-to-fit is an eval run, so a person or host run checks it. #17792 touches the same harness (Bash permissions in resume-eval sessions) but asks for a different change, so it is related, not a duplicate. No merged pull request already fixes this.
Not admitted to the issue lane: its body was edited after the triage verdict, which judged the body as it stood before. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: run_settings in the session-flow resume-eval harness also turns off guardrails@melodic-software, so the block-cd-prefix hook no longer runs in reader sessions, with a unit test.
Acceptance criteria
plugins/session-flow/scripts/harness/resume_eval.py run_settings returns enabledPlugins with both session-flow@melodic-software and guardrails@melodic-software set to False
The run_settings docstring in resume_eval.py says guardrails is off too and why (its cd-prefix hook denies Bash calls in reader sessions)
plugins/session-flow/scripts/harness/test_resume_eval.py asserts enabledPlugins equals both entries set to False, replacing the single-entry assertion at line 207
The test file passes when run with pytest on scripts/harness/test_resume_eval.py
No other key of the run_settings document (sandbox, permissions, pluginConfigs) changes, and the existing assertions on them still pass
External state: none
Sources read
plugins/session-flow/scripts/harness/resume_eval.py:100: run_settings sets enabledPlugins to only {"session-flow@melodic-software": False}
plugins/session-flow/scripts/harness/test_resume_eval.py:207: asserts enabledPlugins equals the single session-flow entry
plugins/guardrails/hooks/block-cd-prefix.sh: the hook exists in the checkout
Automated refinement by the lanes App. Intake triages the issue again with it.
changed the title [-]fix(session-flow): keep the guardrails cd-prefix hook out of resume-eval reader sessions[/-][+]feat(session-flow): count guardrails hook blocks per arm in the resume-eval report[/+]on Nov 21, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: The resume-eval grader classifies a reader run refused by a guardrails hook (such as block-cd-prefix.sh) as its own hook-blocked result, and the before/after report prints a per-arm hook-blocked count; guardrails stays enabled.
Triage's comment says to turn off guardrails@melodic-software in run_settings, but the issue body says the owner decided to keep the hook on and count it. Which applies?
RECOMMENDED: Keep guardrails on and count blocks, as the issue body says. Leave enabledPlugins in run_settings alone. No Decision recorded comment exists, so a maintainer should confirm. Basis: plugins/session-flow/scripts/harness/resume_eval.py:100
Should a hook-blocked run still count in the non-delivery rate and score 0 on its probes, or be left out of those and shown only in the hook-blocked tally?
RECOMMENDED: Leave it out of the non-delivery rate and the accuracy denominator, and report it as a separate per-arm count, since the body says to tally it apart from both rates. Basis: plugins/session-flow/scripts/harness/resume_eval.py:830
What exact transcript text identifies a hook refusal? exclusion_reason sees only permission_denials tool names, so the grader needs a marker in the transcript.
RECOMMENDED: Match the hook script name or the BLOCKED: stderr text in tool_result or hook events and record the hook name; a maintainer should supply a real transcript sample for the unit-test fixture. Basis: plugins/guardrails/hooks/block-cd-prefix.sh:147
Sources read
plugins/session-flow/scripts/harness/resume_eval.py:91: run_settings disables only session-flow@melodic-software
plugins/session-flow/scripts/harness/resume_eval.py:874: exclusion_reason reports denied tool calls by tool name only, as Kind.DENIED
plugins/session-flow/scripts/harness/resume_eval.py:830: mark_excluded records a behavior failure as nondelivery and zeroes its probes
plugins/session-flow/scripts/harness/resume_eval.py:2221: report prints kept, excluded and non-delivery counts per group
plugins/guardrails/hooks/block-cd-prefix.sh:147: the hook exits 2 with a BLOCKED: message on stderr
To answer, post a comment that starts with this line:
**Decision recorded.** <answer>
Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.
Activity
github-actions commentedon Nov 21, 2026
Size: Small
Complexity: Low
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: the session-flow resume-eval harness (
run_settingsand its unit test); read by eval runs only.Reversible: yes; revert the small edit.
Open questions: none
Understood: resume-eval reader sessions turn off only session-flow, so the guardrails cd-prefix hook still denies Bash calls and skews eval results. The fix is to turn off
guardrails@melodic-softwareinrun_settingsand update the unit test. The rerun ofre-decision-trimmed-to-fitis an eval run, so a person or host run checks it. #17792 touches the same harness (Bash permissions in resume-eval sessions) but asks for a different change, so it is related, not a duplicate. No merged pull request already fixes this.Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 21, 2026
Not admitted to the issue lane: its body was edited after the triage verdict, which judged the body as it stood before. Admission takes the issue once each of those is met, when intake triages it again (
.github/actions/resolve-config/admission-rules.json).melodic-automation-lanes commentedon Nov 21, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: run_settings in the session-flow resume-eval harness also turns off guardrails@melodic-software, so the block-cd-prefix hook no longer runs in reader sessions, with a unit test.
Acceptance criteria
External state: none
Sources read
Automated refinement by the lanes App. Intake triages the issue again with it.
[-]fix(session-flow): keep the guardrails cd-prefix hook out of resume-eval reader sessions[/-][+]feat(session-flow): count guardrails hook blocks per arm in the resume-eval report[/+]melodic-automation-lanes commentedon Nov 21, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: The resume-eval grader classifies a reader run refused by a guardrails hook (such as block-cd-prefix.sh) as its own hook-blocked result, and the before/after report prints a per-arm hook-blocked count; guardrails stays enabled.
Related work
Open questions
RECOMMENDED: Keep guardrails on and count blocks, as the issue body says. Leave enabledPlugins in run_settings alone. No Decision recorded comment exists, so a maintainer should confirm. Basis: plugins/session-flow/scripts/harness/resume_eval.py:100
RECOMMENDED: Leave it out of the non-delivery rate and the accuracy denominator, and report it as a separate per-arm count, since the body says to tally it apart from both rates. Basis: plugins/session-flow/scripts/harness/resume_eval.py:830
RECOMMENDED: Match the hook script name or the BLOCKED: stderr text in tool_result or hook events and record the hook name; a maintainer should supply a real transcript sample for the unit-test fixture. Basis: plugins/guardrails/hooks/block-cd-prefix.sh:147
Sources read
To answer, post a comment that starts with this line:
Automated refinement by the lanes App. Answer with a comment whose first line is
**Decision recorded.**.